Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for ImageMagick 7.1.2-27.
4 #
5 # Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1
188
189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193 PATH=/empty FPATH=/empty; export PATH FPATH
194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and https://github.com/ImageMagick/ImageMagick/issues
282 $0: about your system, including any error possibly output
283 $0: before this message. Then install a modern shell, or
284 $0: manually run the script under such a shell if you do
285 $0: have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='ImageMagick'
616 PACKAGE_TARNAME='ImageMagick'
617 PACKAGE_VERSION='7.1.2-27'
618 PACKAGE_STRING='ImageMagick 7.1.2-27'
619 PACKAGE_BUGREPORT='https://github.com/ImageMagick/ImageMagick/issues'
620 PACKAGE_URL='https://imagemagick.org'
621
622 ac_unique_file="MagickCore/MagickCore.h"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 ac_func_c_list=
656 enable_year2038=no
657 ac_subst_vars='am__EXEEXT_FALSE
658 am__EXEEXT_TRUE
659 LTLIBOBJS
660 MAGICK_LIBS
661 MAGICK_LDFLAGS
662 MAGICK_PCFLAGS
663 MAGICK_CPPFLAGS
664 MAGICK_CXXFLAGS
665 MAGICK_CFLAGS
666 MAGICK_EXTRA_DEP_LIBS
667 MAGICK_DEP_LIBS
668 OSX_GCOV_LDFLAG
669 MAGICK_FEATURES
670 MAGICK_DELEGATES
671 MAGICKCORE_PATH
672 PERL_SUPPORTS_DESTDIR
673 WITH_PERL_DYNAMIC_FALSE
674 WITH_PERL_DYNAMIC_TRUE
675 WITH_PERL_STATIC_FALSE
676 WITH_PERL_STATIC_TRUE
677 WITH_PERL_FALSE
678 WITH_PERL_TRUE
679 PERL_VERSION
680 GSVersion
681 GSPSDevice
682 GSPDFDevice
683 GSMonoDevice
684 GSEPSDevice
685 GSColorDevice
686 GSCMYKDevice
687 GSAlphaDevice
688 XPSVersion
689 XPSCMYKDevice
690 XPSColorDevice
691 XPSMonoDevice
692 PCLVersion
693 PCLCMYKDevice
694 PCLColorDevice
695 PCLMonoDevice
696 ZIP
697 P7ZIP_DELEGATE_FALSE
698 P7ZIP_DELEGATE_TRUE
699 P7ZIP
700 RPM_DELEGATE_FALSE
701 RPM_DELEGATE_TRUE
702 RPM
703 PERL
704 TAR
705 ShowImageDelegate
706 CHANNEL_MASK_DEPTH
707 type_include_files
708 windows_font_dir
709 urw_base35_type1_font_dir
710 urw_base35_font_dir
711 ghostscript_font_dir
712 dejavu_font_dir
713 apple_font_dir
714 PrintDelegate
715 XPSDelegate
716 WWWDecodeDelegate
717 WebPEncodeDelegate
718 WebPDecodeDelegate
719 Fig2devDelegate
720 TraceEncodeDelegate
721 TextEncodeDelegate
722 SVGDecodeDelegate
723 RSVGDecodeDelegate
724 RMDelegate
725 PSDelegate
726 PCLDelegate
727 OpenDelegate
728 MVDelegate
729 MrSIDDecodeDelegate
730 MKDIRDelegate
731 VIDEOEncodeDelegate
732 VIDEODecodeDelegate
733 MogrifyDelegate
734 LaunchDelegate
735 LPRDelegate
736 LPDelegate
737 LEPDelegate
738 JXREncodeDelegate
739 JXRDecodeDelegate
740 ILBMEncodeDelegate
741 ILBMDecodeDelegate
742 HTMLDecodeDelegate
743 HPGLDecodeDelegate
744 GVCDecodeDelegate
745 EditorDelegate
746 DisplayDelegate
747 ConvertDelegate
748 DVIDecodeDelegate
749 DOCDecodeDelegate
750 DNGDecodeDelegate
751 ClipboardDelegate
752 BrowseDelegate
753 BlenderDecodeDelegate
754 BPGEncodeDelegate
755 BPGDecodeDelegate
756 SHAREARCH_PATH
757 SHAREARCH_RELATIVE_PATH
758 SHAREARCH_DIRNAME
759 SHAREARCH_BASEDIRNAME
760 SHARE_PATH
761 CONFIGURE_PATH
762 INSTALL_DOC_FALSE
763 INSTALL_DOC_TRUE
764 DOCUMENTATION_PATH
765 FILTER_PATH
766 FILTER_DIRNAME
767 CODER_PATH
768 CODER_DIRNAME
769 MODULES_PATH
770 MODULES_RELATIVE_PATH
771 MODULES_DIRNAME
772 MODULES_BASEDIRNAME
773 LIB_BIN_DIR_PATH
774 LIB_BIN_DIR_RELATIVE_PATH
775 LIB_BIN_DIR
776 LIB_BIN_BASEDIRNAME
777 LIBRARY_ABSOLUTE_PATH
778 EXECUTABLE_PATH
779 INCLUDEARCH_PATH
780 INCLUDE_PATH
781 PERLMAINCC
782 XML_DELEGATE_FALSE
783 XML_DELEGATE_TRUE
784 XML_LIBS
785 XML_CFLAGS
786 WMF_LIBS
787 WMF_CFLAGS
788 WMF_DELEGATE_FALSE
789 WMF_DELEGATE_TRUE
790 WEBPMUX_DELEGATE_FALSE
791 WEBPMUX_DELEGATE_TRUE
792 WEBP_DELEGATE_FALSE
793 WEBP_DELEGATE_TRUE
794 WEBPMUX_LIBS
795 WEBPMUX_CFLAGS
796 WEBP_LIBS
797 WEBP_CFLAGS
798 UHDR_DELEGATE_FALSE
799 UHDR_DELEGATE_TRUE
800 UHDR_LIBS
801 UHDR_CFLAGS
802 TIFF_DELEGATE_FALSE
803 TIFF_DELEGATE_TRUE
804 TIFF_LIBS
805 TIFF_CFLAGS
806 CAIRO_DELEGATE_FALSE
807 CAIRO_DELEGATE_TRUE
808 RSVG_DELEGATE_FALSE
809 RSVG_DELEGATE_TRUE
810 CAIRO_SVG_LIBS
811 CAIRO_SVG_CFLAGS
812 RSVG_LIBS
813 RSVG_CFLAGS
814 RAW_R_DELEGATE_FALSE
815 RAW_R_DELEGATE_TRUE
816 RAW_R_LIBS
817 RAW_R_CFLAGS
818 PNG_DELEGATE_FALSE
819 PNG_DELEGATE_TRUE
820 PNG_LIBS
821 PNG_CFLAGS
822 PANGOCAIRO_DELEGATE_FALSE
823 PANGOCAIRO_DELEGATE_TRUE
824 PANGO_LIBS
825 PANGO_CFLAGS
826 OPENEXR_DELEGATE_FALSE
827 OPENEXR_DELEGATE_TRUE
828 OPENEXR_LIBS
829 OPENEXR_CFLAGS
830 LZMA_DELEGATE_FALSE
831 LZMA_DELEGATE_TRUE
832 LZMA_LIBS
833 LZMA_CFLAGS
834 LQR_DELEGATE_FALSE
835 LQR_DELEGATE_TRUE
836 LQR_LIBS
837 LQR_CFLAGS
838 LIBOPENJP2_DELEGATE_FALSE
839 LIBOPENJP2_DELEGATE_TRUE
840 LIBOPENJP2_LIBS
841 LIBOPENJP2_CFLAGS
842 LCMS_LIBS
843 LCMS_CFLAGS
844 LCMS_DELEGATE_FALSE
845 LCMS_DELEGATE_TRUE
846 LCMS2_LIBS
847 LCMS2_CFLAGS
848 JXL_DELEGATE_FALSE
849 JXL_DELEGATE_TRUE
850 JXL_LIBS
851 JXL_CFLAGS
852 JPEG_DELEGATE_FALSE
853 JPEG_DELEGATE_TRUE
854 JPEG_LIBS
855 JPEG_CFLAGS
856 JBIG_LIBS
857 JBIG_DELEGATE_FALSE
858 JBIG_DELEGATE_TRUE
859 HEIC_DELEGATE_FALSE
860 HEIC_DELEGATE_TRUE
861 HEIF_LIBS
862 HEIF_CFLAGS
863 DMR_LIBS
864 DMR_CFLAGS
865 DMR_DELEGATE_FALSE
866 DMR_DELEGATE_TRUE
867 MagickCache_LIBS
868 MagickCache_CFLAGS
869 GVC_DELEGATE_FALSE
870 GVC_DELEGATE_TRUE
871 GVC_LIBS
872 GVC_CFLAGS
873 GS_LIBS
874 GS_DELEGATE_FALSE
875 GS_DELEGATE_TRUE
876 GDI32_LIBS
877 WINGDI32_DELEGATE_FALSE
878 WINGDI32_DELEGATE_TRUE
879 RAQM_DELEGATE_FALSE
880 RAQM_DELEGATE_TRUE
881 RAQM_LIBS
882 RAQM_CFLAGS
883 MAGICKCORE_FREETYPE_DELEGATE
884 FREETYPE_LIBS
885 FREETYPE_CFLAGS
886 FONTCONFIG_DELEGATE_FALSE
887 FONTCONFIG_DELEGATE_TRUE
888 FONTCONFIG_LIBS
889 FONTCONFIG_CFLAGS
890 DJVU_LIBS
891 DJVU_CFLAGS
892 DJVU_DELEGATE_FALSE
893 DJVU_DELEGATE_TRUE
894 ddjvuapi_LIBS
895 ddjvuapi_CFLAGS
896 FPX_LIBS
897 FPX_DELEGATE_FALSE
898 FPX_DELEGATE_TRUE
899 FLIF_LIBS
900 FLIF_DELEGATE_FALSE
901 FLIF_DELEGATE_TRUE
902 FFTW_LIBS
903 FFTW_CFLAGS
904 FFTW_DELEGATE_FALSE
905 FFTW_DELEGATE_TRUE
906 fftw3_LIBS
907 fftw3_CFLAGS
908 DPS_LIBS
909 DPS_DELEGATE_FALSE
910 DPS_DELEGATE_TRUE
911 AUTOTRACE_DELEGATE_FALSE
912 AUTOTRACE_DELEGATE_TRUE
913 AUTOTRACE_LIBS
914 AUTOTRACE_CFLAGS
915 LIB_DL
916 WITH_LTDL_FALSE
917 WITH_LTDL_TRUE
918 ZSTD_LIBS
919 ZSTD_CFLAGS
920 ZSTD_DELEGATE_FALSE
921 ZSTD_DELEGATE_TRUE
922 LIBZSTD_LIBS
923 LIBZSTD_CFLAGS
924 ZLIB_DELEGATE_FALSE
925 ZLIB_DELEGATE_TRUE
926 ZLIB_LIBS
927 ZLIB_CFLAGS
928 ZIP_DELEGATE_FALSE
929 ZIP_DELEGATE_TRUE
930 ZIP_LIBS
931 ZIP_CFLAGS
932 XEXT_LIBS
933 X11_LIBS
934 X11_DELEGATE_FALSE
935 X11_DELEGATE_TRUE
936 X_EXTRA_LIBS
937 X_LIBS
938 X_PRE_LIBS
939 X_CFLAGS
940 XMKMF
941 BZLIB_DELEGATE_FALSE
942 BZLIB_DELEGATE_TRUE
943 BZLIB_LIBS
944 BZLIB_CFLAGS
945 CCMALLOCDelegate
946 UMEM_LIBS
947 HAVE_UMEM_FALSE
948 HAVE_UMEM_TRUE
949 TCMALLOC_LIBS
950 HAVE_TCMALLOC_FALSE
951 HAVE_TCMALLOC_TRUE
952 MTMALLOC_LIBS
953 HAVE_MTMALLOC_FALSE
954 HAVE_MTMALLOC_TRUE
955 JEMALLOC_LIBS
956 HAVE_JEMALLOC_FALSE
957 HAVE_JEMALLOC_TRUE
958 GOMP_LIBS
959 WITH_MAGICK_PLUS_PLUS_FALSE
960 WITH_MAGICK_PLUS_PLUS_TRUE
961 OPENMP_CXXFLAGS
962 MATH_LIBS
963 LIBOBJS
964 POW_LIB
965 LIBRARY_EXTRA_CPPFLAGS
966 MODULE_EXTRA_CPPFLAGS
967 LIBSTDCLDFLAGS
968 PERL_MAKE_OPTIONS
969 MAGICK_LT_RELEASE_OPTS
970 MAGICK_SECURITY_POLICY
971 MAGICK_ABI_SUFFIX
972 QUANTUM_DEPTH
973 WITH_UTILITIES_FALSE
974 WITH_UTILITIES_TRUE
975 LEGACY_SUPPORT_FALSE
976 LEGACY_SUPPORT_TRUE
977 MAINT
978 MAINTAINER_MODE_FALSE
979 MAINTAINER_MODE_TRUE
980 MAGICK_HDRI
981 MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_FALSE
982 MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_TRUE
983 WITH_MODULES_FALSE
984 WITH_MODULES_TRUE
985 WITH_SHARED_LIBS_FALSE
986 WITH_SHARED_LIBS_TRUE
987 LIBTOOL_DEPS
988 CXXCPP
989 LT_SYS_LIBRARY_PATH
990 OTOOL64
991 OTOOL
992 LIPO
993 NMEDIT
994 DSYMUTIL
995 MANIFEST_TOOL
996 RANLIB
997 FILECMD
998 NM
999 ac_ct_DUMPBIN
1000 DUMPBIN
1001 LIBTOOL
1002 OBJDUMP
1003 DLLTOOL
1004 AS
1005 LFS_CPPFLAGS
1006 OPENMP_CFLAGS
1007 THREAD_LIBS
1008 PTHREAD_CFLAGS
1009 PTHREAD_LIBS
1010 PTHREAD_CXX
1011 PTHREAD_CC
1012 ax_pthread_config
1013 pkgconfigdir
1014 SHAREARCH_DIR
1015 INCLUDEARCH_DIR
1016 WinPathScript
1017 CYGWIN_BUILD_FALSE
1018 CYGWIN_BUILD_TRUE
1019 WIN32_NATIVE_BUILD_FALSE
1020 WIN32_NATIVE_BUILD_TRUE
1021 HAVE_LD_VERSION_SCRIPT_FALSE
1022 HAVE_LD_VERSION_SCRIPT_TRUE
1023 PKG_CONFIG_LIBDIR
1024 PKG_CONFIG_PATH
1025 PKG_CONFIG
1026 PRTDIAG
1027 LN_S
1028 LD
1029 FGREP
1030 EGREP
1031 GREP
1032 SED
1033 CPP
1034 am__fastdepCXX_FALSE
1035 am__fastdepCXX_TRUE
1036 CXXDEPMODE
1037 ac_ct_CXX
1038 CXXFLAGS
1039 CXX
1040 ac_ct_AR
1041 AR
1042 am__fastdepCC_FALSE
1043 am__fastdepCC_TRUE
1044 CCDEPMODE
1045 am__nodep
1046 AMDEPBACKSLASH
1047 AMDEP_FALSE
1048 AMDEP_TRUE
1049 am__include
1050 DEPDIR
1051 OBJEXT
1052 EXEEXT
1053 ac_ct_CC
1054 CPPFLAGS
1055 LDFLAGS
1056 CFLAGS
1057 CC
1058 DIRSEP
1059 MAGICK_FILTER_MODULE_PATH
1060 MAGICK_CONFIGURE_BUILD_PATH
1061 MAGICK_CONFIGURE_SRC_PATH
1062 MAGICK_CODER_MODULE_PATH
1063 MAN_DIR
1064 INFO_DIR
1065 PERSISTINCLUDE_DIR
1066 INCLUDE_DIR
1067 LIB_DIR
1068 LOCALSTATE_DIR
1069 SHAREDSTATE_DIR
1070 SYSCONF_DIR
1071 DOC_DIR
1072 DATA_DIR
1073 LIBEXEC_DIR
1074 SBIN_DIR
1075 BIN_DIR
1076 EXEC_PREFIX_DIR
1077 PREFIX_DIR
1078 MAGICKPP_LIB_VERSION_TEXT
1079 MAGICKPP_LIB_VERSION
1080 MAGICK_LIB_VERSION_NUMBER
1081 MAGICK_LIB_VERSION_TEXT
1082 MAGICK_LIB_VERSION
1083 PACKAGE_RELEASE_DATE
1084 PACKAGE_LIB_VERSION_NUMBER
1085 PACKAGE_LIB_VERSION
1086 PACKAGE_VERSION_ADDENDUM
1087 PACKAGE_PATCHLEVEL_VERSION
1088 PACKAGE_BASE_VERSION
1089 MAGICKPP_LIBRARY_VERSION_INFO
1090 MAGICKPP_LIBRARY_CURRENT_MIN
1091 MAGICKPP_LIBRARY_AGE
1092 MAGICKPP_LIBRARY_REVISION
1093 MAGICKPP_LIBRARY_CURRENT
1094 MAGICK_LIBRARY_VERSION_INFO
1095 MAGICK_LIBRARY_CURRENT_MIN
1096 MAGICK_LIBRARY_AGE
1097 MAGICK_LIBRARY_REVISION
1098 MAGICK_LIBRARY_CURRENT
1099 MAGICK_GIT_REVISION
1100 MAGICK_VERSION
1101 MAGICK_PATCHLEVEL_VERSION
1102 MAGICK_MICRO_VERSION
1103 MAGICK_MINOR_VERSION
1104 MAGICK_MAJOR_VERSION
1105 SHELL_QUOTE
1106 MAGICK_TARGET_OS
1107 MAGICK_TARGET_VENDOR
1108 MAGICK_TARGET_CPU
1109 CONFIGURE_ARGS
1110 DISTCHECK_CONFIG_FLAGS
1111 CONFIGURE_DEPENDENCIES
1112 am__xargs_n
1113 am__rm_f_notfound
1114 AM_BACKSLASH
1115 AM_DEFAULT_VERBOSITY
1116 AM_DEFAULT_V
1117 AM_V
1118 CSCOPE
1119 ETAGS
1120 CTAGS
1121 am__untar
1122 am__tar
1123 AMTAR
1124 am__leading_dot
1125 SET_MAKE
1126 AWK
1127 mkdir_p
1128 MKDIR_P
1129 INSTALL_STRIP_PROGRAM
1130 STRIP
1131 install_sh
1132 MAKEINFO
1133 AUTOHEADER
1134 AUTOMAKE
1135 AUTOCONF
1136 ACLOCAL
1137 VERSION
1138 PACKAGE
1139 CYGPATH_W
1140 am__isrc
1141 INSTALL_DATA
1142 INSTALL_SCRIPT
1143 INSTALL_PROGRAM
1144 target_os
1145 target_vendor
1146 target_cpu
1147 target
1148 host_os
1149 host_vendor
1150 host_cpu
1151 host
1152 build_os
1153 build_vendor
1154 build_cpu
1155 build
1156 target_alias
1157 host_alias
1158 build_alias
1159 LIBS
1160 ECHO_T
1161 ECHO_N
1162 ECHO_C
1163 DEFS
1164 mandir
1165 localedir
1166 libdir
1167 psdir
1168 pdfdir
1169 dvidir
1170 htmldir
1171 infodir
1172 docdir
1173 oldincludedir
1174 includedir
1175 runstatedir
1176 localstatedir
1177 sharedstatedir
1178 sysconfdir
1179 datadir
1180 datarootdir
1181 libexecdir
1182 sbindir
1183 bindir
1184 program_transform_name
1185 prefix
1186 exec_prefix
1187 PACKAGE_URL
1188 PACKAGE_BUGREPORT
1189 PACKAGE_STRING
1190 PACKAGE_VERSION
1191 PACKAGE_TARNAME
1192 PACKAGE_NAME
1193 PATH_SEPARATOR
1194 SHELL
1195 am__quote'
1196 ac_subst_files=''
1197 ac_user_opts='
1198 enable_option_checking
1199 enable_silent_rules
1200 enable_dependency_tracking
1201 with_gnu_ld
1202 with_dmalloc
1203 with_gcc_arch
1204 enable_ld_version_script
1205 enable_bounds_checking
1206 enable_osx_universal_binary
1207 with_includearch_dir
1208 with_sharearch_dir
1209 with_pkgconfigdir
1210 with_threads
1211 enable_openmp
1212 enable_opencl
1213 enable_largefile
1214 enable_shared
1215 enable_static
1216 enable_pic
1217 with_pic
1218 enable_fast_install
1219 enable_aix_soname
1220 with_aix_soname
1221 with_sysroot
1222 enable_libtool_lock
1223 with_modules
1224 enable_delegate_build
1225 enable_deprecated
1226 enable_installed
1227 enable_zero_configuration
1228 enable_hdri
1229 enable_dpc
1230 enable_pipes
1231 enable_maintainer_mode
1232 enable_hugepages
1233 enable_ccmalloc
1234 enable_efence
1235 enable_prof
1236 enable_gprof
1237 enable_gcov
1238 with_method_prefix
1239 enable_legacy_support
1240 with_utilities
1241 with_quantum_depth
1242 with_cache
1243 with_security_policy
1244 with_frozenpaths
1245 with_magick_plus_plus
1246 with_package_release_name
1247 with_perl
1248 with_perl_options
1249 with_jemalloc
1250 with_mtmalloc
1251 with_tcmalloc
1252 with_umem
1253 with_libstdc
1254 enable_assert
1255 with_bzlib
1256 with_x
1257 with_zip
1258 with_zlib
1259 with_zstd
1260 with_apple_font_dir
1261 with_autotrace
1262 with_dps
1263 with_dejavu_font_dir
1264 with_fftw
1265 with_flif
1266 with_fpx
1267 with_djvu
1268 with_fontconfig
1269 with_freetype
1270 with_raqm
1271 with_gdi32
1272 with_gslib
1273 with_fontpath
1274 with_gs_font_dir
1275 with_gvc
1276 with_dmr
1277 with_heic
1278 with_jbig
1279 with_jpeg
1280 with_jxl
1281 with_lcms
1282 with_openjp2
1283 with_lqr
1284 with_lzma
1285 with_openexr
1286 with_pango
1287 with_png
1288 with_raw
1289 with_rsvg
1290 with_tiff
1291 with_uhdr
1292 with_urw_base35_font_dir
1293 with_urw_base35_type1_font_dir
1294 with_webp
1295 with_windows_font_dir
1296 with_wmf
1297 with_xml
1298 enable_docs
1299 enable_cipher
1300 enable_64bit_channel_masks
1301 enable_force_cpp
1302 enable_year2038
1303 '
1304 ac_precious_vars='build_alias
1305 host_alias
1306 target_alias
1307 CC
1308 CFLAGS
1309 LDFLAGS
1310 LIBS
1311 CPPFLAGS
1312 CXX
1313 CXXFLAGS
1314 CCC
1315 CPP
1316 PKG_CONFIG
1317 PKG_CONFIG_PATH
1318 PKG_CONFIG_LIBDIR
1319 LT_SYS_LIBRARY_PATH
1320 CXXCPP
1321 BZLIB_CFLAGS
1322 BZLIB_LIBS
1323 XMKMF
1324 ZIP_CFLAGS
1325 ZIP_LIBS
1326 ZLIB_CFLAGS
1327 ZLIB_LIBS
1328 LIBZSTD_CFLAGS
1329 LIBZSTD_LIBS
1330 AUTOTRACE_CFLAGS
1331 AUTOTRACE_LIBS
1332 fftw3_CFLAGS
1333 fftw3_LIBS
1334 ddjvuapi_CFLAGS
1335 ddjvuapi_LIBS
1336 FONTCONFIG_CFLAGS
1337 FONTCONFIG_LIBS
1338 FREETYPE_CFLAGS
1339 FREETYPE_LIBS
1340 RAQM_CFLAGS
1341 RAQM_LIBS
1342 GVC_CFLAGS
1343 GVC_LIBS
1344 MagickCache_CFLAGS
1345 MagickCache_LIBS
1346 HEIF_CFLAGS
1347 HEIF_LIBS
1348 JPEG_CFLAGS
1349 JPEG_LIBS
1350 JXL_CFLAGS
1351 JXL_LIBS
1352 LCMS2_CFLAGS
1353 LCMS2_LIBS
1354 LIBOPENJP2_CFLAGS
1355 LIBOPENJP2_LIBS
1356 LQR_CFLAGS
1357 LQR_LIBS
1358 LZMA_CFLAGS
1359 LZMA_LIBS
1360 OPENEXR_CFLAGS
1361 OPENEXR_LIBS
1362 PANGO_CFLAGS
1363 PANGO_LIBS
1364 PNG_CFLAGS
1365 PNG_LIBS
1366 RAW_R_CFLAGS
1367 RAW_R_LIBS
1368 RSVG_CFLAGS
1369 RSVG_LIBS
1370 CAIRO_SVG_CFLAGS
1371 CAIRO_SVG_LIBS
1372 TIFF_CFLAGS
1373 TIFF_LIBS
1374 UHDR_CFLAGS
1375 UHDR_LIBS
1376 WEBP_CFLAGS
1377 WEBP_LIBS
1378 WEBPMUX_CFLAGS
1379 WEBPMUX_LIBS
1380 XML_CFLAGS
1381 XML_LIBS'
1382
1383
1384 # Initialize some variables set by options.
1385 ac_init_help=
1386 ac_init_version=false
1387 ac_unrecognized_opts=
1388 ac_unrecognized_sep=
1389 # The variables have the same names as the options, with
1390 # dashes changed to underlines.
1391 cache_file=/dev/null
1392 exec_prefix=NONE
1393 no_create=
1394 no_recursion=
1395 prefix=NONE
1396 program_prefix=NONE
1397 program_suffix=NONE
1398 program_transform_name=s,x,x,
1399 silent=
1400 site=
1401 srcdir=
1402 verbose=
1403 x_includes=NONE
1404 x_libraries=NONE
1405
1406 # Installation directory options.
1407 # These are left unexpanded so users can "make install exec_prefix=/foo"
1408 # and all the variables that are supposed to be based on exec_prefix
1409 # by default will actually change.
1410 # Use braces instead of parens because sh, perl, etc. also accept them.
1411 # (The list follows the same order as the GNU Coding Standards.)
1412 bindir='${exec_prefix}/bin'
1413 sbindir='${exec_prefix}/sbin'
1414 libexecdir='${exec_prefix}/libexec'
1415 datarootdir='${prefix}/share'
1416 datadir='${datarootdir}'
1417 sysconfdir='${prefix}/etc'
1418 sharedstatedir='${prefix}/com'
1419 localstatedir='${prefix}/var'
1420 runstatedir='${localstatedir}/run'
1421 includedir='${prefix}/include'
1422 oldincludedir='/usr/include'
1423 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1424 infodir='${datarootdir}/info'
1425 htmldir='${docdir}'
1426 dvidir='${docdir}'
1427 pdfdir='${docdir}'
1428 psdir='${docdir}'
1429 libdir='${exec_prefix}/lib'
1430 localedir='${datarootdir}/locale'
1431 mandir='${datarootdir}/man'
1432
1433 ac_prev=
1434 ac_dashdash=
1435 for ac_option
1436 do
1437 # If the previous option needs an argument, assign it.
1438 if test -n "$ac_prev"; then
1439 eval $ac_prev=\$ac_option
1440 ac_prev=
1441 continue
1442 fi
1443
1444 case $ac_option in
1445 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1446 *=) ac_optarg= ;;
1447 *) ac_optarg=yes ;;
1448 esac
1449
1450 case $ac_dashdash$ac_option in
1451 --)
1452 ac_dashdash=yes ;;
1453
1454 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1455 ac_prev=bindir ;;
1456 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1457 bindir=$ac_optarg ;;
1458
1459 -build | --build | --buil | --bui | --bu)
1460 ac_prev=build_alias ;;
1461 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1462 build_alias=$ac_optarg ;;
1463
1464 -cache-file | --cache-file | --cache-fil | --cache-fi \
1465 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1466 ac_prev=cache_file ;;
1467 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1468 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1469 cache_file=$ac_optarg ;;
1470
1471 --config-cache | -C)
1472 cache_file=config.cache ;;
1473
1474 -datadir | --datadir | --datadi | --datad)
1475 ac_prev=datadir ;;
1476 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1477 datadir=$ac_optarg ;;
1478
1479 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1480 | --dataroo | --dataro | --datar)
1481 ac_prev=datarootdir ;;
1482 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1483 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1484 datarootdir=$ac_optarg ;;
1485
1486 -disable-* | --disable-*)
1487 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1488 # Reject names that are not valid shell variable names.
1489 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1490 as_fn_error $? "invalid feature name: '$ac_useropt'"
1491 ac_useropt_orig=$ac_useropt
1492 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1493 case $ac_user_opts in
1494 *"
1495 "enable_$ac_useropt"
1496 "*) ;;
1497 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1498 ac_unrecognized_sep=', ';;
1499 esac
1500 eval enable_$ac_useropt=no ;;
1501
1502 -docdir | --docdir | --docdi | --doc | --do)
1503 ac_prev=docdir ;;
1504 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1505 docdir=$ac_optarg ;;
1506
1507 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1508 ac_prev=dvidir ;;
1509 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1510 dvidir=$ac_optarg ;;
1511
1512 -enable-* | --enable-*)
1513 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1514 # Reject names that are not valid shell variable names.
1515 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1516 as_fn_error $? "invalid feature name: '$ac_useropt'"
1517 ac_useropt_orig=$ac_useropt
1518 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1519 case $ac_user_opts in
1520 *"
1521 "enable_$ac_useropt"
1522 "*) ;;
1523 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1524 ac_unrecognized_sep=', ';;
1525 esac
1526 eval enable_$ac_useropt=\$ac_optarg ;;
1527
1528 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1529 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1530 | --exec | --exe | --ex)
1531 ac_prev=exec_prefix ;;
1532 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1533 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1534 | --exec=* | --exe=* | --ex=*)
1535 exec_prefix=$ac_optarg ;;
1536
1537 -gas | --gas | --ga | --g)
1538 # Obsolete; use --with-gas.
1539 with_gas=yes ;;
1540
1541 -help | --help | --hel | --he | -h)
1542 ac_init_help=long ;;
1543 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1544 ac_init_help=recursive ;;
1545 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1546 ac_init_help=short ;;
1547
1548 -host | --host | --hos | --ho)
1549 ac_prev=host_alias ;;
1550 -host=* | --host=* | --hos=* | --ho=*)
1551 host_alias=$ac_optarg ;;
1552
1553 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1554 ac_prev=htmldir ;;
1555 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1556 | --ht=*)
1557 htmldir=$ac_optarg ;;
1558
1559 -includedir | --includedir | --includedi | --included | --include \
1560 | --includ | --inclu | --incl | --inc)
1561 ac_prev=includedir ;;
1562 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1563 | --includ=* | --inclu=* | --incl=* | --inc=*)
1564 includedir=$ac_optarg ;;
1565
1566 -infodir | --infodir | --infodi | --infod | --info | --inf)
1567 ac_prev=infodir ;;
1568 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1569 infodir=$ac_optarg ;;
1570
1571 -libdir | --libdir | --libdi | --libd)
1572 ac_prev=libdir ;;
1573 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1574 libdir=$ac_optarg ;;
1575
1576 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1577 | --libexe | --libex | --libe)
1578 ac_prev=libexecdir ;;
1579 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1580 | --libexe=* | --libex=* | --libe=*)
1581 libexecdir=$ac_optarg ;;
1582
1583 -localedir | --localedir | --localedi | --localed | --locale)
1584 ac_prev=localedir ;;
1585 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1586 localedir=$ac_optarg ;;
1587
1588 -localstatedir | --localstatedir | --localstatedi | --localstated \
1589 | --localstate | --localstat | --localsta | --localst | --locals)
1590 ac_prev=localstatedir ;;
1591 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1592 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1593 localstatedir=$ac_optarg ;;
1594
1595 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1596 ac_prev=mandir ;;
1597 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1598 mandir=$ac_optarg ;;
1599
1600 -nfp | --nfp | --nf)
1601 # Obsolete; use --without-fp.
1602 with_fp=no ;;
1603
1604 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1605 | --no-cr | --no-c | -n)
1606 no_create=yes ;;
1607
1608 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1609 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1610 no_recursion=yes ;;
1611
1612 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1613 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1614 | --oldin | --oldi | --old | --ol | --o)
1615 ac_prev=oldincludedir ;;
1616 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1617 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1618 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1619 oldincludedir=$ac_optarg ;;
1620
1621 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1622 ac_prev=prefix ;;
1623 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1624 prefix=$ac_optarg ;;
1625
1626 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1627 | --program-pre | --program-pr | --program-p)
1628 ac_prev=program_prefix ;;
1629 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1630 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1631 program_prefix=$ac_optarg ;;
1632
1633 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1634 | --program-suf | --program-su | --program-s)
1635 ac_prev=program_suffix ;;
1636 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1637 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1638 program_suffix=$ac_optarg ;;
1639
1640 -program-transform-name | --program-transform-name \
1641 | --program-transform-nam | --program-transform-na \
1642 | --program-transform-n | --program-transform- \
1643 | --program-transform | --program-transfor \
1644 | --program-transfo | --program-transf \
1645 | --program-trans | --program-tran \
1646 | --progr-tra | --program-tr | --program-t)
1647 ac_prev=program_transform_name ;;
1648 -program-transform-name=* | --program-transform-name=* \
1649 | --program-transform-nam=* | --program-transform-na=* \
1650 | --program-transform-n=* | --program-transform-=* \
1651 | --program-transform=* | --program-transfor=* \
1652 | --program-transfo=* | --program-transf=* \
1653 | --program-trans=* | --program-tran=* \
1654 | --progr-tra=* | --program-tr=* | --program-t=*)
1655 program_transform_name=$ac_optarg ;;
1656
1657 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1658 ac_prev=pdfdir ;;
1659 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1660 pdfdir=$ac_optarg ;;
1661
1662 -psdir | --psdir | --psdi | --psd | --ps)
1663 ac_prev=psdir ;;
1664 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1665 psdir=$ac_optarg ;;
1666
1667 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1668 | -silent | --silent | --silen | --sile | --sil)
1669 silent=yes ;;
1670
1671 -runstatedir | --runstatedir | --runstatedi | --runstated \
1672 | --runstate | --runstat | --runsta | --runst | --runs \
1673 | --run | --ru | --r)
1674 ac_prev=runstatedir ;;
1675 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1676 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1677 | --run=* | --ru=* | --r=*)
1678 runstatedir=$ac_optarg ;;
1679
1680 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1681 ac_prev=sbindir ;;
1682 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1683 | --sbi=* | --sb=*)
1684 sbindir=$ac_optarg ;;
1685
1686 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1687 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1688 | --sharedst | --shareds | --shared | --share | --shar \
1689 | --sha | --sh)
1690 ac_prev=sharedstatedir ;;
1691 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1692 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1693 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1694 | --sha=* | --sh=*)
1695 sharedstatedir=$ac_optarg ;;
1696
1697 -site | --site | --sit)
1698 ac_prev=site ;;
1699 -site=* | --site=* | --sit=*)
1700 site=$ac_optarg ;;
1701
1702 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1703 ac_prev=srcdir ;;
1704 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1705 srcdir=$ac_optarg ;;
1706
1707 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1708 | --syscon | --sysco | --sysc | --sys | --sy)
1709 ac_prev=sysconfdir ;;
1710 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1711 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1712 sysconfdir=$ac_optarg ;;
1713
1714 -target | --target | --targe | --targ | --tar | --ta | --t)
1715 ac_prev=target_alias ;;
1716 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1717 target_alias=$ac_optarg ;;
1718
1719 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1720 verbose=yes ;;
1721
1722 -version | --version | --versio | --versi | --vers | -V)
1723 ac_init_version=: ;;
1724
1725 -with-* | --with-*)
1726 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1727 # Reject names that are not valid shell variable names.
1728 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1729 as_fn_error $? "invalid package name: '$ac_useropt'"
1730 ac_useropt_orig=$ac_useropt
1731 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1732 case $ac_user_opts in
1733 *"
1734 "with_$ac_useropt"
1735 "*) ;;
1736 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1737 ac_unrecognized_sep=', ';;
1738 esac
1739 eval with_$ac_useropt=\$ac_optarg ;;
1740
1741 -without-* | --without-*)
1742 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1743 # Reject names that are not valid shell variable names.
1744 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1745 as_fn_error $? "invalid package name: '$ac_useropt'"
1746 ac_useropt_orig=$ac_useropt
1747 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1748 case $ac_user_opts in
1749 *"
1750 "with_$ac_useropt"
1751 "*) ;;
1752 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1753 ac_unrecognized_sep=', ';;
1754 esac
1755 eval with_$ac_useropt=no ;;
1756
1757 --x)
1758 # Obsolete; use --with-x.
1759 with_x=yes ;;
1760
1761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1762 | --x-incl | --x-inc | --x-in | --x-i)
1763 ac_prev=x_includes ;;
1764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1766 x_includes=$ac_optarg ;;
1767
1768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1770 ac_prev=x_libraries ;;
1771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1773 x_libraries=$ac_optarg ;;
1774
1775 -*) as_fn_error $? "unrecognized option: '$ac_option'
1776 Try '$0 --help' for more information"
1777 ;;
1778
1779 *=*)
1780 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1781 # Reject names that are not valid shell variable names.
1782 case $ac_envvar in #(
1783 '' | [0-9]* | *[!_$as_cr_alnum]* )
1784 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1785 esac
1786 eval $ac_envvar=\$ac_optarg
1787 export $ac_envvar ;;
1788
1789 *)
1790 # FIXME: should be removed in autoconf 3.0.
1791 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1793 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1794 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1795 ;;
1796
1797 esac
1798 done
1799
1800 if test -n "$ac_prev"; then
1801 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1802 as_fn_error $? "missing argument to $ac_option"
1803 fi
1804
1805 if test -n "$ac_unrecognized_opts"; then
1806 case $enable_option_checking in
1807 no) ;;
1808 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1809 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1810 esac
1811 fi
1812
1813 # Check all directory arguments for consistency.
1814 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1815 datadir sysconfdir sharedstatedir localstatedir includedir \
1816 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1817 libdir localedir mandir runstatedir
1818 do
1819 eval ac_val=\$$ac_var
1820 # Remove trailing slashes.
1821 case $ac_val in
1822 */ )
1823 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1824 eval $ac_var=\$ac_val;;
1825 esac
1826 # Be sure to have absolute directory names.
1827 case $ac_val in
1828 [\\/$]* | ?:[\\/]* ) continue;;
1829 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1830 esac
1831 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1832 done
1833
1834 # There might be people who depend on the old broken behavior: '$host'
1835 # used to hold the argument of --host etc.
1836 # FIXME: To remove some day.
1837 build=$build_alias
1838 host=$host_alias
1839 target=$target_alias
1840
1841 # FIXME: To remove some day.
1842 if test "x$host_alias" != x; then
1843 if test "x$build_alias" = x; then
1844 cross_compiling=maybe
1845 elif test "x$build_alias" != "x$host_alias"; then
1846 cross_compiling=yes
1847 fi
1848 fi
1849
1850 ac_tool_prefix=
1851 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1852
1853 test "$silent" = yes && exec 6>/dev/null
1854
1855
1856 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1857 ac_ls_di=`ls -di .` &&
1858 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1859 as_fn_error $? "working directory cannot be determined"
1860 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1861 as_fn_error $? "pwd does not report name of working directory"
1862
1863
1864 # Find the source files, if location was not specified.
1865 if test -z "$srcdir"; then
1866 ac_srcdir_defaulted=yes
1867 # Try the directory containing this script, then the parent directory.
1868 ac_confdir=`$as_dirname -- "$as_myself" ||
1869 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1870 X"$as_myself" : 'X\(//\)[^/]' \| \
1871 X"$as_myself" : 'X\(//\)$' \| \
1872 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1873 printf "%s\n" X"$as_myself" |
1874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1875 s//\1/
1876 q
1877 }
1878 /^X\(\/\/\)[^/].*/{
1879 s//\1/
1880 q
1881 }
1882 /^X\(\/\/\)$/{
1883 s//\1/
1884 q
1885 }
1886 /^X\(\/\).*/{
1887 s//\1/
1888 q
1889 }
1890 s/.*/./; q'`
1891 srcdir=$ac_confdir
1892 if test ! -r "$srcdir/$ac_unique_file"; then
1893 srcdir=..
1894 fi
1895 else
1896 ac_srcdir_defaulted=no
1897 fi
1898 if test ! -r "$srcdir/$ac_unique_file"; then
1899 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1900 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1901 fi
1902 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1903 ac_abs_confdir=`(
1904 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1905 pwd)`
1906 # When building in place, set srcdir=.
1907 if test "$ac_abs_confdir" = "$ac_pwd"; then
1908 srcdir=.
1909 fi
1910 # Remove unnecessary trailing slashes from srcdir.
1911 # Double slashes in file names in object file debugging info
1912 # mess up M-x gdb in Emacs.
1913 case $srcdir in
1914 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1915 esac
1916 for ac_var in $ac_precious_vars; do
1917 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1918 eval ac_env_${ac_var}_value=\$${ac_var}
1919 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1920 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1921 done
1922
1923 #
1924 # Report the --help message.
1925 #
1926 if test "$ac_init_help" = "long"; then
1927 # Omit some internal or obsolete options to make the list less imposing.
1928 # This message is too long to be a string in the A/UX 3.1 sh.
1929 cat <<_ACEOF
1930 'configure' configures ImageMagick 7.1.2-27 to adapt to many kinds of systems.
1931
1932 Usage: $0 [OPTION]... [VAR=VALUE]...
1933
1934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1935 VAR=VALUE. See below for descriptions of some of the useful variables.
1936
1937 Defaults for the options are specified in brackets.
1938
1939 Configuration:
1940 -h, --help display this help and exit
1941 --help=short display options specific to this package
1942 --help=recursive display the short help of all the included packages
1943 -V, --version display version information and exit
1944 -q, --quiet, --silent do not print 'checking ...' messages
1945 --cache-file=FILE cache test results in FILE [disabled]
1946 -C, --config-cache alias for '--cache-file=config.cache'
1947 -n, --no-create do not create output files
1948 --srcdir=DIR find the sources in DIR [configure dir or '..']
1949
1950 Installation directories:
1951 --prefix=PREFIX install architecture-independent files in PREFIX
1952 [$ac_default_prefix]
1953 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1954 [PREFIX]
1955
1956 By default, 'make install' will install all the files in
1957 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1958 an installation prefix other than '$ac_default_prefix' using '--prefix',
1959 for instance '--prefix=\$HOME'.
1960
1961 For better control, use the options below.
1962
1963 Fine tuning of the installation directories:
1964 --bindir=DIR user executables [EPREFIX/bin]
1965 --sbindir=DIR system admin executables [EPREFIX/sbin]
1966 --libexecdir=DIR program executables [EPREFIX/libexec]
1967 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1968 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1969 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1970 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1971 --libdir=DIR object code libraries [EPREFIX/lib]
1972 --includedir=DIR C header files [PREFIX/include]
1973 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1974 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1975 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1976 --infodir=DIR info documentation [DATAROOTDIR/info]
1977 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1978 --mandir=DIR man documentation [DATAROOTDIR/man]
1979 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1980 --htmldir=DIR html documentation [DOCDIR]
1981 --dvidir=DIR dvi documentation [DOCDIR]
1982 --pdfdir=DIR pdf documentation [DOCDIR]
1983 --psdir=DIR ps documentation [DOCDIR]
1984 _ACEOF
1985
1986 cat <<\_ACEOF
1987
1988 Program names:
1989 --program-prefix=PREFIX prepend PREFIX to installed program names
1990 --program-suffix=SUFFIX append SUFFIX to installed program names
1991 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1992
1993 X features:
1994 --x-includes=DIR X include files are in DIR
1995 --x-libraries=DIR X library files are in DIR
1996
1997 System types:
1998 --build=BUILD configure for building on BUILD [guessed]
1999 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2000 --target=TARGET configure for building compilers for TARGET [HOST]
2001 _ACEOF
2002 fi
2003
2004 if test -n "$ac_init_help"; then
2005 case $ac_init_help in
2006 short | recursive ) echo "Configuration of ImageMagick 7.1.2-27:";;
2007 esac
2008 cat <<\_ACEOF
2009
2010 Optional Features:
2011 --disable-option-checking ignore unrecognized --enable/--with options
2012 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2013 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2014 --enable-silent-rules less verbose build output (undo: "make V=1")
2015 --disable-silent-rules verbose build output (undo: "make V=0")
2016 --enable-dependency-tracking
2017 do not reject slow dependency extractors
2018 --disable-dependency-tracking
2019 speeds up one-time build
2020 --enable-ld-version-script
2021 enable linker version script (default is enabled
2022 when possible)
2023 --enable-bounds-checking
2024 enable run-time bounds-checking
2025 --enable-osx-universal-binary
2026 build universal binary on OS X [[default=no]]
2027 --disable-openmp do not use OpenMP
2028 --enable-opencl use OpenCL
2029 --disable-largefile omit support for large files
2030 --enable-shared[=PKGS] build shared libraries [default=yes]
2031 --enable-static[=PKGS] build static libraries [default=yes]
2032 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2033 both]
2034 --enable-fast-install[=PKGS]
2035 optimize for fast installation [default=yes]
2036 --enable-aix-soname=aix|svr4|both
2037 shared library versioning (aka "SONAME") variant to
2038 provide on AIX, [default=aix].
2039 --disable-libtool-lock avoid locking (might break parallel builds)
2040 --enable-delegate-build look for delegate libraries in build directory
2041 --disable-deprecated exclude deprecated methods in MagickCore and
2042 MagickWand APIs
2043 --disable-installed Formally install ImageMagick under PREFIX
2044 --enable-zero-configuration
2045 enable self-contained, embeddable,
2046 zero-configuration ImageMagick
2047 --enable-hdri accurately represent the wide range of intensity
2048 levels found in real scenes
2049 --disable-dpc disable distributed pixel cache support
2050 --enable-pipes enable pipes (|) in filenames. Be sure to properly
2051 validate and sanitize user input to prevent
2052 malicious behaviors.
2053 --enable-maintainer-mode
2054 enable make rules and dependencies not useful (and
2055 sometimes confusing) to the casual installer
2056 --enable-hugepages enable 'huge pages' support
2057 --enable-ccmalloc enable 'ccmalloc' memory debug support
2058 --enable-efence enable 'efence' memory debug support
2059 --enable-prof enable 'prof' profiling support
2060 --enable-gprof enable 'gprof' profiling support
2061 --enable-gcov enable 'gcov' profiling support
2062 --enable-legacy-support install legacy command-line utilities (default disabled)
2063 --disable-assert turn off assertions
2064 --disable-docs disable building of documentation
2065 --disable-cipher disable enciphering and deciphering image pixels
2066 --enable-64bit-channel-masks
2067 enable 64-bit channel masks
2068 --enable-force-cpp treat the input files as C++ code
2069 --enable-year2038 support timestamps after 2038
2070
2071 Optional Packages:
2072 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2073 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2074 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2075 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
2076 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
2077 instead of guessing
2078 --with-includearch-dir=DIR
2079 ARCH specific include directory [INCLUDEDIR]
2080 --with-sharearch-dir=DIR
2081 ARCH specific config directory [LIBDIR]
2082 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
2083 --without-threads disable POSIX threads API support
2084 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
2085 compiler's sysroot if not specified).
2086 --with-modules enable building dynamically loadable modules
2087 --with-method-prefix=PREFIX
2088 prefix MagickCore API methods
2089 --with-utilities enable building command-line utilities (default yes)
2090 --with-quantum-depth=DEPTH
2091 number of bits in a pixel quantum (default 16)
2092 --with-cache=THRESHOLD set pixel cache memory threshold (default available
2093 memory)
2094 --with-security-policy=open|limited|secure|websafe
2095 security policy variant to enforce, [default=open].
2096 --with-frozenpaths freeze delegate paths
2097 --without-magick-plus-plus
2098 disable build/install of Magick++
2099 --with-package-release-name=NAME
2100 encode this name into the shared library
2101 --with-perl enable build/install of PerlMagick
2102 --with-perl-options=OPTIONS
2103 options to pass on command-line when generating
2104 PerlMagick build file
2105 --with-jemalloc enable jemalloc memory allocation library support
2106 --with-mtmalloc enable mtmalloc memory allocation library support
2107 --with-tcmalloc enable tcmalloc memory allocation library support
2108 --with-umem enable umem memory allocation library support
2109 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
2110 --without-bzlib disable BZLIB support
2111 --with-x use the X Window System
2112 --without-zip disable ZIP support
2113 --without-zlib disable ZLIB support
2114 --without-zstd disable ZSTD support
2115 --with-apple-font-dir=DIR
2116 Apple font directory
2117 --with-autotrace enable autotrace support
2118 --with-dps enable Display Postscript support
2119 --with-dejavu-font-dir=DIR
2120 DejaVu font directory
2121 --with-fftw enable FFTW support
2122 --with-flif enable FLIF support
2123 --with-fpx enable FlashPIX support
2124 --without-djvu disable DjVu support
2125 --without-fontconfig disable fontconfig support
2126 --without-freetype disable Freetype support
2127 --without-raqm disable Raqm support
2128 --without-gdi32 disable Windows gdi32 support
2129 --with-gslib enable Ghostscript library support
2130 --with-fontpath=DIR prepend to default font search path
2131 --with-gs-font-dir=DIR Ghostscript font directory
2132 --with-gvc enable GVC support
2133 --without-dmr disable digital media repository support
2134 --without-heic disable HEIC support
2135 --without-jbig disable JBIG support
2136 --without-jpeg disable JPEG support
2137 --without-jxl disable JPEG-XL support
2138 --without-lcms disable lcms (v1.1X) support
2139 --without-openjp2 disable OpenJP2 support
2140 --without-lqr disable Liquid Rescale support
2141 --without-lzma disable LZMA support
2142 --without-openexr disable OpenEXR support
2143 --without-pango disable PANGO support
2144 --without-png disable PNG support
2145 --without-raw disable Raw support
2146 --with-rsvg enable RSVG support
2147 --without-tiff disable TIFF support
2148 --with-uhdr enable google ultrahdr support
2149 --with-urw-base35-font-dir=DIR
2150 URW-base35 font directory
2151 --with-urw-base35-type1-font-dir=DIR
2152 URW-base35 font directory
2153 --without-webp disable WEBP support
2154 --with-windows-font-dir=DIR
2155 Windows font directory
2156 --with-wmf enable WMF support
2157 --without-xml disable XML support
2158
2159 Some influential environment variables:
2160 CC C compiler command
2161 CFLAGS C compiler flags
2162 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2163 nonstandard directory <lib dir>
2164 LIBS libraries to pass to the linker, e.g. -l<library>
2165 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2166 you have headers in a nonstandard directory <include dir>
2167 CXX C++ compiler command
2168 CXXFLAGS C++ compiler flags
2169 CPP C preprocessor
2170 PKG_CONFIG path to pkg-config utility
2171 PKG_CONFIG_PATH
2172 directories to add to pkg-config's search path
2173 PKG_CONFIG_LIBDIR
2174 path overriding pkg-config's built-in search path
2175 LT_SYS_LIBRARY_PATH
2176 User-defined run-time library search path.
2177 CXXCPP C++ preprocessor
2178 BZLIB_CFLAGS
2179 C compiler flags for BZLIB, overriding pkg-config
2180 BZLIB_LIBS linker flags for BZLIB, overriding pkg-config
2181 XMKMF Path to xmkmf, Makefile generator for X Window System
2182 ZIP_CFLAGS C compiler flags for ZIP, overriding pkg-config
2183 ZIP_LIBS linker flags for ZIP, overriding pkg-config
2184 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
2185 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
2186 LIBZSTD_CFLAGS
2187 C compiler flags for LIBZSTD, overriding pkg-config
2188 LIBZSTD_LIBS
2189 linker flags for LIBZSTD, overriding pkg-config
2190 AUTOTRACE_CFLAGS
2191 C compiler flags for AUTOTRACE, overriding pkg-config
2192 AUTOTRACE_LIBS
2193 linker flags for AUTOTRACE, overriding pkg-config
2194 fftw3_CFLAGS
2195 C compiler flags for fftw3, overriding pkg-config
2196 fftw3_LIBS linker flags for fftw3, overriding pkg-config
2197 ddjvuapi_CFLAGS
2198 C compiler flags for ddjvuapi, overriding pkg-config
2199 ddjvuapi_LIBS
2200 linker flags for ddjvuapi, overriding pkg-config
2201 FONTCONFIG_CFLAGS
2202 C compiler flags for FONTCONFIG, overriding pkg-config
2203 FONTCONFIG_LIBS
2204 linker flags for FONTCONFIG, overriding pkg-config
2205 FREETYPE_CFLAGS
2206 C compiler flags for FREETYPE, overriding pkg-config
2207 FREETYPE_LIBS
2208 linker flags for FREETYPE, overriding pkg-config
2209 RAQM_CFLAGS C compiler flags for RAQM, overriding pkg-config
2210 RAQM_LIBS linker flags for RAQM, overriding pkg-config
2211 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2212 GVC_LIBS linker flags for GVC, overriding pkg-config
2213 MagickCache_CFLAGS
2214 C compiler flags for MagickCache, overriding pkg-config
2215 MagickCache_LIBS
2216 linker flags for MagickCache, overriding pkg-config
2217 HEIF_CFLAGS C compiler flags for HEIF, overriding pkg-config
2218 HEIF_LIBS linker flags for HEIF, overriding pkg-config
2219 JPEG_CFLAGS C compiler flags for JPEG, overriding pkg-config
2220 JPEG_LIBS linker flags for JPEG, overriding pkg-config
2221 JXL_CFLAGS C compiler flags for JXL, overriding pkg-config
2222 JXL_LIBS linker flags for JXL, overriding pkg-config
2223 LCMS2_CFLAGS
2224 C compiler flags for LCMS2, overriding pkg-config
2225 LCMS2_LIBS linker flags for LCMS2, overriding pkg-config
2226 LIBOPENJP2_CFLAGS
2227 C compiler flags for LIBOPENJP2, overriding pkg-config
2228 LIBOPENJP2_LIBS
2229 linker flags for LIBOPENJP2, overriding pkg-config
2230 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2231 LQR_LIBS linker flags for LQR, overriding pkg-config
2232 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2233 LZMA_LIBS linker flags for LZMA, overriding pkg-config
2234 OPENEXR_CFLAGS
2235 C compiler flags for OPENEXR, overriding pkg-config
2236 OPENEXR_LIBS
2237 linker flags for OPENEXR, overriding pkg-config
2238 PANGO_CFLAGS
2239 C compiler flags for PANGO, overriding pkg-config
2240 PANGO_LIBS linker flags for PANGO, overriding pkg-config
2241 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config
2242 PNG_LIBS linker flags for PNG, overriding pkg-config
2243 RAW_R_CFLAGS
2244 C compiler flags for RAW_R, overriding pkg-config
2245 RAW_R_LIBS linker flags for RAW_R, overriding pkg-config
2246 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2247 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2248 CAIRO_SVG_CFLAGS
2249 C compiler flags for CAIRO_SVG, overriding pkg-config
2250 CAIRO_SVG_LIBS
2251 linker flags for CAIRO_SVG, overriding pkg-config
2252 TIFF_CFLAGS C compiler flags for TIFF, overriding pkg-config
2253 TIFF_LIBS linker flags for TIFF, overriding pkg-config
2254 UHDR_CFLAGS C compiler flags for UHDR, overriding pkg-config
2255 UHDR_LIBS linker flags for UHDR, overriding pkg-config
2256 WEBP_CFLAGS C compiler flags for WEBP, overriding pkg-config
2257 WEBP_LIBS linker flags for WEBP, overriding pkg-config
2258 WEBPMUX_CFLAGS
2259 C compiler flags for WEBPMUX, overriding pkg-config
2260 WEBPMUX_LIBS
2261 linker flags for WEBPMUX, overriding pkg-config
2262 XML_CFLAGS C compiler flags for XML, overriding pkg-config
2263 XML_LIBS linker flags for XML, overriding pkg-config
2264
2265 Use these variables to override the choices made by 'configure' or to help
2266 it to find libraries and programs with nonstandard names/locations.
2267
2268 Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>.
2269 ImageMagick home page: <https://imagemagick.org>.
2270 _ACEOF
2271 ac_status=$?
2272 fi
2273
2274 if test "$ac_init_help" = "recursive"; then
2275 # If there are subdirs, report their specific --help.
2276 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2277 test -d "$ac_dir" ||
2278 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2279 continue
2280 ac_builddir=.
2281
2282 case "$ac_dir" in
2283 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2284 *)
2285 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2286 # A ".." for each directory in $ac_dir_suffix.
2287 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2288 case $ac_top_builddir_sub in
2289 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2290 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2291 esac ;;
2292 esac
2293 ac_abs_top_builddir=$ac_pwd
2294 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2295 # for backward compatibility:
2296 ac_top_builddir=$ac_top_build_prefix
2297
2298 case $srcdir in
2299 .) # We are building in place.
2300 ac_srcdir=.
2301 ac_top_srcdir=$ac_top_builddir_sub
2302 ac_abs_top_srcdir=$ac_pwd ;;
2303 [\\/]* | ?:[\\/]* ) # Absolute name.
2304 ac_srcdir=$srcdir$ac_dir_suffix;
2305 ac_top_srcdir=$srcdir
2306 ac_abs_top_srcdir=$srcdir ;;
2307 *) # Relative name.
2308 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2309 ac_top_srcdir=$ac_top_build_prefix$srcdir
2310 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2311 esac
2312 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2313
2314 cd "$ac_dir" || { ac_status=$?; continue; }
2315 # Check for configure.gnu first; this name is used for a wrapper for
2316 # Metaconfig's "Configure" on case-insensitive file systems.
2317 if test -f "$ac_srcdir/configure.gnu"; then
2318 echo &&
2319 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2320 elif test -f "$ac_srcdir/configure"; then
2321 echo &&
2322 $SHELL "$ac_srcdir/configure" --help=recursive
2323 else
2324 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2325 fi || ac_status=$?
2326 cd "$ac_pwd" || { ac_status=$?; break; }
2327 done
2328 fi
2329
2330 test -n "$ac_init_help" && exit $ac_status
2331 if $ac_init_version; then
2332 cat <<\_ACEOF
2333 ImageMagick configure 7.1.2-27
2334 generated by GNU Autoconf 2.72
2335
2336 Copyright (C) 2023 Free Software Foundation, Inc.
2337 This configure script is free software; the Free Software Foundation
2338 gives unlimited permission to copy, distribute and modify it.
2339 _ACEOF
2340 exit
2341 fi
2342
2343 ## ------------------------ ##
2344 ## Autoconf initialization. ##
2345 ## ------------------------ ##
2346
2347 # ac_fn_c_try_compile LINENO
2348 # --------------------------
2349 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2350 ac_fn_c_try_compile ()
2351 {
2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353 rm -f conftest.$ac_objext conftest.beam
2354 if { { ac_try="$ac_compile"
2355 case "(($ac_try" in
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2358 esac
2359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2360 printf "%s\n" "$ac_try_echo"; } >&5
2361 (eval "$ac_compile") 2>conftest.err
2362 ac_status=$?
2363 if test -s conftest.err; then
2364 grep -v '^ *+' conftest.err >conftest.er1
2365 cat conftest.er1 >&5
2366 mv -f conftest.er1 conftest.err
2367 fi
2368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2369 test $ac_status = 0; } && {
2370 test -z "$ac_c_werror_flag" ||
2371 test ! -s conftest.err
2372 } && test -s conftest.$ac_objext
2373 then :
2374 ac_retval=0
2375 else case e in #(
2376 e) printf "%s\n" "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2378
2379 ac_retval=1 ;;
2380 esac
2381 fi
2382 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2383 as_fn_set_status $ac_retval
2384
2385 } # ac_fn_c_try_compile
2386
2387 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2388 # -------------------------------------------------------
2389 # Tests whether HEADER exists and can be compiled using the include files in
2390 # INCLUDES, setting the cache variable VAR accordingly.
2391 ac_fn_c_check_header_compile ()
2392 {
2393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2395 printf %s "checking for $2... " >&6; }
2396 if eval test \${$3+y}
2397 then :
2398 printf %s "(cached) " >&6
2399 else case e in #(
2400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h. */
2402 $4
2403 #include <$2>
2404 _ACEOF
2405 if ac_fn_c_try_compile "$LINENO"
2406 then :
2407 eval "$3=yes"
2408 else case e in #(
2409 e) eval "$3=no" ;;
2410 esac
2411 fi
2412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2413 esac
2414 fi
2415 eval ac_res=\$$3
2416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2417 printf "%s\n" "$ac_res" >&6; }
2418 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2419
2420 } # ac_fn_c_check_header_compile
2421
2422 # ac_fn_cxx_try_compile LINENO
2423 # ----------------------------
2424 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2425 ac_fn_cxx_try_compile ()
2426 {
2427 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2428 rm -f conftest.$ac_objext conftest.beam
2429 if { { ac_try="$ac_compile"
2430 case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2433 esac
2434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2435 printf "%s\n" "$ac_try_echo"; } >&5
2436 (eval "$ac_compile") 2>conftest.err
2437 ac_status=$?
2438 if test -s conftest.err; then
2439 grep -v '^ *+' conftest.err >conftest.er1
2440 cat conftest.er1 >&5
2441 mv -f conftest.er1 conftest.err
2442 fi
2443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2444 test $ac_status = 0; } && {
2445 test -z "$ac_cxx_werror_flag" ||
2446 test ! -s conftest.err
2447 } && test -s conftest.$ac_objext
2448 then :
2449 ac_retval=0
2450 else case e in #(
2451 e) printf "%s\n" "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2453
2454 ac_retval=1 ;;
2455 esac
2456 fi
2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2458 as_fn_set_status $ac_retval
2459
2460 } # ac_fn_cxx_try_compile
2461
2462 # ac_fn_c_try_cpp LINENO
2463 # ----------------------
2464 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2465 ac_fn_c_try_cpp ()
2466 {
2467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2468 if { { ac_try="$ac_cpp conftest.$ac_ext"
2469 case "(($ac_try" in
2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471 *) ac_try_echo=$ac_try;;
2472 esac
2473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2474 printf "%s\n" "$ac_try_echo"; } >&5
2475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2476 ac_status=$?
2477 if test -s conftest.err; then
2478 grep -v '^ *+' conftest.err >conftest.er1
2479 cat conftest.er1 >&5
2480 mv -f conftest.er1 conftest.err
2481 fi
2482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2483 test $ac_status = 0; } > conftest.i && {
2484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2485 test ! -s conftest.err
2486 }
2487 then :
2488 ac_retval=0
2489 else case e in #(
2490 e) printf "%s\n" "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492
2493 ac_retval=1 ;;
2494 esac
2495 fi
2496 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2497 as_fn_set_status $ac_retval
2498
2499 } # ac_fn_c_try_cpp
2500
2501 # ac_fn_c_try_run LINENO
2502 # ----------------------
2503 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2504 # executables *can* be run.
2505 ac_fn_c_try_run ()
2506 {
2507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508 if { { ac_try="$ac_link"
2509 case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2512 esac
2513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2514 printf "%s\n" "$ac_try_echo"; } >&5
2515 (eval "$ac_link") 2>&5
2516 ac_status=$?
2517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2518 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2519 { { case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2522 esac
2523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2524 printf "%s\n" "$ac_try_echo"; } >&5
2525 (eval "$ac_try") 2>&5
2526 ac_status=$?
2527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2528 test $ac_status = 0; }; }
2529 then :
2530 ac_retval=0
2531 else case e in #(
2532 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2533 printf "%s\n" "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2535
2536 ac_retval=$ac_status ;;
2537 esac
2538 fi
2539 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2541 as_fn_set_status $ac_retval
2542
2543 } # ac_fn_c_try_run
2544
2545 # ac_fn_c_try_link LINENO
2546 # -----------------------
2547 # Try to link conftest.$ac_ext, and return whether this succeeded.
2548 ac_fn_c_try_link ()
2549 {
2550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2551 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2552 if { { ac_try="$ac_link"
2553 case "(($ac_try" in
2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555 *) ac_try_echo=$ac_try;;
2556 esac
2557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2558 printf "%s\n" "$ac_try_echo"; } >&5
2559 (eval "$ac_link") 2>conftest.err
2560 ac_status=$?
2561 if test -s conftest.err; then
2562 grep -v '^ *+' conftest.err >conftest.er1
2563 cat conftest.er1 >&5
2564 mv -f conftest.er1 conftest.err
2565 fi
2566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2567 test $ac_status = 0; } && {
2568 test -z "$ac_c_werror_flag" ||
2569 test ! -s conftest.err
2570 } && test -s conftest$ac_exeext && {
2571 test "$cross_compiling" = yes ||
2572 test -x conftest$ac_exeext
2573 }
2574 then :
2575 ac_retval=0
2576 else case e in #(
2577 e) printf "%s\n" "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2579
2580 ac_retval=1 ;;
2581 esac
2582 fi
2583 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2584 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2585 # interfere with the next link command; also delete a directory that is
2586 # left behind by Apple's compiler. We do this before executing the actions.
2587 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2589 as_fn_set_status $ac_retval
2590
2591 } # ac_fn_c_try_link
2592
2593 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2594 # ------------------------------------------------------------------
2595 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2596 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2597 ac_fn_check_decl ()
2598 {
2599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2600 as_decl_name=`echo $2|sed 's/ *(.*//'`
2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2602 printf %s "checking whether $as_decl_name is declared... " >&6; }
2603 if eval test \${$3+y}
2604 then :
2605 printf %s "(cached) " >&6
2606 else case e in #(
2607 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2608 eval ac_save_FLAGS=\$$6
2609 as_fn_append $6 " $5"
2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611 /* end confdefs.h. */
2612 $4
2613 int
2614 main (void)
2615 {
2616 #ifndef $as_decl_name
2617 #ifdef __cplusplus
2618 (void) $as_decl_use;
2619 #else
2620 (void) $as_decl_name;
2621 #endif
2622 #endif
2623
2624 ;
2625 return 0;
2626 }
2627 _ACEOF
2628 if ac_fn_c_try_compile "$LINENO"
2629 then :
2630 eval "$3=yes"
2631 else case e in #(
2632 e) eval "$3=no" ;;
2633 esac
2634 fi
2635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2636 eval $6=\$ac_save_FLAGS
2637 ;;
2638 esac
2639 fi
2640 eval ac_res=\$$3
2641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642 printf "%s\n" "$ac_res" >&6; }
2643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2644
2645 } # ac_fn_check_decl
2646
2647 # ac_fn_c_check_func LINENO FUNC VAR
2648 # ----------------------------------
2649 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2650 ac_fn_c_check_func ()
2651 {
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2654 printf %s "checking for $2... " >&6; }
2655 if eval test \${$3+y}
2656 then :
2657 printf %s "(cached) " >&6
2658 else case e in #(
2659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660 /* end confdefs.h. */
2661 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2663 #define $2 innocuous_$2
2664
2665 /* System header to define __stub macros and hopefully few prototypes,
2666 which can conflict with char $2 (void); below. */
2667
2668 #include <limits.h>
2669 #undef $2
2670
2671 /* Override any GCC internal prototype to avoid an error.
2672 Use char because int might match the return type of a GCC
2673 builtin and then its argument prototype would still apply. */
2674 #ifdef __cplusplus
2675 extern "C"
2676 #endif
2677 char $2 (void);
2678 /* The GNU C library defines this for functions which it implements
2679 to always fail with ENOSYS. Some functions are actually named
2680 something starting with __ and the normal name is an alias. */
2681 #if defined __stub_$2 || defined __stub___$2
2682 choke me
2683 #endif
2684
2685 int
2686 main (void)
2687 {
2688 return $2 ();
2689 ;
2690 return 0;
2691 }
2692 _ACEOF
2693 if ac_fn_c_try_link "$LINENO"
2694 then :
2695 eval "$3=yes"
2696 else case e in #(
2697 e) eval "$3=no" ;;
2698 esac
2699 fi
2700 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2701 conftest$ac_exeext conftest.$ac_ext ;;
2702 esac
2703 fi
2704 eval ac_res=\$$3
2705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2706 printf "%s\n" "$ac_res" >&6; }
2707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2708
2709 } # ac_fn_c_check_func
2710
2711 # ac_fn_cxx_try_cpp LINENO
2712 # ------------------------
2713 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2714 ac_fn_cxx_try_cpp ()
2715 {
2716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2717 if { { ac_try="$ac_cpp conftest.$ac_ext"
2718 case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721 esac
2722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2723 printf "%s\n" "$ac_try_echo"; } >&5
2724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2725 ac_status=$?
2726 if test -s conftest.err; then
2727 grep -v '^ *+' conftest.err >conftest.er1
2728 cat conftest.er1 >&5
2729 mv -f conftest.er1 conftest.err
2730 fi
2731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2732 test $ac_status = 0; } > conftest.i && {
2733 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2734 test ! -s conftest.err
2735 }
2736 then :
2737 ac_retval=0
2738 else case e in #(
2739 e) printf "%s\n" "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2741
2742 ac_retval=1 ;;
2743 esac
2744 fi
2745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2746 as_fn_set_status $ac_retval
2747
2748 } # ac_fn_cxx_try_cpp
2749
2750 # ac_fn_cxx_try_link LINENO
2751 # -------------------------
2752 # Try to link conftest.$ac_ext, and return whether this succeeded.
2753 ac_fn_cxx_try_link ()
2754 {
2755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2756 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2757 if { { ac_try="$ac_link"
2758 case "(($ac_try" in
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2761 esac
2762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2763 printf "%s\n" "$ac_try_echo"; } >&5
2764 (eval "$ac_link") 2>conftest.err
2765 ac_status=$?
2766 if test -s conftest.err; then
2767 grep -v '^ *+' conftest.err >conftest.er1
2768 cat conftest.er1 >&5
2769 mv -f conftest.er1 conftest.err
2770 fi
2771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2772 test $ac_status = 0; } && {
2773 test -z "$ac_cxx_werror_flag" ||
2774 test ! -s conftest.err
2775 } && test -s conftest$ac_exeext && {
2776 test "$cross_compiling" = yes ||
2777 test -x conftest$ac_exeext
2778 }
2779 then :
2780 ac_retval=0
2781 else case e in #(
2782 e) printf "%s\n" "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2784
2785 ac_retval=1 ;;
2786 esac
2787 fi
2788 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2789 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2790 # interfere with the next link command; also delete a directory that is
2791 # left behind by Apple's compiler. We do this before executing the actions.
2792 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2794 as_fn_set_status $ac_retval
2795
2796 } # ac_fn_cxx_try_link
2797
2798 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2799 # -------------------------------------------
2800 # Tests whether TYPE exists after having included INCLUDES, setting cache
2801 # variable VAR accordingly.
2802 ac_fn_c_check_type ()
2803 {
2804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2806 printf %s "checking for $2... " >&6; }
2807 if eval test \${$3+y}
2808 then :
2809 printf %s "(cached) " >&6
2810 else case e in #(
2811 e) eval "$3=no"
2812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2813 /* end confdefs.h. */
2814 $4
2815 int
2816 main (void)
2817 {
2818 if (sizeof ($2))
2819 return 0;
2820 ;
2821 return 0;
2822 }
2823 _ACEOF
2824 if ac_fn_c_try_compile "$LINENO"
2825 then :
2826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827 /* end confdefs.h. */
2828 $4
2829 int
2830 main (void)
2831 {
2832 if (sizeof (($2)))
2833 return 0;
2834 ;
2835 return 0;
2836 }
2837 _ACEOF
2838 if ac_fn_c_try_compile "$LINENO"
2839 then :
2840
2841 else case e in #(
2842 e) eval "$3=yes" ;;
2843 esac
2844 fi
2845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2846 fi
2847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2848 esac
2849 fi
2850 eval ac_res=\$$3
2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2852 printf "%s\n" "$ac_res" >&6; }
2853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2854
2855 } # ac_fn_c_check_type
2856
2857 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2858 # ----------------------------------------------------
2859 # Tries to find if the field MEMBER exists in type AGGR, after including
2860 # INCLUDES, setting cache variable VAR accordingly.
2861 ac_fn_c_check_member ()
2862 {
2863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2865 printf %s "checking for $2.$3... " >&6; }
2866 if eval test \${$4+y}
2867 then :
2868 printf %s "(cached) " >&6
2869 else case e in #(
2870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2871 /* end confdefs.h. */
2872 $5
2873 int
2874 main (void)
2875 {
2876 static $2 ac_aggr;
2877 if (ac_aggr.$3)
2878 return 0;
2879 ;
2880 return 0;
2881 }
2882 _ACEOF
2883 if ac_fn_c_try_compile "$LINENO"
2884 then :
2885 eval "$4=yes"
2886 else case e in #(
2887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888 /* end confdefs.h. */
2889 $5
2890 int
2891 main (void)
2892 {
2893 static $2 ac_aggr;
2894 if (sizeof ac_aggr.$3)
2895 return 0;
2896 ;
2897 return 0;
2898 }
2899 _ACEOF
2900 if ac_fn_c_try_compile "$LINENO"
2901 then :
2902 eval "$4=yes"
2903 else case e in #(
2904 e) eval "$4=no" ;;
2905 esac
2906 fi
2907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2908 esac
2909 fi
2910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2911 esac
2912 fi
2913 eval ac_res=\$$4
2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2915 printf "%s\n" "$ac_res" >&6; }
2916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2917
2918 } # ac_fn_c_check_member
2919
2920 # ac_fn_c_find_intX_t LINENO BITS VAR
2921 # -----------------------------------
2922 # Finds a signed integer type with width BITS, setting cache variable VAR
2923 # accordingly.
2924 ac_fn_c_find_intX_t ()
2925 {
2926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2928 printf %s "checking for int$2_t... " >&6; }
2929 if eval test \${$3+y}
2930 then :
2931 printf %s "(cached) " >&6
2932 else case e in #(
2933 e) eval "$3=no"
2934 # Order is important - never check a type that is potentially smaller
2935 # than half of the expected target width.
2936 for ac_type in int$2_t 'int' 'long int' \
2937 'long long int' 'short int' 'signed char'; do
2938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939 /* end confdefs.h. */
2940 $ac_includes_default
2941 enum { N = $2 / 2 - 1 };
2942 int
2943 main (void)
2944 {
2945 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2946 test_array [0] = 0;
2947 return test_array [0];
2948
2949 ;
2950 return 0;
2951 }
2952 _ACEOF
2953 if ac_fn_c_try_compile "$LINENO"
2954 then :
2955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2956 /* end confdefs.h. */
2957 $ac_includes_default
2958 enum { N = $2 / 2 - 1 };
2959 int
2960 main (void)
2961 {
2962 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2963 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2964 test_array [0] = 0;
2965 return test_array [0];
2966
2967 ;
2968 return 0;
2969 }
2970 _ACEOF
2971 if ac_fn_c_try_compile "$LINENO"
2972 then :
2973
2974 else case e in #(
2975 e) case $ac_type in #(
2976 int$2_t) :
2977 eval "$3=yes" ;; #(
2978 *) :
2979 eval "$3=\$ac_type" ;;
2980 esac ;;
2981 esac
2982 fi
2983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2984 fi
2985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2986 if eval test \"x\$"$3"\" = x"no"
2987 then :
2988
2989 else case e in #(
2990 e) break ;;
2991 esac
2992 fi
2993 done ;;
2994 esac
2995 fi
2996 eval ac_res=\$$3
2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2998 printf "%s\n" "$ac_res" >&6; }
2999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3000
3001 } # ac_fn_c_find_intX_t
3002
3003 # ac_fn_c_find_uintX_t LINENO BITS VAR
3004 # ------------------------------------
3005 # Finds an unsigned integer type with width BITS, setting cache variable VAR
3006 # accordingly.
3007 ac_fn_c_find_uintX_t ()
3008 {
3009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3011 printf %s "checking for uint$2_t... " >&6; }
3012 if eval test \${$3+y}
3013 then :
3014 printf %s "(cached) " >&6
3015 else case e in #(
3016 e) eval "$3=no"
3017 # Order is important - never check a type that is potentially smaller
3018 # than half of the expected target width.
3019 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3020 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022 /* end confdefs.h. */
3023 $ac_includes_default
3024 int
3025 main (void)
3026 {
3027 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
3028 test_array [0] = 0;
3029 return test_array [0];
3030
3031 ;
3032 return 0;
3033 }
3034 _ACEOF
3035 if ac_fn_c_try_compile "$LINENO"
3036 then :
3037 case $ac_type in #(
3038 uint$2_t) :
3039 eval "$3=yes" ;; #(
3040 *) :
3041 eval "$3=\$ac_type" ;;
3042 esac
3043 fi
3044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3045 if eval test \"x\$"$3"\" = x"no"
3046 then :
3047
3048 else case e in #(
3049 e) break ;;
3050 esac
3051 fi
3052 done ;;
3053 esac
3054 fi
3055 eval ac_res=\$$3
3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3057 printf "%s\n" "$ac_res" >&6; }
3058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3059
3060 } # ac_fn_c_find_uintX_t
3061
3062 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3063 # --------------------------------------------
3064 # Tries to find the compile-time value of EXPR in a program that includes
3065 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3066 # computed
3067 ac_fn_c_compute_int ()
3068 {
3069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3070 if test "$cross_compiling" = yes; then
3071 # Depending upon the size, compute the lo and hi bounds.
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3074 $4
3075 int
3076 main (void)
3077 {
3078 static int test_array [1 - 2 * !(($2) >= 0)];
3079 test_array [0] = 0;
3080 return test_array [0];
3081
3082 ;
3083 return 0;
3084 }
3085 _ACEOF
3086 if ac_fn_c_try_compile "$LINENO"
3087 then :
3088 ac_lo=0 ac_mid=0
3089 while :; do
3090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3091 /* end confdefs.h. */
3092 $4
3093 int
3094 main (void)
3095 {
3096 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3097 test_array [0] = 0;
3098 return test_array [0];
3099
3100 ;
3101 return 0;
3102 }
3103 _ACEOF
3104 if ac_fn_c_try_compile "$LINENO"
3105 then :
3106 ac_hi=$ac_mid; break
3107 else case e in #(
3108 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3109 if test $ac_lo -le $ac_mid; then
3110 ac_lo= ac_hi=
3111 break
3112 fi
3113 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
3114 esac
3115 fi
3116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3117 done
3118 else case e in #(
3119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3121 $4
3122 int
3123 main (void)
3124 {
3125 static int test_array [1 - 2 * !(($2) < 0)];
3126 test_array [0] = 0;
3127 return test_array [0];
3128
3129 ;
3130 return 0;
3131 }
3132 _ACEOF
3133 if ac_fn_c_try_compile "$LINENO"
3134 then :
3135 ac_hi=-1 ac_mid=-1
3136 while :; do
3137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138 /* end confdefs.h. */
3139 $4
3140 int
3141 main (void)
3142 {
3143 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3144 test_array [0] = 0;
3145 return test_array [0];
3146
3147 ;
3148 return 0;
3149 }
3150 _ACEOF
3151 if ac_fn_c_try_compile "$LINENO"
3152 then :
3153 ac_lo=$ac_mid; break
3154 else case e in #(
3155 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3156 if test $ac_mid -le $ac_hi; then
3157 ac_lo= ac_hi=
3158 break
3159 fi
3160 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
3161 esac
3162 fi
3163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3164 done
3165 else case e in #(
3166 e) ac_lo= ac_hi= ;;
3167 esac
3168 fi
3169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3170 esac
3171 fi
3172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3173 # Binary search between lo and hi bounds.
3174 while test "x$ac_lo" != "x$ac_hi"; do
3175 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3178 $4
3179 int
3180 main (void)
3181 {
3182 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3183 test_array [0] = 0;
3184 return test_array [0];
3185
3186 ;
3187 return 0;
3188 }
3189 _ACEOF
3190 if ac_fn_c_try_compile "$LINENO"
3191 then :
3192 ac_hi=$ac_mid
3193 else case e in #(
3194 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
3195 esac
3196 fi
3197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3198 done
3199 case $ac_lo in #((
3200 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3201 '') ac_retval=1 ;;
3202 esac
3203 else
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205 /* end confdefs.h. */
3206 $4
3207 static long int longval (void) { return $2; }
3208 static unsigned long int ulongval (void) { return $2; }
3209 #include <stdio.h>
3210 #include <stdlib.h>
3211 int
3212 main (void)
3213 {
3214
3215 FILE *f = fopen ("conftest.val", "w");
3216 if (! f)
3217 return 1;
3218 if (($2) < 0)
3219 {
3220 long int i = longval ();
3221 if (i != ($2))
3222 return 1;
3223 fprintf (f, "%ld", i);
3224 }
3225 else
3226 {
3227 unsigned long int i = ulongval ();
3228 if (i != ($2))
3229 return 1;
3230 fprintf (f, "%lu", i);
3231 }
3232 /* Do not output a trailing newline, as this causes \r\n confusion
3233 on some platforms. */
3234 return ferror (f) || fclose (f) != 0;
3235
3236 ;
3237 return 0;
3238 }
3239 _ACEOF
3240 if ac_fn_c_try_run "$LINENO"
3241 then :
3242 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3243 else case e in #(
3244 e) ac_retval=1 ;;
3245 esac
3246 fi
3247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3248 conftest.$ac_objext conftest.beam conftest.$ac_ext
3249 rm -f conftest.val
3250
3251 fi
3252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3253 as_fn_set_status $ac_retval
3254
3255 } # ac_fn_c_compute_int
3256
3257 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
3258 # ---------------------------------------------------------
3259 # Tests whether HEADER exists and can be compiled using the include files in
3260 # INCLUDES, setting the cache variable VAR accordingly.
3261 ac_fn_cxx_check_header_compile ()
3262 {
3263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3265 printf %s "checking for $2... " >&6; }
3266 if eval test \${$3+y}
3267 then :
3268 printf %s "(cached) " >&6
3269 else case e in #(
3270 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3272 $4
3273 #include <$2>
3274 _ACEOF
3275 if ac_fn_cxx_try_compile "$LINENO"
3276 then :
3277 eval "$3=yes"
3278 else case e in #(
3279 e) eval "$3=no" ;;
3280 esac
3281 fi
3282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3283 esac
3284 fi
3285 eval ac_res=\$$3
3286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3287 printf "%s\n" "$ac_res" >&6; }
3288 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3289
3290 } # ac_fn_cxx_check_header_compile
3291 ac_configure_args_raw=
3292 for ac_arg
3293 do
3294 case $ac_arg in
3295 *\'*)
3296 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3297 esac
3298 as_fn_append ac_configure_args_raw " '$ac_arg'"
3299 done
3300
3301 case $ac_configure_args_raw in
3302 *$as_nl*)
3303 ac_safe_unquote= ;;
3304 *)
3305 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
3306 ac_unsafe_a="$ac_unsafe_z#~"
3307 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
3308 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
3309 esac
3310
3311 cat >config.log <<_ACEOF
3312 This file contains any messages produced by compilers while
3313 running configure, to aid debugging if configure makes a mistake.
3314
3315 It was created by ImageMagick $as_me 7.1.2-27, which was
3316 generated by GNU Autoconf 2.72. Invocation command line was
3317
3318 $ $0$ac_configure_args_raw
3319
3320 _ACEOF
3321 exec 5>>config.log
3322 {
3323 cat <<_ASUNAME
3324 ## --------- ##
3325 ## Platform. ##
3326 ## --------- ##
3327
3328 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3329 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3330 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3331 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3332 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3333
3334 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3335 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3336
3337 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3338 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3339 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3340 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3341 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3342 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3343 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3344
3345 _ASUNAME
3346
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3349 do
3350 IFS=$as_save_IFS
3351 case $as_dir in #(((
3352 '') as_dir=./ ;;
3353 */) ;;
3354 *) as_dir=$as_dir/ ;;
3355 esac
3356 printf "%s\n" "PATH: $as_dir"
3357 done
3358 IFS=$as_save_IFS
3359
3360 } >&5
3361
3362 cat >&5 <<_ACEOF
3363
3364
3365 ## ----------- ##
3366 ## Core tests. ##
3367 ## ----------- ##
3368
3369 _ACEOF
3370
3371
3372 # Keep a trace of the command line.
3373 # Strip out --no-create and --no-recursion so they do not pile up.
3374 # Strip out --silent because we don't want to record it for future runs.
3375 # Also quote any args containing shell meta-characters.
3376 # Make two passes to allow for proper duplicate-argument suppression.
3377 ac_configure_args=
3378 ac_configure_args0=
3379 ac_configure_args1=
3380 ac_must_keep_next=false
3381 for ac_pass in 1 2
3382 do
3383 for ac_arg
3384 do
3385 case $ac_arg in
3386 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3388 | -silent | --silent | --silen | --sile | --sil)
3389 continue ;;
3390 *\'*)
3391 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3392 esac
3393 case $ac_pass in
3394 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3395 2)
3396 as_fn_append ac_configure_args1 " '$ac_arg'"
3397 if test $ac_must_keep_next = true; then
3398 ac_must_keep_next=false # Got value, back to normal.
3399 else
3400 case $ac_arg in
3401 *=* | --config-cache | -C | -disable-* | --disable-* \
3402 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3403 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3404 | -with-* | --with-* | -without-* | --without-* | --x)
3405 case "$ac_configure_args0 " in
3406 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3407 esac
3408 ;;
3409 -* ) ac_must_keep_next=true ;;
3410 esac
3411 fi
3412 as_fn_append ac_configure_args " '$ac_arg'"
3413 ;;
3414 esac
3415 done
3416 done
3417 { ac_configure_args0=; unset ac_configure_args0;}
3418 { ac_configure_args1=; unset ac_configure_args1;}
3419
3420 # When interrupted or exit'd, cleanup temporary files, and complete
3421 # config.log. We remove comments because anyway the quotes in there
3422 # would cause problems or look ugly.
3423 # WARNING: Use '\'' to represent an apostrophe within the trap.
3424 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3425 trap 'exit_status=$?
3426 # Sanitize IFS.
3427 IFS=" "" $as_nl"
3428 # Save into config.log some information that might help in debugging.
3429 {
3430 echo
3431
3432 printf "%s\n" "## ---------------- ##
3433 ## Cache variables. ##
3434 ## ---------------- ##"
3435 echo
3436 # The following way of writing the cache mishandles newlines in values,
3437 (
3438 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3439 eval ac_val=\$$ac_var
3440 case $ac_val in #(
3441 *${as_nl}*)
3442 case $ac_var in #(
3443 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3444 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3445 esac
3446 case $ac_var in #(
3447 _ | IFS | as_nl) ;; #(
3448 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3449 *) { eval $ac_var=; unset $ac_var;} ;;
3450 esac ;;
3451 esac
3452 done
3453 (set) 2>&1 |
3454 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3455 *${as_nl}ac_space=\ *)
3456 sed -n \
3457 "s/'\''/'\''\\\\'\'''\''/g;
3458 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3459 ;; #(
3460 *)
3461 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3462 ;;
3463 esac |
3464 sort
3465 )
3466 echo
3467
3468 printf "%s\n" "## ----------------- ##
3469 ## Output variables. ##
3470 ## ----------------- ##"
3471 echo
3472 for ac_var in $ac_subst_vars
3473 do
3474 eval ac_val=\$$ac_var
3475 case $ac_val in
3476 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3477 esac
3478 printf "%s\n" "$ac_var='\''$ac_val'\''"
3479 done | sort
3480 echo
3481
3482 if test -n "$ac_subst_files"; then
3483 printf "%s\n" "## ------------------- ##
3484 ## File substitutions. ##
3485 ## ------------------- ##"
3486 echo
3487 for ac_var in $ac_subst_files
3488 do
3489 eval ac_val=\$$ac_var
3490 case $ac_val in
3491 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3492 esac
3493 printf "%s\n" "$ac_var='\''$ac_val'\''"
3494 done | sort
3495 echo
3496 fi
3497
3498 if test -s confdefs.h; then
3499 printf "%s\n" "## ----------- ##
3500 ## confdefs.h. ##
3501 ## ----------- ##"
3502 echo
3503 cat confdefs.h
3504 echo
3505 fi
3506 test "$ac_signal" != 0 &&
3507 printf "%s\n" "$as_me: caught signal $ac_signal"
3508 printf "%s\n" "$as_me: exit $exit_status"
3509 } >&5
3510 rm -f core *.core core.conftest.* &&
3511 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3512 exit $exit_status
3513 ' 0
3514 for ac_signal in 1 2 13 15; do
3515 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3516 done
3517 ac_signal=0
3518
3519 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3520 rm -f -r conftest* confdefs.h
3521
3522 printf "%s\n" "/* confdefs.h */" > confdefs.h
3523
3524 # Predefined preprocessor variables.
3525
3526 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3527
3528 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3529
3530 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3531
3532 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3533
3534 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3535
3536 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3537
3538
3539 # Let the site file select an alternate cache file if it wants to.
3540 # Prefer an explicitly selected file to automatically selected ones.
3541 if test -n "$CONFIG_SITE"; then
3542 ac_site_files="$CONFIG_SITE"
3543 elif test "x$prefix" != xNONE; then
3544 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3545 else
3546 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3547 fi
3548
3549 for ac_site_file in $ac_site_files
3550 do
3551 case $ac_site_file in #(
3552 */*) :
3553 ;; #(
3554 *) :
3555 ac_site_file=./$ac_site_file ;;
3556 esac
3557 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3559 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3560 sed 's/^/| /' "$ac_site_file" >&5
3561 . "$ac_site_file" \
3562 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3563 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3564 as_fn_error $? "failed to load site script $ac_site_file
3565 See 'config.log' for more details" "$LINENO" 5; }
3566 fi
3567 done
3568
3569 if test -r "$cache_file"; then
3570 # Some versions of bash will fail to source /dev/null (special files
3571 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3572 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3574 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3575 case $cache_file in
3576 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3577 *) . "./$cache_file";;
3578 esac
3579 fi
3580 else
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3582 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3583 >$cache_file
3584 fi
3585
3586 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3587 # Test code for whether the C compiler supports C89 (global declarations)
3588 ac_c_conftest_c89_globals='
3589 /* Does the compiler advertise C89 conformance?
3590 Do not test the value of __STDC__, because some compilers set it to 0
3591 while being otherwise adequately conformant. */
3592 #if !defined __STDC__
3593 # error "Compiler does not advertise C89 conformance"
3594 #endif
3595
3596 #include <stddef.h>
3597 #include <stdarg.h>
3598 struct stat;
3599 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3600 struct buf { int x; };
3601 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3602 static char *e (char **p, int i)
3603 {
3604 return p[i];
3605 }
3606 static char *f (char * (*g) (char **, int), char **p, ...)
3607 {
3608 char *s;
3609 va_list v;
3610 va_start (v,p);
3611 s = g (p, va_arg (v,int));
3612 va_end (v);
3613 return s;
3614 }
3615
3616 /* C89 style stringification. */
3617 #define noexpand_stringify(a) #a
3618 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
3619
3620 /* C89 style token pasting. Exercises some of the corner cases that
3621 e.g. old MSVC gets wrong, but not very hard. */
3622 #define noexpand_concat(a,b) a##b
3623 #define expand_concat(a,b) noexpand_concat(a,b)
3624 extern int vA;
3625 extern int vbee;
3626 #define aye A
3627 #define bee B
3628 int *pvA = &expand_concat(v,aye);
3629 int *pvbee = &noexpand_concat(v,bee);
3630
3631 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3632 function prototypes and stuff, but not \xHH hex character constants.
3633 These do not provoke an error unfortunately, instead are silently treated
3634 as an "x". The following induces an error, until -std is added to get
3635 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3636 array size at least. It is necessary to write \x00 == 0 to get something
3637 that is true only with -std. */
3638 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3639
3640 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3641 inside strings and character constants. */
3642 #define FOO(x) '\''x'\''
3643 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3644
3645 int test (int i, double x);
3646 struct s1 {int (*f) (int a);};
3647 struct s2 {int (*f) (double a);};
3648 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3649 int, int);'
3650
3651 # Test code for whether the C compiler supports C89 (body of main).
3652 ac_c_conftest_c89_main='
3653 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3654 '
3655
3656 # Test code for whether the C compiler supports C99 (global declarations)
3657 ac_c_conftest_c99_globals='
3658 /* Does the compiler advertise C99 conformance? */
3659 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3660 # error "Compiler does not advertise C99 conformance"
3661 #endif
3662
3663 // See if C++-style comments work.
3664
3665 #include <stdbool.h>
3666 extern int puts (const char *);
3667 extern int printf (const char *, ...);
3668 extern int dprintf (int, const char *, ...);
3669 extern void *malloc (size_t);
3670 extern void free (void *);
3671
3672 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3673 // dprintf is used instead of fprintf to avoid needing to declare
3674 // FILE and stderr.
3675 #define debug(...) dprintf (2, __VA_ARGS__)
3676 #define showlist(...) puts (#__VA_ARGS__)
3677 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3678 static void
3679 test_varargs_macros (void)
3680 {
3681 int x = 1234;
3682 int y = 5678;
3683 debug ("Flag");
3684 debug ("X = %d\n", x);
3685 showlist (The first, second, and third items.);
3686 report (x>y, "x is %d but y is %d", x, y);
3687 }
3688
3689 // Check long long types.
3690 #define BIG64 18446744073709551615ull
3691 #define BIG32 4294967295ul
3692 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3693 #if !BIG_OK
3694 #error "your preprocessor is broken"
3695 #endif
3696 #if BIG_OK
3697 #else
3698 #error "your preprocessor is broken"
3699 #endif
3700 static long long int bignum = -9223372036854775807LL;
3701 static unsigned long long int ubignum = BIG64;
3702
3703 struct incomplete_array
3704 {
3705 int datasize;
3706 double data[];
3707 };
3708
3709 struct named_init {
3710 int number;
3711 const wchar_t *name;
3712 double average;
3713 };
3714
3715 typedef const char *ccp;
3716
3717 static inline int
3718 test_restrict (ccp restrict text)
3719 {
3720 // Iterate through items via the restricted pointer.
3721 // Also check for declarations in for loops.
3722 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3723 continue;
3724 return 0;
3725 }
3726
3727 // Check varargs and va_copy.
3728 static bool
3729 test_varargs (const char *format, ...)
3730 {
3731 va_list args;
3732 va_start (args, format);
3733 va_list args_copy;
3734 va_copy (args_copy, args);
3735
3736 const char *str = "";
3737 int number = 0;
3738 float fnumber = 0;
3739
3740 while (*format)
3741 {
3742 switch (*format++)
3743 {
3744 case '\''s'\'': // string
3745 str = va_arg (args_copy, const char *);
3746 break;
3747 case '\''d'\'': // int
3748 number = va_arg (args_copy, int);
3749 break;
3750 case '\''f'\'': // float
3751 fnumber = va_arg (args_copy, double);
3752 break;
3753 default:
3754 break;
3755 }
3756 }
3757 va_end (args_copy);
3758 va_end (args);
3759
3760 return *str && number && fnumber;
3761 }
3762 '
3763
3764 # Test code for whether the C compiler supports C99 (body of main).
3765 ac_c_conftest_c99_main='
3766 // Check bool.
3767 _Bool success = false;
3768 success |= (argc != 0);
3769
3770 // Check restrict.
3771 if (test_restrict ("String literal") == 0)
3772 success = true;
3773 char *restrict newvar = "Another string";
3774
3775 // Check varargs.
3776 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3777 test_varargs_macros ();
3778
3779 // Check flexible array members.
3780 struct incomplete_array *ia =
3781 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3782 ia->datasize = 10;
3783 for (int i = 0; i < ia->datasize; ++i)
3784 ia->data[i] = i * 1.234;
3785 // Work around memory leak warnings.
3786 free (ia);
3787
3788 // Check named initializers.
3789 struct named_init ni = {
3790 .number = 34,
3791 .name = L"Test wide string",
3792 .average = 543.34343,
3793 };
3794
3795 ni.number = 58;
3796
3797 int dynamic_array[ni.number];
3798 dynamic_array[0] = argv[0][0];
3799 dynamic_array[ni.number - 1] = 543;
3800
3801 // work around unused variable warnings
3802 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3803 || dynamic_array[ni.number - 1] != 543);
3804 '
3805
3806 # Test code for whether the C compiler supports C11 (global declarations)
3807 ac_c_conftest_c11_globals='
3808 /* Does the compiler advertise C11 conformance? */
3809 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3810 # error "Compiler does not advertise C11 conformance"
3811 #endif
3812
3813 // Check _Alignas.
3814 char _Alignas (double) aligned_as_double;
3815 char _Alignas (0) no_special_alignment;
3816 extern char aligned_as_int;
3817 char _Alignas (0) _Alignas (int) aligned_as_int;
3818
3819 // Check _Alignof.
3820 enum
3821 {
3822 int_alignment = _Alignof (int),
3823 int_array_alignment = _Alignof (int[100]),
3824 char_alignment = _Alignof (char)
3825 };
3826 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3827
3828 // Check _Noreturn.
3829 int _Noreturn does_not_return (void) { for (;;) continue; }
3830
3831 // Check _Static_assert.
3832 struct test_static_assert
3833 {
3834 int x;
3835 _Static_assert (sizeof (int) <= sizeof (long int),
3836 "_Static_assert does not work in struct");
3837 long int y;
3838 };
3839
3840 // Check UTF-8 literals.
3841 #define u8 syntax error!
3842 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3843
3844 // Check duplicate typedefs.
3845 typedef long *long_ptr;
3846 typedef long int *long_ptr;
3847 typedef long_ptr long_ptr;
3848
3849 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3850 struct anonymous
3851 {
3852 union {
3853 struct { int i; int j; };
3854 struct { int k; long int l; } w;
3855 };
3856 int m;
3857 } v1;
3858 '
3859
3860 # Test code for whether the C compiler supports C11 (body of main).
3861 ac_c_conftest_c11_main='
3862 _Static_assert ((offsetof (struct anonymous, i)
3863 == offsetof (struct anonymous, w.k)),
3864 "Anonymous union alignment botch");
3865 v1.i = 2;
3866 v1.w.k = 5;
3867 ok |= v1.i != 5;
3868 '
3869
3870 # Test code for whether the C compiler supports C11 (complete).
3871 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3872 ${ac_c_conftest_c99_globals}
3873 ${ac_c_conftest_c11_globals}
3874
3875 int
3876 main (int argc, char **argv)
3877 {
3878 int ok = 0;
3879 ${ac_c_conftest_c89_main}
3880 ${ac_c_conftest_c99_main}
3881 ${ac_c_conftest_c11_main}
3882 return ok;
3883 }
3884 "
3885
3886 # Test code for whether the C compiler supports C99 (complete).
3887 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3888 ${ac_c_conftest_c99_globals}
3889
3890 int
3891 main (int argc, char **argv)
3892 {
3893 int ok = 0;
3894 ${ac_c_conftest_c89_main}
3895 ${ac_c_conftest_c99_main}
3896 return ok;
3897 }
3898 "
3899
3900 # Test code for whether the C compiler supports C89 (complete).
3901 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3902
3903 int
3904 main (int argc, char **argv)
3905 {
3906 int ok = 0;
3907 ${ac_c_conftest_c89_main}
3908 return ok;
3909 }
3910 "
3911
3912 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3913 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3914 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3915 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3916 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3917 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3918 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3919 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3920 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3921 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3922 # Test code for whether the C++ compiler supports C++98 (global declarations)
3923 ac_cxx_conftest_cxx98_globals='
3924 // Does the compiler advertise C++98 conformance?
3925 #if !defined __cplusplus || __cplusplus < 199711L
3926 # error "Compiler does not advertise C++98 conformance"
3927 #endif
3928
3929 // These inclusions are to reject old compilers that
3930 // lack the unsuffixed header files.
3931 #include <cstdlib>
3932 #include <exception>
3933
3934 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3935 extern void assert (int);
3936 namespace std {
3937 extern int strcmp (const char *, const char *);
3938 }
3939
3940 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3941 using std::exception;
3942 using std::strcmp;
3943
3944 namespace {
3945
3946 void test_exception_syntax()
3947 {
3948 try {
3949 throw "test";
3950 } catch (const char *s) {
3951 // Extra parentheses suppress a warning when building autoconf itself,
3952 // due to lint rules shared with more typical C programs.
3953 assert (!(strcmp) (s, "test"));
3954 }
3955 }
3956
3957 template <typename T> struct test_template
3958 {
3959 T const val;
3960 explicit test_template(T t) : val(t) {}
3961 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3962 };
3963
3964 } // anonymous namespace
3965 '
3966
3967 # Test code for whether the C++ compiler supports C++98 (body of main)
3968 ac_cxx_conftest_cxx98_main='
3969 assert (argc);
3970 assert (! argv[0]);
3971 {
3972 test_exception_syntax ();
3973 test_template<double> tt (2.0);
3974 assert (tt.add (4) == 6.0);
3975 assert (true && !false);
3976 }
3977 '
3978
3979 # Test code for whether the C++ compiler supports C++11 (global declarations)
3980 ac_cxx_conftest_cxx11_globals='
3981 // Does the compiler advertise C++ 2011 conformance?
3982 #if !defined __cplusplus || __cplusplus < 201103L
3983 # error "Compiler does not advertise C++11 conformance"
3984 #endif
3985
3986 namespace cxx11test
3987 {
3988 constexpr int get_val() { return 20; }
3989
3990 struct testinit
3991 {
3992 int i;
3993 double d;
3994 };
3995
3996 class delegate
3997 {
3998 public:
3999 delegate(int n) : n(n) {}
4000 delegate(): delegate(2354) {}
4001
4002 virtual int getval() { return this->n; };
4003 protected:
4004 int n;
4005 };
4006
4007 class overridden : public delegate
4008 {
4009 public:
4010 overridden(int n): delegate(n) {}
4011 virtual int getval() override final { return this->n * 2; }
4012 };
4013
4014 class nocopy
4015 {
4016 public:
4017 nocopy(int i): i(i) {}
4018 nocopy() = default;
4019 nocopy(const nocopy&) = delete;
4020 nocopy & operator=(const nocopy&) = delete;
4021 private:
4022 int i;
4023 };
4024
4025 // for testing lambda expressions
4026 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
4027 {
4028 return f(v);
4029 }
4030
4031 // for testing variadic templates and trailing return types
4032 template <typename V> auto sum(V first) -> V
4033 {
4034 return first;
4035 }
4036 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
4037 {
4038 return first + sum(rest...);
4039 }
4040 }
4041 '
4042
4043 # Test code for whether the C++ compiler supports C++11 (body of main)
4044 ac_cxx_conftest_cxx11_main='
4045 {
4046 // Test auto and decltype
4047 auto a1 = 6538;
4048 auto a2 = 48573953.4;
4049 auto a3 = "String literal";
4050
4051 int total = 0;
4052 for (auto i = a3; *i; ++i) { total += *i; }
4053
4054 decltype(a2) a4 = 34895.034;
4055 }
4056 {
4057 // Test constexpr
4058 short sa[cxx11test::get_val()] = { 0 };
4059 }
4060 {
4061 // Test initializer lists
4062 cxx11test::testinit il = { 4323, 435234.23544 };
4063 }
4064 {
4065 // Test range-based for
4066 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
4067 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
4068 for (auto &x : array) { x += 23; }
4069 }
4070 {
4071 // Test lambda expressions
4072 using cxx11test::eval;
4073 assert (eval ([](int x) { return x*2; }, 21) == 42);
4074 double d = 2.0;
4075 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
4076 assert (d == 5.0);
4077 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
4078 assert (d == 5.0);
4079 }
4080 {
4081 // Test use of variadic templates
4082 using cxx11test::sum;
4083 auto a = sum(1);
4084 auto b = sum(1, 2);
4085 auto c = sum(1.0, 2.0, 3.0);
4086 }
4087 {
4088 // Test constructor delegation
4089 cxx11test::delegate d1;
4090 cxx11test::delegate d2();
4091 cxx11test::delegate d3(45);
4092 }
4093 {
4094 // Test override and final
4095 cxx11test::overridden o1(55464);
4096 }
4097 {
4098 // Test nullptr
4099 char *c = nullptr;
4100 }
4101 {
4102 // Test template brackets
4103 test_template<::test_template<int>> v(test_template<int>(12));
4104 }
4105 {
4106 // Unicode literals
4107 char const *utf8 = u8"UTF-8 string \u2500";
4108 char16_t const *utf16 = u"UTF-8 string \u2500";
4109 char32_t const *utf32 = U"UTF-32 string \u2500";
4110 }
4111 '
4112
4113 # Test code for whether the C compiler supports C++11 (complete).
4114 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
4115 ${ac_cxx_conftest_cxx11_globals}
4116
4117 int
4118 main (int argc, char **argv)
4119 {
4120 int ok = 0;
4121 ${ac_cxx_conftest_cxx98_main}
4122 ${ac_cxx_conftest_cxx11_main}
4123 return ok;
4124 }
4125 "
4126
4127 # Test code for whether the C compiler supports C++98 (complete).
4128 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
4129 int
4130 main (int argc, char **argv)
4131 {
4132 int ok = 0;
4133 ${ac_cxx_conftest_cxx98_main}
4134 return ok;
4135 }
4136 "
4137
4138 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
4139 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
4140
4141 # Auxiliary files required by this configure script.
4142 ac_aux_files="ltmain.sh ar-lib compile missing install-sh config.guess config.sub tap-driver.sh"
4143
4144 # Locations in which to look for auxiliary files.
4145 ac_aux_dir_candidates="${srcdir}/config"
4146
4147 # Search for a directory containing all of the required auxiliary files,
4148 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
4149 # If we don't find one directory that contains all the files we need,
4150 # we report the set of missing files from the *first* directory in
4151 # $ac_aux_dir_candidates and give up.
4152 ac_missing_aux_files=""
4153 ac_first_candidate=:
4154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 as_found=false
4157 for as_dir in $ac_aux_dir_candidates
4158 do
4159 IFS=$as_save_IFS
4160 case $as_dir in #(((
4161 '') as_dir=./ ;;
4162 */) ;;
4163 *) as_dir=$as_dir/ ;;
4164 esac
4165 as_found=:
4166
4167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
4168 ac_aux_dir_found=yes
4169 ac_install_sh=
4170 for ac_aux in $ac_aux_files
4171 do
4172 # As a special case, if "install-sh" is required, that requirement
4173 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
4174 # and $ac_install_sh is set appropriately for whichever one is found.
4175 if test x"$ac_aux" = x"install-sh"
4176 then
4177 if test -f "${as_dir}install-sh"; then
4178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
4179 ac_install_sh="${as_dir}install-sh -c"
4180 elif test -f "${as_dir}install.sh"; then
4181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
4182 ac_install_sh="${as_dir}install.sh -c"
4183 elif test -f "${as_dir}shtool"; then
4184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
4185 ac_install_sh="${as_dir}shtool install -c"
4186 else
4187 ac_aux_dir_found=no
4188 if $ac_first_candidate; then
4189 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
4190 else
4191 break
4192 fi
4193 fi
4194 else
4195 if test -f "${as_dir}${ac_aux}"; then
4196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
4197 else
4198 ac_aux_dir_found=no
4199 if $ac_first_candidate; then
4200 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
4201 else
4202 break
4203 fi
4204 fi
4205 fi
4206 done
4207 if test "$ac_aux_dir_found" = yes; then
4208 ac_aux_dir="$as_dir"
4209 break
4210 fi
4211 ac_first_candidate=false
4212
4213 as_found=false
4214 done
4215 IFS=$as_save_IFS
4216 if $as_found
4217 then :
4218
4219 else case e in #(
4220 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
4221 esac
4222 fi
4223
4224
4225 # These three variables are undocumented and unsupported,
4226 # and are intended to be withdrawn in a future Autoconf release.
4227 # They can cause serious problems if a builder's source tree is in a directory
4228 # whose full name contains unusual characters.
4229 if test -f "${ac_aux_dir}config.guess"; then
4230 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
4231 fi
4232 if test -f "${ac_aux_dir}config.sub"; then
4233 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
4234 fi
4235 if test -f "$ac_aux_dir/configure"; then
4236 ac_configure="$SHELL ${ac_aux_dir}configure"
4237 fi
4238
4239 # Check that the precious variables saved in the cache have kept the same
4240 # value.
4241 ac_cache_corrupted=false
4242 for ac_var in $ac_precious_vars; do
4243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
4244 eval ac_new_set=\$ac_env_${ac_var}_set
4245 eval ac_old_val=\$ac_cv_env_${ac_var}_value
4246 eval ac_new_val=\$ac_env_${ac_var}_value
4247 case $ac_old_set,$ac_new_set in
4248 set,)
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
4250 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
4251 ac_cache_corrupted=: ;;
4252 ,set)
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
4254 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
4255 ac_cache_corrupted=: ;;
4256 ,);;
4257 *)
4258 if test "x$ac_old_val" != "x$ac_new_val"; then
4259 # differences in whitespace do not lead to failure.
4260 ac_old_val_w=`echo x $ac_old_val`
4261 ac_new_val_w=`echo x $ac_new_val`
4262 if test "$ac_old_val_w" != "$ac_new_val_w"; then
4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
4264 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
4265 ac_cache_corrupted=:
4266 else
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
4268 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
4269 eval $ac_var=\$ac_old_val
4270 fi
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
4272 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
4274 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
4275 fi;;
4276 esac
4277 # Pass precious variables to config.status.
4278 if test "$ac_new_set" = set; then
4279 case $ac_new_val in
4280 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4281 *) ac_arg=$ac_var=$ac_new_val ;;
4282 esac
4283 case " $ac_configure_args " in
4284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
4285 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
4286 esac
4287 fi
4288 done
4289 if $ac_cache_corrupted; then
4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4291 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
4293 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
4294 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
4295 and start over" "$LINENO" 5
4296 fi
4297 ## -------------------- ##
4298 ## Main body of script. ##
4299 ## -------------------- ##
4300
4301 ac_ext=c
4302 ac_cpp='$CPP $CPPFLAGS'
4303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315 ac_config_headers="$ac_config_headers config/config.h"
4316
4317
4318 ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
4319
4320
4321
4322 # Make sure we can run config.sub.
4323 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4324 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4325
4326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4327 printf %s "checking build system type... " >&6; }
4328 if test ${ac_cv_build+y}
4329 then :
4330 printf %s "(cached) " >&6
4331 else case e in #(
4332 e) ac_build_alias=$build_alias
4333 test "x$ac_build_alias" = x &&
4334 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4335 test "x$ac_build_alias" = x &&
4336 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4337 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4338 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4339 ;;
4340 esac
4341 fi
4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4343 printf "%s\n" "$ac_cv_build" >&6; }
4344 case $ac_cv_build in
4345 *-*-*) ;;
4346 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4347 esac
4348 build=$ac_cv_build
4349 ac_save_IFS=$IFS; IFS='-'
4350 set x $ac_cv_build
4351 shift
4352 build_cpu=$1
4353 build_vendor=$2
4354 shift; shift
4355 # Remember, the first character of IFS is used to create $*,
4356 # except with old shells:
4357 build_os=$*
4358 IFS=$ac_save_IFS
4359 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4360
4361
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4363 printf %s "checking host system type... " >&6; }
4364 if test ${ac_cv_host+y}
4365 then :
4366 printf %s "(cached) " >&6
4367 else case e in #(
4368 e) if test "x$host_alias" = x; then
4369 ac_cv_host=$ac_cv_build
4370 else
4371 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4372 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4373 fi
4374 ;;
4375 esac
4376 fi
4377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4378 printf "%s\n" "$ac_cv_host" >&6; }
4379 case $ac_cv_host in
4380 *-*-*) ;;
4381 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4382 esac
4383 host=$ac_cv_host
4384 ac_save_IFS=$IFS; IFS='-'
4385 set x $ac_cv_host
4386 shift
4387 host_cpu=$1
4388 host_vendor=$2
4389 shift; shift
4390 # Remember, the first character of IFS is used to create $*,
4391 # except with old shells:
4392 host_os=$*
4393 IFS=$ac_save_IFS
4394 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4395
4396
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4398 printf %s "checking target system type... " >&6; }
4399 if test ${ac_cv_target+y}
4400 then :
4401 printf %s "(cached) " >&6
4402 else case e in #(
4403 e) if test "x$target_alias" = x; then
4404 ac_cv_target=$ac_cv_host
4405 else
4406 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
4407 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
4408 fi
4409 ;;
4410 esac
4411 fi
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4413 printf "%s\n" "$ac_cv_target" >&6; }
4414 case $ac_cv_target in
4415 *-*-*) ;;
4416 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4417 esac
4418 target=$ac_cv_target
4419 ac_save_IFS=$IFS; IFS='-'
4420 set x $ac_cv_target
4421 shift
4422 target_cpu=$1
4423 target_vendor=$2
4424 shift; shift
4425 # Remember, the first character of IFS is used to create $*,
4426 # except with old shells:
4427 target_os=$*
4428 IFS=$ac_save_IFS
4429 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4430
4431
4432 # The aliases save the names the user supplied, while $host etc.
4433 # will get canonicalized.
4434 test -n "$target_alias" &&
4435 test "$program_prefix$program_suffix$program_transform_name" = \
4436 NONENONEs,x,x, &&
4437 program_prefix=${target_alias}-
4438
4439 am__api_version='1.18'
4440
4441
4442 # Find a good install program. We prefer a C program (faster),
4443 # so one script is as good as another. But avoid the broken or
4444 # incompatible versions:
4445 # SysV /etc/install, /usr/sbin/install
4446 # SunOS /usr/etc/install
4447 # IRIX /sbin/install
4448 # AIX /bin/install
4449 # AmigaOS /C/install, which installs bootblocks on floppy discs
4450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4453 # OS/2's system install, which has a completely different semantic
4454 # ./install, which can be erroneously created by make from ./install.sh.
4455 # Reject install programs that cannot install multiple files.
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4457 printf %s "checking for a BSD-compatible install... " >&6; }
4458 if test -z "$INSTALL"; then
4459 if test ${ac_cv_path_install+y}
4460 then :
4461 printf %s "(cached) " >&6
4462 else case e in #(
4463 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4465 do
4466 IFS=$as_save_IFS
4467 case $as_dir in #(((
4468 '') as_dir=./ ;;
4469 */) ;;
4470 *) as_dir=$as_dir/ ;;
4471 esac
4472 # Account for fact that we put trailing slashes in our PATH walk.
4473 case $as_dir in #((
4474 ./ | /[cC]/* | \
4475 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4476 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4477 /usr/ucb/* ) ;;
4478 *)
4479 # OSF1 and SCO ODT 3.0 have their own names for install.
4480 # Don't use installbsd from OSF since it installs stuff as root
4481 # by default.
4482 for ac_prog in ginstall scoinst install; do
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4485 if test $ac_prog = install &&
4486 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4487 # AIX install. It has an incompatible calling convention.
4488 :
4489 elif test $ac_prog = install &&
4490 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4491 # program-specific install script used by HP pwplus--don't use.
4492 :
4493 else
4494 rm -rf conftest.one conftest.two conftest.dir
4495 echo one > conftest.one
4496 echo two > conftest.two
4497 mkdir conftest.dir
4498 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4499 test -s conftest.one && test -s conftest.two &&
4500 test -s conftest.dir/conftest.one &&
4501 test -s conftest.dir/conftest.two
4502 then
4503 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4504 break 3
4505 fi
4506 fi
4507 fi
4508 done
4509 done
4510 ;;
4511 esac
4512
4513 done
4514 IFS=$as_save_IFS
4515
4516 rm -rf conftest.one conftest.two conftest.dir
4517 ;;
4518 esac
4519 fi
4520 if test ${ac_cv_path_install+y}; then
4521 INSTALL=$ac_cv_path_install
4522 else
4523 # As a last resort, use the slow shell script. Don't cache a
4524 # value for INSTALL within a source directory, because that will
4525 # break other packages using the cache if that directory is
4526 # removed, or if the value is a relative name.
4527 INSTALL=$ac_install_sh
4528 fi
4529 fi
4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4531 printf "%s\n" "$INSTALL" >&6; }
4532
4533 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4534 # It thinks the first close brace ends the variable substitution.
4535 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4536
4537 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4538
4539 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4540
4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4542 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4543 if test ${am_cv_sleep_fractional_seconds+y}
4544 then :
4545 printf %s "(cached) " >&6
4546 else case e in #(
4547 e) if sleep 0.001 2>/dev/null
4548 then :
4549 am_cv_sleep_fractional_seconds=yes
4550 else case e in #(
4551 e) am_cv_sleep_fractional_seconds=no ;;
4552 esac
4553 fi
4554 ;;
4555 esac
4556 fi
4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4558 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4559
4560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4561 printf %s "checking filesystem timestamp resolution... " >&6; }
4562 if test ${am_cv_filesystem_timestamp_resolution+y}
4563 then :
4564 printf %s "(cached) " >&6
4565 else case e in #(
4566 e) # Default to the worst case.
4567 am_cv_filesystem_timestamp_resolution=2
4568
4569 # Only try to go finer than 1 sec if sleep can do it.
4570 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4571 # - 1 sec is not much of a win compared to 2 sec, and
4572 # - it takes 2 seconds to perform the test whether 1 sec works.
4573 #
4574 # Instead, just use the default 2s on platforms that have 1s resolution,
4575 # accept the extra 1s delay when using $sleep in the Automake tests, in
4576 # exchange for not incurring the 2s delay for running the test for all
4577 # packages.
4578 #
4579 am_try_resolutions=
4580 if test "$am_cv_sleep_fractional_seconds" = yes; then
4581 # Even a millisecond often causes a bunch of false positives,
4582 # so just try a hundredth of a second. The time saved between .001 and
4583 # .01 is not terribly consequential.
4584 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4585 fi
4586
4587 # In order to catch current-generation FAT out, we must *modify* files
4588 # that already exist; the *creation* timestamp is finer. Use names
4589 # that make ls -t sort them differently when they have equal
4590 # timestamps than when they have distinct timestamps, keeping
4591 # in mind that ls -t prints the *newest* file first.
4592 rm -f conftest.ts?
4593 : > conftest.ts1
4594 : > conftest.ts2
4595 : > conftest.ts3
4596
4597 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4598 # clobber the current shell's arguments. (Outer-level square brackets
4599 # are removed by m4; they're present so that m4 does not expand
4600 # <dollar><star>; be careful, easy to get confused.)
4601 if (
4602 set X `ls -t conftest.ts[12]` &&
4603 {
4604 test "$*" != "X conftest.ts1 conftest.ts2" ||
4605 test "$*" != "X conftest.ts2 conftest.ts1";
4606 }
4607 ); then :; else
4608 # If neither matched, then we have a broken ls. This can happen
4609 # if, for instance, CONFIG_SHELL is bash and it inherits a
4610 # broken ls alias from the environment. This has actually
4611 # happened. Such a system could not be considered "sane".
4612 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4613 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4614 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4615 as_fn_error $? "ls -t produces unexpected output.
4616 Make sure there is not a broken ls alias in your environment.
4617 See 'config.log' for more details" "$LINENO" 5; }
4618 fi
4619
4620 for am_try_res in $am_try_resolutions; do
4621 # Any one fine-grained sleep might happen to cross the boundary
4622 # between two values of a coarser actual resolution, but if we do
4623 # two fine-grained sleeps in a row, at least one of them will fall
4624 # entirely within a coarse interval.
4625 echo alpha > conftest.ts1
4626 sleep $am_try_res
4627 echo beta > conftest.ts2
4628 sleep $am_try_res
4629 echo gamma > conftest.ts3
4630
4631 # We assume that 'ls -t' will make use of high-resolution
4632 # timestamps if the operating system supports them at all.
4633 if (set X `ls -t conftest.ts?` &&
4634 test "$2" = conftest.ts3 &&
4635 test "$3" = conftest.ts2 &&
4636 test "$4" = conftest.ts1); then
4637 #
4638 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4639 # because we don't need to test make.
4640 make_ok=true
4641 if test $am_try_res != 1; then
4642 # But if we've succeeded so far with a subsecond resolution, we
4643 # have one more thing to check: make. It can happen that
4644 # everything else supports the subsecond mtimes, but make doesn't;
4645 # notably on macOS, which ships make 3.81 from 2006 (the last one
4646 # released under GPLv2). https://bugs.gnu.org/68808
4647 #
4648 # We test $MAKE if it is defined in the environment, else "make".
4649 # It might get overridden later, but our hope is that in practice
4650 # it does not matter: it is the system "make" which is (by far)
4651 # the most likely to be broken, whereas if the user overrides it,
4652 # probably they did so with a better, or at least not worse, make.
4653 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4654 #
4655 # Create a Makefile (real tab character here):
4656 rm -f conftest.mk
4657 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4658 echo ' touch conftest.ts2' >>conftest.mk
4659 #
4660 # Now, running
4661 # touch conftest.ts1; touch conftest.ts2; make
4662 # should touch ts1 because ts2 is newer. This could happen by luck,
4663 # but most often, it will fail if make's support is insufficient. So
4664 # test for several consecutive successes.
4665 #
4666 # (We reuse conftest.ts[12] because we still want to modify existing
4667 # files, not create new ones, per above.)
4668 n=0
4669 make=${MAKE-make}
4670 until test $n -eq 3; do
4671 echo one > conftest.ts1
4672 sleep $am_try_res
4673 echo two > conftest.ts2 # ts2 should now be newer than ts1
4674 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4675 make_ok=false
4676 break # out of $n loop
4677 fi
4678 n=`expr $n + 1`
4679 done
4680 fi
4681 #
4682 if $make_ok; then
4683 # Everything we know to check worked out, so call this resolution good.
4684 am_cv_filesystem_timestamp_resolution=$am_try_res
4685 break # out of $am_try_res loop
4686 fi
4687 # Otherwise, we'll go on to check the next resolution.
4688 fi
4689 done
4690 rm -f conftest.ts?
4691 # (end _am_filesystem_timestamp_resolution)
4692 ;;
4693 esac
4694 fi
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4696 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4697
4698 # This check should not be cached, as it may vary across builds of
4699 # different projects.
4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4701 printf %s "checking whether build environment is sane... " >&6; }
4702 # Reject unsafe characters in $srcdir or the absolute working directory
4703 # name. Accept space and tab only in the latter.
4704 am_lf='
4705 '
4706 case `pwd` in
4707 *[\\\"\#\$\&\'\`$am_lf]*)
4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 printf "%s\n" "no" >&6; }
4710 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4711 esac
4712 case $srcdir in
4713 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 printf "%s\n" "no" >&6; }
4716 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4717 esac
4718
4719 # Do 'set' in a subshell so we don't clobber the current shell's
4720 # arguments. Must try -L first in case configure is actually a
4721 # symlink; some systems play weird games with the mod time of symlinks
4722 # (eg FreeBSD returns the mod time of the symlink's containing
4723 # directory).
4724 am_build_env_is_sane=no
4725 am_has_slept=no
4726 rm -f conftest.file
4727 for am_try in 1 2; do
4728 echo "timestamp, slept: $am_has_slept" > conftest.file
4729 if (
4730 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4731 if test "$*" = "X"; then
4732 # -L didn't work.
4733 set X `ls -t "$srcdir/configure" conftest.file`
4734 fi
4735 test "$2" = conftest.file
4736 ); then
4737 am_build_env_is_sane=yes
4738 break
4739 fi
4740 # Just in case.
4741 sleep "$am_cv_filesystem_timestamp_resolution"
4742 am_has_slept=yes
4743 done
4744
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4746 printf "%s\n" "$am_build_env_is_sane" >&6; }
4747 if test "$am_build_env_is_sane" = no; then
4748 as_fn_error $? "newly created file is older than distributed files!
4749 Check your system clock" "$LINENO" 5
4750 fi
4751
4752 # If we didn't sleep, we still need to ensure time stamps of config.status and
4753 # generated files are strictly newer.
4754 am_sleep_pid=
4755 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4756 then :
4757
4758 else case e in #(
4759 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4760 am_sleep_pid=$!
4761 ;;
4762 esac
4763 fi
4764
4765 rm -f conftest.file
4766
4767 test "$program_prefix" != NONE &&
4768 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4769 # Use a double $ so make ignores it.
4770 test "$program_suffix" != NONE &&
4771 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4772 # Double any \ or $.
4773 # By default was 's,x,x', remove it if useless.
4774 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4775 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4776
4777
4778 # Expand $ac_aux_dir to an absolute path.
4779 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4780
4781
4782 if test x"${MISSING+set}" != xset; then
4783 MISSING="\${SHELL} '$am_aux_dir/missing'"
4784 fi
4785 # Use eval to expand $SHELL
4786 if eval "$MISSING --is-lightweight"; then
4787 am_missing_run="$MISSING "
4788 else
4789 am_missing_run=
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4791 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4792 fi
4793
4794 if test x"${install_sh+set}" != xset; then
4795 case $am_aux_dir in
4796 *\ * | *\ *)
4797 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4798 *)
4799 install_sh="\${SHELL} $am_aux_dir/install-sh"
4800 esac
4801 fi
4802
4803 # Installed binaries are usually stripped using 'strip' when the user
4804 # run "make install-strip". However 'strip' might not be the right
4805 # tool to use in cross-compilation environments, therefore Automake
4806 # will honor the 'STRIP' environment variable to overrule this program.
4807 if test "$cross_compiling" != no; then
4808 if test -n "$ac_tool_prefix"; then
4809 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4810 set dummy ${ac_tool_prefix}strip; ac_word=$2
4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 printf %s "checking for $ac_word... " >&6; }
4813 if test ${ac_cv_prog_STRIP+y}
4814 then :
4815 printf %s "(cached) " >&6
4816 else case e in #(
4817 e) if test -n "$STRIP"; then
4818 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823 IFS=$as_save_IFS
4824 case $as_dir in #(((
4825 '') as_dir=./ ;;
4826 */) ;;
4827 *) as_dir=$as_dir/ ;;
4828 esac
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4831 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4833 break 2
4834 fi
4835 done
4836 done
4837 IFS=$as_save_IFS
4838
4839 fi ;;
4840 esac
4841 fi
4842 STRIP=$ac_cv_prog_STRIP
4843 if test -n "$STRIP"; then
4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4845 printf "%s\n" "$STRIP" >&6; }
4846 else
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 printf "%s\n" "no" >&6; }
4849 fi
4850
4851
4852 fi
4853 if test -z "$ac_cv_prog_STRIP"; then
4854 ac_ct_STRIP=$STRIP
4855 # Extract the first word of "strip", so it can be a program name with args.
4856 set dummy strip; ac_word=$2
4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 printf %s "checking for $ac_word... " >&6; }
4859 if test ${ac_cv_prog_ac_ct_STRIP+y}
4860 then :
4861 printf %s "(cached) " >&6
4862 else case e in #(
4863 e) if test -n "$ac_ct_STRIP"; then
4864 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869 IFS=$as_save_IFS
4870 case $as_dir in #(((
4871 '') as_dir=./ ;;
4872 */) ;;
4873 *) as_dir=$as_dir/ ;;
4874 esac
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4877 ac_cv_prog_ac_ct_STRIP="strip"
4878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 fi ;;
4886 esac
4887 fi
4888 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4889 if test -n "$ac_ct_STRIP"; then
4890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4891 printf "%s\n" "$ac_ct_STRIP" >&6; }
4892 else
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894 printf "%s\n" "no" >&6; }
4895 fi
4896
4897 if test "x$ac_ct_STRIP" = x; then
4898 STRIP=":"
4899 else
4900 case $cross_compiling:$ac_tool_warned in
4901 yes:)
4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4903 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4904 ac_tool_warned=yes ;;
4905 esac
4906 STRIP=$ac_ct_STRIP
4907 fi
4908 else
4909 STRIP="$ac_cv_prog_STRIP"
4910 fi
4911
4912 fi
4913 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4914
4915
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4917 printf %s "checking for a race-free mkdir -p... " >&6; }
4918 if test -z "$MKDIR_P"; then
4919 if test ${ac_cv_path_mkdir+y}
4920 then :
4921 printf %s "(cached) " >&6
4922 else case e in #(
4923 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4925 do
4926 IFS=$as_save_IFS
4927 case $as_dir in #(((
4928 '') as_dir=./ ;;
4929 */) ;;
4930 *) as_dir=$as_dir/ ;;
4931 esac
4932 for ac_prog in mkdir gmkdir; do
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4935 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4936 'mkdir ('*'coreutils) '* | \
4937 *'BusyBox '* | \
4938 'mkdir (fileutils) '4.1*)
4939 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4940 break 3;;
4941 esac
4942 done
4943 done
4944 done
4945 IFS=$as_save_IFS
4946 ;;
4947 esac
4948 fi
4949
4950 test -d ./--version && rmdir ./--version
4951 if test ${ac_cv_path_mkdir+y}; then
4952 MKDIR_P="$ac_cv_path_mkdir -p"
4953 else
4954 # As a last resort, use plain mkdir -p,
4955 # in the hope it doesn't have the bugs of ancient mkdir.
4956 MKDIR_P='mkdir -p'
4957 fi
4958 fi
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4960 printf "%s\n" "$MKDIR_P" >&6; }
4961
4962 for ac_prog in gawk mawk nawk awk
4963 do
4964 # Extract the first word of "$ac_prog", so it can be a program name with args.
4965 set dummy $ac_prog; ac_word=$2
4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 printf %s "checking for $ac_word... " >&6; }
4968 if test ${ac_cv_prog_AWK+y}
4969 then :
4970 printf %s "(cached) " >&6
4971 else case e in #(
4972 e) if test -n "$AWK"; then
4973 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4977 do
4978 IFS=$as_save_IFS
4979 case $as_dir in #(((
4980 '') as_dir=./ ;;
4981 */) ;;
4982 *) as_dir=$as_dir/ ;;
4983 esac
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4986 ac_cv_prog_AWK="$ac_prog"
4987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4988 break 2
4989 fi
4990 done
4991 done
4992 IFS=$as_save_IFS
4993
4994 fi ;;
4995 esac
4996 fi
4997 AWK=$ac_cv_prog_AWK
4998 if test -n "$AWK"; then
4999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5000 printf "%s\n" "$AWK" >&6; }
5001 else
5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003 printf "%s\n" "no" >&6; }
5004 fi
5005
5006
5007 test -n "$AWK" && break
5008 done
5009
5010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5011 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5012 set x ${MAKE-make}
5013 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5014 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5015 then :
5016 printf %s "(cached) " >&6
5017 else case e in #(
5018 e) cat >conftest.make <<\_ACEOF
5019 SHELL = /bin/sh
5020 all:
5021 @echo '@@@%%%=$(MAKE)=@@@%%%'
5022 _ACEOF
5023 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5024 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5025 *@@@%%%=?*=@@@%%%*)
5026 eval ac_cv_prog_make_${ac_make}_set=yes;;
5027 *)
5028 eval ac_cv_prog_make_${ac_make}_set=no;;
5029 esac
5030 rm -f conftest.make ;;
5031 esac
5032 fi
5033 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5035 printf "%s\n" "yes" >&6; }
5036 SET_MAKE=
5037 else
5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 printf "%s\n" "no" >&6; }
5040 SET_MAKE="MAKE=${MAKE-make}"
5041 fi
5042
5043 rm -rf .tst 2>/dev/null
5044 mkdir .tst 2>/dev/null
5045 if test -d .tst; then
5046 am__leading_dot=.
5047 else
5048 am__leading_dot=_
5049 fi
5050 rmdir .tst 2>/dev/null
5051
5052 AM_DEFAULT_VERBOSITY=1
5053 # Check whether --enable-silent-rules was given.
5054 if test ${enable_silent_rules+y}
5055 then :
5056 enableval=$enable_silent_rules;
5057 fi
5058
5059 am_make=${MAKE-make}
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5061 printf %s "checking whether $am_make supports nested variables... " >&6; }
5062 if test ${am_cv_make_support_nested_variables+y}
5063 then :
5064 printf %s "(cached) " >&6
5065 else case e in #(
5066 e) if printf "%s\n" 'TRUE=$(BAR$(V))
5067 BAR0=false
5068 BAR1=true
5069 V=1
5070 am__doit:
5071 @$(TRUE)
5072 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5073 am_cv_make_support_nested_variables=yes
5074 else
5075 am_cv_make_support_nested_variables=no
5076 fi ;;
5077 esac
5078 fi
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5080 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
5081 AM_BACKSLASH='\'
5082
5083 am__rm_f_notfound=
5084 if (rm -f && rm -fr && rm -rf) 2>/dev/null
5085 then :
5086
5087 else case e in #(
5088 e) am__rm_f_notfound='""' ;;
5089 esac
5090 fi
5091
5092
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
5094 printf %s "checking xargs -n works... " >&6; }
5095 if test ${am_cv_xargs_n_works+y}
5096 then :
5097 printf %s "(cached) " >&6
5098 else case e in #(
5099 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
5100 3"
5101 then :
5102 am_cv_xargs_n_works=yes
5103 else case e in #(
5104 e) am_cv_xargs_n_works=no ;;
5105 esac
5106 fi ;;
5107 esac
5108 fi
5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
5110 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
5111 if test "$am_cv_xargs_n_works" = yes
5112 then :
5113 am__xargs_n='xargs -n'
5114 else case e in #(
5115 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
5116 ;;
5117 esac
5118 fi
5119
5120 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5121 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5122 # is not polluted with repeated "-I."
5123 am__isrc=' -I$(srcdir)'
5124 # test to see if srcdir already configured
5125 if test -f $srcdir/config.status; then
5126 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5127 fi
5128 fi
5129
5130 # test whether we have cygpath
5131 if test -z "$CYGPATH_W"; then
5132 if (cygpath --version) >/dev/null 2>/dev/null; then
5133 CYGPATH_W='cygpath -w'
5134 else
5135 CYGPATH_W=echo
5136 fi
5137 fi
5138
5139
5140 # Define the identity of the package.
5141 PACKAGE='ImageMagick'
5142 VERSION='7.1.2-27'
5143
5144
5145 # Some tools Automake needs.
5146
5147 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5148
5149
5150 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5151
5152
5153 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5154
5155
5156 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5157
5158
5159 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5160
5161 # For better backward compatibility. To be removed once Automake 1.9.x
5162 # dies out for good. For more background, see:
5163 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5164 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5165 mkdir_p='$(MKDIR_P)'
5166
5167 # We need awk for the "check" target (and possibly the TAP driver). The
5168 # system "awk" is bad on some platforms.
5169 # Always define AMTAR for backward compatibility. Yes, it's still used
5170 # in the wild :-( We should find a proper way to deprecate it ...
5171 AMTAR='$${TAR-tar}'
5172
5173
5174 # We'll loop over all known methods to create a tar archive until one works.
5175 _am_tools='gnutar plaintar pax cpio none'
5176
5177 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
5178 # There is notably a 21 bits limit for the UID and the GID. In fact,
5179 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
5180 # and bug#13588).
5181 am_max_uid=2097151 # 2^21 - 1
5182 am_max_gid=$am_max_uid
5183 # The $UID and $GID variables are not portable, so we need to resort
5184 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
5185 # below are definitely unexpected, so allow the users to see them
5186 # (that is, avoid stderr redirection).
5187 am_uid=`id -u || echo unknown`
5188 am_gid=`id -g || echo unknown`
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
5190 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
5191 if test x$am_uid = xunknown; then
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
5193 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
5194 elif test $am_uid -le $am_max_uid; then
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5196 printf "%s\n" "yes" >&6; }
5197 else
5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 printf "%s\n" "no" >&6; }
5200 _am_tools=none
5201 fi
5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
5203 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
5204 if test x$gm_gid = xunknown; then
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
5206 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
5207 elif test $am_gid -le $am_max_gid; then
5208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5209 printf "%s\n" "yes" >&6; }
5210 else
5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 printf "%s\n" "no" >&6; }
5213 _am_tools=none
5214 fi
5215
5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
5217 printf %s "checking how to create a ustar tar archive... " >&6; }
5218
5219 # Go ahead even if we have the value already cached. We do so because we
5220 # need to set the values for the 'am__tar' and 'am__untar' variables.
5221 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
5222
5223 for _am_tool in $_am_tools; do
5224 case $_am_tool in
5225 gnutar)
5226 for _am_tar in tar gnutar gtar; do
5227 { echo "$as_me:$LINENO: $_am_tar --version" >&5
5228 ($_am_tar --version) >&5 2>&5
5229 ac_status=$?
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } && break
5232 done
5233 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
5234 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
5235 am__untar="$_am_tar -xf -"
5236 ;;
5237 plaintar)
5238 # Must skip GNU tar: if it does not support --format= it doesn't create
5239 # ustar tarball either.
5240 (tar --version) >/dev/null 2>&1 && continue
5241 am__tar='tar chf - "$$tardir"'
5242 am__tar_='tar chf - "$tardir"'
5243 am__untar='tar xf -'
5244 ;;
5245 pax)
5246 am__tar='pax -L -x ustar -w "$$tardir"'
5247 am__tar_='pax -L -x ustar -w "$tardir"'
5248 am__untar='pax -r'
5249 ;;
5250 cpio)
5251 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
5252 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
5253 am__untar='cpio -i -H ustar -d'
5254 ;;
5255 none)
5256 am__tar=false
5257 am__tar_=false
5258 am__untar=false
5259 ;;
5260 esac
5261
5262 # If the value was cached, stop now. We just wanted to have am__tar
5263 # and am__untar set.
5264 test -n "${am_cv_prog_tar_ustar}" && break
5265
5266 # tar/untar a dummy directory, and stop if the command works.
5267 rm -rf conftest.dir
5268 mkdir conftest.dir
5269 echo GrepMe > conftest.dir/file
5270 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
5271 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }
5275 rm -rf conftest.dir
5276 if test -s conftest.tar; then
5277 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
5278 ($am__untar <conftest.tar) >&5 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }
5282 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
5283 (cat conftest.dir/file) >&5 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }
5287 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
5288 fi
5289 done
5290 rm -rf conftest.dir
5291
5292 if test ${am_cv_prog_tar_ustar+y}
5293 then :
5294 printf %s "(cached) " >&6
5295 else case e in #(
5296 e) am_cv_prog_tar_ustar=$_am_tool ;;
5297 esac
5298 fi
5299
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
5301 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
5302
5303
5304
5305
5306
5307 # Variables for tags utilities; see am/tags.am
5308 if test -z "$CTAGS"; then
5309 CTAGS=ctags
5310 fi
5311
5312 if test -z "$ETAGS"; then
5313 ETAGS=etags
5314 fi
5315
5316 if test -z "$CSCOPE"; then
5317 CSCOPE=cscope
5318 fi
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328 AM_DEFAULT_VERBOSITY=0
5329
5330
5331 CONFIGURE_DEPENDENCIES="$CONFIGURE_DEPENDENCIES \$(top_srcdir)/m4/version.m4"
5332
5333
5334 #
5335 # Save initial user-tunable values
5336 #
5337 USER_LIBS=$LIBS
5338 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS AR_FLAGS LIBS ; do
5339 eval isset=\${$var+set}
5340 if test "$isset" = 'set'; then
5341 eval val=$`echo $var`
5342 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
5343 fi
5344 done
5345
5346
5347 CONFIGURE_ARGS="$0 ${ac_configure_args}"
5348
5349
5350 echo "Configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}"
5351
5352 MAGICK_TARGET_CPU=$host_cpu
5353
5354
5355 printf "%s\n" "#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU" >>confdefs.h
5356
5357
5358 MAGICK_TARGET_VENDOR=$host_vendor
5359
5360
5361 printf "%s\n" "#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR" >>confdefs.h
5362
5363
5364 MAGICK_TARGET_OS=$host_os
5365
5366
5367 printf "%s\n" "#define MAGICK_TARGET_OS $MAGICK_TARGET_OS" >>confdefs.h
5368
5369
5370 case "$host_os" in
5371 mingw* | msys*)
5372 SHELL_QUOTE="&quot;"
5373 ;;
5374 *)
5375 SHELL_QUOTE="&apos;"
5376 ;;
5377 esac
5378
5379
5380
5381 # Substitute versioning
5382 MAGICK_MAJOR_VERSION=7
5383
5384 MAGICK_MINOR_VERSION=1
5385
5386 MAGICK_MICRO_VERSION=2
5387
5388 MAGICK_PATCHLEVEL_VERSION=27
5389
5390 MAGICK_VERSION=7.1.2-27
5391
5392 MAGICK_GIT_REVISION=e4c2b403b:20260705
5393
5394
5395 # Substitute library versioning
5396 MAGICK_LIBRARY_CURRENT=10
5397 MAGICK_LIBRARY_REVISION=3
5398 MAGICK_LIBRARY_AGE=0
5399 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
5400
5401 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
5402
5403
5404 MAGICKPP_LIBRARY_CURRENT=5
5405 MAGICKPP_LIBRARY_REVISION=0
5406 MAGICKPP_LIBRARY_AGE=0
5407 MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
5408
5409 MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
5410
5411
5412 PACKAGE_BASE_VERSION=7.1.2
5413
5414 PACKAGE_PATCHLEVEL_VERSION=27
5415
5416 if test "n" = 'y'; then
5417 PACKAGE_VERSION_ADDENDUM='-27 (Beta)'
5418 else
5419 PACKAGE_VERSION_ADDENDUM=-27
5420 fi
5421
5422 PACKAGE_LIB_VERSION=0x712
5423
5424 PACKAGE_LIB_VERSION_NUMBER=7,1,2,27
5425
5426 PACKAGE_RELEASE_DATE=2026-07-05
5427
5428
5429 # Ensure that make can run correctly
5430
5431 # This check should not be cached, as it may vary across builds of
5432 # different projects.
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5434 printf %s "checking whether build environment is sane... " >&6; }
5435 # Reject unsafe characters in $srcdir or the absolute working directory
5436 # name. Accept space and tab only in the latter.
5437 am_lf='
5438 '
5439 case `pwd` in
5440 *[\\\"\#\$\&\'\`$am_lf]*)
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 printf "%s\n" "no" >&6; }
5443 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5444 esac
5445 case $srcdir in
5446 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 printf "%s\n" "no" >&6; }
5449 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5450 esac
5451
5452 # Do 'set' in a subshell so we don't clobber the current shell's
5453 # arguments. Must try -L first in case configure is actually a
5454 # symlink; some systems play weird games with the mod time of symlinks
5455 # (eg FreeBSD returns the mod time of the symlink's containing
5456 # directory).
5457 am_build_env_is_sane=no
5458 am_has_slept=no
5459 rm -f conftest.file
5460 for am_try in 1 2; do
5461 echo "timestamp, slept: $am_has_slept" > conftest.file
5462 if (
5463 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5464 if test "$*" = "X"; then
5465 # -L didn't work.
5466 set X `ls -t "$srcdir/configure" conftest.file`
5467 fi
5468 test "$2" = conftest.file
5469 ); then
5470 am_build_env_is_sane=yes
5471 break
5472 fi
5473 # Just in case.
5474 sleep "$am_cv_filesystem_timestamp_resolution"
5475 am_has_slept=yes
5476 done
5477
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
5479 printf "%s\n" "$am_build_env_is_sane" >&6; }
5480 if test "$am_build_env_is_sane" = no; then
5481 as_fn_error $? "newly created file is older than distributed files!
5482 Check your system clock" "$LINENO" 5
5483 fi
5484
5485 # If we didn't sleep, we still need to ensure time stamps of config.status and
5486 # generated files are strictly newer.
5487 am_sleep_pid=
5488 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
5489 then :
5490
5491 else case e in #(
5492 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
5493 am_sleep_pid=$!
5494 ;;
5495 esac
5496 fi
5497
5498 rm -f conftest.file
5499
5500
5501 # versioning of library
5502 MAGICK_LIB_VERSION="0x"
5503 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
5504 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
5505 fi
5506 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
5507 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
5508 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
5509 fi
5510 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
5511 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
5512 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
5513 fi
5514 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
5515
5516
5517 # Definition used to define MagickLibVersionText in version.h
5518 MAGICK_LIB_VERSION_TEXT="${PACKAGE_BASE_VERSION}"
5519
5520
5521 # Definition used to define MagickLibVersionNumber in version.h
5522 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
5523
5524
5525 MAGICKPP_LIB_VERSION="0x"
5526 if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
5527 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
5528 fi
5529 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
5530 if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
5531 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
5532 fi
5533 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
5534 if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
5535 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
5536 fi
5537 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
5538
5539
5540 # Definition used to define MagickLibVersionText in version.h
5541 MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_BASE_VERSION}"
5542
5543
5544 # Definition used to define MagickLibVersionNumber in version.h
5545 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
5546
5547
5548 PERLMAINCC=$CC
5549
5550 MAGICK_CFLAGS=''
5551 MAGICK_CPPFLAGS=$CPPFLAGS_USER
5552 MAGICK_PCFLAGS=$CPPFLAGS_USER
5553 MAGICK_LDFLAGS=''
5554 MAGICK_LIBS=''
5555 MAGICK_FEATURES=''
5556
5557 #
5558 # Evaluate shell variable equivalents to Makefile directory variables
5559 #
5560 if test "x$prefix" = xNONE; then
5561 prefix=$ac_default_prefix
5562 fi
5563 # Let make expand exec_prefix.
5564 if test "x$exec_prefix" = xNONE; then
5565 exec_prefix='${prefix}'
5566 fi
5567
5568 #
5569 eval "eval PREFIX_DIR=${prefix}"
5570
5571 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
5572
5573 eval "eval BIN_DIR=$bindir"
5574
5575 eval "eval SBIN_DIR=$sbindir"
5576
5577 eval "eval LIBEXEC_DIR=$libexecdir"
5578
5579 eval "eval DATA_DIR=$datadir"
5580
5581 eval "eval DOC_DIR=$datadir/doc"
5582
5583 eval "eval SYSCONF_DIR=$sysconfdir"
5584
5585 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
5586
5587 eval "eval LOCALSTATE_DIR=$localstatedir"
5588
5589 eval "eval LIB_DIR=$libdir"
5590
5591 eval "eval INCLUDE_DIR=$includedir"
5592
5593 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
5594
5595 eval "eval INFO_DIR=$infodir"
5596
5597 eval "eval MAN_DIR=$mandir"
5598
5599
5600 # Get full paths to source and build directories
5601 srcdirfull="`cd $srcdir && pwd`"
5602 builddir="`pwd`"
5603
5604 #
5605 # Compute variables useful for running uninstalled software.
5606 #
5607 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
5608 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
5609 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
5610 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
5611 DIRSEP=':'
5612 case "${build_os}" in
5613 mingw* )
5614 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
5615 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
5616 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
5617 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
5618 DIRSEP=';'
5619 ;;
5620 esac
5621 case "${host_os}" in
5622 mingw* )
5623 DIRSEP=';'
5624 ;;
5625 esac
5626
5627
5628
5629
5630
5631
5632
5633 #
5634 # Enable OS features.
5635 #
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645 DEPDIR="${am__leading_dot}deps"
5646
5647 ac_config_commands="$ac_config_commands depfiles"
5648
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5650 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5651 cat > confinc.mk << 'END'
5652 am__doit:
5653 @echo this is the am__doit target >confinc.out
5654 .PHONY: am__doit
5655 END
5656 am__include="#"
5657 am__quote=
5658 # BSD make does it like this.
5659 echo '.include "confinc.mk" # ignored' > confmf.BSD
5660 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5661 echo 'include confinc.mk # ignored' > confmf.GNU
5662 _am_result=no
5663 for s in GNU BSD; do
5664 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5665 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }
5669 case $?:`cat confinc.out 2>/dev/null` in #(
5670 '0:this is the am__doit target') :
5671 case $s in #(
5672 BSD) :
5673 am__include='.include' am__quote='"' ;; #(
5674 *) :
5675 am__include='include' am__quote='' ;;
5676 esac ;; #(
5677 *) :
5678 ;;
5679 esac
5680 if test "$am__include" != "#"; then
5681 _am_result="yes ($s style)"
5682 break
5683 fi
5684 done
5685 rm -f confinc.* confmf.*
5686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5687 printf "%s\n" "${_am_result}" >&6; }
5688
5689 # Check whether --enable-dependency-tracking was given.
5690 if test ${enable_dependency_tracking+y}
5691 then :
5692 enableval=$enable_dependency_tracking;
5693 fi
5694
5695 if test "x$enable_dependency_tracking" != xno; then
5696 am_depcomp="$ac_aux_dir/depcomp"
5697 AMDEPBACKSLASH='\'
5698 am__nodep='_no'
5699 fi
5700 if test "x$enable_dependency_tracking" != xno; then
5701 AMDEP_TRUE=
5702 AMDEP_FALSE='#'
5703 else
5704 AMDEP_TRUE='#'
5705 AMDEP_FALSE=
5706 fi
5707
5708
5709 ac_ext=c
5710 ac_cpp='$CPP $CPPFLAGS'
5711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5714 if test -n "$ac_tool_prefix"; then
5715 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5716 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 printf %s "checking for $ac_word... " >&6; }
5719 if test ${ac_cv_prog_CC+y}
5720 then :
5721 printf %s "(cached) " >&6
5722 else case e in #(
5723 e) if test -n "$CC"; then
5724 ac_cv_prog_CC="$CC" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5728 do
5729 IFS=$as_save_IFS
5730 case $as_dir in #(((
5731 '') as_dir=./ ;;
5732 */) ;;
5733 *) as_dir=$as_dir/ ;;
5734 esac
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5737 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5739 break 2
5740 fi
5741 done
5742 done
5743 IFS=$as_save_IFS
5744
5745 fi ;;
5746 esac
5747 fi
5748 CC=$ac_cv_prog_CC
5749 if test -n "$CC"; then
5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5751 printf "%s\n" "$CC" >&6; }
5752 else
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 printf "%s\n" "no" >&6; }
5755 fi
5756
5757
5758 fi
5759 if test -z "$ac_cv_prog_CC"; then
5760 ac_ct_CC=$CC
5761 # Extract the first word of "gcc", so it can be a program name with args.
5762 set dummy gcc; ac_word=$2
5763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 printf %s "checking for $ac_word... " >&6; }
5765 if test ${ac_cv_prog_ac_ct_CC+y}
5766 then :
5767 printf %s "(cached) " >&6
5768 else case e in #(
5769 e) if test -n "$ac_ct_CC"; then
5770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5771 else
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775 IFS=$as_save_IFS
5776 case $as_dir in #(((
5777 '') as_dir=./ ;;
5778 */) ;;
5779 *) as_dir=$as_dir/ ;;
5780 esac
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5783 ac_cv_prog_ac_ct_CC="gcc"
5784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5785 break 2
5786 fi
5787 done
5788 done
5789 IFS=$as_save_IFS
5790
5791 fi ;;
5792 esac
5793 fi
5794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5795 if test -n "$ac_ct_CC"; then
5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5797 printf "%s\n" "$ac_ct_CC" >&6; }
5798 else
5799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 printf "%s\n" "no" >&6; }
5801 fi
5802
5803 if test "x$ac_ct_CC" = x; then
5804 CC=""
5805 else
5806 case $cross_compiling:$ac_tool_warned in
5807 yes:)
5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5809 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5810 ac_tool_warned=yes ;;
5811 esac
5812 CC=$ac_ct_CC
5813 fi
5814 else
5815 CC="$ac_cv_prog_CC"
5816 fi
5817
5818 if test -z "$CC"; then
5819 if test -n "$ac_tool_prefix"; then
5820 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5821 set dummy ${ac_tool_prefix}cc; ac_word=$2
5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823 printf %s "checking for $ac_word... " >&6; }
5824 if test ${ac_cv_prog_CC+y}
5825 then :
5826 printf %s "(cached) " >&6
5827 else case e in #(
5828 e) if test -n "$CC"; then
5829 ac_cv_prog_CC="$CC" # Let the user override the test.
5830 else
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834 IFS=$as_save_IFS
5835 case $as_dir in #(((
5836 '') as_dir=./ ;;
5837 */) ;;
5838 *) as_dir=$as_dir/ ;;
5839 esac
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5842 ac_cv_prog_CC="${ac_tool_prefix}cc"
5843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5844 break 2
5845 fi
5846 done
5847 done
5848 IFS=$as_save_IFS
5849
5850 fi ;;
5851 esac
5852 fi
5853 CC=$ac_cv_prog_CC
5854 if test -n "$CC"; then
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5856 printf "%s\n" "$CC" >&6; }
5857 else
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 printf "%s\n" "no" >&6; }
5860 fi
5861
5862
5863 fi
5864 fi
5865 if test -z "$CC"; then
5866 # Extract the first word of "cc", so it can be a program name with args.
5867 set dummy cc; ac_word=$2
5868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869 printf %s "checking for $ac_word... " >&6; }
5870 if test ${ac_cv_prog_CC+y}
5871 then :
5872 printf %s "(cached) " >&6
5873 else case e in #(
5874 e) if test -n "$CC"; then
5875 ac_cv_prog_CC="$CC" # Let the user override the test.
5876 else
5877 ac_prog_rejected=no
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5880 do
5881 IFS=$as_save_IFS
5882 case $as_dir in #(((
5883 '') as_dir=./ ;;
5884 */) ;;
5885 *) as_dir=$as_dir/ ;;
5886 esac
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5889 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5890 ac_prog_rejected=yes
5891 continue
5892 fi
5893 ac_cv_prog_CC="cc"
5894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5895 break 2
5896 fi
5897 done
5898 done
5899 IFS=$as_save_IFS
5900
5901 if test $ac_prog_rejected = yes; then
5902 # We found a bogon in the path, so make sure we never use it.
5903 set dummy $ac_cv_prog_CC
5904 shift
5905 if test $# != 0; then
5906 # We chose a different compiler from the bogus one.
5907 # However, it has the same basename, so the bogon will be chosen
5908 # first if we set CC to just the basename; use the full file name.
5909 shift
5910 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5911 fi
5912 fi
5913 fi ;;
5914 esac
5915 fi
5916 CC=$ac_cv_prog_CC
5917 if test -n "$CC"; then
5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5919 printf "%s\n" "$CC" >&6; }
5920 else
5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 printf "%s\n" "no" >&6; }
5923 fi
5924
5925
5926 fi
5927 if test -z "$CC"; then
5928 if test -n "$ac_tool_prefix"; then
5929 for ac_prog in cl.exe
5930 do
5931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934 printf %s "checking for $ac_word... " >&6; }
5935 if test ${ac_cv_prog_CC+y}
5936 then :
5937 printf %s "(cached) " >&6
5938 else case e in #(
5939 e) if test -n "$CC"; then
5940 ac_cv_prog_CC="$CC" # Let the user override the test.
5941 else
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5944 do
5945 IFS=$as_save_IFS
5946 case $as_dir in #(((
5947 '') as_dir=./ ;;
5948 */) ;;
5949 *) as_dir=$as_dir/ ;;
5950 esac
5951 for ac_exec_ext in '' $ac_executable_extensions; do
5952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5955 break 2
5956 fi
5957 done
5958 done
5959 IFS=$as_save_IFS
5960
5961 fi ;;
5962 esac
5963 fi
5964 CC=$ac_cv_prog_CC
5965 if test -n "$CC"; then
5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5967 printf "%s\n" "$CC" >&6; }
5968 else
5969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 printf "%s\n" "no" >&6; }
5971 fi
5972
5973
5974 test -n "$CC" && break
5975 done
5976 fi
5977 if test -z "$CC"; then
5978 ac_ct_CC=$CC
5979 for ac_prog in cl.exe
5980 do
5981 # Extract the first word of "$ac_prog", so it can be a program name with args.
5982 set dummy $ac_prog; ac_word=$2
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984 printf %s "checking for $ac_word... " >&6; }
5985 if test ${ac_cv_prog_ac_ct_CC+y}
5986 then :
5987 printf %s "(cached) " >&6
5988 else case e in #(
5989 e) if test -n "$ac_ct_CC"; then
5990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995 IFS=$as_save_IFS
5996 case $as_dir in #(((
5997 '') as_dir=./ ;;
5998 */) ;;
5999 *) as_dir=$as_dir/ ;;
6000 esac
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6003 ac_cv_prog_ac_ct_CC="$ac_prog"
6004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6005 break 2
6006 fi
6007 done
6008 done
6009 IFS=$as_save_IFS
6010
6011 fi ;;
6012 esac
6013 fi
6014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6015 if test -n "$ac_ct_CC"; then
6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6017 printf "%s\n" "$ac_ct_CC" >&6; }
6018 else
6019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 printf "%s\n" "no" >&6; }
6021 fi
6022
6023
6024 test -n "$ac_ct_CC" && break
6025 done
6026
6027 if test "x$ac_ct_CC" = x; then
6028 CC=""
6029 else
6030 case $cross_compiling:$ac_tool_warned in
6031 yes:)
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6033 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6034 ac_tool_warned=yes ;;
6035 esac
6036 CC=$ac_ct_CC
6037 fi
6038 fi
6039
6040 fi
6041 if test -z "$CC"; then
6042 if test -n "$ac_tool_prefix"; then
6043 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
6044 set dummy ${ac_tool_prefix}clang; ac_word=$2
6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046 printf %s "checking for $ac_word... " >&6; }
6047 if test ${ac_cv_prog_CC+y}
6048 then :
6049 printf %s "(cached) " >&6
6050 else case e in #(
6051 e) if test -n "$CC"; then
6052 ac_cv_prog_CC="$CC" # Let the user override the test.
6053 else
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH
6056 do
6057 IFS=$as_save_IFS
6058 case $as_dir in #(((
6059 '') as_dir=./ ;;
6060 */) ;;
6061 *) as_dir=$as_dir/ ;;
6062 esac
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6065 ac_cv_prog_CC="${ac_tool_prefix}clang"
6066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6067 break 2
6068 fi
6069 done
6070 done
6071 IFS=$as_save_IFS
6072
6073 fi ;;
6074 esac
6075 fi
6076 CC=$ac_cv_prog_CC
6077 if test -n "$CC"; then
6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6079 printf "%s\n" "$CC" >&6; }
6080 else
6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 printf "%s\n" "no" >&6; }
6083 fi
6084
6085
6086 fi
6087 if test -z "$ac_cv_prog_CC"; then
6088 ac_ct_CC=$CC
6089 # Extract the first word of "clang", so it can be a program name with args.
6090 set dummy clang; ac_word=$2
6091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6092 printf %s "checking for $ac_word... " >&6; }
6093 if test ${ac_cv_prog_ac_ct_CC+y}
6094 then :
6095 printf %s "(cached) " >&6
6096 else case e in #(
6097 e) if test -n "$ac_ct_CC"; then
6098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103 IFS=$as_save_IFS
6104 case $as_dir in #(((
6105 '') as_dir=./ ;;
6106 */) ;;
6107 *) as_dir=$as_dir/ ;;
6108 esac
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6111 ac_cv_prog_ac_ct_CC="clang"
6112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6113 break 2
6114 fi
6115 done
6116 done
6117 IFS=$as_save_IFS
6118
6119 fi ;;
6120 esac
6121 fi
6122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6123 if test -n "$ac_ct_CC"; then
6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6125 printf "%s\n" "$ac_ct_CC" >&6; }
6126 else
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 printf "%s\n" "no" >&6; }
6129 fi
6130
6131 if test "x$ac_ct_CC" = x; then
6132 CC=""
6133 else
6134 case $cross_compiling:$ac_tool_warned in
6135 yes:)
6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6137 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6138 ac_tool_warned=yes ;;
6139 esac
6140 CC=$ac_ct_CC
6141 fi
6142 else
6143 CC="$ac_cv_prog_CC"
6144 fi
6145
6146 fi
6147
6148
6149 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6150 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6151 as_fn_error $? "no acceptable C compiler found in \$PATH
6152 See 'config.log' for more details" "$LINENO" 5; }
6153
6154 # Provide some information about the compiler.
6155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6156 set X $ac_compile
6157 ac_compiler=$2
6158 for ac_option in --version -v -V -qversion -version; do
6159 { { ac_try="$ac_compiler $ac_option >&5"
6160 case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6163 esac
6164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6165 printf "%s\n" "$ac_try_echo"; } >&5
6166 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6167 ac_status=$?
6168 if test -s conftest.err; then
6169 sed '10a\
6170 ... rest of stderr output deleted ...
6171 10q' conftest.err >conftest.er1
6172 cat conftest.er1 >&5
6173 fi
6174 rm -f conftest.er1 conftest.err
6175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6176 test $ac_status = 0; }
6177 done
6178
6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6181
6182 int
6183 main (void)
6184 {
6185
6186 ;
6187 return 0;
6188 }
6189 _ACEOF
6190 ac_clean_files_save=$ac_clean_files
6191 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6192 # Try to create an executable without -o first, disregard a.out.
6193 # It will help us diagnose broken compilers, and finding out an intuition
6194 # of exeext.
6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
6196 printf %s "checking whether the C compiler works... " >&6; }
6197 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6198
6199 # The possible output files:
6200 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
6201
6202 ac_rmfiles=
6203 for ac_file in $ac_files
6204 do
6205 case $ac_file in
6206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6207 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
6208 esac
6209 done
6210 rm -f $ac_rmfiles
6211
6212 if { { ac_try="$ac_link_default"
6213 case "(($ac_try" in
6214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215 *) ac_try_echo=$ac_try;;
6216 esac
6217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6218 printf "%s\n" "$ac_try_echo"; } >&5
6219 (eval "$ac_link_default") 2>&5
6220 ac_status=$?
6221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6222 test $ac_status = 0; }
6223 then :
6224 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
6225 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
6226 # in a Makefile. We should not override ac_cv_exeext if it was cached,
6227 # so that the user can short-circuit this test for compilers unknown to
6228 # Autoconf.
6229 for ac_file in $ac_files ''
6230 do
6231 test -f "$ac_file" || continue
6232 case $ac_file in
6233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6234 ;;
6235 [ab].out )
6236 # We found the default executable, but exeext='' is most
6237 # certainly right.
6238 break;;
6239 *.* )
6240 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
6241 then :; else
6242 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6243 fi
6244 # We set ac_cv_exeext here because the later test for it is not
6245 # safe: cross compilers may not add the suffix if given an '-o'
6246 # argument, so we may need to know it at that point already.
6247 # Even if this section looks crufty: it has the advantage of
6248 # actually working.
6249 break;;
6250 * )
6251 break;;
6252 esac
6253 done
6254 test "$ac_cv_exeext" = no && ac_cv_exeext=
6255
6256 else case e in #(
6257 e) ac_file='' ;;
6258 esac
6259 fi
6260 if test -z "$ac_file"
6261 then :
6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 printf "%s\n" "no" >&6; }
6264 printf "%s\n" "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.$ac_ext >&5
6266
6267 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6268 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6269 as_fn_error 77 "C compiler cannot create executables
6270 See 'config.log' for more details" "$LINENO" 5; }
6271 else case e in #(
6272 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6273 printf "%s\n" "yes" >&6; } ;;
6274 esac
6275 fi
6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
6277 printf %s "checking for C compiler default output file name... " >&6; }
6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
6279 printf "%s\n" "$ac_file" >&6; }
6280 ac_exeext=$ac_cv_exeext
6281
6282 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6283 ac_clean_files=$ac_clean_files_save
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
6285 printf %s "checking for suffix of executables... " >&6; }
6286 if { { ac_try="$ac_link"
6287 case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290 esac
6291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6292 printf "%s\n" "$ac_try_echo"; } >&5
6293 (eval "$ac_link") 2>&5
6294 ac_status=$?
6295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6296 test $ac_status = 0; }
6297 then :
6298 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
6299 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
6300 # work properly (i.e., refer to 'conftest.exe'), while it won't with
6301 # 'rm'.
6302 for ac_file in conftest.exe conftest conftest.*; do
6303 test -f "$ac_file" || continue
6304 case $ac_file in
6305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6306 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6307 break;;
6308 * ) break;;
6309 esac
6310 done
6311 else case e in #(
6312 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6313 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6314 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
6315 See 'config.log' for more details" "$LINENO" 5; } ;;
6316 esac
6317 fi
6318 rm -f conftest conftest$ac_cv_exeext
6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
6320 printf "%s\n" "$ac_cv_exeext" >&6; }
6321
6322 rm -f conftest.$ac_ext
6323 EXEEXT=$ac_cv_exeext
6324 ac_exeext=$EXEEXT
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6327 #include <stdio.h>
6328 int
6329 main (void)
6330 {
6331 FILE *f = fopen ("conftest.out", "w");
6332 if (!f)
6333 return 1;
6334 return ferror (f) || fclose (f) != 0;
6335
6336 ;
6337 return 0;
6338 }
6339 _ACEOF
6340 ac_clean_files="$ac_clean_files conftest.out"
6341 # Check that the compiler produces executables we can run. If not, either
6342 # the compiler is broken, or we cross compile.
6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
6344 printf %s "checking whether we are cross compiling... " >&6; }
6345 if test "$cross_compiling" != yes; then
6346 { { ac_try="$ac_link"
6347 case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6350 esac
6351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6352 printf "%s\n" "$ac_try_echo"; } >&5
6353 (eval "$ac_link") 2>&5
6354 ac_status=$?
6355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6356 test $ac_status = 0; }
6357 if { ac_try='./conftest$ac_cv_exeext'
6358 { { case "(($ac_try" in
6359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360 *) ac_try_echo=$ac_try;;
6361 esac
6362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6363 printf "%s\n" "$ac_try_echo"; } >&5
6364 (eval "$ac_try") 2>&5
6365 ac_status=$?
6366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6367 test $ac_status = 0; }; }; then
6368 cross_compiling=no
6369 else
6370 if test "$cross_compiling" = maybe; then
6371 cross_compiling=yes
6372 else
6373 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6374 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6375 as_fn_error 77 "cannot run C compiled programs.
6376 If you meant to cross compile, use '--host'.
6377 See 'config.log' for more details" "$LINENO" 5; }
6378 fi
6379 fi
6380 fi
6381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
6382 printf "%s\n" "$cross_compiling" >&6; }
6383
6384 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
6385 conftest.o conftest.obj conftest.out
6386 ac_clean_files=$ac_clean_files_save
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
6388 printf %s "checking for suffix of object files... " >&6; }
6389 if test ${ac_cv_objext+y}
6390 then :
6391 printf %s "(cached) " >&6
6392 else case e in #(
6393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394 /* end confdefs.h. */
6395
6396 int
6397 main (void)
6398 {
6399
6400 ;
6401 return 0;
6402 }
6403 _ACEOF
6404 rm -f conftest.o conftest.obj
6405 if { { ac_try="$ac_compile"
6406 case "(($ac_try" in
6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6409 esac
6410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6411 printf "%s\n" "$ac_try_echo"; } >&5
6412 (eval "$ac_compile") 2>&5
6413 ac_status=$?
6414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6415 test $ac_status = 0; }
6416 then :
6417 for ac_file in conftest.o conftest.obj conftest.*; do
6418 test -f "$ac_file" || continue;
6419 case $ac_file in
6420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6421 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
6422 break;;
6423 esac
6424 done
6425 else case e in #(
6426 e) printf "%s\n" "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6428
6429 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6430 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6431 as_fn_error $? "cannot compute suffix of object files: cannot compile
6432 See 'config.log' for more details" "$LINENO" 5; } ;;
6433 esac
6434 fi
6435 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
6436 esac
6437 fi
6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
6439 printf "%s\n" "$ac_cv_objext" >&6; }
6440 OBJEXT=$ac_cv_objext
6441 ac_objext=$OBJEXT
6442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
6443 printf %s "checking whether the compiler supports GNU C... " >&6; }
6444 if test ${ac_cv_c_compiler_gnu+y}
6445 then :
6446 printf %s "(cached) " >&6
6447 else case e in #(
6448 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6450
6451 int
6452 main (void)
6453 {
6454 #ifndef __GNUC__
6455 choke me
6456 #endif
6457
6458 ;
6459 return 0;
6460 }
6461 _ACEOF
6462 if ac_fn_c_try_compile "$LINENO"
6463 then :
6464 ac_compiler_gnu=yes
6465 else case e in #(
6466 e) ac_compiler_gnu=no ;;
6467 esac
6468 fi
6469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6470 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6471 ;;
6472 esac
6473 fi
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6475 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
6476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6477
6478 if test $ac_compiler_gnu = yes; then
6479 GCC=yes
6480 else
6481 GCC=
6482 fi
6483 ac_test_CFLAGS=${CFLAGS+y}
6484 ac_save_CFLAGS=$CFLAGS
6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6486 printf %s "checking whether $CC accepts -g... " >&6; }
6487 if test ${ac_cv_prog_cc_g+y}
6488 then :
6489 printf %s "(cached) " >&6
6490 else case e in #(
6491 e) ac_save_c_werror_flag=$ac_c_werror_flag
6492 ac_c_werror_flag=yes
6493 ac_cv_prog_cc_g=no
6494 CFLAGS="-g"
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6497
6498 int
6499 main (void)
6500 {
6501
6502 ;
6503 return 0;
6504 }
6505 _ACEOF
6506 if ac_fn_c_try_compile "$LINENO"
6507 then :
6508 ac_cv_prog_cc_g=yes
6509 else case e in #(
6510 e) CFLAGS=""
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6513
6514 int
6515 main (void)
6516 {
6517
6518 ;
6519 return 0;
6520 }
6521 _ACEOF
6522 if ac_fn_c_try_compile "$LINENO"
6523 then :
6524
6525 else case e in #(
6526 e) ac_c_werror_flag=$ac_save_c_werror_flag
6527 CFLAGS="-g"
6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h. */
6530
6531 int
6532 main (void)
6533 {
6534
6535 ;
6536 return 0;
6537 }
6538 _ACEOF
6539 if ac_fn_c_try_compile "$LINENO"
6540 then :
6541 ac_cv_prog_cc_g=yes
6542 fi
6543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6544 esac
6545 fi
6546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6547 esac
6548 fi
6549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6550 ac_c_werror_flag=$ac_save_c_werror_flag ;;
6551 esac
6552 fi
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6554 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
6555 if test $ac_test_CFLAGS; then
6556 CFLAGS=$ac_save_CFLAGS
6557 elif test $ac_cv_prog_cc_g = yes; then
6558 if test "$GCC" = yes; then
6559 CFLAGS="-g -O2"
6560 else
6561 CFLAGS="-g"
6562 fi
6563 else
6564 if test "$GCC" = yes; then
6565 CFLAGS="-O2"
6566 else
6567 CFLAGS=
6568 fi
6569 fi
6570 ac_prog_cc_stdc=no
6571 if test x$ac_prog_cc_stdc = xno
6572 then :
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6574 printf %s "checking for $CC option to enable C11 features... " >&6; }
6575 if test ${ac_cv_prog_cc_c11+y}
6576 then :
6577 printf %s "(cached) " >&6
6578 else case e in #(
6579 e) ac_cv_prog_cc_c11=no
6580 ac_save_CC=$CC
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6583 $ac_c_conftest_c11_program
6584 _ACEOF
6585 for ac_arg in '' -std=gnu11
6586 do
6587 CC="$ac_save_CC $ac_arg"
6588 if ac_fn_c_try_compile "$LINENO"
6589 then :
6590 ac_cv_prog_cc_c11=$ac_arg
6591 fi
6592 rm -f core conftest.err conftest.$ac_objext conftest.beam
6593 test "x$ac_cv_prog_cc_c11" != "xno" && break
6594 done
6595 rm -f conftest.$ac_ext
6596 CC=$ac_save_CC ;;
6597 esac
6598 fi
6599
6600 if test "x$ac_cv_prog_cc_c11" = xno
6601 then :
6602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6603 printf "%s\n" "unsupported" >&6; }
6604 else case e in #(
6605 e) if test "x$ac_cv_prog_cc_c11" = x
6606 then :
6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6608 printf "%s\n" "none needed" >&6; }
6609 else case e in #(
6610 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6611 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6612 CC="$CC $ac_cv_prog_cc_c11" ;;
6613 esac
6614 fi
6615 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6616 ac_prog_cc_stdc=c11 ;;
6617 esac
6618 fi
6619 fi
6620 if test x$ac_prog_cc_stdc = xno
6621 then :
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6623 printf %s "checking for $CC option to enable C99 features... " >&6; }
6624 if test ${ac_cv_prog_cc_c99+y}
6625 then :
6626 printf %s "(cached) " >&6
6627 else case e in #(
6628 e) ac_cv_prog_cc_c99=no
6629 ac_save_CC=$CC
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6632 $ac_c_conftest_c99_program
6633 _ACEOF
6634 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6635 do
6636 CC="$ac_save_CC $ac_arg"
6637 if ac_fn_c_try_compile "$LINENO"
6638 then :
6639 ac_cv_prog_cc_c99=$ac_arg
6640 fi
6641 rm -f core conftest.err conftest.$ac_objext conftest.beam
6642 test "x$ac_cv_prog_cc_c99" != "xno" && break
6643 done
6644 rm -f conftest.$ac_ext
6645 CC=$ac_save_CC ;;
6646 esac
6647 fi
6648
6649 if test "x$ac_cv_prog_cc_c99" = xno
6650 then :
6651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6652 printf "%s\n" "unsupported" >&6; }
6653 else case e in #(
6654 e) if test "x$ac_cv_prog_cc_c99" = x
6655 then :
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6657 printf "%s\n" "none needed" >&6; }
6658 else case e in #(
6659 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6660 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6661 CC="$CC $ac_cv_prog_cc_c99" ;;
6662 esac
6663 fi
6664 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6665 ac_prog_cc_stdc=c99 ;;
6666 esac
6667 fi
6668 fi
6669 if test x$ac_prog_cc_stdc = xno
6670 then :
6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6672 printf %s "checking for $CC option to enable C89 features... " >&6; }
6673 if test ${ac_cv_prog_cc_c89+y}
6674 then :
6675 printf %s "(cached) " >&6
6676 else case e in #(
6677 e) ac_cv_prog_cc_c89=no
6678 ac_save_CC=$CC
6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6681 $ac_c_conftest_c89_program
6682 _ACEOF
6683 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6684 do
6685 CC="$ac_save_CC $ac_arg"
6686 if ac_fn_c_try_compile "$LINENO"
6687 then :
6688 ac_cv_prog_cc_c89=$ac_arg
6689 fi
6690 rm -f core conftest.err conftest.$ac_objext conftest.beam
6691 test "x$ac_cv_prog_cc_c89" != "xno" && break
6692 done
6693 rm -f conftest.$ac_ext
6694 CC=$ac_save_CC ;;
6695 esac
6696 fi
6697
6698 if test "x$ac_cv_prog_cc_c89" = xno
6699 then :
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6701 printf "%s\n" "unsupported" >&6; }
6702 else case e in #(
6703 e) if test "x$ac_cv_prog_cc_c89" = x
6704 then :
6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6706 printf "%s\n" "none needed" >&6; }
6707 else case e in #(
6708 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6709 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6710 CC="$CC $ac_cv_prog_cc_c89" ;;
6711 esac
6712 fi
6713 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6714 ac_prog_cc_stdc=c89 ;;
6715 esac
6716 fi
6717 fi
6718
6719 ac_ext=c
6720 ac_cpp='$CPP $CPPFLAGS'
6721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6724
6725
6726 ac_ext=c
6727 ac_cpp='$CPP $CPPFLAGS'
6728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6732 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6733 if test ${am_cv_prog_cc_c_o+y}
6734 then :
6735 printf %s "(cached) " >&6
6736 else case e in #(
6737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738 /* end confdefs.h. */
6739
6740 int
6741 main (void)
6742 {
6743
6744 ;
6745 return 0;
6746 }
6747 _ACEOF
6748 # Make sure it works both with $CC and with simple cc.
6749 # Following AC_PROG_CC_C_O, we do the test twice because some
6750 # compilers refuse to overwrite an existing .o file with -o,
6751 # though they will create one.
6752 am_cv_prog_cc_c_o=yes
6753 for am_i in 1 2; do
6754 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6755 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6756 ac_status=$?
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); } \
6759 && test -f conftest2.$ac_objext; then
6760 : OK
6761 else
6762 am_cv_prog_cc_c_o=no
6763 break
6764 fi
6765 done
6766 # aligned with autoconf, so not including core; see bug#72225.
6767 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
6768 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
6769 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
6770 unset am_i ;;
6771 esac
6772 fi
6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6774 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6775 if test "$am_cv_prog_cc_c_o" != yes; then
6776 # Losing compiler, so override with the script.
6777 # FIXME: It is wrong to rewrite CC.
6778 # But if we don't then we get into trouble of one sort or another.
6779 # A longer-term fix would be to have automake use am__CC in this case,
6780 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6781 CC="$am_aux_dir/compile $CC"
6782 fi
6783 ac_ext=c
6784 ac_cpp='$CPP $CPPFLAGS'
6785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6788
6789
6790 depcc="$CC" am_compiler_list=
6791
6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6793 printf %s "checking dependency style of $depcc... " >&6; }
6794 if test ${am_cv_CC_dependencies_compiler_type+y}
6795 then :
6796 printf %s "(cached) " >&6
6797 else case e in #(
6798 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6799 # We make a subdir and do the tests there. Otherwise we can end up
6800 # making bogus files that we don't know about and never remove. For
6801 # instance it was reported that on HP-UX the gcc test will end up
6802 # making a dummy file named 'D' -- because '-MD' means "put the output
6803 # in D".
6804 rm -rf conftest.dir
6805 mkdir conftest.dir
6806 # Copy depcomp to subdir because otherwise we won't find it if we're
6807 # using a relative directory.
6808 cp "$am_depcomp" conftest.dir
6809 cd conftest.dir
6810 # We will build objects and dependencies in a subdirectory because
6811 # it helps to detect inapplicable dependency modes. For instance
6812 # both Tru64's cc and ICC support -MD to output dependencies as a
6813 # side effect of compilation, but ICC will put the dependencies in
6814 # the current directory while Tru64 will put them in the object
6815 # directory.
6816 mkdir sub
6817
6818 am_cv_CC_dependencies_compiler_type=none
6819 if test "$am_compiler_list" = ""; then
6820 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6821 fi
6822 am__universal=false
6823 case " $depcc " in #(
6824 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6825 esac
6826
6827 for depmode in $am_compiler_list; do
6828 # Setup a source with many dependencies, because some compilers
6829 # like to wrap large dependency lists on column 80 (with \), and
6830 # we should not choose a depcomp mode which is confused by this.
6831 #
6832 # We need to recreate these files for each test, as the compiler may
6833 # overwrite some of them when testing with obscure command lines.
6834 # This happens at least with the AIX C compiler.
6835 : > sub/conftest.c
6836 for i in 1 2 3 4 5 6; do
6837 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6838 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6839 # Solaris 10 /bin/sh.
6840 echo '/* dummy */' > sub/conftst$i.h
6841 done
6842 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6843
6844 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6845 # mode. It turns out that the SunPro C++ compiler does not properly
6846 # handle '-M -o', and we need to detect this. Also, some Intel
6847 # versions had trouble with output in subdirs.
6848 am__obj=sub/conftest.${OBJEXT-o}
6849 am__minus_obj="-o $am__obj"
6850 case $depmode in
6851 gcc)
6852 # This depmode causes a compiler race in universal mode.
6853 test "$am__universal" = false || continue
6854 ;;
6855 nosideeffect)
6856 # After this tag, mechanisms are not by side-effect, so they'll
6857 # only be used when explicitly requested.
6858 if test "x$enable_dependency_tracking" = xyes; then
6859 continue
6860 else
6861 break
6862 fi
6863 ;;
6864 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6865 # This compiler won't grok '-c -o', but also, the minuso test has
6866 # not run yet. These depmodes are late enough in the game, and
6867 # so weak that their functioning should not be impacted.
6868 am__obj=conftest.${OBJEXT-o}
6869 am__minus_obj=
6870 ;;
6871 none) break ;;
6872 esac
6873 if depmode=$depmode \
6874 source=sub/conftest.c object=$am__obj \
6875 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6876 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6877 >/dev/null 2>conftest.err &&
6878 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6879 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6880 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6881 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6882 # icc doesn't choke on unknown options, it will just issue warnings
6883 # or remarks (even with -Werror). So we grep stderr for any message
6884 # that says an option was ignored or not supported.
6885 # When given -MP, icc 7.0 and 7.1 complain thus:
6886 # icc: Command line warning: ignoring option '-M'; no argument required
6887 # The diagnosis changed in icc 8.0:
6888 # icc: Command line remark: option '-MP' not supported
6889 if (grep 'ignoring option' conftest.err ||
6890 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6891 am_cv_CC_dependencies_compiler_type=$depmode
6892 break
6893 fi
6894 fi
6895 done
6896
6897 cd ..
6898 rm -rf conftest.dir
6899 else
6900 am_cv_CC_dependencies_compiler_type=none
6901 fi
6902 ;;
6903 esac
6904 fi
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6906 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6907 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6908
6909 if
6910 test "x$enable_dependency_tracking" != xno \
6911 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6912 am__fastdepCC_TRUE=
6913 am__fastdepCC_FALSE='#'
6914 else
6915 am__fastdepCC_TRUE='#'
6916 am__fastdepCC_FALSE=
6917 fi
6918
6919
6920
6921 ac_header= ac_cache=
6922 for ac_item in $ac_header_c_list
6923 do
6924 if test $ac_cache; then
6925 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6926 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6927 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6928 fi
6929 ac_header= ac_cache=
6930 elif test $ac_header; then
6931 ac_cache=$ac_item
6932 else
6933 ac_header=$ac_item
6934 fi
6935 done
6936
6937
6938
6939
6940
6941
6942
6943
6944 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6945 then :
6946
6947 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6948
6949 fi
6950
6951
6952
6953
6954
6955
6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6957 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6958 if test ${ac_cv_safe_to_define___extensions__+y}
6959 then :
6960 printf %s "(cached) " >&6
6961 else case e in #(
6962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6964
6965 # define __EXTENSIONS__ 1
6966 $ac_includes_default
6967 int
6968 main (void)
6969 {
6970
6971 ;
6972 return 0;
6973 }
6974 _ACEOF
6975 if ac_fn_c_try_compile "$LINENO"
6976 then :
6977 ac_cv_safe_to_define___extensions__=yes
6978 else case e in #(
6979 e) ac_cv_safe_to_define___extensions__=no ;;
6980 esac
6981 fi
6982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6983 esac
6984 fi
6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6986 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6987
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6989 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6990 if test ${ac_cv_should_define__xopen_source+y}
6991 then :
6992 printf %s "(cached) " >&6
6993 else case e in #(
6994 e) ac_cv_should_define__xopen_source=no
6995 if test $ac_cv_header_wchar_h = yes
6996 then :
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
6999
7000 #include <wchar.h>
7001 mbstate_t x;
7002 int
7003 main (void)
7004 {
7005
7006 ;
7007 return 0;
7008 }
7009 _ACEOF
7010 if ac_fn_c_try_compile "$LINENO"
7011 then :
7012
7013 else case e in #(
7014 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7016
7017 #define _XOPEN_SOURCE 500
7018 #include <wchar.h>
7019 mbstate_t x;
7020 int
7021 main (void)
7022 {
7023
7024 ;
7025 return 0;
7026 }
7027 _ACEOF
7028 if ac_fn_c_try_compile "$LINENO"
7029 then :
7030 ac_cv_should_define__xopen_source=yes
7031 fi
7032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7033 esac
7034 fi
7035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7036 fi ;;
7037 esac
7038 fi
7039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
7040 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
7041
7042 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
7043
7044 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
7045
7046 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
7047
7048 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
7049
7050 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
7051
7052 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
7053
7054 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7055
7056 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
7057
7058 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
7059
7060 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
7061
7062 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
7063
7064 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
7065
7066 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
7067
7068 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
7069
7070 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
7071
7072 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
7073
7074 if test $ac_cv_header_minix_config_h = yes
7075 then :
7076 MINIX=yes
7077 printf "%s\n" "#define _MINIX 1" >>confdefs.h
7078
7079 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
7080
7081 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
7082
7083 else case e in #(
7084 e) MINIX= ;;
7085 esac
7086 fi
7087 if test $ac_cv_safe_to_define___extensions__ = yes
7088 then :
7089 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
7090
7091 fi
7092 if test $ac_cv_should_define__xopen_source = yes
7093 then :
7094 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
7095
7096 fi
7097
7098
7099 # ==============================================================================
7100 # Find required base packages
7101 # ==============================================================================
7102
7103 if test -n "$ac_tool_prefix"; then
7104 for ac_prog in ar lib "link -lib"
7105 do
7106 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7107 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109 printf %s "checking for $ac_word... " >&6; }
7110 if test ${ac_cv_prog_AR+y}
7111 then :
7112 printf %s "(cached) " >&6
7113 else case e in #(
7114 e) if test -n "$AR"; then
7115 ac_cv_prog_AR="$AR" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120 IFS=$as_save_IFS
7121 case $as_dir in #(((
7122 '') as_dir=./ ;;
7123 */) ;;
7124 *) as_dir=$as_dir/ ;;
7125 esac
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7128 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7130 break 2
7131 fi
7132 done
7133 done
7134 IFS=$as_save_IFS
7135
7136 fi ;;
7137 esac
7138 fi
7139 AR=$ac_cv_prog_AR
7140 if test -n "$AR"; then
7141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7142 printf "%s\n" "$AR" >&6; }
7143 else
7144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145 printf "%s\n" "no" >&6; }
7146 fi
7147
7148
7149 test -n "$AR" && break
7150 done
7151 fi
7152 if test -z "$AR"; then
7153 ac_ct_AR=$AR
7154 for ac_prog in ar lib "link -lib"
7155 do
7156 # Extract the first word of "$ac_prog", so it can be a program name with args.
7157 set dummy $ac_prog; ac_word=$2
7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159 printf %s "checking for $ac_word... " >&6; }
7160 if test ${ac_cv_prog_ac_ct_AR+y}
7161 then :
7162 printf %s "(cached) " >&6
7163 else case e in #(
7164 e) if test -n "$ac_ct_AR"; then
7165 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170 IFS=$as_save_IFS
7171 case $as_dir in #(((
7172 '') as_dir=./ ;;
7173 */) ;;
7174 *) as_dir=$as_dir/ ;;
7175 esac
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7178 ac_cv_prog_ac_ct_AR="$ac_prog"
7179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7180 break 2
7181 fi
7182 done
7183 done
7184 IFS=$as_save_IFS
7185
7186 fi ;;
7187 esac
7188 fi
7189 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7190 if test -n "$ac_ct_AR"; then
7191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7192 printf "%s\n" "$ac_ct_AR" >&6; }
7193 else
7194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 printf "%s\n" "no" >&6; }
7196 fi
7197
7198
7199 test -n "$ac_ct_AR" && break
7200 done
7201
7202 if test "x$ac_ct_AR" = x; then
7203 AR="false"
7204 else
7205 case $cross_compiling:$ac_tool_warned in
7206 yes:)
7207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209 ac_tool_warned=yes ;;
7210 esac
7211 AR=$ac_ct_AR
7212 fi
7213 fi
7214
7215 : ${AR=ar}
7216 : ${ARFLAGS=cr}
7217
7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7219 printf %s "checking the archiver ($AR) interface... " >&6; }
7220 if test ${am_cv_ar_interface+y}
7221 then :
7222 printf %s "(cached) " >&6
7223 else case e in #(
7224 e) ac_ext=c
7225 ac_cpp='$CPP $CPPFLAGS'
7226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7229
7230 am_cv_ar_interface=ar
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7233 int some_variable = 0;
7234 _ACEOF
7235 if ac_fn_c_try_compile "$LINENO"
7236 then :
7237 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
7238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7239 (eval $am_ar_try) 2>&5
7240 ac_status=$?
7241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7242 test $ac_status = 0; }
7243 if test "$ac_status" -eq 0; then
7244 am_cv_ar_interface=ar
7245 else
7246 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7248 (eval $am_ar_try) 2>&5
7249 ac_status=$?
7250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7251 test $ac_status = 0; }
7252 if test "$ac_status" -eq 0; then
7253 am_cv_ar_interface=lib
7254 else
7255 am_cv_ar_interface=unknown
7256 fi
7257 fi
7258 rm -f conftest.lib libconftest.a
7259
7260 fi
7261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7262 ac_ext=c
7263 ac_cpp='$CPP $CPPFLAGS'
7264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267 ;;
7268 esac
7269 fi
7270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7271 printf "%s\n" "$am_cv_ar_interface" >&6; }
7272
7273 case $am_cv_ar_interface in
7274 ar)
7275 ;;
7276 lib)
7277 # Microsoft lib, so override with the ar-lib wrapper script.
7278 # FIXME: It is wrong to rewrite AR.
7279 # But if we don't then we get into trouble of one sort or another.
7280 # A longer-term fix would be to have automake use am__AR in this case,
7281 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7282 # similar.
7283 AR="$am_aux_dir/ar-lib $AR"
7284 ;;
7285 unknown)
7286 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7287 ;;
7288 esac
7289
7290 ac_ext=c
7291 ac_cpp='$CPP $CPPFLAGS'
7292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7295 if test -n "$ac_tool_prefix"; then
7296 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7297 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299 printf %s "checking for $ac_word... " >&6; }
7300 if test ${ac_cv_prog_CC+y}
7301 then :
7302 printf %s "(cached) " >&6
7303 else case e in #(
7304 e) if test -n "$CC"; then
7305 ac_cv_prog_CC="$CC" # Let the user override the test.
7306 else
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 for as_dir in $PATH
7309 do
7310 IFS=$as_save_IFS
7311 case $as_dir in #(((
7312 '') as_dir=./ ;;
7313 */) ;;
7314 *) as_dir=$as_dir/ ;;
7315 esac
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7318 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7320 break 2
7321 fi
7322 done
7323 done
7324 IFS=$as_save_IFS
7325
7326 fi ;;
7327 esac
7328 fi
7329 CC=$ac_cv_prog_CC
7330 if test -n "$CC"; then
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7332 printf "%s\n" "$CC" >&6; }
7333 else
7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 printf "%s\n" "no" >&6; }
7336 fi
7337
7338
7339 fi
7340 if test -z "$ac_cv_prog_CC"; then
7341 ac_ct_CC=$CC
7342 # Extract the first word of "gcc", so it can be a program name with args.
7343 set dummy gcc; ac_word=$2
7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 printf %s "checking for $ac_word... " >&6; }
7346 if test ${ac_cv_prog_ac_ct_CC+y}
7347 then :
7348 printf %s "(cached) " >&6
7349 else case e in #(
7350 e) if test -n "$ac_ct_CC"; then
7351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7352 else
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $PATH
7355 do
7356 IFS=$as_save_IFS
7357 case $as_dir in #(((
7358 '') as_dir=./ ;;
7359 */) ;;
7360 *) as_dir=$as_dir/ ;;
7361 esac
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_ac_ct_CC="gcc"
7365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7366 break 2
7367 fi
7368 done
7369 done
7370 IFS=$as_save_IFS
7371
7372 fi ;;
7373 esac
7374 fi
7375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7376 if test -n "$ac_ct_CC"; then
7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7378 printf "%s\n" "$ac_ct_CC" >&6; }
7379 else
7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 printf "%s\n" "no" >&6; }
7382 fi
7383
7384 if test "x$ac_ct_CC" = x; then
7385 CC=""
7386 else
7387 case $cross_compiling:$ac_tool_warned in
7388 yes:)
7389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7390 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7391 ac_tool_warned=yes ;;
7392 esac
7393 CC=$ac_ct_CC
7394 fi
7395 else
7396 CC="$ac_cv_prog_CC"
7397 fi
7398
7399 if test -z "$CC"; then
7400 if test -n "$ac_tool_prefix"; then
7401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}cc; ac_word=$2
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 printf %s "checking for $ac_word... " >&6; }
7405 if test ${ac_cv_prog_CC+y}
7406 then :
7407 printf %s "(cached) " >&6
7408 else case e in #(
7409 e) if test -n "$CC"; then
7410 ac_cv_prog_CC="$CC" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415 IFS=$as_save_IFS
7416 case $as_dir in #(((
7417 '') as_dir=./ ;;
7418 */) ;;
7419 *) as_dir=$as_dir/ ;;
7420 esac
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_CC="${ac_tool_prefix}cc"
7424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7425 break 2
7426 fi
7427 done
7428 done
7429 IFS=$as_save_IFS
7430
7431 fi ;;
7432 esac
7433 fi
7434 CC=$ac_cv_prog_CC
7435 if test -n "$CC"; then
7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7437 printf "%s\n" "$CC" >&6; }
7438 else
7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 printf "%s\n" "no" >&6; }
7441 fi
7442
7443
7444 fi
7445 fi
7446 if test -z "$CC"; then
7447 # Extract the first word of "cc", so it can be a program name with args.
7448 set dummy cc; ac_word=$2
7449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 printf %s "checking for $ac_word... " >&6; }
7451 if test ${ac_cv_prog_CC+y}
7452 then :
7453 printf %s "(cached) " >&6
7454 else case e in #(
7455 e) if test -n "$CC"; then
7456 ac_cv_prog_CC="$CC" # Let the user override the test.
7457 else
7458 ac_prog_rejected=no
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462 IFS=$as_save_IFS
7463 case $as_dir in #(((
7464 '') as_dir=./ ;;
7465 */) ;;
7466 *) as_dir=$as_dir/ ;;
7467 esac
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7470 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7471 ac_prog_rejected=yes
7472 continue
7473 fi
7474 ac_cv_prog_CC="cc"
7475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7476 break 2
7477 fi
7478 done
7479 done
7480 IFS=$as_save_IFS
7481
7482 if test $ac_prog_rejected = yes; then
7483 # We found a bogon in the path, so make sure we never use it.
7484 set dummy $ac_cv_prog_CC
7485 shift
7486 if test $# != 0; then
7487 # We chose a different compiler from the bogus one.
7488 # However, it has the same basename, so the bogon will be chosen
7489 # first if we set CC to just the basename; use the full file name.
7490 shift
7491 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
7492 fi
7493 fi
7494 fi ;;
7495 esac
7496 fi
7497 CC=$ac_cv_prog_CC
7498 if test -n "$CC"; then
7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7500 printf "%s\n" "$CC" >&6; }
7501 else
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 printf "%s\n" "no" >&6; }
7504 fi
7505
7506
7507 fi
7508 if test -z "$CC"; then
7509 if test -n "$ac_tool_prefix"; then
7510 for ac_prog in cl.exe
7511 do
7512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 printf %s "checking for $ac_word... " >&6; }
7516 if test ${ac_cv_prog_CC+y}
7517 then :
7518 printf %s "(cached) " >&6
7519 else case e in #(
7520 e) if test -n "$CC"; then
7521 ac_cv_prog_CC="$CC" # Let the user override the test.
7522 else
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $PATH
7525 do
7526 IFS=$as_save_IFS
7527 case $as_dir in #(((
7528 '') as_dir=./ ;;
7529 */) ;;
7530 *) as_dir=$as_dir/ ;;
7531 esac
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7534 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7536 break 2
7537 fi
7538 done
7539 done
7540 IFS=$as_save_IFS
7541
7542 fi ;;
7543 esac
7544 fi
7545 CC=$ac_cv_prog_CC
7546 if test -n "$CC"; then
7547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7548 printf "%s\n" "$CC" >&6; }
7549 else
7550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 printf "%s\n" "no" >&6; }
7552 fi
7553
7554
7555 test -n "$CC" && break
7556 done
7557 fi
7558 if test -z "$CC"; then
7559 ac_ct_CC=$CC
7560 for ac_prog in cl.exe
7561 do
7562 # Extract the first word of "$ac_prog", so it can be a program name with args.
7563 set dummy $ac_prog; ac_word=$2
7564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 printf %s "checking for $ac_word... " >&6; }
7566 if test ${ac_cv_prog_ac_ct_CC+y}
7567 then :
7568 printf %s "(cached) " >&6
7569 else case e in #(
7570 e) if test -n "$ac_ct_CC"; then
7571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7572 else
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 for as_dir in $PATH
7575 do
7576 IFS=$as_save_IFS
7577 case $as_dir in #(((
7578 '') as_dir=./ ;;
7579 */) ;;
7580 *) as_dir=$as_dir/ ;;
7581 esac
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7584 ac_cv_prog_ac_ct_CC="$ac_prog"
7585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7586 break 2
7587 fi
7588 done
7589 done
7590 IFS=$as_save_IFS
7591
7592 fi ;;
7593 esac
7594 fi
7595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7596 if test -n "$ac_ct_CC"; then
7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7598 printf "%s\n" "$ac_ct_CC" >&6; }
7599 else
7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 printf "%s\n" "no" >&6; }
7602 fi
7603
7604
7605 test -n "$ac_ct_CC" && break
7606 done
7607
7608 if test "x$ac_ct_CC" = x; then
7609 CC=""
7610 else
7611 case $cross_compiling:$ac_tool_warned in
7612 yes:)
7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7614 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7615 ac_tool_warned=yes ;;
7616 esac
7617 CC=$ac_ct_CC
7618 fi
7619 fi
7620
7621 fi
7622 if test -z "$CC"; then
7623 if test -n "$ac_tool_prefix"; then
7624 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
7625 set dummy ${ac_tool_prefix}clang; ac_word=$2
7626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 printf %s "checking for $ac_word... " >&6; }
7628 if test ${ac_cv_prog_CC+y}
7629 then :
7630 printf %s "(cached) " >&6
7631 else case e in #(
7632 e) if test -n "$CC"; then
7633 ac_cv_prog_CC="$CC" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638 IFS=$as_save_IFS
7639 case $as_dir in #(((
7640 '') as_dir=./ ;;
7641 */) ;;
7642 *) as_dir=$as_dir/ ;;
7643 esac
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7646 ac_cv_prog_CC="${ac_tool_prefix}clang"
7647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7648 break 2
7649 fi
7650 done
7651 done
7652 IFS=$as_save_IFS
7653
7654 fi ;;
7655 esac
7656 fi
7657 CC=$ac_cv_prog_CC
7658 if test -n "$CC"; then
7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7660 printf "%s\n" "$CC" >&6; }
7661 else
7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 printf "%s\n" "no" >&6; }
7664 fi
7665
7666
7667 fi
7668 if test -z "$ac_cv_prog_CC"; then
7669 ac_ct_CC=$CC
7670 # Extract the first word of "clang", so it can be a program name with args.
7671 set dummy clang; ac_word=$2
7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 printf %s "checking for $ac_word... " >&6; }
7674 if test ${ac_cv_prog_ac_ct_CC+y}
7675 then :
7676 printf %s "(cached) " >&6
7677 else case e in #(
7678 e) if test -n "$ac_ct_CC"; then
7679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7680 else
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684 IFS=$as_save_IFS
7685 case $as_dir in #(((
7686 '') as_dir=./ ;;
7687 */) ;;
7688 *) as_dir=$as_dir/ ;;
7689 esac
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7692 ac_cv_prog_ac_ct_CC="clang"
7693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7694 break 2
7695 fi
7696 done
7697 done
7698 IFS=$as_save_IFS
7699
7700 fi ;;
7701 esac
7702 fi
7703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7704 if test -n "$ac_ct_CC"; then
7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7706 printf "%s\n" "$ac_ct_CC" >&6; }
7707 else
7708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 printf "%s\n" "no" >&6; }
7710 fi
7711
7712 if test "x$ac_ct_CC" = x; then
7713 CC=""
7714 else
7715 case $cross_compiling:$ac_tool_warned in
7716 yes:)
7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7718 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7719 ac_tool_warned=yes ;;
7720 esac
7721 CC=$ac_ct_CC
7722 fi
7723 else
7724 CC="$ac_cv_prog_CC"
7725 fi
7726
7727 fi
7728
7729
7730 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7731 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7732 as_fn_error $? "no acceptable C compiler found in \$PATH
7733 See 'config.log' for more details" "$LINENO" 5; }
7734
7735 # Provide some information about the compiler.
7736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7737 set X $ac_compile
7738 ac_compiler=$2
7739 for ac_option in --version -v -V -qversion -version; do
7740 { { ac_try="$ac_compiler $ac_option >&5"
7741 case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7744 esac
7745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7746 printf "%s\n" "$ac_try_echo"; } >&5
7747 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7748 ac_status=$?
7749 if test -s conftest.err; then
7750 sed '10a\
7751 ... rest of stderr output deleted ...
7752 10q' conftest.err >conftest.er1
7753 cat conftest.er1 >&5
7754 fi
7755 rm -f conftest.er1 conftest.err
7756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7757 test $ac_status = 0; }
7758 done
7759
7760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
7761 printf %s "checking whether the compiler supports GNU C... " >&6; }
7762 if test ${ac_cv_c_compiler_gnu+y}
7763 then :
7764 printf %s "(cached) " >&6
7765 else case e in #(
7766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h. */
7768
7769 int
7770 main (void)
7771 {
7772 #ifndef __GNUC__
7773 choke me
7774 #endif
7775
7776 ;
7777 return 0;
7778 }
7779 _ACEOF
7780 if ac_fn_c_try_compile "$LINENO"
7781 then :
7782 ac_compiler_gnu=yes
7783 else case e in #(
7784 e) ac_compiler_gnu=no ;;
7785 esac
7786 fi
7787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7788 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7789 ;;
7790 esac
7791 fi
7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7793 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
7794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7795
7796 if test $ac_compiler_gnu = yes; then
7797 GCC=yes
7798 else
7799 GCC=
7800 fi
7801 ac_test_CFLAGS=${CFLAGS+y}
7802 ac_save_CFLAGS=$CFLAGS
7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7804 printf %s "checking whether $CC accepts -g... " >&6; }
7805 if test ${ac_cv_prog_cc_g+y}
7806 then :
7807 printf %s "(cached) " >&6
7808 else case e in #(
7809 e) ac_save_c_werror_flag=$ac_c_werror_flag
7810 ac_c_werror_flag=yes
7811 ac_cv_prog_cc_g=no
7812 CFLAGS="-g"
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7815
7816 int
7817 main (void)
7818 {
7819
7820 ;
7821 return 0;
7822 }
7823 _ACEOF
7824 if ac_fn_c_try_compile "$LINENO"
7825 then :
7826 ac_cv_prog_cc_g=yes
7827 else case e in #(
7828 e) CFLAGS=""
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831
7832 int
7833 main (void)
7834 {
7835
7836 ;
7837 return 0;
7838 }
7839 _ACEOF
7840 if ac_fn_c_try_compile "$LINENO"
7841 then :
7842
7843 else case e in #(
7844 e) ac_c_werror_flag=$ac_save_c_werror_flag
7845 CFLAGS="-g"
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848
7849 int
7850 main (void)
7851 {
7852
7853 ;
7854 return 0;
7855 }
7856 _ACEOF
7857 if ac_fn_c_try_compile "$LINENO"
7858 then :
7859 ac_cv_prog_cc_g=yes
7860 fi
7861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7862 esac
7863 fi
7864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7865 esac
7866 fi
7867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7868 ac_c_werror_flag=$ac_save_c_werror_flag ;;
7869 esac
7870 fi
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7872 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
7873 if test $ac_test_CFLAGS; then
7874 CFLAGS=$ac_save_CFLAGS
7875 elif test $ac_cv_prog_cc_g = yes; then
7876 if test "$GCC" = yes; then
7877 CFLAGS="-g -O2"
7878 else
7879 CFLAGS="-g"
7880 fi
7881 else
7882 if test "$GCC" = yes; then
7883 CFLAGS="-O2"
7884 else
7885 CFLAGS=
7886 fi
7887 fi
7888 ac_prog_cc_stdc=no
7889 if test x$ac_prog_cc_stdc = xno
7890 then :
7891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
7892 printf %s "checking for $CC option to enable C11 features... " >&6; }
7893 if test ${ac_cv_prog_cc_c11+y}
7894 then :
7895 printf %s "(cached) " >&6
7896 else case e in #(
7897 e) ac_cv_prog_cc_c11=no
7898 ac_save_CC=$CC
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7901 $ac_c_conftest_c11_program
7902 _ACEOF
7903 for ac_arg in '' -std=gnu11
7904 do
7905 CC="$ac_save_CC $ac_arg"
7906 if ac_fn_c_try_compile "$LINENO"
7907 then :
7908 ac_cv_prog_cc_c11=$ac_arg
7909 fi
7910 rm -f core conftest.err conftest.$ac_objext conftest.beam
7911 test "x$ac_cv_prog_cc_c11" != "xno" && break
7912 done
7913 rm -f conftest.$ac_ext
7914 CC=$ac_save_CC ;;
7915 esac
7916 fi
7917
7918 if test "x$ac_cv_prog_cc_c11" = xno
7919 then :
7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7921 printf "%s\n" "unsupported" >&6; }
7922 else case e in #(
7923 e) if test "x$ac_cv_prog_cc_c11" = x
7924 then :
7925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7926 printf "%s\n" "none needed" >&6; }
7927 else case e in #(
7928 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
7929 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
7930 CC="$CC $ac_cv_prog_cc_c11" ;;
7931 esac
7932 fi
7933 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
7934 ac_prog_cc_stdc=c11 ;;
7935 esac
7936 fi
7937 fi
7938 if test x$ac_prog_cc_stdc = xno
7939 then :
7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
7941 printf %s "checking for $CC option to enable C99 features... " >&6; }
7942 if test ${ac_cv_prog_cc_c99+y}
7943 then :
7944 printf %s "(cached) " >&6
7945 else case e in #(
7946 e) ac_cv_prog_cc_c99=no
7947 ac_save_CC=$CC
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7950 $ac_c_conftest_c99_program
7951 _ACEOF
7952 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
7953 do
7954 CC="$ac_save_CC $ac_arg"
7955 if ac_fn_c_try_compile "$LINENO"
7956 then :
7957 ac_cv_prog_cc_c99=$ac_arg
7958 fi
7959 rm -f core conftest.err conftest.$ac_objext conftest.beam
7960 test "x$ac_cv_prog_cc_c99" != "xno" && break
7961 done
7962 rm -f conftest.$ac_ext
7963 CC=$ac_save_CC ;;
7964 esac
7965 fi
7966
7967 if test "x$ac_cv_prog_cc_c99" = xno
7968 then :
7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7970 printf "%s\n" "unsupported" >&6; }
7971 else case e in #(
7972 e) if test "x$ac_cv_prog_cc_c99" = x
7973 then :
7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7975 printf "%s\n" "none needed" >&6; }
7976 else case e in #(
7977 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7978 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
7979 CC="$CC $ac_cv_prog_cc_c99" ;;
7980 esac
7981 fi
7982 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7983 ac_prog_cc_stdc=c99 ;;
7984 esac
7985 fi
7986 fi
7987 if test x$ac_prog_cc_stdc = xno
7988 then :
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
7990 printf %s "checking for $CC option to enable C89 features... " >&6; }
7991 if test ${ac_cv_prog_cc_c89+y}
7992 then :
7993 printf %s "(cached) " >&6
7994 else case e in #(
7995 e) ac_cv_prog_cc_c89=no
7996 ac_save_CC=$CC
7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h. */
7999 $ac_c_conftest_c89_program
8000 _ACEOF
8001 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8002 do
8003 CC="$ac_save_CC $ac_arg"
8004 if ac_fn_c_try_compile "$LINENO"
8005 then :
8006 ac_cv_prog_cc_c89=$ac_arg
8007 fi
8008 rm -f core conftest.err conftest.$ac_objext conftest.beam
8009 test "x$ac_cv_prog_cc_c89" != "xno" && break
8010 done
8011 rm -f conftest.$ac_ext
8012 CC=$ac_save_CC ;;
8013 esac
8014 fi
8015
8016 if test "x$ac_cv_prog_cc_c89" = xno
8017 then :
8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8019 printf "%s\n" "unsupported" >&6; }
8020 else case e in #(
8021 e) if test "x$ac_cv_prog_cc_c89" = x
8022 then :
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8024 printf "%s\n" "none needed" >&6; }
8025 else case e in #(
8026 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8027 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
8028 CC="$CC $ac_cv_prog_cc_c89" ;;
8029 esac
8030 fi
8031 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
8032 ac_prog_cc_stdc=c89 ;;
8033 esac
8034 fi
8035 fi
8036
8037 ac_ext=c
8038 ac_cpp='$CPP $CPPFLAGS'
8039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8042
8043
8044 ac_ext=c
8045 ac_cpp='$CPP $CPPFLAGS'
8046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
8050 printf %s "checking whether $CC understands -c and -o together... " >&6; }
8051 if test ${am_cv_prog_cc_c_o+y}
8052 then :
8053 printf %s "(cached) " >&6
8054 else case e in #(
8055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8057
8058 int
8059 main (void)
8060 {
8061
8062 ;
8063 return 0;
8064 }
8065 _ACEOF
8066 # Make sure it works both with $CC and with simple cc.
8067 # Following AC_PROG_CC_C_O, we do the test twice because some
8068 # compilers refuse to overwrite an existing .o file with -o,
8069 # though they will create one.
8070 am_cv_prog_cc_c_o=yes
8071 for am_i in 1 2; do
8072 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
8073 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
8074 ac_status=$?
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } \
8077 && test -f conftest2.$ac_objext; then
8078 : OK
8079 else
8080 am_cv_prog_cc_c_o=no
8081 break
8082 fi
8083 done
8084 # aligned with autoconf, so not including core; see bug#72225.
8085 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
8086 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
8087 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
8088 unset am_i ;;
8089 esac
8090 fi
8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
8092 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
8093 if test "$am_cv_prog_cc_c_o" != yes; then
8094 # Losing compiler, so override with the script.
8095 # FIXME: It is wrong to rewrite CC.
8096 # But if we don't then we get into trouble of one sort or another.
8097 # A longer-term fix would be to have automake use am__CC in this case,
8098 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
8099 CC="$am_aux_dir/compile $CC"
8100 fi
8101 ac_ext=c
8102 ac_cpp='$CPP $CPPFLAGS'
8103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8106
8107
8108 depcc="$CC" am_compiler_list=
8109
8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8111 printf %s "checking dependency style of $depcc... " >&6; }
8112 if test ${am_cv_CC_dependencies_compiler_type+y}
8113 then :
8114 printf %s "(cached) " >&6
8115 else case e in #(
8116 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8117 # We make a subdir and do the tests there. Otherwise we can end up
8118 # making bogus files that we don't know about and never remove. For
8119 # instance it was reported that on HP-UX the gcc test will end up
8120 # making a dummy file named 'D' -- because '-MD' means "put the output
8121 # in D".
8122 rm -rf conftest.dir
8123 mkdir conftest.dir
8124 # Copy depcomp to subdir because otherwise we won't find it if we're
8125 # using a relative directory.
8126 cp "$am_depcomp" conftest.dir
8127 cd conftest.dir
8128 # We will build objects and dependencies in a subdirectory because
8129 # it helps to detect inapplicable dependency modes. For instance
8130 # both Tru64's cc and ICC support -MD to output dependencies as a
8131 # side effect of compilation, but ICC will put the dependencies in
8132 # the current directory while Tru64 will put them in the object
8133 # directory.
8134 mkdir sub
8135
8136 am_cv_CC_dependencies_compiler_type=none
8137 if test "$am_compiler_list" = ""; then
8138 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8139 fi
8140 am__universal=false
8141 case " $depcc " in #(
8142 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8143 esac
8144
8145 for depmode in $am_compiler_list; do
8146 # Setup a source with many dependencies, because some compilers
8147 # like to wrap large dependency lists on column 80 (with \), and
8148 # we should not choose a depcomp mode which is confused by this.
8149 #
8150 # We need to recreate these files for each test, as the compiler may
8151 # overwrite some of them when testing with obscure command lines.
8152 # This happens at least with the AIX C compiler.
8153 : > sub/conftest.c
8154 for i in 1 2 3 4 5 6; do
8155 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8156 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8157 # Solaris 10 /bin/sh.
8158 echo '/* dummy */' > sub/conftst$i.h
8159 done
8160 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8161
8162 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8163 # mode. It turns out that the SunPro C++ compiler does not properly
8164 # handle '-M -o', and we need to detect this. Also, some Intel
8165 # versions had trouble with output in subdirs.
8166 am__obj=sub/conftest.${OBJEXT-o}
8167 am__minus_obj="-o $am__obj"
8168 case $depmode in
8169 gcc)
8170 # This depmode causes a compiler race in universal mode.
8171 test "$am__universal" = false || continue
8172 ;;
8173 nosideeffect)
8174 # After this tag, mechanisms are not by side-effect, so they'll
8175 # only be used when explicitly requested.
8176 if test "x$enable_dependency_tracking" = xyes; then
8177 continue
8178 else
8179 break
8180 fi
8181 ;;
8182 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8183 # This compiler won't grok '-c -o', but also, the minuso test has
8184 # not run yet. These depmodes are late enough in the game, and
8185 # so weak that their functioning should not be impacted.
8186 am__obj=conftest.${OBJEXT-o}
8187 am__minus_obj=
8188 ;;
8189 none) break ;;
8190 esac
8191 if depmode=$depmode \
8192 source=sub/conftest.c object=$am__obj \
8193 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8194 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8195 >/dev/null 2>conftest.err &&
8196 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8197 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8198 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8199 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8200 # icc doesn't choke on unknown options, it will just issue warnings
8201 # or remarks (even with -Werror). So we grep stderr for any message
8202 # that says an option was ignored or not supported.
8203 # When given -MP, icc 7.0 and 7.1 complain thus:
8204 # icc: Command line warning: ignoring option '-M'; no argument required
8205 # The diagnosis changed in icc 8.0:
8206 # icc: Command line remark: option '-MP' not supported
8207 if (grep 'ignoring option' conftest.err ||
8208 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8209 am_cv_CC_dependencies_compiler_type=$depmode
8210 break
8211 fi
8212 fi
8213 done
8214
8215 cd ..
8216 rm -rf conftest.dir
8217 else
8218 am_cv_CC_dependencies_compiler_type=none
8219 fi
8220 ;;
8221 esac
8222 fi
8223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8224 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
8225 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8226
8227 if
8228 test "x$enable_dependency_tracking" != xno \
8229 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
8230 am__fastdepCC_TRUE=
8231 am__fastdepCC_FALSE='#'
8232 else
8233 am__fastdepCC_TRUE='#'
8234 am__fastdepCC_FALSE=
8235 fi
8236
8237
8238
8239
8240
8241
8242
8243
8244 ac_ext=cpp
8245 ac_cpp='$CXXCPP $CPPFLAGS'
8246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8249 if test -z "$CXX"; then
8250 if test -n "$CCC"; then
8251 CXX=$CCC
8252 else
8253 if test -n "$ac_tool_prefix"; then
8254 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
8255 do
8256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 printf %s "checking for $ac_word... " >&6; }
8260 if test ${ac_cv_prog_CXX+y}
8261 then :
8262 printf %s "(cached) " >&6
8263 else case e in #(
8264 e) if test -n "$CXX"; then
8265 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8266 else
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8269 do
8270 IFS=$as_save_IFS
8271 case $as_dir in #(((
8272 '') as_dir=./ ;;
8273 */) ;;
8274 *) as_dir=$as_dir/ ;;
8275 esac
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8278 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8280 break 2
8281 fi
8282 done
8283 done
8284 IFS=$as_save_IFS
8285
8286 fi ;;
8287 esac
8288 fi
8289 CXX=$ac_cv_prog_CXX
8290 if test -n "$CXX"; then
8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8292 printf "%s\n" "$CXX" >&6; }
8293 else
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 printf "%s\n" "no" >&6; }
8296 fi
8297
8298
8299 test -n "$CXX" && break
8300 done
8301 fi
8302 if test -z "$CXX"; then
8303 ac_ct_CXX=$CXX
8304 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
8305 do
8306 # Extract the first word of "$ac_prog", so it can be a program name with args.
8307 set dummy $ac_prog; ac_word=$2
8308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8309 printf %s "checking for $ac_word... " >&6; }
8310 if test ${ac_cv_prog_ac_ct_CXX+y}
8311 then :
8312 printf %s "(cached) " >&6
8313 else case e in #(
8314 e) if test -n "$ac_ct_CXX"; then
8315 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8316 else
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8319 do
8320 IFS=$as_save_IFS
8321 case $as_dir in #(((
8322 '') as_dir=./ ;;
8323 */) ;;
8324 *) as_dir=$as_dir/ ;;
8325 esac
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8328 ac_cv_prog_ac_ct_CXX="$ac_prog"
8329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8330 break 2
8331 fi
8332 done
8333 done
8334 IFS=$as_save_IFS
8335
8336 fi ;;
8337 esac
8338 fi
8339 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8340 if test -n "$ac_ct_CXX"; then
8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8342 printf "%s\n" "$ac_ct_CXX" >&6; }
8343 else
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 printf "%s\n" "no" >&6; }
8346 fi
8347
8348
8349 test -n "$ac_ct_CXX" && break
8350 done
8351
8352 if test "x$ac_ct_CXX" = x; then
8353 CXX="g++"
8354 else
8355 case $cross_compiling:$ac_tool_warned in
8356 yes:)
8357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8358 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8359 ac_tool_warned=yes ;;
8360 esac
8361 CXX=$ac_ct_CXX
8362 fi
8363 fi
8364
8365 fi
8366 fi
8367 # Provide some information about the compiler.
8368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8369 set X $ac_compile
8370 ac_compiler=$2
8371 for ac_option in --version -v -V -qversion; do
8372 { { ac_try="$ac_compiler $ac_option >&5"
8373 case "(($ac_try" in
8374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8375 *) ac_try_echo=$ac_try;;
8376 esac
8377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8378 printf "%s\n" "$ac_try_echo"; } >&5
8379 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8380 ac_status=$?
8381 if test -s conftest.err; then
8382 sed '10a\
8383 ... rest of stderr output deleted ...
8384 10q' conftest.err >conftest.er1
8385 cat conftest.er1 >&5
8386 fi
8387 rm -f conftest.er1 conftest.err
8388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8389 test $ac_status = 0; }
8390 done
8391
8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
8393 printf %s "checking whether the compiler supports GNU C++... " >&6; }
8394 if test ${ac_cv_cxx_compiler_gnu+y}
8395 then :
8396 printf %s "(cached) " >&6
8397 else case e in #(
8398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8400
8401 int
8402 main (void)
8403 {
8404 #ifndef __GNUC__
8405 choke me
8406 #endif
8407
8408 ;
8409 return 0;
8410 }
8411 _ACEOF
8412 if ac_fn_cxx_try_compile "$LINENO"
8413 then :
8414 ac_compiler_gnu=yes
8415 else case e in #(
8416 e) ac_compiler_gnu=no ;;
8417 esac
8418 fi
8419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8420 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8421 ;;
8422 esac
8423 fi
8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8425 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
8426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8427
8428 if test $ac_compiler_gnu = yes; then
8429 GXX=yes
8430 else
8431 GXX=
8432 fi
8433 ac_test_CXXFLAGS=${CXXFLAGS+y}
8434 ac_save_CXXFLAGS=$CXXFLAGS
8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8436 printf %s "checking whether $CXX accepts -g... " >&6; }
8437 if test ${ac_cv_prog_cxx_g+y}
8438 then :
8439 printf %s "(cached) " >&6
8440 else case e in #(
8441 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8442 ac_cxx_werror_flag=yes
8443 ac_cv_prog_cxx_g=no
8444 CXXFLAGS="-g"
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8447
8448 int
8449 main (void)
8450 {
8451
8452 ;
8453 return 0;
8454 }
8455 _ACEOF
8456 if ac_fn_cxx_try_compile "$LINENO"
8457 then :
8458 ac_cv_prog_cxx_g=yes
8459 else case e in #(
8460 e) CXXFLAGS=""
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8463
8464 int
8465 main (void)
8466 {
8467
8468 ;
8469 return 0;
8470 }
8471 _ACEOF
8472 if ac_fn_cxx_try_compile "$LINENO"
8473 then :
8474
8475 else case e in #(
8476 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8477 CXXFLAGS="-g"
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8480
8481 int
8482 main (void)
8483 {
8484
8485 ;
8486 return 0;
8487 }
8488 _ACEOF
8489 if ac_fn_cxx_try_compile "$LINENO"
8490 then :
8491 ac_cv_prog_cxx_g=yes
8492 fi
8493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8494 esac
8495 fi
8496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8497 esac
8498 fi
8499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8500 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
8501 esac
8502 fi
8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8504 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
8505 if test $ac_test_CXXFLAGS; then
8506 CXXFLAGS=$ac_save_CXXFLAGS
8507 elif test $ac_cv_prog_cxx_g = yes; then
8508 if test "$GXX" = yes; then
8509 CXXFLAGS="-g -O2"
8510 else
8511 CXXFLAGS="-g"
8512 fi
8513 else
8514 if test "$GXX" = yes; then
8515 CXXFLAGS="-O2"
8516 else
8517 CXXFLAGS=
8518 fi
8519 fi
8520 ac_prog_cxx_stdcxx=no
8521 if test x$ac_prog_cxx_stdcxx = xno
8522 then :
8523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
8524 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
8525 if test ${ac_cv_prog_cxx_cxx11+y}
8526 then :
8527 printf %s "(cached) " >&6
8528 else case e in #(
8529 e) ac_cv_prog_cxx_cxx11=no
8530 ac_save_CXX=$CXX
8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h. */
8533 $ac_cxx_conftest_cxx11_program
8534 _ACEOF
8535 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
8536 do
8537 CXX="$ac_save_CXX $ac_arg"
8538 if ac_fn_cxx_try_compile "$LINENO"
8539 then :
8540 ac_cv_prog_cxx_cxx11=$ac_arg
8541 fi
8542 rm -f core conftest.err conftest.$ac_objext conftest.beam
8543 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
8544 done
8545 rm -f conftest.$ac_ext
8546 CXX=$ac_save_CXX ;;
8547 esac
8548 fi
8549
8550 if test "x$ac_cv_prog_cxx_cxx11" = xno
8551 then :
8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8553 printf "%s\n" "unsupported" >&6; }
8554 else case e in #(
8555 e) if test "x$ac_cv_prog_cxx_cxx11" = x
8556 then :
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8558 printf "%s\n" "none needed" >&6; }
8559 else case e in #(
8560 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
8561 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
8562 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
8563 esac
8564 fi
8565 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
8566 ac_prog_cxx_stdcxx=cxx11 ;;
8567 esac
8568 fi
8569 fi
8570 if test x$ac_prog_cxx_stdcxx = xno
8571 then :
8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
8573 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
8574 if test ${ac_cv_prog_cxx_cxx98+y}
8575 then :
8576 printf %s "(cached) " >&6
8577 else case e in #(
8578 e) ac_cv_prog_cxx_cxx98=no
8579 ac_save_CXX=$CXX
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8582 $ac_cxx_conftest_cxx98_program
8583 _ACEOF
8584 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
8585 do
8586 CXX="$ac_save_CXX $ac_arg"
8587 if ac_fn_cxx_try_compile "$LINENO"
8588 then :
8589 ac_cv_prog_cxx_cxx98=$ac_arg
8590 fi
8591 rm -f core conftest.err conftest.$ac_objext conftest.beam
8592 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
8593 done
8594 rm -f conftest.$ac_ext
8595 CXX=$ac_save_CXX ;;
8596 esac
8597 fi
8598
8599 if test "x$ac_cv_prog_cxx_cxx98" = xno
8600 then :
8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8602 printf "%s\n" "unsupported" >&6; }
8603 else case e in #(
8604 e) if test "x$ac_cv_prog_cxx_cxx98" = x
8605 then :
8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8607 printf "%s\n" "none needed" >&6; }
8608 else case e in #(
8609 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
8610 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
8611 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
8612 esac
8613 fi
8614 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
8615 ac_prog_cxx_stdcxx=cxx98 ;;
8616 esac
8617 fi
8618 fi
8619
8620 ac_ext=c
8621 ac_cpp='$CPP $CPPFLAGS'
8622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8625
8626 depcc="$CXX" am_compiler_list=
8627
8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8629 printf %s "checking dependency style of $depcc... " >&6; }
8630 if test ${am_cv_CXX_dependencies_compiler_type+y}
8631 then :
8632 printf %s "(cached) " >&6
8633 else case e in #(
8634 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8635 # We make a subdir and do the tests there. Otherwise we can end up
8636 # making bogus files that we don't know about and never remove. For
8637 # instance it was reported that on HP-UX the gcc test will end up
8638 # making a dummy file named 'D' -- because '-MD' means "put the output
8639 # in D".
8640 rm -rf conftest.dir
8641 mkdir conftest.dir
8642 # Copy depcomp to subdir because otherwise we won't find it if we're
8643 # using a relative directory.
8644 cp "$am_depcomp" conftest.dir
8645 cd conftest.dir
8646 # We will build objects and dependencies in a subdirectory because
8647 # it helps to detect inapplicable dependency modes. For instance
8648 # both Tru64's cc and ICC support -MD to output dependencies as a
8649 # side effect of compilation, but ICC will put the dependencies in
8650 # the current directory while Tru64 will put them in the object
8651 # directory.
8652 mkdir sub
8653
8654 am_cv_CXX_dependencies_compiler_type=none
8655 if test "$am_compiler_list" = ""; then
8656 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8657 fi
8658 am__universal=false
8659 case " $depcc " in #(
8660 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8661 esac
8662
8663 for depmode in $am_compiler_list; do
8664 # Setup a source with many dependencies, because some compilers
8665 # like to wrap large dependency lists on column 80 (with \), and
8666 # we should not choose a depcomp mode which is confused by this.
8667 #
8668 # We need to recreate these files for each test, as the compiler may
8669 # overwrite some of them when testing with obscure command lines.
8670 # This happens at least with the AIX C compiler.
8671 : > sub/conftest.c
8672 for i in 1 2 3 4 5 6; do
8673 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8674 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8675 # Solaris 10 /bin/sh.
8676 echo '/* dummy */' > sub/conftst$i.h
8677 done
8678 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8679
8680 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8681 # mode. It turns out that the SunPro C++ compiler does not properly
8682 # handle '-M -o', and we need to detect this. Also, some Intel
8683 # versions had trouble with output in subdirs.
8684 am__obj=sub/conftest.${OBJEXT-o}
8685 am__minus_obj="-o $am__obj"
8686 case $depmode in
8687 gcc)
8688 # This depmode causes a compiler race in universal mode.
8689 test "$am__universal" = false || continue
8690 ;;
8691 nosideeffect)
8692 # After this tag, mechanisms are not by side-effect, so they'll
8693 # only be used when explicitly requested.
8694 if test "x$enable_dependency_tracking" = xyes; then
8695 continue
8696 else
8697 break
8698 fi
8699 ;;
8700 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8701 # This compiler won't grok '-c -o', but also, the minuso test has
8702 # not run yet. These depmodes are late enough in the game, and
8703 # so weak that their functioning should not be impacted.
8704 am__obj=conftest.${OBJEXT-o}
8705 am__minus_obj=
8706 ;;
8707 none) break ;;
8708 esac
8709 if depmode=$depmode \
8710 source=sub/conftest.c object=$am__obj \
8711 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8712 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8713 >/dev/null 2>conftest.err &&
8714 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8715 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8716 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8717 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8718 # icc doesn't choke on unknown options, it will just issue warnings
8719 # or remarks (even with -Werror). So we grep stderr for any message
8720 # that says an option was ignored or not supported.
8721 # When given -MP, icc 7.0 and 7.1 complain thus:
8722 # icc: Command line warning: ignoring option '-M'; no argument required
8723 # The diagnosis changed in icc 8.0:
8724 # icc: Command line remark: option '-MP' not supported
8725 if (grep 'ignoring option' conftest.err ||
8726 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8727 am_cv_CXX_dependencies_compiler_type=$depmode
8728 break
8729 fi
8730 fi
8731 done
8732
8733 cd ..
8734 rm -rf conftest.dir
8735 else
8736 am_cv_CXX_dependencies_compiler_type=none
8737 fi
8738 ;;
8739 esac
8740 fi
8741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8742 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
8743 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8744
8745 if
8746 test "x$enable_dependency_tracking" != xno \
8747 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8748 am__fastdepCXX_TRUE=
8749 am__fastdepCXX_FALSE='#'
8750 else
8751 am__fastdepCXX_TRUE='#'
8752 am__fastdepCXX_FALSE=
8753 fi
8754
8755
8756 ac_ext=c
8757 ac_cpp='$CPP $CPPFLAGS'
8758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8762 printf %s "checking how to run the C preprocessor... " >&6; }
8763 # On Suns, sometimes $CPP names a directory.
8764 if test -n "$CPP" && test -d "$CPP"; then
8765 CPP=
8766 fi
8767 if test -z "$CPP"; then
8768 if test ${ac_cv_prog_CPP+y}
8769 then :
8770 printf %s "(cached) " >&6
8771 else case e in #(
8772 e) # Double quotes because $CC needs to be expanded
8773 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
8774 do
8775 ac_preproc_ok=false
8776 for ac_c_preproc_warn_flag in '' yes
8777 do
8778 # Use a header file that comes with gcc, so configuring glibc
8779 # with a fresh cross-compiler works.
8780 # On the NeXT, cc -E runs the code through the compiler's parser,
8781 # not just through cpp. "Syntax error" is here to catch this case.
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8784 #include <limits.h>
8785 Syntax error
8786 _ACEOF
8787 if ac_fn_c_try_cpp "$LINENO"
8788 then :
8789
8790 else case e in #(
8791 e) # Broken: fails on valid input.
8792 continue ;;
8793 esac
8794 fi
8795 rm -f conftest.err conftest.i conftest.$ac_ext
8796
8797 # OK, works on sane cases. Now check whether nonexistent headers
8798 # can be detected and how.
8799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h. */
8801 #include <ac_nonexistent.h>
8802 _ACEOF
8803 if ac_fn_c_try_cpp "$LINENO"
8804 then :
8805 # Broken: success on invalid input.
8806 continue
8807 else case e in #(
8808 e) # Passes both tests.
8809 ac_preproc_ok=:
8810 break ;;
8811 esac
8812 fi
8813 rm -f conftest.err conftest.i conftest.$ac_ext
8814
8815 done
8816 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8817 rm -f conftest.i conftest.err conftest.$ac_ext
8818 if $ac_preproc_ok
8819 then :
8820 break
8821 fi
8822
8823 done
8824 ac_cv_prog_CPP=$CPP
8825 ;;
8826 esac
8827 fi
8828 CPP=$ac_cv_prog_CPP
8829 else
8830 ac_cv_prog_CPP=$CPP
8831 fi
8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8833 printf "%s\n" "$CPP" >&6; }
8834 ac_preproc_ok=false
8835 for ac_c_preproc_warn_flag in '' yes
8836 do
8837 # Use a header file that comes with gcc, so configuring glibc
8838 # with a fresh cross-compiler works.
8839 # On the NeXT, cc -E runs the code through the compiler's parser,
8840 # not just through cpp. "Syntax error" is here to catch this case.
8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8843 #include <limits.h>
8844 Syntax error
8845 _ACEOF
8846 if ac_fn_c_try_cpp "$LINENO"
8847 then :
8848
8849 else case e in #(
8850 e) # Broken: fails on valid input.
8851 continue ;;
8852 esac
8853 fi
8854 rm -f conftest.err conftest.i conftest.$ac_ext
8855
8856 # OK, works on sane cases. Now check whether nonexistent headers
8857 # can be detected and how.
8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h. */
8860 #include <ac_nonexistent.h>
8861 _ACEOF
8862 if ac_fn_c_try_cpp "$LINENO"
8863 then :
8864 # Broken: success on invalid input.
8865 continue
8866 else case e in #(
8867 e) # Passes both tests.
8868 ac_preproc_ok=:
8869 break ;;
8870 esac
8871 fi
8872 rm -f conftest.err conftest.i conftest.$ac_ext
8873
8874 done
8875 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8876 rm -f conftest.i conftest.err conftest.$ac_ext
8877 if $ac_preproc_ok
8878 then :
8879
8880 else case e in #(
8881 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8882 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8883 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8884 See 'config.log' for more details" "$LINENO" 5; } ;;
8885 esac
8886 fi
8887
8888 ac_ext=c
8889 ac_cpp='$CPP $CPPFLAGS'
8890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8893
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8895 printf %s "checking for a sed that does not truncate output... " >&6; }
8896 if test ${ac_cv_path_SED+y}
8897 then :
8898 printf %s "(cached) " >&6
8899 else case e in #(
8900 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8901 for ac_i in 1 2 3 4 5 6 7; do
8902 ac_script="$ac_script$as_nl$ac_script"
8903 done
8904 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8905 { ac_script=; unset ac_script;}
8906 if test -z "$SED"; then
8907 ac_path_SED_found=false
8908 # Loop through the user's path and test for each of PROGNAME-LIST
8909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910 for as_dir in $PATH
8911 do
8912 IFS=$as_save_IFS
8913 case $as_dir in #(((
8914 '') as_dir=./ ;;
8915 */) ;;
8916 *) as_dir=$as_dir/ ;;
8917 esac
8918 for ac_prog in sed gsed
8919 do
8920 for ac_exec_ext in '' $ac_executable_extensions; do
8921 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8922 as_fn_executable_p "$ac_path_SED" || continue
8923 # Check for GNU ac_path_SED and select it if it is found.
8924 # Check for GNU $ac_path_SED
8925 case `"$ac_path_SED" --version 2>&1` in #(
8926 *GNU*)
8927 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8928 #(
8929 *)
8930 ac_count=0
8931 printf %s 0123456789 >"conftest.in"
8932 while :
8933 do
8934 cat "conftest.in" "conftest.in" >"conftest.tmp"
8935 mv "conftest.tmp" "conftest.in"
8936 cp "conftest.in" "conftest.nl"
8937 printf "%s\n" '' >> "conftest.nl"
8938 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8940 as_fn_arith $ac_count + 1 && ac_count=$as_val
8941 if test $ac_count -gt ${ac_path_SED_max-0}; then
8942 # Best one so far, save it but keep looking for a better one
8943 ac_cv_path_SED="$ac_path_SED"
8944 ac_path_SED_max=$ac_count
8945 fi
8946 # 10*(2^10) chars as input seems more than enough
8947 test $ac_count -gt 10 && break
8948 done
8949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8950 esac
8951
8952 $ac_path_SED_found && break 3
8953 done
8954 done
8955 done
8956 IFS=$as_save_IFS
8957 if test -z "$ac_cv_path_SED"; then
8958 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8959 fi
8960 else
8961 ac_cv_path_SED=$SED
8962 fi
8963 ;;
8964 esac
8965 fi
8966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8967 printf "%s\n" "$ac_cv_path_SED" >&6; }
8968 SED="$ac_cv_path_SED"
8969 rm -f conftest.sed
8970
8971 test -z "$SED" && SED=sed
8972 Xsed="$SED -e 1s/^X//"
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8985 printf %s "checking for grep that handles long lines and -e... " >&6; }
8986 if test ${ac_cv_path_GREP+y}
8987 then :
8988 printf %s "(cached) " >&6
8989 else case e in #(
8990 e) if test -z "$GREP"; then
8991 ac_path_GREP_found=false
8992 # Loop through the user's path and test for each of PROGNAME-LIST
8993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8995 do
8996 IFS=$as_save_IFS
8997 case $as_dir in #(((
8998 '') as_dir=./ ;;
8999 */) ;;
9000 *) as_dir=$as_dir/ ;;
9001 esac
9002 for ac_prog in grep ggrep
9003 do
9004 for ac_exec_ext in '' $ac_executable_extensions; do
9005 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
9006 as_fn_executable_p "$ac_path_GREP" || continue
9007 # Check for GNU ac_path_GREP and select it if it is found.
9008 # Check for GNU $ac_path_GREP
9009 case `"$ac_path_GREP" --version 2>&1` in #(
9010 *GNU*)
9011 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9012 #(
9013 *)
9014 ac_count=0
9015 printf %s 0123456789 >"conftest.in"
9016 while :
9017 do
9018 cat "conftest.in" "conftest.in" >"conftest.tmp"
9019 mv "conftest.tmp" "conftest.in"
9020 cp "conftest.in" "conftest.nl"
9021 printf "%s\n" 'GREP' >> "conftest.nl"
9022 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9023 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9024 as_fn_arith $ac_count + 1 && ac_count=$as_val
9025 if test $ac_count -gt ${ac_path_GREP_max-0}; then
9026 # Best one so far, save it but keep looking for a better one
9027 ac_cv_path_GREP="$ac_path_GREP"
9028 ac_path_GREP_max=$ac_count
9029 fi
9030 # 10*(2^10) chars as input seems more than enough
9031 test $ac_count -gt 10 && break
9032 done
9033 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9034 esac
9035
9036 $ac_path_GREP_found && break 3
9037 done
9038 done
9039 done
9040 IFS=$as_save_IFS
9041 if test -z "$ac_cv_path_GREP"; then
9042 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9043 fi
9044 else
9045 ac_cv_path_GREP=$GREP
9046 fi
9047 ;;
9048 esac
9049 fi
9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
9051 printf "%s\n" "$ac_cv_path_GREP" >&6; }
9052 GREP="$ac_cv_path_GREP"
9053
9054
9055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9056 printf %s "checking for egrep... " >&6; }
9057 if test ${ac_cv_path_EGREP+y}
9058 then :
9059 printf %s "(cached) " >&6
9060 else case e in #(
9061 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9062 then ac_cv_path_EGREP="$GREP -E"
9063 else
9064 if test -z "$EGREP"; then
9065 ac_path_EGREP_found=false
9066 # Loop through the user's path and test for each of PROGNAME-LIST
9067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9069 do
9070 IFS=$as_save_IFS
9071 case $as_dir in #(((
9072 '') as_dir=./ ;;
9073 */) ;;
9074 *) as_dir=$as_dir/ ;;
9075 esac
9076 for ac_prog in egrep
9077 do
9078 for ac_exec_ext in '' $ac_executable_extensions; do
9079 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
9080 as_fn_executable_p "$ac_path_EGREP" || continue
9081 # Check for GNU ac_path_EGREP and select it if it is found.
9082 # Check for GNU $ac_path_EGREP
9083 case `"$ac_path_EGREP" --version 2>&1` in #(
9084 *GNU*)
9085 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9086 #(
9087 *)
9088 ac_count=0
9089 printf %s 0123456789 >"conftest.in"
9090 while :
9091 do
9092 cat "conftest.in" "conftest.in" >"conftest.tmp"
9093 mv "conftest.tmp" "conftest.in"
9094 cp "conftest.in" "conftest.nl"
9095 printf "%s\n" 'EGREP' >> "conftest.nl"
9096 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9098 as_fn_arith $ac_count + 1 && ac_count=$as_val
9099 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9100 # Best one so far, save it but keep looking for a better one
9101 ac_cv_path_EGREP="$ac_path_EGREP"
9102 ac_path_EGREP_max=$ac_count
9103 fi
9104 # 10*(2^10) chars as input seems more than enough
9105 test $ac_count -gt 10 && break
9106 done
9107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9108 esac
9109
9110 $ac_path_EGREP_found && break 3
9111 done
9112 done
9113 done
9114 IFS=$as_save_IFS
9115 if test -z "$ac_cv_path_EGREP"; then
9116 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9117 fi
9118 else
9119 ac_cv_path_EGREP=$EGREP
9120 fi
9121
9122 fi ;;
9123 esac
9124 fi
9125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9126 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
9127 EGREP="$ac_cv_path_EGREP"
9128
9129 EGREP_TRADITIONAL=$EGREP
9130 ac_cv_path_EGREP_TRADITIONAL=$EGREP
9131
9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9133 printf %s "checking for fgrep... " >&6; }
9134 if test ${ac_cv_path_FGREP+y}
9135 then :
9136 printf %s "(cached) " >&6
9137 else case e in #(
9138 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9139 then ac_cv_path_FGREP="$GREP -F"
9140 else
9141 if test -z "$FGREP"; then
9142 ac_path_FGREP_found=false
9143 # Loop through the user's path and test for each of PROGNAME-LIST
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9146 do
9147 IFS=$as_save_IFS
9148 case $as_dir in #(((
9149 '') as_dir=./ ;;
9150 */) ;;
9151 *) as_dir=$as_dir/ ;;
9152 esac
9153 for ac_prog in fgrep
9154 do
9155 for ac_exec_ext in '' $ac_executable_extensions; do
9156 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
9157 as_fn_executable_p "$ac_path_FGREP" || continue
9158 # Check for GNU ac_path_FGREP and select it if it is found.
9159 # Check for GNU $ac_path_FGREP
9160 case `"$ac_path_FGREP" --version 2>&1` in #(
9161 *GNU*)
9162 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9163 #(
9164 *)
9165 ac_count=0
9166 printf %s 0123456789 >"conftest.in"
9167 while :
9168 do
9169 cat "conftest.in" "conftest.in" >"conftest.tmp"
9170 mv "conftest.tmp" "conftest.in"
9171 cp "conftest.in" "conftest.nl"
9172 printf "%s\n" 'FGREP' >> "conftest.nl"
9173 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9175 as_fn_arith $ac_count + 1 && ac_count=$as_val
9176 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9177 # Best one so far, save it but keep looking for a better one
9178 ac_cv_path_FGREP="$ac_path_FGREP"
9179 ac_path_FGREP_max=$ac_count
9180 fi
9181 # 10*(2^10) chars as input seems more than enough
9182 test $ac_count -gt 10 && break
9183 done
9184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9185 esac
9186
9187 $ac_path_FGREP_found && break 3
9188 done
9189 done
9190 done
9191 IFS=$as_save_IFS
9192 if test -z "$ac_cv_path_FGREP"; then
9193 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9194 fi
9195 else
9196 ac_cv_path_FGREP=$FGREP
9197 fi
9198
9199 fi ;;
9200 esac
9201 fi
9202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9203 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
9204 FGREP="$ac_cv_path_FGREP"
9205
9206
9207 test -z "$GREP" && GREP=grep
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9226 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9227 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9228
9229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9230 printf %s "checking how to print strings... " >&6; }
9231 # Test print first, because it will be a builtin if present.
9232 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9233 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9234 ECHO='print -r --'
9235 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9236 ECHO='printf %s\n'
9237 else
9238 # Use this function as a fallback that always works.
9239 func_fallback_echo ()
9240 {
9241 eval 'cat <<_LTECHO_EOF
9242 $1
9243 _LTECHO_EOF'
9244 }
9245 ECHO='func_fallback_echo'
9246 fi
9247
9248 # func_echo_all arg...
9249 # Invoke $ECHO with all args, space-separated.
9250 func_echo_all ()
9251 {
9252 $ECHO ""
9253 }
9254
9255 case $ECHO in
9256 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9257 printf "%s\n" "printf" >&6; } ;;
9258 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9259 printf "%s\n" "print -r" >&6; } ;;
9260 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9261 printf "%s\n" "cat" >&6; } ;;
9262 esac
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279 # Check whether --with-gnu-ld was given.
9280 if test ${with_gnu_ld+y}
9281 then :
9282 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9283 else case e in #(
9284 e) with_gnu_ld=no ;;
9285 esac
9286 fi
9287
9288 ac_prog=ld
9289 if test yes = "$GCC"; then
9290 # Check if gcc -print-prog-name=ld gives a path.
9291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9292 printf %s "checking for ld used by $CC... " >&6; }
9293 case $host in
9294 *-*-mingw* | *-*-windows*)
9295 # gcc leaves a trailing carriage return, which upsets mingw
9296 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9297 *)
9298 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9299 esac
9300 case $ac_prog in
9301 # Accept absolute paths.
9302 [\\/]* | ?:[\\/]*)
9303 re_direlt='/[^/][^/]*/\.\./'
9304 # Canonicalize the pathname of ld
9305 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9306 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9307 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9308 done
9309 test -z "$LD" && LD=$ac_prog
9310 ;;
9311 "")
9312 # If it fails, then pretend we aren't using GCC.
9313 ac_prog=ld
9314 ;;
9315 *)
9316 # If it is relative, then search for the first ld in PATH.
9317 with_gnu_ld=unknown
9318 ;;
9319 esac
9320 elif test yes = "$with_gnu_ld"; then
9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9322 printf %s "checking for GNU ld... " >&6; }
9323 else
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9325 printf %s "checking for non-GNU ld... " >&6; }
9326 fi
9327 if test ${lt_cv_path_LD+y}
9328 then :
9329 printf %s "(cached) " >&6
9330 else case e in #(
9331 e) if test -z "$LD"; then
9332 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9333 for ac_dir in $PATH; do
9334 IFS=$lt_save_ifs
9335 test -z "$ac_dir" && ac_dir=.
9336 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9337 lt_cv_path_LD=$ac_dir/$ac_prog
9338 # Check to see if the program is GNU ld. I'd rather use --version,
9339 # but apparently some variants of GNU ld only accept -v.
9340 # Break only if it was the GNU/non-GNU ld that we prefer.
9341 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9342 *GNU* | *'with BFD'*)
9343 test no != "$with_gnu_ld" && break
9344 ;;
9345 *)
9346 test yes != "$with_gnu_ld" && break
9347 ;;
9348 esac
9349 fi
9350 done
9351 IFS=$lt_save_ifs
9352 else
9353 lt_cv_path_LD=$LD # Let the user override the test with a path.
9354 fi ;;
9355 esac
9356 fi
9357
9358 LD=$lt_cv_path_LD
9359 if test -n "$LD"; then
9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9361 printf "%s\n" "$LD" >&6; }
9362 else
9363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364 printf "%s\n" "no" >&6; }
9365 fi
9366 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9368 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
9369 if test ${lt_cv_prog_gnu_ld+y}
9370 then :
9371 printf %s "(cached) " >&6
9372 else case e in #(
9373 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
9374 case `$LD -v 2>&1 </dev/null` in
9375 *GNU* | *'with BFD'*)
9376 lt_cv_prog_gnu_ld=yes
9377 ;;
9378 *)
9379 lt_cv_prog_gnu_ld=no
9380 ;;
9381 esac ;;
9382 esac
9383 fi
9384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9385 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
9386 with_gnu_ld=$lt_cv_prog_gnu_ld
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9399 printf %s "checking for C compiler vendor... " >&6; }
9400 if test ${ax_cv_c_compiler_vendor+y}
9401 then :
9402 printf %s "(cached) " >&6
9403 else case e in #(
9404 e)
9405 vendors="
9406 intel: __ICC,__ECC,__INTEL_COMPILER
9407 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__
9408 pathscale: __PATHCC__,__PATHSCALE__
9409 clang: __clang__
9410 cray: _CRAYC
9411 fujitsu: __FUJITSU
9412 sdcc: SDCC,__SDCC
9413 sx: _SX
9414 nvhpc: __NVCOMPILER
9415 portland: __PGI
9416 gnu: __GNUC__
9417 sun: __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95
9418 hp: __HP_cc,__HP_aCC
9419 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
9420 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
9421 comeau: __COMO__
9422 kai: __KCC
9423 lcc: __LCC__
9424 sgi: __sgi,sgi
9425 microsoft: _MSC_VER
9426 metrowerks: __MWERKS__
9427 watcom: __WATCOMC__
9428 tcc: __TINYC__
9429 unknown: UNKNOWN
9430 "
9431 for ventest in $vendors; do
9432 case $ventest in
9433 *:)
9434 vendor=$ventest
9435 continue
9436 ;;
9437 *)
9438 vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")"
9439 ;;
9440 esac
9441
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444
9445 int
9446 main (void)
9447 {
9448
9449 #if !($vencpp)
9450 thisisanerror;
9451 #endif
9452
9453 ;
9454 return 0;
9455 }
9456 _ACEOF
9457 if ac_fn_c_try_compile "$LINENO"
9458 then :
9459 break
9460 fi
9461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9462 done
9463
9464 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9465 ;;
9466 esac
9467 fi
9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9469 printf "%s\n" "$ax_cv_c_compiler_vendor" >&6; }
9470
9471 ac_ext=c
9472 ac_cpp='$CPP $CPPFLAGS'
9473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9476
9477
9478
9479
9480
9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CFLAGS for most reasonable warnings" >&5
9482 printf %s "checking CFLAGS for most reasonable warnings... " >&6; }
9483 if test ${ac_cv_cflags_warn_all+y}
9484 then :
9485 printf %s "(cached) " >&6
9486 else case e in #(
9487 e)
9488 ac_cv_cflags_warn_all=""
9489 ac_save_cflags_warn_all_found="yes"
9490 case "$ax_cv_c_compiler_vendor" in #(
9491 intel) :
9492 ac_cv_cflags_warn_all="-w2" ;; #(
9493 ibm) :
9494 ac_cv_cflags_warn_all="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" ;; #(
9495 pathscale) :
9496 ;; #(
9497 clang) :
9498 ac_cv_cflags_warn_all="-Wall" ;; #(
9499 cray) :
9500 ac_cv_cflags_warn_all="-h msglevel 2" ;; #(
9501 fujitsu) :
9502 ;; #(
9503 sdcc) :
9504 ;; #(
9505 sx) :
9506 ac_cv_cflags_warn_all="-pvctl,fullmsg" ;; #(
9507 portland) :
9508 ;; #(
9509 gnu) :
9510 ac_cv_cflags_warn_all="-Wall" ;; #(
9511 sun) :
9512 ac_cv_cflags_warn_all="-v" ;; #(
9513 hp) :
9514 ac_cv_cflags_warn_all="+w1" ;; #(
9515 dec) :
9516 ac_cv_cflags_warn_all="-verbose -w0 -warnprotos" ;; #(
9517 borland) :
9518 ;; #(
9519 comeau) :
9520 ;; #(
9521 kai) :
9522 ;; #(
9523 lcc) :
9524 ;; #(
9525 sgi) :
9526 ac_cv_cflags_warn_all="-fullwarn" ;; #(
9527 microsoft) :
9528 ;; #(
9529 metrowerks) :
9530 ;; #(
9531 watcom) :
9532 ;; #(
9533 tcc) :
9534 ;; #(
9535 unknown) :
9536
9537 ac_cv_cflags_warn_all=""
9538 ac_save_cflags_warn_all_found="no"
9539 ;; #(
9540 *) :
9541
9542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown compiler vendor returned by AX_COMPILER_VENDOR" >&5
9543 printf "%s\n" "$as_me: WARNING: Unknown compiler vendor returned by AX_COMPILER_VENDOR" >&2;}
9544 ac_cv_cflags_warn_all=""
9545 ac_save_cflags_warn_all_found="no"
9546
9547 ;;
9548 esac
9549
9550 if test "x$ac_save_cflags_warn_all_found" = "xyes"
9551 then :
9552 if test "x$ac_cv_cflags_warn_all" != "x"
9553 then :
9554
9555 if test ${CFLAGS+y}
9556 then :
9557
9558 case " $CFLAGS " in #(
9559 *" $ac_cv_cflags_warn_all "*) :
9560 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
9561 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
9562 ac_status=$?
9563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9564 test $ac_status = 0; } ;; #(
9565 *) :
9566
9567 CFLAGS="$ac_cv_cflags_warn_all $CFLAGS"
9568 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9569 (: CFLAGS="$CFLAGS") 2>&5
9570 ac_status=$?
9571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9572 test $ac_status = 0; }
9573 ;;
9574 esac
9575
9576 else case e in #(
9577 e)
9578 CFLAGS=$ac_cv_cflags_warn_all
9579 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9580 (: CFLAGS="$CFLAGS") 2>&5
9581 ac_status=$?
9582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9583 test $ac_status = 0; }
9584 ;;
9585 esac
9586 fi
9587
9588 fi
9589
9590 else case e in #(
9591 e) true
9592 ;;
9593 esac
9594 fi ;;
9595 esac
9596 fi
9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
9598 printf "%s\n" "$ac_cv_cflags_warn_all" >&6; }
9599
9600 ac_ext=c
9601 ac_cpp='$CPP $CPPFLAGS'
9602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9605
9606
9607
9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9609 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9610 set x ${MAKE-make}
9611 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9612 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
9613 then :
9614 printf %s "(cached) " >&6
9615 else case e in #(
9616 e) cat >conftest.make <<\_ACEOF
9617 SHELL = /bin/sh
9618 all:
9619 @echo '@@@%%%=$(MAKE)=@@@%%%'
9620 _ACEOF
9621 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9622 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9623 *@@@%%%=?*=@@@%%%*)
9624 eval ac_cv_prog_make_${ac_make}_set=yes;;
9625 *)
9626 eval ac_cv_prog_make_${ac_make}_set=no;;
9627 esac
9628 rm -f conftest.make ;;
9629 esac
9630 fi
9631 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9633 printf "%s\n" "yes" >&6; }
9634 SET_MAKE=
9635 else
9636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637 printf "%s\n" "no" >&6; }
9638 SET_MAKE="MAKE=${MAKE-make}"
9639 fi
9640
9641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9642 printf %s "checking whether ln -s works... " >&6; }
9643 LN_S=$as_ln_s
9644 if test "$LN_S" = "ln -s"; then
9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9646 printf "%s\n" "yes" >&6; }
9647 else
9648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9649 printf "%s\n" "no, using $LN_S" >&6; }
9650 fi
9651
9652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9653 printf %s "checking for a sed that does not truncate output... " >&6; }
9654 if test ${ac_cv_path_SED+y}
9655 then :
9656 printf %s "(cached) " >&6
9657 else case e in #(
9658 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9659 for ac_i in 1 2 3 4 5 6 7; do
9660 ac_script="$ac_script$as_nl$ac_script"
9661 done
9662 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9663 { ac_script=; unset ac_script;}
9664 if test -z "$SED"; then
9665 ac_path_SED_found=false
9666 # Loop through the user's path and test for each of PROGNAME-LIST
9667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9668 for as_dir in $PATH
9669 do
9670 IFS=$as_save_IFS
9671 case $as_dir in #(((
9672 '') as_dir=./ ;;
9673 */) ;;
9674 *) as_dir=$as_dir/ ;;
9675 esac
9676 for ac_prog in sed gsed
9677 do
9678 for ac_exec_ext in '' $ac_executable_extensions; do
9679 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
9680 as_fn_executable_p "$ac_path_SED" || continue
9681 # Check for GNU ac_path_SED and select it if it is found.
9682 # Check for GNU $ac_path_SED
9683 case `"$ac_path_SED" --version 2>&1` in #(
9684 *GNU*)
9685 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9686 #(
9687 *)
9688 ac_count=0
9689 printf %s 0123456789 >"conftest.in"
9690 while :
9691 do
9692 cat "conftest.in" "conftest.in" >"conftest.tmp"
9693 mv "conftest.tmp" "conftest.in"
9694 cp "conftest.in" "conftest.nl"
9695 printf "%s\n" '' >> "conftest.nl"
9696 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9698 as_fn_arith $ac_count + 1 && ac_count=$as_val
9699 if test $ac_count -gt ${ac_path_SED_max-0}; then
9700 # Best one so far, save it but keep looking for a better one
9701 ac_cv_path_SED="$ac_path_SED"
9702 ac_path_SED_max=$ac_count
9703 fi
9704 # 10*(2^10) chars as input seems more than enough
9705 test $ac_count -gt 10 && break
9706 done
9707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9708 esac
9709
9710 $ac_path_SED_found && break 3
9711 done
9712 done
9713 done
9714 IFS=$as_save_IFS
9715 if test -z "$ac_cv_path_SED"; then
9716 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9717 fi
9718 else
9719 ac_cv_path_SED=$SED
9720 fi
9721 ;;
9722 esac
9723 fi
9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9725 printf "%s\n" "$ac_cv_path_SED" >&6; }
9726 SED="$ac_cv_path_SED"
9727 rm -f conftest.sed
9728
9729 for ac_prog in gawk mawk nawk awk
9730 do
9731 # Extract the first word of "$ac_prog", so it can be a program name with args.
9732 set dummy $ac_prog; ac_word=$2
9733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734 printf %s "checking for $ac_word... " >&6; }
9735 if test ${ac_cv_prog_AWK+y}
9736 then :
9737 printf %s "(cached) " >&6
9738 else case e in #(
9739 e) if test -n "$AWK"; then
9740 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9741 else
9742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9743 for as_dir in $PATH
9744 do
9745 IFS=$as_save_IFS
9746 case $as_dir in #(((
9747 '') as_dir=./ ;;
9748 */) ;;
9749 *) as_dir=$as_dir/ ;;
9750 esac
9751 for ac_exec_ext in '' $ac_executable_extensions; do
9752 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9753 ac_cv_prog_AWK="$ac_prog"
9754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9755 break 2
9756 fi
9757 done
9758 done
9759 IFS=$as_save_IFS
9760
9761 fi ;;
9762 esac
9763 fi
9764 AWK=$ac_cv_prog_AWK
9765 if test -n "$AWK"; then
9766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9767 printf "%s\n" "$AWK" >&6; }
9768 else
9769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9770 printf "%s\n" "no" >&6; }
9771 fi
9772
9773
9774 test -n "$AWK" && break
9775 done
9776
9777
9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
9779 printf %s "checking if malloc debugging is wanted... " >&6; }
9780
9781 # Check whether --with-dmalloc was given.
9782 if test ${with_dmalloc+y}
9783 then :
9784 withval=$with_dmalloc; if test "$withval" = yes; then
9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9786 printf "%s\n" "yes" >&6; }
9787
9788 printf "%s\n" "#define WITH_DMALLOC 1" >>confdefs.h
9789
9790 LIBS="$LIBS -ldmalloc"
9791 LDFLAGS="$LDFLAGS -g"
9792 else
9793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 printf "%s\n" "no" >&6; }
9795 fi
9796 else case e in #(
9797 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798 printf "%s\n" "no" >&6; } ;;
9799 esac
9800 fi
9801
9802
9803
9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
9805 printf %s "checking for __attribute__... " >&6; }
9806 if test ${ax_cv___attribute__+y}
9807 then :
9808 printf %s "(cached) " >&6
9809 else case e in #(
9810 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812 #include <stdlib.h>
9813 static void foo(void) __attribute__ ((unused));
9814 static void
9815 foo(void) {
9816 exit(1);
9817 }
9818
9819 int
9820 main (void)
9821 {
9822
9823 ;
9824 return 0;
9825 }
9826 _ACEOF
9827 if ac_fn_c_try_compile "$LINENO"
9828 then :
9829 ax_cv___attribute__=yes
9830 else case e in #(
9831 e) ax_cv___attribute__=no
9832 ;;
9833 esac
9834 fi
9835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9836 ;;
9837 esac
9838 fi
9839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
9840 printf "%s\n" "$ax_cv___attribute__" >&6; }
9841 if test "$ax_cv___attribute__" = "yes"; then
9842
9843 printf "%s\n" "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
9844
9845 fi
9846
9847
9848
9849
9850
9851
9852
9853 # Check whether --with-gcc-arch was given.
9854 if test ${with_gcc_arch+y}
9855 then :
9856 withval=$with_gcc_arch; ax_gcc_arch=$withval
9857 else case e in #(
9858 e) ax_gcc_arch=yes ;;
9859 esac
9860 fi
9861
9862
9863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
9864 printf %s "checking for gcc architecture flag... " >&6; }
9865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
9866 printf "%s\n" "" >&6; }
9867 if test ${ax_cv_gcc_archflag+y}
9868 then :
9869 printf %s "(cached) " >&6
9870 else case e in #(
9871 e)
9872 ax_cv_gcc_archflag="unknown"
9873
9874 if test "$GCC" = yes; then
9875
9876 if test "x$ax_gcc_arch" = xyes; then
9877 ax_gcc_arch=""
9878 if test "$cross_compiling" = no; then
9879 case $host_cpu in
9880 i[3456]86*|x86_64*|amd64*) # use cpuid codes
9881
9882 ac_ext=c
9883 ac_cpp='$CPP $CPPFLAGS'
9884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9887
9888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
9889 printf %s "checking for x86 cpuid 0 output... " >&6; }
9890 if test ${ax_cv_gcc_x86_cpuid_0+y}
9891 then :
9892 printf %s "(cached) " >&6
9893 else case e in #(
9894 e) if test "$cross_compiling" = yes
9895 then :
9896 ax_cv_gcc_x86_cpuid_0=unknown
9897 else case e in #(
9898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h. */
9900 #include <stdio.h>
9901 int
9902 main (void)
9903 {
9904
9905 int op = 0, level = 0, eax, ebx, ecx, edx;
9906 FILE *f;
9907 __asm__ __volatile__ ("xchg %%ebx, %1\n"
9908 "cpuid\n"
9909 "xchg %%ebx, %1\n"
9910 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
9911 : "a" (op), "2" (level));
9912
9913 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
9914 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
9915 fclose(f);
9916 return 0;
9917
9918 ;
9919 return 0;
9920 }
9921 _ACEOF
9922 if ac_fn_c_try_run "$LINENO"
9923 then :
9924 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
9925 else case e in #(
9926 e) ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid ;;
9927 esac
9928 fi
9929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9930 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9931 esac
9932 fi
9933 ;;
9934 esac
9935 fi
9936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
9937 printf "%s\n" "$ax_cv_gcc_x86_cpuid_0" >&6; }
9938 ac_ext=c
9939 ac_cpp='$CPP $CPPFLAGS'
9940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9943
9944
9945
9946
9947 ac_ext=c
9948 ac_cpp='$CPP $CPPFLAGS'
9949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9952
9953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
9954 printf %s "checking for x86 cpuid 1 output... " >&6; }
9955 if test ${ax_cv_gcc_x86_cpuid_1+y}
9956 then :
9957 printf %s "(cached) " >&6
9958 else case e in #(
9959 e) if test "$cross_compiling" = yes
9960 then :
9961 ax_cv_gcc_x86_cpuid_1=unknown
9962 else case e in #(
9963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9965 #include <stdio.h>
9966 int
9967 main (void)
9968 {
9969
9970 int op = 1, level = 0, eax, ebx, ecx, edx;
9971 FILE *f;
9972 __asm__ __volatile__ ("xchg %%ebx, %1\n"
9973 "cpuid\n"
9974 "xchg %%ebx, %1\n"
9975 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
9976 : "a" (op), "2" (level));
9977
9978 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
9979 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
9980 fclose(f);
9981 return 0;
9982
9983 ;
9984 return 0;
9985 }
9986 _ACEOF
9987 if ac_fn_c_try_run "$LINENO"
9988 then :
9989 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
9990 else case e in #(
9991 e) ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid ;;
9992 esac
9993 fi
9994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9995 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9996 esac
9997 fi
9998 ;;
9999 esac
10000 fi
10001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
10002 printf "%s\n" "$ax_cv_gcc_x86_cpuid_1" >&6; }
10003 ac_ext=c
10004 ac_cpp='$CPP $CPPFLAGS'
10005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10008
10009
10010
10011 case $ax_cv_gcc_x86_cpuid_0 in
10012 *:756e6547:6c65746e:49656e69) # Intel
10013 case $ax_cv_gcc_x86_cpuid_1 in
10014 *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
10015 *5[123]?:*:*:*) ax_gcc_arch=pentium ;;
10016 *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;;
10017 *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
10018 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
10019 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
10020 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;;
10021 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
10022 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
10023 *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;;
10024 *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;;
10025 *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
10026 *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
10027 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
10028 *3?6d?:*:*:*|*4?6[7f]?:*:*:*|*5?66?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
10029 *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;;
10030 *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;;
10031 *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
10032 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;;
10033 # fallback
10034 *5??:*:*:*) ax_gcc_arch=pentium ;;
10035 *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
10036 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
10037 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
10038 esac ;;
10039 *:68747541:444d4163:69746e65) # AMD
10040 case $ax_cv_gcc_x86_cpuid_1 in
10041 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
10042 *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
10043 *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
10044 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
10045 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
10046 *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
10047 *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
10048 *002?f[13457bcf]?:*:*:*|2?f[13457bcf]?:*:*:*|*004?f[138bcf]?:*:*:*|4?f[138bcf]?:*:*:*|*005?f[df]?:*:*:*|5?f[df]?:*:*:*|*006?f[8bcf]?:*:*:*|6?f[8bcf]?:*:*:*|*007?f[cf]?:*:*:*|7?f[cf]?:*:*:*|*00c?f1?:*:*:*|c?f1?:*:*:*|*020?f3?:*:*:*|20?f3?:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
10049 *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
10050 *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
10051 *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
10052 *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
10053 *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
10054 *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
10055 # fallback
10056 *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
10057 *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
10058 *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
10059 *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
10060 *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
10061 *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
10062 *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
10063 *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
10064 esac ;;
10065 *:746e6543:736c7561:48727561) # IDT / VIA (Centaur)
10066 case $ax_cv_gcc_x86_cpuid_1 in
10067 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
10068 *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;;
10069 *66?:*:*:*) ax_gcc_arch=winchip2 ;;
10070 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
10071 *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
10072 esac ;;
10073 esac
10074 if test x"$ax_gcc_arch" = x; then # fallback
10075 case $host_cpu in
10076 i586*) ax_gcc_arch=pentium ;;
10077 i686*) ax_gcc_arch=pentiumpro ;;
10078 esac
10079 fi
10080 ;;
10081
10082 sparc*)
10083 # Extract the first word of "prtdiag", so it can be a program name with args.
10084 set dummy prtdiag; ac_word=$2
10085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086 printf %s "checking for $ac_word... " >&6; }
10087 if test ${ac_cv_path_PRTDIAG+y}
10088 then :
10089 printf %s "(cached) " >&6
10090 else case e in #(
10091 e) case $PRTDIAG in
10092 [\\/]* | ?:[\\/]*)
10093 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
10094 ;;
10095 *)
10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
10098 for as_dir in $as_dummy
10099 do
10100 IFS=$as_save_IFS
10101 case $as_dir in #(((
10102 '') as_dir=./ ;;
10103 */) ;;
10104 *) as_dir=$as_dir/ ;;
10105 esac
10106 for ac_exec_ext in '' $ac_executable_extensions; do
10107 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10108 ac_cv_path_PRTDIAG="$as_dir$ac_word$ac_exec_ext"
10109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10110 break 2
10111 fi
10112 done
10113 done
10114 IFS=$as_save_IFS
10115
10116 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
10117 ;;
10118 esac ;;
10119 esac
10120 fi
10121 PRTDIAG=$ac_cv_path_PRTDIAG
10122 if test -n "$PRTDIAG"; then
10123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
10124 printf "%s\n" "$PRTDIAG" >&6; }
10125 else
10126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127 printf "%s\n" "no" >&6; }
10128 fi
10129
10130
10131 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
10132 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
10133 case $cputype in
10134 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
10135 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
10136 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
10137 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
10138 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
10139 *cypress*) ax_gcc_arch=cypress ;;
10140 esac ;;
10141
10142 alphaev5) ax_gcc_arch=ev5 ;;
10143 alphaev56) ax_gcc_arch=ev56 ;;
10144 alphapca56) ax_gcc_arch="pca56 ev56" ;;
10145 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
10146 alphaev6) ax_gcc_arch=ev6 ;;
10147 alphaev67) ax_gcc_arch=ev67 ;;
10148 alphaev68) ax_gcc_arch="ev68 ev67" ;;
10149 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
10150 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
10151 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
10152
10153 powerpc*)
10154 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | $SED 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
10155 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
10156 case $cputype in
10157 *750*) ax_gcc_arch="750 G3" ;;
10158 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
10159 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
10160 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
10161 *970*) ax_gcc_arch="970 G5 power4";;
10162 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
10163 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
10164 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
10165 *POWER7*) ax_gcc_arch="power7";;
10166 *POWER8*) ax_gcc_arch="power8";;
10167 *POWER9*) ax_gcc_arch="power9";;
10168 *POWER10*) ax_gcc_arch="power10";;
10169 *) ax_gcc_arch=$cputype ;;
10170 esac
10171 ax_gcc_arch="$ax_gcc_arch powerpc"
10172 ;;
10173 aarch64)
10174 cpuimpl=`grep 'CPU implementer' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1`
10175 cpuarch=`grep 'CPU architecture' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1`
10176 cpuvar=`grep 'CPU variant' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1`
10177 case $cpuimpl in
10178 0x42) case $cpuarch in
10179 8) case $cpuvar in
10180 0x0) ax_gcc_arch="thunderx2t99 vulcan armv8.1-a armv8-a+lse armv8-a native" ;;
10181 esac
10182 ;;
10183 esac
10184 ;;
10185 0x43) case $cpuarch in
10186 8) case $cpuvar in
10187 0x0) ax_gcc_arch="thunderx armv8-a native" ;;
10188 0x1) ax_gcc_arch="thunderx+lse armv8.1-a armv8-a+lse armv8-a native" ;;
10189 esac
10190 ;;
10191 esac
10192 ;;
10193 esac
10194 ;;
10195 esac
10196 fi # not cross-compiling
10197 fi # guess arch
10198
10199 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
10200 if test "xyes" = xyes; then # if we require portable code
10201 flag_prefixes="-mtune="
10202 if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi
10203 # -mcpu=$arch and m$arch generate nonportable code on every arch except
10204 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
10205 case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
10206 else
10207 flag_prefixes="-march= -mcpu= -m"
10208 fi
10209 for flag_prefix in $flag_prefixes; do
10210 for arch in $ax_gcc_arch; do
10211 flag="$flag_prefix$arch"
10212 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"`
10213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
10214 printf %s "checking whether C compiler accepts $flag... " >&6; }
10215 if eval test \${$as_CACHEVAR+y}
10216 then :
10217 printf %s "(cached) " >&6
10218 else case e in #(
10219 e)
10220 ax_check_save_flags=$CFLAGS
10221 CFLAGS="$CFLAGS $flag"
10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223 /* end confdefs.h. */
10224
10225 int
10226 main (void)
10227 {
10228
10229 ;
10230 return 0;
10231 }
10232 _ACEOF
10233 if ac_fn_c_try_compile "$LINENO"
10234 then :
10235 eval "$as_CACHEVAR=yes"
10236 else case e in #(
10237 e) eval "$as_CACHEVAR=no" ;;
10238 esac
10239 fi
10240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10241 CFLAGS=$ax_check_save_flags ;;
10242 esac
10243 fi
10244 eval ac_res=\$$as_CACHEVAR
10245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10246 printf "%s\n" "$ac_res" >&6; }
10247 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
10248 then :
10249 if test "x$ax_cv_c_compiler_vendor" = xclang; then
10250 if test "xyes" = xyes; then
10251 if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi
10252 fi
10253 fi; ax_cv_gcc_archflag=$flag; break
10254 else case e in #(
10255 e) : ;;
10256 esac
10257 fi
10258
10259 done
10260 test "x$ax_cv_gcc_archflag" = xunknown || break
10261 done
10262 fi
10263
10264 fi # $GCC=yes
10265 ;;
10266 esac
10267 fi
10268
10269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
10270 printf %s "checking for gcc architecture flag... " >&6; }
10271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
10272 printf "%s\n" "$ax_cv_gcc_archflag" >&6; }
10273 if test "x$ax_cv_gcc_archflag" = xunknown; then
10274 :
10275 else
10276 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
10277 fi
10278
10279
10280
10281
10282
10283
10284
10285
10286 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10287 if test -n "$ac_tool_prefix"; then
10288 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10289 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10291 printf %s "checking for $ac_word... " >&6; }
10292 if test ${ac_cv_path_PKG_CONFIG+y}
10293 then :
10294 printf %s "(cached) " >&6
10295 else case e in #(
10296 e) case $PKG_CONFIG in
10297 [\\/]* | ?:[\\/]*)
10298 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10299 ;;
10300 *)
10301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302 for as_dir in $PATH
10303 do
10304 IFS=$as_save_IFS
10305 case $as_dir in #(((
10306 '') as_dir=./ ;;
10307 */) ;;
10308 *) as_dir=$as_dir/ ;;
10309 esac
10310 for ac_exec_ext in '' $ac_executable_extensions; do
10311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10312 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
10313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10314 break 2
10315 fi
10316 done
10317 done
10318 IFS=$as_save_IFS
10319
10320 ;;
10321 esac ;;
10322 esac
10323 fi
10324 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10325 if test -n "$PKG_CONFIG"; then
10326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10327 printf "%s\n" "$PKG_CONFIG" >&6; }
10328 else
10329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10330 printf "%s\n" "no" >&6; }
10331 fi
10332
10333
10334 fi
10335 if test -z "$ac_cv_path_PKG_CONFIG"; then
10336 ac_pt_PKG_CONFIG=$PKG_CONFIG
10337 # Extract the first word of "pkg-config", so it can be a program name with args.
10338 set dummy pkg-config; ac_word=$2
10339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10340 printf %s "checking for $ac_word... " >&6; }
10341 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
10342 then :
10343 printf %s "(cached) " >&6
10344 else case e in #(
10345 e) case $ac_pt_PKG_CONFIG in
10346 [\\/]* | ?:[\\/]*)
10347 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10348 ;;
10349 *)
10350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351 for as_dir in $PATH
10352 do
10353 IFS=$as_save_IFS
10354 case $as_dir in #(((
10355 '') as_dir=./ ;;
10356 */) ;;
10357 *) as_dir=$as_dir/ ;;
10358 esac
10359 for ac_exec_ext in '' $ac_executable_extensions; do
10360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10361 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
10362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10363 break 2
10364 fi
10365 done
10366 done
10367 IFS=$as_save_IFS
10368
10369 ;;
10370 esac ;;
10371 esac
10372 fi
10373 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10374 if test -n "$ac_pt_PKG_CONFIG"; then
10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10376 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
10377 else
10378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379 printf "%s\n" "no" >&6; }
10380 fi
10381
10382 if test "x$ac_pt_PKG_CONFIG" = x; then
10383 PKG_CONFIG=""
10384 else
10385 case $cross_compiling:$ac_tool_warned in
10386 yes:)
10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10388 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10389 ac_tool_warned=yes ;;
10390 esac
10391 PKG_CONFIG=$ac_pt_PKG_CONFIG
10392 fi
10393 else
10394 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10395 fi
10396
10397 fi
10398 if test -n "$PKG_CONFIG"; then
10399 _pkg_min_version=0.20
10400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10401 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10402 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10404 printf "%s\n" "yes" >&6; }
10405 else
10406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10407 printf "%s\n" "no" >&6; }
10408 PKG_CONFIG=""
10409 fi
10410 fi
10411
10412
10413
10414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
10415 printf %s "checking for C compiler vendor... " >&6; }
10416 if test ${ax_cv_c_compiler_vendor+y}
10417 then :
10418 printf %s "(cached) " >&6
10419 else case e in #(
10420 e)
10421 vendors="
10422 intel: __ICC,__ECC,__INTEL_COMPILER
10423 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__
10424 pathscale: __PATHCC__,__PATHSCALE__
10425 clang: __clang__
10426 cray: _CRAYC
10427 fujitsu: __FUJITSU
10428 sdcc: SDCC,__SDCC
10429 sx: _SX
10430 nvhpc: __NVCOMPILER
10431 portland: __PGI
10432 gnu: __GNUC__
10433 sun: __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95
10434 hp: __HP_cc,__HP_aCC
10435 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
10436 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
10437 comeau: __COMO__
10438 kai: __KCC
10439 lcc: __LCC__
10440 sgi: __sgi,sgi
10441 microsoft: _MSC_VER
10442 metrowerks: __MWERKS__
10443 watcom: __WATCOMC__
10444 tcc: __TINYC__
10445 unknown: UNKNOWN
10446 "
10447 for ventest in $vendors; do
10448 case $ventest in
10449 *:)
10450 vendor=$ventest
10451 continue
10452 ;;
10453 *)
10454 vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")"
10455 ;;
10456 esac
10457
10458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h. */
10460
10461 int
10462 main (void)
10463 {
10464
10465 #if !($vencpp)
10466 thisisanerror;
10467 #endif
10468
10469 ;
10470 return 0;
10471 }
10472 _ACEOF
10473 if ac_fn_c_try_compile "$LINENO"
10474 then :
10475 break
10476 fi
10477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10478 done
10479
10480 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
10481 ;;
10482 esac
10483 fi
10484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
10485 printf "%s\n" "$ax_cv_c_compiler_vendor" >&6; }
10486
10487
10488 if test "x$GCC" = "xyes"; then
10489 CFLAGS="$CFLAGS -fexceptions"
10490 touch local.exp
10491 else
10492 cat > local.exp <<EOF
10493 set CC_FOR_TARGET "$CC"
10494 EOF
10495 fi
10496
10497 # Check for linker script support
10498
10499 # Check whether --enable-ld-version-script was given.
10500 if test ${enable_ld_version_script+y}
10501 then :
10502 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
10503 else case e in #(
10504 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
10505 printf %s "checking if LD -Wl,--version-script works... " >&6; }
10506 if test ${gl_cv_sys_ld_version_script+y}
10507 then :
10508 printf %s "(cached) " >&6
10509 else case e in #(
10510 e) gl_cv_sys_ld_version_script=no
10511 save_LDFLAGS=$LDFLAGS
10512 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
10513 echo foo >conftest.map
10514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515 /* end confdefs.h. */
10516
10517 int
10518 main (void)
10519 {
10520
10521 ;
10522 return 0;
10523 }
10524 _ACEOF
10525 if ac_fn_c_try_link "$LINENO"
10526 then :
10527
10528 else case e in #(
10529 e) cat > conftest.map <<EOF
10530 VERS_1 {
10531 global: sym;
10532 };
10533
10534 VERS_2 {
10535 global: sym;
10536 } VERS_1;
10537 EOF
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10540
10541 int
10542 main (void)
10543 {
10544
10545 ;
10546 return 0;
10547 }
10548 _ACEOF
10549 if ac_fn_c_try_link "$LINENO"
10550 then :
10551 gl_cv_sys_ld_version_script=yes
10552 fi
10553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10554 conftest$ac_exeext conftest.$ac_ext ;;
10555 esac
10556 fi
10557 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10558 conftest$ac_exeext conftest.$ac_ext
10559 rm -f conftest.map
10560 LDFLAGS=$save_LDFLAGS ;;
10561 esac
10562 fi
10563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_ld_version_script" >&5
10564 printf "%s\n" "$gl_cv_sys_ld_version_script" >&6; }
10565 have_ld_version_script=$gl_cv_sys_ld_version_script ;;
10566 esac
10567 fi
10568
10569 if test "$have_ld_version_script" = yes; then
10570 HAVE_LD_VERSION_SCRIPT_TRUE=
10571 HAVE_LD_VERSION_SCRIPT_FALSE='#'
10572 else
10573 HAVE_LD_VERSION_SCRIPT_TRUE='#'
10574 HAVE_LD_VERSION_SCRIPT_FALSE=
10575 fi
10576
10577
10578
10579 #
10580 # Enable run-time checking.
10581 #
10582 # Check whether --enable-bounds-checking was given.
10583 if test ${enable_bounds_checking+y}
10584 then :
10585 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
10586 else case e in #(
10587 e) enable_bounds_checking='no' ;;
10588 esac
10589 fi
10590
10591
10592 if test "$enable_bounds_checking" = yes; then
10593
10594 printf "%s\n" "#define _FORTIFY_SOURCE 2" >>confdefs.h
10595
10596 fi
10597
10598 #
10599 # Tests for Windows
10600 #
10601
10602
10603
10604 native_win32_build='no'
10605 cygwin_build='no'
10606 case "${host_os}" in
10607 cygwin* )
10608 cygwin_build='yes'
10609 ;;
10610 mingw* )
10611 native_win32_build='yes'
10612 ;;
10613 esac
10614 if test "${native_win32_build}" = 'yes'; then
10615 WIN32_NATIVE_BUILD_TRUE=
10616 WIN32_NATIVE_BUILD_FALSE='#'
10617 else
10618 WIN32_NATIVE_BUILD_TRUE='#'
10619 WIN32_NATIVE_BUILD_FALSE=
10620 fi
10621
10622 if test "${cygwin_build}" = 'yes'; then
10623 CYGWIN_BUILD_TRUE=
10624 CYGWIN_BUILD_FALSE='#'
10625 else
10626 CYGWIN_BUILD_TRUE='#'
10627 CYGWIN_BUILD_FALSE=
10628 fi
10629
10630
10631 WinPathScript="${srcdirfull}/winpath.sh"
10632
10633
10634 #
10635 # Compiler flags tweaks
10636 #
10637 if test "${GCC}" != "yes"; then
10638 case "${host}" in
10639 *-*-hpux* )
10640 # aCC: HP ANSI C++ B3910B A.03.34
10641 CFLAGS="${CFLAGS} -Wp,-H30000"
10642 if test -n "${CXXFLAGS}"; then
10643 CXXFLAGS='-AA'
10644 else
10645 CXXFLAGS="${CXXFLAGS} -AA"
10646 fi
10647 ;;
10648 *-dec-osf5.* )
10649 # Compaq alphaev68-dec-osf5.1 compiler
10650 if test -n "${CXXFLAGS}"; then
10651 CXXFLAGS='-std strict_ansi -noimplicit_include'
10652 else
10653 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
10654 fi
10655 esac
10656 fi
10657
10658 # Check for lazy-loading.
10659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
10660 printf %s "checking for linker lazyload option... " >&6; }
10661 if test ${im_cv_ld_lazyload+y}
10662 then :
10663 printf %s "(cached) " >&6
10664 else case e in #(
10665 e)
10666 im_cv_ld_lazyload='none'
10667 case "${host}" in
10668 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
10669 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
10670 im_cv_ld_lazyload='-Wl,-zlazyload'
10671 fi
10672 ;;
10673 esac
10674 ;;
10675 esac
10676 fi
10677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
10678 printf "%s\n" "$im_cv_ld_lazyload" >&6; }
10679 if test "${im_cv_ld_lazyload}" != 'none' ; then
10680 if test -z "${LDFLAGS}" ; then
10681 LDFLAGS="${im_cv_ld_lazyload}"
10682 else
10683 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
10684 fi
10685 fi
10686
10687 case "$host" in
10688 *darwin* | *-macos10*)
10689 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
10690 # Check whether --enable-osx-universal-binary was given.
10691 if test ${enable_osx_universal_binary+y}
10692 then :
10693 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
10694 else case e in #(
10695 e) build_osxuniversal=no ;;
10696 esac
10697 fi
10698
10699
10700 if test "${build_osxuniversal}" != no ; then
10701 if test "$enable_dependency_tracking" != no ; then
10702 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
10703 Re-run configure with these options:
10704 --disable-dependency-tracking --enable-osx-universal-binary
10705 " "$LINENO" 5
10706 fi
10707 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
10708 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
10709 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
10710 fi
10711 ;;
10712 esac
10713
10714 #
10715 # ARCH specific include directory
10716 #
10717
10718 # Check whether --with-includearch-dir was given.
10719 if test ${with_includearch_dir+y}
10720 then :
10721 withval=$with_includearch_dir; includearch_dir=$withval
10722 else case e in #(
10723 e) includearch_dir=$INCLUDE_DIR ;;
10724 esac
10725 fi
10726
10727
10728 eval "eval INCLUDEARCH_DIR=$includearch_dir"
10729
10730
10731 #
10732 # ARCH specific configuration directory
10733 #
10734
10735 # Check whether --with-sharearch-dir was given.
10736 if test ${with_sharearch_dir+y}
10737 then :
10738 withval=$with_sharearch_dir; sharearch_dir=$withval
10739 else case e in #(
10740 e) sharearch_dir="${LIB_DIR}" ;;
10741 esac
10742 fi
10743
10744
10745 eval "eval SHAREARCH_DIR=$sharearch_dir"
10746
10747
10748 # Path to the pkgconfig folder
10749
10750 # Check whether --with-pkgconfigdir was given.
10751 if test ${with_pkgconfigdir+y}
10752 then :
10753 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
10754 else case e in #(
10755 e) pkgconfigdir='${libdir}/pkgconfig' ;;
10756 esac
10757 fi
10758
10759
10760
10761 #
10762 # Enable support for POSIX thread APIs
10763 #
10764
10765 # Check whether --with-threads was given.
10766 if test ${with_threads+y}
10767 then :
10768 withval=$with_threads; with_threads=$withval
10769 else case e in #(
10770 e) with_threads='yes' ;;
10771 esac
10772 fi
10773
10774
10775 THREAD_LIBS=''
10776 have_threads=no
10777 if test "$with_threads" != 'no'; then
10778
10779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
10780 printf %s "checking for egrep -e... " >&6; }
10781 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
10782 then :
10783 printf %s "(cached) " >&6
10784 else case e in #(
10785 e) if test -z "$EGREP_TRADITIONAL"; then
10786 ac_path_EGREP_TRADITIONAL_found=false
10787 # Loop through the user's path and test for each of PROGNAME-LIST
10788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10790 do
10791 IFS=$as_save_IFS
10792 case $as_dir in #(((
10793 '') as_dir=./ ;;
10794 */) ;;
10795 *) as_dir=$as_dir/ ;;
10796 esac
10797 for ac_prog in grep ggrep
10798 do
10799 for ac_exec_ext in '' $ac_executable_extensions; do
10800 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
10801 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
10802 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
10803 # Check for GNU $ac_path_EGREP_TRADITIONAL
10804 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
10805 *GNU*)
10806 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
10807 #(
10808 *)
10809 ac_count=0
10810 printf %s 0123456789 >"conftest.in"
10811 while :
10812 do
10813 cat "conftest.in" "conftest.in" >"conftest.tmp"
10814 mv "conftest.tmp" "conftest.in"
10815 cp "conftest.in" "conftest.nl"
10816 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
10817 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10819 as_fn_arith $ac_count + 1 && ac_count=$as_val
10820 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
10821 # Best one so far, save it but keep looking for a better one
10822 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
10823 ac_path_EGREP_TRADITIONAL_max=$ac_count
10824 fi
10825 # 10*(2^10) chars as input seems more than enough
10826 test $ac_count -gt 10 && break
10827 done
10828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10829 esac
10830
10831 $ac_path_EGREP_TRADITIONAL_found && break 3
10832 done
10833 done
10834 done
10835 IFS=$as_save_IFS
10836 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
10837 :
10838 fi
10839 else
10840 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
10841 fi
10842
10843 if test "$ac_cv_path_EGREP_TRADITIONAL"
10844 then :
10845 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
10846 else case e in #(
10847 e) if test -z "$EGREP_TRADITIONAL"; then
10848 ac_path_EGREP_TRADITIONAL_found=false
10849 # Loop through the user's path and test for each of PROGNAME-LIST
10850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10851 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10852 do
10853 IFS=$as_save_IFS
10854 case $as_dir in #(((
10855 '') as_dir=./ ;;
10856 */) ;;
10857 *) as_dir=$as_dir/ ;;
10858 esac
10859 for ac_prog in egrep
10860 do
10861 for ac_exec_ext in '' $ac_executable_extensions; do
10862 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
10863 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
10864 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
10865 # Check for GNU $ac_path_EGREP_TRADITIONAL
10866 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
10867 *GNU*)
10868 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
10869 #(
10870 *)
10871 ac_count=0
10872 printf %s 0123456789 >"conftest.in"
10873 while :
10874 do
10875 cat "conftest.in" "conftest.in" >"conftest.tmp"
10876 mv "conftest.tmp" "conftest.in"
10877 cp "conftest.in" "conftest.nl"
10878 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
10879 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10880 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10881 as_fn_arith $ac_count + 1 && ac_count=$as_val
10882 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
10883 # Best one so far, save it but keep looking for a better one
10884 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
10885 ac_path_EGREP_TRADITIONAL_max=$ac_count
10886 fi
10887 # 10*(2^10) chars as input seems more than enough
10888 test $ac_count -gt 10 && break
10889 done
10890 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10891 esac
10892
10893 $ac_path_EGREP_TRADITIONAL_found && break 3
10894 done
10895 done
10896 done
10897 IFS=$as_save_IFS
10898 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
10899 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10900 fi
10901 else
10902 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
10903 fi
10904 ;;
10905 esac
10906 fi ;;
10907 esac
10908 fi
10909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
10910 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
10911 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
10912
10913
10914
10915
10916
10917 ac_ext=c
10918 ac_cpp='$CPP $CPPFLAGS'
10919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10922
10923 ax_pthread_ok=no
10924
10925 # We used to check for pthread.h first, but this fails if pthread.h
10926 # requires special compiler flags (e.g. on Tru64 or Sequent).
10927 # It gets checked for in the link test anyway.
10928
10929 # First of all, check if the user has set any of the PTHREAD_LIBS,
10930 # etcetera environment variables, and if threads linking works using
10931 # them:
10932 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
10933 ax_pthread_save_CC="$CC"
10934 ax_pthread_save_CFLAGS="$CFLAGS"
10935 ax_pthread_save_LIBS="$LIBS"
10936 if test "x$PTHREAD_CC" != "x"
10937 then :
10938 CC="$PTHREAD_CC"
10939 fi
10940 if test "x$PTHREAD_CXX" != "x"
10941 then :
10942 CXX="$PTHREAD_CXX"
10943 fi
10944 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10945 LIBS="$PTHREAD_LIBS $LIBS"
10946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
10947 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10950
10951 /* Override any GCC internal prototype to avoid an error.
10952 Use char because int might match the return type of a GCC
10953 builtin and then its argument prototype would still apply.
10954 The 'extern "C"' is for builds by C++ compilers;
10955 although this is not generally supported in C code supporting it here
10956 has little cost and some practical benefit (sr 110532). */
10957 #ifdef __cplusplus
10958 extern "C"
10959 #endif
10960 char pthread_join (void);
10961 int
10962 main (void)
10963 {
10964 return pthread_join ();
10965 ;
10966 return 0;
10967 }
10968 _ACEOF
10969 if ac_fn_c_try_link "$LINENO"
10970 then :
10971 ax_pthread_ok=yes
10972 fi
10973 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10974 conftest$ac_exeext conftest.$ac_ext
10975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10976 printf "%s\n" "$ax_pthread_ok" >&6; }
10977 if test "x$ax_pthread_ok" = "xno"; then
10978 PTHREAD_LIBS=""
10979 PTHREAD_CFLAGS=""
10980 fi
10981 CC="$ax_pthread_save_CC"
10982 CFLAGS="$ax_pthread_save_CFLAGS"
10983 LIBS="$ax_pthread_save_LIBS"
10984 fi
10985
10986 # We must check for the threads library under a number of different
10987 # names; the ordering is very important because some systems
10988 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10989 # libraries is broken (non-POSIX).
10990
10991 # Create a list of thread flags to try. Items with a "," contain both
10992 # C compiler flags (before ",") and linker flags (after ","). Other items
10993 # starting with a "-" are C compiler flags, and remaining items are
10994 # library names, except for "none" which indicates that we try without
10995 # any flags at all, and "pthread-config" which is a program returning
10996 # the flags for the Pth emulation library.
10997
10998 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
10999
11000 # The ordering *is* (sometimes) important. Some notes on the
11001 # individual items follow:
11002
11003 # pthreads: AIX (must check this before -lpthread)
11004 # none: in case threads are in libc; should be tried before -Kthread and
11005 # other compiler flags to prevent continual compiler warnings
11006 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
11007 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
11008 # (Note: HP C rejects this with "bad form for `-t' option")
11009 # -pthreads: Solaris/gcc (Note: HP C also rejects)
11010 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
11011 # doesn't hurt to check since this sometimes defines pthreads and
11012 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
11013 # is present but should not be used directly; and before -mthreads,
11014 # because the compiler interprets this as "-mt" + "-hreads")
11015 # -mthreads: Mingw32/gcc, Lynx/gcc
11016 # pthread: Linux, etcetera
11017 # --thread-safe: KAI C++
11018 # pthread-config: use pthread-config program (for GNU Pth library)
11019
11020 case $host_os in
11021
11022 freebsd*)
11023
11024 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
11025 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
11026
11027 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
11028 ;;
11029
11030 hpux*)
11031
11032 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
11033 # multi-threading and also sets -lpthread."
11034
11035 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
11036 ;;
11037
11038 openedition*)
11039
11040 # IBM z/OS requires a feature-test macro to be defined in order to
11041 # enable POSIX threads at all, so give the user a hint if this is
11042 # not set. (We don't define these ourselves, as they can affect
11043 # other portions of the system API in unpredictable ways.)
11044
11045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046 /* end confdefs.h. */
11047
11048 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
11049 AX_PTHREAD_ZOS_MISSING
11050 # endif
11051
11052 _ACEOF
11053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11054 $EGREP_TRADITIONAL "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
11055 then :
11056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
11057 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
11058 fi
11059 rm -rf conftest*
11060
11061 ;;
11062
11063 solaris*)
11064
11065 # On Solaris (at least, for some versions), libc contains stubbed
11066 # (non-functional) versions of the pthreads routines, so link-based
11067 # tests will erroneously succeed. (N.B.: The stubs are missing
11068 # pthread_cleanup_push, or rather a function called by this macro,
11069 # so we could check for that, but who knows whether they'll stub
11070 # that too in a future libc.) So we'll check first for the
11071 # standard Solaris way of linking pthreads (-mt -lpthread).
11072
11073 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
11074 ;;
11075 esac
11076
11077 # Are we compiling with Clang?
11078
11079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
11080 printf %s "checking whether $CC is Clang... " >&6; }
11081 if test ${ax_cv_PTHREAD_CLANG+y}
11082 then :
11083 printf %s "(cached) " >&6
11084 else case e in #(
11085 e) ax_cv_PTHREAD_CLANG=no
11086 # Note that Autoconf sets GCC=yes for Clang as well as GCC
11087 if test "x$GCC" = "xyes"; then
11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11089 /* end confdefs.h. */
11090 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
11091 # if defined(__clang__) && defined(__llvm__)
11092 AX_PTHREAD_CC_IS_CLANG
11093 # endif
11094
11095 _ACEOF
11096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11097 $EGREP_TRADITIONAL "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
11098 then :
11099 ax_cv_PTHREAD_CLANG=yes
11100 fi
11101 rm -rf conftest*
11102
11103 fi
11104 ;;
11105 esac
11106 fi
11107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
11108 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
11109 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
11110
11111
11112 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
11113
11114 # Note that for GCC and Clang -pthread generally implies -lpthread,
11115 # except when -nostdlib is passed.
11116 # This is problematic using libtool to build C++ shared libraries with pthread:
11117 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
11118 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
11119 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
11120 # To solve this, first try -pthread together with -lpthread for GCC
11121
11122 if test "x$GCC" = "xyes"
11123 then :
11124 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
11125 fi
11126
11127 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
11128
11129 if test "x$ax_pthread_clang" = "xyes"
11130 then :
11131 ax_pthread_flags="-pthread,-lpthread -pthread"
11132 fi
11133
11134
11135 # The presence of a feature test macro requesting re-entrant function
11136 # definitions is, on some systems, a strong hint that pthreads support is
11137 # correctly enabled
11138
11139 case $host_os in
11140 darwin* | hpux* | linux* | osf* | solaris*)
11141 ax_pthread_check_macro="_REENTRANT"
11142 ;;
11143
11144 aix*)
11145 ax_pthread_check_macro="_THREAD_SAFE"
11146 ;;
11147
11148 *)
11149 ax_pthread_check_macro="--"
11150 ;;
11151 esac
11152 if test "x$ax_pthread_check_macro" = "x--"
11153 then :
11154 ax_pthread_check_cond=0
11155 else case e in #(
11156 e) ax_pthread_check_cond="!defined($ax_pthread_check_macro)" ;;
11157 esac
11158 fi
11159
11160
11161 if test "x$ax_pthread_ok" = "xno"; then
11162 for ax_pthread_try_flag in $ax_pthread_flags; do
11163
11164 case $ax_pthread_try_flag in
11165 none)
11166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
11167 printf %s "checking whether pthreads work without any flags... " >&6; }
11168 ;;
11169
11170 *,*)
11171 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
11172 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
11173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
11174 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
11175 ;;
11176
11177 -*)
11178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
11179 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
11180 PTHREAD_CFLAGS="$ax_pthread_try_flag"
11181 ;;
11182
11183 pthread-config)
11184 # Extract the first word of "pthread-config", so it can be a program name with args.
11185 set dummy pthread-config; ac_word=$2
11186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11187 printf %s "checking for $ac_word... " >&6; }
11188 if test ${ac_cv_prog_ax_pthread_config+y}
11189 then :
11190 printf %s "(cached) " >&6
11191 else case e in #(
11192 e) if test -n "$ax_pthread_config"; then
11193 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
11194 else
11195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196 for as_dir in $PATH
11197 do
11198 IFS=$as_save_IFS
11199 case $as_dir in #(((
11200 '') as_dir=./ ;;
11201 */) ;;
11202 *) as_dir=$as_dir/ ;;
11203 esac
11204 for ac_exec_ext in '' $ac_executable_extensions; do
11205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11206 ac_cv_prog_ax_pthread_config="yes"
11207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11208 break 2
11209 fi
11210 done
11211 done
11212 IFS=$as_save_IFS
11213
11214 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
11215 fi ;;
11216 esac
11217 fi
11218 ax_pthread_config=$ac_cv_prog_ax_pthread_config
11219 if test -n "$ax_pthread_config"; then
11220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
11221 printf "%s\n" "$ax_pthread_config" >&6; }
11222 else
11223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224 printf "%s\n" "no" >&6; }
11225 fi
11226
11227
11228 if test "x$ax_pthread_config" = "xno"
11229 then :
11230 continue
11231 fi
11232 PTHREAD_CFLAGS="`pthread-config --cflags`"
11233 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
11234 ;;
11235
11236 *)
11237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
11238 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
11239 PTHREAD_LIBS="-l$ax_pthread_try_flag"
11240 ;;
11241 esac
11242
11243 ax_pthread_save_CFLAGS="$CFLAGS"
11244 ax_pthread_save_LIBS="$LIBS"
11245 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11246 LIBS="$PTHREAD_LIBS $LIBS"
11247
11248 # Check for various functions. We must include pthread.h,
11249 # since some functions may be macros. (On the Sequent, we
11250 # need a special flag -Kthread to make this header compile.)
11251 # We check for pthread_join because it is in -lpthread on IRIX
11252 # while pthread_create is in libc. We check for pthread_attr_init
11253 # due to DEC craziness with -lpthreads. We check for
11254 # pthread_cleanup_push because it is one of the few pthread
11255 # functions on Solaris that doesn't have a non-functional libc stub.
11256 # We try pthread_create on general principles.
11257
11258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h. */
11260 #include <pthread.h>
11261 # if $ax_pthread_check_cond
11262 # error "$ax_pthread_check_macro must be defined"
11263 # endif
11264 static void *some_global = NULL;
11265 static void routine(void *a)
11266 {
11267 /* To avoid any unused-parameter or
11268 unused-but-set-parameter warning. */
11269 some_global = a;
11270 }
11271 static void *start_routine(void *a) { return a; }
11272 int
11273 main (void)
11274 {
11275 pthread_t th; pthread_attr_t attr;
11276 pthread_create(&th, 0, start_routine, 0);
11277 pthread_join(th, 0);
11278 pthread_attr_init(&attr);
11279 pthread_cleanup_push(routine, 0);
11280 pthread_cleanup_pop(0) /* ; */
11281 ;
11282 return 0;
11283 }
11284 _ACEOF
11285 if ac_fn_c_try_link "$LINENO"
11286 then :
11287 ax_pthread_ok=yes
11288 fi
11289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11290 conftest$ac_exeext conftest.$ac_ext
11291
11292 CFLAGS="$ax_pthread_save_CFLAGS"
11293 LIBS="$ax_pthread_save_LIBS"
11294
11295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11296 printf "%s\n" "$ax_pthread_ok" >&6; }
11297 if test "x$ax_pthread_ok" = "xyes"
11298 then :
11299 break
11300 fi
11301
11302 PTHREAD_LIBS=""
11303 PTHREAD_CFLAGS=""
11304 done
11305 fi
11306
11307
11308 # Clang needs special handling, because older versions handle the -pthread
11309 # option in a rather... idiosyncratic way
11310
11311 if test "x$ax_pthread_clang" = "xyes"; then
11312
11313 # Clang takes -pthread; it has never supported any other flag
11314
11315 # (Note 1: This will need to be revisited if a system that Clang
11316 # supports has POSIX threads in a separate library. This tends not
11317 # to be the way of modern systems, but it's conceivable.)
11318
11319 # (Note 2: On some systems, notably Darwin, -pthread is not needed
11320 # to get POSIX threads support; the API is always present and
11321 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
11322 # -pthread does define _REENTRANT, and while the Darwin headers
11323 # ignore this macro, third-party headers might not.)
11324
11325 # However, older versions of Clang make a point of warning the user
11326 # that, in an invocation where only linking and no compilation is
11327 # taking place, the -pthread option has no effect ("argument unused
11328 # during compilation"). They expect -pthread to be passed in only
11329 # when source code is being compiled.
11330 #
11331 # Problem is, this is at odds with the way Automake and most other
11332 # C build frameworks function, which is that the same flags used in
11333 # compilation (CFLAGS) are also used in linking. Many systems
11334 # supported by AX_PTHREAD require exactly this for POSIX threads
11335 # support, and in fact it is often not straightforward to specify a
11336 # flag that is used only in the compilation phase and not in
11337 # linking. Such a scenario is extremely rare in practice.
11338 #
11339 # Even though use of the -pthread flag in linking would only print
11340 # a warning, this can be a nuisance for well-run software projects
11341 # that build with -Werror. So if the active version of Clang has
11342 # this misfeature, we search for an option to squash it.
11343
11344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
11345 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
11346 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
11347 then :
11348 printf %s "(cached) " >&6
11349 else case e in #(
11350 e) ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
11351 # Create an alternate version of $ac_link that compiles and
11352 # links in two steps (.c -> .o, .o -> exe) instead of one
11353 # (.c -> exe), because the warning occurs only in the second
11354 # step
11355 ax_pthread_save_ac_link="$ac_link"
11356 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
11357 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
11358 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
11359 ax_pthread_save_CFLAGS="$CFLAGS"
11360 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
11361 if test "x$ax_pthread_try" = "xunknown"
11362 then :
11363 break
11364 fi
11365 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
11366 ac_link="$ax_pthread_save_ac_link"
11367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11368 /* end confdefs.h. */
11369 int main(void){return 0;}
11370 _ACEOF
11371 if ac_fn_c_try_link "$LINENO"
11372 then :
11373 ac_link="$ax_pthread_2step_ac_link"
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11376 int main(void){return 0;}
11377 _ACEOF
11378 if ac_fn_c_try_link "$LINENO"
11379 then :
11380 break
11381 fi
11382 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11383 conftest$ac_exeext conftest.$ac_ext
11384
11385 fi
11386 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11387 conftest$ac_exeext conftest.$ac_ext
11388 done
11389 ac_link="$ax_pthread_save_ac_link"
11390 CFLAGS="$ax_pthread_save_CFLAGS"
11391 if test "x$ax_pthread_try" = "x"
11392 then :
11393 ax_pthread_try=no
11394 fi
11395 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
11396 ;;
11397 esac
11398 fi
11399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
11400 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
11401
11402 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
11403 no | unknown) ;;
11404 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
11405 esac
11406
11407 fi # $ax_pthread_clang = yes
11408
11409
11410
11411 # Various other checks:
11412 if test "x$ax_pthread_ok" = "xyes"; then
11413 ax_pthread_save_CFLAGS="$CFLAGS"
11414 ax_pthread_save_LIBS="$LIBS"
11415 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11416 LIBS="$PTHREAD_LIBS $LIBS"
11417
11418 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
11419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
11420 printf %s "checking for joinable pthread attribute... " >&6; }
11421 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
11422 then :
11423 printf %s "(cached) " >&6
11424 else case e in #(
11425 e) ax_cv_PTHREAD_JOINABLE_ATTR=unknown
11426 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h. */
11429 #include <pthread.h>
11430 int
11431 main (void)
11432 {
11433 int attr = $ax_pthread_attr; return attr /* ; */
11434 ;
11435 return 0;
11436 }
11437 _ACEOF
11438 if ac_fn_c_try_link "$LINENO"
11439 then :
11440 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
11441 fi
11442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11443 conftest$ac_exeext conftest.$ac_ext
11444 done
11445 ;;
11446 esac
11447 fi
11448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
11449 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
11450 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
11451 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
11452 test "x$ax_pthread_joinable_attr_defined" != "xyes"
11453 then :
11454
11455 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
11456
11457 ax_pthread_joinable_attr_defined=yes
11458
11459 fi
11460
11461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
11462 printf %s "checking whether more special flags are required for pthreads... " >&6; }
11463 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
11464 then :
11465 printf %s "(cached) " >&6
11466 else case e in #(
11467 e) ax_cv_PTHREAD_SPECIAL_FLAGS=no
11468 case $host_os in
11469 solaris*)
11470 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
11471 ;;
11472 esac
11473 ;;
11474 esac
11475 fi
11476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
11477 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
11478 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
11479 test "x$ax_pthread_special_flags_added" != "xyes"
11480 then :
11481 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
11482 ax_pthread_special_flags_added=yes
11483 fi
11484
11485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11486 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11487 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
11488 then :
11489 printf %s "(cached) " >&6
11490 else case e in #(
11491 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h. */
11493 #include <pthread.h>
11494 int
11495 main (void)
11496 {
11497 int i = PTHREAD_PRIO_INHERIT;
11498 return i;
11499 ;
11500 return 0;
11501 }
11502 _ACEOF
11503 if ac_fn_c_try_link "$LINENO"
11504 then :
11505 ax_cv_PTHREAD_PRIO_INHERIT=yes
11506 else case e in #(
11507 e) ax_cv_PTHREAD_PRIO_INHERIT=no ;;
11508 esac
11509 fi
11510 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11511 conftest$ac_exeext conftest.$ac_ext
11512 ;;
11513 esac
11514 fi
11515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11516 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11517 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11518 test "x$ax_pthread_prio_inherit_defined" != "xyes"
11519 then :
11520
11521 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11522
11523 ax_pthread_prio_inherit_defined=yes
11524
11525 fi
11526
11527 CFLAGS="$ax_pthread_save_CFLAGS"
11528 LIBS="$ax_pthread_save_LIBS"
11529
11530 # More AIX lossage: compile with *_r variant
11531 if test "x$GCC" != "xyes"; then
11532 case $host_os in
11533 aix*)
11534 case "x/$CC" in #(
11535 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
11536 #handle absolute path differently from PATH based program lookup
11537 case "x$CC" in #(
11538 x/*) :
11539
11540 if as_fn_executable_p ${CC}_r
11541 then :
11542 PTHREAD_CC="${CC}_r"
11543 fi
11544 if test "x${CXX}" != "x"
11545 then :
11546 if as_fn_executable_p ${CXX}_r
11547 then :
11548 PTHREAD_CXX="${CXX}_r"
11549 fi
11550 fi
11551 ;; #(
11552 *) :
11553
11554 for ac_prog in ${CC}_r
11555 do
11556 # Extract the first word of "$ac_prog", so it can be a program name with args.
11557 set dummy $ac_prog; ac_word=$2
11558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11559 printf %s "checking for $ac_word... " >&6; }
11560 if test ${ac_cv_prog_PTHREAD_CC+y}
11561 then :
11562 printf %s "(cached) " >&6
11563 else case e in #(
11564 e) if test -n "$PTHREAD_CC"; then
11565 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
11566 else
11567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568 for as_dir in $PATH
11569 do
11570 IFS=$as_save_IFS
11571 case $as_dir in #(((
11572 '') as_dir=./ ;;
11573 */) ;;
11574 *) as_dir=$as_dir/ ;;
11575 esac
11576 for ac_exec_ext in '' $ac_executable_extensions; do
11577 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11578 ac_cv_prog_PTHREAD_CC="$ac_prog"
11579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11580 break 2
11581 fi
11582 done
11583 done
11584 IFS=$as_save_IFS
11585
11586 fi ;;
11587 esac
11588 fi
11589 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
11590 if test -n "$PTHREAD_CC"; then
11591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11592 printf "%s\n" "$PTHREAD_CC" >&6; }
11593 else
11594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 printf "%s\n" "no" >&6; }
11596 fi
11597
11598
11599 test -n "$PTHREAD_CC" && break
11600 done
11601 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11602
11603 if test "x${CXX}" != "x"
11604 then :
11605 for ac_prog in ${CXX}_r
11606 do
11607 # Extract the first word of "$ac_prog", so it can be a program name with args.
11608 set dummy $ac_prog; ac_word=$2
11609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11610 printf %s "checking for $ac_word... " >&6; }
11611 if test ${ac_cv_prog_PTHREAD_CXX+y}
11612 then :
11613 printf %s "(cached) " >&6
11614 else case e in #(
11615 e) if test -n "$PTHREAD_CXX"; then
11616 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
11617 else
11618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619 for as_dir in $PATH
11620 do
11621 IFS=$as_save_IFS
11622 case $as_dir in #(((
11623 '') as_dir=./ ;;
11624 */) ;;
11625 *) as_dir=$as_dir/ ;;
11626 esac
11627 for ac_exec_ext in '' $ac_executable_extensions; do
11628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11629 ac_cv_prog_PTHREAD_CXX="$ac_prog"
11630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11631 break 2
11632 fi
11633 done
11634 done
11635 IFS=$as_save_IFS
11636
11637 fi ;;
11638 esac
11639 fi
11640 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
11641 if test -n "$PTHREAD_CXX"; then
11642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
11643 printf "%s\n" "$PTHREAD_CXX" >&6; }
11644 else
11645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646 printf "%s\n" "no" >&6; }
11647 fi
11648
11649
11650 test -n "$PTHREAD_CXX" && break
11651 done
11652 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
11653
11654 fi
11655
11656 ;;
11657 esac
11658 ;; #(
11659 *) :
11660 ;;
11661 esac
11662 ;;
11663 esac
11664 fi
11665 fi
11666
11667 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11668 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
11669
11670
11671
11672
11673
11674
11675 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11676 if test "x$ax_pthread_ok" = "xyes"; then
11677
11678 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
11679
11680 :
11681 else
11682 ax_pthread_ok=no
11683
11684 fi
11685 ac_ext=c
11686 ac_cpp='$CPP $CPPFLAGS'
11687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11690
11691
11692 if test "$ax_pthread_ok" = yes; then
11693 have_threads=yes
11694 DEF_THREAD="$PTHREAD_CFLAGS"
11695 CFLAGS="$CFLAGS $DEF_THREAD"
11696 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
11697 THREAD_LIBS="$PTHREAD_LIBS"
11698 if test "$CC" != "$PTHREAD_CC"; then
11699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
11700 printf "%s\n" "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
11701 CC="$PTHREAD_CC"
11702 fi
11703
11704 printf "%s\n" "#define THREAD_SUPPORT 1" >>confdefs.h
11705
11706 fi
11707 fi
11708 LIBS="$LIBS $THREAD_LIBS"
11709
11710
11711 # Enable support for OpenMP
11712 if test "$have_threads" != 'yes'; then
11713 ac_cv_prog_c_openmp=unsupported
11714 fi
11715 if test -e penmp || test -e mp; then
11716 as_fn_error $? "AC_OPENMP clobbers files named 'mp' and 'penmp'. Aborting configure because one of these files already exists." "$LINENO" 5
11717 fi
11718 # Check whether --enable-openmp was given.
11719 if test ${enable_openmp+y}
11720 then :
11721 enableval=$enable_openmp;
11722 fi
11723
11724 OPENMP_CFLAGS=
11725 if test "$enable_openmp" != no; then
11726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
11727 printf %s "checking for $CC option to support OpenMP... " >&6; }
11728 if test ${ac_cv_prog_c_openmp+y}
11729 then :
11730 printf %s "(cached) " >&6
11731 else case e in #(
11732 e) ac_cv_prog_c_openmp='not found'
11733 for ac_option in '' -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
11734 -Popenmp --openmp; do
11735
11736 ac_save_CFLAGS=$CFLAGS
11737 CFLAGS="$CFLAGS $ac_option"
11738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11739 /* end confdefs.h. */
11740
11741 #ifndef _OPENMP
11742 #error "OpenMP not supported"
11743 #endif
11744 #include <omp.h>
11745 int main (void) { return omp_get_num_threads (); }
11746
11747 _ACEOF
11748 if ac_fn_c_try_compile "$LINENO"
11749 then :
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11752
11753 #ifndef _OPENMP
11754 #error "OpenMP not supported"
11755 #endif
11756 #include <omp.h>
11757 int main (void) { return omp_get_num_threads (); }
11758
11759 _ACEOF
11760 if ac_fn_c_try_link "$LINENO"
11761 then :
11762 ac_cv_prog_c_openmp=$ac_option
11763 else case e in #(
11764 e) ac_cv_prog_c_openmp='unsupported' ;;
11765 esac
11766 fi
11767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11768 conftest$ac_exeext conftest.$ac_ext
11769 fi
11770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11771 CFLAGS=$ac_save_CFLAGS
11772
11773 if test "$ac_cv_prog_c_openmp" != 'not found'; then
11774 break
11775 fi
11776 done
11777 if test "$ac_cv_prog_c_openmp" = 'not found'; then
11778 ac_cv_prog_c_openmp='unsupported'
11779 elif test "$ac_cv_prog_c_openmp" = ''; then
11780 ac_cv_prog_c_openmp='none needed'
11781 fi
11782 rm -f penmp mp ;;
11783 esac
11784 fi
11785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
11786 printf "%s\n" "$ac_cv_prog_c_openmp" >&6; }
11787 if test "$ac_cv_prog_c_openmp" != 'unsupported' && \
11788 test "$ac_cv_prog_c_openmp" != 'none needed'; then
11789 OPENMP_CFLAGS="$ac_cv_prog_c_openmp"
11790 fi
11791 fi
11792
11793
11794 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
11795 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
11796
11797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
11798 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
11799 if test ${ac_cv_c_undeclared_builtin_options+y}
11800 then :
11801 printf %s "(cached) " >&6
11802 else case e in #(
11803 e) ac_save_CFLAGS=$CFLAGS
11804 ac_cv_c_undeclared_builtin_options='cannot detect'
11805 for ac_arg in '' -fno-builtin; do
11806 CFLAGS="$ac_save_CFLAGS $ac_arg"
11807 # This test program should *not* compile successfully.
11808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809 /* end confdefs.h. */
11810
11811 int
11812 main (void)
11813 {
11814 (void) strchr;
11815 ;
11816 return 0;
11817 }
11818 _ACEOF
11819 if ac_fn_c_try_compile "$LINENO"
11820 then :
11821
11822 else case e in #(
11823 e) # This test program should compile successfully.
11824 # No library function is consistently available on
11825 # freestanding implementations, so test against a dummy
11826 # declaration. Include always-available headers on the
11827 # off chance that they somehow elicit warnings.
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830 #include <float.h>
11831 #include <limits.h>
11832 #include <stdarg.h>
11833 #include <stddef.h>
11834 extern void ac_decl (int, char *);
11835
11836 int
11837 main (void)
11838 {
11839 (void) ac_decl (0, (char *) 0);
11840 (void) ac_decl;
11841
11842 ;
11843 return 0;
11844 }
11845 _ACEOF
11846 if ac_fn_c_try_compile "$LINENO"
11847 then :
11848 if test x"$ac_arg" = x
11849 then :
11850 ac_cv_c_undeclared_builtin_options='none needed'
11851 else case e in #(
11852 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
11853 esac
11854 fi
11855 break
11856 fi
11857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11858 esac
11859 fi
11860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11861 done
11862 CFLAGS=$ac_save_CFLAGS
11863 ;;
11864 esac
11865 fi
11866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
11867 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
11868 case $ac_cv_c_undeclared_builtin_options in #(
11869 'cannot detect') :
11870 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11871 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11872 as_fn_error $? "cannot make $CC report undeclared builtins
11873 See 'config.log' for more details" "$LINENO" 5; } ;; #(
11874 'none needed') :
11875 ac_c_undeclared_builtin_options='' ;; #(
11876 *) :
11877 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
11878 esac
11879
11880 ac_fn_check_decl "$LINENO" "_OPENMP" "ac_cv_have_decl__OPENMP" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
11881 if test "x$ac_cv_have_decl__OPENMP" = xyes
11882 then :
11883 OPENMP_ENABLED='yes'
11884 else case e in #(
11885 e) OPENMP_ENABLED='no' ;;
11886 esac
11887 fi
11888 if test "${OPENMP_ENABLED}" = 'yes' && \
11889 test "$ac_cv_prog_c_openmp" != 'unsupported'; then
11890 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
11891 fi
11892
11893 # Enable support for OpenCL
11894 no_cl=yes
11895 # Check whether --enable-opencl was given.
11896 if test ${enable_opencl+y}
11897 then :
11898 enableval=$enable_opencl; enable_opencl=$enableval
11899 else case e in #(
11900 e) enable_opencl='no' ;;
11901 esac
11902 fi
11903
11904 if test x"$enable_opencl" != xno ; then
11905 CL_CPPFLAGS=""
11906 for ac_header in CL/cl.h OpenCL/cl.h
11907 do :
11908 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
11909 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11910 if eval test \"x\$"$as_ac_Header"\" = x"yes"
11911 then :
11912 cat >>confdefs.h <<_ACEOF
11913 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
11914 _ACEOF
11915 HAVE_CL_H="yes"; break
11916 else case e in #(
11917 e) HAVE_CL_H="no" ;;
11918 esac
11919 fi
11920
11921 done
11922 if test x"$HAVE_CL_H" = xno ; then
11923 # check for AMD's SDK
11924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AMD's SDK cl.h" >&5
11925 printf %s "checking for AMD's SDK cl.h... " >&6; }
11926 if test -d /opt/AMDAPP/include/CL ; then
11927 HAVE_CL_H="yes"
11928 printf "%s\n" "#define HAVE_CL_CL_H 1" >>confdefs.h
11929
11930 CL_CPPFLAGS="-I/opt/AMDAPP/include"
11931 fi
11932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_CL_H" >&5
11933 printf "%s\n" "$HAVE_CL_H" >&6; }
11934 fi
11935 if test x"$HAVE_CL_H" = xno ; then
11936 # check for NVIDIA's SDK
11937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NVIDIA's SDK cl.h" >&5
11938 printf %s "checking for NVIDIA's SDK cl.h... " >&6; }
11939 if test -d /usr/local/cuda/include/CL ; then
11940 HAVE_CL_H="yes"
11941 printf "%s\n" "#define HAVE_CL_CL_H 1" >>confdefs.h
11942
11943 CL_CPPFLAGS="-I/usr/local/cuda/include"
11944 elif test -d /usr/local/cuda-6.5/include/CL ; then
11945 HAVE_CL_H="yes"
11946 printf "%s\n" "#define HAVE_CL_CL_H 1" >>confdefs.h
11947
11948 CL_CPPFLAGS="-I/usr/local/cuda-6.5/include"
11949 elif test -d /usr/local/cuda-6.0/include/CL ; then
11950 HAVE_CL_H="yes"
11951 printf "%s\n" "#define HAVE_CL_CL_H 1" >>confdefs.h
11952
11953 CL_CPPFLAGS="-I/usr/local/cuda-6.0/include"
11954 elif test -d /usr/local/cuda-5.5/include/CL ; then
11955 HAVE_CL_H="yes"
11956 printf "%s\n" "#define HAVE_CL_CL_H 1" >>confdefs.h
11957
11958 CL_CPPFLAGS="-I/usr/local/cuda-5.5/include"
11959 fi
11960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_CL_H" >&5
11961 printf "%s\n" "$HAVE_CL_H" >&6; }
11962 fi
11963 if test x"$HAVE_CL_H" = xno ; then
11964 no_cl=yes
11965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no OpenCL headers found" >&5
11966 printf "%s\n" "$as_me: WARNING: no OpenCL headers found" >&2;}
11967 CL_ENABLED=false
11968 CL_VERSION=0
11969 else
11970 #
11971 # First we check for macOS, since OpenCL is standard there
11972 #
11973 CL_LIBS=""
11974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
11975 printf %s "checking for OpenCL library... " >&6; }
11976 case "$host_os" in
11977 darwin*) # On macOS we check for installed frameworks
11978
11979 case x"$host_os" in
11980 xdarwin*)
11981
11982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for framework OpenCL" >&5
11983 printf %s "checking for framework OpenCL... " >&6; }
11984 if test ${ax_cv_check_OpenCL+y}
11985 then :
11986 printf %s "(cached) " >&6
11987 else case e in #(
11988 e)
11989 ac_ext=c
11990 ac_cpp='$CPP $CPPFLAGS'
11991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11994
11995 ac_check_framework_save_LIBS=$LIBS
11996 LIBS="-framework OpenCL $LIBS"
11997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h. */
11999
12000 int
12001 main (void)
12002 {
12003
12004 ;
12005 return 0;
12006 }
12007 _ACEOF
12008 if ac_fn_c_try_link "$LINENO"
12009 then :
12010 ax_cv_check_OpenCL="yes"
12011 else case e in #(
12012 e) ax_cv_check_OpenCL="no" ;;
12013 esac
12014 fi
12015 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12016 conftest$ac_exeext conftest.$ac_ext
12017 ac_ext=c
12018 ac_cpp='$CPP $CPPFLAGS'
12019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12022 ;;
12023 esac
12024 fi
12025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_OpenCL" >&5
12026 printf "%s\n" "$ax_cv_check_OpenCL" >&6; }
12027 if test x"$ax_cv_check_OpenCL" = "xyes" ; then
12028
12029 CL_LIBS="-framework OpenCL"
12030 no_cl=no
12031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12032 printf "%s\n" "yes" >&6; }
12033 CL_ENABLED=true
12034 CL_VERSION=1
12035
12036
12037 else
12038
12039 no_cl=yes
12040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 printf "%s\n" "no" >&6; }
12042 CL_ENABLED=false
12043 CL_VERSION=0
12044
12045 fi
12046 LIBS=$ac_check_framework_save_LIBS
12047 ;;
12048 esac
12049
12050 ;;
12051 *)
12052 save_LIBS=$LIBS
12053 save_CFLAGS=$CFLAGS
12054 CFLAGS=$CL_CPPFLAGS
12055 LIBS="$save_LIBS -L/usr/lib64/nvidia -L/usr/lib/nvidia -lOpenCL"
12056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057 /* end confdefs.h. */
12058
12059 #ifdef HAVE_OPENCL_CL_H
12060 #include <OpenCL/cl.h>
12061 #elif defined(HAVE_CL_CL_H)
12062 #include <CL/cl.h>
12063 #endif
12064 #include <stddef.h>
12065
12066 int
12067 main (void)
12068 {
12069
12070 clGetPlatformIDs(0, NULL, NULL);
12071
12072 ;
12073 return 0;
12074 }
12075 _ACEOF
12076 if ac_fn_c_try_link "$LINENO"
12077 then :
12078
12079 no_cl=no
12080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12081 printf "%s\n" "yes" >&6; }
12082 CL_ENABLED=true
12083 CL_VERSION=1
12084 CL_LIBS="-L/usr/lib64/nvidia -L/usr/lib/nvidia -lOpenCL"
12085
12086 else case e in #(
12087 e)
12088 no_cl=yes
12089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090 printf "%s\n" "no" >&6; }
12091 CL_ENABLED=false
12092 CL_VERSION=0
12093 ;;
12094 esac
12095 fi
12096 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12097 conftest$ac_exeext conftest.$ac_ext
12098
12099 LIBS=$save_LIBS
12100 CFLAGS=$save_CFLAGS
12101 ;;
12102 esac
12103 fi
12104 else
12105 no_cl=yes
12106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
12107 printf %s "checking for OpenCL library... " >&6; }
12108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12109 printf "%s\n" "disabled" >&6; }
12110 CL_ENABLED=false
12111 CL_VERSION=0
12112 fi
12113
12114 if test "X$no_cl" != 'Xyes'; then
12115 CPPFLAGS="$CL_CPPFLAGS $CPPFLAGS"
12116 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
12117 fi
12118
12119 ########
12120 #
12121 # Check for large file support
12122 #
12123 ########
12124 # Check whether --enable-largefile was given.
12125 if test ${enable_largefile+y}
12126 then :
12127 enableval=$enable_largefile;
12128 fi
12129 if test "$enable_largefile,$enable_year2038" != no,no
12130 then :
12131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5
12132 printf %s "checking for $CPPFLAGS option for large files... " >&6; }
12133 if test ${ac_cv_sys_largefile_opts+y}
12134 then :
12135 printf %s "(cached) " >&6
12136 else case e in #(
12137 e) ac_save_CPPFLAGS=$CPPFLAGS
12138 ac_opt_found=no
12139 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
12140 if test x"$ac_opt" != x"none needed"
12141 then :
12142 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
12143 fi
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12146 #include <sys/types.h>
12147 #ifndef FTYPE
12148 # define FTYPE off_t
12149 #endif
12150 /* Check that FTYPE can represent 2**63 - 1 correctly.
12151 We can't simply define LARGE_FTYPE to be 9223372036854775807,
12152 since some C++ compilers masquerading as C compilers
12153 incorrectly reject 9223372036854775807. */
12154 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
12155 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
12156 && LARGE_FTYPE % 2147483647 == 1)
12157 ? 1 : -1];
12158 int
12159 main (void)
12160 {
12161
12162 ;
12163 return 0;
12164 }
12165 _ACEOF
12166 if ac_fn_c_try_compile "$LINENO"
12167 then :
12168 if test x"$ac_opt" = x"none needed"
12169 then :
12170 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
12171 CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
12172 if ac_fn_c_try_compile "$LINENO"
12173 then :
12174
12175 else case e in #(
12176 e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
12177 if ac_fn_c_try_compile "$LINENO"
12178 then :
12179 ac_opt='-D_FILE_OFFSET_BITS=64'
12180 fi
12181 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
12182 esac
12183 fi
12184 rm -f core conftest.err conftest.$ac_objext conftest.beam
12185 fi
12186 ac_cv_sys_largefile_opts=$ac_opt
12187 ac_opt_found=yes
12188 fi
12189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12190 test $ac_opt_found = no || break
12191 done
12192 CPPFLAGS=$ac_save_CPPFLAGS
12193
12194 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
12195 esac
12196 fi
12197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
12198 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
12199
12200 ac_have_largefile=yes
12201 case $ac_cv_sys_largefile_opts in #(
12202 "none needed") :
12203 ;; #(
12204 "supported through gnulib") :
12205 ;; #(
12206 "support not detected") :
12207 ac_have_largefile=no ;; #(
12208 "-D_FILE_OFFSET_BITS=64") :
12209
12210 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
12211 ;; #(
12212 "-D_LARGE_FILES=1") :
12213
12214 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
12215 ;; #(
12216 *) :
12217 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
12218 esac
12219
12220 if test "$enable_year2038" != no
12221 then :
12222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5
12223 printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; }
12224 if test ${ac_cv_sys_year2038_opts+y}
12225 then :
12226 printf %s "(cached) " >&6
12227 else case e in #(
12228 e) ac_save_CPPFLAGS="$CPPFLAGS"
12229 ac_opt_found=no
12230 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
12231 if test x"$ac_opt" != x"none needed"
12232 then :
12233 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
12234 fi
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h. */
12237
12238 #include <time.h>
12239 /* Check that time_t can represent 2**32 - 1 correctly. */
12240 #define LARGE_TIME_T \\
12241 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
12242 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
12243 && LARGE_TIME_T % 65537 == 0)
12244 ? 1 : -1];
12245
12246 int
12247 main (void)
12248 {
12249
12250 ;
12251 return 0;
12252 }
12253 _ACEOF
12254 if ac_fn_c_try_compile "$LINENO"
12255 then :
12256 ac_cv_sys_year2038_opts="$ac_opt"
12257 ac_opt_found=yes
12258 fi
12259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12260 test $ac_opt_found = no || break
12261 done
12262 CPPFLAGS="$ac_save_CPPFLAGS"
12263 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
12264 esac
12265 fi
12266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
12267 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
12268
12269 ac_have_year2038=yes
12270 case $ac_cv_sys_year2038_opts in #(
12271 "none needed") :
12272 ;; #(
12273 "support not detected") :
12274 ac_have_year2038=no ;; #(
12275 "-D_TIME_BITS=64") :
12276
12277 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
12278 ;; #(
12279 "-D__MINGW_USE_VC2005_COMPAT") :
12280
12281 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
12282 ;; #(
12283 "-U_USE_32_BIT_TIME_T"*) :
12284 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12285 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12286 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
12287 will stop working after mid-January 2038. Remove
12288 _USE_32BIT_TIME_T from the compiler flags.
12289 See 'config.log' for more details" "$LINENO" 5; } ;; #(
12290 *) :
12291 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
12292 esac
12293
12294 fi
12295
12296 fi
12297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
12298 printf %s "checking for declarations of fseeko and ftello... " >&6; }
12299 if test ${ac_cv_func_fseeko_ftello+y}
12300 then :
12301 printf %s "(cached) " >&6
12302 else case e in #(
12303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304 /* end confdefs.h. */
12305
12306 #if defined __hpux && !defined _LARGEFILE_SOURCE
12307 # include <limits.h>
12308 # if LONG_MAX >> 31 == 0
12309 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
12310 # endif
12311 #endif
12312 #include <sys/types.h> /* for off_t */
12313 #include <stdio.h>
12314
12315 int
12316 main (void)
12317 {
12318
12319 int (*fp1) (FILE *, off_t, int) = fseeko;
12320 off_t (*fp2) (FILE *) = ftello;
12321 return fseeko (stdin, 0, 0)
12322 && fp1 (stdin, 0, 0)
12323 && ftello (stdin) >= 0
12324 && fp2 (stdin) >= 0;
12325
12326 ;
12327 return 0;
12328 }
12329 _ACEOF
12330 if ac_fn_c_try_compile "$LINENO"
12331 then :
12332 ac_cv_func_fseeko_ftello=yes
12333 else case e in #(
12334 e) ac_save_CPPFLAGS="$CPPFLAGS"
12335 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h. */
12338
12339 #if defined __hpux && !defined _LARGEFILE_SOURCE
12340 # include <limits.h>
12341 # if LONG_MAX >> 31 == 0
12342 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
12343 # endif
12344 #endif
12345 #include <sys/types.h> /* for off_t */
12346 #include <stdio.h>
12347
12348 int
12349 main (void)
12350 {
12351
12352 int (*fp1) (FILE *, off_t, int) = fseeko;
12353 off_t (*fp2) (FILE *) = ftello;
12354 return fseeko (stdin, 0, 0)
12355 && fp1 (stdin, 0, 0)
12356 && ftello (stdin) >= 0
12357 && fp2 (stdin) >= 0;
12358
12359 ;
12360 return 0;
12361 }
12362 _ACEOF
12363 if ac_fn_c_try_compile "$LINENO"
12364 then :
12365 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
12366 else case e in #(
12367 e) ac_cv_func_fseeko_ftello=no ;;
12368 esac
12369 fi
12370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12371 esac
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12374 esac
12375 fi
12376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
12377 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
12378 if test "$ac_cv_func_fseeko_ftello" != no
12379 then :
12380
12381 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
12382
12383 fi
12384 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
12385 then :
12386
12387 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
12388
12389 fi
12390
12391 LFS_CPPFLAGS=''
12392 if test "$enable_largefile" != no; then
12393 case $ac_cv_sys_file_offset_bits in
12394 no)
12395 # nothing to do here as the host supports LFS fine
12396 ;;
12397 unknown)
12398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
12399 printf %s "checking for native large file support... " >&6; }
12400 if test "$cross_compiling" = yes
12401 then :
12402 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12403 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12404 as_fn_error $? "cannot run test program while cross compiling
12405 See 'config.log' for more details" "$LINENO" 5; }
12406 else case e in #(
12407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12409 #include <unistd.h>
12410 #include <stdlib.h>
12411 int main () {
12412 exit(!(sizeof(off_t) == 8));
12413 }
12414 int
12415 main (void)
12416 {
12417
12418 ;
12419 return 0;
12420 }
12421 _ACEOF
12422 if ac_fn_c_try_run "$LINENO"
12423 then :
12424 ac_cv_sys_file_offset_bits=64; printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
12425
12426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12427 printf "%s\n" "yes" >&6; }
12428 else case e in #(
12429 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12430 printf "%s\n" "no" >&6; } ;;
12431 esac
12432 fi
12433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12434 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12435 esac
12436 fi
12437
12438 ;;
12439 *)
12440 if test "$ac_cv_sys_file_offset_bits" = ''; then
12441 ac_cv_sys_file_offset_bits=64;
12442 fi
12443 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
12444 ;;
12445 esac
12446 if test "$ac_cv_sys_large_files" != 'no'; then
12447 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
12448 fi
12449 if test "$ac_cv_sys_largefile_source" != 'no'; then
12450 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
12451 fi
12452 fi
12453
12454
12455 #
12456 # Check for sendfile support
12457 #
12458 ########
12459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Linux compatible sendfile()" >&5
12460 printf %s "checking Linux compatible sendfile()... " >&6; }
12461 if test ${ac_cv_have_linux_sendfile+y}
12462 then :
12463 printf %s "(cached) " >&6
12464 else case e in #(
12465 e)
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12468
12469 #undef _FILE_OFFSET_BITS
12470 #include <sys/types.h>
12471 #include <sys/socket.h>
12472 #include <sys/sendfile.h>
12473
12474 int
12475 main (void)
12476 {
12477
12478 sendfile(0, 0, (void *) 0, 0);
12479
12480 ;
12481 return 0;
12482 }
12483 _ACEOF
12484 if ac_fn_c_try_compile "$LINENO"
12485 then :
12486
12487 ac_cv_have_linux_sendfile=yes
12488
12489 else case e in #(
12490 e)
12491 ac_cv_have_linux_sendfile=no
12492 ;;
12493 esac
12494 fi
12495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12496 esac
12497 fi
12498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_linux_sendfile" >&5
12499 printf "%s\n" "$ac_cv_have_linux_sendfile" >&6; }
12500 if test "$ac_cv_have_linux_sendfile" = 'yes'; then
12501
12502 printf "%s\n" "#define HAVE_LINUX_SENDFILE 1" >>confdefs.h
12503
12504 fi
12505
12506 #
12507 # Set SETJMP_IS_THREAD_SAFE define.
12508 #
12509 case "${host_os}" in
12510 solaris2* ) ;;
12511 *)
12512 printf "%s\n" "#define SETJMP_IS_THREAD_SAFE 1" >>confdefs.h
12513 ;;
12514 esac
12515
12516 # Configure libtool
12517 : ${AR_FLAGS=cr}
12518 case `pwd` in
12519 *\ * | *\ *)
12520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12521 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12522 esac
12523
12524
12525
12526 macro_version='2.5.4'
12527 macro_revision='2.5.4'
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542 ltmain=$ac_aux_dir/ltmain.sh
12543
12544 # Backslashify metacharacters that are still active within
12545 # double-quoted strings.
12546 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12547
12548 # Same as above, but do not quote variable references.
12549 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12550
12551 # Sed substitution to delay expansion of an escaped shell variable in a
12552 # double_quote_subst'ed string.
12553 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12554
12555 # Sed substitution to delay expansion of an escaped single quote.
12556 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12557
12558 # Sed substitution to avoid accidental globbing in evaled expressions
12559 no_glob_subst='s/\*/\\\*/g'
12560
12561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12562 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12563 if test ${lt_cv_path_NM+y}
12564 then :
12565 printf %s "(cached) " >&6
12566 else case e in #(
12567 e) if test -n "$NM"; then
12568 # Let the user override the test.
12569 lt_cv_path_NM=$NM
12570 else
12571 lt_nm_to_check=${ac_tool_prefix}nm
12572 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12573 lt_nm_to_check="$lt_nm_to_check nm"
12574 fi
12575 for lt_tmp_nm in $lt_nm_to_check; do
12576 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12577 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12578 IFS=$lt_save_ifs
12579 test -z "$ac_dir" && ac_dir=.
12580 tmp_nm=$ac_dir/$lt_tmp_nm
12581 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
12582 # Check to see if the nm accepts a BSD-compat flag.
12583 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
12584 # nm: unknown option "B" ignored
12585 # Tru64's nm complains that /dev/null is an invalid object file
12586 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
12587 case $build_os in
12588 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
12589 *) lt_bad_file=/dev/null ;;
12590 esac
12591 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
12592 *$lt_bad_file* | *'Invalid file or object type'*)
12593 lt_cv_path_NM="$tmp_nm -B"
12594 break 2
12595 ;;
12596 *)
12597 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
12598 */dev/null*)
12599 lt_cv_path_NM="$tmp_nm -p"
12600 break 2
12601 ;;
12602 *)
12603 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12604 continue # so that we can try to find one that supports BSD flags
12605 ;;
12606 esac
12607 ;;
12608 esac
12609 fi
12610 done
12611 IFS=$lt_save_ifs
12612 done
12613 : ${lt_cv_path_NM=no}
12614 fi ;;
12615 esac
12616 fi
12617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12618 printf "%s\n" "$lt_cv_path_NM" >&6; }
12619 if test no != "$lt_cv_path_NM"; then
12620 NM=$lt_cv_path_NM
12621 else
12622 # Didn't find any BSD compatible name lister, look for dumpbin.
12623 if test -n "$DUMPBIN"; then :
12624 # Let the user override the test.
12625 else
12626 if test -n "$ac_tool_prefix"; then
12627 for ac_prog in dumpbin "link -dump"
12628 do
12629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12632 printf %s "checking for $ac_word... " >&6; }
12633 if test ${ac_cv_prog_DUMPBIN+y}
12634 then :
12635 printf %s "(cached) " >&6
12636 else case e in #(
12637 e) if test -n "$DUMPBIN"; then
12638 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12639 else
12640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641 for as_dir in $PATH
12642 do
12643 IFS=$as_save_IFS
12644 case $as_dir in #(((
12645 '') as_dir=./ ;;
12646 */) ;;
12647 *) as_dir=$as_dir/ ;;
12648 esac
12649 for ac_exec_ext in '' $ac_executable_extensions; do
12650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12651 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12653 break 2
12654 fi
12655 done
12656 done
12657 IFS=$as_save_IFS
12658
12659 fi ;;
12660 esac
12661 fi
12662 DUMPBIN=$ac_cv_prog_DUMPBIN
12663 if test -n "$DUMPBIN"; then
12664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12665 printf "%s\n" "$DUMPBIN" >&6; }
12666 else
12667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 printf "%s\n" "no" >&6; }
12669 fi
12670
12671
12672 test -n "$DUMPBIN" && break
12673 done
12674 fi
12675 if test -z "$DUMPBIN"; then
12676 ac_ct_DUMPBIN=$DUMPBIN
12677 for ac_prog in dumpbin "link -dump"
12678 do
12679 # Extract the first word of "$ac_prog", so it can be a program name with args.
12680 set dummy $ac_prog; ac_word=$2
12681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12682 printf %s "checking for $ac_word... " >&6; }
12683 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
12684 then :
12685 printf %s "(cached) " >&6
12686 else case e in #(
12687 e) if test -n "$ac_ct_DUMPBIN"; then
12688 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12689 else
12690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12691 for as_dir in $PATH
12692 do
12693 IFS=$as_save_IFS
12694 case $as_dir in #(((
12695 '') as_dir=./ ;;
12696 */) ;;
12697 *) as_dir=$as_dir/ ;;
12698 esac
12699 for ac_exec_ext in '' $ac_executable_extensions; do
12700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12701 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12703 break 2
12704 fi
12705 done
12706 done
12707 IFS=$as_save_IFS
12708
12709 fi ;;
12710 esac
12711 fi
12712 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12713 if test -n "$ac_ct_DUMPBIN"; then
12714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12715 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
12716 else
12717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 printf "%s\n" "no" >&6; }
12719 fi
12720
12721
12722 test -n "$ac_ct_DUMPBIN" && break
12723 done
12724
12725 if test "x$ac_ct_DUMPBIN" = x; then
12726 DUMPBIN=":"
12727 else
12728 case $cross_compiling:$ac_tool_warned in
12729 yes:)
12730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12731 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12732 ac_tool_warned=yes ;;
12733 esac
12734 DUMPBIN=$ac_ct_DUMPBIN
12735 fi
12736 fi
12737
12738 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
12739 *COFF*)
12740 DUMPBIN="$DUMPBIN -symbols -headers"
12741 ;;
12742 *)
12743 DUMPBIN=:
12744 ;;
12745 esac
12746 fi
12747
12748 if test : != "$DUMPBIN"; then
12749 NM=$DUMPBIN
12750 fi
12751 fi
12752 test -z "$NM" && NM=nm
12753
12754
12755
12756
12757
12758
12759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12760 printf %s "checking the name lister ($NM) interface... " >&6; }
12761 if test ${lt_cv_nm_interface+y}
12762 then :
12763 printf %s "(cached) " >&6
12764 else case e in #(
12765 e) lt_cv_nm_interface="BSD nm"
12766 echo "int some_variable = 0;" > conftest.$ac_ext
12767 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12768 (eval "$ac_compile" 2>conftest.err)
12769 cat conftest.err >&5
12770 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12771 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12772 cat conftest.err >&5
12773 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12774 cat conftest.out >&5
12775 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12776 lt_cv_nm_interface="MS dumpbin"
12777 fi
12778 rm -f conftest* ;;
12779 esac
12780 fi
12781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12782 printf "%s\n" "$lt_cv_nm_interface" >&6; }
12783
12784 # find the maximum length of command line arguments
12785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12786 printf %s "checking the maximum length of command line arguments... " >&6; }
12787 if test ${lt_cv_sys_max_cmd_len+y}
12788 then :
12789 printf %s "(cached) " >&6
12790 else case e in #(
12791 e) i=0
12792 teststring=ABCD
12793
12794 case $build_os in
12795 msdosdjgpp*)
12796 # On DJGPP, this test can blow up pretty badly due to problems in libc
12797 # (any single argument exceeding 2000 bytes causes a buffer overrun
12798 # during glob expansion). Even if it were fixed, the result of this
12799 # check would be larger than it should be.
12800 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12801 ;;
12802
12803 gnu* | ironclad*)
12804 # Under GNU Hurd and Ironclad, this test is not required because there
12805 # is no limit to the length of command line arguments.
12806 # Libtool will interpret -1 as no limit whatsoever
12807 lt_cv_sys_max_cmd_len=-1;
12808 ;;
12809
12810 cygwin* | mingw* | windows* | cegcc*)
12811 # On Win9x/ME, this test blows up -- it succeeds, but takes
12812 # about 5 minutes as the teststring grows exponentially.
12813 # Worse, since 9x/ME are not pre-emptively multitasking,
12814 # you end up with a "frozen" computer, even though with patience
12815 # the test eventually succeeds (with a max line length of 256k).
12816 # Instead, let's just punt: use the minimum linelength reported by
12817 # all of the supported platforms: 8192 (on NT/2K/XP).
12818 lt_cv_sys_max_cmd_len=8192;
12819 ;;
12820
12821 mint*)
12822 # On MiNT this can take a long time and run out of memory.
12823 lt_cv_sys_max_cmd_len=8192;
12824 ;;
12825
12826 amigaos*)
12827 # On AmigaOS with pdksh, this test takes hours, literally.
12828 # So we just punt and use a minimum line length of 8192.
12829 lt_cv_sys_max_cmd_len=8192;
12830 ;;
12831
12832 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12833 # This has been around since 386BSD, at least. Likely further.
12834 if test -x /sbin/sysctl; then
12835 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12836 elif test -x /usr/sbin/sysctl; then
12837 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12838 else
12839 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12840 fi
12841 # And add a safety zone
12842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12844 ;;
12845
12846 interix*)
12847 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12848 lt_cv_sys_max_cmd_len=196608
12849 ;;
12850
12851 os2*)
12852 # The test takes a long time on OS/2.
12853 lt_cv_sys_max_cmd_len=8192
12854 ;;
12855
12856 osf*)
12857 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12858 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12859 # nice to cause kernel panics so lets avoid the loop below.
12860 # First set a reasonable default.
12861 lt_cv_sys_max_cmd_len=16384
12862 #
12863 if test -x /sbin/sysconfig; then
12864 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12865 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12866 esac
12867 fi
12868 ;;
12869 sco3.2v5*)
12870 lt_cv_sys_max_cmd_len=102400
12871 ;;
12872 sysv5* | sco5v6* | sysv4.2uw2*)
12873 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12874 if test -n "$kargmax"; then
12875 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
12876 else
12877 lt_cv_sys_max_cmd_len=32768
12878 fi
12879 ;;
12880 *)
12881 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12882 if test -n "$lt_cv_sys_max_cmd_len" && \
12883 test undefined != "$lt_cv_sys_max_cmd_len"; then
12884 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12885 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12886 else
12887 # Make teststring a little bigger before we do anything with it.
12888 # a 1K string should be a reasonable start.
12889 for i in 1 2 3 4 5 6 7 8; do
12890 teststring=$teststring$teststring
12891 done
12892 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12893 # If test is not a shell built-in, we'll probably end up computing a
12894 # maximum length that is only half of the actual maximum length, but
12895 # we can't tell.
12896 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12897 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12898 test 17 != "$i" # 1/2 MB should be enough
12899 do
12900 i=`expr $i + 1`
12901 teststring=$teststring$teststring
12902 done
12903 # Only check the string length outside the loop.
12904 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12905 teststring=
12906 # Add a significant safety factor because C++ compilers can tack on
12907 # massive amounts of additional arguments before passing them to the
12908 # linker. It appears as though 1/2 is a usable value.
12909 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12910 fi
12911 ;;
12912 esac
12913 ;;
12914 esac
12915 fi
12916
12917 if test -n "$lt_cv_sys_max_cmd_len"; then
12918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12919 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12920 else
12921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12922 printf "%s\n" "none" >&6; }
12923 fi
12924 max_cmd_len=$lt_cv_sys_max_cmd_len
12925
12926
12927
12928
12929
12930
12931 : ${CP="cp -f"}
12932 : ${MV="mv -f"}
12933 : ${RM="rm -f"}
12934
12935 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12936 lt_unset=unset
12937 else
12938 lt_unset=false
12939 fi
12940
12941
12942
12943
12944
12945 # test EBCDIC or ASCII
12946 case `echo X|tr X '\101'` in
12947 A) # ASCII based system
12948 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12949 lt_SP2NL='tr \040 \012'
12950 lt_NL2SP='tr \015\012 \040\040'
12951 ;;
12952 *) # EBCDIC based system
12953 lt_SP2NL='tr \100 \n'
12954 lt_NL2SP='tr \r\n \100\100'
12955 ;;
12956 esac
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12967 printf %s "checking how to convert $build file names to $host format... " >&6; }
12968 if test ${lt_cv_to_host_file_cmd+y}
12969 then :
12970 printf %s "(cached) " >&6
12971 else case e in #(
12972 e) case $host in
12973 *-*-mingw* )
12974 case $build in
12975 *-*-mingw* | *-*-windows* ) # actually msys
12976 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12977 ;;
12978 *-*-cygwin* )
12979 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12980 ;;
12981 * ) # otherwise, assume *nix
12982 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12983 ;;
12984 esac
12985 ;;
12986 *-*-cygwin* )
12987 case $build in
12988 *-*-mingw* | *-*-windows* ) # actually msys
12989 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12990 ;;
12991 *-*-cygwin* )
12992 lt_cv_to_host_file_cmd=func_convert_file_noop
12993 ;;
12994 * ) # otherwise, assume *nix
12995 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12996 ;;
12997 esac
12998 ;;
12999 * ) # unhandled hosts (and "normal" native builds)
13000 lt_cv_to_host_file_cmd=func_convert_file_noop
13001 ;;
13002 esac
13003 ;;
13004 esac
13005 fi
13006
13007 to_host_file_cmd=$lt_cv_to_host_file_cmd
13008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
13009 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
13010
13011
13012
13013
13014
13015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
13016 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
13017 if test ${lt_cv_to_tool_file_cmd+y}
13018 then :
13019 printf %s "(cached) " >&6
13020 else case e in #(
13021 e) #assume ordinary cross tools, or native build.
13022 lt_cv_to_tool_file_cmd=func_convert_file_noop
13023 case $host in
13024 *-*-mingw* | *-*-windows* )
13025 case $build in
13026 *-*-mingw* | *-*-windows* ) # actually msys
13027 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
13028 ;;
13029 esac
13030 ;;
13031 esac
13032 ;;
13033 esac
13034 fi
13035
13036 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
13038 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
13039
13040
13041
13042
13043
13044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13045 printf %s "checking for $LD option to reload object files... " >&6; }
13046 if test ${lt_cv_ld_reload_flag+y}
13047 then :
13048 printf %s "(cached) " >&6
13049 else case e in #(
13050 e) lt_cv_ld_reload_flag='-r' ;;
13051 esac
13052 fi
13053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13054 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
13055 reload_flag=$lt_cv_ld_reload_flag
13056 case $reload_flag in
13057 "" | " "*) ;;
13058 *) reload_flag=" $reload_flag" ;;
13059 esac
13060 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13061 case $host_os in
13062 cygwin* | mingw* | windows* | pw32* | cegcc*)
13063 if test yes != "$GCC"; then
13064 reload_cmds=false
13065 fi
13066 ;;
13067 darwin*)
13068 if test yes = "$GCC"; then
13069 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
13070 else
13071 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13072 fi
13073 ;;
13074 esac
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084 # Extract the first word of "file", so it can be a program name with args.
13085 set dummy file; ac_word=$2
13086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087 printf %s "checking for $ac_word... " >&6; }
13088 if test ${ac_cv_prog_FILECMD+y}
13089 then :
13090 printf %s "(cached) " >&6
13091 else case e in #(
13092 e) if test -n "$FILECMD"; then
13093 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
13094 else
13095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096 for as_dir in $PATH
13097 do
13098 IFS=$as_save_IFS
13099 case $as_dir in #(((
13100 '') as_dir=./ ;;
13101 */) ;;
13102 *) as_dir=$as_dir/ ;;
13103 esac
13104 for ac_exec_ext in '' $ac_executable_extensions; do
13105 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13106 ac_cv_prog_FILECMD="file"
13107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13108 break 2
13109 fi
13110 done
13111 done
13112 IFS=$as_save_IFS
13113
13114 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
13115 fi ;;
13116 esac
13117 fi
13118 FILECMD=$ac_cv_prog_FILECMD
13119 if test -n "$FILECMD"; then
13120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
13121 printf "%s\n" "$FILECMD" >&6; }
13122 else
13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13124 printf "%s\n" "no" >&6; }
13125 fi
13126
13127
13128
13129
13130
13131
13132
13133
13134 if test -n "$ac_tool_prefix"; then
13135 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13136 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13138 printf %s "checking for $ac_word... " >&6; }
13139 if test ${ac_cv_prog_OBJDUMP+y}
13140 then :
13141 printf %s "(cached) " >&6
13142 else case e in #(
13143 e) if test -n "$OBJDUMP"; then
13144 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13145 else
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13148 do
13149 IFS=$as_save_IFS
13150 case $as_dir in #(((
13151 '') as_dir=./ ;;
13152 */) ;;
13153 *) as_dir=$as_dir/ ;;
13154 esac
13155 for ac_exec_ext in '' $ac_executable_extensions; do
13156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13157 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13159 break 2
13160 fi
13161 done
13162 done
13163 IFS=$as_save_IFS
13164
13165 fi ;;
13166 esac
13167 fi
13168 OBJDUMP=$ac_cv_prog_OBJDUMP
13169 if test -n "$OBJDUMP"; then
13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13171 printf "%s\n" "$OBJDUMP" >&6; }
13172 else
13173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13174 printf "%s\n" "no" >&6; }
13175 fi
13176
13177
13178 fi
13179 if test -z "$ac_cv_prog_OBJDUMP"; then
13180 ac_ct_OBJDUMP=$OBJDUMP
13181 # Extract the first word of "objdump", so it can be a program name with args.
13182 set dummy objdump; ac_word=$2
13183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13184 printf %s "checking for $ac_word... " >&6; }
13185 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
13186 then :
13187 printf %s "(cached) " >&6
13188 else case e in #(
13189 e) if test -n "$ac_ct_OBJDUMP"; then
13190 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13191 else
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $PATH
13194 do
13195 IFS=$as_save_IFS
13196 case $as_dir in #(((
13197 '') as_dir=./ ;;
13198 */) ;;
13199 *) as_dir=$as_dir/ ;;
13200 esac
13201 for ac_exec_ext in '' $ac_executable_extensions; do
13202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13203 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13205 break 2
13206 fi
13207 done
13208 done
13209 IFS=$as_save_IFS
13210
13211 fi ;;
13212 esac
13213 fi
13214 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13215 if test -n "$ac_ct_OBJDUMP"; then
13216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13217 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
13218 else
13219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220 printf "%s\n" "no" >&6; }
13221 fi
13222
13223 if test "x$ac_ct_OBJDUMP" = x; then
13224 OBJDUMP="false"
13225 else
13226 case $cross_compiling:$ac_tool_warned in
13227 yes:)
13228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13229 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13230 ac_tool_warned=yes ;;
13231 esac
13232 OBJDUMP=$ac_ct_OBJDUMP
13233 fi
13234 else
13235 OBJDUMP="$ac_cv_prog_OBJDUMP"
13236 fi
13237
13238 test -z "$OBJDUMP" && OBJDUMP=objdump
13239
13240
13241
13242
13243
13244
13245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13246 printf %s "checking how to recognize dependent libraries... " >&6; }
13247 if test ${lt_cv_deplibs_check_method+y}
13248 then :
13249 printf %s "(cached) " >&6
13250 else case e in #(
13251 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
13252 lt_cv_file_magic_test_file=
13253 lt_cv_deplibs_check_method='unknown'
13254 # Need to set the preceding variable on all platforms that support
13255 # interlibrary dependencies.
13256 # 'none' -- dependencies not supported.
13257 # 'unknown' -- same as none, but documents that we really don't know.
13258 # 'pass_all' -- all dependencies passed with no checks.
13259 # 'file_magic [[regex]]' -- check by looking for files in library path
13260 # that responds to the $file_magic_cmd with a given extended regex.
13261 # If you have 'file' or equivalent on your system and you're not sure
13262 # whether 'pass_all' will *always* work, you probably want this one.
13263
13264 case $host_os in
13265 aix[4-9]*)
13266 lt_cv_deplibs_check_method=pass_all
13267 ;;
13268
13269 beos*)
13270 lt_cv_deplibs_check_method=pass_all
13271 ;;
13272
13273 bsdi[45]*)
13274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13275 lt_cv_file_magic_cmd='$FILECMD -L'
13276 lt_cv_file_magic_test_file=/shlib/libc.so
13277 ;;
13278
13279 cygwin*)
13280 # func_win32_libid is a shell function defined in ltmain.sh
13281 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13282 lt_cv_file_magic_cmd='func_win32_libid'
13283 ;;
13284
13285 mingw* | windows* | pw32*)
13286 # Base MSYS/MinGW do not provide the 'file' command needed by
13287 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13288 # unless we find 'file', for example because we are cross-compiling.
13289 if ( file / ) >/dev/null 2>&1; then
13290 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13291 lt_cv_file_magic_cmd='func_win32_libid'
13292 else
13293 # Keep this pattern in sync with the one in func_win32_libid.
13294 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
13295 lt_cv_file_magic_cmd='$OBJDUMP -f'
13296 fi
13297 ;;
13298
13299 cegcc*)
13300 # use the weaker test based on 'objdump'. See mingw*.
13301 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13302 lt_cv_file_magic_cmd='$OBJDUMP -f'
13303 ;;
13304
13305 darwin* | rhapsody*)
13306 lt_cv_deplibs_check_method=pass_all
13307 ;;
13308
13309 freebsd* | dragonfly* | midnightbsd*)
13310 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13311 case $host_cpu in
13312 i*86 )
13313 # Not sure whether the presence of OpenBSD here was a mistake.
13314 # Let's accept both of them until this is cleared up.
13315 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13316 lt_cv_file_magic_cmd=$FILECMD
13317 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13318 ;;
13319 esac
13320 else
13321 lt_cv_deplibs_check_method=pass_all
13322 fi
13323 ;;
13324
13325 haiku*)
13326 lt_cv_deplibs_check_method=pass_all
13327 ;;
13328
13329 hpux10.20* | hpux11*)
13330 lt_cv_file_magic_cmd=$FILECMD
13331 case $host_cpu in
13332 ia64*)
13333 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13334 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13335 ;;
13336 hppa*64*)
13337 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]'
13338 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13339 ;;
13340 *)
13341 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13342 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13343 ;;
13344 esac
13345 ;;
13346
13347 interix[3-9]*)
13348 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13350 ;;
13351
13352 irix5* | irix6* | nonstopux*)
13353 case $LD in
13354 *-32|*"-32 ") libmagic=32-bit;;
13355 *-n32|*"-n32 ") libmagic=N32;;
13356 *-64|*"-64 ") libmagic=64-bit;;
13357 *) libmagic=never-match;;
13358 esac
13359 lt_cv_deplibs_check_method=pass_all
13360 ;;
13361
13362 # This must be glibc/ELF.
13363 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13364 lt_cv_deplibs_check_method=pass_all
13365 ;;
13366
13367 *-mlibc)
13368 lt_cv_deplibs_check_method=pass_all
13369 ;;
13370
13371 netbsd* | netbsdelf*-gnu)
13372 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13374 else
13375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13376 fi
13377 ;;
13378
13379 newos6*)
13380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13381 lt_cv_file_magic_cmd=$FILECMD
13382 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13383 ;;
13384
13385 *nto* | *qnx*)
13386 lt_cv_deplibs_check_method=pass_all
13387 ;;
13388
13389 openbsd*)
13390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13392 else
13393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13394 fi
13395 ;;
13396
13397 osf3* | osf4* | osf5*)
13398 lt_cv_deplibs_check_method=pass_all
13399 ;;
13400
13401 rdos*)
13402 lt_cv_deplibs_check_method=pass_all
13403 ;;
13404
13405 serenity*)
13406 lt_cv_deplibs_check_method=pass_all
13407 ;;
13408
13409 solaris*)
13410 lt_cv_deplibs_check_method=pass_all
13411 ;;
13412
13413 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13414 lt_cv_deplibs_check_method=pass_all
13415 ;;
13416
13417 sysv4 | sysv4.3*)
13418 case $host_vendor in
13419 motorola)
13420 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]'
13421 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13422 ;;
13423 ncr)
13424 lt_cv_deplibs_check_method=pass_all
13425 ;;
13426 sequent)
13427 lt_cv_file_magic_cmd='/bin/file'
13428 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13429 ;;
13430 sni)
13431 lt_cv_file_magic_cmd='/bin/file'
13432 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13433 lt_cv_file_magic_test_file=/lib/libc.so
13434 ;;
13435 siemens)
13436 lt_cv_deplibs_check_method=pass_all
13437 ;;
13438 pc)
13439 lt_cv_deplibs_check_method=pass_all
13440 ;;
13441 esac
13442 ;;
13443
13444 tpf*)
13445 lt_cv_deplibs_check_method=pass_all
13446 ;;
13447 os2*)
13448 lt_cv_deplibs_check_method=pass_all
13449 ;;
13450 esac
13451 ;;
13452 esac
13453 fi
13454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13455 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
13456
13457 file_magic_glob=
13458 want_nocaseglob=no
13459 if test "$build" = "$host"; then
13460 case $host_os in
13461 mingw* | windows* | pw32*)
13462 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13463 want_nocaseglob=yes
13464 else
13465 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13466 fi
13467 ;;
13468 esac
13469 fi
13470
13471 file_magic_cmd=$lt_cv_file_magic_cmd
13472 deplibs_check_method=$lt_cv_deplibs_check_method
13473 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496 if test -n "$ac_tool_prefix"; then
13497 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13498 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13500 printf %s "checking for $ac_word... " >&6; }
13501 if test ${ac_cv_prog_DLLTOOL+y}
13502 then :
13503 printf %s "(cached) " >&6
13504 else case e in #(
13505 e) if test -n "$DLLTOOL"; then
13506 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13507 else
13508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13509 for as_dir in $PATH
13510 do
13511 IFS=$as_save_IFS
13512 case $as_dir in #(((
13513 '') as_dir=./ ;;
13514 */) ;;
13515 *) as_dir=$as_dir/ ;;
13516 esac
13517 for ac_exec_ext in '' $ac_executable_extensions; do
13518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13519 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13521 break 2
13522 fi
13523 done
13524 done
13525 IFS=$as_save_IFS
13526
13527 fi ;;
13528 esac
13529 fi
13530 DLLTOOL=$ac_cv_prog_DLLTOOL
13531 if test -n "$DLLTOOL"; then
13532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13533 printf "%s\n" "$DLLTOOL" >&6; }
13534 else
13535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13536 printf "%s\n" "no" >&6; }
13537 fi
13538
13539
13540 fi
13541 if test -z "$ac_cv_prog_DLLTOOL"; then
13542 ac_ct_DLLTOOL=$DLLTOOL
13543 # Extract the first word of "dlltool", so it can be a program name with args.
13544 set dummy dlltool; ac_word=$2
13545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13546 printf %s "checking for $ac_word... " >&6; }
13547 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
13548 then :
13549 printf %s "(cached) " >&6
13550 else case e in #(
13551 e) if test -n "$ac_ct_DLLTOOL"; then
13552 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13553 else
13554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13555 for as_dir in $PATH
13556 do
13557 IFS=$as_save_IFS
13558 case $as_dir in #(((
13559 '') as_dir=./ ;;
13560 */) ;;
13561 *) as_dir=$as_dir/ ;;
13562 esac
13563 for ac_exec_ext in '' $ac_executable_extensions; do
13564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13565 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13567 break 2
13568 fi
13569 done
13570 done
13571 IFS=$as_save_IFS
13572
13573 fi ;;
13574 esac
13575 fi
13576 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13577 if test -n "$ac_ct_DLLTOOL"; then
13578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13579 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
13580 else
13581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582 printf "%s\n" "no" >&6; }
13583 fi
13584
13585 if test "x$ac_ct_DLLTOOL" = x; then
13586 DLLTOOL="false"
13587 else
13588 case $cross_compiling:$ac_tool_warned in
13589 yes:)
13590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13591 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13592 ac_tool_warned=yes ;;
13593 esac
13594 DLLTOOL=$ac_ct_DLLTOOL
13595 fi
13596 else
13597 DLLTOOL="$ac_cv_prog_DLLTOOL"
13598 fi
13599
13600 test -z "$DLLTOOL" && DLLTOOL=dlltool
13601
13602
13603
13604
13605
13606
13607
13608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13609 printf %s "checking how to associate runtime and link libraries... " >&6; }
13610 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
13611 then :
13612 printf %s "(cached) " >&6
13613 else case e in #(
13614 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
13615
13616 case $host_os in
13617 cygwin* | mingw* | windows* | pw32* | cegcc*)
13618 # two different shell functions defined in ltmain.sh;
13619 # decide which one to use based on capabilities of $DLLTOOL
13620 case `$DLLTOOL --help 2>&1` in
13621 *--identify-strict*)
13622 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13623 ;;
13624 *)
13625 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13626 ;;
13627 esac
13628 ;;
13629 *)
13630 # fallback: assume linklib IS sharedlib
13631 lt_cv_sharedlib_from_linklib_cmd=$ECHO
13632 ;;
13633 esac
13634 ;;
13635 esac
13636 fi
13637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13638 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13639 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13640 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13641
13642
13643
13644
13645
13646
13647
13648 if test -n "$ac_tool_prefix"; then
13649 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13650 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13652 printf %s "checking for $ac_word... " >&6; }
13653 if test ${ac_cv_prog_RANLIB+y}
13654 then :
13655 printf %s "(cached) " >&6
13656 else case e in #(
13657 e) if test -n "$RANLIB"; then
13658 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13659 else
13660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13661 for as_dir in $PATH
13662 do
13663 IFS=$as_save_IFS
13664 case $as_dir in #(((
13665 '') as_dir=./ ;;
13666 */) ;;
13667 *) as_dir=$as_dir/ ;;
13668 esac
13669 for ac_exec_ext in '' $ac_executable_extensions; do
13670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13671 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13673 break 2
13674 fi
13675 done
13676 done
13677 IFS=$as_save_IFS
13678
13679 fi ;;
13680 esac
13681 fi
13682 RANLIB=$ac_cv_prog_RANLIB
13683 if test -n "$RANLIB"; then
13684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13685 printf "%s\n" "$RANLIB" >&6; }
13686 else
13687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13688 printf "%s\n" "no" >&6; }
13689 fi
13690
13691
13692 fi
13693 if test -z "$ac_cv_prog_RANLIB"; then
13694 ac_ct_RANLIB=$RANLIB
13695 # Extract the first word of "ranlib", so it can be a program name with args.
13696 set dummy ranlib; ac_word=$2
13697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13698 printf %s "checking for $ac_word... " >&6; }
13699 if test ${ac_cv_prog_ac_ct_RANLIB+y}
13700 then :
13701 printf %s "(cached) " >&6
13702 else case e in #(
13703 e) if test -n "$ac_ct_RANLIB"; then
13704 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13705 else
13706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13707 for as_dir in $PATH
13708 do
13709 IFS=$as_save_IFS
13710 case $as_dir in #(((
13711 '') as_dir=./ ;;
13712 */) ;;
13713 *) as_dir=$as_dir/ ;;
13714 esac
13715 for ac_exec_ext in '' $ac_executable_extensions; do
13716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13717 ac_cv_prog_ac_ct_RANLIB="ranlib"
13718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13719 break 2
13720 fi
13721 done
13722 done
13723 IFS=$as_save_IFS
13724
13725 fi ;;
13726 esac
13727 fi
13728 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13729 if test -n "$ac_ct_RANLIB"; then
13730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13731 printf "%s\n" "$ac_ct_RANLIB" >&6; }
13732 else
13733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13734 printf "%s\n" "no" >&6; }
13735 fi
13736
13737 if test "x$ac_ct_RANLIB" = x; then
13738 RANLIB=":"
13739 else
13740 case $cross_compiling:$ac_tool_warned in
13741 yes:)
13742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13743 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13744 ac_tool_warned=yes ;;
13745 esac
13746 RANLIB=$ac_ct_RANLIB
13747 fi
13748 else
13749 RANLIB="$ac_cv_prog_RANLIB"
13750 fi
13751
13752 if test -n "$ac_tool_prefix"; then
13753 for ac_prog in ar
13754 do
13755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13758 printf %s "checking for $ac_word... " >&6; }
13759 if test ${ac_cv_prog_AR+y}
13760 then :
13761 printf %s "(cached) " >&6
13762 else case e in #(
13763 e) if test -n "$AR"; then
13764 ac_cv_prog_AR="$AR" # Let the user override the test.
13765 else
13766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13767 for as_dir in $PATH
13768 do
13769 IFS=$as_save_IFS
13770 case $as_dir in #(((
13771 '') as_dir=./ ;;
13772 */) ;;
13773 *) as_dir=$as_dir/ ;;
13774 esac
13775 for ac_exec_ext in '' $ac_executable_extensions; do
13776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13777 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13779 break 2
13780 fi
13781 done
13782 done
13783 IFS=$as_save_IFS
13784
13785 fi ;;
13786 esac
13787 fi
13788 AR=$ac_cv_prog_AR
13789 if test -n "$AR"; then
13790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13791 printf "%s\n" "$AR" >&6; }
13792 else
13793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13794 printf "%s\n" "no" >&6; }
13795 fi
13796
13797
13798 test -n "$AR" && break
13799 done
13800 fi
13801 if test -z "$AR"; then
13802 ac_ct_AR=$AR
13803 for ac_prog in ar
13804 do
13805 # Extract the first word of "$ac_prog", so it can be a program name with args.
13806 set dummy $ac_prog; ac_word=$2
13807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13808 printf %s "checking for $ac_word... " >&6; }
13809 if test ${ac_cv_prog_ac_ct_AR+y}
13810 then :
13811 printf %s "(cached) " >&6
13812 else case e in #(
13813 e) if test -n "$ac_ct_AR"; then
13814 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13815 else
13816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13817 for as_dir in $PATH
13818 do
13819 IFS=$as_save_IFS
13820 case $as_dir in #(((
13821 '') as_dir=./ ;;
13822 */) ;;
13823 *) as_dir=$as_dir/ ;;
13824 esac
13825 for ac_exec_ext in '' $ac_executable_extensions; do
13826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13827 ac_cv_prog_ac_ct_AR="$ac_prog"
13828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13829 break 2
13830 fi
13831 done
13832 done
13833 IFS=$as_save_IFS
13834
13835 fi ;;
13836 esac
13837 fi
13838 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13839 if test -n "$ac_ct_AR"; then
13840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13841 printf "%s\n" "$ac_ct_AR" >&6; }
13842 else
13843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13844 printf "%s\n" "no" >&6; }
13845 fi
13846
13847
13848 test -n "$ac_ct_AR" && break
13849 done
13850
13851 if test "x$ac_ct_AR" = x; then
13852 AR="false"
13853 else
13854 case $cross_compiling:$ac_tool_warned in
13855 yes:)
13856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13857 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13858 ac_tool_warned=yes ;;
13859 esac
13860 AR=$ac_ct_AR
13861 fi
13862 fi
13863
13864 : ${AR=ar}
13865
13866
13867
13868
13869
13870
13871 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
13872 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13873 # higher priority because that's what people were doing historically (setting
13874 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
13875 # variable obsoleted/removed.
13876
13877 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13878 lt_ar_flags=$AR_FLAGS
13879
13880
13881
13882
13883
13884
13885 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
13886 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13887
13888
13889
13890
13891
13892
13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13894 printf %s "checking for archiver @FILE support... " >&6; }
13895 if test ${lt_cv_ar_at_file+y}
13896 then :
13897 printf %s "(cached) " >&6
13898 else case e in #(
13899 e) lt_cv_ar_at_file=no
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13902
13903 int
13904 main (void)
13905 {
13906
13907 ;
13908 return 0;
13909 }
13910 _ACEOF
13911 if ac_fn_c_try_compile "$LINENO"
13912 then :
13913 echo conftest.$ac_objext > conftest.lst
13914 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13916 (eval $lt_ar_try) 2>&5
13917 ac_status=$?
13918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13919 test $ac_status = 0; }
13920 if test 0 -eq "$ac_status"; then
13921 # Ensure the archiver fails upon bogus file names.
13922 rm -f conftest.$ac_objext libconftest.a
13923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13924 (eval $lt_ar_try) 2>&5
13925 ac_status=$?
13926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13927 test $ac_status = 0; }
13928 if test 0 -ne "$ac_status"; then
13929 lt_cv_ar_at_file=@
13930 fi
13931 fi
13932 rm -f conftest.* libconftest.a
13933
13934 fi
13935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13936 ;;
13937 esac
13938 fi
13939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13940 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13941
13942 if test no = "$lt_cv_ar_at_file"; then
13943 archiver_list_spec=
13944 else
13945 archiver_list_spec=$lt_cv_ar_at_file
13946 fi
13947
13948
13949
13950
13951
13952
13953
13954 if test -n "$ac_tool_prefix"; then
13955 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13956 set dummy ${ac_tool_prefix}strip; ac_word=$2
13957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13958 printf %s "checking for $ac_word... " >&6; }
13959 if test ${ac_cv_prog_STRIP+y}
13960 then :
13961 printf %s "(cached) " >&6
13962 else case e in #(
13963 e) if test -n "$STRIP"; then
13964 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13965 else
13966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967 for as_dir in $PATH
13968 do
13969 IFS=$as_save_IFS
13970 case $as_dir in #(((
13971 '') as_dir=./ ;;
13972 */) ;;
13973 *) as_dir=$as_dir/ ;;
13974 esac
13975 for ac_exec_ext in '' $ac_executable_extensions; do
13976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13977 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13979 break 2
13980 fi
13981 done
13982 done
13983 IFS=$as_save_IFS
13984
13985 fi ;;
13986 esac
13987 fi
13988 STRIP=$ac_cv_prog_STRIP
13989 if test -n "$STRIP"; then
13990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13991 printf "%s\n" "$STRIP" >&6; }
13992 else
13993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13994 printf "%s\n" "no" >&6; }
13995 fi
13996
13997
13998 fi
13999 if test -z "$ac_cv_prog_STRIP"; then
14000 ac_ct_STRIP=$STRIP
14001 # Extract the first word of "strip", so it can be a program name with args.
14002 set dummy strip; ac_word=$2
14003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14004 printf %s "checking for $ac_word... " >&6; }
14005 if test ${ac_cv_prog_ac_ct_STRIP+y}
14006 then :
14007 printf %s "(cached) " >&6
14008 else case e in #(
14009 e) if test -n "$ac_ct_STRIP"; then
14010 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14011 else
14012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14013 for as_dir in $PATH
14014 do
14015 IFS=$as_save_IFS
14016 case $as_dir in #(((
14017 '') as_dir=./ ;;
14018 */) ;;
14019 *) as_dir=$as_dir/ ;;
14020 esac
14021 for ac_exec_ext in '' $ac_executable_extensions; do
14022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14023 ac_cv_prog_ac_ct_STRIP="strip"
14024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14025 break 2
14026 fi
14027 done
14028 done
14029 IFS=$as_save_IFS
14030
14031 fi ;;
14032 esac
14033 fi
14034 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14035 if test -n "$ac_ct_STRIP"; then
14036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14037 printf "%s\n" "$ac_ct_STRIP" >&6; }
14038 else
14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040 printf "%s\n" "no" >&6; }
14041 fi
14042
14043 if test "x$ac_ct_STRIP" = x; then
14044 STRIP=":"
14045 else
14046 case $cross_compiling:$ac_tool_warned in
14047 yes:)
14048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14049 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14050 ac_tool_warned=yes ;;
14051 esac
14052 STRIP=$ac_ct_STRIP
14053 fi
14054 else
14055 STRIP="$ac_cv_prog_STRIP"
14056 fi
14057
14058 test -z "$STRIP" && STRIP=:
14059
14060
14061
14062
14063
14064
14065
14066 test -z "$RANLIB" && RANLIB=:
14067
14068
14069
14070
14071
14072
14073 # Determine commands to create old-style static archives.
14074 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14075 old_postinstall_cmds='chmod 644 $oldlib'
14076 old_postuninstall_cmds=
14077
14078 if test -n "$RANLIB"; then
14079 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
14080 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
14081 fi
14082
14083 case $host_os in
14084 darwin*)
14085 lock_old_archive_extraction=yes ;;
14086 *)
14087 lock_old_archive_extraction=no ;;
14088 esac
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128 # If no C compiler was specified, use CC.
14129 LTCC=${LTCC-"$CC"}
14130
14131 # If no C compiler flags were specified, use CFLAGS.
14132 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14133
14134 # Allow CC to be a program name with arguments.
14135 compiler=$CC
14136
14137
14138 # Check for command to grab the raw symbol name followed by C symbol from nm.
14139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14140 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
14141 if test ${lt_cv_sys_global_symbol_pipe+y}
14142 then :
14143 printf %s "(cached) " >&6
14144 else case e in #(
14145 e)
14146 # These are sane defaults that work on at least a few old systems.
14147 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14148
14149 # Character class describing NM global symbol codes.
14150 symcode='[BCDEGRST]'
14151
14152 # Regexp to match symbols that can be accessed directly from C.
14153 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14154
14155 # Define system-specific variables.
14156 case $host_os in
14157 aix*)
14158 symcode='[BCDT]'
14159 ;;
14160 cygwin* | mingw* | windows* | pw32* | cegcc*)
14161 symcode='[ABCDGISTW]'
14162 ;;
14163 hpux*)
14164 if test ia64 = "$host_cpu"; then
14165 symcode='[ABCDEGRST]'
14166 fi
14167 ;;
14168 irix* | nonstopux*)
14169 symcode='[BCDEGRST]'
14170 ;;
14171 osf*)
14172 symcode='[BCDEGQRST]'
14173 ;;
14174 solaris*)
14175 symcode='[BCDRT]'
14176 ;;
14177 sco3.2v5*)
14178 symcode='[DT]'
14179 ;;
14180 sysv4.2uw2*)
14181 symcode='[DT]'
14182 ;;
14183 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14184 symcode='[ABDT]'
14185 ;;
14186 sysv4)
14187 symcode='[DFNSTU]'
14188 ;;
14189 esac
14190
14191 # If we're using GNU nm, then use its standard symbol codes.
14192 case `$NM -V 2>&1` in
14193 *GNU* | *'with BFD'*)
14194 symcode='[ABCDGIRSTW]' ;;
14195 esac
14196
14197 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14198 # Gets list of data symbols to import.
14199 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
14200 # Adjust the below global symbol transforms to fixup imported variables.
14201 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
14202 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
14203 lt_c_name_lib_hook="\
14204 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
14205 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
14206 else
14207 # Disable hooks by default.
14208 lt_cv_sys_global_symbol_to_import=
14209 lt_cdecl_hook=
14210 lt_c_name_hook=
14211 lt_c_name_lib_hook=
14212 fi
14213
14214 # Transform an extracted symbol line into a proper C declaration.
14215 # Some systems (esp. on ia64) link data and code symbols differently,
14216 # so use this general approach.
14217 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
14218 $lt_cdecl_hook\
14219 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
14220 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
14221
14222 # Transform an extracted symbol line into symbol name and symbol address
14223 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
14224 $lt_c_name_hook\
14225 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
14226 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
14227
14228 # Transform an extracted symbol line into symbol name with lib prefix and
14229 # symbol address.
14230 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
14231 $lt_c_name_lib_hook\
14232 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
14233 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
14234 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
14235
14236 # Handle CRLF in mingw tool chain
14237 opt_cr=
14238 case $build_os in
14239 mingw* | windows*)
14240 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14241 ;;
14242 esac
14243
14244 # Try without a prefix underscore, then with it.
14245 for ac_symprfx in "" "_"; do
14246
14247 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14248 symxfrm="\\1 $ac_symprfx\\2 \\2"
14249
14250 # Write the raw and C identifiers.
14251 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14252 # Fake it for dumpbin and say T for any non-static function,
14253 # D for any global variable and I for any imported variable.
14254 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
14255 # which start with @ or ?.
14256 lt_cv_sys_global_symbol_pipe="$AWK '"\
14257 " {last_section=section; section=\$ 3};"\
14258 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
14259 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14260 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
14261 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
14262 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
14263 " \$ 0!~/External *\|/{next};"\
14264 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14265 " {if(hide[section]) next};"\
14266 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
14267 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
14268 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
14269 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
14270 " ' prfx=^$ac_symprfx"
14271 else
14272 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14273 fi
14274 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
14275
14276 # Check to see that the pipe works correctly.
14277 pipe_works=no
14278
14279 rm -f conftest*
14280 cat > conftest.$ac_ext <<_LT_EOF
14281 #ifdef __cplusplus
14282 extern "C" {
14283 #endif
14284 char nm_test_var;
14285 void nm_test_func(void);
14286 void nm_test_func(void){}
14287 #ifdef __cplusplus
14288 }
14289 #endif
14290 int main(void){nm_test_var='a';nm_test_func();return(0);}
14291 _LT_EOF
14292
14293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14294 (eval $ac_compile) 2>&5
14295 ac_status=$?
14296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14297 test $ac_status = 0; }; then
14298 # Now try to grab the symbols.
14299 nlist=conftest.nm
14300 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
14301 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
14302 # Try sorting and uniquifying the output.
14303 if sort "$nlist" | uniq > "$nlist"T; then
14304 mv -f "$nlist"T "$nlist"
14305 else
14306 rm -f "$nlist"T
14307 fi
14308
14309 # Make sure that we snagged all the symbols we need.
14310 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14311 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14312 cat <<_LT_EOF > conftest.$ac_ext
14313 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
14314 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
14315 /* DATA imports from DLLs on WIN32 can't be const, because runtime
14316 relocations are performed -- see ld's documentation on pseudo-relocs. */
14317 # define LT_DLSYM_CONST
14318 #elif defined __osf__
14319 /* This system does not cope well with relocations in const data. */
14320 # define LT_DLSYM_CONST
14321 #else
14322 # define LT_DLSYM_CONST const
14323 #endif
14324
14325 #ifdef __cplusplus
14326 extern "C" {
14327 #endif
14328
14329 _LT_EOF
14330 # Now generate the symbol file.
14331 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14332
14333 cat <<_LT_EOF >> conftest.$ac_ext
14334
14335 /* The mapping between symbol names and symbols. */
14336 LT_DLSYM_CONST struct {
14337 const char *name;
14338 void *address;
14339 }
14340 lt__PROGRAM__LTX_preloaded_symbols[] =
14341 {
14342 { "@PROGRAM@", (void *) 0 },
14343 _LT_EOF
14344 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14345 cat <<\_LT_EOF >> conftest.$ac_ext
14346 {0, (void *) 0}
14347 };
14348
14349 /* This works around a problem in FreeBSD linker */
14350 #ifdef FREEBSD_WORKAROUND
14351 static const void *lt_preloaded_setup() {
14352 return lt__PROGRAM__LTX_preloaded_symbols;
14353 }
14354 #endif
14355
14356 #ifdef __cplusplus
14357 }
14358 #endif
14359 _LT_EOF
14360 # Now try linking the two files.
14361 mv conftest.$ac_objext conftstm.$ac_objext
14362 lt_globsym_save_LIBS=$LIBS
14363 lt_globsym_save_CFLAGS=$CFLAGS
14364 LIBS=conftstm.$ac_objext
14365 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14367 (eval $ac_link) 2>&5
14368 ac_status=$?
14369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14370 test $ac_status = 0; } && test -s conftest$ac_exeext; then
14371 pipe_works=yes
14372 fi
14373 LIBS=$lt_globsym_save_LIBS
14374 CFLAGS=$lt_globsym_save_CFLAGS
14375 else
14376 echo "cannot find nm_test_func in $nlist" >&5
14377 fi
14378 else
14379 echo "cannot find nm_test_var in $nlist" >&5
14380 fi
14381 else
14382 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14383 fi
14384 else
14385 echo "$progname: failed program was:" >&5
14386 cat conftest.$ac_ext >&5
14387 fi
14388 rm -rf conftest* conftst*
14389
14390 # Do not use the global_symbol_pipe unless it works.
14391 if test yes = "$pipe_works"; then
14392 break
14393 else
14394 lt_cv_sys_global_symbol_pipe=
14395 fi
14396 done
14397 ;;
14398 esac
14399 fi
14400
14401 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14402 lt_cv_sys_global_symbol_to_cdecl=
14403 fi
14404 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14406 printf "%s\n" "failed" >&6; }
14407 else
14408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14409 printf "%s\n" "ok" >&6; }
14410 fi
14411
14412 # Response file support.
14413 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14414 nm_file_list_spec='@'
14415 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
14416 nm_file_list_spec='@'
14417 fi
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14456 printf %s "checking for sysroot... " >&6; }
14457
14458 # Check whether --with-sysroot was given.
14459 if test ${with_sysroot+y}
14460 then :
14461 withval=$with_sysroot;
14462 else case e in #(
14463 e) with_sysroot=no ;;
14464 esac
14465 fi
14466
14467
14468 lt_sysroot=
14469 case $with_sysroot in #(
14470 yes)
14471 if test yes = "$GCC"; then
14472 # Trim trailing / since we'll always append absolute paths and we want
14473 # to avoid //, if only for less confusing output for the user.
14474 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
14475 fi
14476 ;; #(
14477 /*)
14478 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
14479 ;; #(
14480 no|'')
14481 ;; #(
14482 *)
14483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
14484 printf "%s\n" "$with_sysroot" >&6; }
14485 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
14486 ;;
14487 esac
14488
14489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
14490 printf "%s\n" "${lt_sysroot:-no}" >&6; }
14491
14492
14493
14494
14495
14496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
14497 printf %s "checking for a working dd... " >&6; }
14498 if test ${ac_cv_path_lt_DD+y}
14499 then :
14500 printf %s "(cached) " >&6
14501 else case e in #(
14502 e) printf 0123456789abcdef0123456789abcdef >conftest.i
14503 cat conftest.i conftest.i >conftest2.i
14504 : ${lt_DD:=$DD}
14505 if test -z "$lt_DD"; then
14506 ac_path_lt_DD_found=false
14507 # Loop through the user's path and test for each of PROGNAME-LIST
14508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14509 for as_dir in $PATH
14510 do
14511 IFS=$as_save_IFS
14512 case $as_dir in #(((
14513 '') as_dir=./ ;;
14514 */) ;;
14515 *) as_dir=$as_dir/ ;;
14516 esac
14517 for ac_prog in dd
14518 do
14519 for ac_exec_ext in '' $ac_executable_extensions; do
14520 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
14521 as_fn_executable_p "$ac_path_lt_DD" || continue
14522 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14523 cmp -s conftest.i conftest.out \
14524 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
14525 fi
14526 $ac_path_lt_DD_found && break 3
14527 done
14528 done
14529 done
14530 IFS=$as_save_IFS
14531 if test -z "$ac_cv_path_lt_DD"; then
14532 :
14533 fi
14534 else
14535 ac_cv_path_lt_DD=$lt_DD
14536 fi
14537
14538 rm -f conftest.i conftest2.i conftest.out ;;
14539 esac
14540 fi
14541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
14542 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
14543
14544
14545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
14546 printf %s "checking how to truncate binary pipes... " >&6; }
14547 if test ${lt_cv_truncate_bin+y}
14548 then :
14549 printf %s "(cached) " >&6
14550 else case e in #(
14551 e) printf 0123456789abcdef0123456789abcdef >conftest.i
14552 cat conftest.i conftest.i >conftest2.i
14553 lt_cv_truncate_bin=
14554 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14555 cmp -s conftest.i conftest.out \
14556 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
14557 fi
14558 rm -f conftest.i conftest2.i conftest.out
14559 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
14560 esac
14561 fi
14562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
14563 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
14564
14565
14566
14567
14568
14569
14570
14571 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14572 func_cc_basename ()
14573 {
14574 for cc_temp in $*""; do
14575 case $cc_temp in
14576 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14577 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14578 \-*) ;;
14579 *) break;;
14580 esac
14581 done
14582 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14583 }
14584
14585 # Check whether --enable-libtool-lock was given.
14586 if test ${enable_libtool_lock+y}
14587 then :
14588 enableval=$enable_libtool_lock;
14589 fi
14590
14591 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
14592
14593 # Some flags need to be propagated to the compiler or linker for good
14594 # libtool support.
14595 case $host in
14596 ia64-*-hpux*)
14597 # Find out what ABI is being produced by ac_compile, and set mode
14598 # options accordingly.
14599 echo 'int i;' > conftest.$ac_ext
14600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14601 (eval $ac_compile) 2>&5
14602 ac_status=$?
14603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14604 test $ac_status = 0; }; then
14605 case `$FILECMD conftest.$ac_objext` in
14606 *ELF-32*)
14607 HPUX_IA64_MODE=32
14608 ;;
14609 *ELF-64*)
14610 HPUX_IA64_MODE=64
14611 ;;
14612 esac
14613 fi
14614 rm -rf conftest*
14615 ;;
14616 *-*-irix6*)
14617 # Find out what ABI is being produced by ac_compile, and set linker
14618 # options accordingly.
14619 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14621 (eval $ac_compile) 2>&5
14622 ac_status=$?
14623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14624 test $ac_status = 0; }; then
14625 if test yes = "$lt_cv_prog_gnu_ld"; then
14626 case `$FILECMD conftest.$ac_objext` in
14627 *32-bit*)
14628 LD="${LD-ld} -melf32bsmip"
14629 ;;
14630 *N32*)
14631 LD="${LD-ld} -melf32bmipn32"
14632 ;;
14633 *64-bit*)
14634 LD="${LD-ld} -melf64bmip"
14635 ;;
14636 esac
14637 else
14638 case `$FILECMD conftest.$ac_objext` in
14639 *32-bit*)
14640 LD="${LD-ld} -32"
14641 ;;
14642 *N32*)
14643 LD="${LD-ld} -n32"
14644 ;;
14645 *64-bit*)
14646 LD="${LD-ld} -64"
14647 ;;
14648 esac
14649 fi
14650 fi
14651 rm -rf conftest*
14652 ;;
14653
14654 mips64*-*linux*)
14655 # Find out what ABI is being produced by ac_compile, and set linker
14656 # options accordingly.
14657 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14659 (eval $ac_compile) 2>&5
14660 ac_status=$?
14661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14662 test $ac_status = 0; }; then
14663 emul=elf
14664 case `$FILECMD conftest.$ac_objext` in
14665 *32-bit*)
14666 emul="${emul}32"
14667 ;;
14668 *64-bit*)
14669 emul="${emul}64"
14670 ;;
14671 esac
14672 case `$FILECMD conftest.$ac_objext` in
14673 *MSB*)
14674 emul="${emul}btsmip"
14675 ;;
14676 *LSB*)
14677 emul="${emul}ltsmip"
14678 ;;
14679 esac
14680 case `$FILECMD conftest.$ac_objext` in
14681 *N32*)
14682 emul="${emul}n32"
14683 ;;
14684 esac
14685 LD="${LD-ld} -m $emul"
14686 fi
14687 rm -rf conftest*
14688 ;;
14689
14690 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14691 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
14692 # Find out what ABI is being produced by ac_compile, and set linker
14693 # options accordingly. Note that the listed cases only cover the
14694 # situations where additional linker options are needed (such as when
14695 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14696 # vice versa); the common cases where no linker options are needed do
14697 # not appear in the list.
14698 echo 'int i;' > conftest.$ac_ext
14699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14700 (eval $ac_compile) 2>&5
14701 ac_status=$?
14702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14703 test $ac_status = 0; }; then
14704 case `$FILECMD conftest.o` in
14705 *32-bit*)
14706 case $host in
14707 x86_64-*kfreebsd*-gnu)
14708 LD="${LD-ld} -m elf_i386_fbsd"
14709 ;;
14710 x86_64-*linux*|x86_64-gnu*)
14711 case `$FILECMD conftest.o` in
14712 *x86-64*)
14713 LD="${LD-ld} -m elf32_x86_64"
14714 ;;
14715 *)
14716 LD="${LD-ld} -m elf_i386"
14717 ;;
14718 esac
14719 ;;
14720 powerpc64le-*linux*)
14721 LD="${LD-ld} -m elf32lppclinux"
14722 ;;
14723 powerpc64-*linux*)
14724 LD="${LD-ld} -m elf32ppclinux"
14725 ;;
14726 s390x-*linux*)
14727 LD="${LD-ld} -m elf_s390"
14728 ;;
14729 sparc64-*linux*)
14730 LD="${LD-ld} -m elf32_sparc"
14731 ;;
14732 esac
14733 ;;
14734 *64-bit*)
14735 case $host in
14736 x86_64-*kfreebsd*-gnu)
14737 LD="${LD-ld} -m elf_x86_64_fbsd"
14738 ;;
14739 x86_64-*linux*|x86_64-gnu*)
14740 LD="${LD-ld} -m elf_x86_64"
14741 ;;
14742 powerpcle-*linux*)
14743 LD="${LD-ld} -m elf64lppc"
14744 ;;
14745 powerpc-*linux*)
14746 LD="${LD-ld} -m elf64ppc"
14747 ;;
14748 s390*-*linux*|s390*-*tpf*)
14749 LD="${LD-ld} -m elf64_s390"
14750 ;;
14751 sparc*-*linux*)
14752 LD="${LD-ld} -m elf64_sparc"
14753 ;;
14754 esac
14755 ;;
14756 esac
14757 fi
14758 rm -rf conftest*
14759 ;;
14760
14761 *-*-sco3.2v5*)
14762 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14763 SAVE_CFLAGS=$CFLAGS
14764 CFLAGS="$CFLAGS -belf"
14765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14766 printf %s "checking whether the C compiler needs -belf... " >&6; }
14767 if test ${lt_cv_cc_needs_belf+y}
14768 then :
14769 printf %s "(cached) " >&6
14770 else case e in #(
14771 e) ac_ext=c
14772 ac_cpp='$CPP $CPPFLAGS'
14773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14776
14777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14778 /* end confdefs.h. */
14779
14780 int
14781 main (void)
14782 {
14783
14784 ;
14785 return 0;
14786 }
14787 _ACEOF
14788 if ac_fn_c_try_link "$LINENO"
14789 then :
14790 lt_cv_cc_needs_belf=yes
14791 else case e in #(
14792 e) lt_cv_cc_needs_belf=no ;;
14793 esac
14794 fi
14795 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14796 conftest$ac_exeext conftest.$ac_ext
14797 ac_ext=c
14798 ac_cpp='$CPP $CPPFLAGS'
14799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14802 ;;
14803 esac
14804 fi
14805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14806 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14807 if test yes != "$lt_cv_cc_needs_belf"; then
14808 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14809 CFLAGS=$SAVE_CFLAGS
14810 fi
14811 ;;
14812 *-*solaris*)
14813 # Find out what ABI is being produced by ac_compile, and set linker
14814 # options accordingly.
14815 echo 'int i;' > conftest.$ac_ext
14816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14817 (eval $ac_compile) 2>&5
14818 ac_status=$?
14819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14820 test $ac_status = 0; }; then
14821 case `$FILECMD conftest.o` in
14822 *64-bit*)
14823 case $lt_cv_prog_gnu_ld in
14824 yes*)
14825 case $host in
14826 i?86-*-solaris*|x86_64-*-solaris*)
14827 LD="${LD-ld} -m elf_x86_64"
14828 ;;
14829 sparc*-*-solaris*)
14830 LD="${LD-ld} -m elf64_sparc"
14831 ;;
14832 esac
14833 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14834 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14835 LD=${LD-ld}_sol2
14836 fi
14837 ;;
14838 *)
14839 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14840 LD="${LD-ld} -64"
14841 fi
14842 ;;
14843 esac
14844 ;;
14845 esac
14846 fi
14847 rm -rf conftest*
14848 ;;
14849 esac
14850
14851 need_locks=$enable_libtool_lock
14852
14853 if test -n "$ac_tool_prefix"; then
14854 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14855 set dummy ${ac_tool_prefix}mt; ac_word=$2
14856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14857 printf %s "checking for $ac_word... " >&6; }
14858 if test ${ac_cv_prog_MANIFEST_TOOL+y}
14859 then :
14860 printf %s "(cached) " >&6
14861 else case e in #(
14862 e) if test -n "$MANIFEST_TOOL"; then
14863 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14864 else
14865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14866 for as_dir in $PATH
14867 do
14868 IFS=$as_save_IFS
14869 case $as_dir in #(((
14870 '') as_dir=./ ;;
14871 */) ;;
14872 *) as_dir=$as_dir/ ;;
14873 esac
14874 for ac_exec_ext in '' $ac_executable_extensions; do
14875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14876 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14878 break 2
14879 fi
14880 done
14881 done
14882 IFS=$as_save_IFS
14883
14884 fi ;;
14885 esac
14886 fi
14887 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14888 if test -n "$MANIFEST_TOOL"; then
14889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14890 printf "%s\n" "$MANIFEST_TOOL" >&6; }
14891 else
14892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14893 printf "%s\n" "no" >&6; }
14894 fi
14895
14896
14897 fi
14898 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14899 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14900 # Extract the first word of "mt", so it can be a program name with args.
14901 set dummy mt; ac_word=$2
14902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14903 printf %s "checking for $ac_word... " >&6; }
14904 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14905 then :
14906 printf %s "(cached) " >&6
14907 else case e in #(
14908 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
14909 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14910 else
14911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14912 for as_dir in $PATH
14913 do
14914 IFS=$as_save_IFS
14915 case $as_dir in #(((
14916 '') as_dir=./ ;;
14917 */) ;;
14918 *) as_dir=$as_dir/ ;;
14919 esac
14920 for ac_exec_ext in '' $ac_executable_extensions; do
14921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14922 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14924 break 2
14925 fi
14926 done
14927 done
14928 IFS=$as_save_IFS
14929
14930 fi ;;
14931 esac
14932 fi
14933 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14934 if test -n "$ac_ct_MANIFEST_TOOL"; then
14935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14936 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14937 else
14938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14939 printf "%s\n" "no" >&6; }
14940 fi
14941
14942 if test "x$ac_ct_MANIFEST_TOOL" = x; then
14943 MANIFEST_TOOL=":"
14944 else
14945 case $cross_compiling:$ac_tool_warned in
14946 yes:)
14947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14948 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14949 ac_tool_warned=yes ;;
14950 esac
14951 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14952 fi
14953 else
14954 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14955 fi
14956
14957 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14959 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14960 if test ${lt_cv_path_manifest_tool+y}
14961 then :
14962 printf %s "(cached) " >&6
14963 else case e in #(
14964 e) lt_cv_path_manifest_tool=no
14965 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14966 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14967 cat conftest.err >&5
14968 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14969 lt_cv_path_manifest_tool=yes
14970 fi
14971 rm -f conftest* ;;
14972 esac
14973 fi
14974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
14975 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
14976 if test yes != "$lt_cv_path_manifest_tool"; then
14977 MANIFEST_TOOL=:
14978 fi
14979
14980
14981
14982
14983
14984
14985 case $host_os in
14986 rhapsody* | darwin*)
14987 if test -n "$ac_tool_prefix"; then
14988 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14989 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14991 printf %s "checking for $ac_word... " >&6; }
14992 if test ${ac_cv_prog_DSYMUTIL+y}
14993 then :
14994 printf %s "(cached) " >&6
14995 else case e in #(
14996 e) if test -n "$DSYMUTIL"; then
14997 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14998 else
14999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15000 for as_dir in $PATH
15001 do
15002 IFS=$as_save_IFS
15003 case $as_dir in #(((
15004 '') as_dir=./ ;;
15005 */) ;;
15006 *) as_dir=$as_dir/ ;;
15007 esac
15008 for ac_exec_ext in '' $ac_executable_extensions; do
15009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15010 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15012 break 2
15013 fi
15014 done
15015 done
15016 IFS=$as_save_IFS
15017
15018 fi ;;
15019 esac
15020 fi
15021 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15022 if test -n "$DSYMUTIL"; then
15023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15024 printf "%s\n" "$DSYMUTIL" >&6; }
15025 else
15026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15027 printf "%s\n" "no" >&6; }
15028 fi
15029
15030
15031 fi
15032 if test -z "$ac_cv_prog_DSYMUTIL"; then
15033 ac_ct_DSYMUTIL=$DSYMUTIL
15034 # Extract the first word of "dsymutil", so it can be a program name with args.
15035 set dummy dsymutil; ac_word=$2
15036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15037 printf %s "checking for $ac_word... " >&6; }
15038 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
15039 then :
15040 printf %s "(cached) " >&6
15041 else case e in #(
15042 e) if test -n "$ac_ct_DSYMUTIL"; then
15043 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15044 else
15045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15046 for as_dir in $PATH
15047 do
15048 IFS=$as_save_IFS
15049 case $as_dir in #(((
15050 '') as_dir=./ ;;
15051 */) ;;
15052 *) as_dir=$as_dir/ ;;
15053 esac
15054 for ac_exec_ext in '' $ac_executable_extensions; do
15055 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15056 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15058 break 2
15059 fi
15060 done
15061 done
15062 IFS=$as_save_IFS
15063
15064 fi ;;
15065 esac
15066 fi
15067 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15068 if test -n "$ac_ct_DSYMUTIL"; then
15069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15070 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
15071 else
15072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15073 printf "%s\n" "no" >&6; }
15074 fi
15075
15076 if test "x$ac_ct_DSYMUTIL" = x; then
15077 DSYMUTIL=":"
15078 else
15079 case $cross_compiling:$ac_tool_warned in
15080 yes:)
15081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15082 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15083 ac_tool_warned=yes ;;
15084 esac
15085 DSYMUTIL=$ac_ct_DSYMUTIL
15086 fi
15087 else
15088 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15089 fi
15090
15091 if test -n "$ac_tool_prefix"; then
15092 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15093 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15095 printf %s "checking for $ac_word... " >&6; }
15096 if test ${ac_cv_prog_NMEDIT+y}
15097 then :
15098 printf %s "(cached) " >&6
15099 else case e in #(
15100 e) if test -n "$NMEDIT"; then
15101 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15102 else
15103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15104 for as_dir in $PATH
15105 do
15106 IFS=$as_save_IFS
15107 case $as_dir in #(((
15108 '') as_dir=./ ;;
15109 */) ;;
15110 *) as_dir=$as_dir/ ;;
15111 esac
15112 for ac_exec_ext in '' $ac_executable_extensions; do
15113 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15114 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15116 break 2
15117 fi
15118 done
15119 done
15120 IFS=$as_save_IFS
15121
15122 fi ;;
15123 esac
15124 fi
15125 NMEDIT=$ac_cv_prog_NMEDIT
15126 if test -n "$NMEDIT"; then
15127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15128 printf "%s\n" "$NMEDIT" >&6; }
15129 else
15130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15131 printf "%s\n" "no" >&6; }
15132 fi
15133
15134
15135 fi
15136 if test -z "$ac_cv_prog_NMEDIT"; then
15137 ac_ct_NMEDIT=$NMEDIT
15138 # Extract the first word of "nmedit", so it can be a program name with args.
15139 set dummy nmedit; ac_word=$2
15140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15141 printf %s "checking for $ac_word... " >&6; }
15142 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
15143 then :
15144 printf %s "(cached) " >&6
15145 else case e in #(
15146 e) if test -n "$ac_ct_NMEDIT"; then
15147 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15148 else
15149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15150 for as_dir in $PATH
15151 do
15152 IFS=$as_save_IFS
15153 case $as_dir in #(((
15154 '') as_dir=./ ;;
15155 */) ;;
15156 *) as_dir=$as_dir/ ;;
15157 esac
15158 for ac_exec_ext in '' $ac_executable_extensions; do
15159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15160 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15162 break 2
15163 fi
15164 done
15165 done
15166 IFS=$as_save_IFS
15167
15168 fi ;;
15169 esac
15170 fi
15171 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15172 if test -n "$ac_ct_NMEDIT"; then
15173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15174 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
15175 else
15176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15177 printf "%s\n" "no" >&6; }
15178 fi
15179
15180 if test "x$ac_ct_NMEDIT" = x; then
15181 NMEDIT=":"
15182 else
15183 case $cross_compiling:$ac_tool_warned in
15184 yes:)
15185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15186 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15187 ac_tool_warned=yes ;;
15188 esac
15189 NMEDIT=$ac_ct_NMEDIT
15190 fi
15191 else
15192 NMEDIT="$ac_cv_prog_NMEDIT"
15193 fi
15194
15195 if test -n "$ac_tool_prefix"; then
15196 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15197 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15199 printf %s "checking for $ac_word... " >&6; }
15200 if test ${ac_cv_prog_LIPO+y}
15201 then :
15202 printf %s "(cached) " >&6
15203 else case e in #(
15204 e) if test -n "$LIPO"; then
15205 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15206 else
15207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15208 for as_dir in $PATH
15209 do
15210 IFS=$as_save_IFS
15211 case $as_dir in #(((
15212 '') as_dir=./ ;;
15213 */) ;;
15214 *) as_dir=$as_dir/ ;;
15215 esac
15216 for ac_exec_ext in '' $ac_executable_extensions; do
15217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15218 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15220 break 2
15221 fi
15222 done
15223 done
15224 IFS=$as_save_IFS
15225
15226 fi ;;
15227 esac
15228 fi
15229 LIPO=$ac_cv_prog_LIPO
15230 if test -n "$LIPO"; then
15231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15232 printf "%s\n" "$LIPO" >&6; }
15233 else
15234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15235 printf "%s\n" "no" >&6; }
15236 fi
15237
15238
15239 fi
15240 if test -z "$ac_cv_prog_LIPO"; then
15241 ac_ct_LIPO=$LIPO
15242 # Extract the first word of "lipo", so it can be a program name with args.
15243 set dummy lipo; ac_word=$2
15244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15245 printf %s "checking for $ac_word... " >&6; }
15246 if test ${ac_cv_prog_ac_ct_LIPO+y}
15247 then :
15248 printf %s "(cached) " >&6
15249 else case e in #(
15250 e) if test -n "$ac_ct_LIPO"; then
15251 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15252 else
15253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15254 for as_dir in $PATH
15255 do
15256 IFS=$as_save_IFS
15257 case $as_dir in #(((
15258 '') as_dir=./ ;;
15259 */) ;;
15260 *) as_dir=$as_dir/ ;;
15261 esac
15262 for ac_exec_ext in '' $ac_executable_extensions; do
15263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15264 ac_cv_prog_ac_ct_LIPO="lipo"
15265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15266 break 2
15267 fi
15268 done
15269 done
15270 IFS=$as_save_IFS
15271
15272 fi ;;
15273 esac
15274 fi
15275 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15276 if test -n "$ac_ct_LIPO"; then
15277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15278 printf "%s\n" "$ac_ct_LIPO" >&6; }
15279 else
15280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15281 printf "%s\n" "no" >&6; }
15282 fi
15283
15284 if test "x$ac_ct_LIPO" = x; then
15285 LIPO=":"
15286 else
15287 case $cross_compiling:$ac_tool_warned in
15288 yes:)
15289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15290 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15291 ac_tool_warned=yes ;;
15292 esac
15293 LIPO=$ac_ct_LIPO
15294 fi
15295 else
15296 LIPO="$ac_cv_prog_LIPO"
15297 fi
15298
15299 if test -n "$ac_tool_prefix"; then
15300 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15301 set dummy ${ac_tool_prefix}otool; ac_word=$2
15302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15303 printf %s "checking for $ac_word... " >&6; }
15304 if test ${ac_cv_prog_OTOOL+y}
15305 then :
15306 printf %s "(cached) " >&6
15307 else case e in #(
15308 e) if test -n "$OTOOL"; then
15309 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15310 else
15311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15312 for as_dir in $PATH
15313 do
15314 IFS=$as_save_IFS
15315 case $as_dir in #(((
15316 '') as_dir=./ ;;
15317 */) ;;
15318 *) as_dir=$as_dir/ ;;
15319 esac
15320 for ac_exec_ext in '' $ac_executable_extensions; do
15321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15322 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15324 break 2
15325 fi
15326 done
15327 done
15328 IFS=$as_save_IFS
15329
15330 fi ;;
15331 esac
15332 fi
15333 OTOOL=$ac_cv_prog_OTOOL
15334 if test -n "$OTOOL"; then
15335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15336 printf "%s\n" "$OTOOL" >&6; }
15337 else
15338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15339 printf "%s\n" "no" >&6; }
15340 fi
15341
15342
15343 fi
15344 if test -z "$ac_cv_prog_OTOOL"; then
15345 ac_ct_OTOOL=$OTOOL
15346 # Extract the first word of "otool", so it can be a program name with args.
15347 set dummy otool; ac_word=$2
15348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15349 printf %s "checking for $ac_word... " >&6; }
15350 if test ${ac_cv_prog_ac_ct_OTOOL+y}
15351 then :
15352 printf %s "(cached) " >&6
15353 else case e in #(
15354 e) if test -n "$ac_ct_OTOOL"; then
15355 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15356 else
15357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15358 for as_dir in $PATH
15359 do
15360 IFS=$as_save_IFS
15361 case $as_dir in #(((
15362 '') as_dir=./ ;;
15363 */) ;;
15364 *) as_dir=$as_dir/ ;;
15365 esac
15366 for ac_exec_ext in '' $ac_executable_extensions; do
15367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15368 ac_cv_prog_ac_ct_OTOOL="otool"
15369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15370 break 2
15371 fi
15372 done
15373 done
15374 IFS=$as_save_IFS
15375
15376 fi ;;
15377 esac
15378 fi
15379 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15380 if test -n "$ac_ct_OTOOL"; then
15381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15382 printf "%s\n" "$ac_ct_OTOOL" >&6; }
15383 else
15384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15385 printf "%s\n" "no" >&6; }
15386 fi
15387
15388 if test "x$ac_ct_OTOOL" = x; then
15389 OTOOL=":"
15390 else
15391 case $cross_compiling:$ac_tool_warned in
15392 yes:)
15393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15394 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15395 ac_tool_warned=yes ;;
15396 esac
15397 OTOOL=$ac_ct_OTOOL
15398 fi
15399 else
15400 OTOOL="$ac_cv_prog_OTOOL"
15401 fi
15402
15403 if test -n "$ac_tool_prefix"; then
15404 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15405 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15407 printf %s "checking for $ac_word... " >&6; }
15408 if test ${ac_cv_prog_OTOOL64+y}
15409 then :
15410 printf %s "(cached) " >&6
15411 else case e in #(
15412 e) if test -n "$OTOOL64"; then
15413 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15414 else
15415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15416 for as_dir in $PATH
15417 do
15418 IFS=$as_save_IFS
15419 case $as_dir in #(((
15420 '') as_dir=./ ;;
15421 */) ;;
15422 *) as_dir=$as_dir/ ;;
15423 esac
15424 for ac_exec_ext in '' $ac_executable_extensions; do
15425 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15426 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15428 break 2
15429 fi
15430 done
15431 done
15432 IFS=$as_save_IFS
15433
15434 fi ;;
15435 esac
15436 fi
15437 OTOOL64=$ac_cv_prog_OTOOL64
15438 if test -n "$OTOOL64"; then
15439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15440 printf "%s\n" "$OTOOL64" >&6; }
15441 else
15442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15443 printf "%s\n" "no" >&6; }
15444 fi
15445
15446
15447 fi
15448 if test -z "$ac_cv_prog_OTOOL64"; then
15449 ac_ct_OTOOL64=$OTOOL64
15450 # Extract the first word of "otool64", so it can be a program name with args.
15451 set dummy otool64; ac_word=$2
15452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15453 printf %s "checking for $ac_word... " >&6; }
15454 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
15455 then :
15456 printf %s "(cached) " >&6
15457 else case e in #(
15458 e) if test -n "$ac_ct_OTOOL64"; then
15459 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15460 else
15461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15462 for as_dir in $PATH
15463 do
15464 IFS=$as_save_IFS
15465 case $as_dir in #(((
15466 '') as_dir=./ ;;
15467 */) ;;
15468 *) as_dir=$as_dir/ ;;
15469 esac
15470 for ac_exec_ext in '' $ac_executable_extensions; do
15471 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15472 ac_cv_prog_ac_ct_OTOOL64="otool64"
15473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15474 break 2
15475 fi
15476 done
15477 done
15478 IFS=$as_save_IFS
15479
15480 fi ;;
15481 esac
15482 fi
15483 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15484 if test -n "$ac_ct_OTOOL64"; then
15485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15486 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
15487 else
15488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15489 printf "%s\n" "no" >&6; }
15490 fi
15491
15492 if test "x$ac_ct_OTOOL64" = x; then
15493 OTOOL64=":"
15494 else
15495 case $cross_compiling:$ac_tool_warned in
15496 yes:)
15497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15498 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15499 ac_tool_warned=yes ;;
15500 esac
15501 OTOOL64=$ac_ct_OTOOL64
15502 fi
15503 else
15504 OTOOL64="$ac_cv_prog_OTOOL64"
15505 fi
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15534 printf %s "checking for -single_module linker flag... " >&6; }
15535 if test ${lt_cv_apple_cc_single_mod+y}
15536 then :
15537 printf %s "(cached) " >&6
15538 else case e in #(
15539 e) lt_cv_apple_cc_single_mod=no
15540 if test -z "$LT_MULTI_MODULE"; then
15541 # By default we will add the -single_module flag. You can override
15542 # by either setting the environment variable LT_MULTI_MODULE
15543 # non-empty at configure time, or by adding -multi_module to the
15544 # link flags.
15545 rm -rf libconftest.dylib*
15546 echo "int foo(void){return 1;}" > conftest.c
15547 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15548 -dynamiclib -Wl,-single_module conftest.c" >&5
15549 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15550 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15551 _lt_result=$?
15552 # If there is a non-empty error log, and "single_module"
15553 # appears in it, assume the flag caused a linker warning
15554 if test -s conftest.err && $GREP single_module conftest.err; then
15555 cat conftest.err >&5
15556 # Otherwise, if the output was created with a 0 exit code from
15557 # the compiler, it worked.
15558 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
15559 lt_cv_apple_cc_single_mod=yes
15560 else
15561 cat conftest.err >&5
15562 fi
15563 rm -rf libconftest.dylib*
15564 rm -f conftest.*
15565 fi ;;
15566 esac
15567 fi
15568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15569 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
15570
15571 # Feature test to disable chained fixups since it is not
15572 # compatible with '-undefined dynamic_lookup'
15573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
15574 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
15575 if test ${lt_cv_support_no_fixup_chains+y}
15576 then :
15577 printf %s "(cached) " >&6
15578 else case e in #(
15579 e) save_LDFLAGS=$LDFLAGS
15580 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582 /* end confdefs.h. */
15583
15584 int
15585 main (void)
15586 {
15587
15588 ;
15589 return 0;
15590 }
15591 _ACEOF
15592 if ac_fn_c_try_link "$LINENO"
15593 then :
15594 lt_cv_support_no_fixup_chains=yes
15595 else case e in #(
15596 e) lt_cv_support_no_fixup_chains=no
15597 ;;
15598 esac
15599 fi
15600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15601 conftest$ac_exeext conftest.$ac_ext
15602 LDFLAGS=$save_LDFLAGS
15603
15604 ;;
15605 esac
15606 fi
15607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
15608 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
15609
15610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15611 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
15612 if test ${lt_cv_ld_exported_symbols_list+y}
15613 then :
15614 printf %s "(cached) " >&6
15615 else case e in #(
15616 e) lt_cv_ld_exported_symbols_list=no
15617 save_LDFLAGS=$LDFLAGS
15618 echo "_main" > conftest.sym
15619 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621 /* end confdefs.h. */
15622
15623 int
15624 main (void)
15625 {
15626
15627 ;
15628 return 0;
15629 }
15630 _ACEOF
15631 if ac_fn_c_try_link "$LINENO"
15632 then :
15633 lt_cv_ld_exported_symbols_list=yes
15634 else case e in #(
15635 e) lt_cv_ld_exported_symbols_list=no ;;
15636 esac
15637 fi
15638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15639 conftest$ac_exeext conftest.$ac_ext
15640 LDFLAGS=$save_LDFLAGS
15641 ;;
15642 esac
15643 fi
15644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15645 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
15646
15647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15648 printf %s "checking for -force_load linker flag... " >&6; }
15649 if test ${lt_cv_ld_force_load+y}
15650 then :
15651 printf %s "(cached) " >&6
15652 else case e in #(
15653 e) lt_cv_ld_force_load=no
15654 cat > conftest.c << _LT_EOF
15655 int forced_loaded() { return 2;}
15656 _LT_EOF
15657 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15658 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15659 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
15660 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
15661 echo "$RANLIB libconftest.a" >&5
15662 $RANLIB libconftest.a 2>&5
15663 cat > conftest.c << _LT_EOF
15664 int main(void) { return 0;}
15665 _LT_EOF
15666 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15667 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15668 _lt_result=$?
15669 if test -s conftest.err && $GREP force_load conftest.err; then
15670 cat conftest.err >&5
15671 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
15672 lt_cv_ld_force_load=yes
15673 else
15674 cat conftest.err >&5
15675 fi
15676 rm -f conftest.err libconftest.a conftest conftest.c
15677 rm -rf conftest.dSYM
15678 ;;
15679 esac
15680 fi
15681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15682 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
15683 case $host_os in
15684 rhapsody* | darwin1.[012])
15685 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
15686 darwin1.*)
15687 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15688 darwin*)
15689 case $MACOSX_DEPLOYMENT_TARGET,$host in
15690 10.[012],*|,*powerpc*-darwin[5-8]*)
15691 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15692 *)
15693 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
15694 if test yes = "$lt_cv_support_no_fixup_chains"; then
15695 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
15696 fi
15697 ;;
15698 esac
15699 ;;
15700 esac
15701 if test yes = "$lt_cv_apple_cc_single_mod"; then
15702 _lt_dar_single_mod='$single_module'
15703 fi
15704 _lt_dar_needs_single_mod=no
15705 case $host_os in
15706 rhapsody* | darwin1.*)
15707 _lt_dar_needs_single_mod=yes ;;
15708 darwin*)
15709 # When targeting Mac OS X 10.4 (darwin 8) or later,
15710 # -single_module is the default and -multi_module is unsupported.
15711 # The toolchain on macOS 10.14 (darwin 18) and later cannot
15712 # target any OS version that needs -single_module.
15713 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15714 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
15715 _lt_dar_needs_single_mod=yes ;;
15716 esac
15717 ;;
15718 esac
15719 if test yes = "$lt_cv_ld_exported_symbols_list"; then
15720 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
15721 else
15722 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
15723 fi
15724 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
15725 _lt_dsymutil='~$DSYMUTIL $lib || :'
15726 else
15727 _lt_dsymutil=
15728 fi
15729 ;;
15730 esac
15731
15732 # func_munge_path_list VARIABLE PATH
15733 # -----------------------------------
15734 # VARIABLE is name of variable containing _space_ separated list of
15735 # directories to be munged by the contents of PATH, which is string
15736 # having a format:
15737 # "DIR[:DIR]:"
15738 # string "DIR[ DIR]" will be prepended to VARIABLE
15739 # ":DIR[:DIR]"
15740 # string "DIR[ DIR]" will be appended to VARIABLE
15741 # "DIRP[:DIRP]::[DIRA:]DIRA"
15742 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15743 # "DIRA[ DIRA]" will be appended to VARIABLE
15744 # "DIR[:DIR]"
15745 # VARIABLE will be replaced by "DIR[ DIR]"
15746 func_munge_path_list ()
15747 {
15748 case x$2 in
15749 x)
15750 ;;
15751 *:)
15752 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15753 ;;
15754 x:*)
15755 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15756 ;;
15757 *::*)
15758 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15759 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15760 ;;
15761 *)
15762 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15763 ;;
15764 esac
15765 }
15766
15767 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15768 "
15769 if test "x$ac_cv_header_dlfcn_h" = xyes
15770 then :
15771 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15772
15773 fi
15774
15775
15776
15777
15778 func_stripname_cnf ()
15779 {
15780 case $2 in
15781 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
15782 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
15783 esac
15784 } # func_stripname_cnf
15785
15786
15787
15788
15789
15790 # Set options
15791 enable_win32_dll=yes
15792
15793 case $host in
15794 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
15795 if test -n "$ac_tool_prefix"; then
15796 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
15797 set dummy ${ac_tool_prefix}as; ac_word=$2
15798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15799 printf %s "checking for $ac_word... " >&6; }
15800 if test ${ac_cv_prog_AS+y}
15801 then :
15802 printf %s "(cached) " >&6
15803 else case e in #(
15804 e) if test -n "$AS"; then
15805 ac_cv_prog_AS="$AS" # Let the user override the test.
15806 else
15807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15808 for as_dir in $PATH
15809 do
15810 IFS=$as_save_IFS
15811 case $as_dir in #(((
15812 '') as_dir=./ ;;
15813 */) ;;
15814 *) as_dir=$as_dir/ ;;
15815 esac
15816 for ac_exec_ext in '' $ac_executable_extensions; do
15817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15818 ac_cv_prog_AS="${ac_tool_prefix}as"
15819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15820 break 2
15821 fi
15822 done
15823 done
15824 IFS=$as_save_IFS
15825
15826 fi ;;
15827 esac
15828 fi
15829 AS=$ac_cv_prog_AS
15830 if test -n "$AS"; then
15831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
15832 printf "%s\n" "$AS" >&6; }
15833 else
15834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15835 printf "%s\n" "no" >&6; }
15836 fi
15837
15838
15839 fi
15840 if test -z "$ac_cv_prog_AS"; then
15841 ac_ct_AS=$AS
15842 # Extract the first word of "as", so it can be a program name with args.
15843 set dummy as; ac_word=$2
15844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15845 printf %s "checking for $ac_word... " >&6; }
15846 if test ${ac_cv_prog_ac_ct_AS+y}
15847 then :
15848 printf %s "(cached) " >&6
15849 else case e in #(
15850 e) if test -n "$ac_ct_AS"; then
15851 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
15852 else
15853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15854 for as_dir in $PATH
15855 do
15856 IFS=$as_save_IFS
15857 case $as_dir in #(((
15858 '') as_dir=./ ;;
15859 */) ;;
15860 *) as_dir=$as_dir/ ;;
15861 esac
15862 for ac_exec_ext in '' $ac_executable_extensions; do
15863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15864 ac_cv_prog_ac_ct_AS="as"
15865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15866 break 2
15867 fi
15868 done
15869 done
15870 IFS=$as_save_IFS
15871
15872 fi ;;
15873 esac
15874 fi
15875 ac_ct_AS=$ac_cv_prog_ac_ct_AS
15876 if test -n "$ac_ct_AS"; then
15877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
15878 printf "%s\n" "$ac_ct_AS" >&6; }
15879 else
15880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15881 printf "%s\n" "no" >&6; }
15882 fi
15883
15884 if test "x$ac_ct_AS" = x; then
15885 AS="false"
15886 else
15887 case $cross_compiling:$ac_tool_warned in
15888 yes:)
15889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15890 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15891 ac_tool_warned=yes ;;
15892 esac
15893 AS=$ac_ct_AS
15894 fi
15895 else
15896 AS="$ac_cv_prog_AS"
15897 fi
15898
15899 if test -n "$ac_tool_prefix"; then
15900 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15901 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15903 printf %s "checking for $ac_word... " >&6; }
15904 if test ${ac_cv_prog_DLLTOOL+y}
15905 then :
15906 printf %s "(cached) " >&6
15907 else case e in #(
15908 e) if test -n "$DLLTOOL"; then
15909 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15910 else
15911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15912 for as_dir in $PATH
15913 do
15914 IFS=$as_save_IFS
15915 case $as_dir in #(((
15916 '') as_dir=./ ;;
15917 */) ;;
15918 *) as_dir=$as_dir/ ;;
15919 esac
15920 for ac_exec_ext in '' $ac_executable_extensions; do
15921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15922 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15924 break 2
15925 fi
15926 done
15927 done
15928 IFS=$as_save_IFS
15929
15930 fi ;;
15931 esac
15932 fi
15933 DLLTOOL=$ac_cv_prog_DLLTOOL
15934 if test -n "$DLLTOOL"; then
15935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
15936 printf "%s\n" "$DLLTOOL" >&6; }
15937 else
15938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15939 printf "%s\n" "no" >&6; }
15940 fi
15941
15942
15943 fi
15944 if test -z "$ac_cv_prog_DLLTOOL"; then
15945 ac_ct_DLLTOOL=$DLLTOOL
15946 # Extract the first word of "dlltool", so it can be a program name with args.
15947 set dummy dlltool; ac_word=$2
15948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15949 printf %s "checking for $ac_word... " >&6; }
15950 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
15951 then :
15952 printf %s "(cached) " >&6
15953 else case e in #(
15954 e) if test -n "$ac_ct_DLLTOOL"; then
15955 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15956 else
15957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15958 for as_dir in $PATH
15959 do
15960 IFS=$as_save_IFS
15961 case $as_dir in #(((
15962 '') as_dir=./ ;;
15963 */) ;;
15964 *) as_dir=$as_dir/ ;;
15965 esac
15966 for ac_exec_ext in '' $ac_executable_extensions; do
15967 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15968 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15970 break 2
15971 fi
15972 done
15973 done
15974 IFS=$as_save_IFS
15975
15976 fi ;;
15977 esac
15978 fi
15979 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15980 if test -n "$ac_ct_DLLTOOL"; then
15981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
15982 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
15983 else
15984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15985 printf "%s\n" "no" >&6; }
15986 fi
15987
15988 if test "x$ac_ct_DLLTOOL" = x; then
15989 DLLTOOL="false"
15990 else
15991 case $cross_compiling:$ac_tool_warned in
15992 yes:)
15993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15994 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15995 ac_tool_warned=yes ;;
15996 esac
15997 DLLTOOL=$ac_ct_DLLTOOL
15998 fi
15999 else
16000 DLLTOOL="$ac_cv_prog_DLLTOOL"
16001 fi
16002
16003 if test -n "$ac_tool_prefix"; then
16004 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16005 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16007 printf %s "checking for $ac_word... " >&6; }
16008 if test ${ac_cv_prog_OBJDUMP+y}
16009 then :
16010 printf %s "(cached) " >&6
16011 else case e in #(
16012 e) if test -n "$OBJDUMP"; then
16013 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16014 else
16015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16016 for as_dir in $PATH
16017 do
16018 IFS=$as_save_IFS
16019 case $as_dir in #(((
16020 '') as_dir=./ ;;
16021 */) ;;
16022 *) as_dir=$as_dir/ ;;
16023 esac
16024 for ac_exec_ext in '' $ac_executable_extensions; do
16025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16026 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16028 break 2
16029 fi
16030 done
16031 done
16032 IFS=$as_save_IFS
16033
16034 fi ;;
16035 esac
16036 fi
16037 OBJDUMP=$ac_cv_prog_OBJDUMP
16038 if test -n "$OBJDUMP"; then
16039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16040 printf "%s\n" "$OBJDUMP" >&6; }
16041 else
16042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16043 printf "%s\n" "no" >&6; }
16044 fi
16045
16046
16047 fi
16048 if test -z "$ac_cv_prog_OBJDUMP"; then
16049 ac_ct_OBJDUMP=$OBJDUMP
16050 # Extract the first word of "objdump", so it can be a program name with args.
16051 set dummy objdump; ac_word=$2
16052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16053 printf %s "checking for $ac_word... " >&6; }
16054 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
16055 then :
16056 printf %s "(cached) " >&6
16057 else case e in #(
16058 e) if test -n "$ac_ct_OBJDUMP"; then
16059 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16060 else
16061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16062 for as_dir in $PATH
16063 do
16064 IFS=$as_save_IFS
16065 case $as_dir in #(((
16066 '') as_dir=./ ;;
16067 */) ;;
16068 *) as_dir=$as_dir/ ;;
16069 esac
16070 for ac_exec_ext in '' $ac_executable_extensions; do
16071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16072 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16074 break 2
16075 fi
16076 done
16077 done
16078 IFS=$as_save_IFS
16079
16080 fi ;;
16081 esac
16082 fi
16083 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16084 if test -n "$ac_ct_OBJDUMP"; then
16085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16086 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
16087 else
16088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16089 printf "%s\n" "no" >&6; }
16090 fi
16091
16092 if test "x$ac_ct_OBJDUMP" = x; then
16093 OBJDUMP="false"
16094 else
16095 case $cross_compiling:$ac_tool_warned in
16096 yes:)
16097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16098 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16099 ac_tool_warned=yes ;;
16100 esac
16101 OBJDUMP=$ac_ct_OBJDUMP
16102 fi
16103 else
16104 OBJDUMP="$ac_cv_prog_OBJDUMP"
16105 fi
16106
16107 ;;
16108 esac
16109
16110 test -z "$AS" && AS=as
16111
16112
16113
16114
16115
16116 test -z "$DLLTOOL" && DLLTOOL=dlltool
16117
16118
16119
16120
16121
16122 test -z "$OBJDUMP" && OBJDUMP=objdump
16123
16124
16125
16126
16127 enable_dlopen=yes
16128
16129
16130
16131
16132
16133 # Check whether --enable-shared was given.
16134 if test ${enable_shared+y}
16135 then :
16136 enableval=$enable_shared; p=${PACKAGE-default}
16137 case $enableval in
16138 yes) enable_shared=yes ;;
16139 no) enable_shared=no ;;
16140 *)
16141 enable_shared=no
16142 # Look at the argument we got. We use all the common list separators.
16143 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16144 for pkg in $enableval; do
16145 IFS=$lt_save_ifs
16146 if test "X$pkg" = "X$p"; then
16147 enable_shared=yes
16148 fi
16149 done
16150 IFS=$lt_save_ifs
16151 ;;
16152 esac
16153 else case e in #(
16154 e) enable_shared=yes ;;
16155 esac
16156 fi
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166 # Check whether --enable-static was given.
16167 if test ${enable_static+y}
16168 then :
16169 enableval=$enable_static; p=${PACKAGE-default}
16170 case $enableval in
16171 yes) enable_static=yes ;;
16172 no) enable_static=no ;;
16173 *)
16174 enable_static=no
16175 # Look at the argument we got. We use all the common list separators.
16176 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16177 for pkg in $enableval; do
16178 IFS=$lt_save_ifs
16179 if test "X$pkg" = "X$p"; then
16180 enable_static=yes
16181 fi
16182 done
16183 IFS=$lt_save_ifs
16184 ;;
16185 esac
16186 else case e in #(
16187 e) enable_static=yes ;;
16188 esac
16189 fi
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199 # Check whether --enable-pic was given.
16200 if test ${enable_pic+y}
16201 then :
16202 enableval=$enable_pic; lt_p=${PACKAGE-default}
16203 case $enableval in
16204 yes|no) pic_mode=$enableval ;;
16205 *)
16206 pic_mode=default
16207 # Look at the argument we got. We use all the common list separators.
16208 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16209 for lt_pkg in $enableval; do
16210 IFS=$lt_save_ifs
16211 if test "X$lt_pkg" = "X$lt_p"; then
16212 pic_mode=yes
16213 fi
16214 done
16215 IFS=$lt_save_ifs
16216 ;;
16217 esac
16218 else case e in #(
16219 e) # Check whether --with-pic was given.
16220 if test ${with_pic+y}
16221 then :
16222 withval=$with_pic; lt_p=${PACKAGE-default}
16223 case $withval in
16224 yes|no) pic_mode=$withval ;;
16225 *)
16226 pic_mode=default
16227 # Look at the argument we got. We use all the common list separators.
16228 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16229 for lt_pkg in $withval; do
16230 IFS=$lt_save_ifs
16231 if test "X$lt_pkg" = "X$lt_p"; then
16232 pic_mode=yes
16233 fi
16234 done
16235 IFS=$lt_save_ifs
16236 ;;
16237 esac
16238 else case e in #(
16239 e) pic_mode=default ;;
16240 esac
16241 fi
16242
16243 ;;
16244 esac
16245 fi
16246
16247
16248
16249
16250
16251
16252
16253
16254 # Check whether --enable-fast-install was given.
16255 if test ${enable_fast_install+y}
16256 then :
16257 enableval=$enable_fast_install; p=${PACKAGE-default}
16258 case $enableval in
16259 yes) enable_fast_install=yes ;;
16260 no) enable_fast_install=no ;;
16261 *)
16262 enable_fast_install=no
16263 # Look at the argument we got. We use all the common list separators.
16264 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16265 for pkg in $enableval; do
16266 IFS=$lt_save_ifs
16267 if test "X$pkg" = "X$p"; then
16268 enable_fast_install=yes
16269 fi
16270 done
16271 IFS=$lt_save_ifs
16272 ;;
16273 esac
16274 else case e in #(
16275 e) enable_fast_install=yes ;;
16276 esac
16277 fi
16278
16279
16280
16281
16282
16283
16284
16285
16286 shared_archive_member_spec=
16287 case $host,$enable_shared in
16288 power*-*-aix[5-9]*,yes)
16289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
16290 printf %s "checking which variant of shared library versioning to provide... " >&6; }
16291 # Check whether --enable-aix-soname was given.
16292 if test ${enable_aix_soname+y}
16293 then :
16294 enableval=$enable_aix_soname; case $enableval in
16295 aix|svr4|both)
16296 ;;
16297 *)
16298 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
16299 ;;
16300 esac
16301 lt_cv_with_aix_soname=$enable_aix_soname
16302 else case e in #(
16303 e) # Check whether --with-aix-soname was given.
16304 if test ${with_aix_soname+y}
16305 then :
16306 withval=$with_aix_soname; case $withval in
16307 aix|svr4|both)
16308 ;;
16309 *)
16310 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
16311 ;;
16312 esac
16313 lt_cv_with_aix_soname=$with_aix_soname
16314 else case e in #(
16315 e) if test ${lt_cv_with_aix_soname+y}
16316 then :
16317 printf %s "(cached) " >&6
16318 else case e in #(
16319 e) lt_cv_with_aix_soname=aix ;;
16320 esac
16321 fi
16322 ;;
16323 esac
16324 fi
16325
16326 enable_aix_soname=$lt_cv_with_aix_soname ;;
16327 esac
16328 fi
16329
16330 with_aix_soname=$enable_aix_soname
16331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
16332 printf "%s\n" "$with_aix_soname" >&6; }
16333 if test aix != "$with_aix_soname"; then
16334 # For the AIX way of multilib, we name the shared archive member
16335 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
16336 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
16337 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
16338 # the AIX toolchain works better with OBJECT_MODE set (default 32).
16339 if test 64 = "${OBJECT_MODE-32}"; then
16340 shared_archive_member_spec=shr_64
16341 else
16342 shared_archive_member_spec=shr
16343 fi
16344 fi
16345 ;;
16346 *)
16347 with_aix_soname=aix
16348 ;;
16349 esac
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360 # This can be used to rebuild libtool when needed
16361 LIBTOOL_DEPS=$ltmain
16362
16363 # Always use our own libtool.
16364 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395 test -z "$LN_S" && LN_S="ln -s"
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410 if test -n "${ZSH_VERSION+set}"; then
16411 setopt NO_GLOB_SUBST
16412 fi
16413
16414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16415 printf %s "checking for objdir... " >&6; }
16416 if test ${lt_cv_objdir+y}
16417 then :
16418 printf %s "(cached) " >&6
16419 else case e in #(
16420 e) rm -f .libs 2>/dev/null
16421 mkdir .libs 2>/dev/null
16422 if test -d .libs; then
16423 lt_cv_objdir=.libs
16424 else
16425 # MS-DOS does not allow filenames that begin with a dot.
16426 lt_cv_objdir=_libs
16427 fi
16428 rmdir .libs 2>/dev/null ;;
16429 esac
16430 fi
16431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16432 printf "%s\n" "$lt_cv_objdir" >&6; }
16433 objdir=$lt_cv_objdir
16434
16435
16436
16437
16438
16439 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
16440
16441
16442
16443
16444 case $host_os in
16445 aix3*)
16446 # AIX sometimes has problems with the GCC collect2 program. For some
16447 # reason, if we set the COLLECT_NAMES environment variable, the problems
16448 # vanish in a puff of smoke.
16449 if test set != "${COLLECT_NAMES+set}"; then
16450 COLLECT_NAMES=
16451 export COLLECT_NAMES
16452 fi
16453 ;;
16454 esac
16455
16456 # Global variables:
16457 ofile=libtool
16458 can_build_shared=yes
16459
16460 # All known linkers require a '.a' archive for static linking (except MSVC and
16461 # ICC, which need '.lib').
16462 libext=a
16463
16464 with_gnu_ld=$lt_cv_prog_gnu_ld
16465
16466 old_CC=$CC
16467 old_CFLAGS=$CFLAGS
16468
16469 # Set sane defaults for various variables
16470 test -z "$CC" && CC=cc
16471 test -z "$LTCC" && LTCC=$CC
16472 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16473 test -z "$LD" && LD=ld
16474 test -z "$ac_objext" && ac_objext=o
16475
16476 func_cc_basename $compiler
16477 cc_basename=$func_cc_basename_result
16478
16479
16480 # Only perform the check for file, if the check method requires it
16481 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16482 case $deplibs_check_method in
16483 file_magic*)
16484 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16486 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
16487 if test ${lt_cv_path_MAGIC_CMD+y}
16488 then :
16489 printf %s "(cached) " >&6
16490 else case e in #(
16491 e) case $MAGIC_CMD in
16492 [\\/*] | ?:[\\/]*)
16493 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
16494 ;;
16495 *)
16496 lt_save_MAGIC_CMD=$MAGIC_CMD
16497 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16498 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16499 for ac_dir in $ac_dummy; do
16500 IFS=$lt_save_ifs
16501 test -z "$ac_dir" && ac_dir=.
16502 if test -f "$ac_dir/${ac_tool_prefix}file"; then
16503 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
16504 if test -n "$file_magic_test_file"; then
16505 case $deplibs_check_method in
16506 "file_magic "*)
16507 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16508 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16509 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16510 $EGREP "$file_magic_regex" > /dev/null; then
16511 :
16512 else
16513 cat <<_LT_EOF 1>&2
16514
16515 *** Warning: the command libtool uses to detect shared libraries,
16516 *** $file_magic_cmd, produces output that libtool cannot recognize.
16517 *** The result is that libtool may fail to recognize shared libraries
16518 *** as such. This will affect the creation of libtool libraries that
16519 *** depend on shared libraries, but programs linked with such libtool
16520 *** libraries will work regardless of this problem. Nevertheless, you
16521 *** may want to report the problem to your system manager and/or to
16522 *** [email protected]
16523
16524 _LT_EOF
16525 fi ;;
16526 esac
16527 fi
16528 break
16529 fi
16530 done
16531 IFS=$lt_save_ifs
16532 MAGIC_CMD=$lt_save_MAGIC_CMD
16533 ;;
16534 esac ;;
16535 esac
16536 fi
16537
16538 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16539 if test -n "$MAGIC_CMD"; then
16540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16541 printf "%s\n" "$MAGIC_CMD" >&6; }
16542 else
16543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16544 printf "%s\n" "no" >&6; }
16545 fi
16546
16547
16548
16549
16550
16551 if test -z "$lt_cv_path_MAGIC_CMD"; then
16552 if test -n "$ac_tool_prefix"; then
16553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16554 printf %s "checking for file... " >&6; }
16555 if test ${lt_cv_path_MAGIC_CMD+y}
16556 then :
16557 printf %s "(cached) " >&6
16558 else case e in #(
16559 e) case $MAGIC_CMD in
16560 [\\/*] | ?:[\\/]*)
16561 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
16562 ;;
16563 *)
16564 lt_save_MAGIC_CMD=$MAGIC_CMD
16565 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16566 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16567 for ac_dir in $ac_dummy; do
16568 IFS=$lt_save_ifs
16569 test -z "$ac_dir" && ac_dir=.
16570 if test -f "$ac_dir/file"; then
16571 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
16572 if test -n "$file_magic_test_file"; then
16573 case $deplibs_check_method in
16574 "file_magic "*)
16575 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16576 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16577 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16578 $EGREP "$file_magic_regex" > /dev/null; then
16579 :
16580 else
16581 cat <<_LT_EOF 1>&2
16582
16583 *** Warning: the command libtool uses to detect shared libraries,
16584 *** $file_magic_cmd, produces output that libtool cannot recognize.
16585 *** The result is that libtool may fail to recognize shared libraries
16586 *** as such. This will affect the creation of libtool libraries that
16587 *** depend on shared libraries, but programs linked with such libtool
16588 *** libraries will work regardless of this problem. Nevertheless, you
16589 *** may want to report the problem to your system manager and/or to
16590 *** [email protected]
16591
16592 _LT_EOF
16593 fi ;;
16594 esac
16595 fi
16596 break
16597 fi
16598 done
16599 IFS=$lt_save_ifs
16600 MAGIC_CMD=$lt_save_MAGIC_CMD
16601 ;;
16602 esac ;;
16603 esac
16604 fi
16605
16606 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16607 if test -n "$MAGIC_CMD"; then
16608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16609 printf "%s\n" "$MAGIC_CMD" >&6; }
16610 else
16611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612 printf "%s\n" "no" >&6; }
16613 fi
16614
16615
16616 else
16617 MAGIC_CMD=:
16618 fi
16619 fi
16620
16621 fi
16622 ;;
16623 esac
16624
16625 # Use C for the default configuration in the libtool script
16626
16627 lt_save_CC=$CC
16628 ac_ext=c
16629 ac_cpp='$CPP $CPPFLAGS'
16630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16633
16634
16635 # Source file extension for C test sources.
16636 ac_ext=c
16637
16638 # Object file extension for compiled C test sources.
16639 objext=o
16640 objext=$objext
16641
16642 # Code to be used in simple compile tests
16643 lt_simple_compile_test_code="int some_variable = 0;"
16644
16645 # Code to be used in simple link tests
16646 lt_simple_link_test_code='int main(void){return(0);}'
16647
16648
16649
16650
16651
16652
16653
16654 # If no C compiler was specified, use CC.
16655 LTCC=${LTCC-"$CC"}
16656
16657 # If no C compiler flags were specified, use CFLAGS.
16658 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16659
16660 # Allow CC to be a program name with arguments.
16661 compiler=$CC
16662
16663 # Save the default compiler, since it gets overwritten when the other
16664 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16665 compiler_DEFAULT=$CC
16666
16667 # save warnings/boilerplate of simple test code
16668 ac_outfile=conftest.$ac_objext
16669 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16670 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16671 _lt_compiler_boilerplate=`cat conftest.err`
16672 $RM conftest*
16673
16674 ac_outfile=conftest.$ac_objext
16675 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16676 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16677 _lt_linker_boilerplate=`cat conftest.err`
16678 $RM -r conftest*
16679
16680
16681 ## CAVEAT EMPTOR:
16682 ## There is no encapsulation within the following macros, do not change
16683 ## the running order or otherwise move them around unless you know exactly
16684 ## what you are doing...
16685 if test -n "$compiler"; then
16686
16687 lt_prog_compiler_no_builtin_flag=
16688
16689 if test yes = "$GCC"; then
16690 case $cc_basename in
16691 nvcc*)
16692 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16693 *)
16694 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16695 esac
16696
16697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16698 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16699 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
16700 then :
16701 printf %s "(cached) " >&6
16702 else case e in #(
16703 e) lt_cv_prog_compiler_rtti_exceptions=no
16704 ac_outfile=conftest.$ac_objext
16705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16706 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
16707 # Insert the option either (1) after the last *FLAGS variable, or
16708 # (2) before a word containing "conftest.", or (3) at the end.
16709 # Note that $ac_compile itself does not contain backslashes and begins
16710 # with a dollar sign (not a hyphen), so the echo should work correctly.
16711 # The option is referenced via a variable to avoid confusing sed.
16712 lt_compile=`echo "$ac_compile" | $SED \
16713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16715 -e 's:$: $lt_compiler_flag:'`
16716 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16717 (eval "$lt_compile" 2>conftest.err)
16718 ac_status=$?
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 if (exit $ac_status) && test -s "$ac_outfile"; then
16722 # The compiler can only warn and ignore the option if not recognized
16723 # So say no if there are warnings other than the usual output.
16724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16726 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16727 lt_cv_prog_compiler_rtti_exceptions=yes
16728 fi
16729 fi
16730 $RM conftest*
16731 ;;
16732 esac
16733 fi
16734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16735 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16736
16737 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
16738 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16739 else
16740 :
16741 fi
16742
16743 fi
16744
16745
16746
16747
16748
16749
16750 lt_prog_compiler_wl=
16751 lt_prog_compiler_pic=
16752 lt_prog_compiler_static=
16753
16754
16755 if test yes = "$GCC"; then
16756 lt_prog_compiler_wl='-Wl,'
16757 lt_prog_compiler_static='-static'
16758
16759 case $host_os in
16760 aix*)
16761 # All AIX code is PIC.
16762 if test ia64 = "$host_cpu"; then
16763 # AIX 5 now supports IA64 processor
16764 lt_prog_compiler_static='-Bstatic'
16765 fi
16766 lt_prog_compiler_pic='-fPIC'
16767 ;;
16768
16769 amigaos*)
16770 case $host_cpu in
16771 powerpc)
16772 # see comment about AmigaOS4 .so support
16773 lt_prog_compiler_pic='-fPIC'
16774 ;;
16775 m68k)
16776 # FIXME: we need at least 68020 code to build shared libraries, but
16777 # adding the '-m68020' flag to GCC prevents building anything better,
16778 # like '-m68040'.
16779 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16780 ;;
16781 esac
16782 ;;
16783
16784 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16785 # PIC is the default for these OSes.
16786 ;;
16787
16788 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
16789 # This hack is so that the source file can tell whether it is being
16790 # built for inclusion in a dll (and should export symbols for example).
16791 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16792 # (--disable-auto-import) libraries
16793 lt_prog_compiler_pic='-DDLL_EXPORT'
16794 case $host_os in
16795 os2*)
16796 lt_prog_compiler_static='$wl-static'
16797 ;;
16798 esac
16799 ;;
16800
16801 darwin* | rhapsody*)
16802 # PIC is the default on this platform
16803 # Common symbols not allowed in MH_DYLIB files
16804 lt_prog_compiler_pic='-fno-common'
16805 ;;
16806
16807 haiku*)
16808 # PIC is the default for Haiku.
16809 # The "-static" flag exists, but is broken.
16810 lt_prog_compiler_static=
16811 ;;
16812
16813 hpux*)
16814 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16815 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16816 # sets the default TLS model and affects inlining.
16817 case $host_cpu in
16818 hppa*64*)
16819 # +Z the default
16820 ;;
16821 *)
16822 lt_prog_compiler_pic='-fPIC'
16823 ;;
16824 esac
16825 ;;
16826
16827 interix[3-9]*)
16828 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16829 # Instead, we relocate shared libraries at runtime.
16830 ;;
16831
16832 msdosdjgpp*)
16833 # Just because we use GCC doesn't mean we suddenly get shared libraries
16834 # on systems that don't support them.
16835 lt_prog_compiler_can_build_shared=no
16836 enable_shared=no
16837 ;;
16838
16839 *nto* | *qnx*)
16840 # QNX uses GNU C++, but need to define -shared option too, otherwise
16841 # it will coredump.
16842 lt_prog_compiler_pic='-fPIC -shared'
16843 ;;
16844
16845 sysv4*MP*)
16846 if test -d /usr/nec; then
16847 lt_prog_compiler_pic=-Kconform_pic
16848 fi
16849 ;;
16850
16851 *)
16852 lt_prog_compiler_pic='-fPIC'
16853 ;;
16854 esac
16855
16856 case $cc_basename in
16857 nvcc*) # Cuda Compiler Driver 2.2
16858 lt_prog_compiler_wl='-Xlinker '
16859 if test -n "$lt_prog_compiler_pic"; then
16860 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
16861 fi
16862 ;;
16863 esac
16864 else
16865 # PORTME Check for flag to pass linker flags through the system compiler.
16866 case $host_os in
16867 aix*)
16868 lt_prog_compiler_wl='-Wl,'
16869 if test ia64 = "$host_cpu"; then
16870 # AIX 5 now supports IA64 processor
16871 lt_prog_compiler_static='-Bstatic'
16872 else
16873 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16874 fi
16875 ;;
16876
16877 darwin* | rhapsody*)
16878 # PIC is the default on this platform
16879 # Common symbols not allowed in MH_DYLIB files
16880 lt_prog_compiler_pic='-fno-common'
16881 case $cc_basename in
16882 nagfor*)
16883 # NAG Fortran compiler
16884 lt_prog_compiler_wl='-Wl,-Wl,,'
16885 lt_prog_compiler_pic='-PIC'
16886 lt_prog_compiler_static='-Bstatic'
16887 ;;
16888 esac
16889 ;;
16890
16891 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
16892 # This hack is so that the source file can tell whether it is being
16893 # built for inclusion in a dll (and should export symbols for example).
16894 lt_prog_compiler_pic='-DDLL_EXPORT'
16895 case $host_os in
16896 os2*)
16897 lt_prog_compiler_static='$wl-static'
16898 ;;
16899 esac
16900 ;;
16901
16902 hpux9* | hpux10* | hpux11*)
16903 lt_prog_compiler_wl='-Wl,'
16904 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16905 # not for PA HP-UX.
16906 case $host_cpu in
16907 hppa*64*|ia64*)
16908 # +Z the default
16909 ;;
16910 *)
16911 lt_prog_compiler_pic='+Z'
16912 ;;
16913 esac
16914 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16915 lt_prog_compiler_static='$wl-a ${wl}archive'
16916 ;;
16917
16918 irix5* | irix6* | nonstopux*)
16919 lt_prog_compiler_wl='-Wl,'
16920 # PIC (with -KPIC) is the default.
16921 lt_prog_compiler_static='-non_shared'
16922 ;;
16923
16924 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16925 case $cc_basename in
16926 # old Intel for x86_64, which still supported -KPIC.
16927 ecc*)
16928 lt_prog_compiler_wl='-Wl,'
16929 lt_prog_compiler_pic='-KPIC'
16930 lt_prog_compiler_static='-static'
16931 ;;
16932 *flang* | ftn | f18* | f95*)
16933 # Flang compiler.
16934 lt_prog_compiler_wl='-Wl,'
16935 lt_prog_compiler_pic='-fPIC'
16936 lt_prog_compiler_static='-static'
16937 ;;
16938 # icc used to be incompatible with GCC.
16939 # ICC 10 doesn't accept -KPIC any more.
16940 icc* | ifort*)
16941 lt_prog_compiler_wl='-Wl,'
16942 lt_prog_compiler_pic='-fPIC'
16943 lt_prog_compiler_static='-static'
16944 ;;
16945 # Lahey Fortran 8.1.
16946 lf95*)
16947 lt_prog_compiler_wl='-Wl,'
16948 lt_prog_compiler_pic='--shared'
16949 lt_prog_compiler_static='--static'
16950 ;;
16951 nagfor*)
16952 # NAG Fortran compiler
16953 lt_prog_compiler_wl='-Wl,-Wl,,'
16954 lt_prog_compiler_pic='-PIC'
16955 lt_prog_compiler_static='-Bstatic'
16956 ;;
16957 tcc*)
16958 # Fabrice Bellard et al's Tiny C Compiler
16959 lt_prog_compiler_wl='-Wl,'
16960 lt_prog_compiler_pic='-fPIC'
16961 lt_prog_compiler_static='-static'
16962 ;;
16963 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16964 # Portland Group compilers (*not* the Pentium gcc compiler,
16965 # which looks to be a dead project)
16966 lt_prog_compiler_wl='-Wl,'
16967 lt_prog_compiler_pic='-fpic'
16968 lt_prog_compiler_static='-Bstatic'
16969 ;;
16970 ccc*)
16971 lt_prog_compiler_wl='-Wl,'
16972 # All Alpha code is PIC.
16973 lt_prog_compiler_static='-non_shared'
16974 ;;
16975 xl* | bgxl* | bgf* | mpixl*)
16976 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16977 lt_prog_compiler_wl='-Wl,'
16978 lt_prog_compiler_pic='-qpic'
16979 lt_prog_compiler_static='-qstaticlink'
16980 ;;
16981 *)
16982 case `$CC -V 2>&1 | $SED 5q` in
16983 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16984 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16985 lt_prog_compiler_pic='-KPIC'
16986 lt_prog_compiler_static='-Bstatic'
16987 lt_prog_compiler_wl=''
16988 ;;
16989 *Sun\ F* | *Sun*Fortran*)
16990 lt_prog_compiler_pic='-KPIC'
16991 lt_prog_compiler_static='-Bstatic'
16992 lt_prog_compiler_wl='-Qoption ld '
16993 ;;
16994 *Sun\ C*)
16995 # Sun C 5.9
16996 lt_prog_compiler_pic='-KPIC'
16997 lt_prog_compiler_static='-Bstatic'
16998 lt_prog_compiler_wl='-Wl,'
16999 ;;
17000 *Intel*\ [CF]*Compiler*)
17001 lt_prog_compiler_wl='-Wl,'
17002 lt_prog_compiler_pic='-fPIC'
17003 lt_prog_compiler_static='-static'
17004 ;;
17005 *Portland\ Group*)
17006 lt_prog_compiler_wl='-Wl,'
17007 lt_prog_compiler_pic='-fpic'
17008 lt_prog_compiler_static='-Bstatic'
17009 ;;
17010 esac
17011 ;;
17012 esac
17013 ;;
17014
17015 newsos6)
17016 lt_prog_compiler_pic='-KPIC'
17017 lt_prog_compiler_static='-Bstatic'
17018 ;;
17019
17020 *-mlibc)
17021 lt_prog_compiler_wl='-Wl,'
17022 lt_prog_compiler_pic='-fPIC'
17023 lt_prog_compiler_static='-static'
17024 ;;
17025
17026 *nto* | *qnx*)
17027 # QNX uses GNU C++, but need to define -shared option too, otherwise
17028 # it will coredump.
17029 lt_prog_compiler_pic='-fPIC -shared'
17030 ;;
17031
17032 osf3* | osf4* | osf5*)
17033 lt_prog_compiler_wl='-Wl,'
17034 # All OSF/1 code is PIC.
17035 lt_prog_compiler_static='-non_shared'
17036 ;;
17037
17038 rdos*)
17039 lt_prog_compiler_static='-non_shared'
17040 ;;
17041
17042 serenity*)
17043 ;;
17044
17045 solaris*)
17046 lt_prog_compiler_pic='-KPIC'
17047 lt_prog_compiler_static='-Bstatic'
17048 case $cc_basename in
17049 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
17050 lt_prog_compiler_wl='-Qoption ld ';;
17051 *)
17052 lt_prog_compiler_wl='-Wl,';;
17053 esac
17054 ;;
17055
17056 sunos4*)
17057 lt_prog_compiler_wl='-Qoption ld '
17058 lt_prog_compiler_pic='-PIC'
17059 lt_prog_compiler_static='-Bstatic'
17060 ;;
17061
17062 sysv4 | sysv4.2uw2* | sysv4.3*)
17063 lt_prog_compiler_wl='-Wl,'
17064 lt_prog_compiler_pic='-KPIC'
17065 lt_prog_compiler_static='-Bstatic'
17066 ;;
17067
17068 sysv4*MP*)
17069 if test -d /usr/nec; then
17070 lt_prog_compiler_pic='-Kconform_pic'
17071 lt_prog_compiler_static='-Bstatic'
17072 fi
17073 ;;
17074
17075 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17076 lt_prog_compiler_wl='-Wl,'
17077 lt_prog_compiler_pic='-KPIC'
17078 lt_prog_compiler_static='-Bstatic'
17079 ;;
17080
17081 unicos*)
17082 lt_prog_compiler_wl='-Wl,'
17083 lt_prog_compiler_can_build_shared=no
17084 ;;
17085
17086 uts4*)
17087 lt_prog_compiler_pic='-pic'
17088 lt_prog_compiler_static='-Bstatic'
17089 ;;
17090
17091 *)
17092 lt_prog_compiler_can_build_shared=no
17093 ;;
17094 esac
17095 fi
17096
17097 case $host_os in
17098 # For platforms that do not support PIC, -DPIC is meaningless:
17099 *djgpp*)
17100 lt_prog_compiler_pic=
17101 ;;
17102 *)
17103 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17104 ;;
17105 esac
17106
17107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17108 printf %s "checking for $compiler option to produce PIC... " >&6; }
17109 if test ${lt_cv_prog_compiler_pic+y}
17110 then :
17111 printf %s "(cached) " >&6
17112 else case e in #(
17113 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
17114 esac
17115 fi
17116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
17117 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
17118 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
17119
17120 #
17121 # Check to make sure the PIC flag actually works.
17122 #
17123 if test -n "$lt_prog_compiler_pic"; then
17124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17125 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17126 if test ${lt_cv_prog_compiler_pic_works+y}
17127 then :
17128 printf %s "(cached) " >&6
17129 else case e in #(
17130 e) lt_cv_prog_compiler_pic_works=no
17131 ac_outfile=conftest.$ac_objext
17132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17133 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
17134 # Insert the option either (1) after the last *FLAGS variable, or
17135 # (2) before a word containing "conftest.", or (3) at the end.
17136 # Note that $ac_compile itself does not contain backslashes and begins
17137 # with a dollar sign (not a hyphen), so the echo should work correctly.
17138 # The option is referenced via a variable to avoid confusing sed.
17139 lt_compile=`echo "$ac_compile" | $SED \
17140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17142 -e 's:$: $lt_compiler_flag:'`
17143 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17144 (eval "$lt_compile" 2>conftest.err)
17145 ac_status=$?
17146 cat conftest.err >&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 if (exit $ac_status) && test -s "$ac_outfile"; then
17149 # The compiler can only warn and ignore the option if not recognized
17150 # So say no if there are warnings other than the usual output.
17151 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17153 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17154 lt_cv_prog_compiler_pic_works=yes
17155 fi
17156 fi
17157 $RM conftest*
17158 ;;
17159 esac
17160 fi
17161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17162 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
17163
17164 if test yes = "$lt_cv_prog_compiler_pic_works"; then
17165 case $lt_prog_compiler_pic in
17166 "" | " "*) ;;
17167 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17168 esac
17169 else
17170 lt_prog_compiler_pic=
17171 lt_prog_compiler_can_build_shared=no
17172 fi
17173
17174 fi
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186 #
17187 # Check to make sure the static flag actually works.
17188 #
17189 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17191 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17192 if test ${lt_cv_prog_compiler_static_works+y}
17193 then :
17194 printf %s "(cached) " >&6
17195 else case e in #(
17196 e) lt_cv_prog_compiler_static_works=no
17197 save_LDFLAGS=$LDFLAGS
17198 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17199 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17200 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17201 # The linker can only warn and ignore the option if not recognized
17202 # So say no if there are warnings
17203 if test -s conftest.err; then
17204 # Append any errors to the config.log.
17205 cat conftest.err 1>&5
17206 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17208 if diff conftest.exp conftest.er2 >/dev/null; then
17209 lt_cv_prog_compiler_static_works=yes
17210 fi
17211 else
17212 lt_cv_prog_compiler_static_works=yes
17213 fi
17214 fi
17215 $RM -r conftest*
17216 LDFLAGS=$save_LDFLAGS
17217 ;;
17218 esac
17219 fi
17220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17221 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
17222
17223 if test yes = "$lt_cv_prog_compiler_static_works"; then
17224 :
17225 else
17226 lt_prog_compiler_static=
17227 fi
17228
17229
17230
17231
17232
17233
17234
17235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17236 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17237 if test ${lt_cv_prog_compiler_c_o+y}
17238 then :
17239 printf %s "(cached) " >&6
17240 else case e in #(
17241 e) lt_cv_prog_compiler_c_o=no
17242 $RM -r conftest 2>/dev/null
17243 mkdir conftest
17244 cd conftest
17245 mkdir out
17246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17247
17248 lt_compiler_flag="-o out/conftest2.$ac_objext"
17249 # Insert the option either (1) after the last *FLAGS variable, or
17250 # (2) before a word containing "conftest.", or (3) at the end.
17251 # Note that $ac_compile itself does not contain backslashes and begins
17252 # with a dollar sign (not a hyphen), so the echo should work correctly.
17253 lt_compile=`echo "$ac_compile" | $SED \
17254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17256 -e 's:$: $lt_compiler_flag:'`
17257 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17258 (eval "$lt_compile" 2>out/conftest.err)
17259 ac_status=$?
17260 cat out/conftest.err >&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17263 then
17264 # The compiler can only warn and ignore the option if not recognized
17265 # So say no if there are warnings
17266 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17267 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17268 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17269 lt_cv_prog_compiler_c_o=yes
17270 fi
17271 fi
17272 chmod u+w . 2>&5
17273 $RM conftest*
17274 # SGI C++ compiler will create directory out/ii_files/ for
17275 # template instantiation
17276 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17277 $RM out/* && rmdir out
17278 cd ..
17279 $RM -r conftest
17280 $RM conftest*
17281 ;;
17282 esac
17283 fi
17284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17285 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
17286
17287
17288
17289
17290
17291
17292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17293 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17294 if test ${lt_cv_prog_compiler_c_o+y}
17295 then :
17296 printf %s "(cached) " >&6
17297 else case e in #(
17298 e) lt_cv_prog_compiler_c_o=no
17299 $RM -r conftest 2>/dev/null
17300 mkdir conftest
17301 cd conftest
17302 mkdir out
17303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17304
17305 lt_compiler_flag="-o out/conftest2.$ac_objext"
17306 # Insert the option either (1) after the last *FLAGS variable, or
17307 # (2) before a word containing "conftest.", or (3) at the end.
17308 # Note that $ac_compile itself does not contain backslashes and begins
17309 # with a dollar sign (not a hyphen), so the echo should work correctly.
17310 lt_compile=`echo "$ac_compile" | $SED \
17311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17313 -e 's:$: $lt_compiler_flag:'`
17314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17315 (eval "$lt_compile" 2>out/conftest.err)
17316 ac_status=$?
17317 cat out/conftest.err >&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17320 then
17321 # The compiler can only warn and ignore the option if not recognized
17322 # So say no if there are warnings
17323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17324 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17325 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17326 lt_cv_prog_compiler_c_o=yes
17327 fi
17328 fi
17329 chmod u+w . 2>&5
17330 $RM conftest*
17331 # SGI C++ compiler will create directory out/ii_files/ for
17332 # template instantiation
17333 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17334 $RM out/* && rmdir out
17335 cd ..
17336 $RM -r conftest
17337 $RM conftest*
17338 ;;
17339 esac
17340 fi
17341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17342 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
17343
17344
17345
17346
17347 hard_links=nottested
17348 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
17349 # do not overwrite the value of need_locks provided by the user
17350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17351 printf %s "checking if we can lock with hard links... " >&6; }
17352 hard_links=yes
17353 $RM conftest*
17354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17355 touch conftest.a
17356 ln conftest.a conftest.b 2>&5 || hard_links=no
17357 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17359 printf "%s\n" "$hard_links" >&6; }
17360 if test no = "$hard_links"; then
17361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17362 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17363 need_locks=warn
17364 fi
17365 else
17366 need_locks=no
17367 fi
17368
17369
17370
17371
17372
17373
17374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17375 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17376
17377 runpath_var=
17378 allow_undefined_flag=
17379 always_export_symbols=no
17380 archive_cmds=
17381 archive_expsym_cmds=
17382 compiler_needs_object=no
17383 enable_shared_with_static_runtimes=no
17384 export_dynamic_flag_spec=
17385 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17386 hardcode_automatic=no
17387 hardcode_direct=no
17388 hardcode_direct_absolute=no
17389 hardcode_libdir_flag_spec=
17390 hardcode_libdir_separator=
17391 hardcode_minus_L=no
17392 hardcode_shlibpath_var=unsupported
17393 inherit_rpath=no
17394 link_all_deplibs=unknown
17395 module_cmds=
17396 module_expsym_cmds=
17397 old_archive_from_new_cmds=
17398 old_archive_from_expsyms_cmds=
17399 thread_safe_flag_spec=
17400 whole_archive_flag_spec=
17401 # include_expsyms should be a list of space-separated symbols to be *always*
17402 # included in the symbol list
17403 include_expsyms=
17404 # exclude_expsyms can be an extended regexp of symbols to exclude
17405 # it will be wrapped by ' (' and ')$', so one must not match beginning or
17406 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
17407 # as well as any symbol that contains 'd'.
17408 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17409 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17410 # platforms (ab)use it in PIC code, but their linkers get confused if
17411 # the symbol is explicitly referenced. Since portable code cannot
17412 # rely on this symbol name, it's probably fine to never include it in
17413 # preloaded symbol tables.
17414 # Exclude shared library initialization/finalization symbols.
17415 extract_expsyms_cmds=
17416
17417 case $host_os in
17418 cygwin* | mingw* | windows* | pw32* | cegcc*)
17419 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
17420 # When not using gcc, we currently assume that we are using
17421 # Microsoft Visual C++ or Intel C++ Compiler.
17422 if test yes != "$GCC"; then
17423 with_gnu_ld=no
17424 fi
17425 ;;
17426 interix*)
17427 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
17428 with_gnu_ld=yes
17429 ;;
17430 esac
17431
17432 ld_shlibs=yes
17433
17434 # On some targets, GNU ld is compatible enough with the native linker
17435 # that we're better off using the native interface for both.
17436 lt_use_gnu_ld_interface=no
17437 if test yes = "$with_gnu_ld"; then
17438 case $host_os in
17439 aix*)
17440 # The AIX port of GNU ld has always aspired to compatibility
17441 # with the native linker. However, as the warning in the GNU ld
17442 # block says, versions before 2.19.5* couldn't really create working
17443 # shared libraries, regardless of the interface used.
17444 case `$LD -v 2>&1` in
17445 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17446 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17447 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17448 *)
17449 lt_use_gnu_ld_interface=yes
17450 ;;
17451 esac
17452 ;;
17453 *)
17454 lt_use_gnu_ld_interface=yes
17455 ;;
17456 esac
17457 fi
17458
17459 if test yes = "$lt_use_gnu_ld_interface"; then
17460 # If archive_cmds runs LD, not CC, wlarc should be empty
17461 wlarc='$wl'
17462
17463 # Set some defaults for GNU ld with shared library support. These
17464 # are reset later if shared libraries are not supported. Putting them
17465 # here allows them to be overridden if necessary.
17466 runpath_var=LD_RUN_PATH
17467 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17468 export_dynamic_flag_spec='$wl--export-dynamic'
17469 # ancient GNU ld didn't support --whole-archive et. al.
17470 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17471 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17472 else
17473 whole_archive_flag_spec=
17474 fi
17475 supports_anon_versioning=no
17476 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
17477 *GNU\ gold*) supports_anon_versioning=yes ;;
17478 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17479 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17480 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17481 *\ 2.11.*) ;; # other 2.11 versions
17482 *) supports_anon_versioning=yes ;;
17483 esac
17484
17485 # See if GNU ld supports shared libraries.
17486 case $host_os in
17487 aix[3-9]*)
17488 # On AIX/PPC, the GNU linker is very broken
17489 if test ia64 != "$host_cpu"; then
17490 ld_shlibs=no
17491 cat <<_LT_EOF 1>&2
17492
17493 *** Warning: the GNU linker, at least up to release 2.19, is reported
17494 *** to be unable to reliably create shared libraries on AIX.
17495 *** Therefore, libtool is disabling shared libraries support. If you
17496 *** really care for shared libraries, you may want to install binutils
17497 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17498 *** You will then need to restart the configuration process.
17499
17500 _LT_EOF
17501 fi
17502 ;;
17503
17504 amigaos*)
17505 case $host_cpu in
17506 powerpc)
17507 # see comment about AmigaOS4 .so support
17508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17509 archive_expsym_cmds=''
17510 ;;
17511 m68k)
17512 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)'
17513 hardcode_libdir_flag_spec='-L$libdir'
17514 hardcode_minus_L=yes
17515 ;;
17516 esac
17517 ;;
17518
17519 beos*)
17520 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17521 allow_undefined_flag=unsupported
17522 # Joseph Beckenbach <[email protected]> says some releases of gcc
17523 # support --undefined. This deserves some investigation. FIXME
17524 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17525 else
17526 ld_shlibs=no
17527 fi
17528 ;;
17529
17530 cygwin* | mingw* | windows* | pw32* | cegcc*)
17531 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17532 # as there is no search path for DLLs.
17533 hardcode_libdir_flag_spec='-L$libdir'
17534 export_dynamic_flag_spec='$wl--export-all-symbols'
17535 allow_undefined_flag=unsupported
17536 always_export_symbols=no
17537 enable_shared_with_static_runtimes=yes
17538 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'
17539 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17540 file_list_spec='@'
17541
17542 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17544 # If the export-symbols file already is a .def file, use it as
17545 # is; otherwise, prepend EXPORTS...
17546 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17547 cp $export_symbols $output_objdir/$soname.def;
17548 else
17549 echo EXPORTS > $output_objdir/$soname.def;
17550 cat $export_symbols >> $output_objdir/$soname.def;
17551 fi~
17552 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17553 else
17554 ld_shlibs=no
17555 fi
17556 ;;
17557
17558 haiku*)
17559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17560 link_all_deplibs=no
17561 ;;
17562
17563 os2*)
17564 hardcode_libdir_flag_spec='-L$libdir'
17565 hardcode_minus_L=yes
17566 allow_undefined_flag=unsupported
17567 shrext_cmds=.dll
17568 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17569 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17570 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17571 $ECHO EXPORTS >> $output_objdir/$libname.def~
17572 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17573 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17574 emximp -o $lib $output_objdir/$libname.def'
17575 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17576 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17577 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17578 $ECHO EXPORTS >> $output_objdir/$libname.def~
17579 prefix_cmds="$SED"~
17580 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17581 prefix_cmds="$prefix_cmds -e 1d";
17582 fi~
17583 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17584 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17585 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17586 emximp -o $lib $output_objdir/$libname.def'
17587 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17588 enable_shared_with_static_runtimes=yes
17589 file_list_spec='@'
17590 ;;
17591
17592 interix[3-9]*)
17593 hardcode_direct=no
17594 hardcode_shlibpath_var=no
17595 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17596 export_dynamic_flag_spec='$wl-E'
17597 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17598 # Instead, shared libraries are loaded at an image base (0x10000000 by
17599 # default) and relocated if they conflict, which is a slow very memory
17600 # consuming and fragmenting process. To avoid this, we pick a random,
17601 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17602 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17603 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17604 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'
17605 ;;
17606
17607 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17608 tmp_diet=no
17609 if test linux-dietlibc = "$host_os"; then
17610 case $cc_basename in
17611 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17612 esac
17613 fi
17614 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17615 && test no = "$tmp_diet"
17616 then
17617 tmp_addflag=' $pic_flag'
17618 tmp_sharedflag='-shared'
17619 case $cc_basename,$host_cpu in
17620 pgcc*) # Portland Group C compiler
17621 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'
17622 tmp_addflag=' $pic_flag'
17623 ;;
17624 pgf77* | pgf90* | pgf95* | pgfortran*)
17625 # Portland Group f77 and f90 compilers
17626 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'
17627 tmp_addflag=' $pic_flag -Mnomain' ;;
17628 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17629 tmp_addflag=' -i_dynamic' ;;
17630 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17631 tmp_addflag=' -i_dynamic -nofor_main' ;;
17632 ifc* | ifort*) # Intel Fortran compiler
17633 tmp_addflag=' -nofor_main' ;;
17634 lf95*) # Lahey Fortran 8.1
17635 whole_archive_flag_spec=
17636 tmp_sharedflag='--shared' ;;
17637 nagfor*) # NAGFOR 5.3
17638 tmp_sharedflag='-Wl,-shared' ;;
17639 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17640 tmp_sharedflag='-qmkshrobj'
17641 tmp_addflag= ;;
17642 nvcc*) # Cuda Compiler Driver 2.2
17643 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'
17644 compiler_needs_object=yes
17645 ;;
17646 esac
17647 case `$CC -V 2>&1 | $SED 5q` in
17648 *Sun\ C*) # Sun C 5.9
17649 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'
17650 compiler_needs_object=yes
17651 tmp_sharedflag='-G' ;;
17652 *Sun\ F*) # Sun Fortran 8.3
17653 tmp_sharedflag='-G' ;;
17654 esac
17655 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17656
17657 if test yes = "$supports_anon_versioning"; then
17658 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17659 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17660 echo "local: *; };" >> $output_objdir/$libname.ver~
17661 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17662 fi
17663
17664 case $cc_basename in
17665 tcc*)
17666 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17667 export_dynamic_flag_spec='-rdynamic'
17668 ;;
17669 xlf* | bgf* | bgxlf* | mpixlf*)
17670 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17671 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17672 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17673 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
17674 if test yes = "$supports_anon_versioning"; then
17675 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17676 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17677 echo "local: *; };" >> $output_objdir/$libname.ver~
17678 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17679 fi
17680 ;;
17681 esac
17682 else
17683 ld_shlibs=no
17684 fi
17685 ;;
17686
17687 *-mlibc)
17688 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17689 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17690 ;;
17691
17692 netbsd* | netbsdelf*-gnu)
17693 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17694 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17695 wlarc=
17696 else
17697 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17698 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17699 fi
17700 ;;
17701
17702 solaris*)
17703 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17704 ld_shlibs=no
17705 cat <<_LT_EOF 1>&2
17706
17707 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17708 *** create shared libraries on Solaris systems. Therefore, libtool
17709 *** is disabling shared libraries support. We urge you to upgrade GNU
17710 *** binutils to release 2.9.1 or newer. Another option is to modify
17711 *** your PATH or compiler configuration so that the native linker is
17712 *** used, and then restart.
17713
17714 _LT_EOF
17715 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17716 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17717 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17718 else
17719 ld_shlibs=no
17720 fi
17721 ;;
17722
17723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17724 case `$LD -v 2>&1` in
17725 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17726 ld_shlibs=no
17727 cat <<_LT_EOF 1>&2
17728
17729 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
17730 *** reliably create shared libraries on SCO systems. Therefore, libtool
17731 *** is disabling shared libraries support. We urge you to upgrade GNU
17732 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17733 *** your PATH or compiler configuration so that the native linker is
17734 *** used, and then restart.
17735
17736 _LT_EOF
17737 ;;
17738 *)
17739 # For security reasons, it is highly recommended that you always
17740 # use absolute paths for naming shared libraries, and exclude the
17741 # DT_RUNPATH tag from executables and libraries. But doing so
17742 # requires that you compile everything twice, which is a pain.
17743 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17744 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17747 else
17748 ld_shlibs=no
17749 fi
17750 ;;
17751 esac
17752 ;;
17753
17754 sunos4*)
17755 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17756 wlarc=
17757 hardcode_direct=yes
17758 hardcode_shlibpath_var=no
17759 ;;
17760
17761 *)
17762 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17763 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17764 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17765 else
17766 ld_shlibs=no
17767 fi
17768 ;;
17769 esac
17770
17771 if test no = "$ld_shlibs"; then
17772 runpath_var=
17773 hardcode_libdir_flag_spec=
17774 export_dynamic_flag_spec=
17775 whole_archive_flag_spec=
17776 fi
17777 else
17778 # PORTME fill in a description of your system's linker (not GNU ld)
17779 case $host_os in
17780 aix3*)
17781 allow_undefined_flag=unsupported
17782 always_export_symbols=yes
17783 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'
17784 # Note: this linker hardcodes the directories in LIBPATH if there
17785 # are no directories specified by -L.
17786 hardcode_minus_L=yes
17787 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
17788 # Neither direct hardcoding nor static linking is supported with a
17789 # broken collect2.
17790 hardcode_direct=unsupported
17791 fi
17792 ;;
17793
17794 aix[4-9]*)
17795 if test ia64 = "$host_cpu"; then
17796 # On IA64, the linker does run time linking by default, so we don't
17797 # have to do anything special.
17798 aix_use_runtimelinking=no
17799 exp_sym_flag='-Bexport'
17800 no_entry_flag=
17801 else
17802 # If we're using GNU nm, then we don't want the "-C" option.
17803 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17804 # Without the "-l" option, or with the "-B" option, AIX nm treats
17805 # weak defined symbols like other global defined symbols, whereas
17806 # GNU nm marks them as "W".
17807 # While the 'weak' keyword is ignored in the Export File, we need
17808 # it in the Import File for the 'aix-soname' feature, so we have
17809 # to replace the "-B" option with "-P" for AIX nm.
17810 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17811 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'
17812 else
17813 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17814 fi
17815 aix_use_runtimelinking=no
17816
17817 # Test if we are trying to use run time linking or normal
17818 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17819 # have runtime linking enabled, and use it for executables.
17820 # For shared libraries, we enable/disable runtime linking
17821 # depending on the kind of the shared library created -
17822 # when "with_aix_soname,aix_use_runtimelinking" is:
17823 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
17824 # "aix,yes" lib.so shared, rtl:yes, for executables
17825 # lib.a static archive
17826 # "both,no" lib.so.V(shr.o) shared, rtl:yes
17827 # lib.a(lib.so.V) shared, rtl:no, for executables
17828 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17829 # lib.a(lib.so.V) shared, rtl:no
17830 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
17831 # lib.a static archive
17832 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17833 for ld_flag in $LDFLAGS; do
17834 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
17835 aix_use_runtimelinking=yes
17836 break
17837 fi
17838 done
17839 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17840 # With aix-soname=svr4, we create the lib.so.V shared archives only,
17841 # so we don't have lib.a shared libs to link our executables.
17842 # We have to force runtime linking in this case.
17843 aix_use_runtimelinking=yes
17844 LDFLAGS="$LDFLAGS -Wl,-brtl"
17845 fi
17846 ;;
17847 esac
17848
17849 exp_sym_flag='-bexport'
17850 no_entry_flag='-bnoentry'
17851 fi
17852
17853 # When large executables or shared objects are built, AIX ld can
17854 # have problems creating the table of contents. If linking a library
17855 # or program results in "error TOC overflow" add -mminimal-toc to
17856 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17857 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17858
17859 archive_cmds=''
17860 hardcode_direct=yes
17861 hardcode_direct_absolute=yes
17862 hardcode_libdir_separator=':'
17863 link_all_deplibs=yes
17864 file_list_spec='$wl-f,'
17865 case $with_aix_soname,$aix_use_runtimelinking in
17866 aix,*) ;; # traditional, no import file
17867 svr4,* | *,yes) # use import file
17868 # The Import File defines what to hardcode.
17869 hardcode_direct=no
17870 hardcode_direct_absolute=no
17871 ;;
17872 esac
17873
17874 if test yes = "$GCC"; then
17875 case $host_os in aix4.[012]|aix4.[012].*)
17876 # We only want to do this on AIX 4.2 and lower, the check
17877 # below for broken collect2 doesn't work under 4.3+
17878 collect2name=`$CC -print-prog-name=collect2`
17879 if test -f "$collect2name" &&
17880 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17881 then
17882 # We have reworked collect2
17883 :
17884 else
17885 # We have old collect2
17886 hardcode_direct=unsupported
17887 # It fails to find uninstalled libraries when the uninstalled
17888 # path is not listed in the libpath. Setting hardcode_minus_L
17889 # to unsupported forces relinking
17890 hardcode_minus_L=yes
17891 hardcode_libdir_flag_spec='-L$libdir'
17892 hardcode_libdir_separator=
17893 fi
17894 ;;
17895 esac
17896 shared_flag='-shared'
17897 if test yes = "$aix_use_runtimelinking"; then
17898 shared_flag="$shared_flag "'$wl-G'
17899 fi
17900 # Need to ensure runtime linking is disabled for the traditional
17901 # shared library, or the linker may eventually find shared libraries
17902 # /with/ Import File - we do not want to mix them.
17903 shared_flag_aix='-shared'
17904 shared_flag_svr4='-shared $wl-G'
17905 else
17906 # not using gcc
17907 if test ia64 = "$host_cpu"; then
17908 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17909 # chokes on -Wl,-G. The following line is correct:
17910 shared_flag='-G'
17911 else
17912 if test yes = "$aix_use_runtimelinking"; then
17913 shared_flag='$wl-G'
17914 else
17915 shared_flag='$wl-bM:SRE'
17916 fi
17917 shared_flag_aix='$wl-bM:SRE'
17918 shared_flag_svr4='$wl-G'
17919 fi
17920 fi
17921
17922 export_dynamic_flag_spec='$wl-bexpall'
17923 # It seems that -bexpall does not export symbols beginning with
17924 # underscore (_), so it is better to generate a list of symbols to export.
17925 always_export_symbols=yes
17926 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17927 # Warning - without using the other runtime loading flags (-brtl),
17928 # -berok will link without error, but may produce a broken library.
17929 allow_undefined_flag='-berok'
17930 # Determine the default libpath from the value encoded in an
17931 # empty executable.
17932 if test set = "${lt_cv_aix_libpath+set}"; then
17933 aix_libpath=$lt_cv_aix_libpath
17934 else
17935 if test ${lt_cv_aix_libpath_+y}
17936 then :
17937 printf %s "(cached) " >&6
17938 else case e in #(
17939 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h. */
17941
17942 int
17943 main (void)
17944 {
17945
17946 ;
17947 return 0;
17948 }
17949 _ACEOF
17950 if ac_fn_c_try_link "$LINENO"
17951 then :
17952
17953 lt_aix_libpath_sed='
17954 /Import File Strings/,/^$/ {
17955 /^0/ {
17956 s/^0 *\([^ ]*\) *$/\1/
17957 p
17958 }
17959 }'
17960 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17961 # Check for a 64-bit object if we didn't find anything.
17962 if test -z "$lt_cv_aix_libpath_"; then
17963 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17964 fi
17965 fi
17966 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17967 conftest$ac_exeext conftest.$ac_ext
17968 if test -z "$lt_cv_aix_libpath_"; then
17969 lt_cv_aix_libpath_=/usr/lib:/lib
17970 fi
17971 ;;
17972 esac
17973 fi
17974
17975 aix_libpath=$lt_cv_aix_libpath_
17976 fi
17977
17978 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17979 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
17980 else
17981 if test ia64 = "$host_cpu"; then
17982 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
17983 allow_undefined_flag="-z nodefs"
17984 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"
17985 else
17986 # Determine the default libpath from the value encoded in an
17987 # empty executable.
17988 if test set = "${lt_cv_aix_libpath+set}"; then
17989 aix_libpath=$lt_cv_aix_libpath
17990 else
17991 if test ${lt_cv_aix_libpath_+y}
17992 then :
17993 printf %s "(cached) " >&6
17994 else case e in #(
17995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17996 /* end confdefs.h. */
17997
17998 int
17999 main (void)
18000 {
18001
18002 ;
18003 return 0;
18004 }
18005 _ACEOF
18006 if ac_fn_c_try_link "$LINENO"
18007 then :
18008
18009 lt_aix_libpath_sed='
18010 /Import File Strings/,/^$/ {
18011 /^0/ {
18012 s/^0 *\([^ ]*\) *$/\1/
18013 p
18014 }
18015 }'
18016 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18017 # Check for a 64-bit object if we didn't find anything.
18018 if test -z "$lt_cv_aix_libpath_"; then
18019 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18020 fi
18021 fi
18022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18023 conftest$ac_exeext conftest.$ac_ext
18024 if test -z "$lt_cv_aix_libpath_"; then
18025 lt_cv_aix_libpath_=/usr/lib:/lib
18026 fi
18027 ;;
18028 esac
18029 fi
18030
18031 aix_libpath=$lt_cv_aix_libpath_
18032 fi
18033
18034 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
18035 # Warning - without using the other run time loading flags,
18036 # -berok will link without error, but may produce a broken library.
18037 no_undefined_flag=' $wl-bernotok'
18038 allow_undefined_flag=' $wl-berok'
18039 if test yes = "$with_gnu_ld"; then
18040 # We only use this code for GNU lds that support --whole-archive.
18041 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
18042 else
18043 # Exported symbols can be pulled into shared objects from archives
18044 whole_archive_flag_spec='$convenience'
18045 fi
18046 archive_cmds_need_lc=yes
18047 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
18048 # -brtl affects multiple linker settings, -berok does not and is overridden later
18049 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
18050 if test svr4 != "$with_aix_soname"; then
18051 # This is similar to how AIX traditionally builds its shared libraries.
18052 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'
18053 fi
18054 if test aix != "$with_aix_soname"; then
18055 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'
18056 else
18057 # used by -dlpreopen to get the symbols
18058 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
18059 fi
18060 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
18061 fi
18062 fi
18063 ;;
18064
18065 amigaos*)
18066 case $host_cpu in
18067 powerpc)
18068 # see comment about AmigaOS4 .so support
18069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18070 archive_expsym_cmds=''
18071 ;;
18072 m68k)
18073 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)'
18074 hardcode_libdir_flag_spec='-L$libdir'
18075 hardcode_minus_L=yes
18076 ;;
18077 esac
18078 ;;
18079
18080 bsdi[45]*)
18081 export_dynamic_flag_spec=-rdynamic
18082 ;;
18083
18084 cygwin* | mingw* | windows* | pw32* | cegcc*)
18085 # When not using gcc, we currently assume that we are using
18086 # Microsoft Visual C++ or Intel C++ Compiler.
18087 # hardcode_libdir_flag_spec is actually meaningless, as there is
18088 # no search path for DLLs.
18089 case $cc_basename in
18090 cl* | icl*)
18091 # Native MSVC or ICC
18092 hardcode_libdir_flag_spec=' '
18093 allow_undefined_flag=unsupported
18094 always_export_symbols=yes
18095 file_list_spec='@'
18096 # Tell ltmain to make .lib files, not .a files.
18097 libext=lib
18098 # Tell ltmain to make .dll files, not .so files.
18099 shrext_cmds=.dll
18100 # FIXME: Setting linknames here is a bad hack.
18101 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
18102 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
18103 cp "$export_symbols" "$output_objdir/$soname.def";
18104 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
18105 else
18106 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
18107 fi~
18108 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18109 linknames='
18110 # The linker will not automatically build a static lib if we build a DLL.
18111 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
18112 enable_shared_with_static_runtimes=yes
18113 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18114 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18115 # Don't use ranlib
18116 old_postinstall_cmds='chmod 644 $oldlib'
18117 postlink_cmds='lt_outputfile="@OUTPUT@"~
18118 lt_tool_outputfile="@TOOL_OUTPUT@"~
18119 case $lt_outputfile in
18120 *.exe|*.EXE) ;;
18121 *)
18122 lt_outputfile=$lt_outputfile.exe
18123 lt_tool_outputfile=$lt_tool_outputfile.exe
18124 ;;
18125 esac~
18126 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
18127 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18128 $RM "$lt_outputfile.manifest";
18129 fi'
18130 ;;
18131 *)
18132 # Assume MSVC and ICC wrapper
18133 hardcode_libdir_flag_spec=' '
18134 allow_undefined_flag=unsupported
18135 # Tell ltmain to make .lib files, not .a files.
18136 libext=lib
18137 # Tell ltmain to make .dll files, not .so files.
18138 shrext_cmds=.dll
18139 # FIXME: Setting linknames here is a bad hack.
18140 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18141 # The linker will automatically build a .lib file if we build a DLL.
18142 old_archive_from_new_cmds='true'
18143 # FIXME: Should let the user specify the lib program.
18144 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18145 enable_shared_with_static_runtimes=yes
18146 ;;
18147 esac
18148 ;;
18149
18150 darwin* | rhapsody*)
18151
18152
18153 archive_cmds_need_lc=no
18154 hardcode_direct=no
18155 hardcode_automatic=yes
18156 hardcode_shlibpath_var=unsupported
18157 if test yes = "$lt_cv_ld_force_load"; then
18158 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\"`'
18159
18160 else
18161 whole_archive_flag_spec=''
18162 fi
18163 link_all_deplibs=yes
18164 allow_undefined_flag=$_lt_dar_allow_undefined
18165 case $cc_basename in
18166 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
18167 *) _lt_dar_can_shared=$GCC ;;
18168 esac
18169 if test yes = "$_lt_dar_can_shared"; then
18170 output_verbose_link_cmd=func_echo_all
18171 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
18172 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
18173 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"
18174 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"
18175
18176 else
18177 ld_shlibs=no
18178 fi
18179
18180 ;;
18181
18182 dgux*)
18183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18184 hardcode_libdir_flag_spec='-L$libdir'
18185 hardcode_shlibpath_var=no
18186 ;;
18187
18188 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18189 # support. Future versions do this automatically, but an explicit c++rt0.o
18190 # does not break anything, and helps significantly (at the cost of a little
18191 # extra space).
18192 freebsd2.2*)
18193 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18194 hardcode_libdir_flag_spec='-R$libdir'
18195 hardcode_direct=yes
18196 hardcode_shlibpath_var=no
18197 ;;
18198
18199 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18200 freebsd2.*)
18201 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18202 hardcode_direct=yes
18203 hardcode_minus_L=yes
18204 hardcode_shlibpath_var=no
18205 ;;
18206
18207 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18208 freebsd* | dragonfly* | midnightbsd*)
18209 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18210 hardcode_libdir_flag_spec='-R$libdir'
18211 hardcode_direct=yes
18212 hardcode_shlibpath_var=no
18213 ;;
18214
18215 hpux9*)
18216 if test yes = "$GCC"; then
18217 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'
18218 else
18219 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'
18220 fi
18221 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18222 hardcode_libdir_separator=:
18223 hardcode_direct=yes
18224
18225 # hardcode_minus_L: Not really in the search PATH,
18226 # but as the default location of the library.
18227 hardcode_minus_L=yes
18228 export_dynamic_flag_spec='$wl-E'
18229 ;;
18230
18231 hpux10*)
18232 if test yes,no = "$GCC,$with_gnu_ld"; then
18233 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18234 else
18235 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18236 fi
18237 if test no = "$with_gnu_ld"; then
18238 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18239 hardcode_libdir_separator=:
18240 hardcode_direct=yes
18241 hardcode_direct_absolute=yes
18242 export_dynamic_flag_spec='$wl-E'
18243 # hardcode_minus_L: Not really in the search PATH,
18244 # but as the default location of the library.
18245 hardcode_minus_L=yes
18246 fi
18247 ;;
18248
18249 hpux11*)
18250 if test yes,no = "$GCC,$with_gnu_ld"; then
18251 case $host_cpu in
18252 hppa*64*)
18253 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18254 ;;
18255 ia64*)
18256 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18257 ;;
18258 *)
18259 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18260 ;;
18261 esac
18262 else
18263 case $host_cpu in
18264 hppa*64*)
18265 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18266 ;;
18267 ia64*)
18268 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18269 ;;
18270 *)
18271
18272 # Older versions of the 11.00 compiler do not understand -b yet
18273 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18275 printf %s "checking if $CC understands -b... " >&6; }
18276 if test ${lt_cv_prog_compiler__b+y}
18277 then :
18278 printf %s "(cached) " >&6
18279 else case e in #(
18280 e) lt_cv_prog_compiler__b=no
18281 save_LDFLAGS=$LDFLAGS
18282 LDFLAGS="$LDFLAGS -b"
18283 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18284 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18285 # The linker can only warn and ignore the option if not recognized
18286 # So say no if there are warnings
18287 if test -s conftest.err; then
18288 # Append any errors to the config.log.
18289 cat conftest.err 1>&5
18290 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18291 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18292 if diff conftest.exp conftest.er2 >/dev/null; then
18293 lt_cv_prog_compiler__b=yes
18294 fi
18295 else
18296 lt_cv_prog_compiler__b=yes
18297 fi
18298 fi
18299 $RM -r conftest*
18300 LDFLAGS=$save_LDFLAGS
18301 ;;
18302 esac
18303 fi
18304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18305 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
18306
18307 if test yes = "$lt_cv_prog_compiler__b"; then
18308 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18309 else
18310 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18311 fi
18312
18313 ;;
18314 esac
18315 fi
18316 if test no = "$with_gnu_ld"; then
18317 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18318 hardcode_libdir_separator=:
18319
18320 case $host_cpu in
18321 hppa*64*|ia64*)
18322 hardcode_direct=no
18323 hardcode_shlibpath_var=no
18324 ;;
18325 *)
18326 hardcode_direct=yes
18327 hardcode_direct_absolute=yes
18328 export_dynamic_flag_spec='$wl-E'
18329
18330 # hardcode_minus_L: Not really in the search PATH,
18331 # but as the default location of the library.
18332 hardcode_minus_L=yes
18333 ;;
18334 esac
18335 fi
18336 ;;
18337
18338 irix5* | irix6* | nonstopux*)
18339 if test yes = "$GCC"; then
18340 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'
18341 # Try to use the -exported_symbol ld option, if it does not
18342 # work, assume that -exports_file does not work either and
18343 # implicitly export all symbols.
18344 # This should be the same for all languages, so no per-tag cache variable.
18345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
18346 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
18347 if test ${lt_cv_irix_exported_symbol+y}
18348 then :
18349 printf %s "(cached) " >&6
18350 else case e in #(
18351 e) save_LDFLAGS=$LDFLAGS
18352 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
18353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18354 /* end confdefs.h. */
18355 int foo (void) { return 0; }
18356 _ACEOF
18357 if ac_fn_c_try_link "$LINENO"
18358 then :
18359 lt_cv_irix_exported_symbol=yes
18360 else case e in #(
18361 e) lt_cv_irix_exported_symbol=no ;;
18362 esac
18363 fi
18364 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18365 conftest$ac_exeext conftest.$ac_ext
18366 LDFLAGS=$save_LDFLAGS ;;
18367 esac
18368 fi
18369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
18370 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
18371 if test yes = "$lt_cv_irix_exported_symbol"; then
18372 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'
18373 fi
18374 else
18375 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'
18376 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'
18377 fi
18378 archive_cmds_need_lc='no'
18379 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18380 hardcode_libdir_separator=:
18381 inherit_rpath=yes
18382 link_all_deplibs=yes
18383 ;;
18384
18385 linux*)
18386 case $cc_basename in
18387 tcc*)
18388 # Fabrice Bellard et al's Tiny C Compiler
18389 ld_shlibs=yes
18390 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18391 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18392 ;;
18393 esac
18394 ;;
18395
18396 *-mlibc)
18397 ;;
18398
18399 netbsd* | netbsdelf*-gnu)
18400 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18402 else
18403 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18404 fi
18405 hardcode_libdir_flag_spec='-R$libdir'
18406 hardcode_direct=yes
18407 hardcode_shlibpath_var=no
18408 ;;
18409
18410 newsos6)
18411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18412 hardcode_direct=yes
18413 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18414 hardcode_libdir_separator=:
18415 hardcode_shlibpath_var=no
18416 ;;
18417
18418 *nto* | *qnx*)
18419 ;;
18420
18421 openbsd*)
18422 if test -f /usr/libexec/ld.so; then
18423 hardcode_direct=yes
18424 hardcode_shlibpath_var=no
18425 hardcode_direct_absolute=yes
18426 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18427 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18428 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
18429 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18430 export_dynamic_flag_spec='$wl-E'
18431 else
18432 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18433 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18434 fi
18435 else
18436 ld_shlibs=no
18437 fi
18438 ;;
18439
18440 os2*)
18441 hardcode_libdir_flag_spec='-L$libdir'
18442 hardcode_minus_L=yes
18443 allow_undefined_flag=unsupported
18444 shrext_cmds=.dll
18445 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18446 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18447 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18448 $ECHO EXPORTS >> $output_objdir/$libname.def~
18449 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
18450 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18451 emximp -o $lib $output_objdir/$libname.def'
18452 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18453 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18454 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18455 $ECHO EXPORTS >> $output_objdir/$libname.def~
18456 prefix_cmds="$SED"~
18457 if test EXPORTS = "`$SED 1q $export_symbols`"; then
18458 prefix_cmds="$prefix_cmds -e 1d";
18459 fi~
18460 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
18461 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
18462 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18463 emximp -o $lib $output_objdir/$libname.def'
18464 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
18465 enable_shared_with_static_runtimes=yes
18466 file_list_spec='@'
18467 ;;
18468
18469 osf3*)
18470 if test yes = "$GCC"; then
18471 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
18472 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'
18473 else
18474 allow_undefined_flag=' -expect_unresolved \*'
18475 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'
18476 fi
18477 archive_cmds_need_lc='no'
18478 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18479 hardcode_libdir_separator=:
18480 ;;
18481
18482 osf4* | osf5*) # as osf3* with the addition of -msym flag
18483 if test yes = "$GCC"; then
18484 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
18485 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'
18486 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18487 else
18488 allow_undefined_flag=' -expect_unresolved \*'
18489 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'
18490 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~
18491 $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'
18492
18493 # Both c and cxx compiler support -rpath directly
18494 hardcode_libdir_flag_spec='-rpath $libdir'
18495 fi
18496 archive_cmds_need_lc='no'
18497 hardcode_libdir_separator=:
18498 ;;
18499
18500 serenity*)
18501 ;;
18502
18503 solaris*)
18504 no_undefined_flag=' -z defs'
18505 if test yes = "$GCC"; then
18506 wlarc='$wl'
18507 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18508 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18509 $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'
18510 else
18511 case `$CC -V 2>&1` in
18512 *"Compilers 5.0"*)
18513 wlarc=''
18514 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
18515 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18516 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18517 ;;
18518 *)
18519 wlarc='$wl'
18520 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18521 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18522 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18523 ;;
18524 esac
18525 fi
18526 hardcode_libdir_flag_spec='-R$libdir'
18527 hardcode_shlibpath_var=no
18528 case $host_os in
18529 solaris2.[0-5] | solaris2.[0-5].*) ;;
18530 *)
18531 # The compiler driver will combine and reorder linker options,
18532 # but understands '-z linker_flag'. GCC discards it without '$wl',
18533 # but is careful enough not to reorder.
18534 # Supported since Solaris 2.6 (maybe 2.5.1?)
18535 if test yes = "$GCC"; then
18536 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
18537 else
18538 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18539 fi
18540 ;;
18541 esac
18542 link_all_deplibs=yes
18543 ;;
18544
18545 sunos4*)
18546 if test sequent = "$host_vendor"; then
18547 # Use $CC to link under sequent, because it throws in some extra .o
18548 # files that make .init and .fini sections work.
18549 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18550 else
18551 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18552 fi
18553 hardcode_libdir_flag_spec='-L$libdir'
18554 hardcode_direct=yes
18555 hardcode_minus_L=yes
18556 hardcode_shlibpath_var=no
18557 ;;
18558
18559 sysv4)
18560 case $host_vendor in
18561 sni)
18562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18563 hardcode_direct=yes # is this really true???
18564 ;;
18565 siemens)
18566 ## LD is ld it makes a PLAMLIB
18567 ## CC just makes a GrossModule.
18568 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18569 reload_cmds='$CC -r -o $output$reload_objs'
18570 hardcode_direct=no
18571 ;;
18572 motorola)
18573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18574 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18575 ;;
18576 esac
18577 runpath_var='LD_RUN_PATH'
18578 hardcode_shlibpath_var=no
18579 ;;
18580
18581 sysv4.3*)
18582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18583 hardcode_shlibpath_var=no
18584 export_dynamic_flag_spec='-Bexport'
18585 ;;
18586
18587 sysv4*MP*)
18588 if test -d /usr/nec; then
18589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18590 hardcode_shlibpath_var=no
18591 runpath_var=LD_RUN_PATH
18592 hardcode_runpath_var=yes
18593 ld_shlibs=yes
18594 fi
18595 ;;
18596
18597 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18598 no_undefined_flag='$wl-z,text'
18599 archive_cmds_need_lc=no
18600 hardcode_shlibpath_var=no
18601 runpath_var='LD_RUN_PATH'
18602
18603 if test yes = "$GCC"; then
18604 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18605 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18606 else
18607 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18608 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18609 fi
18610 ;;
18611
18612 sysv5* | sco3.2v5* | sco5v6*)
18613 # Note: We CANNOT use -z defs as we might desire, because we do not
18614 # link with -lc, and that would cause any symbols used from libc to
18615 # always be unresolved, which means just about no library would
18616 # ever link correctly. If we're not using GNU ld we use -z text
18617 # though, which does catch some bad symbols but isn't as heavy-handed
18618 # as -z defs.
18619 no_undefined_flag='$wl-z,text'
18620 allow_undefined_flag='$wl-z,nodefs'
18621 archive_cmds_need_lc=no
18622 hardcode_shlibpath_var=no
18623 hardcode_libdir_flag_spec='$wl-R,$libdir'
18624 hardcode_libdir_separator=':'
18625 link_all_deplibs=yes
18626 export_dynamic_flag_spec='$wl-Bexport'
18627 runpath_var='LD_RUN_PATH'
18628
18629 if test yes = "$GCC"; then
18630 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18631 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18632 else
18633 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18634 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18635 fi
18636 ;;
18637
18638 uts4*)
18639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18640 hardcode_libdir_flag_spec='-L$libdir'
18641 hardcode_shlibpath_var=no
18642 ;;
18643
18644 *)
18645 ld_shlibs=no
18646 ;;
18647 esac
18648
18649 if test sni = "$host_vendor"; then
18650 case $host in
18651 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18652 export_dynamic_flag_spec='$wl-Blargedynsym'
18653 ;;
18654 esac
18655 fi
18656 fi
18657
18658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18659 printf "%s\n" "$ld_shlibs" >&6; }
18660 test no = "$ld_shlibs" && can_build_shared=no
18661
18662 with_gnu_ld=$with_gnu_ld
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678 #
18679 # Do we need to explicitly link libc?
18680 #
18681 case "x$archive_cmds_need_lc" in
18682 x|xyes)
18683 # Assume -lc should be added
18684 archive_cmds_need_lc=yes
18685
18686 if test yes,yes = "$GCC,$enable_shared"; then
18687 case $archive_cmds in
18688 *'~'*)
18689 # FIXME: we may have to deal with multi-command sequences.
18690 ;;
18691 '$CC '*)
18692 # Test whether the compiler implicitly links with -lc since on some
18693 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18694 # to ld, don't add -lc before -lgcc.
18695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18696 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
18697 if test ${lt_cv_archive_cmds_need_lc+y}
18698 then :
18699 printf %s "(cached) " >&6
18700 else case e in #(
18701 e) $RM conftest*
18702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18703
18704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18705 (eval $ac_compile) 2>&5
18706 ac_status=$?
18707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18708 test $ac_status = 0; } 2>conftest.err; then
18709 soname=conftest
18710 lib=conftest
18711 libobjs=conftest.$ac_objext
18712 deplibs=
18713 wl=$lt_prog_compiler_wl
18714 pic_flag=$lt_prog_compiler_pic
18715 compiler_flags=-v
18716 linker_flags=-v
18717 verstring=
18718 output_objdir=.
18719 libname=conftest
18720 lt_save_allow_undefined_flag=$allow_undefined_flag
18721 allow_undefined_flag=
18722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18723 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18724 ac_status=$?
18725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18726 test $ac_status = 0; }
18727 then
18728 lt_cv_archive_cmds_need_lc=no
18729 else
18730 lt_cv_archive_cmds_need_lc=yes
18731 fi
18732 allow_undefined_flag=$lt_save_allow_undefined_flag
18733 else
18734 cat conftest.err 1>&5
18735 fi
18736 $RM conftest*
18737 ;;
18738 esac
18739 fi
18740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18741 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
18742 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18743 ;;
18744 esac
18745 fi
18746 ;;
18747 esac
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18901 printf %s "checking dynamic linker characteristics... " >&6; }
18902
18903 if test yes = "$GCC"; then
18904 case $host_os in
18905 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
18906 *) lt_awk_arg='/^libraries:/' ;;
18907 esac
18908 case $host_os in
18909 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
18910 *) lt_sed_strip_eq='s|=/|/|g' ;;
18911 esac
18912 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18913 case $lt_search_path_spec in
18914 *\;*)
18915 # if the path contains ";" then we assume it to be the separator
18916 # otherwise default to the standard path separator (i.e. ":") - it is
18917 # assumed that no part of a normal pathname contains ";" but that should
18918 # okay in the real world where ";" in dirpaths is itself problematic.
18919 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18920 ;;
18921 *)
18922 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18923 ;;
18924 esac
18925 # Ok, now we have the path, separated by spaces, we can step through it
18926 # and add multilib dir if necessary...
18927 lt_tmp_lt_search_path_spec=
18928 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18929 # ...but if some path component already ends with the multilib dir we assume
18930 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
18931 case "$lt_multi_os_dir; $lt_search_path_spec " in
18932 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
18933 lt_multi_os_dir=
18934 ;;
18935 esac
18936 for lt_sys_path in $lt_search_path_spec; do
18937 if test -d "$lt_sys_path$lt_multi_os_dir"; then
18938 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
18939 elif test -n "$lt_multi_os_dir"; then
18940 test -d "$lt_sys_path" && \
18941 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18942 fi
18943 done
18944 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18945 BEGIN {RS = " "; FS = "/|\n";} {
18946 lt_foo = "";
18947 lt_count = 0;
18948 for (lt_i = NF; lt_i > 0; lt_i--) {
18949 if ($lt_i != "" && $lt_i != ".") {
18950 if ($lt_i == "..") {
18951 lt_count++;
18952 } else {
18953 if (lt_count == 0) {
18954 lt_foo = "/" $lt_i lt_foo;
18955 } else {
18956 lt_count--;
18957 }
18958 }
18959 }
18960 }
18961 if (lt_foo != "") { lt_freq[lt_foo]++; }
18962 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18963 }'`
18964 # AWK program above erroneously prepends '/' to C:/dos/paths
18965 # for these hosts.
18966 case $host_os in
18967 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18968 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
18969 esac
18970 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18971 else
18972 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18973 fi
18974 library_names_spec=
18975 libname_spec='lib$name'
18976 soname_spec=
18977 shrext_cmds=.so
18978 postinstall_cmds=
18979 postuninstall_cmds=
18980 finish_cmds=
18981 finish_eval=
18982 shlibpath_var=
18983 shlibpath_overrides_runpath=unknown
18984 version_type=none
18985 dynamic_linker="$host_os ld.so"
18986 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18987 need_lib_prefix=unknown
18988 hardcode_into_libs=no
18989
18990 # when you set need_version to no, make sure it does not cause -set_version
18991 # flags to be left without arguments
18992 need_version=unknown
18993
18994
18995
18996 case $host_os in
18997 aix3*)
18998 version_type=linux # correct to gnu/linux during the next big refactor
18999 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
19000 shlibpath_var=LIBPATH
19001
19002 # AIX 3 has no versioning support, so we append a major version to the name.
19003 soname_spec='$libname$release$shared_ext$major'
19004 ;;
19005
19006 aix[4-9]*)
19007 version_type=linux # correct to gnu/linux during the next big refactor
19008 need_lib_prefix=no
19009 need_version=no
19010 hardcode_into_libs=yes
19011 if test ia64 = "$host_cpu"; then
19012 # AIX 5 supports IA64
19013 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
19014 shlibpath_var=LD_LIBRARY_PATH
19015 else
19016 # With GCC up to 2.95.x, collect2 would create an import file
19017 # for dependence libraries. The import file would start with
19018 # the line '#! .'. This would cause the generated library to
19019 # depend on '.', always an invalid library. This was fixed in
19020 # development snapshots of GCC prior to 3.0.
19021 case $host_os in
19022 aix4 | aix4.[01] | aix4.[01].*)
19023 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19024 echo ' yes '
19025 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
19026 :
19027 else
19028 can_build_shared=no
19029 fi
19030 ;;
19031 esac
19032 # Using Import Files as archive members, it is possible to support
19033 # filename-based versioning of shared library archives on AIX. While
19034 # this would work for both with and without runtime linking, it will
19035 # prevent static linking of such archives. So we do filename-based
19036 # shared library versioning with .so extension only, which is used
19037 # when both runtime linking and shared linking is enabled.
19038 # Unfortunately, runtime linking may impact performance, so we do
19039 # not want this to be the default eventually. Also, we use the
19040 # versioned .so libs for executables only if there is the -brtl
19041 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
19042 # To allow for filename-based versioning support, we need to create
19043 # libNAME.so.V as an archive file, containing:
19044 # *) an Import File, referring to the versioned filename of the
19045 # archive as well as the shared archive member, telling the
19046 # bitwidth (32 or 64) of that shared object, and providing the
19047 # list of exported symbols of that shared object, eventually
19048 # decorated with the 'weak' keyword
19049 # *) the shared object with the F_LOADONLY flag set, to really avoid
19050 # it being seen by the linker.
19051 # At run time we better use the real file rather than another symlink,
19052 # but for link time we create the symlink libNAME.so -> libNAME.so.V
19053
19054 case $with_aix_soname,$aix_use_runtimelinking in
19055 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
19056 # soname into executable. Probably we can add versioning support to
19057 # collect2, so additional links can be useful in future.
19058 aix,yes) # traditional libtool
19059 dynamic_linker='AIX unversionable lib.so'
19060 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19061 # instead of lib<name>.a to let people know that these are not
19062 # typical AIX shared libraries.
19063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19064 ;;
19065 aix,no) # traditional AIX only
19066 dynamic_linker='AIX lib.a(lib.so.V)'
19067 # We preserve .a as extension for shared libraries through AIX4.2
19068 # and later when we are not doing run time linking.
19069 library_names_spec='$libname$release.a $libname.a'
19070 soname_spec='$libname$release$shared_ext$major'
19071 ;;
19072 svr4,*) # full svr4 only
19073 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
19074 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19075 # We do not specify a path in Import Files, so LIBPATH fires.
19076 shlibpath_overrides_runpath=yes
19077 ;;
19078 *,yes) # both, prefer svr4
19079 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
19080 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19081 # unpreferred sharedlib libNAME.a needs extra handling
19082 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"'
19083 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"'
19084 # We do not specify a path in Import Files, so LIBPATH fires.
19085 shlibpath_overrides_runpath=yes
19086 ;;
19087 *,no) # both, prefer aix
19088 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19089 library_names_spec='$libname$release.a $libname.a'
19090 soname_spec='$libname$release$shared_ext$major'
19091 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19092 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)'
19093 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"'
19094 ;;
19095 esac
19096 shlibpath_var=LIBPATH
19097 fi
19098 ;;
19099
19100 amigaos*)
19101 case $host_cpu in
19102 powerpc)
19103 # Since July 2007 AmigaOS4 officially supports .so libraries.
19104 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19106 ;;
19107 m68k)
19108 library_names_spec='$libname.ixlibrary $libname.a'
19109 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19110 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'
19111 ;;
19112 esac
19113 ;;
19114
19115 beos*)
19116 library_names_spec='$libname$shared_ext'
19117 dynamic_linker="$host_os ld.so"
19118 shlibpath_var=LIBRARY_PATH
19119 ;;
19120
19121 bsdi[45]*)
19122 version_type=linux # correct to gnu/linux during the next big refactor
19123 need_version=no
19124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19125 soname_spec='$libname$release$shared_ext$major'
19126 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19127 shlibpath_var=LD_LIBRARY_PATH
19128 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19129 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19130 # the default ld.so.conf also contains /usr/contrib/lib and
19131 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19132 # libtool to hard-code these into programs
19133 ;;
19134
19135 cygwin* | mingw* | windows* | pw32* | cegcc*)
19136 version_type=windows
19137 shrext_cmds=.dll
19138 need_version=no
19139 need_lib_prefix=no
19140
19141 case $GCC,$cc_basename in
19142 yes,*)
19143 # gcc
19144 library_names_spec='$libname.dll.a'
19145 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19146 # If user builds GCC with multilib enabled,
19147 # it should just install on $(libdir)
19148 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
19149 if test xyes = x"$multilib"; then
19150 postinstall_cmds='base_file=`basename \$file`~
19151 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19152 dldir=$destdir/`dirname \$dlpath`~
19153 $install_prog $dir/$dlname $destdir/$dlname~
19154 chmod a+x $destdir/$dlname~
19155 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19156 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
19157 fi'
19158 else
19159 postinstall_cmds='base_file=`basename \$file`~
19160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19161 dldir=$destdir/`dirname \$dlpath`~
19162 test -d \$dldir || mkdir -p \$dldir~
19163 $install_prog $dir/$dlname \$dldir/$dlname~
19164 chmod a+x \$dldir/$dlname~
19165 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19166 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19167 fi'
19168 fi
19169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19170 dlpath=$dir/\$dldll~
19171 $RM \$dlpath'
19172 shlibpath_overrides_runpath=yes
19173
19174 case $host_os in
19175 cygwin*)
19176 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19177 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19178
19179 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
19180 ;;
19181 mingw* | windows* | cegcc*)
19182 # MinGW DLLs use traditional 'lib' prefix
19183 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19184 ;;
19185 pw32*)
19186 # pw32 DLLs use 'pw' prefix rather than 'lib'
19187 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19188 ;;
19189 esac
19190 dynamic_linker='Win32 ld.exe'
19191 ;;
19192
19193 *,cl* | *,icl*)
19194 # Native MSVC or ICC
19195 libname_spec='$name'
19196 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19197 library_names_spec='$libname.dll.lib'
19198
19199 case $build_os in
19200 mingw* | windows*)
19201 sys_lib_search_path_spec=
19202 lt_save_ifs=$IFS
19203 IFS=';'
19204 for lt_path in $LIB
19205 do
19206 IFS=$lt_save_ifs
19207 # Let DOS variable expansion print the short 8.3 style file name.
19208 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19209 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19210 done
19211 IFS=$lt_save_ifs
19212 # Convert to MSYS style.
19213 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19214 ;;
19215 cygwin*)
19216 # Convert to unix form, then to dos form, then back to unix form
19217 # but this time dos style (no spaces!) so that the unix form looks
19218 # like /cygdrive/c/PROGRA~1:/cygdr...
19219 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19220 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19221 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19222 ;;
19223 *)
19224 sys_lib_search_path_spec=$LIB
19225 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19226 # It is most probably a Windows format PATH.
19227 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19228 else
19229 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19230 fi
19231 # FIXME: find the short name or the path components, as spaces are
19232 # common. (e.g. "Program Files" -> "PROGRA~1")
19233 ;;
19234 esac
19235
19236 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19237 postinstall_cmds='base_file=`basename \$file`~
19238 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19239 dldir=$destdir/`dirname \$dlpath`~
19240 test -d \$dldir || mkdir -p \$dldir~
19241 $install_prog $dir/$dlname \$dldir/$dlname'
19242 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19243 dlpath=$dir/\$dldll~
19244 $RM \$dlpath'
19245 shlibpath_overrides_runpath=yes
19246 dynamic_linker='Win32 link.exe'
19247 ;;
19248
19249 *)
19250 # Assume MSVC and ICC wrapper
19251 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19252 dynamic_linker='Win32 ld.exe'
19253 ;;
19254 esac
19255 # FIXME: first we should search . and the directory the executable is in
19256 shlibpath_var=PATH
19257 ;;
19258
19259 darwin* | rhapsody*)
19260 dynamic_linker="$host_os dyld"
19261 version_type=darwin
19262 need_lib_prefix=no
19263 need_version=no
19264 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19265 soname_spec='$libname$release$major$shared_ext'
19266 shlibpath_overrides_runpath=yes
19267 shlibpath_var=DYLD_LIBRARY_PATH
19268 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19269
19270 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
19271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19272 ;;
19273
19274 dgux*)
19275 version_type=linux # correct to gnu/linux during the next big refactor
19276 need_lib_prefix=no
19277 need_version=no
19278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19279 soname_spec='$libname$release$shared_ext$major'
19280 shlibpath_var=LD_LIBRARY_PATH
19281 ;;
19282
19283 freebsd* | dragonfly* | midnightbsd*)
19284 # DragonFly does not have aout. When/if they implement a new
19285 # versioning mechanism, adjust this.
19286 if test -x /usr/bin/objformat; then
19287 objformat=`/usr/bin/objformat`
19288 else
19289 case $host_os in
19290 freebsd[23].*) objformat=aout ;;
19291 *) objformat=elf ;;
19292 esac
19293 fi
19294 version_type=freebsd-$objformat
19295 case $version_type in
19296 freebsd-elf*)
19297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19298 soname_spec='$libname$release$shared_ext$major'
19299 need_version=no
19300 need_lib_prefix=no
19301 ;;
19302 freebsd-*)
19303 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19304 need_version=yes
19305 ;;
19306 esac
19307 case $host_cpu in
19308 powerpc64)
19309 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
19310 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
19311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19312 /* end confdefs.h. */
19313 int test_pointer_size[sizeof (void *) - 5];
19314
19315 _ACEOF
19316 if ac_fn_c_try_compile "$LINENO"
19317 then :
19318 shlibpath_var=LD_LIBRARY_PATH
19319 else case e in #(
19320 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
19321 esac
19322 fi
19323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19324 ;;
19325 *)
19326 shlibpath_var=LD_LIBRARY_PATH
19327 ;;
19328 esac
19329 case $host_os in
19330 freebsd2.*)
19331 shlibpath_overrides_runpath=yes
19332 ;;
19333 freebsd3.[01]* | freebsdelf3.[01]*)
19334 shlibpath_overrides_runpath=yes
19335 hardcode_into_libs=yes
19336 ;;
19337 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19338 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19339 shlibpath_overrides_runpath=no
19340 hardcode_into_libs=yes
19341 ;;
19342 *) # from 4.6 on, and DragonFly
19343 shlibpath_overrides_runpath=yes
19344 hardcode_into_libs=yes
19345 ;;
19346 esac
19347 ;;
19348
19349 haiku*)
19350 version_type=linux # correct to gnu/linux during the next big refactor
19351 need_lib_prefix=no
19352 need_version=no
19353 dynamic_linker="$host_os runtime_loader"
19354 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19355 soname_spec='$libname$release$shared_ext$major'
19356 shlibpath_var=LIBRARY_PATH
19357 shlibpath_overrides_runpath=no
19358 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
19359 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
19360 hardcode_into_libs=no
19361 ;;
19362
19363 hpux9* | hpux10* | hpux11*)
19364 # Give a soname corresponding to the major version so that dld.sl refuses to
19365 # link against other versions.
19366 version_type=sunos
19367 need_lib_prefix=no
19368 need_version=no
19369 case $host_cpu in
19370 ia64*)
19371 shrext_cmds='.so'
19372 hardcode_into_libs=yes
19373 dynamic_linker="$host_os dld.so"
19374 shlibpath_var=LD_LIBRARY_PATH
19375 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19377 soname_spec='$libname$release$shared_ext$major'
19378 if test 32 = "$HPUX_IA64_MODE"; then
19379 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19380 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19381 else
19382 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19383 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19384 fi
19385 ;;
19386 hppa*64*)
19387 shrext_cmds='.sl'
19388 hardcode_into_libs=yes
19389 dynamic_linker="$host_os dld.sl"
19390 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19393 soname_spec='$libname$release$shared_ext$major'
19394 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19396 ;;
19397 *)
19398 shrext_cmds='.sl'
19399 dynamic_linker="$host_os dld.sl"
19400 shlibpath_var=SHLIB_PATH
19401 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19403 soname_spec='$libname$release$shared_ext$major'
19404 ;;
19405 esac
19406 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19407 postinstall_cmds='chmod 555 $lib'
19408 # or fails outright, so override atomically:
19409 install_override_mode=555
19410 ;;
19411
19412 interix[3-9]*)
19413 version_type=linux # correct to gnu/linux during the next big refactor
19414 need_lib_prefix=no
19415 need_version=no
19416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19417 soname_spec='$libname$release$shared_ext$major'
19418 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19419 shlibpath_var=LD_LIBRARY_PATH
19420 shlibpath_overrides_runpath=no
19421 hardcode_into_libs=yes
19422 ;;
19423
19424 irix5* | irix6* | nonstopux*)
19425 case $host_os in
19426 nonstopux*) version_type=nonstopux ;;
19427 *)
19428 if test yes = "$lt_cv_prog_gnu_ld"; then
19429 version_type=linux # correct to gnu/linux during the next big refactor
19430 else
19431 version_type=irix
19432 fi ;;
19433 esac
19434 need_lib_prefix=no
19435 need_version=no
19436 soname_spec='$libname$release$shared_ext$major'
19437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19438 case $host_os in
19439 irix5* | nonstopux*)
19440 libsuff= shlibsuff=
19441 ;;
19442 *)
19443 case $LD in # libtool.m4 will add one of these switches to LD
19444 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19445 libsuff= shlibsuff= libmagic=32-bit;;
19446 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19447 libsuff=32 shlibsuff=N32 libmagic=N32;;
19448 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19449 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19450 *) libsuff= shlibsuff= libmagic=never-match;;
19451 esac
19452 ;;
19453 esac
19454 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19455 shlibpath_overrides_runpath=no
19456 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19457 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19458 hardcode_into_libs=yes
19459 ;;
19460
19461 # No shared lib support for Linux oldld, aout, or coff.
19462 linux*oldld* | linux*aout* | linux*coff*)
19463 dynamic_linker=no
19464 ;;
19465
19466 linux*android*)
19467 version_type=none # Android doesn't support versioned libraries.
19468 need_lib_prefix=no
19469 need_version=no
19470 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
19471 soname_spec='$libname$release$shared_ext'
19472 finish_cmds=
19473 shlibpath_var=LD_LIBRARY_PATH
19474 shlibpath_overrides_runpath=yes
19475
19476 # This implies no fast_install, which is unacceptable.
19477 # Some rework will be needed to allow for fast_install
19478 # before this can be enabled.
19479 hardcode_into_libs=yes
19480
19481 dynamic_linker='Android linker'
19482 # -rpath works at least for libraries that are not overridden by
19483 # libraries installed in system locations.
19484 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19485 ;;
19486
19487 # This must be glibc/ELF.
19488 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19489 version_type=linux # correct to gnu/linux during the next big refactor
19490 need_lib_prefix=no
19491 need_version=no
19492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19493 soname_spec='$libname$release$shared_ext$major'
19494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19495 shlibpath_var=LD_LIBRARY_PATH
19496 shlibpath_overrides_runpath=no
19497
19498 # Some binutils ld are patched to set DT_RUNPATH
19499 if test ${lt_cv_shlibpath_overrides_runpath+y}
19500 then :
19501 printf %s "(cached) " >&6
19502 else case e in #(
19503 e) lt_cv_shlibpath_overrides_runpath=no
19504 save_LDFLAGS=$LDFLAGS
19505 save_libdir=$libdir
19506 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19507 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19509 /* end confdefs.h. */
19510
19511 int
19512 main (void)
19513 {
19514
19515 ;
19516 return 0;
19517 }
19518 _ACEOF
19519 if ac_fn_c_try_link "$LINENO"
19520 then :
19521 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
19522 then :
19523 lt_cv_shlibpath_overrides_runpath=yes
19524 fi
19525 fi
19526 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19527 conftest$ac_exeext conftest.$ac_ext
19528 LDFLAGS=$save_LDFLAGS
19529 libdir=$save_libdir
19530 ;;
19531 esac
19532 fi
19533
19534 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19535
19536 # This implies no fast_install, which is unacceptable.
19537 # Some rework will be needed to allow for fast_install
19538 # before this can be enabled.
19539 hardcode_into_libs=yes
19540
19541 # Add ABI-specific directories to the system library path.
19542 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19543
19544 # Ideally, we could use ldconfig to report *all* directories which are
19545 # searched for libraries, however this is still not possible. Aside from not
19546 # being certain /sbin/ldconfig is available, command
19547 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19548 # even though it is searched at run-time. Try to do the best guess by
19549 # appending ld.so.conf contents (and includes) to the search path.
19550 if test -f /etc/ld.so.conf; then
19551 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' ' '`
19552 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19553 fi
19554
19555 # We used to test for /lib/ld.so.1 and disable shared libraries on
19556 # powerpc, because MkLinux only supported shared libraries with the
19557 # GNU dynamic linker. Since this was broken with cross compilers,
19558 # most powerpc-linux boxes support dynamic linking these days and
19559 # people can always --disable-shared, the test was removed, and we
19560 # assume the GNU/Linux dynamic linker is in use.
19561 dynamic_linker='GNU/Linux ld.so'
19562 ;;
19563
19564 netbsdelf*-gnu)
19565 version_type=linux
19566 need_lib_prefix=no
19567 need_version=no
19568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19569 soname_spec='$libname$release$shared_ext$major'
19570 shlibpath_var=LD_LIBRARY_PATH
19571 shlibpath_overrides_runpath=no
19572 hardcode_into_libs=yes
19573 dynamic_linker='NetBSD ld.elf_so'
19574 ;;
19575
19576 netbsd*)
19577 version_type=sunos
19578 need_lib_prefix=no
19579 need_version=no
19580 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19581 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19583 dynamic_linker='NetBSD (a.out) ld.so'
19584 else
19585 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19586 soname_spec='$libname$release$shared_ext$major'
19587 dynamic_linker='NetBSD ld.elf_so'
19588 fi
19589 shlibpath_var=LD_LIBRARY_PATH
19590 shlibpath_overrides_runpath=yes
19591 hardcode_into_libs=yes
19592 ;;
19593
19594 *-mlibc)
19595 version_type=linux # correct to gnu/linux during the next big refactor
19596 need_lib_prefix=no
19597 need_version=no
19598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19599 soname_spec='$libname$release$shared_ext$major'
19600 dynamic_linker='mlibc ld.so'
19601 shlibpath_var=LD_LIBRARY_PATH
19602 shlibpath_overrides_runpath=no
19603 hardcode_into_libs=yes
19604 ;;
19605
19606 newsos6)
19607 version_type=linux # correct to gnu/linux during the next big refactor
19608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19609 shlibpath_var=LD_LIBRARY_PATH
19610 shlibpath_overrides_runpath=yes
19611 ;;
19612
19613 *nto* | *qnx*)
19614 version_type=qnx
19615 need_lib_prefix=no
19616 need_version=no
19617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19618 soname_spec='$libname$release$shared_ext$major'
19619 shlibpath_var=LD_LIBRARY_PATH
19620 shlibpath_overrides_runpath=no
19621 hardcode_into_libs=yes
19622 dynamic_linker='ldqnx.so'
19623 ;;
19624
19625 openbsd*)
19626 version_type=sunos
19627 sys_lib_dlsearch_path_spec=/usr/lib
19628 need_lib_prefix=no
19629 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19630 need_version=no
19631 else
19632 need_version=yes
19633 fi
19634 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19636 shlibpath_var=LD_LIBRARY_PATH
19637 shlibpath_overrides_runpath=yes
19638 ;;
19639
19640 os2*)
19641 libname_spec='$name'
19642 version_type=windows
19643 shrext_cmds=.dll
19644 need_version=no
19645 need_lib_prefix=no
19646 # OS/2 can only load a DLL with a base name of 8 characters or less.
19647 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19648 v=$($ECHO $release$versuffix | tr -d .-);
19649 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19650 $ECHO $n$v`$shared_ext'
19651 library_names_spec='${libname}_dll.$libext'
19652 dynamic_linker='OS/2 ld.exe'
19653 shlibpath_var=BEGINLIBPATH
19654 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19655 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19656 postinstall_cmds='base_file=`basename \$file`~
19657 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19658 dldir=$destdir/`dirname \$dlpath`~
19659 test -d \$dldir || mkdir -p \$dldir~
19660 $install_prog $dir/$dlname \$dldir/$dlname~
19661 chmod a+x \$dldir/$dlname~
19662 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19663 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19664 fi'
19665 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19666 dlpath=$dir/\$dldll~
19667 $RM \$dlpath'
19668 ;;
19669
19670 osf3* | osf4* | osf5*)
19671 version_type=osf
19672 need_lib_prefix=no
19673 need_version=no
19674 soname_spec='$libname$release$shared_ext$major'
19675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19676 shlibpath_var=LD_LIBRARY_PATH
19677 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19679 ;;
19680
19681 rdos*)
19682 dynamic_linker=no
19683 ;;
19684
19685 serenity*)
19686 version_type=linux # correct to gnu/linux during the next big refactor
19687 need_lib_prefix=no
19688 need_version=no
19689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19690 soname_spec='$libname$release$shared_ext$major'
19691 shlibpath_var=LD_LIBRARY_PATH
19692 shlibpath_overrides_runpath=no
19693 dynamic_linker='SerenityOS LibELF'
19694 ;;
19695
19696 solaris*)
19697 version_type=linux # correct to gnu/linux during the next big refactor
19698 need_lib_prefix=no
19699 need_version=no
19700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19701 soname_spec='$libname$release$shared_ext$major'
19702 shlibpath_var=LD_LIBRARY_PATH
19703 shlibpath_overrides_runpath=yes
19704 hardcode_into_libs=yes
19705 # ldd complains unless libraries are executable
19706 postinstall_cmds='chmod +x $lib'
19707 ;;
19708
19709 sunos4*)
19710 version_type=sunos
19711 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19712 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19713 shlibpath_var=LD_LIBRARY_PATH
19714 shlibpath_overrides_runpath=yes
19715 if test yes = "$with_gnu_ld"; then
19716 need_lib_prefix=no
19717 fi
19718 need_version=yes
19719 ;;
19720
19721 sysv4 | sysv4.3*)
19722 version_type=linux # correct to gnu/linux during the next big refactor
19723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19724 soname_spec='$libname$release$shared_ext$major'
19725 shlibpath_var=LD_LIBRARY_PATH
19726 case $host_vendor in
19727 sni)
19728 shlibpath_overrides_runpath=no
19729 need_lib_prefix=no
19730 runpath_var=LD_RUN_PATH
19731 ;;
19732 siemens)
19733 need_lib_prefix=no
19734 ;;
19735 motorola)
19736 need_lib_prefix=no
19737 need_version=no
19738 shlibpath_overrides_runpath=no
19739 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19740 ;;
19741 esac
19742 ;;
19743
19744 sysv4*MP*)
19745 if test -d /usr/nec; then
19746 version_type=linux # correct to gnu/linux during the next big refactor
19747 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19748 soname_spec='$libname$shared_ext.$major'
19749 shlibpath_var=LD_LIBRARY_PATH
19750 fi
19751 ;;
19752
19753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19754 version_type=sco
19755 need_lib_prefix=no
19756 need_version=no
19757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19758 soname_spec='$libname$release$shared_ext$major'
19759 shlibpath_var=LD_LIBRARY_PATH
19760 shlibpath_overrides_runpath=yes
19761 hardcode_into_libs=yes
19762 if test yes = "$with_gnu_ld"; then
19763 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19764 else
19765 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19766 case $host_os in
19767 sco3.2v5*)
19768 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19769 ;;
19770 esac
19771 fi
19772 sys_lib_dlsearch_path_spec='/usr/lib'
19773 ;;
19774
19775 tpf*)
19776 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19777 version_type=linux # correct to gnu/linux during the next big refactor
19778 need_lib_prefix=no
19779 need_version=no
19780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19781 shlibpath_var=LD_LIBRARY_PATH
19782 shlibpath_overrides_runpath=no
19783 hardcode_into_libs=yes
19784 ;;
19785
19786 uts4*)
19787 version_type=linux # correct to gnu/linux during the next big refactor
19788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19789 soname_spec='$libname$release$shared_ext$major'
19790 shlibpath_var=LD_LIBRARY_PATH
19791 ;;
19792
19793 emscripten*)
19794 version_type=none
19795 need_lib_prefix=no
19796 need_version=no
19797 library_names_spec='$libname$release$shared_ext'
19798 soname_spec='$libname$release$shared_ext'
19799 finish_cmds=
19800 dynamic_linker="Emscripten linker"
19801 lt_prog_compiler_wl=
19802 lt_prog_compiler_pic=
19803 lt_prog_compiler_static=
19804
19805
19806 if test yes = "$GCC"; then
19807 lt_prog_compiler_wl='-Wl,'
19808 lt_prog_compiler_static='-static'
19809
19810 case $host_os in
19811 aix*)
19812 # All AIX code is PIC.
19813 if test ia64 = "$host_cpu"; then
19814 # AIX 5 now supports IA64 processor
19815 lt_prog_compiler_static='-Bstatic'
19816 fi
19817 lt_prog_compiler_pic='-fPIC'
19818 ;;
19819
19820 amigaos*)
19821 case $host_cpu in
19822 powerpc)
19823 # see comment about AmigaOS4 .so support
19824 lt_prog_compiler_pic='-fPIC'
19825 ;;
19826 m68k)
19827 # FIXME: we need at least 68020 code to build shared libraries, but
19828 # adding the '-m68020' flag to GCC prevents building anything better,
19829 # like '-m68040'.
19830 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
19831 ;;
19832 esac
19833 ;;
19834
19835 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19836 # PIC is the default for these OSes.
19837 ;;
19838
19839 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
19840 # This hack is so that the source file can tell whether it is being
19841 # built for inclusion in a dll (and should export symbols for example).
19842 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19843 # (--disable-auto-import) libraries
19844 lt_prog_compiler_pic='-DDLL_EXPORT'
19845 case $host_os in
19846 os2*)
19847 lt_prog_compiler_static='$wl-static'
19848 ;;
19849 esac
19850 ;;
19851
19852 darwin* | rhapsody*)
19853 # PIC is the default on this platform
19854 # Common symbols not allowed in MH_DYLIB files
19855 lt_prog_compiler_pic='-fno-common'
19856 ;;
19857
19858 haiku*)
19859 # PIC is the default for Haiku.
19860 # The "-static" flag exists, but is broken.
19861 lt_prog_compiler_static=
19862 ;;
19863
19864 hpux*)
19865 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19866 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19867 # sets the default TLS model and affects inlining.
19868 case $host_cpu in
19869 hppa*64*)
19870 # +Z the default
19871 ;;
19872 *)
19873 lt_prog_compiler_pic='-fPIC'
19874 ;;
19875 esac
19876 ;;
19877
19878 interix[3-9]*)
19879 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19880 # Instead, we relocate shared libraries at runtime.
19881 ;;
19882
19883 msdosdjgpp*)
19884 # Just because we use GCC doesn't mean we suddenly get shared libraries
19885 # on systems that don't support them.
19886 lt_prog_compiler_can_build_shared=no
19887 enable_shared=no
19888 ;;
19889
19890 *nto* | *qnx*)
19891 # QNX uses GNU C++, but need to define -shared option too, otherwise
19892 # it will coredump.
19893 lt_prog_compiler_pic='-fPIC -shared'
19894 ;;
19895
19896 sysv4*MP*)
19897 if test -d /usr/nec; then
19898 lt_prog_compiler_pic=-Kconform_pic
19899 fi
19900 ;;
19901
19902 *)
19903 lt_prog_compiler_pic='-fPIC'
19904 ;;
19905 esac
19906
19907 case $cc_basename in
19908 nvcc*) # Cuda Compiler Driver 2.2
19909 lt_prog_compiler_wl='-Xlinker '
19910 if test -n "$lt_prog_compiler_pic"; then
19911 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
19912 fi
19913 ;;
19914 esac
19915 else
19916 # PORTME Check for flag to pass linker flags through the system compiler.
19917 case $host_os in
19918 aix*)
19919 lt_prog_compiler_wl='-Wl,'
19920 if test ia64 = "$host_cpu"; then
19921 # AIX 5 now supports IA64 processor
19922 lt_prog_compiler_static='-Bstatic'
19923 else
19924 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
19925 fi
19926 ;;
19927
19928 darwin* | rhapsody*)
19929 # PIC is the default on this platform
19930 # Common symbols not allowed in MH_DYLIB files
19931 lt_prog_compiler_pic='-fno-common'
19932 case $cc_basename in
19933 nagfor*)
19934 # NAG Fortran compiler
19935 lt_prog_compiler_wl='-Wl,-Wl,,'
19936 lt_prog_compiler_pic='-PIC'
19937 lt_prog_compiler_static='-Bstatic'
19938 ;;
19939 esac
19940 ;;
19941
19942 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
19943 # This hack is so that the source file can tell whether it is being
19944 # built for inclusion in a dll (and should export symbols for example).
19945 lt_prog_compiler_pic='-DDLL_EXPORT'
19946 case $host_os in
19947 os2*)
19948 lt_prog_compiler_static='$wl-static'
19949 ;;
19950 esac
19951 ;;
19952
19953 hpux9* | hpux10* | hpux11*)
19954 lt_prog_compiler_wl='-Wl,'
19955 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19956 # not for PA HP-UX.
19957 case $host_cpu in
19958 hppa*64*|ia64*)
19959 # +Z the default
19960 ;;
19961 *)
19962 lt_prog_compiler_pic='+Z'
19963 ;;
19964 esac
19965 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19966 lt_prog_compiler_static='$wl-a ${wl}archive'
19967 ;;
19968
19969 irix5* | irix6* | nonstopux*)
19970 lt_prog_compiler_wl='-Wl,'
19971 # PIC (with -KPIC) is the default.
19972 lt_prog_compiler_static='-non_shared'
19973 ;;
19974
19975 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19976 case $cc_basename in
19977 # old Intel for x86_64, which still supported -KPIC.
19978 ecc*)
19979 lt_prog_compiler_wl='-Wl,'
19980 lt_prog_compiler_pic='-KPIC'
19981 lt_prog_compiler_static='-static'
19982 ;;
19983 *flang* | ftn | f18* | f95*)
19984 # Flang compiler.
19985 lt_prog_compiler_wl='-Wl,'
19986 lt_prog_compiler_pic='-fPIC'
19987 lt_prog_compiler_static='-static'
19988 ;;
19989 # icc used to be incompatible with GCC.
19990 # ICC 10 doesn't accept -KPIC any more.
19991 icc* | ifort*)
19992 lt_prog_compiler_wl='-Wl,'
19993 lt_prog_compiler_pic='-fPIC'
19994 lt_prog_compiler_static='-static'
19995 ;;
19996 # Lahey Fortran 8.1.
19997 lf95*)
19998 lt_prog_compiler_wl='-Wl,'
19999 lt_prog_compiler_pic='--shared'
20000 lt_prog_compiler_static='--static'
20001 ;;
20002 nagfor*)
20003 # NAG Fortran compiler
20004 lt_prog_compiler_wl='-Wl,-Wl,,'
20005 lt_prog_compiler_pic='-PIC'
20006 lt_prog_compiler_static='-Bstatic'
20007 ;;
20008 tcc*)
20009 # Fabrice Bellard et al's Tiny C Compiler
20010 lt_prog_compiler_wl='-Wl,'
20011 lt_prog_compiler_pic='-fPIC'
20012 lt_prog_compiler_static='-static'
20013 ;;
20014 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
20015 # Portland Group compilers (*not* the Pentium gcc compiler,
20016 # which looks to be a dead project)
20017 lt_prog_compiler_wl='-Wl,'
20018 lt_prog_compiler_pic='-fpic'
20019 lt_prog_compiler_static='-Bstatic'
20020 ;;
20021 ccc*)
20022 lt_prog_compiler_wl='-Wl,'
20023 # All Alpha code is PIC.
20024 lt_prog_compiler_static='-non_shared'
20025 ;;
20026 xl* | bgxl* | bgf* | mpixl*)
20027 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
20028 lt_prog_compiler_wl='-Wl,'
20029 lt_prog_compiler_pic='-qpic'
20030 lt_prog_compiler_static='-qstaticlink'
20031 ;;
20032 *)
20033 case `$CC -V 2>&1 | $SED 5q` in
20034 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
20035 # Sun Fortran 8.3 passes all unrecognized flags to the linker
20036 lt_prog_compiler_pic='-KPIC'
20037 lt_prog_compiler_static='-Bstatic'
20038 lt_prog_compiler_wl=''
20039 ;;
20040 *Sun\ F* | *Sun*Fortran*)
20041 lt_prog_compiler_pic='-KPIC'
20042 lt_prog_compiler_static='-Bstatic'
20043 lt_prog_compiler_wl='-Qoption ld '
20044 ;;
20045 *Sun\ C*)
20046 # Sun C 5.9
20047 lt_prog_compiler_pic='-KPIC'
20048 lt_prog_compiler_static='-Bstatic'
20049 lt_prog_compiler_wl='-Wl,'
20050 ;;
20051 *Intel*\ [CF]*Compiler*)
20052 lt_prog_compiler_wl='-Wl,'
20053 lt_prog_compiler_pic='-fPIC'
20054 lt_prog_compiler_static='-static'
20055 ;;
20056 *Portland\ Group*)
20057 lt_prog_compiler_wl='-Wl,'
20058 lt_prog_compiler_pic='-fpic'
20059 lt_prog_compiler_static='-Bstatic'
20060 ;;
20061 esac
20062 ;;
20063 esac
20064 ;;
20065
20066 newsos6)
20067 lt_prog_compiler_pic='-KPIC'
20068 lt_prog_compiler_static='-Bstatic'
20069 ;;
20070
20071 *-mlibc)
20072 lt_prog_compiler_wl='-Wl,'
20073 lt_prog_compiler_pic='-fPIC'
20074 lt_prog_compiler_static='-static'
20075 ;;
20076
20077 *nto* | *qnx*)
20078 # QNX uses GNU C++, but need to define -shared option too, otherwise
20079 # it will coredump.
20080 lt_prog_compiler_pic='-fPIC -shared'
20081 ;;
20082
20083 osf3* | osf4* | osf5*)
20084 lt_prog_compiler_wl='-Wl,'
20085 # All OSF/1 code is PIC.
20086 lt_prog_compiler_static='-non_shared'
20087 ;;
20088
20089 rdos*)
20090 lt_prog_compiler_static='-non_shared'
20091 ;;
20092
20093 serenity*)
20094 ;;
20095
20096 solaris*)
20097 lt_prog_compiler_pic='-KPIC'
20098 lt_prog_compiler_static='-Bstatic'
20099 case $cc_basename in
20100 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
20101 lt_prog_compiler_wl='-Qoption ld ';;
20102 *)
20103 lt_prog_compiler_wl='-Wl,';;
20104 esac
20105 ;;
20106
20107 sunos4*)
20108 lt_prog_compiler_wl='-Qoption ld '
20109 lt_prog_compiler_pic='-PIC'
20110 lt_prog_compiler_static='-Bstatic'
20111 ;;
20112
20113 sysv4 | sysv4.2uw2* | sysv4.3*)
20114 lt_prog_compiler_wl='-Wl,'
20115 lt_prog_compiler_pic='-KPIC'
20116 lt_prog_compiler_static='-Bstatic'
20117 ;;
20118
20119 sysv4*MP*)
20120 if test -d /usr/nec; then
20121 lt_prog_compiler_pic='-Kconform_pic'
20122 lt_prog_compiler_static='-Bstatic'
20123 fi
20124 ;;
20125
20126 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20127 lt_prog_compiler_wl='-Wl,'
20128 lt_prog_compiler_pic='-KPIC'
20129 lt_prog_compiler_static='-Bstatic'
20130 ;;
20131
20132 unicos*)
20133 lt_prog_compiler_wl='-Wl,'
20134 lt_prog_compiler_can_build_shared=no
20135 ;;
20136
20137 uts4*)
20138 lt_prog_compiler_pic='-pic'
20139 lt_prog_compiler_static='-Bstatic'
20140 ;;
20141
20142 *)
20143 lt_prog_compiler_can_build_shared=no
20144 ;;
20145 esac
20146 fi
20147
20148 case $host_os in
20149 # For platforms that do not support PIC, -DPIC is meaningless:
20150 *djgpp*)
20151 lt_prog_compiler_pic=
20152 ;;
20153 *)
20154 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
20155 ;;
20156 esac
20157
20158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20159 printf %s "checking for $compiler option to produce PIC... " >&6; }
20160 if test ${lt_cv_prog_compiler_pic+y}
20161 then :
20162 printf %s "(cached) " >&6
20163 else case e in #(
20164 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
20165 esac
20166 fi
20167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
20168 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
20169 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
20170
20171 #
20172 # Check to make sure the PIC flag actually works.
20173 #
20174 if test -n "$lt_prog_compiler_pic"; then
20175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
20176 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
20177 if test ${lt_cv_prog_compiler_pic_works+y}
20178 then :
20179 printf %s "(cached) " >&6
20180 else case e in #(
20181 e) lt_cv_prog_compiler_pic_works=no
20182 ac_outfile=conftest.$ac_objext
20183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20184 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
20185 # Insert the option either (1) after the last *FLAGS variable, or
20186 # (2) before a word containing "conftest.", or (3) at the end.
20187 # Note that $ac_compile itself does not contain backslashes and begins
20188 # with a dollar sign (not a hyphen), so the echo should work correctly.
20189 # The option is referenced via a variable to avoid confusing sed.
20190 lt_compile=`echo "$ac_compile" | $SED \
20191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20193 -e 's:$: $lt_compiler_flag:'`
20194 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20195 (eval "$lt_compile" 2>conftest.err)
20196 ac_status=$?
20197 cat conftest.err >&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 if (exit $ac_status) && test -s "$ac_outfile"; then
20200 # The compiler can only warn and ignore the option if not recognized
20201 # So say no if there are warnings other than the usual output.
20202 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20204 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20205 lt_cv_prog_compiler_pic_works=yes
20206 fi
20207 fi
20208 $RM conftest*
20209 ;;
20210 esac
20211 fi
20212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
20213 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
20214
20215 if test yes = "$lt_cv_prog_compiler_pic_works"; then
20216 case $lt_prog_compiler_pic in
20217 "" | " "*) ;;
20218 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
20219 esac
20220 else
20221 lt_prog_compiler_pic=
20222 lt_prog_compiler_can_build_shared=no
20223 fi
20224
20225 fi
20226
20227
20228
20229
20230
20231 #
20232 # Check to make sure the static flag actually works.
20233 #
20234 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
20235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20236 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20237 if test ${lt_cv_prog_compiler_static_works+y}
20238 then :
20239 printf %s "(cached) " >&6
20240 else case e in #(
20241 e) lt_cv_prog_compiler_static_works=no
20242 save_LDFLAGS=$LDFLAGS
20243 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20244 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20245 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20246 # The linker can only warn and ignore the option if not recognized
20247 # So say no if there are warnings
20248 if test -s conftest.err; then
20249 # Append any errors to the config.log.
20250 cat conftest.err 1>&5
20251 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20253 if diff conftest.exp conftest.er2 >/dev/null; then
20254 lt_cv_prog_compiler_static_works=yes
20255 fi
20256 else
20257 lt_cv_prog_compiler_static_works=yes
20258 fi
20259 fi
20260 $RM -r conftest*
20261 LDFLAGS=$save_LDFLAGS
20262 ;;
20263 esac
20264 fi
20265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
20266 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
20267
20268 if test yes = "$lt_cv_prog_compiler_static_works"; then
20269 :
20270 else
20271 lt_prog_compiler_static=
20272 fi
20273
20274
20275
20276 ='-fPIC'
20277 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
20278 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
20279 archive_cmds_need_lc=no
20280 no_undefined_flag=
20281 ;;
20282
20283 *)
20284 dynamic_linker=no
20285 ;;
20286 esac
20287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20288 printf "%s\n" "$dynamic_linker" >&6; }
20289 test no = "$dynamic_linker" && can_build_shared=no
20290
20291 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20292 if test yes = "$GCC"; then
20293 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20294 fi
20295
20296 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20297 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20298 fi
20299
20300 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20301 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20302 fi
20303
20304 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20305 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20306
20307 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20308 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20309
20310 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20311 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20410 printf %s "checking how to hardcode library paths into programs... " >&6; }
20411 hardcode_action=
20412 if test -n "$hardcode_libdir_flag_spec" ||
20413 test -n "$runpath_var" ||
20414 test yes = "$hardcode_automatic"; then
20415
20416 # We can hardcode non-existent directories.
20417 if test no != "$hardcode_direct" &&
20418 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20419 # have to relink, otherwise we might link with an installed library
20420 # when we should be linking with a yet-to-be-installed one
20421 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
20422 test no != "$hardcode_minus_L"; then
20423 # Linking always hardcodes the temporary library directory.
20424 hardcode_action=relink
20425 else
20426 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20427 hardcode_action=immediate
20428 fi
20429 else
20430 # We cannot hardcode anything, or else we can only hardcode existing
20431 # directories.
20432 hardcode_action=unsupported
20433 fi
20434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
20435 printf "%s\n" "$hardcode_action" >&6; }
20436
20437 if test relink = "$hardcode_action" ||
20438 test yes = "$inherit_rpath"; then
20439 # Fast installation is not supported
20440 enable_fast_install=no
20441 elif test yes = "$shlibpath_overrides_runpath" ||
20442 test no = "$enable_shared"; then
20443 # Fast installation is not necessary
20444 enable_fast_install=needless
20445 fi
20446
20447
20448
20449
20450
20451
20452 if test yes != "$enable_dlopen"; then
20453 enable_dlopen=unknown
20454 enable_dlopen_self=unknown
20455 enable_dlopen_self_static=unknown
20456 else
20457 lt_cv_dlopen=no
20458 lt_cv_dlopen_libs=
20459
20460 case $host_os in
20461 beos*)
20462 lt_cv_dlopen=load_add_on
20463 lt_cv_dlopen_libs=
20464 lt_cv_dlopen_self=yes
20465 ;;
20466
20467 mingw* | windows* | pw32* | cegcc*)
20468 lt_cv_dlopen=LoadLibrary
20469 lt_cv_dlopen_libs=
20470 ;;
20471
20472 cygwin*)
20473 lt_cv_dlopen=dlopen
20474 lt_cv_dlopen_libs=
20475 ;;
20476
20477 darwin*)
20478 # if libdl is installed we need to link against it
20479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20480 printf %s "checking for dlopen in -ldl... " >&6; }
20481 if test ${ac_cv_lib_dl_dlopen+y}
20482 then :
20483 printf %s "(cached) " >&6
20484 else case e in #(
20485 e) ac_check_lib_save_LIBS=$LIBS
20486 LIBS="-ldl $LIBS"
20487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20488 /* end confdefs.h. */
20489
20490 /* Override any GCC internal prototype to avoid an error.
20491 Use char because int might match the return type of a GCC
20492 builtin and then its argument prototype would still apply.
20493 The 'extern "C"' is for builds by C++ compilers;
20494 although this is not generally supported in C code supporting it here
20495 has little cost and some practical benefit (sr 110532). */
20496 #ifdef __cplusplus
20497 extern "C"
20498 #endif
20499 char dlopen (void);
20500 int
20501 main (void)
20502 {
20503 return dlopen ();
20504 ;
20505 return 0;
20506 }
20507 _ACEOF
20508 if ac_fn_c_try_link "$LINENO"
20509 then :
20510 ac_cv_lib_dl_dlopen=yes
20511 else case e in #(
20512 e) ac_cv_lib_dl_dlopen=no ;;
20513 esac
20514 fi
20515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20516 conftest$ac_exeext conftest.$ac_ext
20517 LIBS=$ac_check_lib_save_LIBS ;;
20518 esac
20519 fi
20520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20521 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
20522 if test "x$ac_cv_lib_dl_dlopen" = xyes
20523 then :
20524 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
20525 else case e in #(
20526 e)
20527 lt_cv_dlopen=dyld
20528 lt_cv_dlopen_libs=
20529 lt_cv_dlopen_self=yes
20530 ;;
20531 esac
20532 fi
20533
20534 ;;
20535
20536 tpf*)
20537 # Don't try to run any link tests for TPF. We know it's impossible
20538 # because TPF is a cross-compiler, and we know how we open DSOs.
20539 lt_cv_dlopen=dlopen
20540 lt_cv_dlopen_libs=
20541 lt_cv_dlopen_self=no
20542 ;;
20543
20544 *)
20545 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
20546 if test "x$ac_cv_func_shl_load" = xyes
20547 then :
20548 lt_cv_dlopen=shl_load
20549 else case e in #(
20550 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20551 printf %s "checking for shl_load in -ldld... " >&6; }
20552 if test ${ac_cv_lib_dld_shl_load+y}
20553 then :
20554 printf %s "(cached) " >&6
20555 else case e in #(
20556 e) ac_check_lib_save_LIBS=$LIBS
20557 LIBS="-ldld $LIBS"
20558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20559 /* end confdefs.h. */
20560
20561 /* Override any GCC internal prototype to avoid an error.
20562 Use char because int might match the return type of a GCC
20563 builtin and then its argument prototype would still apply.
20564 The 'extern "C"' is for builds by C++ compilers;
20565 although this is not generally supported in C code supporting it here
20566 has little cost and some practical benefit (sr 110532). */
20567 #ifdef __cplusplus
20568 extern "C"
20569 #endif
20570 char shl_load (void);
20571 int
20572 main (void)
20573 {
20574 return shl_load ();
20575 ;
20576 return 0;
20577 }
20578 _ACEOF
20579 if ac_fn_c_try_link "$LINENO"
20580 then :
20581 ac_cv_lib_dld_shl_load=yes
20582 else case e in #(
20583 e) ac_cv_lib_dld_shl_load=no ;;
20584 esac
20585 fi
20586 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20587 conftest$ac_exeext conftest.$ac_ext
20588 LIBS=$ac_check_lib_save_LIBS ;;
20589 esac
20590 fi
20591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20592 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
20593 if test "x$ac_cv_lib_dld_shl_load" = xyes
20594 then :
20595 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
20596 else case e in #(
20597 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
20598 if test "x$ac_cv_func_dlopen" = xyes
20599 then :
20600 lt_cv_dlopen=dlopen
20601 else case e in #(
20602 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20603 printf %s "checking for dlopen in -ldl... " >&6; }
20604 if test ${ac_cv_lib_dl_dlopen+y}
20605 then :
20606 printf %s "(cached) " >&6
20607 else case e in #(
20608 e) ac_check_lib_save_LIBS=$LIBS
20609 LIBS="-ldl $LIBS"
20610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20611 /* end confdefs.h. */
20612
20613 /* Override any GCC internal prototype to avoid an error.
20614 Use char because int might match the return type of a GCC
20615 builtin and then its argument prototype would still apply.
20616 The 'extern "C"' is for builds by C++ compilers;
20617 although this is not generally supported in C code supporting it here
20618 has little cost and some practical benefit (sr 110532). */
20619 #ifdef __cplusplus
20620 extern "C"
20621 #endif
20622 char dlopen (void);
20623 int
20624 main (void)
20625 {
20626 return dlopen ();
20627 ;
20628 return 0;
20629 }
20630 _ACEOF
20631 if ac_fn_c_try_link "$LINENO"
20632 then :
20633 ac_cv_lib_dl_dlopen=yes
20634 else case e in #(
20635 e) ac_cv_lib_dl_dlopen=no ;;
20636 esac
20637 fi
20638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20639 conftest$ac_exeext conftest.$ac_ext
20640 LIBS=$ac_check_lib_save_LIBS ;;
20641 esac
20642 fi
20643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20644 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
20645 if test "x$ac_cv_lib_dl_dlopen" = xyes
20646 then :
20647 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
20648 else case e in #(
20649 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20650 printf %s "checking for dlopen in -lsvld... " >&6; }
20651 if test ${ac_cv_lib_svld_dlopen+y}
20652 then :
20653 printf %s "(cached) " >&6
20654 else case e in #(
20655 e) ac_check_lib_save_LIBS=$LIBS
20656 LIBS="-lsvld $LIBS"
20657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20658 /* end confdefs.h. */
20659
20660 /* Override any GCC internal prototype to avoid an error.
20661 Use char because int might match the return type of a GCC
20662 builtin and then its argument prototype would still apply.
20663 The 'extern "C"' is for builds by C++ compilers;
20664 although this is not generally supported in C code supporting it here
20665 has little cost and some practical benefit (sr 110532). */
20666 #ifdef __cplusplus
20667 extern "C"
20668 #endif
20669 char dlopen (void);
20670 int
20671 main (void)
20672 {
20673 return dlopen ();
20674 ;
20675 return 0;
20676 }
20677 _ACEOF
20678 if ac_fn_c_try_link "$LINENO"
20679 then :
20680 ac_cv_lib_svld_dlopen=yes
20681 else case e in #(
20682 e) ac_cv_lib_svld_dlopen=no ;;
20683 esac
20684 fi
20685 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20686 conftest$ac_exeext conftest.$ac_ext
20687 LIBS=$ac_check_lib_save_LIBS ;;
20688 esac
20689 fi
20690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20691 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
20692 if test "x$ac_cv_lib_svld_dlopen" = xyes
20693 then :
20694 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
20695 else case e in #(
20696 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20697 printf %s "checking for dld_link in -ldld... " >&6; }
20698 if test ${ac_cv_lib_dld_dld_link+y}
20699 then :
20700 printf %s "(cached) " >&6
20701 else case e in #(
20702 e) ac_check_lib_save_LIBS=$LIBS
20703 LIBS="-ldld $LIBS"
20704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20705 /* end confdefs.h. */
20706
20707 /* Override any GCC internal prototype to avoid an error.
20708 Use char because int might match the return type of a GCC
20709 builtin and then its argument prototype would still apply.
20710 The 'extern "C"' is for builds by C++ compilers;
20711 although this is not generally supported in C code supporting it here
20712 has little cost and some practical benefit (sr 110532). */
20713 #ifdef __cplusplus
20714 extern "C"
20715 #endif
20716 char dld_link (void);
20717 int
20718 main (void)
20719 {
20720 return dld_link ();
20721 ;
20722 return 0;
20723 }
20724 _ACEOF
20725 if ac_fn_c_try_link "$LINENO"
20726 then :
20727 ac_cv_lib_dld_dld_link=yes
20728 else case e in #(
20729 e) ac_cv_lib_dld_dld_link=no ;;
20730 esac
20731 fi
20732 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20733 conftest$ac_exeext conftest.$ac_ext
20734 LIBS=$ac_check_lib_save_LIBS ;;
20735 esac
20736 fi
20737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20738 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
20739 if test "x$ac_cv_lib_dld_dld_link" = xyes
20740 then :
20741 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
20742 fi
20743
20744 ;;
20745 esac
20746 fi
20747
20748 ;;
20749 esac
20750 fi
20751
20752 ;;
20753 esac
20754 fi
20755
20756 ;;
20757 esac
20758 fi
20759
20760 ;;
20761 esac
20762 fi
20763
20764 ;;
20765 esac
20766
20767 if test no = "$lt_cv_dlopen"; then
20768 enable_dlopen=no
20769 else
20770 enable_dlopen=yes
20771 fi
20772
20773 case $lt_cv_dlopen in
20774 dlopen)
20775 save_CPPFLAGS=$CPPFLAGS
20776 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20777
20778 save_LDFLAGS=$LDFLAGS
20779 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20780
20781 save_LIBS=$LIBS
20782 LIBS="$lt_cv_dlopen_libs $LIBS"
20783
20784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
20785 printf %s "checking whether a program can dlopen itself... " >&6; }
20786 if test ${lt_cv_dlopen_self+y}
20787 then :
20788 printf %s "(cached) " >&6
20789 else case e in #(
20790 e) if test yes = "$cross_compiling"; then :
20791 lt_cv_dlopen_self=cross
20792 else
20793 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20794 lt_status=$lt_dlunknown
20795 cat > conftest.$ac_ext <<_LT_EOF
20796 #line $LINENO "configure"
20797 #include "confdefs.h"
20798
20799 #if HAVE_DLFCN_H
20800 #include <dlfcn.h>
20801 #endif
20802
20803 #include <stdio.h>
20804
20805 #ifdef RTLD_GLOBAL
20806 # define LT_DLGLOBAL RTLD_GLOBAL
20807 #else
20808 # ifdef DL_GLOBAL
20809 # define LT_DLGLOBAL DL_GLOBAL
20810 # else
20811 # define LT_DLGLOBAL 0
20812 # endif
20813 #endif
20814
20815 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20816 find out it does not work in some platform. */
20817 #ifndef LT_DLLAZY_OR_NOW
20818 # ifdef RTLD_LAZY
20819 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20820 # else
20821 # ifdef DL_LAZY
20822 # define LT_DLLAZY_OR_NOW DL_LAZY
20823 # else
20824 # ifdef RTLD_NOW
20825 # define LT_DLLAZY_OR_NOW RTLD_NOW
20826 # else
20827 # ifdef DL_NOW
20828 # define LT_DLLAZY_OR_NOW DL_NOW
20829 # else
20830 # define LT_DLLAZY_OR_NOW 0
20831 # endif
20832 # endif
20833 # endif
20834 # endif
20835 #endif
20836
20837 /* When -fvisibility=hidden is used, assume the code has been annotated
20838 correspondingly for the symbols needed. */
20839 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20840 int fnord (void) __attribute__((visibility("default")));
20841 #endif
20842
20843 int fnord (void) { return 42; }
20844 int main (void)
20845 {
20846 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20847 int status = $lt_dlunknown;
20848
20849 if (self)
20850 {
20851 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20852 else
20853 {
20854 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20855 else puts (dlerror ());
20856 }
20857 /* dlclose (self); */
20858 }
20859 else
20860 puts (dlerror ());
20861
20862 return status;
20863 }
20864 _LT_EOF
20865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20866 (eval $ac_link) 2>&5
20867 ac_status=$?
20868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20869 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20870 (./conftest; exit; ) >&5 2>/dev/null
20871 lt_status=$?
20872 case x$lt_status in
20873 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20874 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20875 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20876 esac
20877 else :
20878 # compilation failed
20879 lt_cv_dlopen_self=no
20880 fi
20881 fi
20882 rm -fr conftest*
20883
20884 ;;
20885 esac
20886 fi
20887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
20888 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
20889
20890 if test yes = "$lt_cv_dlopen_self"; then
20891 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
20893 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
20894 if test ${lt_cv_dlopen_self_static+y}
20895 then :
20896 printf %s "(cached) " >&6
20897 else case e in #(
20898 e) if test yes = "$cross_compiling"; then :
20899 lt_cv_dlopen_self_static=cross
20900 else
20901 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20902 lt_status=$lt_dlunknown
20903 cat > conftest.$ac_ext <<_LT_EOF
20904 #line $LINENO "configure"
20905 #include "confdefs.h"
20906
20907 #if HAVE_DLFCN_H
20908 #include <dlfcn.h>
20909 #endif
20910
20911 #include <stdio.h>
20912
20913 #ifdef RTLD_GLOBAL
20914 # define LT_DLGLOBAL RTLD_GLOBAL
20915 #else
20916 # ifdef DL_GLOBAL
20917 # define LT_DLGLOBAL DL_GLOBAL
20918 # else
20919 # define LT_DLGLOBAL 0
20920 # endif
20921 #endif
20922
20923 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20924 find out it does not work in some platform. */
20925 #ifndef LT_DLLAZY_OR_NOW
20926 # ifdef RTLD_LAZY
20927 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20928 # else
20929 # ifdef DL_LAZY
20930 # define LT_DLLAZY_OR_NOW DL_LAZY
20931 # else
20932 # ifdef RTLD_NOW
20933 # define LT_DLLAZY_OR_NOW RTLD_NOW
20934 # else
20935 # ifdef DL_NOW
20936 # define LT_DLLAZY_OR_NOW DL_NOW
20937 # else
20938 # define LT_DLLAZY_OR_NOW 0
20939 # endif
20940 # endif
20941 # endif
20942 # endif
20943 #endif
20944
20945 /* When -fvisibility=hidden is used, assume the code has been annotated
20946 correspondingly for the symbols needed. */
20947 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20948 int fnord (void) __attribute__((visibility("default")));
20949 #endif
20950
20951 int fnord (void) { return 42; }
20952 int main (void)
20953 {
20954 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20955 int status = $lt_dlunknown;
20956
20957 if (self)
20958 {
20959 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20960 else
20961 {
20962 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20963 else puts (dlerror ());
20964 }
20965 /* dlclose (self); */
20966 }
20967 else
20968 puts (dlerror ());
20969
20970 return status;
20971 }
20972 _LT_EOF
20973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20974 (eval $ac_link) 2>&5
20975 ac_status=$?
20976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20977 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20978 (./conftest; exit; ) >&5 2>/dev/null
20979 lt_status=$?
20980 case x$lt_status in
20981 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20982 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20983 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20984 esac
20985 else :
20986 # compilation failed
20987 lt_cv_dlopen_self_static=no
20988 fi
20989 fi
20990 rm -fr conftest*
20991
20992 ;;
20993 esac
20994 fi
20995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20996 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
20997 fi
20998
20999 CPPFLAGS=$save_CPPFLAGS
21000 LDFLAGS=$save_LDFLAGS
21001 LIBS=$save_LIBS
21002 ;;
21003 esac
21004
21005 case $lt_cv_dlopen_self in
21006 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21007 *) enable_dlopen_self=unknown ;;
21008 esac
21009
21010 case $lt_cv_dlopen_self_static in
21011 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21012 *) enable_dlopen_self_static=unknown ;;
21013 esac
21014 fi
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032 striplib=
21033 old_striplib=
21034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21035 printf %s "checking whether stripping libraries is possible... " >&6; }
21036 if test -z "$STRIP"; then
21037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21038 printf "%s\n" "no" >&6; }
21039 else
21040 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21041 old_striplib="$STRIP --strip-debug"
21042 striplib="$STRIP --strip-unneeded"
21043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21044 printf "%s\n" "yes" >&6; }
21045 else
21046 case $host_os in
21047 darwin*)
21048 # FIXME - insert some real tests, host_os isn't really good enough
21049 striplib="$STRIP -x"
21050 old_striplib="$STRIP -S"
21051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21052 printf "%s\n" "yes" >&6; }
21053 ;;
21054 freebsd*)
21055 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
21056 old_striplib="$STRIP --strip-debug"
21057 striplib="$STRIP --strip-unneeded"
21058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21059 printf "%s\n" "yes" >&6; }
21060 else
21061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21062 printf "%s\n" "no" >&6; }
21063 fi
21064 ;;
21065 *)
21066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21067 printf "%s\n" "no" >&6; }
21068 ;;
21069 esac
21070 fi
21071 fi
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084 # Report what library types will actually be built
21085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21086 printf %s "checking if libtool supports shared libraries... " >&6; }
21087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21088 printf "%s\n" "$can_build_shared" >&6; }
21089
21090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21091 printf %s "checking whether to build shared libraries... " >&6; }
21092 test no = "$can_build_shared" && enable_shared=no
21093
21094 # On AIX, shared libraries and static libraries use the same namespace, and
21095 # are all built from PIC.
21096 case $host_os in
21097 aix3*)
21098 test yes = "$enable_shared" && enable_static=no
21099 if test -n "$RANLIB"; then
21100 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21101 postinstall_cmds='$RANLIB $lib'
21102 fi
21103 ;;
21104
21105 aix[4-9]*)
21106 if test ia64 != "$host_cpu"; then
21107 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
21108 yes,aix,yes) ;; # shared object as lib.so file only
21109 yes,svr4,*) ;; # shared object as lib.so archive member only
21110 yes,*) enable_static=no ;; # shared object in lib.a archive as well
21111 esac
21112 fi
21113 ;;
21114 esac
21115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21116 printf "%s\n" "$enable_shared" >&6; }
21117
21118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21119 printf %s "checking whether to build static libraries... " >&6; }
21120 # Make sure either enable_shared or enable_static is yes.
21121 test yes = "$enable_shared" || enable_static=yes
21122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21123 printf "%s\n" "$enable_static" >&6; }
21124
21125
21126
21127
21128 fi
21129 ac_ext=c
21130 ac_cpp='$CPP $CPPFLAGS'
21131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21134
21135 CC=$lt_save_CC
21136
21137 if test -n "$CXX" && ( test no != "$CXX" &&
21138 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
21139 (test g++ != "$CXX"))); then
21140 ac_ext=cpp
21141 ac_cpp='$CXXCPP $CPPFLAGS'
21142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
21146 printf %s "checking how to run the C++ preprocessor... " >&6; }
21147 if test -z "$CXXCPP"; then
21148 if test ${ac_cv_prog_CXXCPP+y}
21149 then :
21150 printf %s "(cached) " >&6
21151 else case e in #(
21152 e) # Double quotes because $CXX needs to be expanded
21153 for CXXCPP in "$CXX -E" cpp /lib/cpp
21154 do
21155 ac_preproc_ok=false
21156 for ac_cxx_preproc_warn_flag in '' yes
21157 do
21158 # Use a header file that comes with gcc, so configuring glibc
21159 # with a fresh cross-compiler works.
21160 # On the NeXT, cc -E runs the code through the compiler's parser,
21161 # not just through cpp. "Syntax error" is here to catch this case.
21162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21163 /* end confdefs.h. */
21164 #include <limits.h>
21165 Syntax error
21166 _ACEOF
21167 if ac_fn_cxx_try_cpp "$LINENO"
21168 then :
21169
21170 else case e in #(
21171 e) # Broken: fails on valid input.
21172 continue ;;
21173 esac
21174 fi
21175 rm -f conftest.err conftest.i conftest.$ac_ext
21176
21177 # OK, works on sane cases. Now check whether nonexistent headers
21178 # can be detected and how.
21179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21180 /* end confdefs.h. */
21181 #include <ac_nonexistent.h>
21182 _ACEOF
21183 if ac_fn_cxx_try_cpp "$LINENO"
21184 then :
21185 # Broken: success on invalid input.
21186 continue
21187 else case e in #(
21188 e) # Passes both tests.
21189 ac_preproc_ok=:
21190 break ;;
21191 esac
21192 fi
21193 rm -f conftest.err conftest.i conftest.$ac_ext
21194
21195 done
21196 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21197 rm -f conftest.i conftest.err conftest.$ac_ext
21198 if $ac_preproc_ok
21199 then :
21200 break
21201 fi
21202
21203 done
21204 ac_cv_prog_CXXCPP=$CXXCPP
21205 ;;
21206 esac
21207 fi
21208 CXXCPP=$ac_cv_prog_CXXCPP
21209 else
21210 ac_cv_prog_CXXCPP=$CXXCPP
21211 fi
21212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
21213 printf "%s\n" "$CXXCPP" >&6; }
21214 ac_preproc_ok=false
21215 for ac_cxx_preproc_warn_flag in '' yes
21216 do
21217 # Use a header file that comes with gcc, so configuring glibc
21218 # with a fresh cross-compiler works.
21219 # On the NeXT, cc -E runs the code through the compiler's parser,
21220 # not just through cpp. "Syntax error" is here to catch this case.
21221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21222 /* end confdefs.h. */
21223 #include <limits.h>
21224 Syntax error
21225 _ACEOF
21226 if ac_fn_cxx_try_cpp "$LINENO"
21227 then :
21228
21229 else case e in #(
21230 e) # Broken: fails on valid input.
21231 continue ;;
21232 esac
21233 fi
21234 rm -f conftest.err conftest.i conftest.$ac_ext
21235
21236 # OK, works on sane cases. Now check whether nonexistent headers
21237 # can be detected and how.
21238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21239 /* end confdefs.h. */
21240 #include <ac_nonexistent.h>
21241 _ACEOF
21242 if ac_fn_cxx_try_cpp "$LINENO"
21243 then :
21244 # Broken: success on invalid input.
21245 continue
21246 else case e in #(
21247 e) # Passes both tests.
21248 ac_preproc_ok=:
21249 break ;;
21250 esac
21251 fi
21252 rm -f conftest.err conftest.i conftest.$ac_ext
21253
21254 done
21255 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21256 rm -f conftest.i conftest.err conftest.$ac_ext
21257 if $ac_preproc_ok
21258 then :
21259
21260 else case e in #(
21261 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21262 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21263 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
21264 See 'config.log' for more details" "$LINENO" 5; } ;;
21265 esac
21266 fi
21267
21268 ac_ext=c
21269 ac_cpp='$CPP $CPPFLAGS'
21270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21273
21274 else
21275 _lt_caught_CXX_error=yes
21276 fi
21277
21278 ac_ext=cpp
21279 ac_cpp='$CXXCPP $CPPFLAGS'
21280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21283
21284 archive_cmds_need_lc_CXX=no
21285 allow_undefined_flag_CXX=
21286 always_export_symbols_CXX=no
21287 archive_expsym_cmds_CXX=
21288 compiler_needs_object_CXX=no
21289 export_dynamic_flag_spec_CXX=
21290 hardcode_direct_CXX=no
21291 hardcode_direct_absolute_CXX=no
21292 hardcode_libdir_flag_spec_CXX=
21293 hardcode_libdir_separator_CXX=
21294 hardcode_minus_L_CXX=no
21295 hardcode_shlibpath_var_CXX=unsupported
21296 hardcode_automatic_CXX=no
21297 inherit_rpath_CXX=no
21298 module_cmds_CXX=
21299 module_expsym_cmds_CXX=
21300 link_all_deplibs_CXX=unknown
21301 old_archive_cmds_CXX=$old_archive_cmds
21302 reload_flag_CXX=$reload_flag
21303 reload_cmds_CXX=$reload_cmds
21304 no_undefined_flag_CXX=
21305 whole_archive_flag_spec_CXX=
21306 enable_shared_with_static_runtimes_CXX=no
21307
21308 # Source file extension for C++ test sources.
21309 ac_ext=cpp
21310
21311 # Object file extension for compiled C++ test sources.
21312 objext=o
21313 objext_CXX=$objext
21314
21315 # No sense in running all these tests if we already determined that
21316 # the CXX compiler isn't working. Some variables (like enable_shared)
21317 # are currently assumed to apply to all compilers on this platform,
21318 # and will be corrupted by setting them based on a non-working compiler.
21319 if test yes != "$_lt_caught_CXX_error"; then
21320 # Code to be used in simple compile tests
21321 lt_simple_compile_test_code="int some_variable = 0;"
21322
21323 # Code to be used in simple link tests
21324 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
21325
21326 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21327
21328
21329
21330
21331
21332
21333 # If no C compiler was specified, use CC.
21334 LTCC=${LTCC-"$CC"}
21335
21336 # If no C compiler flags were specified, use CFLAGS.
21337 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21338
21339 # Allow CC to be a program name with arguments.
21340 compiler=$CC
21341
21342
21343 # save warnings/boilerplate of simple test code
21344 ac_outfile=conftest.$ac_objext
21345 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21346 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21347 _lt_compiler_boilerplate=`cat conftest.err`
21348 $RM conftest*
21349
21350 ac_outfile=conftest.$ac_objext
21351 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21352 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21353 _lt_linker_boilerplate=`cat conftest.err`
21354 $RM -r conftest*
21355
21356
21357 # Allow CC to be a program name with arguments.
21358 lt_save_CC=$CC
21359 lt_save_CFLAGS=$CFLAGS
21360 lt_save_LD=$LD
21361 lt_save_GCC=$GCC
21362 GCC=$GXX
21363 lt_save_with_gnu_ld=$with_gnu_ld
21364 lt_save_path_LD=$lt_cv_path_LD
21365 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
21366 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
21367 else
21368 $as_unset lt_cv_prog_gnu_ld
21369 fi
21370 if test -n "${lt_cv_path_LDCXX+set}"; then
21371 lt_cv_path_LD=$lt_cv_path_LDCXX
21372 else
21373 $as_unset lt_cv_path_LD
21374 fi
21375 test -z "${LDCXX+set}" || LD=$LDCXX
21376 CC=${CXX-"c++"}
21377 CFLAGS=$CXXFLAGS
21378 compiler=$CC
21379 compiler_CXX=$CC
21380 func_cc_basename $compiler
21381 cc_basename=$func_cc_basename_result
21382
21383
21384 if test -n "$compiler"; then
21385 # We don't want -fno-exception when compiling C++ code, so set the
21386 # no_builtin_flag separately
21387 if test yes = "$GXX"; then
21388 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
21389 else
21390 lt_prog_compiler_no_builtin_flag_CXX=
21391 fi
21392
21393 if test yes = "$GXX"; then
21394 # Set up default GNU C++ configuration
21395
21396
21397
21398 # Check whether --with-gnu-ld was given.
21399 if test ${with_gnu_ld+y}
21400 then :
21401 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
21402 else case e in #(
21403 e) with_gnu_ld=no ;;
21404 esac
21405 fi
21406
21407 ac_prog=ld
21408 if test yes = "$GCC"; then
21409 # Check if gcc -print-prog-name=ld gives a path.
21410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
21411 printf %s "checking for ld used by $CC... " >&6; }
21412 case $host in
21413 *-*-mingw* | *-*-windows*)
21414 # gcc leaves a trailing carriage return, which upsets mingw
21415 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21416 *)
21417 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21418 esac
21419 case $ac_prog in
21420 # Accept absolute paths.
21421 [\\/]* | ?:[\\/]*)
21422 re_direlt='/[^/][^/]*/\.\./'
21423 # Canonicalize the pathname of ld
21424 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
21425 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
21426 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
21427 done
21428 test -z "$LD" && LD=$ac_prog
21429 ;;
21430 "")
21431 # If it fails, then pretend we aren't using GCC.
21432 ac_prog=ld
21433 ;;
21434 *)
21435 # If it is relative, then search for the first ld in PATH.
21436 with_gnu_ld=unknown
21437 ;;
21438 esac
21439 elif test yes = "$with_gnu_ld"; then
21440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21441 printf %s "checking for GNU ld... " >&6; }
21442 else
21443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21444 printf %s "checking for non-GNU ld... " >&6; }
21445 fi
21446 if test ${lt_cv_path_LD+y}
21447 then :
21448 printf %s "(cached) " >&6
21449 else case e in #(
21450 e) if test -z "$LD"; then
21451 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
21452 for ac_dir in $PATH; do
21453 IFS=$lt_save_ifs
21454 test -z "$ac_dir" && ac_dir=.
21455 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21456 lt_cv_path_LD=$ac_dir/$ac_prog
21457 # Check to see if the program is GNU ld. I'd rather use --version,
21458 # but apparently some variants of GNU ld only accept -v.
21459 # Break only if it was the GNU/non-GNU ld that we prefer.
21460 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
21461 *GNU* | *'with BFD'*)
21462 test no != "$with_gnu_ld" && break
21463 ;;
21464 *)
21465 test yes != "$with_gnu_ld" && break
21466 ;;
21467 esac
21468 fi
21469 done
21470 IFS=$lt_save_ifs
21471 else
21472 lt_cv_path_LD=$LD # Let the user override the test with a path.
21473 fi ;;
21474 esac
21475 fi
21476
21477 LD=$lt_cv_path_LD
21478 if test -n "$LD"; then
21479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21480 printf "%s\n" "$LD" >&6; }
21481 else
21482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21483 printf "%s\n" "no" >&6; }
21484 fi
21485 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
21486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21487 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
21488 if test ${lt_cv_prog_gnu_ld+y}
21489 then :
21490 printf %s "(cached) " >&6
21491 else case e in #(
21492 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
21493 case `$LD -v 2>&1 </dev/null` in
21494 *GNU* | *'with BFD'*)
21495 lt_cv_prog_gnu_ld=yes
21496 ;;
21497 *)
21498 lt_cv_prog_gnu_ld=no
21499 ;;
21500 esac ;;
21501 esac
21502 fi
21503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
21504 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
21505 with_gnu_ld=$lt_cv_prog_gnu_ld
21506
21507
21508
21509
21510
21511
21512
21513 # Check if GNU C++ uses GNU ld as the underlying linker, since the
21514 # archiving commands below assume that GNU ld is being used.
21515 if test yes = "$with_gnu_ld"; then
21516 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21517 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21518
21519 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21520 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21521
21522 # If archive_cmds runs LD, not CC, wlarc should be empty
21523 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
21524 # investigate it a little bit more. (MM)
21525 wlarc='$wl'
21526
21527 # ancient GNU ld didn't support --whole-archive et. al.
21528 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
21529 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
21530 else
21531 whole_archive_flag_spec_CXX=
21532 fi
21533 else
21534 with_gnu_ld=no
21535 wlarc=
21536
21537 # A generic and very simple default shared library creation
21538 # command for GNU C++ for the case where it uses the native
21539 # linker, instead of GNU ld. If possible, this setting should
21540 # overridden to take advantage of the native linker features on
21541 # the platform it is being used on.
21542 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21543 fi
21544
21545 # Commands to make compiler produce verbose output that lists
21546 # what "hidden" libraries, object files and flags are used when
21547 # linking a shared library.
21548 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
21549
21550 else
21551 GXX=no
21552 with_gnu_ld=no
21553 wlarc=
21554 fi
21555
21556 # PORTME: fill in a description of your system's C++ link characteristics
21557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21558 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21559 ld_shlibs_CXX=yes
21560 case $host_os in
21561 aix3*)
21562 # FIXME: insert proper C++ library support
21563 ld_shlibs_CXX=no
21564 ;;
21565 aix[4-9]*)
21566 if test ia64 = "$host_cpu"; then
21567 # On IA64, the linker does run time linking by default, so we don't
21568 # have to do anything special.
21569 aix_use_runtimelinking=no
21570 exp_sym_flag='-Bexport'
21571 no_entry_flag=
21572 else
21573 aix_use_runtimelinking=no
21574
21575 # Test if we are trying to use run time linking or normal
21576 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21577 # have runtime linking enabled, and use it for executables.
21578 # For shared libraries, we enable/disable runtime linking
21579 # depending on the kind of the shared library created -
21580 # when "with_aix_soname,aix_use_runtimelinking" is:
21581 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
21582 # "aix,yes" lib.so shared, rtl:yes, for executables
21583 # lib.a static archive
21584 # "both,no" lib.so.V(shr.o) shared, rtl:yes
21585 # lib.a(lib.so.V) shared, rtl:no, for executables
21586 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
21587 # lib.a(lib.so.V) shared, rtl:no
21588 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
21589 # lib.a static archive
21590 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
21591 for ld_flag in $LDFLAGS; do
21592 case $ld_flag in
21593 *-brtl*)
21594 aix_use_runtimelinking=yes
21595 break
21596 ;;
21597 esac
21598 done
21599 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
21600 # With aix-soname=svr4, we create the lib.so.V shared archives only,
21601 # so we don't have lib.a shared libs to link our executables.
21602 # We have to force runtime linking in this case.
21603 aix_use_runtimelinking=yes
21604 LDFLAGS="$LDFLAGS -Wl,-brtl"
21605 fi
21606 ;;
21607 esac
21608
21609 exp_sym_flag='-bexport'
21610 no_entry_flag='-bnoentry'
21611 fi
21612
21613 # When large executables or shared objects are built, AIX ld can
21614 # have problems creating the table of contents. If linking a library
21615 # or program results in "error TOC overflow" add -mminimal-toc to
21616 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21617 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21618
21619 archive_cmds_CXX=''
21620 hardcode_direct_CXX=yes
21621 hardcode_direct_absolute_CXX=yes
21622 hardcode_libdir_separator_CXX=':'
21623 link_all_deplibs_CXX=yes
21624 file_list_spec_CXX='$wl-f,'
21625 case $with_aix_soname,$aix_use_runtimelinking in
21626 aix,*) ;; # no import file
21627 svr4,* | *,yes) # use import file
21628 # The Import File defines what to hardcode.
21629 hardcode_direct_CXX=no
21630 hardcode_direct_absolute_CXX=no
21631 ;;
21632 esac
21633
21634 if test yes = "$GXX"; then
21635 case $host_os in aix4.[012]|aix4.[012].*)
21636 # We only want to do this on AIX 4.2 and lower, the check
21637 # below for broken collect2 doesn't work under 4.3+
21638 collect2name=`$CC -print-prog-name=collect2`
21639 if test -f "$collect2name" &&
21640 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
21641 then
21642 # We have reworked collect2
21643 :
21644 else
21645 # We have old collect2
21646 hardcode_direct_CXX=unsupported
21647 # It fails to find uninstalled libraries when the uninstalled
21648 # path is not listed in the libpath. Setting hardcode_minus_L
21649 # to unsupported forces relinking
21650 hardcode_minus_L_CXX=yes
21651 hardcode_libdir_flag_spec_CXX='-L$libdir'
21652 hardcode_libdir_separator_CXX=
21653 fi
21654 esac
21655 shared_flag='-shared'
21656 if test yes = "$aix_use_runtimelinking"; then
21657 shared_flag=$shared_flag' $wl-G'
21658 fi
21659 # Need to ensure runtime linking is disabled for the traditional
21660 # shared library, or the linker may eventually find shared libraries
21661 # /with/ Import File - we do not want to mix them.
21662 shared_flag_aix='-shared'
21663 shared_flag_svr4='-shared $wl-G'
21664 else
21665 # not using gcc
21666 if test ia64 = "$host_cpu"; then
21667 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21668 # chokes on -Wl,-G. The following line is correct:
21669 shared_flag='-G'
21670 else
21671 if test yes = "$aix_use_runtimelinking"; then
21672 shared_flag='$wl-G'
21673 else
21674 shared_flag='$wl-bM:SRE'
21675 fi
21676 shared_flag_aix='$wl-bM:SRE'
21677 shared_flag_svr4='$wl-G'
21678 fi
21679 fi
21680
21681 export_dynamic_flag_spec_CXX='$wl-bexpall'
21682 # It seems that -bexpall does not export symbols beginning with
21683 # underscore (_), so it is better to generate a list of symbols to
21684 # export.
21685 always_export_symbols_CXX=yes
21686 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
21687 # Warning - without using the other runtime loading flags (-brtl),
21688 # -berok will link without error, but may produce a broken library.
21689 # The "-G" linker flag allows undefined symbols.
21690 no_undefined_flag_CXX='-bernotok'
21691 # Determine the default libpath from the value encoded in an empty
21692 # executable.
21693 if test set = "${lt_cv_aix_libpath+set}"; then
21694 aix_libpath=$lt_cv_aix_libpath
21695 else
21696 if test ${lt_cv_aix_libpath__CXX+y}
21697 then :
21698 printf %s "(cached) " >&6
21699 else case e in #(
21700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21701 /* end confdefs.h. */
21702
21703 int
21704 main (void)
21705 {
21706
21707 ;
21708 return 0;
21709 }
21710 _ACEOF
21711 if ac_fn_cxx_try_link "$LINENO"
21712 then :
21713
21714 lt_aix_libpath_sed='
21715 /Import File Strings/,/^$/ {
21716 /^0/ {
21717 s/^0 *\([^ ]*\) *$/\1/
21718 p
21719 }
21720 }'
21721 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21722 # Check for a 64-bit object if we didn't find anything.
21723 if test -z "$lt_cv_aix_libpath__CXX"; then
21724 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21725 fi
21726 fi
21727 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21728 conftest$ac_exeext conftest.$ac_ext
21729 if test -z "$lt_cv_aix_libpath__CXX"; then
21730 lt_cv_aix_libpath__CXX=/usr/lib:/lib
21731 fi
21732 ;;
21733 esac
21734 fi
21735
21736 aix_libpath=$lt_cv_aix_libpath__CXX
21737 fi
21738
21739 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
21740
21741 archive_expsym_cmds_CXX='$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
21742 else
21743 if test ia64 = "$host_cpu"; then
21744 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
21745 allow_undefined_flag_CXX="-z nodefs"
21746 archive_expsym_cmds_CXX="\$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"
21747 else
21748 # Determine the default libpath from the value encoded in an
21749 # empty executable.
21750 if test set = "${lt_cv_aix_libpath+set}"; then
21751 aix_libpath=$lt_cv_aix_libpath
21752 else
21753 if test ${lt_cv_aix_libpath__CXX+y}
21754 then :
21755 printf %s "(cached) " >&6
21756 else case e in #(
21757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21758 /* end confdefs.h. */
21759
21760 int
21761 main (void)
21762 {
21763
21764 ;
21765 return 0;
21766 }
21767 _ACEOF
21768 if ac_fn_cxx_try_link "$LINENO"
21769 then :
21770
21771 lt_aix_libpath_sed='
21772 /Import File Strings/,/^$/ {
21773 /^0/ {
21774 s/^0 *\([^ ]*\) *$/\1/
21775 p
21776 }
21777 }'
21778 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21779 # Check for a 64-bit object if we didn't find anything.
21780 if test -z "$lt_cv_aix_libpath__CXX"; then
21781 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21782 fi
21783 fi
21784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21785 conftest$ac_exeext conftest.$ac_ext
21786 if test -z "$lt_cv_aix_libpath__CXX"; then
21787 lt_cv_aix_libpath__CXX=/usr/lib:/lib
21788 fi
21789 ;;
21790 esac
21791 fi
21792
21793 aix_libpath=$lt_cv_aix_libpath__CXX
21794 fi
21795
21796 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
21797 # Warning - without using the other run time loading flags,
21798 # -berok will link without error, but may produce a broken library.
21799 no_undefined_flag_CXX=' $wl-bernotok'
21800 allow_undefined_flag_CXX=' $wl-berok'
21801 if test yes = "$with_gnu_ld"; then
21802 # We only use this code for GNU lds that support --whole-archive.
21803 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
21804 else
21805 # Exported symbols can be pulled into shared objects from archives
21806 whole_archive_flag_spec_CXX='$convenience'
21807 fi
21808 archive_cmds_need_lc_CXX=yes
21809 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
21810 # -brtl affects multiple linker settings, -berok does not and is overridden later
21811 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
21812 if test svr4 != "$with_aix_soname"; then
21813 # This is similar to how AIX traditionally builds its shared
21814 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
21815 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
21816 fi
21817 if test aix != "$with_aix_soname"; then
21818 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
21819 else
21820 # used by -dlpreopen to get the symbols
21821 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
21822 fi
21823 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
21824 fi
21825 fi
21826 ;;
21827
21828 beos*)
21829 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21830 allow_undefined_flag_CXX=unsupported
21831 # Joseph Beckenbach <[email protected]> says some releases of gcc
21832 # support --undefined. This deserves some investigation. FIXME
21833 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21834 else
21835 ld_shlibs_CXX=no
21836 fi
21837 ;;
21838
21839 chorus*)
21840 case $cc_basename in
21841 *)
21842 # FIXME: insert proper C++ library support
21843 ld_shlibs_CXX=no
21844 ;;
21845 esac
21846 ;;
21847
21848 cygwin* | mingw* | windows* | pw32* | cegcc*)
21849 case $GXX,$cc_basename in
21850 ,cl* | no,cl* | ,icl* | no,icl*)
21851 # Native MSVC or ICC
21852 # hardcode_libdir_flag_spec is actually meaningless, as there is
21853 # no search path for DLLs.
21854 hardcode_libdir_flag_spec_CXX=' '
21855 allow_undefined_flag_CXX=unsupported
21856 always_export_symbols_CXX=yes
21857 file_list_spec_CXX='@'
21858 # Tell ltmain to make .lib files, not .a files.
21859 libext=lib
21860 # Tell ltmain to make .dll files, not .so files.
21861 shrext_cmds=.dll
21862 # FIXME: Setting linknames here is a bad hack.
21863 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
21864 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
21865 cp "$export_symbols" "$output_objdir/$soname.def";
21866 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
21867 else
21868 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
21869 fi~
21870 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
21871 linknames='
21872 # The linker will not automatically build a static lib if we build a DLL.
21873 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
21874 enable_shared_with_static_runtimes_CXX=yes
21875 # Don't use ranlib
21876 old_postinstall_cmds_CXX='chmod 644 $oldlib'
21877 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
21878 lt_tool_outputfile="@TOOL_OUTPUT@"~
21879 case $lt_outputfile in
21880 *.exe|*.EXE) ;;
21881 *)
21882 lt_outputfile=$lt_outputfile.exe
21883 lt_tool_outputfile=$lt_tool_outputfile.exe
21884 ;;
21885 esac~
21886 func_to_tool_file "$lt_outputfile"~
21887 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
21888 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
21889 $RM "$lt_outputfile.manifest";
21890 fi'
21891 ;;
21892 *)
21893 # g++
21894 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
21895 # as there is no search path for DLLs.
21896 hardcode_libdir_flag_spec_CXX='-L$libdir'
21897 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
21898 allow_undefined_flag_CXX=unsupported
21899 always_export_symbols_CXX=no
21900 enable_shared_with_static_runtimes_CXX=yes
21901 file_list_spec_CXX='@'
21902
21903 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
21904 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21905 # If the export-symbols file already is a .def file, use it as
21906 # is; otherwise, prepend EXPORTS...
21907 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
21908 cp $export_symbols $output_objdir/$soname.def;
21909 else
21910 echo EXPORTS > $output_objdir/$soname.def;
21911 cat $export_symbols >> $output_objdir/$soname.def;
21912 fi~
21913 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21914 else
21915 ld_shlibs_CXX=no
21916 fi
21917 ;;
21918 esac
21919 ;;
21920 darwin* | rhapsody*)
21921
21922
21923 archive_cmds_need_lc_CXX=no
21924 hardcode_direct_CXX=no
21925 hardcode_automatic_CXX=yes
21926 hardcode_shlibpath_var_CXX=unsupported
21927 if test yes = "$lt_cv_ld_force_load"; then
21928 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
21929
21930 else
21931 whole_archive_flag_spec_CXX=''
21932 fi
21933 link_all_deplibs_CXX=yes
21934 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
21935 case $cc_basename in
21936 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
21937 *) _lt_dar_can_shared=$GCC ;;
21938 esac
21939 if test yes = "$_lt_dar_can_shared"; then
21940 output_verbose_link_cmd=func_echo_all
21941 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
21942 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
21943 archive_expsym_cmds_CXX="$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"
21944 module_expsym_cmds_CXX="$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"
21945 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
21946 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
21947 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
21948 fi
21949
21950 else
21951 ld_shlibs_CXX=no
21952 fi
21953
21954 ;;
21955
21956 os2*)
21957 hardcode_libdir_flag_spec_CXX='-L$libdir'
21958 hardcode_minus_L_CXX=yes
21959 allow_undefined_flag_CXX=unsupported
21960 shrext_cmds=.dll
21961 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21962 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21963 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21964 $ECHO EXPORTS >> $output_objdir/$libname.def~
21965 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
21966 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21967 emximp -o $lib $output_objdir/$libname.def'
21968 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21969 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21970 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21971 $ECHO EXPORTS >> $output_objdir/$libname.def~
21972 prefix_cmds="$SED"~
21973 if test EXPORTS = "`$SED 1q $export_symbols`"; then
21974 prefix_cmds="$prefix_cmds -e 1d";
21975 fi~
21976 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
21977 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
21978 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21979 emximp -o $lib $output_objdir/$libname.def'
21980 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
21981 enable_shared_with_static_runtimes_CXX=yes
21982 file_list_spec_CXX='@'
21983 ;;
21984
21985 dgux*)
21986 case $cc_basename in
21987 ec++*)
21988 # FIXME: insert proper C++ library support
21989 ld_shlibs_CXX=no
21990 ;;
21991 ghcx*)
21992 # Green Hills C++ Compiler
21993 # FIXME: insert proper C++ library support
21994 ld_shlibs_CXX=no
21995 ;;
21996 *)
21997 # FIXME: insert proper C++ library support
21998 ld_shlibs_CXX=no
21999 ;;
22000 esac
22001 ;;
22002
22003 freebsd2.*)
22004 # C++ shared libraries reported to be fairly broken before
22005 # switch to ELF
22006 ld_shlibs_CXX=no
22007 ;;
22008
22009 freebsd-elf*)
22010 archive_cmds_need_lc_CXX=no
22011 ;;
22012
22013 freebsd* | dragonfly* | midnightbsd*)
22014 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22015 # conventions
22016 ld_shlibs_CXX=yes
22017 ;;
22018
22019 haiku*)
22020 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
22021 link_all_deplibs_CXX=no
22022 ;;
22023
22024 hpux9*)
22025 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
22026 hardcode_libdir_separator_CXX=:
22027 export_dynamic_flag_spec_CXX='$wl-E'
22028 hardcode_direct_CXX=yes
22029 hardcode_minus_L_CXX=yes # Not in the search PATH,
22030 # but as the default
22031 # location of the library.
22032
22033 case $cc_basename in
22034 CC*)
22035 # FIXME: insert proper C++ library support
22036 ld_shlibs_CXX=no
22037 ;;
22038 aCC*)
22039 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
22040 # Commands to make compiler produce verbose output that lists
22041 # what "hidden" libraries, object files and flags are used when
22042 # linking a shared library.
22043 #
22044 # There doesn't appear to be a way to prevent this compiler from
22045 # explicitly linking system object files so we need to strip them
22046 # from the output so that they don't get included in the library
22047 # dependencies.
22048 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "[-]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
22049 ;;
22050 *)
22051 if test yes = "$GXX"; then
22052 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
22053 else
22054 # FIXME: insert proper C++ library support
22055 ld_shlibs_CXX=no
22056 fi
22057 ;;
22058 esac
22059 ;;
22060
22061 hpux10*|hpux11*)
22062 if test no = "$with_gnu_ld"; then
22063 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
22064 hardcode_libdir_separator_CXX=:
22065
22066 case $host_cpu in
22067 hppa*64*|ia64*)
22068 ;;
22069 *)
22070 export_dynamic_flag_spec_CXX='$wl-E'
22071 ;;
22072 esac
22073 fi
22074 case $host_cpu in
22075 hppa*64*|ia64*)
22076 hardcode_direct_CXX=no
22077 hardcode_shlibpath_var_CXX=no
22078 ;;
22079 *)
22080 hardcode_direct_CXX=yes
22081 hardcode_direct_absolute_CXX=yes
22082 hardcode_minus_L_CXX=yes # Not in the search PATH,
22083 # but as the default
22084 # location of the library.
22085 ;;
22086 esac
22087
22088 case $cc_basename in
22089 CC*)
22090 # FIXME: insert proper C++ library support
22091 ld_shlibs_CXX=no
22092 ;;
22093 aCC*)
22094 case $host_cpu in
22095 hppa*64*)
22096 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22097 ;;
22098 ia64*)
22099 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22100 ;;
22101 *)
22102 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22103 ;;
22104 esac
22105 # Commands to make compiler produce verbose output that lists
22106 # what "hidden" libraries, object files and flags are used when
22107 # linking a shared library.
22108 #
22109 # There doesn't appear to be a way to prevent this compiler from
22110 # explicitly linking system object files so we need to strip them
22111 # from the output so that they don't get included in the library
22112 # dependencies.
22113 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " [-]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
22114 ;;
22115 *)
22116 if test yes = "$GXX"; then
22117 if test no = "$with_gnu_ld"; then
22118 case $host_cpu in
22119 hppa*64*)
22120 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22121 ;;
22122 ia64*)
22123 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22124 ;;
22125 *)
22126 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22127 ;;
22128 esac
22129 fi
22130 else
22131 # FIXME: insert proper C++ library support
22132 ld_shlibs_CXX=no
22133 fi
22134 ;;
22135 esac
22136 ;;
22137
22138 interix[3-9]*)
22139 hardcode_direct_CXX=no
22140 hardcode_shlibpath_var_CXX=no
22141 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
22142 export_dynamic_flag_spec_CXX='$wl-E'
22143 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22144 # Instead, shared libraries are loaded at an image base (0x10000000 by
22145 # default) and relocated if they conflict, which is a slow very memory
22146 # consuming and fragmenting process. To avoid this, we pick a random,
22147 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22148 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22149 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22150 archive_expsym_cmds_CXX='$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'
22151 ;;
22152 irix5* | irix6*)
22153 case $cc_basename in
22154 CC*)
22155 # SGI C++
22156 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
22157
22158 # Archives containing C++ object files must be created using
22159 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22160 # necessary to make sure instantiated templates are included
22161 # in the archive.
22162 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
22163 ;;
22164 *)
22165 if test yes = "$GXX"; then
22166 if test no = "$with_gnu_ld"; then
22167 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
22168 else
22169 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
22170 fi
22171 fi
22172 link_all_deplibs_CXX=yes
22173 ;;
22174 esac
22175 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
22176 hardcode_libdir_separator_CXX=:
22177 inherit_rpath_CXX=yes
22178 ;;
22179
22180 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
22181 case $cc_basename in
22182 KCC*)
22183 # Kuck and Associates, Inc. (KAI) C++ Compiler
22184
22185 # KCC will only create a shared library if the output file
22186 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22187 # to its proper name (with version) after linking.
22188 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
22189 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
22190 # Commands to make compiler produce verbose output that lists
22191 # what "hidden" libraries, object files and flags are used when
22192 # linking a shared library.
22193 #
22194 # There doesn't appear to be a way to prevent this compiler from
22195 # explicitly linking system object files so we need to strip them
22196 # from the output so that they don't get included in the library
22197 # dependencies.
22198 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
22199
22200 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
22201 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
22202
22203 # Archives containing C++ object files must be created using
22204 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22205 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
22206 ;;
22207 icpc* | ecpc* )
22208 # Intel C++
22209 with_gnu_ld=yes
22210 # version 8.0 and above of icpc choke on multiply defined symbols
22211 # if we add $predep_objects and $postdep_objects, however 7.1 and
22212 # earlier do not add the objects themselves.
22213 case `$CC -V 2>&1` in
22214 *"Version 7."*)
22215 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
22216 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
22217 ;;
22218 *) # Version 8.0 or newer
22219 tmp_idyn=
22220 case $host_cpu in
22221 ia64*) tmp_idyn=' -i_dynamic';;
22222 esac
22223 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
22224 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
22225 ;;
22226 esac
22227 archive_cmds_need_lc_CXX=no
22228 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
22229 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
22230 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
22231 ;;
22232 pgCC* | pgcpp*)
22233 # Portland Group C++ compiler
22234 case `$CC -V` in
22235 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
22236 prelink_cmds_CXX='tpldir=Template.dir~
22237 rm -rf $tpldir~
22238 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22239 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22240 old_archive_cmds_CXX='tpldir=Template.dir~
22241 rm -rf $tpldir~
22242 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22243 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22244 $RANLIB $oldlib'
22245 archive_cmds_CXX='tpldir=Template.dir~
22246 rm -rf $tpldir~
22247 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22248 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
22249 archive_expsym_cmds_CXX='tpldir=Template.dir~
22250 rm -rf $tpldir~
22251 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22252 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
22253 ;;
22254 *) # Version 6 and above use weak symbols
22255 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
22256 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
22257 ;;
22258 esac
22259
22260 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
22261 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
22262 whole_archive_flag_spec_CXX='$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'
22263 ;;
22264 cxx*)
22265 # Compaq C++
22266 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
22267 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
22268
22269 runpath_var=LD_RUN_PATH
22270 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22271 hardcode_libdir_separator_CXX=:
22272
22273 # Commands to make compiler produce verbose output that lists
22274 # what "hidden" libraries, object files and flags are used when
22275 # linking a shared library.
22276 #
22277 # There doesn't appear to be a way to prevent this compiler from
22278 # explicitly linking system object files so we need to strip them
22279 # from the output so that they don't get included in the library
22280 # dependencies.
22281 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
22282 ;;
22283 xl* | mpixl* | bgxl*)
22284 # IBM XL 8.0 on PPC, with GNU ld
22285 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
22286 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
22287 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
22288 if test yes = "$supports_anon_versioning"; then
22289 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
22290 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22291 echo "local: *; };" >> $output_objdir/$libname.ver~
22292 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
22293 fi
22294 ;;
22295 *)
22296 case `$CC -V 2>&1 | $SED 5q` in
22297 *Sun\ C*)
22298 # Sun C++ 5.9
22299 no_undefined_flag_CXX=' -zdefs'
22300 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22301 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
22302 hardcode_libdir_flag_spec_CXX='-R$libdir'
22303 whole_archive_flag_spec_CXX='$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'
22304 compiler_needs_object_CXX=yes
22305
22306 # Not sure whether something based on
22307 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22308 # would be better.
22309 output_verbose_link_cmd='func_echo_all'
22310
22311 # Archives containing C++ object files must be created using
22312 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22313 # necessary to make sure instantiated templates are included
22314 # in the archive.
22315 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
22316 ;;
22317 esac
22318 ;;
22319 esac
22320 ;;
22321
22322 lynxos*)
22323 # FIXME: insert proper C++ library support
22324 ld_shlibs_CXX=no
22325 ;;
22326
22327 m88k*)
22328 # FIXME: insert proper C++ library support
22329 ld_shlibs_CXX=no
22330 ;;
22331
22332 mvs*)
22333 case $cc_basename in
22334 cxx*)
22335 # FIXME: insert proper C++ library support
22336 ld_shlibs_CXX=no
22337 ;;
22338 *)
22339 # FIXME: insert proper C++ library support
22340 ld_shlibs_CXX=no
22341 ;;
22342 esac
22343 ;;
22344
22345 *-mlibc)
22346 ld_shlibs_CXX=yes
22347 ;;
22348
22349 netbsd*)
22350 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22351 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
22352 wlarc=
22353 hardcode_libdir_flag_spec_CXX='-R$libdir'
22354 hardcode_direct_CXX=yes
22355 hardcode_shlibpath_var_CXX=no
22356 fi
22357 # Workaround some broken pre-1.5 toolchains
22358 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
22359 ;;
22360
22361 *nto* | *qnx*)
22362 ld_shlibs_CXX=yes
22363 ;;
22364
22365 openbsd*)
22366 if test -f /usr/libexec/ld.so; then
22367 hardcode_direct_CXX=yes
22368 hardcode_shlibpath_var_CXX=no
22369 hardcode_direct_absolute_CXX=yes
22370 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22371 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
22372 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
22373 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
22374 export_dynamic_flag_spec_CXX='$wl-E'
22375 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
22376 fi
22377 output_verbose_link_cmd=func_echo_all
22378 else
22379 ld_shlibs_CXX=no
22380 fi
22381 ;;
22382
22383 osf3* | osf4* | osf5*)
22384 case $cc_basename in
22385 KCC*)
22386 # Kuck and Associates, Inc. (KAI) C++ Compiler
22387
22388 # KCC will only create a shared library if the output file
22389 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22390 # to its proper name (with version) after linking.
22391 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
22392
22393 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
22394 hardcode_libdir_separator_CXX=:
22395
22396 # Archives containing C++ object files must be created using
22397 # the KAI C++ compiler.
22398 case $host in
22399 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
22400 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
22401 esac
22402 ;;
22403 RCC*)
22404 # Rational C++ 2.4.1
22405 # FIXME: insert proper C++ library support
22406 ld_shlibs_CXX=no
22407 ;;
22408 cxx*)
22409 case $host in
22410 osf3*)
22411 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
22412 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
22413 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
22414 ;;
22415 *)
22416 allow_undefined_flag_CXX=' -expect_unresolved \*'
22417 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
22418 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
22419 echo "-hidden">> $lib.exp~
22420 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
22421 $RM $lib.exp'
22422 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22423 ;;
22424 esac
22425
22426 hardcode_libdir_separator_CXX=:
22427
22428 # Commands to make compiler produce verbose output that lists
22429 # what "hidden" libraries, object files and flags are used when
22430 # linking a shared library.
22431 #
22432 # There doesn't appear to be a way to prevent this compiler from
22433 # explicitly linking system object files so we need to strip them
22434 # from the output so that they don't get included in the library
22435 # dependencies.
22436 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
22437 ;;
22438 *)
22439 if test yes,no = "$GXX,$with_gnu_ld"; then
22440 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
22441 case $host in
22442 osf3*)
22443 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
22444 ;;
22445 *)
22446 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
22447 ;;
22448 esac
22449
22450 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
22451 hardcode_libdir_separator_CXX=:
22452
22453 # Commands to make compiler produce verbose output that lists
22454 # what "hidden" libraries, object files and flags are used when
22455 # linking a shared library.
22456 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
22457
22458 else
22459 # FIXME: insert proper C++ library support
22460 ld_shlibs_CXX=no
22461 fi
22462 ;;
22463 esac
22464 ;;
22465
22466 psos*)
22467 # FIXME: insert proper C++ library support
22468 ld_shlibs_CXX=no
22469 ;;
22470
22471 serenity*)
22472 ;;
22473
22474 sunos4*)
22475 case $cc_basename in
22476 CC*)
22477 # Sun C++ 4.x
22478 # FIXME: insert proper C++ library support
22479 ld_shlibs_CXX=no
22480 ;;
22481 lcc*)
22482 # Lucid
22483 # FIXME: insert proper C++ library support
22484 ld_shlibs_CXX=no
22485 ;;
22486 *)
22487 # FIXME: insert proper C++ library support
22488 ld_shlibs_CXX=no
22489 ;;
22490 esac
22491 ;;
22492
22493 solaris*)
22494 case $cc_basename in
22495 CC* | sunCC*)
22496 # Sun C++ 4.2, 5.x and Centerline C++
22497 archive_cmds_need_lc_CXX=yes
22498 no_undefined_flag_CXX=' -zdefs'
22499 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22500 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22501 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22502
22503 hardcode_libdir_flag_spec_CXX='-R$libdir'
22504 hardcode_shlibpath_var_CXX=no
22505 case $host_os in
22506 solaris2.[0-5] | solaris2.[0-5].*) ;;
22507 *)
22508 # The compiler driver will combine and reorder linker options,
22509 # but understands '-z linker_flag'.
22510 # Supported since Solaris 2.6 (maybe 2.5.1?)
22511 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
22512 ;;
22513 esac
22514 link_all_deplibs_CXX=yes
22515
22516 output_verbose_link_cmd='func_echo_all'
22517
22518 # Archives containing C++ object files must be created using
22519 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22520 # necessary to make sure instantiated templates are included
22521 # in the archive.
22522 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
22523 ;;
22524 gcx*)
22525 # Green Hills C++ Compiler
22526 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
22527
22528 # The C++ compiler must be used to create the archive.
22529 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
22530 ;;
22531 *)
22532 # GNU C++ compiler with Solaris linker
22533 if test yes,no = "$GXX,$with_gnu_ld"; then
22534 no_undefined_flag_CXX=' $wl-z ${wl}defs'
22535 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
22536 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
22537 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22538 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22539
22540 # Commands to make compiler produce verbose output that lists
22541 # what "hidden" libraries, object files and flags are used when
22542 # linking a shared library.
22543 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
22544 else
22545 # g++ 2.7 appears to require '-G' NOT '-shared' on this
22546 # platform.
22547 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
22548 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22549 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22550
22551 # Commands to make compiler produce verbose output that lists
22552 # what "hidden" libraries, object files and flags are used when
22553 # linking a shared library.
22554 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
22555 fi
22556
22557 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
22558 case $host_os in
22559 solaris2.[0-5] | solaris2.[0-5].*) ;;
22560 *)
22561 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
22562 ;;
22563 esac
22564 fi
22565 ;;
22566 esac
22567 ;;
22568
22569 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22570 no_undefined_flag_CXX='$wl-z,text'
22571 archive_cmds_need_lc_CXX=no
22572 hardcode_shlibpath_var_CXX=no
22573 runpath_var='LD_RUN_PATH'
22574
22575 case $cc_basename in
22576 CC*)
22577 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22578 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22579 ;;
22580 *)
22581 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22582 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22583 ;;
22584 esac
22585 ;;
22586
22587 sysv5* | sco3.2v5* | sco5v6*)
22588 # Note: We CANNOT use -z defs as we might desire, because we do not
22589 # link with -lc, and that would cause any symbols used from libc to
22590 # always be unresolved, which means just about no library would
22591 # ever link correctly. If we're not using GNU ld we use -z text
22592 # though, which does catch some bad symbols but isn't as heavy-handed
22593 # as -z defs.
22594 no_undefined_flag_CXX='$wl-z,text'
22595 allow_undefined_flag_CXX='$wl-z,nodefs'
22596 archive_cmds_need_lc_CXX=no
22597 hardcode_shlibpath_var_CXX=no
22598 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
22599 hardcode_libdir_separator_CXX=':'
22600 link_all_deplibs_CXX=yes
22601 export_dynamic_flag_spec_CXX='$wl-Bexport'
22602 runpath_var='LD_RUN_PATH'
22603
22604 case $cc_basename in
22605 CC*)
22606 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22607 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22608 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
22609 '"$old_archive_cmds_CXX"
22610 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
22611 '"$reload_cmds_CXX"
22612 ;;
22613 *)
22614 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22615 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22616 ;;
22617 esac
22618 ;;
22619
22620 tandem*)
22621 case $cc_basename in
22622 NCC*)
22623 # NonStop-UX NCC 3.20
22624 # FIXME: insert proper C++ library support
22625 ld_shlibs_CXX=no
22626 ;;
22627 *)
22628 # FIXME: insert proper C++ library support
22629 ld_shlibs_CXX=no
22630 ;;
22631 esac
22632 ;;
22633
22634 vxworks*)
22635 # FIXME: insert proper C++ library support
22636 ld_shlibs_CXX=no
22637 ;;
22638
22639 *)
22640 # FIXME: insert proper C++ library support
22641 ld_shlibs_CXX=no
22642 ;;
22643 esac
22644
22645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22646 printf "%s\n" "$ld_shlibs_CXX" >&6; }
22647 test no = "$ld_shlibs_CXX" && can_build_shared=no
22648
22649 GCC_CXX=$GXX
22650 LD_CXX=$LD
22651
22652 ## CAVEAT EMPTOR:
22653 ## There is no encapsulation within the following macros, do not change
22654 ## the running order or otherwise move them around unless you know exactly
22655 ## what you are doing...
22656 # Dependencies to place before and after the object being linked:
22657 predep_objects_CXX=
22658 postdep_objects_CXX=
22659 predeps_CXX=
22660 postdeps_CXX=
22661 compiler_lib_search_path_CXX=
22662
22663 cat > conftest.$ac_ext <<_LT_EOF
22664 class Foo
22665 {
22666 public:
22667 Foo (void) { a = 0; }
22668 private:
22669 int a;
22670 };
22671 _LT_EOF
22672
22673
22674 _lt_libdeps_save_CFLAGS=$CFLAGS
22675 case "$CC $CFLAGS " in #(
22676 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
22677 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
22678 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
22679 esac
22680
22681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22682 (eval $ac_compile) 2>&5
22683 ac_status=$?
22684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22685 test $ac_status = 0; }; then
22686 # Parse the compiler output and extract the necessary
22687 # objects, libraries and library flags.
22688
22689 # Sentinel used to keep track of whether or not we are before
22690 # the conftest object file.
22691 pre_test_object_deps_done=no
22692
22693 for p in `eval "$output_verbose_link_cmd"`; do
22694 case $prev$p in
22695
22696 -L* | -R* | -l*)
22697 # Some compilers place space between "-{L,R,l}" and the path.
22698 # Remove the space.
22699 if test x-L = x"$p" ||
22700 test x-R = x"$p" ||
22701 test x-l = x"$p"; then
22702 prev=$p
22703 continue
22704 fi
22705
22706 # Expand the sysroot to ease extracting the directories later.
22707 if test -z "$prev"; then
22708 case $p in
22709 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
22710 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
22711 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
22712 esac
22713 fi
22714 case $p in
22715 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
22716 esac
22717 if test no = "$pre_test_object_deps_done"; then
22718 case $prev in
22719 -L | -R)
22720 # Internal compiler library paths should come after those
22721 # provided the user. The postdeps already come after the
22722 # user supplied libs so there is no need to process them.
22723 if test -z "$compiler_lib_search_path_CXX"; then
22724 compiler_lib_search_path_CXX=$prev$p
22725 else
22726 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
22727 fi
22728 ;;
22729 # The "-l" case would never come before the object being
22730 # linked, so don't bother handling this case.
22731 esac
22732 else
22733 if test -z "$postdeps_CXX"; then
22734 postdeps_CXX=$prev$p
22735 else
22736 postdeps_CXX="${postdeps_CXX} $prev$p"
22737 fi
22738 fi
22739 prev=
22740 ;;
22741
22742 *.lto.$objext) ;; # Ignore GCC LTO objects
22743 *.$objext)
22744 # This assumes that the test object file only shows up
22745 # once in the compiler output.
22746 if test "$p" = "conftest.$objext"; then
22747 pre_test_object_deps_done=yes
22748 continue
22749 fi
22750
22751 if test no = "$pre_test_object_deps_done"; then
22752 if test -z "$predep_objects_CXX"; then
22753 predep_objects_CXX=$p
22754 else
22755 predep_objects_CXX="$predep_objects_CXX $p"
22756 fi
22757 else
22758 if test -z "$postdep_objects_CXX"; then
22759 postdep_objects_CXX=$p
22760 else
22761 postdep_objects_CXX="$postdep_objects_CXX $p"
22762 fi
22763 fi
22764 ;;
22765
22766 *) ;; # Ignore the rest.
22767
22768 esac
22769 done
22770
22771 # Clean up.
22772 rm -f a.out a.exe
22773 else
22774 echo "libtool.m4: error: problem compiling CXX test program"
22775 fi
22776
22777 $RM -f confest.$objext
22778 CFLAGS=$_lt_libdeps_save_CFLAGS
22779
22780 # PORTME: override above test on systems where it is broken
22781 case $host_os in
22782 interix[3-9]*)
22783 # Interix 3.5 installs completely hosed .la files for C++, so rather than
22784 # hack all around it, let's just trust "g++" to DTRT.
22785 predep_objects_CXX=
22786 postdep_objects_CXX=
22787 postdeps_CXX=
22788 ;;
22789 esac
22790
22791
22792 case " $postdeps_CXX " in
22793 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
22794 esac
22795 compiler_lib_search_dirs_CXX=
22796 if test -n "${compiler_lib_search_path_CXX}"; then
22797 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
22798 fi
22799
22800
22801
22802
22803
22804
22805
22806
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822
22823
22824
22825
22826
22827
22828
22829
22830 lt_prog_compiler_wl_CXX=
22831 lt_prog_compiler_pic_CXX=
22832 lt_prog_compiler_static_CXX=
22833
22834
22835 # C++ specific cases for pic, static, wl, etc.
22836 if test yes = "$GXX"; then
22837 lt_prog_compiler_wl_CXX='-Wl,'
22838 lt_prog_compiler_static_CXX='-static'
22839
22840 case $host_os in
22841 aix*)
22842 # All AIX code is PIC.
22843 if test ia64 = "$host_cpu"; then
22844 # AIX 5 now supports IA64 processor
22845 lt_prog_compiler_static_CXX='-Bstatic'
22846 fi
22847 lt_prog_compiler_pic_CXX='-fPIC'
22848 ;;
22849
22850 amigaos*)
22851 case $host_cpu in
22852 powerpc)
22853 # see comment about AmigaOS4 .so support
22854 lt_prog_compiler_pic_CXX='-fPIC'
22855 ;;
22856 m68k)
22857 # FIXME: we need at least 68020 code to build shared libraries, but
22858 # adding the '-m68020' flag to GCC prevents building anything better,
22859 # like '-m68040'.
22860 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
22861 ;;
22862 esac
22863 ;;
22864
22865 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22866 # PIC is the default for these OSes.
22867 ;;
22868 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
22869 # This hack is so that the source file can tell whether it is being
22870 # built for inclusion in a dll (and should export symbols for example).
22871 # Although the cygwin gcc ignores -fPIC, still need this for old-style
22872 # (--disable-auto-import) libraries
22873 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
22874 case $host_os in
22875 os2*)
22876 lt_prog_compiler_static_CXX='$wl-static'
22877 ;;
22878 esac
22879 ;;
22880 darwin* | rhapsody*)
22881 # PIC is the default on this platform
22882 # Common symbols not allowed in MH_DYLIB files
22883 lt_prog_compiler_pic_CXX='-fno-common'
22884 ;;
22885 *djgpp*)
22886 # DJGPP does not support shared libraries at all
22887 lt_prog_compiler_pic_CXX=
22888 ;;
22889 haiku*)
22890 # PIC is the default for Haiku.
22891 # The "-static" flag exists, but is broken.
22892 lt_prog_compiler_static_CXX=
22893 ;;
22894 interix[3-9]*)
22895 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22896 # Instead, we relocate shared libraries at runtime.
22897 ;;
22898 sysv4*MP*)
22899 if test -d /usr/nec; then
22900 lt_prog_compiler_pic_CXX=-Kconform_pic
22901 fi
22902 ;;
22903 hpux*)
22904 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
22905 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
22906 # sets the default TLS model and affects inlining.
22907 case $host_cpu in
22908 hppa*64*)
22909 ;;
22910 *)
22911 lt_prog_compiler_pic_CXX='-fPIC'
22912 ;;
22913 esac
22914 ;;
22915 *qnx* | *nto*)
22916 # QNX uses GNU C++, but need to define -shared option too, otherwise
22917 # it will coredump.
22918 lt_prog_compiler_pic_CXX='-fPIC -shared'
22919 ;;
22920 *)
22921 lt_prog_compiler_pic_CXX='-fPIC'
22922 ;;
22923 esac
22924 else
22925 case $host_os in
22926 aix[4-9]*)
22927 # All AIX code is PIC.
22928 if test ia64 = "$host_cpu"; then
22929 # AIX 5 now supports IA64 processor
22930 lt_prog_compiler_static_CXX='-Bstatic'
22931 else
22932 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
22933 fi
22934 ;;
22935 chorus*)
22936 case $cc_basename in
22937 cxch68*)
22938 # Green Hills C++ Compiler
22939 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
22940 ;;
22941 esac
22942 ;;
22943 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
22944 # This hack is so that the source file can tell whether it is being
22945 # built for inclusion in a dll (and should export symbols for example).
22946 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
22947 ;;
22948 dgux*)
22949 case $cc_basename in
22950 ec++*)
22951 lt_prog_compiler_pic_CXX='-KPIC'
22952 ;;
22953 ghcx*)
22954 # Green Hills C++ Compiler
22955 lt_prog_compiler_pic_CXX='-pic'
22956 ;;
22957 *)
22958 ;;
22959 esac
22960 ;;
22961 freebsd* | dragonfly* | midnightbsd*)
22962 # FreeBSD uses GNU C++
22963 ;;
22964 hpux9* | hpux10* | hpux11*)
22965 case $cc_basename in
22966 CC*)
22967 lt_prog_compiler_wl_CXX='-Wl,'
22968 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
22969 if test ia64 != "$host_cpu"; then
22970 lt_prog_compiler_pic_CXX='+Z'
22971 fi
22972 ;;
22973 aCC*)
22974 lt_prog_compiler_wl_CXX='-Wl,'
22975 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
22976 case $host_cpu in
22977 hppa*64*|ia64*)
22978 # +Z the default
22979 ;;
22980 *)
22981 lt_prog_compiler_pic_CXX='+Z'
22982 ;;
22983 esac
22984 ;;
22985 *)
22986 ;;
22987 esac
22988 ;;
22989 interix*)
22990 # This is c89, which is MS Visual C++ (no shared libs)
22991 # Anyone wants to do a port?
22992 ;;
22993 irix5* | irix6* | nonstopux*)
22994 case $cc_basename in
22995 CC*)
22996 lt_prog_compiler_wl_CXX='-Wl,'
22997 lt_prog_compiler_static_CXX='-non_shared'
22998 # CC pic flag -KPIC is the default.
22999 ;;
23000 *)
23001 ;;
23002 esac
23003 ;;
23004 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
23005 case $cc_basename in
23006 KCC*)
23007 # KAI C++ Compiler
23008 lt_prog_compiler_wl_CXX='--backend -Wl,'
23009 lt_prog_compiler_pic_CXX='-fPIC'
23010 ;;
23011 ecpc* )
23012 # old Intel C++ for x86_64, which still supported -KPIC.
23013 lt_prog_compiler_wl_CXX='-Wl,'
23014 lt_prog_compiler_pic_CXX='-KPIC'
23015 lt_prog_compiler_static_CXX='-static'
23016 ;;
23017 icpc* )
23018 # Intel C++, used to be incompatible with GCC.
23019 # ICC 10 doesn't accept -KPIC any more.
23020 lt_prog_compiler_wl_CXX='-Wl,'
23021 lt_prog_compiler_pic_CXX='-fPIC'
23022 lt_prog_compiler_static_CXX='-static'
23023 ;;
23024 pgCC* | pgcpp*)
23025 # Portland Group C++ compiler
23026 lt_prog_compiler_wl_CXX='-Wl,'
23027 lt_prog_compiler_pic_CXX='-fpic'
23028 lt_prog_compiler_static_CXX='-Bstatic'
23029 ;;
23030 cxx*)
23031 # Compaq C++
23032 # Make sure the PIC flag is empty. It appears that all Alpha
23033 # Linux and Compaq Tru64 Unix objects are PIC.
23034 lt_prog_compiler_pic_CXX=
23035 lt_prog_compiler_static_CXX='-non_shared'
23036 ;;
23037 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
23038 # IBM XL 8.0, 9.0 on PPC and BlueGene
23039 lt_prog_compiler_wl_CXX='-Wl,'
23040 lt_prog_compiler_pic_CXX='-qpic'
23041 lt_prog_compiler_static_CXX='-qstaticlink'
23042 ;;
23043 *)
23044 case `$CC -V 2>&1 | $SED 5q` in
23045 *Sun\ C*)
23046 # Sun C++ 5.9
23047 lt_prog_compiler_pic_CXX='-KPIC'
23048 lt_prog_compiler_static_CXX='-Bstatic'
23049 lt_prog_compiler_wl_CXX='-Qoption ld '
23050 ;;
23051 esac
23052 ;;
23053 esac
23054 ;;
23055 lynxos*)
23056 ;;
23057 m88k*)
23058 ;;
23059 mvs*)
23060 case $cc_basename in
23061 cxx*)
23062 lt_prog_compiler_pic_CXX='-W c,exportall'
23063 ;;
23064 *)
23065 ;;
23066 esac
23067 ;;
23068 netbsd* | netbsdelf*-gnu)
23069 ;;
23070 *-mlibc)
23071 ;;
23072 *qnx* | *nto*)
23073 # QNX uses GNU C++, but need to define -shared option too, otherwise
23074 # it will coredump.
23075 lt_prog_compiler_pic_CXX='-fPIC -shared'
23076 ;;
23077 osf3* | osf4* | osf5*)
23078 case $cc_basename in
23079 KCC*)
23080 lt_prog_compiler_wl_CXX='--backend -Wl,'
23081 ;;
23082 RCC*)
23083 # Rational C++ 2.4.1
23084 lt_prog_compiler_pic_CXX='-pic'
23085 ;;
23086 cxx*)
23087 # Digital/Compaq C++
23088 lt_prog_compiler_wl_CXX='-Wl,'
23089 # Make sure the PIC flag is empty. It appears that all Alpha
23090 # Linux and Compaq Tru64 Unix objects are PIC.
23091 lt_prog_compiler_pic_CXX=
23092 lt_prog_compiler_static_CXX='-non_shared'
23093 ;;
23094 *)
23095 ;;
23096 esac
23097 ;;
23098 psos*)
23099 ;;
23100 serenity*)
23101 ;;
23102 solaris*)
23103 case $cc_basename in
23104 CC* | sunCC*)
23105 # Sun C++ 4.2, 5.x and Centerline C++
23106 lt_prog_compiler_pic_CXX='-KPIC'
23107 lt_prog_compiler_static_CXX='-Bstatic'
23108 lt_prog_compiler_wl_CXX='-Qoption ld '
23109 ;;
23110 gcx*)
23111 # Green Hills C++ Compiler
23112 lt_prog_compiler_pic_CXX='-PIC'
23113 ;;
23114 *)
23115 ;;
23116 esac
23117 ;;
23118 sunos4*)
23119 case $cc_basename in
23120 CC*)
23121 # Sun C++ 4.x
23122 lt_prog_compiler_pic_CXX='-pic'
23123 lt_prog_compiler_static_CXX='-Bstatic'
23124 ;;
23125 lcc*)
23126 # Lucid
23127 lt_prog_compiler_pic_CXX='-pic'
23128 ;;
23129 *)
23130 ;;
23131 esac
23132 ;;
23133 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23134 case $cc_basename in
23135 CC*)
23136 lt_prog_compiler_wl_CXX='-Wl,'
23137 lt_prog_compiler_pic_CXX='-KPIC'
23138 lt_prog_compiler_static_CXX='-Bstatic'
23139 ;;
23140 esac
23141 ;;
23142 tandem*)
23143 case $cc_basename in
23144 NCC*)
23145 # NonStop-UX NCC 3.20
23146 lt_prog_compiler_pic_CXX='-KPIC'
23147 ;;
23148 *)
23149 ;;
23150 esac
23151 ;;
23152 vxworks*)
23153 ;;
23154 *)
23155 lt_prog_compiler_can_build_shared_CXX=no
23156 ;;
23157 esac
23158 fi
23159
23160 case $host_os in
23161 # For platforms that do not support PIC, -DPIC is meaningless:
23162 *djgpp*)
23163 lt_prog_compiler_pic_CXX=
23164 ;;
23165 *)
23166 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
23167 ;;
23168 esac
23169
23170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23171 printf %s "checking for $compiler option to produce PIC... " >&6; }
23172 if test ${lt_cv_prog_compiler_pic_CXX+y}
23173 then :
23174 printf %s "(cached) " >&6
23175 else case e in #(
23176 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
23177 esac
23178 fi
23179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
23180 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
23181 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
23182
23183 #
23184 # Check to make sure the PIC flag actually works.
23185 #
23186 if test -n "$lt_prog_compiler_pic_CXX"; then
23187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23188 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
23189 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
23190 then :
23191 printf %s "(cached) " >&6
23192 else case e in #(
23193 e) lt_cv_prog_compiler_pic_works_CXX=no
23194 ac_outfile=conftest.$ac_objext
23195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23196 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
23197 # Insert the option either (1) after the last *FLAGS variable, or
23198 # (2) before a word containing "conftest.", or (3) at the end.
23199 # Note that $ac_compile itself does not contain backslashes and begins
23200 # with a dollar sign (not a hyphen), so the echo should work correctly.
23201 # The option is referenced via a variable to avoid confusing sed.
23202 lt_compile=`echo "$ac_compile" | $SED \
23203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23205 -e 's:$: $lt_compiler_flag:'`
23206 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23207 (eval "$lt_compile" 2>conftest.err)
23208 ac_status=$?
23209 cat conftest.err >&5
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 if (exit $ac_status) && test -s "$ac_outfile"; then
23212 # The compiler can only warn and ignore the option if not recognized
23213 # So say no if there are warnings other than the usual output.
23214 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
23215 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23216 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23217 lt_cv_prog_compiler_pic_works_CXX=yes
23218 fi
23219 fi
23220 $RM conftest*
23221 ;;
23222 esac
23223 fi
23224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23225 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
23226
23227 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
23228 case $lt_prog_compiler_pic_CXX in
23229 "" | " "*) ;;
23230 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
23231 esac
23232 else
23233 lt_prog_compiler_pic_CXX=
23234 lt_prog_compiler_can_build_shared_CXX=no
23235 fi
23236
23237 fi
23238
23239
23240
23241
23242
23243 #
23244 # Check to make sure the static flag actually works.
23245 #
23246 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
23247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23248 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23249 if test ${lt_cv_prog_compiler_static_works_CXX+y}
23250 then :
23251 printf %s "(cached) " >&6
23252 else case e in #(
23253 e) lt_cv_prog_compiler_static_works_CXX=no
23254 save_LDFLAGS=$LDFLAGS
23255 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23256 echo "$lt_simple_link_test_code" > conftest.$ac_ext
23257 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23258 # The linker can only warn and ignore the option if not recognized
23259 # So say no if there are warnings
23260 if test -s conftest.err; then
23261 # Append any errors to the config.log.
23262 cat conftest.err 1>&5
23263 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
23264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23265 if diff conftest.exp conftest.er2 >/dev/null; then
23266 lt_cv_prog_compiler_static_works_CXX=yes
23267 fi
23268 else
23269 lt_cv_prog_compiler_static_works_CXX=yes
23270 fi
23271 fi
23272 $RM -r conftest*
23273 LDFLAGS=$save_LDFLAGS
23274 ;;
23275 esac
23276 fi
23277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23278 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
23279
23280 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
23281 :
23282 else
23283 lt_prog_compiler_static_CXX=
23284 fi
23285
23286
23287
23288
23289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23290 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23291 if test ${lt_cv_prog_compiler_c_o_CXX+y}
23292 then :
23293 printf %s "(cached) " >&6
23294 else case e in #(
23295 e) lt_cv_prog_compiler_c_o_CXX=no
23296 $RM -r conftest 2>/dev/null
23297 mkdir conftest
23298 cd conftest
23299 mkdir out
23300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23301
23302 lt_compiler_flag="-o out/conftest2.$ac_objext"
23303 # Insert the option either (1) after the last *FLAGS variable, or
23304 # (2) before a word containing "conftest.", or (3) at the end.
23305 # Note that $ac_compile itself does not contain backslashes and begins
23306 # with a dollar sign (not a hyphen), so the echo should work correctly.
23307 lt_compile=`echo "$ac_compile" | $SED \
23308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23310 -e 's:$: $lt_compiler_flag:'`
23311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23312 (eval "$lt_compile" 2>out/conftest.err)
23313 ac_status=$?
23314 cat out/conftest.err >&5
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23317 then
23318 # The compiler can only warn and ignore the option if not recognized
23319 # So say no if there are warnings
23320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23321 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23322 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23323 lt_cv_prog_compiler_c_o_CXX=yes
23324 fi
23325 fi
23326 chmod u+w . 2>&5
23327 $RM conftest*
23328 # SGI C++ compiler will create directory out/ii_files/ for
23329 # template instantiation
23330 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23331 $RM out/* && rmdir out
23332 cd ..
23333 $RM -r conftest
23334 $RM conftest*
23335 ;;
23336 esac
23337 fi
23338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23339 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23340
23341
23342
23343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23344 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23345 if test ${lt_cv_prog_compiler_c_o_CXX+y}
23346 then :
23347 printf %s "(cached) " >&6
23348 else case e in #(
23349 e) lt_cv_prog_compiler_c_o_CXX=no
23350 $RM -r conftest 2>/dev/null
23351 mkdir conftest
23352 cd conftest
23353 mkdir out
23354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23355
23356 lt_compiler_flag="-o out/conftest2.$ac_objext"
23357 # Insert the option either (1) after the last *FLAGS variable, or
23358 # (2) before a word containing "conftest.", or (3) at the end.
23359 # Note that $ac_compile itself does not contain backslashes and begins
23360 # with a dollar sign (not a hyphen), so the echo should work correctly.
23361 lt_compile=`echo "$ac_compile" | $SED \
23362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23364 -e 's:$: $lt_compiler_flag:'`
23365 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23366 (eval "$lt_compile" 2>out/conftest.err)
23367 ac_status=$?
23368 cat out/conftest.err >&5
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23371 then
23372 # The compiler can only warn and ignore the option if not recognized
23373 # So say no if there are warnings
23374 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23375 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23376 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23377 lt_cv_prog_compiler_c_o_CXX=yes
23378 fi
23379 fi
23380 chmod u+w . 2>&5
23381 $RM conftest*
23382 # SGI C++ compiler will create directory out/ii_files/ for
23383 # template instantiation
23384 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23385 $RM out/* && rmdir out
23386 cd ..
23387 $RM -r conftest
23388 $RM conftest*
23389 ;;
23390 esac
23391 fi
23392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23393 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23394
23395
23396
23397
23398 hard_links=nottested
23399 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
23400 # do not overwrite the value of need_locks provided by the user
23401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
23402 printf %s "checking if we can lock with hard links... " >&6; }
23403 hard_links=yes
23404 $RM conftest*
23405 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23406 touch conftest.a
23407 ln conftest.a conftest.b 2>&5 || hard_links=no
23408 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
23410 printf "%s\n" "$hard_links" >&6; }
23411 if test no = "$hard_links"; then
23412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
23413 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
23414 need_locks=warn
23415 fi
23416 else
23417 need_locks=no
23418 fi
23419
23420
23421
23422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23423 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
23424
23425 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23426 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
23427 case $host_os in
23428 aix[4-9]*)
23429 # If we're using GNU nm, then we don't want the "-C" option.
23430 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
23431 # Without the "-l" option, or with the "-B" option, AIX nm treats
23432 # weak defined symbols like other global defined symbols, whereas
23433 # GNU nm marks them as "W".
23434 # While the 'weak' keyword is ignored in the Export File, we need
23435 # it in the Import File for the 'aix-soname' feature, so we have
23436 # to replace the "-B" option with "-P" for AIX nm.
23437 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
23438 export_symbols_cmds_CXX='$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'
23439 else
23440 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
23441 fi
23442 ;;
23443 pw32*)
23444 export_symbols_cmds_CXX=$ltdll_cmds
23445 ;;
23446 cygwin* | mingw* | windows* | cegcc*)
23447 case $cc_basename in
23448 cl* | icl*)
23449 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
23450 ;;
23451 *)
23452 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
23453 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
23454 ;;
23455 esac
23456 ;;
23457 *)
23458 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23459 ;;
23460 esac
23461
23462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23463 printf "%s\n" "$ld_shlibs_CXX" >&6; }
23464 test no = "$ld_shlibs_CXX" && can_build_shared=no
23465
23466 with_gnu_ld_CXX=$with_gnu_ld
23467
23468
23469
23470
23471
23472
23473 #
23474 # Do we need to explicitly link libc?
23475 #
23476 case "x$archive_cmds_need_lc_CXX" in
23477 x|xyes)
23478 # Assume -lc should be added
23479 archive_cmds_need_lc_CXX=yes
23480
23481 if test yes,yes = "$GCC,$enable_shared"; then
23482 case $archive_cmds_CXX in
23483 *'~'*)
23484 # FIXME: we may have to deal with multi-command sequences.
23485 ;;
23486 '$CC '*)
23487 # Test whether the compiler implicitly links with -lc since on some
23488 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23489 # to ld, don't add -lc before -lgcc.
23490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
23491 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
23492 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
23493 then :
23494 printf %s "(cached) " >&6
23495 else case e in #(
23496 e) $RM conftest*
23497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23498
23499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23500 (eval $ac_compile) 2>&5
23501 ac_status=$?
23502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23503 test $ac_status = 0; } 2>conftest.err; then
23504 soname=conftest
23505 lib=conftest
23506 libobjs=conftest.$ac_objext
23507 deplibs=
23508 wl=$lt_prog_compiler_wl_CXX
23509 pic_flag=$lt_prog_compiler_pic_CXX
23510 compiler_flags=-v
23511 linker_flags=-v
23512 verstring=
23513 output_objdir=.
23514 libname=conftest
23515 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
23516 allow_undefined_flag_CXX=
23517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
23518 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
23519 ac_status=$?
23520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23521 test $ac_status = 0; }
23522 then
23523 lt_cv_archive_cmds_need_lc_CXX=no
23524 else
23525 lt_cv_archive_cmds_need_lc_CXX=yes
23526 fi
23527 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
23528 else
23529 cat conftest.err 1>&5
23530 fi
23531 $RM conftest*
23532 ;;
23533 esac
23534 fi
23535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
23536 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
23537 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
23538 ;;
23539 esac
23540 fi
23541 ;;
23542 esac
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604
23605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
23606 printf %s "checking dynamic linker characteristics... " >&6; }
23607
23608 library_names_spec=
23609 libname_spec='lib$name'
23610 soname_spec=
23611 shrext_cmds=.so
23612 postinstall_cmds=
23613 postuninstall_cmds=
23614 finish_cmds=
23615 finish_eval=
23616 shlibpath_var=
23617 shlibpath_overrides_runpath=unknown
23618 version_type=none
23619 dynamic_linker="$host_os ld.so"
23620 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23621 need_lib_prefix=unknown
23622 hardcode_into_libs=no
23623
23624 # when you set need_version to no, make sure it does not cause -set_version
23625 # flags to be left without arguments
23626 need_version=unknown
23627
23628
23629
23630 case $host_os in
23631 aix3*)
23632 version_type=linux # correct to gnu/linux during the next big refactor
23633 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
23634 shlibpath_var=LIBPATH
23635
23636 # AIX 3 has no versioning support, so we append a major version to the name.
23637 soname_spec='$libname$release$shared_ext$major'
23638 ;;
23639
23640 aix[4-9]*)
23641 version_type=linux # correct to gnu/linux during the next big refactor
23642 need_lib_prefix=no
23643 need_version=no
23644 hardcode_into_libs=yes
23645 if test ia64 = "$host_cpu"; then
23646 # AIX 5 supports IA64
23647 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
23648 shlibpath_var=LD_LIBRARY_PATH
23649 else
23650 # With GCC up to 2.95.x, collect2 would create an import file
23651 # for dependence libraries. The import file would start with
23652 # the line '#! .'. This would cause the generated library to
23653 # depend on '.', always an invalid library. This was fixed in
23654 # development snapshots of GCC prior to 3.0.
23655 case $host_os in
23656 aix4 | aix4.[01] | aix4.[01].*)
23657 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23658 echo ' yes '
23659 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
23660 :
23661 else
23662 can_build_shared=no
23663 fi
23664 ;;
23665 esac
23666 # Using Import Files as archive members, it is possible to support
23667 # filename-based versioning of shared library archives on AIX. While
23668 # this would work for both with and without runtime linking, it will
23669 # prevent static linking of such archives. So we do filename-based
23670 # shared library versioning with .so extension only, which is used
23671 # when both runtime linking and shared linking is enabled.
23672 # Unfortunately, runtime linking may impact performance, so we do
23673 # not want this to be the default eventually. Also, we use the
23674 # versioned .so libs for executables only if there is the -brtl
23675 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
23676 # To allow for filename-based versioning support, we need to create
23677 # libNAME.so.V as an archive file, containing:
23678 # *) an Import File, referring to the versioned filename of the
23679 # archive as well as the shared archive member, telling the
23680 # bitwidth (32 or 64) of that shared object, and providing the
23681 # list of exported symbols of that shared object, eventually
23682 # decorated with the 'weak' keyword
23683 # *) the shared object with the F_LOADONLY flag set, to really avoid
23684 # it being seen by the linker.
23685 # At run time we better use the real file rather than another symlink,
23686 # but for link time we create the symlink libNAME.so -> libNAME.so.V
23687
23688 case $with_aix_soname,$aix_use_runtimelinking in
23689 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
23690 # soname into executable. Probably we can add versioning support to
23691 # collect2, so additional links can be useful in future.
23692 aix,yes) # traditional libtool
23693 dynamic_linker='AIX unversionable lib.so'
23694 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23695 # instead of lib<name>.a to let people know that these are not
23696 # typical AIX shared libraries.
23697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23698 ;;
23699 aix,no) # traditional AIX only
23700 dynamic_linker='AIX lib.a(lib.so.V)'
23701 # We preserve .a as extension for shared libraries through AIX4.2
23702 # and later when we are not doing run time linking.
23703 library_names_spec='$libname$release.a $libname.a'
23704 soname_spec='$libname$release$shared_ext$major'
23705 ;;
23706 svr4,*) # full svr4 only
23707 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
23708 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
23709 # We do not specify a path in Import Files, so LIBPATH fires.
23710 shlibpath_overrides_runpath=yes
23711 ;;
23712 *,yes) # both, prefer svr4
23713 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
23714 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
23715 # unpreferred sharedlib libNAME.a needs extra handling
23716 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"'
23717 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"'
23718 # We do not specify a path in Import Files, so LIBPATH fires.
23719 shlibpath_overrides_runpath=yes
23720 ;;
23721 *,no) # both, prefer aix
23722 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
23723 library_names_spec='$libname$release.a $libname.a'
23724 soname_spec='$libname$release$shared_ext$major'
23725 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
23726 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)'
23727 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"'
23728 ;;
23729 esac
23730 shlibpath_var=LIBPATH
23731 fi
23732 ;;
23733
23734 amigaos*)
23735 case $host_cpu in
23736 powerpc)
23737 # Since July 2007 AmigaOS4 officially supports .so libraries.
23738 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
23739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23740 ;;
23741 m68k)
23742 library_names_spec='$libname.ixlibrary $libname.a'
23743 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23744 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'
23745 ;;
23746 esac
23747 ;;
23748
23749 beos*)
23750 library_names_spec='$libname$shared_ext'
23751 dynamic_linker="$host_os ld.so"
23752 shlibpath_var=LIBRARY_PATH
23753 ;;
23754
23755 bsdi[45]*)
23756 version_type=linux # correct to gnu/linux during the next big refactor
23757 need_version=no
23758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23759 soname_spec='$libname$release$shared_ext$major'
23760 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23761 shlibpath_var=LD_LIBRARY_PATH
23762 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23763 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23764 # the default ld.so.conf also contains /usr/contrib/lib and
23765 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23766 # libtool to hard-code these into programs
23767 ;;
23768
23769 cygwin* | mingw* | windows* | pw32* | cegcc*)
23770 version_type=windows
23771 shrext_cmds=.dll
23772 need_version=no
23773 need_lib_prefix=no
23774
23775 case $GCC,$cc_basename in
23776 yes,*)
23777 # gcc
23778 library_names_spec='$libname.dll.a'
23779 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23780 # If user builds GCC with multilib enabled,
23781 # it should just install on $(libdir)
23782 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
23783 if test xyes = x"$multilib"; then
23784 postinstall_cmds='base_file=`basename \$file`~
23785 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23786 dldir=$destdir/`dirname \$dlpath`~
23787 $install_prog $dir/$dlname $destdir/$dlname~
23788 chmod a+x $destdir/$dlname~
23789 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
23790 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
23791 fi'
23792 else
23793 postinstall_cmds='base_file=`basename \$file`~
23794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23795 dldir=$destdir/`dirname \$dlpath`~
23796 test -d \$dldir || mkdir -p \$dldir~
23797 $install_prog $dir/$dlname \$dldir/$dlname~
23798 chmod a+x \$dldir/$dlname~
23799 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
23800 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
23801 fi'
23802 fi
23803 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23804 dlpath=$dir/\$dldll~
23805 $RM \$dlpath'
23806 shlibpath_overrides_runpath=yes
23807
23808 case $host_os in
23809 cygwin*)
23810 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23811 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23812
23813 ;;
23814 mingw* | windows* | cegcc*)
23815 # MinGW DLLs use traditional 'lib' prefix
23816 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23817 ;;
23818 pw32*)
23819 # pw32 DLLs use 'pw' prefix rather than 'lib'
23820 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23821 ;;
23822 esac
23823 dynamic_linker='Win32 ld.exe'
23824 ;;
23825
23826 *,cl* | *,icl*)
23827 # Native MSVC or ICC
23828 libname_spec='$name'
23829 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23830 library_names_spec='$libname.dll.lib'
23831
23832 case $build_os in
23833 mingw* | windows*)
23834 sys_lib_search_path_spec=
23835 lt_save_ifs=$IFS
23836 IFS=';'
23837 for lt_path in $LIB
23838 do
23839 IFS=$lt_save_ifs
23840 # Let DOS variable expansion print the short 8.3 style file name.
23841 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
23842 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
23843 done
23844 IFS=$lt_save_ifs
23845 # Convert to MSYS style.
23846 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
23847 ;;
23848 cygwin*)
23849 # Convert to unix form, then to dos form, then back to unix form
23850 # but this time dos style (no spaces!) so that the unix form looks
23851 # like /cygdrive/c/PROGRA~1:/cygdr...
23852 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
23853 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
23854 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23855 ;;
23856 *)
23857 sys_lib_search_path_spec=$LIB
23858 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
23859 # It is most probably a Windows format PATH.
23860 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23861 else
23862 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23863 fi
23864 # FIXME: find the short name or the path components, as spaces are
23865 # common. (e.g. "Program Files" -> "PROGRA~1")
23866 ;;
23867 esac
23868
23869 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23870 postinstall_cmds='base_file=`basename \$file`~
23871 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23872 dldir=$destdir/`dirname \$dlpath`~
23873 test -d \$dldir || mkdir -p \$dldir~
23874 $install_prog $dir/$dlname \$dldir/$dlname'
23875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23876 dlpath=$dir/\$dldll~
23877 $RM \$dlpath'
23878 shlibpath_overrides_runpath=yes
23879 dynamic_linker='Win32 link.exe'
23880 ;;
23881
23882 *)
23883 # Assume MSVC and ICC wrapper
23884 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
23885 dynamic_linker='Win32 ld.exe'
23886 ;;
23887 esac
23888 # FIXME: first we should search . and the directory the executable is in
23889 shlibpath_var=PATH
23890 ;;
23891
23892 darwin* | rhapsody*)
23893 dynamic_linker="$host_os dyld"
23894 version_type=darwin
23895 need_lib_prefix=no
23896 need_version=no
23897 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
23898 soname_spec='$libname$release$major$shared_ext'
23899 shlibpath_overrides_runpath=yes
23900 shlibpath_var=DYLD_LIBRARY_PATH
23901 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23902
23903 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23904 ;;
23905
23906 dgux*)
23907 version_type=linux # correct to gnu/linux during the next big refactor
23908 need_lib_prefix=no
23909 need_version=no
23910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23911 soname_spec='$libname$release$shared_ext$major'
23912 shlibpath_var=LD_LIBRARY_PATH
23913 ;;
23914
23915 freebsd* | dragonfly* | midnightbsd*)
23916 # DragonFly does not have aout. When/if they implement a new
23917 # versioning mechanism, adjust this.
23918 if test -x /usr/bin/objformat; then
23919 objformat=`/usr/bin/objformat`
23920 else
23921 case $host_os in
23922 freebsd[23].*) objformat=aout ;;
23923 *) objformat=elf ;;
23924 esac
23925 fi
23926 version_type=freebsd-$objformat
23927 case $version_type in
23928 freebsd-elf*)
23929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23930 soname_spec='$libname$release$shared_ext$major'
23931 need_version=no
23932 need_lib_prefix=no
23933 ;;
23934 freebsd-*)
23935 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
23936 need_version=yes
23937 ;;
23938 esac
23939 case $host_cpu in
23940 powerpc64)
23941 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
23942 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
23943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23944 /* end confdefs.h. */
23945 int test_pointer_size[sizeof (void *) - 5];
23946
23947 _ACEOF
23948 if ac_fn_cxx_try_compile "$LINENO"
23949 then :
23950 shlibpath_var=LD_LIBRARY_PATH
23951 else case e in #(
23952 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
23953 esac
23954 fi
23955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23956 ;;
23957 *)
23958 shlibpath_var=LD_LIBRARY_PATH
23959 ;;
23960 esac
23961 case $host_os in
23962 freebsd2.*)
23963 shlibpath_overrides_runpath=yes
23964 ;;
23965 freebsd3.[01]* | freebsdelf3.[01]*)
23966 shlibpath_overrides_runpath=yes
23967 hardcode_into_libs=yes
23968 ;;
23969 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23970 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23971 shlibpath_overrides_runpath=no
23972 hardcode_into_libs=yes
23973 ;;
23974 *) # from 4.6 on, and DragonFly
23975 shlibpath_overrides_runpath=yes
23976 hardcode_into_libs=yes
23977 ;;
23978 esac
23979 ;;
23980
23981 haiku*)
23982 version_type=linux # correct to gnu/linux during the next big refactor
23983 need_lib_prefix=no
23984 need_version=no
23985 dynamic_linker="$host_os runtime_loader"
23986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23987 soname_spec='$libname$release$shared_ext$major'
23988 shlibpath_var=LIBRARY_PATH
23989 shlibpath_overrides_runpath=no
23990 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
23991 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
23992 hardcode_into_libs=no
23993 ;;
23994
23995 hpux9* | hpux10* | hpux11*)
23996 # Give a soname corresponding to the major version so that dld.sl refuses to
23997 # link against other versions.
23998 version_type=sunos
23999 need_lib_prefix=no
24000 need_version=no
24001 case $host_cpu in
24002 ia64*)
24003 shrext_cmds='.so'
24004 hardcode_into_libs=yes
24005 dynamic_linker="$host_os dld.so"
24006 shlibpath_var=LD_LIBRARY_PATH
24007 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24009 soname_spec='$libname$release$shared_ext$major'
24010 if test 32 = "$HPUX_IA64_MODE"; then
24011 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24012 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
24013 else
24014 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24015 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
24016 fi
24017 ;;
24018 hppa*64*)
24019 shrext_cmds='.sl'
24020 hardcode_into_libs=yes
24021 dynamic_linker="$host_os dld.sl"
24022 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24025 soname_spec='$libname$release$shared_ext$major'
24026 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24028 ;;
24029 *)
24030 shrext_cmds='.sl'
24031 dynamic_linker="$host_os dld.sl"
24032 shlibpath_var=SHLIB_PATH
24033 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24035 soname_spec='$libname$release$shared_ext$major'
24036 ;;
24037 esac
24038 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24039 postinstall_cmds='chmod 555 $lib'
24040 # or fails outright, so override atomically:
24041 install_override_mode=555
24042 ;;
24043
24044 interix[3-9]*)
24045 version_type=linux # correct to gnu/linux during the next big refactor
24046 need_lib_prefix=no
24047 need_version=no
24048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24049 soname_spec='$libname$release$shared_ext$major'
24050 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24051 shlibpath_var=LD_LIBRARY_PATH
24052 shlibpath_overrides_runpath=no
24053 hardcode_into_libs=yes
24054 ;;
24055
24056 irix5* | irix6* | nonstopux*)
24057 case $host_os in
24058 nonstopux*) version_type=nonstopux ;;
24059 *)
24060 if test yes = "$lt_cv_prog_gnu_ld"; then
24061 version_type=linux # correct to gnu/linux during the next big refactor
24062 else
24063 version_type=irix
24064 fi ;;
24065 esac
24066 need_lib_prefix=no
24067 need_version=no
24068 soname_spec='$libname$release$shared_ext$major'
24069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
24070 case $host_os in
24071 irix5* | nonstopux*)
24072 libsuff= shlibsuff=
24073 ;;
24074 *)
24075 case $LD in # libtool.m4 will add one of these switches to LD
24076 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24077 libsuff= shlibsuff= libmagic=32-bit;;
24078 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24079 libsuff=32 shlibsuff=N32 libmagic=N32;;
24080 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24081 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24082 *) libsuff= shlibsuff= libmagic=never-match;;
24083 esac
24084 ;;
24085 esac
24086 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24087 shlibpath_overrides_runpath=no
24088 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
24089 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
24090 hardcode_into_libs=yes
24091 ;;
24092
24093 # No shared lib support for Linux oldld, aout, or coff.
24094 linux*oldld* | linux*aout* | linux*coff*)
24095 dynamic_linker=no
24096 ;;
24097
24098 linux*android*)
24099 version_type=none # Android doesn't support versioned libraries.
24100 need_lib_prefix=no
24101 need_version=no
24102 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
24103 soname_spec='$libname$release$shared_ext'
24104 finish_cmds=
24105 shlibpath_var=LD_LIBRARY_PATH
24106 shlibpath_overrides_runpath=yes
24107
24108 # This implies no fast_install, which is unacceptable.
24109 # Some rework will be needed to allow for fast_install
24110 # before this can be enabled.
24111 hardcode_into_libs=yes
24112
24113 dynamic_linker='Android linker'
24114 # -rpath works at least for libraries that are not overridden by
24115 # libraries installed in system locations.
24116 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
24117 ;;
24118
24119 # This must be glibc/ELF.
24120 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
24121 version_type=linux # correct to gnu/linux during the next big refactor
24122 need_lib_prefix=no
24123 need_version=no
24124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24125 soname_spec='$libname$release$shared_ext$major'
24126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24127 shlibpath_var=LD_LIBRARY_PATH
24128 shlibpath_overrides_runpath=no
24129
24130 # Some binutils ld are patched to set DT_RUNPATH
24131 if test ${lt_cv_shlibpath_overrides_runpath+y}
24132 then :
24133 printf %s "(cached) " >&6
24134 else case e in #(
24135 e) lt_cv_shlibpath_overrides_runpath=no
24136 save_LDFLAGS=$LDFLAGS
24137 save_libdir=$libdir
24138 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24139 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24141 /* end confdefs.h. */
24142
24143 int
24144 main (void)
24145 {
24146
24147 ;
24148 return 0;
24149 }
24150 _ACEOF
24151 if ac_fn_cxx_try_link "$LINENO"
24152 then :
24153 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
24154 then :
24155 lt_cv_shlibpath_overrides_runpath=yes
24156 fi
24157 fi
24158 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24159 conftest$ac_exeext conftest.$ac_ext
24160 LDFLAGS=$save_LDFLAGS
24161 libdir=$save_libdir
24162 ;;
24163 esac
24164 fi
24165
24166 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24167
24168 # This implies no fast_install, which is unacceptable.
24169 # Some rework will be needed to allow for fast_install
24170 # before this can be enabled.
24171 hardcode_into_libs=yes
24172
24173 # Add ABI-specific directories to the system library path.
24174 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
24175
24176 # Ideally, we could use ldconfig to report *all* directories which are
24177 # searched for libraries, however this is still not possible. Aside from not
24178 # being certain /sbin/ldconfig is available, command
24179 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
24180 # even though it is searched at run-time. Try to do the best guess by
24181 # appending ld.so.conf contents (and includes) to the search path.
24182 if test -f /etc/ld.so.conf; then
24183 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' ' '`
24184 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
24185 fi
24186
24187 # We used to test for /lib/ld.so.1 and disable shared libraries on
24188 # powerpc, because MkLinux only supported shared libraries with the
24189 # GNU dynamic linker. Since this was broken with cross compilers,
24190 # most powerpc-linux boxes support dynamic linking these days and
24191 # people can always --disable-shared, the test was removed, and we
24192 # assume the GNU/Linux dynamic linker is in use.
24193 dynamic_linker='GNU/Linux ld.so'
24194 ;;
24195
24196 netbsdelf*-gnu)
24197 version_type=linux
24198 need_lib_prefix=no
24199 need_version=no
24200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24201 soname_spec='$libname$release$shared_ext$major'
24202 shlibpath_var=LD_LIBRARY_PATH
24203 shlibpath_overrides_runpath=no
24204 hardcode_into_libs=yes
24205 dynamic_linker='NetBSD ld.elf_so'
24206 ;;
24207
24208 netbsd*)
24209 version_type=sunos
24210 need_lib_prefix=no
24211 need_version=no
24212 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24213 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
24214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24215 dynamic_linker='NetBSD (a.out) ld.so'
24216 else
24217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24218 soname_spec='$libname$release$shared_ext$major'
24219 dynamic_linker='NetBSD ld.elf_so'
24220 fi
24221 shlibpath_var=LD_LIBRARY_PATH
24222 shlibpath_overrides_runpath=yes
24223 hardcode_into_libs=yes
24224 ;;
24225
24226 *-mlibc)
24227 version_type=linux # correct to gnu/linux during the next big refactor
24228 need_lib_prefix=no
24229 need_version=no
24230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24231 soname_spec='$libname$release$shared_ext$major'
24232 dynamic_linker='mlibc ld.so'
24233 shlibpath_var=LD_LIBRARY_PATH
24234 shlibpath_overrides_runpath=no
24235 hardcode_into_libs=yes
24236 ;;
24237
24238 newsos6)
24239 version_type=linux # correct to gnu/linux during the next big refactor
24240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24241 shlibpath_var=LD_LIBRARY_PATH
24242 shlibpath_overrides_runpath=yes
24243 ;;
24244
24245 *nto* | *qnx*)
24246 version_type=qnx
24247 need_lib_prefix=no
24248 need_version=no
24249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24250 soname_spec='$libname$release$shared_ext$major'
24251 shlibpath_var=LD_LIBRARY_PATH
24252 shlibpath_overrides_runpath=no
24253 hardcode_into_libs=yes
24254 dynamic_linker='ldqnx.so'
24255 ;;
24256
24257 openbsd*)
24258 version_type=sunos
24259 sys_lib_dlsearch_path_spec=/usr/lib
24260 need_lib_prefix=no
24261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
24262 need_version=no
24263 else
24264 need_version=yes
24265 fi
24266 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
24267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24268 shlibpath_var=LD_LIBRARY_PATH
24269 shlibpath_overrides_runpath=yes
24270 ;;
24271
24272 os2*)
24273 libname_spec='$name'
24274 version_type=windows
24275 shrext_cmds=.dll
24276 need_version=no
24277 need_lib_prefix=no
24278 # OS/2 can only load a DLL with a base name of 8 characters or less.
24279 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
24280 v=$($ECHO $release$versuffix | tr -d .-);
24281 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
24282 $ECHO $n$v`$shared_ext'
24283 library_names_spec='${libname}_dll.$libext'
24284 dynamic_linker='OS/2 ld.exe'
24285 shlibpath_var=BEGINLIBPATH
24286 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24288 postinstall_cmds='base_file=`basename \$file`~
24289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
24290 dldir=$destdir/`dirname \$dlpath`~
24291 test -d \$dldir || mkdir -p \$dldir~
24292 $install_prog $dir/$dlname \$dldir/$dlname~
24293 chmod a+x \$dldir/$dlname~
24294 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24295 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24296 fi'
24297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
24298 dlpath=$dir/\$dldll~
24299 $RM \$dlpath'
24300 ;;
24301
24302 osf3* | osf4* | osf5*)
24303 version_type=osf
24304 need_lib_prefix=no
24305 need_version=no
24306 soname_spec='$libname$release$shared_ext$major'
24307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24308 shlibpath_var=LD_LIBRARY_PATH
24309 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24311 ;;
24312
24313 rdos*)
24314 dynamic_linker=no
24315 ;;
24316
24317 serenity*)
24318 version_type=linux # correct to gnu/linux during the next big refactor
24319 need_lib_prefix=no
24320 need_version=no
24321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24322 soname_spec='$libname$release$shared_ext$major'
24323 shlibpath_var=LD_LIBRARY_PATH
24324 shlibpath_overrides_runpath=no
24325 dynamic_linker='SerenityOS LibELF'
24326 ;;
24327
24328 solaris*)
24329 version_type=linux # correct to gnu/linux during the next big refactor
24330 need_lib_prefix=no
24331 need_version=no
24332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24333 soname_spec='$libname$release$shared_ext$major'
24334 shlibpath_var=LD_LIBRARY_PATH
24335 shlibpath_overrides_runpath=yes
24336 hardcode_into_libs=yes
24337 # ldd complains unless libraries are executable
24338 postinstall_cmds='chmod +x $lib'
24339 ;;
24340
24341 sunos4*)
24342 version_type=sunos
24343 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
24344 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24345 shlibpath_var=LD_LIBRARY_PATH
24346 shlibpath_overrides_runpath=yes
24347 if test yes = "$with_gnu_ld"; then
24348 need_lib_prefix=no
24349 fi
24350 need_version=yes
24351 ;;
24352
24353 sysv4 | sysv4.3*)
24354 version_type=linux # correct to gnu/linux during the next big refactor
24355 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24356 soname_spec='$libname$release$shared_ext$major'
24357 shlibpath_var=LD_LIBRARY_PATH
24358 case $host_vendor in
24359 sni)
24360 shlibpath_overrides_runpath=no
24361 need_lib_prefix=no
24362 runpath_var=LD_RUN_PATH
24363 ;;
24364 siemens)
24365 need_lib_prefix=no
24366 ;;
24367 motorola)
24368 need_lib_prefix=no
24369 need_version=no
24370 shlibpath_overrides_runpath=no
24371 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24372 ;;
24373 esac
24374 ;;
24375
24376 sysv4*MP*)
24377 if test -d /usr/nec; then
24378 version_type=linux # correct to gnu/linux during the next big refactor
24379 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
24380 soname_spec='$libname$shared_ext.$major'
24381 shlibpath_var=LD_LIBRARY_PATH
24382 fi
24383 ;;
24384
24385 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24386 version_type=sco
24387 need_lib_prefix=no
24388 need_version=no
24389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
24390 soname_spec='$libname$release$shared_ext$major'
24391 shlibpath_var=LD_LIBRARY_PATH
24392 shlibpath_overrides_runpath=yes
24393 hardcode_into_libs=yes
24394 if test yes = "$with_gnu_ld"; then
24395 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24396 else
24397 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24398 case $host_os in
24399 sco3.2v5*)
24400 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24401 ;;
24402 esac
24403 fi
24404 sys_lib_dlsearch_path_spec='/usr/lib'
24405 ;;
24406
24407 tpf*)
24408 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24409 version_type=linux # correct to gnu/linux during the next big refactor
24410 need_lib_prefix=no
24411 need_version=no
24412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24413 shlibpath_var=LD_LIBRARY_PATH
24414 shlibpath_overrides_runpath=no
24415 hardcode_into_libs=yes
24416 ;;
24417
24418 uts4*)
24419 version_type=linux # correct to gnu/linux during the next big refactor
24420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24421 soname_spec='$libname$release$shared_ext$major'
24422 shlibpath_var=LD_LIBRARY_PATH
24423 ;;
24424
24425 emscripten*)
24426 version_type=none
24427 need_lib_prefix=no
24428 need_version=no
24429 library_names_spec='$libname$release$shared_ext'
24430 soname_spec='$libname$release$shared_ext'
24431 finish_cmds=
24432 dynamic_linker="Emscripten linker"
24433 lt_prog_compiler_wl_CXX=
24434 lt_prog_compiler_pic_CXX=
24435 lt_prog_compiler_static_CXX=
24436
24437
24438 # C++ specific cases for pic, static, wl, etc.
24439 if test yes = "$GXX"; then
24440 lt_prog_compiler_wl_CXX='-Wl,'
24441 lt_prog_compiler_static_CXX='-static'
24442
24443 case $host_os in
24444 aix*)
24445 # All AIX code is PIC.
24446 if test ia64 = "$host_cpu"; then
24447 # AIX 5 now supports IA64 processor
24448 lt_prog_compiler_static_CXX='-Bstatic'
24449 fi
24450 lt_prog_compiler_pic_CXX='-fPIC'
24451 ;;
24452
24453 amigaos*)
24454 case $host_cpu in
24455 powerpc)
24456 # see comment about AmigaOS4 .so support
24457 lt_prog_compiler_pic_CXX='-fPIC'
24458 ;;
24459 m68k)
24460 # FIXME: we need at least 68020 code to build shared libraries, but
24461 # adding the '-m68020' flag to GCC prevents building anything better,
24462 # like '-m68040'.
24463 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
24464 ;;
24465 esac
24466 ;;
24467
24468 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24469 # PIC is the default for these OSes.
24470 ;;
24471 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
24472 # This hack is so that the source file can tell whether it is being
24473 # built for inclusion in a dll (and should export symbols for example).
24474 # Although the cygwin gcc ignores -fPIC, still need this for old-style
24475 # (--disable-auto-import) libraries
24476 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
24477 case $host_os in
24478 os2*)
24479 lt_prog_compiler_static_CXX='$wl-static'
24480 ;;
24481 esac
24482 ;;
24483 darwin* | rhapsody*)
24484 # PIC is the default on this platform
24485 # Common symbols not allowed in MH_DYLIB files
24486 lt_prog_compiler_pic_CXX='-fno-common'
24487 ;;
24488 *djgpp*)
24489 # DJGPP does not support shared libraries at all
24490 lt_prog_compiler_pic_CXX=
24491 ;;
24492 haiku*)
24493 # PIC is the default for Haiku.
24494 # The "-static" flag exists, but is broken.
24495 lt_prog_compiler_static_CXX=
24496 ;;
24497 interix[3-9]*)
24498 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24499 # Instead, we relocate shared libraries at runtime.
24500 ;;
24501 sysv4*MP*)
24502 if test -d /usr/nec; then
24503 lt_prog_compiler_pic_CXX=-Kconform_pic
24504 fi
24505 ;;
24506 hpux*)
24507 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
24508 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
24509 # sets the default TLS model and affects inlining.
24510 case $host_cpu in
24511 hppa*64*)
24512 ;;
24513 *)
24514 lt_prog_compiler_pic_CXX='-fPIC'
24515 ;;
24516 esac
24517 ;;
24518 *qnx* | *nto*)
24519 # QNX uses GNU C++, but need to define -shared option too, otherwise
24520 # it will coredump.
24521 lt_prog_compiler_pic_CXX='-fPIC -shared'
24522 ;;
24523 *)
24524 lt_prog_compiler_pic_CXX='-fPIC'
24525 ;;
24526 esac
24527 else
24528 case $host_os in
24529 aix[4-9]*)
24530 # All AIX code is PIC.
24531 if test ia64 = "$host_cpu"; then
24532 # AIX 5 now supports IA64 processor
24533 lt_prog_compiler_static_CXX='-Bstatic'
24534 else
24535 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
24536 fi
24537 ;;
24538 chorus*)
24539 case $cc_basename in
24540 cxch68*)
24541 # Green Hills C++ Compiler
24542 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
24543 ;;
24544 esac
24545 ;;
24546 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
24547 # This hack is so that the source file can tell whether it is being
24548 # built for inclusion in a dll (and should export symbols for example).
24549 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
24550 ;;
24551 dgux*)
24552 case $cc_basename in
24553 ec++*)
24554 lt_prog_compiler_pic_CXX='-KPIC'
24555 ;;
24556 ghcx*)
24557 # Green Hills C++ Compiler
24558 lt_prog_compiler_pic_CXX='-pic'
24559 ;;
24560 *)
24561 ;;
24562 esac
24563 ;;
24564 freebsd* | dragonfly* | midnightbsd*)
24565 # FreeBSD uses GNU C++
24566 ;;
24567 hpux9* | hpux10* | hpux11*)
24568 case $cc_basename in
24569 CC*)
24570 lt_prog_compiler_wl_CXX='-Wl,'
24571 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
24572 if test ia64 != "$host_cpu"; then
24573 lt_prog_compiler_pic_CXX='+Z'
24574 fi
24575 ;;
24576 aCC*)
24577 lt_prog_compiler_wl_CXX='-Wl,'
24578 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
24579 case $host_cpu in
24580 hppa*64*|ia64*)
24581 # +Z the default
24582 ;;
24583 *)
24584 lt_prog_compiler_pic_CXX='+Z'
24585 ;;
24586 esac
24587 ;;
24588 *)
24589 ;;
24590 esac
24591 ;;
24592 interix*)
24593 # This is c89, which is MS Visual C++ (no shared libs)
24594 # Anyone wants to do a port?
24595 ;;
24596 irix5* | irix6* | nonstopux*)
24597 case $cc_basename in
24598 CC*)
24599 lt_prog_compiler_wl_CXX='-Wl,'
24600 lt_prog_compiler_static_CXX='-non_shared'
24601 # CC pic flag -KPIC is the default.
24602 ;;
24603 *)
24604 ;;
24605 esac
24606 ;;
24607 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
24608 case $cc_basename in
24609 KCC*)
24610 # KAI C++ Compiler
24611 lt_prog_compiler_wl_CXX='--backend -Wl,'
24612 lt_prog_compiler_pic_CXX='-fPIC'
24613 ;;
24614 ecpc* )
24615 # old Intel C++ for x86_64, which still supported -KPIC.
24616 lt_prog_compiler_wl_CXX='-Wl,'
24617 lt_prog_compiler_pic_CXX='-KPIC'
24618 lt_prog_compiler_static_CXX='-static'
24619 ;;
24620 icpc* )
24621 # Intel C++, used to be incompatible with GCC.
24622 # ICC 10 doesn't accept -KPIC any more.
24623 lt_prog_compiler_wl_CXX='-Wl,'
24624 lt_prog_compiler_pic_CXX='-fPIC'
24625 lt_prog_compiler_static_CXX='-static'
24626 ;;
24627 pgCC* | pgcpp*)
24628 # Portland Group C++ compiler
24629 lt_prog_compiler_wl_CXX='-Wl,'
24630 lt_prog_compiler_pic_CXX='-fpic'
24631 lt_prog_compiler_static_CXX='-Bstatic'
24632 ;;
24633 cxx*)
24634 # Compaq C++
24635 # Make sure the PIC flag is empty. It appears that all Alpha
24636 # Linux and Compaq Tru64 Unix objects are PIC.
24637 lt_prog_compiler_pic_CXX=
24638 lt_prog_compiler_static_CXX='-non_shared'
24639 ;;
24640 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
24641 # IBM XL 8.0, 9.0 on PPC and BlueGene
24642 lt_prog_compiler_wl_CXX='-Wl,'
24643 lt_prog_compiler_pic_CXX='-qpic'
24644 lt_prog_compiler_static_CXX='-qstaticlink'
24645 ;;
24646 *)
24647 case `$CC -V 2>&1 | $SED 5q` in
24648 *Sun\ C*)
24649 # Sun C++ 5.9
24650 lt_prog_compiler_pic_CXX='-KPIC'
24651 lt_prog_compiler_static_CXX='-Bstatic'
24652 lt_prog_compiler_wl_CXX='-Qoption ld '
24653 ;;
24654 esac
24655 ;;
24656 esac
24657 ;;
24658 lynxos*)
24659 ;;
24660 m88k*)
24661 ;;
24662 mvs*)
24663 case $cc_basename in
24664 cxx*)
24665 lt_prog_compiler_pic_CXX='-W c,exportall'
24666 ;;
24667 *)
24668 ;;
24669 esac
24670 ;;
24671 netbsd* | netbsdelf*-gnu)
24672 ;;
24673 *-mlibc)
24674 ;;
24675 *qnx* | *nto*)
24676 # QNX uses GNU C++, but need to define -shared option too, otherwise
24677 # it will coredump.
24678 lt_prog_compiler_pic_CXX='-fPIC -shared'
24679 ;;
24680 osf3* | osf4* | osf5*)
24681 case $cc_basename in
24682 KCC*)
24683 lt_prog_compiler_wl_CXX='--backend -Wl,'
24684 ;;
24685 RCC*)
24686 # Rational C++ 2.4.1
24687 lt_prog_compiler_pic_CXX='-pic'
24688 ;;
24689 cxx*)
24690 # Digital/Compaq C++
24691 lt_prog_compiler_wl_CXX='-Wl,'
24692 # Make sure the PIC flag is empty. It appears that all Alpha
24693 # Linux and Compaq Tru64 Unix objects are PIC.
24694 lt_prog_compiler_pic_CXX=
24695 lt_prog_compiler_static_CXX='-non_shared'
24696 ;;
24697 *)
24698 ;;
24699 esac
24700 ;;
24701 psos*)
24702 ;;
24703 serenity*)
24704 ;;
24705 solaris*)
24706 case $cc_basename in
24707 CC* | sunCC*)
24708 # Sun C++ 4.2, 5.x and Centerline C++
24709 lt_prog_compiler_pic_CXX='-KPIC'
24710 lt_prog_compiler_static_CXX='-Bstatic'
24711 lt_prog_compiler_wl_CXX='-Qoption ld '
24712 ;;
24713 gcx*)
24714 # Green Hills C++ Compiler
24715 lt_prog_compiler_pic_CXX='-PIC'
24716 ;;
24717 *)
24718 ;;
24719 esac
24720 ;;
24721 sunos4*)
24722 case $cc_basename in
24723 CC*)
24724 # Sun C++ 4.x
24725 lt_prog_compiler_pic_CXX='-pic'
24726 lt_prog_compiler_static_CXX='-Bstatic'
24727 ;;
24728 lcc*)
24729 # Lucid
24730 lt_prog_compiler_pic_CXX='-pic'
24731 ;;
24732 *)
24733 ;;
24734 esac
24735 ;;
24736 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24737 case $cc_basename in
24738 CC*)
24739 lt_prog_compiler_wl_CXX='-Wl,'
24740 lt_prog_compiler_pic_CXX='-KPIC'
24741 lt_prog_compiler_static_CXX='-Bstatic'
24742 ;;
24743 esac
24744 ;;
24745 tandem*)
24746 case $cc_basename in
24747 NCC*)
24748 # NonStop-UX NCC 3.20
24749 lt_prog_compiler_pic_CXX='-KPIC'
24750 ;;
24751 *)
24752 ;;
24753 esac
24754 ;;
24755 vxworks*)
24756 ;;
24757 *)
24758 lt_prog_compiler_can_build_shared_CXX=no
24759 ;;
24760 esac
24761 fi
24762
24763 case $host_os in
24764 # For platforms that do not support PIC, -DPIC is meaningless:
24765 *djgpp*)
24766 lt_prog_compiler_pic_CXX=
24767 ;;
24768 *)
24769 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
24770 ;;
24771 esac
24772
24773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
24774 printf %s "checking for $compiler option to produce PIC... " >&6; }
24775 if test ${lt_cv_prog_compiler_pic_CXX+y}
24776 then :
24777 printf %s "(cached) " >&6
24778 else case e in #(
24779 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
24780 esac
24781 fi
24782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
24783 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
24784 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
24785
24786 #
24787 # Check to make sure the PIC flag actually works.
24788 #
24789 if test -n "$lt_prog_compiler_pic_CXX"; then
24790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
24791 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
24792 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
24793 then :
24794 printf %s "(cached) " >&6
24795 else case e in #(
24796 e) lt_cv_prog_compiler_pic_works_CXX=no
24797 ac_outfile=conftest.$ac_objext
24798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24799 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
24800 # Insert the option either (1) after the last *FLAGS variable, or
24801 # (2) before a word containing "conftest.", or (3) at the end.
24802 # Note that $ac_compile itself does not contain backslashes and begins
24803 # with a dollar sign (not a hyphen), so the echo should work correctly.
24804 # The option is referenced via a variable to avoid confusing sed.
24805 lt_compile=`echo "$ac_compile" | $SED \
24806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24808 -e 's:$: $lt_compiler_flag:'`
24809 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
24810 (eval "$lt_compile" 2>conftest.err)
24811 ac_status=$?
24812 cat conftest.err >&5
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 if (exit $ac_status) && test -s "$ac_outfile"; then
24815 # The compiler can only warn and ignore the option if not recognized
24816 # So say no if there are warnings other than the usual output.
24817 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
24818 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24819 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24820 lt_cv_prog_compiler_pic_works_CXX=yes
24821 fi
24822 fi
24823 $RM conftest*
24824 ;;
24825 esac
24826 fi
24827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
24828 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
24829
24830 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
24831 case $lt_prog_compiler_pic_CXX in
24832 "" | " "*) ;;
24833 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
24834 esac
24835 else
24836 lt_prog_compiler_pic_CXX=
24837 lt_prog_compiler_can_build_shared_CXX=no
24838 fi
24839
24840 fi
24841
24842
24843
24844
24845
24846 #
24847 # Check to make sure the static flag actually works.
24848 #
24849 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
24850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24851 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
24852 if test ${lt_cv_prog_compiler_static_works_CXX+y}
24853 then :
24854 printf %s "(cached) " >&6
24855 else case e in #(
24856 e) lt_cv_prog_compiler_static_works_CXX=no
24857 save_LDFLAGS=$LDFLAGS
24858 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24859 echo "$lt_simple_link_test_code" > conftest.$ac_ext
24860 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24861 # The linker can only warn and ignore the option if not recognized
24862 # So say no if there are warnings
24863 if test -s conftest.err; then
24864 # Append any errors to the config.log.
24865 cat conftest.err 1>&5
24866 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
24867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24868 if diff conftest.exp conftest.er2 >/dev/null; then
24869 lt_cv_prog_compiler_static_works_CXX=yes
24870 fi
24871 else
24872 lt_cv_prog_compiler_static_works_CXX=yes
24873 fi
24874 fi
24875 $RM -r conftest*
24876 LDFLAGS=$save_LDFLAGS
24877 ;;
24878 esac
24879 fi
24880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
24881 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
24882
24883 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
24884 :
24885 else
24886 lt_prog_compiler_static_CXX=
24887 fi
24888
24889
24890
24891 ='-fPIC'
24892 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
24893 archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
24894 archive_cmds_need_lc_CXX=no
24895 no_undefined_flag_CXX=
24896 ;;
24897
24898 *)
24899 dynamic_linker=no
24900 ;;
24901 esac
24902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24903 printf "%s\n" "$dynamic_linker" >&6; }
24904 test no = "$dynamic_linker" && can_build_shared=no
24905
24906 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24907 if test yes = "$GCC"; then
24908 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24909 fi
24910
24911 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
24912 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
24913 fi
24914
24915 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
24916 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
24917 fi
24918
24919 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
24920 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
24921
24922 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
24923 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
24924
24925 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
24926 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951
24952
24953
24954
24955
24956
24957
24958
24959
24960
24961
24962
24963
24964
24965
24966
24967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24968 printf %s "checking how to hardcode library paths into programs... " >&6; }
24969 hardcode_action_CXX=
24970 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24971 test -n "$runpath_var_CXX" ||
24972 test yes = "$hardcode_automatic_CXX"; then
24973
24974 # We can hardcode non-existent directories.
24975 if test no != "$hardcode_direct_CXX" &&
24976 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24977 # have to relink, otherwise we might link with an installed library
24978 # when we should be linking with a yet-to-be-installed one
24979 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
24980 test no != "$hardcode_minus_L_CXX"; then
24981 # Linking always hardcodes the temporary library directory.
24982 hardcode_action_CXX=relink
24983 else
24984 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24985 hardcode_action_CXX=immediate
24986 fi
24987 else
24988 # We cannot hardcode anything, or else we can only hardcode existing
24989 # directories.
24990 hardcode_action_CXX=unsupported
24991 fi
24992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
24993 printf "%s\n" "$hardcode_action_CXX" >&6; }
24994
24995 if test relink = "$hardcode_action_CXX" ||
24996 test yes = "$inherit_rpath_CXX"; then
24997 # Fast installation is not supported
24998 enable_fast_install=no
24999 elif test yes = "$shlibpath_overrides_runpath" ||
25000 test no = "$enable_shared"; then
25001 # Fast installation is not necessary
25002 enable_fast_install=needless
25003 fi
25004
25005
25006
25007
25008
25009
25010
25011 fi # test -n "$compiler"
25012
25013 CC=$lt_save_CC
25014 CFLAGS=$lt_save_CFLAGS
25015 LDCXX=$LD
25016 LD=$lt_save_LD
25017 GCC=$lt_save_GCC
25018 with_gnu_ld=$lt_save_with_gnu_ld
25019 lt_cv_path_LDCXX=$lt_cv_path_LD
25020 lt_cv_path_LD=$lt_save_path_LD
25021 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
25022 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
25023 fi # test yes != "$_lt_caught_CXX_error"
25024
25025 ac_ext=c
25026 ac_cpp='$CPP $CPPFLAGS'
25027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25030
25031
25032
25033
25034
25035
25036
25037
25038
25039
25040
25041
25042
25043
25044
25045 ac_config_commands="$ac_config_commands libtool"
25046
25047
25048
25049
25050 # Only expand once:
25051
25052
25053
25054
25055
25056 # Check to see if building shared libraries
25057 libtool_build_shared_libs='no'
25058 if test "$enable_shared" = 'yes'; then
25059 libtool_build_shared_libs='yes'
25060 fi
25061
25062 # Check to see if building static libraries
25063 libtool_build_static_libs='no'
25064 if test "$enable_static" = 'yes'; then
25065 libtool_build_static_libs='yes'
25066 fi
25067
25068 if test "${libtool_build_shared_libs}" = 'yes'; then
25069 WITH_SHARED_LIBS_TRUE=
25070 WITH_SHARED_LIBS_FALSE='#'
25071 else
25072 WITH_SHARED_LIBS_TRUE='#'
25073 WITH_SHARED_LIBS_FALSE=
25074 fi
25075
25076 #
25077 # Enable support for building loadable modules
25078 #
25079 build_modules='no'
25080
25081 # Check whether --with-modules was given.
25082 if test ${with_modules+y}
25083 then :
25084 withval=$with_modules; with_modules=$withval
25085 else case e in #(
25086 e) with_modules='no' ;;
25087 esac
25088 fi
25089
25090
25091 # Only allow building loadable modules if we are building shared libraries
25092 if test "$with_modules" != 'no' ; then
25093 if test "$libtool_build_shared_libs" = 'no'; then
25094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
25095 printf "%s\n" "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
25096 build_modules='no'
25097 else
25098 build_modules='yes'
25099 fi
25100 fi
25101 if test "$build_modules" != 'no' ; then
25102
25103 printf "%s\n" "#define BUILD_MODULES 1" >>confdefs.h
25104
25105 MAGICK_FEATURES="Modules $MAGICK_FEATURES"
25106 fi
25107 if test "$build_modules" != 'no'; then
25108 WITH_MODULES_TRUE=
25109 WITH_MODULES_FALSE='#'
25110 else
25111 WITH_MODULES_TRUE='#'
25112 WITH_MODULES_FALSE=
25113 fi
25114
25115
25116 # Enable build using delegate libraries built in subdirectories rather than installed
25117 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf uhdr wmf xml zlib zip)
25118 # Check whether --enable-delegate-build was given.
25119 if test ${enable_delegate_build+y}
25120 then :
25121 enableval=$enable_delegate_build; enable_delegate_build=$enableval
25122 else case e in #(
25123 e) enable_delegate_build='no' ;;
25124 esac
25125 fi
25126
25127
25128 # Check whether --enable-deprecated was given.
25129 if test ${enable_deprecated+y}
25130 then :
25131 enableval=$enable_deprecated; enable_deprecated=$enableval
25132 else case e in #(
25133 e) enable_deprecated='no' ;;
25134 esac
25135 fi
25136
25137
25138 if test "$enable_deprecated" = 'yes'; then
25139
25140 printf "%s\n" "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
25141
25142 else
25143 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
25144 fi
25145
25146 # Build a version of ImageMagick which operates uninstalled.
25147 # Used to build distributions located via MAGICK_HOME / executable path
25148 # Check whether --enable-installed was given.
25149 if test ${enable_installed+y}
25150 then :
25151 enableval=$enable_installed; enable_installed=$enableval
25152 else case e in #(
25153 e) enable_installed='yes' ;;
25154 esac
25155 fi
25156
25157
25158 if test "$enable_installed" = 'yes'; then
25159
25160 printf "%s\n" "#define INSTALLED_SUPPORT 1" >>confdefs.h
25161
25162 else
25163 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
25164 fi
25165
25166 # Build a zero-configuration version of ImageMagick.
25167 # Check whether --enable-zero-configuration was given.
25168 if test ${enable_zero_configuration+y}
25169 then :
25170 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
25171 else case e in #(
25172 e) enable_zero_configuration='no' ;;
25173 esac
25174 fi
25175
25176
25177 if test "$enable_zero_configuration" = 'yes'; then
25178
25179 printf "%s\n" "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
25180
25181 MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES"
25182 fi
25183 if test "$enable_zero_configuration" = yes; then
25184 MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_TRUE=
25185 MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_FALSE='#'
25186 else
25187 MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_TRUE='#'
25188 MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_FALSE=
25189 fi
25190
25191
25192 #
25193 # Build a high dynamic range version of ImageMagick.
25194 #
25195 # Check whether --enable-hdri was given.
25196 if test ${enable_hdri+y}
25197 then :
25198 enableval=$enable_hdri; enable_hdri=$enableval
25199 else case e in #(
25200 e) enable_hdri='yes' ;;
25201 esac
25202 fi
25203
25204
25205 MAGICK_HDRI=""
25206 if test "$enable_hdri" = 'yes'; then
25207 MAGICK_HDRI="HDRI"
25208 magick_hdri_enable='1';
25209 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
25210 else
25211 magick_hdri_enable='0'
25212 fi
25213 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
25214 CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
25215 CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
25216
25217 #
25218 # Support the distributed pixel cache.
25219 #
25220 # Check whether --enable-dpc was given.
25221 if test ${enable_dpc+y}
25222 then :
25223 enableval=$enable_dpc; enable_dpc=$enableval
25224 else case e in #(
25225 e) enable_dpc='yes' ;;
25226 esac
25227 fi
25228
25229
25230 if test "$enable_dpc" = 'yes'; then
25231
25232 printf "%s\n" "#define DPC_SUPPORT 1" >>confdefs.h
25233
25234 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
25235 fi
25236
25237 # Enable pipes (|) in filenames.
25238 # Check whether --enable-pipes was given.
25239 if test ${enable_pipes+y}
25240 then :
25241 enableval=$enable_pipes; enable_pipes=$enableval
25242 else case e in #(
25243 e) enable_pipes='no' ;;
25244 esac
25245 fi
25246
25247
25248 if test "$enable_pipes" = 'yes'; then
25249
25250 printf "%s\n" "#define PIPES_SUPPORT 1" >>confdefs.h
25251
25252 MAGICK_FEATURES="Pipes $MAGICK_FEATURES"
25253 fi
25254
25255 # Don't emit "rebuild rules" for configure, Makefile.ins, etc.
25256
25257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25258 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25259 # Check whether --enable-maintainer-mode was given.
25260 if test ${enable_maintainer_mode+y}
25261 then :
25262 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25263 else case e in #(
25264 e) USE_MAINTAINER_MODE=no ;;
25265 esac
25266 fi
25267
25268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
25269 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
25270 if test $USE_MAINTAINER_MODE = yes; then
25271 MAINTAINER_MODE_TRUE=
25272 MAINTAINER_MODE_FALSE='#'
25273 else
25274 MAINTAINER_MODE_TRUE='#'
25275 MAINTAINER_MODE_FALSE=
25276 fi
25277
25278 MAINT=$MAINTAINER_MODE_TRUE
25279
25280
25281
25282 # Enable hugepages support
25283 # Check whether --enable-hugepages was given.
25284 if test ${enable_hugepages+y}
25285 then :
25286 enableval=$enable_hugepages; enable_hugepages=$enableval
25287 else case e in #(
25288 e) enable_hugepages='no' ;;
25289 esac
25290 fi
25291
25292
25293 # Enable ccmalloc memory debugging support
25294 # Check whether --enable-ccmalloc was given.
25295 if test ${enable_ccmalloc+y}
25296 then :
25297 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
25298 else case e in #(
25299 e) enable_ccmalloc='no' ;;
25300 esac
25301 fi
25302
25303
25304 # Enable Electric Fence memory debugging support
25305 # Check whether --enable-efence was given.
25306 if test ${enable_efence+y}
25307 then :
25308 enableval=$enable_efence; enable_efence=$enableval
25309 else case e in #(
25310 e) enable_efence='no' ;;
25311 esac
25312 fi
25313
25314
25315 # Enable prof-based profiling support
25316 # Check whether --enable-prof was given.
25317 if test ${enable_prof+y}
25318 then :
25319 enableval=$enable_prof; enable_prof=$enableval
25320 else case e in #(
25321 e) enable_prof='no' ;;
25322 esac
25323 fi
25324
25325
25326 # Enable gprof-based profiling support
25327 # Check whether --enable-gprof was given.
25328 if test ${enable_gprof+y}
25329 then :
25330 enableval=$enable_gprof; enable_gprof=$enableval
25331 else case e in #(
25332 e) enable_gprof='no' ;;
25333 esac
25334 fi
25335
25336
25337 # Enable gcov-based profiling support
25338 # Check whether --enable-gcov was given.
25339 if test ${enable_gcov+y}
25340 then :
25341 enableval=$enable_gcov; enable_gcov=$enableval
25342 else case e in #(
25343 e) enable_gcov='no' ;;
25344 esac
25345 fi
25346
25347
25348 enable_profiling='no'
25349 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
25350 enable_profiling='yes'
25351 if test "$libtool_build_shared_libs" = 'yes'; then
25352 echo "Warning: Can not profile code using shared libraries"
25353 fi
25354 fi
25355
25356 # Magick API method prefix
25357
25358 # Check whether --with-method-prefix was given.
25359 if test ${with_method_prefix+y}
25360 then :
25361 withval=$with_method_prefix; with_method_prefix=$withval
25362 else case e in #(
25363 e) with_method_prefix='no' ;;
25364 esac
25365 fi
25366
25367
25368 if test "$with_method_prefix" != 'no'; then
25369
25370 printf "%s\n" "#define NAMESPACE_PREFIX $with_method_prefix" >>confdefs.h
25371
25372
25373 printf "%s\n" "#define NAMESPACE_PREFIX_TAG $with_method_prefix" >>confdefs.h
25374
25375 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
25376 fi
25377
25378 # Enable legacy support (default no)
25379 # Check whether --enable-legacy-support was given.
25380 if test ${enable_legacy_support+y}
25381 then :
25382 enableval=$enable_legacy_support; with_legacy_support=$enableval
25383 else case e in #(
25384 e) with_legacy_support='no' ;;
25385 esac
25386 fi
25387
25388 if test "$with_legacy_support" != 'no'; then
25389 LEGACY_SUPPORT_TRUE=
25390 LEGACY_SUPPORT_FALSE='#'
25391 else
25392 LEGACY_SUPPORT_TRUE='#'
25393 LEGACY_SUPPORT_FALSE=
25394 fi
25395
25396
25397 # Enable building command line utilities (default yes)
25398
25399 # Check whether --with-utilities was given.
25400 if test ${with_utilities+y}
25401 then :
25402 withval=$with_utilities; with_utilities=$withval
25403 else case e in #(
25404 e) with_utilities='yes' ;;
25405 esac
25406 fi
25407
25408 if test "$with_utilities" = 'yes'; then
25409 WITH_UTILITIES_TRUE=
25410 WITH_UTILITIES_FALSE='#'
25411 else
25412 WITH_UTILITIES_TRUE='#'
25413 WITH_UTILITIES_FALSE=
25414 fi
25415
25416
25417 # Number of bits in a Quantum
25418
25419 # Check whether --with-quantum-depth was given.
25420 if test ${with_quantum_depth+y}
25421 then :
25422 withval=$with_quantum_depth; with_quantum_depth=$withval
25423 else case e in #(
25424 e) with_quantum_depth=16 ;;
25425 esac
25426 fi
25427
25428
25429 if test "$with_quantum_depth" != '8'; then
25430 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
25431 fi
25432
25433 case "${with_quantum_depth}" in
25434 8 ) ;;
25435 16 ) ;;
25436 32 ) ;;
25437 64 ) ;;
25438 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
25439 esac
25440 QUANTUM_DEPTH="$with_quantum_depth"
25441
25442 printf "%s\n" "#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH" >>confdefs.h
25443
25444 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
25445 CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
25446 CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
25447
25448 # define a lib suffix for abi purpose
25449 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
25450 if test "$enable_hdri" = 'yes'; then
25451 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
25452 fi
25453
25454
25455 # Set pixel cache threshold
25456
25457 # Check whether --with-cache was given.
25458 if test ${with_cache+y}
25459 then :
25460 withval=$with_cache; with_cache=$withval
25461 else case e in #(
25462 e) with_cache='' ;;
25463 esac
25464 fi
25465
25466
25467 if test "$with_cache" != ''; then
25468
25469 printf "%s\n" "#define PixelCacheThreshold \"$with_cache\"" >>confdefs.h
25470
25471 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
25472 fi
25473
25474 # Set security policy
25475 security_policy="open"
25476 # MAGICK_SECURITY_POLICY
25477
25478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of security policy to enforce" >&5
25479 printf %s "checking which variant of security policy to enforce... " >&6; }
25480
25481 # Check whether --with-security-policy was given.
25482 if test ${with_security_policy+y}
25483 then :
25484 withval=$with_security_policy; case $withval in
25485 open|limited|secure|websafe)
25486 security_policy=$withval
25487 ;;
25488 *)
25489 as_fn_error $? "Unknown argument to --with-security-policy" "$LINENO" 5
25490 ;;
25491 esac
25492 magick_cv_with_security_policy=$security_policy
25493 else case e in #(
25494 e) if test ${magick_cv_with_security_policy+y}
25495 then :
25496 printf %s "(cached) " >&6
25497 else case e in #(
25498 e) magick_cv_with_security_policy=open ;;
25499 esac
25500 fi
25501
25502 MAGICK_SECURITY_POLICY=$magick_cv_with_security_policy ;;
25503 esac
25504 fi
25505
25506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $security_policy" >&5
25507 printf "%s\n" "$security_policy" >&6; }
25508
25509
25510
25511 # Disable/Enable support for full delegate paths
25512
25513 # Check whether --with-frozenpaths was given.
25514 if test ${with_frozenpaths+y}
25515 then :
25516 withval=$with_frozenpaths; with_frozenpaths=$withval
25517 else case e in #(
25518 e) with_frozenpaths='no' ;;
25519 esac
25520 fi
25521
25522
25523 # Enable build/install of Magick++
25524
25525 # Check whether --with-magick-plus-plus was given.
25526 if test ${with_magick_plus_plus+y}
25527 then :
25528 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
25529 else case e in #(
25530 e) with_magick_plus_plus='yes' ;;
25531 esac
25532 fi
25533
25534
25535 # Encode the this name into the shared library.
25536
25537 # Check whether --with-package-release-name was given.
25538 if test ${with_package_release_name+y}
25539 then :
25540 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
25541 fi
25542
25543
25544
25545 # Disable build/install of PerlMagick.
25546
25547 # Check whether --with-perl was given.
25548 if test ${with_perl+y}
25549 then :
25550 withval=$with_perl; with_perl=$withval
25551 else case e in #(
25552 e) with_perl='no' ;;
25553 esac
25554 fi
25555
25556
25557 # Options to pass when configuring PerlMagick
25558
25559 # Check whether --with-perl-options was given.
25560 if test ${with_perl_options+y}
25561 then :
25562 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
25563 fi
25564
25565
25566
25567 # Enable jemalloc, object-caching memory allocation library.
25568
25569 # Check whether --with-jemalloc was given.
25570 if test ${with_jemalloc+y}
25571 then :
25572 withval=$with_jemalloc; with_jemalloc=$withval
25573 else case e in #(
25574 e) with_jemalloc='no' ;;
25575 esac
25576 fi
25577
25578 if test "$with_jemalloc" != 'yes' ; then
25579 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
25580 fi
25581
25582 # Enable use of MTMalloc library.
25583
25584 # Check whether --with-mtmalloc was given.
25585 if test ${with_mtmalloc+y}
25586 then :
25587 withval=$with_mtmalloc; with_mtmalloc=$withval
25588 else case e in #(
25589 e) with_mtmalloc='no' ;;
25590 esac
25591 fi
25592
25593 if test "$with_mtmalloc" != 'no' ; then
25594 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-mtmalloc=$with_mtmalloc "
25595 fi
25596
25597 # Enable use of TCMalloc library.
25598
25599 # Check whether --with-tcmalloc was given.
25600 if test ${with_tcmalloc+y}
25601 then :
25602 withval=$with_tcmalloc; with_tcmalloc=$withval
25603 else case e in #(
25604 e) with_tcmalloc='no' ;;
25605 esac
25606 fi
25607
25608 if test "$with_tcmalloc" != 'no' ; then
25609 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tcmalloc=$with_tcmalloc "
25610 fi
25611
25612 # Enable umem, object-caching memory allocation library.
25613
25614 # Check whether --with-umem was given.
25615 if test ${with_umem+y}
25616 then :
25617 withval=$with_umem; with_umem=$withval
25618 else case e in #(
25619 e) with_umem='no' ;;
25620 esac
25621 fi
25622
25623 if test "$with_umem" != 'yes' ; then
25624 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
25625 fi
25626
25627 #
25628 # Specify path to shared libstdc++ if not in normal location
25629 #
25630
25631 # Check whether --with-libstdc was given.
25632 if test ${with_libstdc+y}
25633 then :
25634 withval=$with_libstdc; with_libstdc=$withval
25635 else case e in #(
25636 e) with_libstdc='' ;;
25637 esac
25638 fi
25639
25640
25641 if test "$with_libstdc" != ''; then
25642 if test -d "$with_libstdc"; then
25643 LIBSTDCLDFLAGS="-L$with_libstdc"
25644 fi
25645 fi
25646
25647
25648 ########
25649 #
25650 # Set defines required to build DLLs and modules using MinGW
25651 #
25652 ########
25653 # These options are set for multi-thread DLL module build
25654 # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
25655 # module: _DLL
25656 # executable/Magick++: _DLL _MAGICKMOD_
25657 MODULE_EXTRA_CPPFLAGS=''
25658 LIBRARY_EXTRA_CPPFLAGS=''
25659 if test "${native_win32_build}" = 'yes'; then
25660 if test "${libtool_build_shared_libs}" = 'yes'; then
25661 CPPFLAGS="$CPPFLAGS -D_DLL"
25662 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
25663 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
25664 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
25665 if test "$build_modules" = 'yes'; then
25666 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
25667 else
25668 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
25669 fi
25670 else
25671 CPPFLAGS="$CPPFLAGS -D_LIB"
25672 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
25673 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
25674 fi
25675 if test "$with_threads" = 'yes'; then
25676 CPPFLAGS="$CPPFLAGS -D_MT"
25677 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
25678 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
25679 fi
25680 fi
25681
25682
25683
25684 # Check standard headers
25685
25686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
25687 printf %s "checking whether to enable assertions... " >&6; }
25688 # Check whether --enable-assert was given.
25689 if test ${enable_assert+y}
25690 then :
25691 enableval=$enable_assert; ac_enable_assert=$enableval
25692 if test "x$enableval" = xno
25693 then :
25694
25695 printf "%s\n" "#define NDEBUG 1" >>confdefs.h
25696
25697 elif test "x$enableval" != xyes
25698 then :
25699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
25700 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
25701 ac_enable_assert=yes
25702 fi
25703 else case e in #(
25704 e) ac_enable_assert=yes ;;
25705 esac
25706 fi
25707
25708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
25709 printf "%s\n" "$ac_enable_assert" >&6; }
25710
25711 ac_header_dirent=no
25712 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25713 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
25714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25715 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
25716 if eval test \${$as_ac_Header+y}
25717 then :
25718 printf %s "(cached) " >&6
25719 else case e in #(
25720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25721 /* end confdefs.h. */
25722 #include <sys/types.h>
25723 #include <$ac_hdr>
25724
25725 int
25726 main (void)
25727 {
25728 if ((DIR *) 0)
25729 return 0;
25730 ;
25731 return 0;
25732 }
25733 _ACEOF
25734 if ac_fn_c_try_compile "$LINENO"
25735 then :
25736 eval "$as_ac_Header=yes"
25737 else case e in #(
25738 e) eval "$as_ac_Header=no" ;;
25739 esac
25740 fi
25741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25742 esac
25743 fi
25744 eval ac_res=\$$as_ac_Header
25745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25746 printf "%s\n" "$ac_res" >&6; }
25747 if eval test \"x\$"$as_ac_Header"\" = x"yes"
25748 then :
25749 cat >>confdefs.h <<_ACEOF
25750 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
25751 _ACEOF
25752
25753 ac_header_dirent=$ac_hdr; break
25754 fi
25755
25756 done
25757 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25758 if test $ac_header_dirent = dirent.h; then
25759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25760 printf %s "checking for library containing opendir... " >&6; }
25761 if test ${ac_cv_search_opendir+y}
25762 then :
25763 printf %s "(cached) " >&6
25764 else case e in #(
25765 e) ac_func_search_save_LIBS=$LIBS
25766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25767 /* end confdefs.h. */
25768
25769 /* Override any GCC internal prototype to avoid an error.
25770 Use char because int might match the return type of a GCC
25771 builtin and then its argument prototype would still apply.
25772 The 'extern "C"' is for builds by C++ compilers;
25773 although this is not generally supported in C code supporting it here
25774 has little cost and some practical benefit (sr 110532). */
25775 #ifdef __cplusplus
25776 extern "C"
25777 #endif
25778 char opendir (void);
25779 int
25780 main (void)
25781 {
25782 return opendir ();
25783 ;
25784 return 0;
25785 }
25786 _ACEOF
25787 for ac_lib in '' dir
25788 do
25789 if test -z "$ac_lib"; then
25790 ac_res="none required"
25791 else
25792 ac_res=-l$ac_lib
25793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25794 fi
25795 if ac_fn_c_try_link "$LINENO"
25796 then :
25797 ac_cv_search_opendir=$ac_res
25798 fi
25799 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25800 conftest$ac_exeext
25801 if test ${ac_cv_search_opendir+y}
25802 then :
25803 break
25804 fi
25805 done
25806 if test ${ac_cv_search_opendir+y}
25807 then :
25808
25809 else case e in #(
25810 e) ac_cv_search_opendir=no ;;
25811 esac
25812 fi
25813 rm conftest.$ac_ext
25814 LIBS=$ac_func_search_save_LIBS ;;
25815 esac
25816 fi
25817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25818 printf "%s\n" "$ac_cv_search_opendir" >&6; }
25819 ac_res=$ac_cv_search_opendir
25820 if test "$ac_res" != no
25821 then :
25822 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25823
25824 fi
25825
25826 else
25827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25828 printf %s "checking for library containing opendir... " >&6; }
25829 if test ${ac_cv_search_opendir+y}
25830 then :
25831 printf %s "(cached) " >&6
25832 else case e in #(
25833 e) ac_func_search_save_LIBS=$LIBS
25834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25835 /* end confdefs.h. */
25836
25837 /* Override any GCC internal prototype to avoid an error.
25838 Use char because int might match the return type of a GCC
25839 builtin and then its argument prototype would still apply.
25840 The 'extern "C"' is for builds by C++ compilers;
25841 although this is not generally supported in C code supporting it here
25842 has little cost and some practical benefit (sr 110532). */
25843 #ifdef __cplusplus
25844 extern "C"
25845 #endif
25846 char opendir (void);
25847 int
25848 main (void)
25849 {
25850 return opendir ();
25851 ;
25852 return 0;
25853 }
25854 _ACEOF
25855 for ac_lib in '' x
25856 do
25857 if test -z "$ac_lib"; then
25858 ac_res="none required"
25859 else
25860 ac_res=-l$ac_lib
25861 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25862 fi
25863 if ac_fn_c_try_link "$LINENO"
25864 then :
25865 ac_cv_search_opendir=$ac_res
25866 fi
25867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25868 conftest$ac_exeext
25869 if test ${ac_cv_search_opendir+y}
25870 then :
25871 break
25872 fi
25873 done
25874 if test ${ac_cv_search_opendir+y}
25875 then :
25876
25877 else case e in #(
25878 e) ac_cv_search_opendir=no ;;
25879 esac
25880 fi
25881 rm conftest.$ac_ext
25882 LIBS=$ac_func_search_save_LIBS ;;
25883 esac
25884 fi
25885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25886 printf "%s\n" "$ac_cv_search_opendir" >&6; }
25887 ac_res=$ac_cv_search_opendir
25888 if test "$ac_res" != no
25889 then :
25890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25891
25892 fi
25893
25894 fi
25895
25896
25897 # Check additional headers
25898 ac_fn_c_check_header_compile "$LINENO" "arm/limits.h" "ac_cv_header_arm_limits_h" "$ac_includes_default"
25899 if test "x$ac_cv_header_arm_limits_h" = xyes
25900 then :
25901 printf "%s\n" "#define HAVE_ARM_LIMITS_H 1" >>confdefs.h
25902
25903 fi
25904 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
25905 if test "x$ac_cv_header_arpa_inet_h" = xyes
25906 then :
25907 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
25908
25909 fi
25910 ac_fn_c_check_header_compile "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
25911 if test "x$ac_cv_header_complex_h" = xyes
25912 then :
25913 printf "%s\n" "#define HAVE_COMPLEX_H 1" >>confdefs.h
25914
25915 fi
25916 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
25917 if test "x$ac_cv_header_errno_h" = xyes
25918 then :
25919 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
25920
25921 fi
25922 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
25923 if test "x$ac_cv_header_fcntl_h" = xyes
25924 then :
25925 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
25926
25927 fi
25928 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
25929 if test "x$ac_cv_header_float_h" = xyes
25930 then :
25931 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
25932
25933 fi
25934 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
25935 if test "x$ac_cv_header_inttypes_h" = xyes
25936 then :
25937 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
25938
25939 fi
25940 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
25941 if test "x$ac_cv_header_limits_h" = xyes
25942 then :
25943 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
25944
25945 fi
25946 ac_fn_c_check_header_compile "$LINENO" "linux/unistd.h" "ac_cv_header_linux_unistd_h" "$ac_includes_default"
25947 if test "x$ac_cv_header_linux_unistd_h" = xyes
25948 then :
25949 printf "%s\n" "#define HAVE_LINUX_UNISTD_H 1" >>confdefs.h
25950
25951 fi
25952 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
25953 if test "x$ac_cv_header_locale_h" = xyes
25954 then :
25955 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
25956
25957 fi
25958 ac_fn_c_check_header_compile "$LINENO" "machine/param.h" "ac_cv_header_machine_param_h" "$ac_includes_default"
25959 if test "x$ac_cv_header_machine_param_h" = xyes
25960 then :
25961 printf "%s\n" "#define HAVE_MACHINE_PARAM_H 1" >>confdefs.h
25962
25963 fi
25964 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
25965 if test "x$ac_cv_header_mach_o_dyld_h" = xyes
25966 then :
25967 printf "%s\n" "#define HAVE_MACH_O_DYLD_H 1" >>confdefs.h
25968
25969 fi
25970 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
25971 if test "x$ac_cv_header_malloc_h" = xyes
25972 then :
25973 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
25974
25975 fi
25976 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
25977 if test "x$ac_cv_header_netdb_h" = xyes
25978 then :
25979 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
25980
25981 fi
25982 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
25983 if test "x$ac_cv_header_netinet_in_h" = xyes
25984 then :
25985 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
25986
25987 fi
25988 ac_fn_c_check_header_compile "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
25989 if test "x$ac_cv_header_OS_h" = xyes
25990 then :
25991 printf "%s\n" "#define HAVE_OS_H 1" >>confdefs.h
25992
25993 fi
25994 ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default"
25995 if test "x$ac_cv_header_process_h" = xyes
25996 then :
25997 printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h
25998
25999 fi
26000 ac_fn_c_check_header_compile "$LINENO" "sun_prefetch.h" "ac_cv_header_sun_prefetch_h" "$ac_includes_default"
26001 if test "x$ac_cv_header_sun_prefetch_h" = xyes
26002 then :
26003 printf "%s\n" "#define HAVE_SUN_PREFETCH_H 1" >>confdefs.h
26004
26005 fi
26006 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
26007 if test "x$ac_cv_header_stdarg_h" = xyes
26008 then :
26009 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
26010
26011 fi
26012 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
26013 if test "x$ac_cv_header_stddef_h" = xyes
26014 then :
26015 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
26016
26017 fi
26018 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
26019 if test "x$ac_cv_header_stdint_h" = xyes
26020 then :
26021 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
26022
26023 fi
26024 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
26025 if test "x$ac_cv_header_strings_h" = xyes
26026 then :
26027 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
26028
26029 fi
26030 ac_fn_c_check_header_compile "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
26031 if test "x$ac_cv_header_sys_ipc_h" = xyes
26032 then :
26033 printf "%s\n" "#define HAVE_SYS_IPC_H 1" >>confdefs.h
26034
26035 fi
26036 ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
26037 if test "x$ac_cv_header_sys_loadavg_h" = xyes
26038 then :
26039 printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h
26040
26041 fi
26042 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
26043 if test "x$ac_cv_header_sys_mman_h" = xyes
26044 then :
26045 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
26046
26047 fi
26048 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
26049 if test "x$ac_cv_header_sys_resource_h" = xyes
26050 then :
26051 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
26052
26053 fi
26054 ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default"
26055 if test "x$ac_cv_header_sys_sendfile_h" = xyes
26056 then :
26057 printf "%s\n" "#define HAVE_SYS_SENDFILE_H 1" >>confdefs.h
26058
26059 fi
26060 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
26061 if test "x$ac_cv_header_sys_socket_h" = xyes
26062 then :
26063 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
26064
26065 fi
26066 ac_fn_c_check_header_compile "$LINENO" "sys/syslimits.h" "ac_cv_header_sys_syslimits_h" "$ac_includes_default"
26067 if test "x$ac_cv_header_sys_syslimits_h" = xyes
26068 then :
26069 printf "%s\n" "#define HAVE_SYS_SYSLIMITS_H 1" >>confdefs.h
26070
26071 fi
26072 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
26073 if test "x$ac_cv_header_sys_time_h" = xyes
26074 then :
26075 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
26076
26077 fi
26078 ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
26079 if test "x$ac_cv_header_sys_times_h" = xyes
26080 then :
26081 printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h
26082
26083 fi
26084 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
26085 if test "x$ac_cv_header_sys_uio_h" = xyes
26086 then :
26087 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
26088
26089 fi
26090 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
26091 if test "x$ac_cv_header_unistd_h" = xyes
26092 then :
26093 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
26094
26095 fi
26096 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
26097 if test "x$ac_cv_header_sys_wait_h" = xyes
26098 then :
26099 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26100
26101 fi
26102 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
26103 if test "x$ac_cv_header_utime_h" = xyes
26104 then :
26105 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
26106
26107 fi
26108 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
26109 if test "x$ac_cv_header_wchar_h" = xyes
26110 then :
26111 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
26112
26113 fi
26114 ac_fn_c_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
26115 if test "x$ac_cv_header_xlocale_h" = xyes
26116 then :
26117 printf "%s\n" "#define HAVE_XLOCALE_H 1" >>confdefs.h
26118
26119 fi
26120
26121
26122 ########
26123 #
26124 # Checks for typedefs, structures, and compiler characteristics.
26125 #
26126 ########
26127
26128 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
26129 if test "x$ac_cv_type__Bool" = xyes
26130 then :
26131
26132 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
26133
26134
26135 fi
26136
26137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
26138 printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
26139 if test ${ac_cv_header_stdbool_h+y}
26140 then :
26141 printf %s "(cached) " >&6
26142 else case e in #(
26143 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26144 /* end confdefs.h. */
26145 #include <stdbool.h>
26146
26147 /* "true" and "false" should be usable in #if expressions and
26148 integer constant expressions, and "bool" should be a valid
26149 type name.
26150
26151 Although C99 requires bool, true, and false to be macros,
26152 C23 and C++11 overrule that, so do not test for that.
26153 Although C99 requires __bool_true_false_are_defined and
26154 _Bool, C23 says they are obsolescent, so do not require
26155 them. */
26156
26157 #if !true
26158 #error "'true' is not true"
26159 #endif
26160 #if true != 1
26161 #error "'true' is not equal to 1"
26162 #endif
26163 char b[true == 1 ? 1 : -1];
26164 char c[true];
26165
26166 #if false
26167 #error "'false' is not false"
26168 #endif
26169 #if false != 0
26170 #error "'false' is not equal to 0"
26171 #endif
26172 char d[false == 0 ? 1 : -1];
26173
26174 enum { e = false, f = true, g = false * true, h = true * 256 };
26175
26176 char i[(bool) 0.5 == true ? 1 : -1];
26177 char j[(bool) 0.0 == false ? 1 : -1];
26178 char k[sizeof (bool) > 0 ? 1 : -1];
26179
26180 struct sb { bool s: 1; bool t; } s;
26181 char l[sizeof s.t > 0 ? 1 : -1];
26182
26183 /* The following fails for
26184 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
26185 bool m[h];
26186 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
26187 char o[-1 - (bool) 0 < 0 ? 1 : -1];
26188 /* Catch a bug in an HP-UX C compiler. See
26189 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
26190 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
26191 */
26192 bool p = true;
26193 bool *pp = &p;
26194
26195 int
26196 main (void)
26197 {
26198
26199 bool ps = &s;
26200 *pp |= p;
26201 *pp |= ! p;
26202
26203 /* Refer to every declared value, so they cannot be
26204 discarded as unused. */
26205 return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
26206 + !l + !m + !n + !o + !p + !pp + !ps);
26207
26208 ;
26209 return 0;
26210 }
26211 _ACEOF
26212 if ac_fn_c_try_compile "$LINENO"
26213 then :
26214 ac_cv_header_stdbool_h=yes
26215 else case e in #(
26216 e) ac_cv_header_stdbool_h=no ;;
26217 esac
26218 fi
26219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26220 esac
26221 fi
26222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
26223 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
26224
26225 if test $ac_cv_header_stdbool_h = yes; then
26226
26227 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
26228
26229 fi
26230
26231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
26232 printf %s "checking for working volatile... " >&6; }
26233 if test ${ac_cv_c_volatile+y}
26234 then :
26235 printf %s "(cached) " >&6
26236 else case e in #(
26237 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26238 /* end confdefs.h. */
26239
26240 int
26241 main (void)
26242 {
26243
26244 volatile int x;
26245 int * volatile y = (int *) 0;
26246 return !x && !y;
26247 ;
26248 return 0;
26249 }
26250 _ACEOF
26251 if ac_fn_c_try_compile "$LINENO"
26252 then :
26253 ac_cv_c_volatile=yes
26254 else case e in #(
26255 e) ac_cv_c_volatile=no ;;
26256 esac
26257 fi
26258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26259 esac
26260 fi
26261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
26262 printf "%s\n" "$ac_cv_c_volatile" >&6; }
26263 if test $ac_cv_c_volatile = no; then
26264
26265 printf "%s\n" "#define volatile /**/" >>confdefs.h
26266
26267 fi
26268
26269
26270 if test "$ac_prog_cc_stdc" != no; then
26271
26272 printf "%s\n" "#define HAVE_STRINGIZE 1" >>confdefs.h
26273
26274 fi
26275
26276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26277 printf %s "checking whether stat file-mode macros are broken... " >&6; }
26278 if test ${ac_cv_header_stat_broken+y}
26279 then :
26280 printf %s "(cached) " >&6
26281 else case e in #(
26282 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26283 /* end confdefs.h. */
26284 #include <sys/types.h>
26285 #include <sys/stat.h>
26286
26287 #if defined S_ISBLK && defined S_IFDIR
26288 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26289 #endif
26290
26291 #if defined S_ISBLK && defined S_IFCHR
26292 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26293 #endif
26294
26295 #if defined S_ISLNK && defined S_IFREG
26296 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26297 #endif
26298
26299 #if defined S_ISSOCK && defined S_IFREG
26300 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26301 #endif
26302
26303 _ACEOF
26304 if ac_fn_c_try_compile "$LINENO"
26305 then :
26306 ac_cv_header_stat_broken=no
26307 else case e in #(
26308 e) ac_cv_header_stat_broken=yes ;;
26309 esac
26310 fi
26311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26312 esac
26313 fi
26314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26315 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
26316 if test $ac_cv_header_stat_broken = yes; then
26317
26318 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26319
26320 fi
26321
26322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26323 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26324 if test ${ac_cv_struct_tm+y}
26325 then :
26326 printf %s "(cached) " >&6
26327 else case e in #(
26328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26329 /* end confdefs.h. */
26330 #include <sys/types.h>
26331 #include <time.h>
26332
26333 int
26334 main (void)
26335 {
26336 struct tm tm;
26337 int *p = &tm.tm_sec;
26338 return !p;
26339 ;
26340 return 0;
26341 }
26342 _ACEOF
26343 if ac_fn_c_try_compile "$LINENO"
26344 then :
26345 ac_cv_struct_tm=time.h
26346 else case e in #(
26347 e) ac_cv_struct_tm=sys/time.h ;;
26348 esac
26349 fi
26350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26351 esac
26352 fi
26353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26354 printf "%s\n" "$ac_cv_struct_tm" >&6; }
26355 if test $ac_cv_struct_tm = sys/time.h; then
26356
26357 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
26358
26359 fi
26360
26361 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26362 #include <$ac_cv_struct_tm>
26363
26364 "
26365 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
26366 then :
26367
26368 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
26369
26370
26371 fi
26372
26373 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26374
26375 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
26376
26377 else
26378 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26379 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26380 if test "x$ac_cv_have_decl_tzname" = xyes
26381 then :
26382 ac_have_decl=1
26383 else case e in #(
26384 e) ac_have_decl=0 ;;
26385 esac
26386 fi
26387 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
26388
26389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26390 printf %s "checking for tzname... " >&6; }
26391 if test ${ac_cv_var_tzname+y}
26392 then :
26393 printf %s "(cached) " >&6
26394 else case e in #(
26395 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26396 /* end confdefs.h. */
26397 #include <time.h>
26398 #if !HAVE_DECL_TZNAME
26399 extern char *tzname[];
26400 #endif
26401
26402 int
26403 main (void)
26404 {
26405 return tzname[0][0];
26406 ;
26407 return 0;
26408 }
26409 _ACEOF
26410 if ac_fn_c_try_link "$LINENO"
26411 then :
26412 ac_cv_var_tzname=yes
26413 else case e in #(
26414 e) ac_cv_var_tzname=no ;;
26415 esac
26416 fi
26417 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26418 conftest$ac_exeext conftest.$ac_ext ;;
26419 esac
26420 fi
26421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26422 printf "%s\n" "$ac_cv_var_tzname" >&6; }
26423 if test $ac_cv_var_tzname = yes; then
26424
26425 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
26426
26427 fi
26428 fi
26429
26430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
26431 printf %s "checking whether #! works in shell scripts... " >&6; }
26432 if test ${ac_cv_sys_interpreter+y}
26433 then :
26434 printf %s "(cached) " >&6
26435 else case e in #(
26436 e) echo '#! /bin/cat
26437 exit 69
26438 ' >conftest
26439 chmod u+x conftest
26440 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
26441 if test $? -ne 69; then
26442 ac_cv_sys_interpreter=yes
26443 else
26444 ac_cv_sys_interpreter=no
26445 fi
26446 rm -f conftest ;;
26447 esac
26448 fi
26449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
26450 printf "%s\n" "$ac_cv_sys_interpreter" >&6; }
26451 interpval=$ac_cv_sys_interpreter
26452
26453
26454 #
26455 # Checks for language qualifiers and semantics.
26456 #
26457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
26458 printf %s "checking whether char is unsigned... " >&6; }
26459 if test ${ac_cv_c_char_unsigned+y}
26460 then :
26461 printf %s "(cached) " >&6
26462 else case e in #(
26463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26464 /* end confdefs.h. */
26465 $ac_includes_default
26466 int
26467 main (void)
26468 {
26469 static int test_array [1 - 2 * !(((char) -1) < 0)];
26470 test_array [0] = 0;
26471 return test_array [0];
26472
26473 ;
26474 return 0;
26475 }
26476 _ACEOF
26477 if ac_fn_c_try_compile "$LINENO"
26478 then :
26479 ac_cv_c_char_unsigned=no
26480 else case e in #(
26481 e) ac_cv_c_char_unsigned=yes ;;
26482 esac
26483 fi
26484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26485 esac
26486 fi
26487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
26488 printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
26489 if test $ac_cv_c_char_unsigned = yes; then
26490 printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
26491
26492 fi
26493
26494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26495 printf %s "checking for an ANSI C-conforming const... " >&6; }
26496 if test ${ac_cv_c_const+y}
26497 then :
26498 printf %s "(cached) " >&6
26499 else case e in #(
26500 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26501 /* end confdefs.h. */
26502
26503 int
26504 main (void)
26505 {
26506
26507 #ifndef __cplusplus
26508 /* Ultrix mips cc rejects this sort of thing. */
26509 typedef int charset[2];
26510 const charset cs = { 0, 0 };
26511 /* SunOS 4.1.1 cc rejects this. */
26512 char const *const *pcpcc;
26513 char **ppc;
26514 /* NEC SVR4.0.2 mips cc rejects this. */
26515 struct point {int x, y;};
26516 static struct point const zero = {0,0};
26517 /* IBM XL C 1.02.0.0 rejects this.
26518 It does not let you subtract one const X* pointer from another in
26519 an arm of an if-expression whose if-part is not a constant
26520 expression */
26521 const char *g = "string";
26522 pcpcc = &g + (g ? g-g : 0);
26523 /* HPUX 7.0 cc rejects these. */
26524 ++pcpcc;
26525 ppc = (char**) pcpcc;
26526 pcpcc = (char const *const *) ppc;
26527 { /* SCO 3.2v4 cc rejects this sort of thing. */
26528 char tx;
26529 char *t = &tx;
26530 char const *s = 0 ? (char *) 0 : (char const *) 0;
26531
26532 *t++ = 0;
26533 if (s) return 0;
26534 }
26535 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26536 int x[] = {25, 17};
26537 const int *foo = &x[0];
26538 ++foo;
26539 }
26540 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26541 typedef const int *iptr;
26542 iptr p = 0;
26543 ++p;
26544 }
26545 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
26546 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26547 struct s { int j; const int *ap[3]; } bx;
26548 struct s *b = &bx; b->j = 5;
26549 }
26550 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26551 const int foo = 10;
26552 if (!foo) return 0;
26553 }
26554 return !cs[0] && !zero.x;
26555 #endif
26556
26557 ;
26558 return 0;
26559 }
26560 _ACEOF
26561 if ac_fn_c_try_compile "$LINENO"
26562 then :
26563 ac_cv_c_const=yes
26564 else case e in #(
26565 e) ac_cv_c_const=no ;;
26566 esac
26567 fi
26568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26569 esac
26570 fi
26571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26572 printf "%s\n" "$ac_cv_c_const" >&6; }
26573 if test $ac_cv_c_const = no; then
26574
26575 printf "%s\n" "#define const /**/" >>confdefs.h
26576
26577 fi
26578
26579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
26580 printf %s "checking for inline... " >&6; }
26581 if test ${ac_cv_c_inline+y}
26582 then :
26583 printf %s "(cached) " >&6
26584 else case e in #(
26585 e) ac_cv_c_inline=no
26586 for ac_kw in inline __inline__ __inline; do
26587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26588 /* end confdefs.h. */
26589 #ifndef __cplusplus
26590 typedef int foo_t;
26591 static $ac_kw foo_t static_foo (void) {return 0; }
26592 $ac_kw foo_t foo (void) {return 0; }
26593 #endif
26594
26595 _ACEOF
26596 if ac_fn_c_try_compile "$LINENO"
26597 then :
26598 ac_cv_c_inline=$ac_kw
26599 fi
26600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26601 test "$ac_cv_c_inline" != no && break
26602 done
26603 ;;
26604 esac
26605 fi
26606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
26607 printf "%s\n" "$ac_cv_c_inline" >&6; }
26608
26609 case $ac_cv_c_inline in
26610 inline | yes) ;;
26611 *)
26612 case $ac_cv_c_inline in
26613 no) ac_val=;;
26614 *) ac_val=$ac_cv_c_inline;;
26615 esac
26616 cat >>confdefs.h <<_ACEOF
26617 #ifndef __cplusplus
26618 #define inline $ac_val
26619 #endif
26620 _ACEOF
26621 ;;
26622 esac
26623
26624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
26625 printf %s "checking for C/C++ restrict keyword... " >&6; }
26626 if test ${ac_cv_c_restrict+y}
26627 then :
26628 printf %s "(cached) " >&6
26629 else case e in #(
26630 e) ac_cv_c_restrict=no
26631 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
26632 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
26633 # Put 'restrict' last, because C++ lacks it.
26634 for ac_kw in __restrict__ __restrict _Restrict restrict; do
26635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26636 /* end confdefs.h. */
26637 typedef int *int_ptr;
26638 int foo (int_ptr $ac_kw ip) { return ip[0]; }
26639 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
26640 int bar (int ip[$ac_kw]) { return ip[0]; }
26641
26642 int
26643 main (void)
26644 {
26645 int s[1];
26646 int *$ac_kw t = s;
26647 t[0] = 0;
26648 return foo (t) + bar (t);
26649
26650 ;
26651 return 0;
26652 }
26653 _ACEOF
26654 if ac_fn_c_try_compile "$LINENO"
26655 then :
26656 ac_cv_c_restrict=$ac_kw
26657 fi
26658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26659 test "$ac_cv_c_restrict" != no && break
26660 done
26661 ;;
26662 esac
26663 fi
26664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
26665 printf "%s\n" "$ac_cv_c_restrict" >&6; }
26666
26667 case $ac_cv_c_restrict in
26668 restrict) ;;
26669 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
26670 ;;
26671 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
26672 ;;
26673 esac
26674
26675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
26676 printf %s "checking for working volatile... " >&6; }
26677 if test ${ac_cv_c_volatile+y}
26678 then :
26679 printf %s "(cached) " >&6
26680 else case e in #(
26681 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26682 /* end confdefs.h. */
26683
26684 int
26685 main (void)
26686 {
26687
26688 volatile int x;
26689 int * volatile y = (int *) 0;
26690 return !x && !y;
26691 ;
26692 return 0;
26693 }
26694 _ACEOF
26695 if ac_fn_c_try_compile "$LINENO"
26696 then :
26697 ac_cv_c_volatile=yes
26698 else case e in #(
26699 e) ac_cv_c_volatile=no ;;
26700 esac
26701 fi
26702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26703 esac
26704 fi
26705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
26706 printf "%s\n" "$ac_cv_c_volatile" >&6; }
26707 if test $ac_cv_c_volatile = no; then
26708
26709 printf "%s\n" "#define volatile /**/" >>confdefs.h
26710
26711 fi
26712
26713
26714 # If words are stored with the most significant byte first (like
26715 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
26716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26717 printf %s "checking whether byte ordering is bigendian... " >&6; }
26718 if test ${ac_cv_c_bigendian+y}
26719 then :
26720 printf %s "(cached) " >&6
26721 else case e in #(
26722 e) ac_cv_c_bigendian=unknown
26723 # See if we're dealing with a universal compiler.
26724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26725 /* end confdefs.h. */
26726 #ifndef __APPLE_CC__
26727 not a universal capable compiler
26728 #endif
26729 typedef int dummy;
26730
26731 _ACEOF
26732 if ac_fn_c_try_compile "$LINENO"
26733 then :
26734
26735 # Check for potential -arch flags. It is not universal unless
26736 # there are at least two -arch flags with different values.
26737 ac_arch=
26738 ac_prev=
26739 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26740 if test -n "$ac_prev"; then
26741 case $ac_word in
26742 i?86 | x86_64 | ppc | ppc64)
26743 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26744 ac_arch=$ac_word
26745 else
26746 ac_cv_c_bigendian=universal
26747 break
26748 fi
26749 ;;
26750 esac
26751 ac_prev=
26752 elif test "x$ac_word" = "x-arch"; then
26753 ac_prev=arch
26754 fi
26755 done
26756 fi
26757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26758 if test $ac_cv_c_bigendian = unknown; then
26759 # See if sys/param.h defines the BYTE_ORDER macro.
26760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26761 /* end confdefs.h. */
26762 #include <sys/types.h>
26763 #include <sys/param.h>
26764
26765 int
26766 main (void)
26767 {
26768 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
26769 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
26770 && LITTLE_ENDIAN)
26771 bogus endian macros
26772 #endif
26773
26774 ;
26775 return 0;
26776 }
26777 _ACEOF
26778 if ac_fn_c_try_compile "$LINENO"
26779 then :
26780 # It does; now see whether it defined to BIG_ENDIAN or not.
26781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26782 /* end confdefs.h. */
26783 #include <sys/types.h>
26784 #include <sys/param.h>
26785
26786 int
26787 main (void)
26788 {
26789 #if BYTE_ORDER != BIG_ENDIAN
26790 not big endian
26791 #endif
26792
26793 ;
26794 return 0;
26795 }
26796 _ACEOF
26797 if ac_fn_c_try_compile "$LINENO"
26798 then :
26799 ac_cv_c_bigendian=yes
26800 else case e in #(
26801 e) ac_cv_c_bigendian=no ;;
26802 esac
26803 fi
26804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26805 fi
26806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26807 fi
26808 if test $ac_cv_c_bigendian = unknown; then
26809 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26811 /* end confdefs.h. */
26812 #include <limits.h>
26813
26814 int
26815 main (void)
26816 {
26817 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26818 bogus endian macros
26819 #endif
26820
26821 ;
26822 return 0;
26823 }
26824 _ACEOF
26825 if ac_fn_c_try_compile "$LINENO"
26826 then :
26827 # It does; now see whether it defined to _BIG_ENDIAN or not.
26828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26829 /* end confdefs.h. */
26830 #include <limits.h>
26831
26832 int
26833 main (void)
26834 {
26835 #ifndef _BIG_ENDIAN
26836 not big endian
26837 #endif
26838
26839 ;
26840 return 0;
26841 }
26842 _ACEOF
26843 if ac_fn_c_try_compile "$LINENO"
26844 then :
26845 ac_cv_c_bigendian=yes
26846 else case e in #(
26847 e) ac_cv_c_bigendian=no ;;
26848 esac
26849 fi
26850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26851 fi
26852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26853 fi
26854 if test $ac_cv_c_bigendian = unknown; then
26855 # Compile a test program.
26856 if test "$cross_compiling" = yes
26857 then :
26858 # Try to guess by grepping values from an object file.
26859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26860 /* end confdefs.h. */
26861 unsigned short int ascii_mm[] =
26862 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26863 unsigned short int ascii_ii[] =
26864 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26865 int use_ascii (int i) {
26866 return ascii_mm[i] + ascii_ii[i];
26867 }
26868 unsigned short int ebcdic_ii[] =
26869 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26870 unsigned short int ebcdic_mm[] =
26871 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26872 int use_ebcdic (int i) {
26873 return ebcdic_mm[i] + ebcdic_ii[i];
26874 }
26875 int
26876 main (int argc, char **argv)
26877 {
26878 /* Intimidate the compiler so that it does not
26879 optimize the arrays away. */
26880 char *p = argv[0];
26881 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
26882 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
26883 return use_ascii (argc) == use_ebcdic (*p);
26884 }
26885 _ACEOF
26886 if ac_fn_c_try_link "$LINENO"
26887 then :
26888 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
26889 ac_cv_c_bigendian=yes
26890 fi
26891 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
26892 if test "$ac_cv_c_bigendian" = unknown; then
26893 ac_cv_c_bigendian=no
26894 else
26895 # finding both strings is unlikely to happen, but who knows?
26896 ac_cv_c_bigendian=unknown
26897 fi
26898 fi
26899 fi
26900 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26901 conftest$ac_exeext conftest.$ac_ext
26902 else case e in #(
26903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26904 /* end confdefs.h. */
26905 $ac_includes_default
26906 int
26907 main (void)
26908 {
26909
26910 /* Are we little or big endian? From Harbison&Steele. */
26911 union
26912 {
26913 long int l;
26914 char c[sizeof (long int)];
26915 } u;
26916 u.l = 1;
26917 return u.c[sizeof (long int) - 1] == 1;
26918
26919 ;
26920 return 0;
26921 }
26922 _ACEOF
26923 if ac_fn_c_try_run "$LINENO"
26924 then :
26925 ac_cv_c_bigendian=no
26926 else case e in #(
26927 e) ac_cv_c_bigendian=yes ;;
26928 esac
26929 fi
26930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26931 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26932 esac
26933 fi
26934
26935 fi ;;
26936 esac
26937 fi
26938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26939 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
26940 case $ac_cv_c_bigendian in #(
26941 yes)
26942 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
26943 ;; #(
26944 no)
26945 ;; #(
26946 universal)
26947
26948 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26949
26950 ;; #(
26951 *)
26952 as_fn_error $? "unknown endianness
26953 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26954 esac
26955
26956
26957 # Define to a suitable type, if standard headers do not define it.
26958 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
26959 case $ac_cv_c_int8_t in #(
26960 no|yes) ;; #(
26961 *)
26962
26963 printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
26964 ;;
26965 esac
26966
26967 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
26968 case $ac_cv_c_int16_t in #(
26969 no|yes) ;; #(
26970 *)
26971
26972 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
26973 ;;
26974 esac
26975
26976 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
26977 case $ac_cv_c_int32_t in #(
26978 no|yes) ;; #(
26979 *)
26980
26981 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
26982 ;;
26983 esac
26984
26985 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
26986 case $ac_cv_c_int64_t in #(
26987 no|yes) ;; #(
26988 *)
26989
26990 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
26991 ;;
26992 esac
26993
26994
26995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
26996 printf %s "checking for unsigned long long int... " >&6; }
26997 if test ${ac_cv_type_unsigned_long_long_int+y}
26998 then :
26999 printf %s "(cached) " >&6
27000 else case e in #(
27001 e) ac_cv_type_unsigned_long_long_int=yes
27002 case $ac_prog_cc_stdc in
27003 no | c89) ;;
27004 *)
27005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27006 /* end confdefs.h. */
27007
27008 /* For now, do not test the preprocessor; as of 2007 there are too many
27009 implementations with broken preprocessors. Perhaps this can
27010 be revisited in 2012. In the meantime, code should not expect
27011 #if to work with literals wider than 32 bits. */
27012 /* Test literals. */
27013 long long int ll = 9223372036854775807ll;
27014 long long int nll = -9223372036854775807LL;
27015 unsigned long long int ull = 18446744073709551615ULL;
27016 /* Test constant expressions. */
27017 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
27018 ? 1 : -1)];
27019 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
27020 ? 1 : -1)];
27021 int i = 63;
27022 int
27023 main (void)
27024 {
27025 /* Test availability of runtime routines for shift and division. */
27026 long long int llmax = 9223372036854775807ll;
27027 unsigned long long int ullmax = 18446744073709551615ull;
27028 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
27029 | (llmax / ll) | (llmax % ll)
27030 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
27031 | (ullmax / ull) | (ullmax % ull));
27032 ;
27033 return 0;
27034 }
27035
27036 _ACEOF
27037 if ac_fn_c_try_link "$LINENO"
27038 then :
27039
27040 else case e in #(
27041 e) ac_cv_type_unsigned_long_long_int=no ;;
27042 esac
27043 fi
27044 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27045 conftest$ac_exeext conftest.$ac_ext;;
27046 esac ;;
27047 esac
27048 fi
27049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
27050 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
27051 if test $ac_cv_type_unsigned_long_long_int = yes; then
27052
27053 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
27054
27055 fi
27056
27057
27058
27059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
27060 printf %s "checking for long long int... " >&6; }
27061 if test ${ac_cv_type_long_long_int+y}
27062 then :
27063 printf %s "(cached) " >&6
27064 else case e in #(
27065 e) ac_cv_type_long_long_int=yes
27066 case $ac_prog_cc_stdc in
27067 no | c89) ;;
27068 *)
27069 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
27070 if test $ac_cv_type_long_long_int = yes; then
27071 if test "$cross_compiling" = yes
27072 then :
27073 :
27074 else case e in #(
27075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27076 /* end confdefs.h. */
27077 #include <limits.h>
27078 #ifndef LLONG_MAX
27079 # define HALF \\
27080 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
27081 # define LLONG_MAX (HALF - 1 + HALF)
27082 #endif
27083 int
27084 main (void)
27085 {
27086 long long int n = 1;
27087 int i;
27088 for (i = 0; ; i++)
27089 {
27090 long long int m = n << i;
27091 if (m >> i != n)
27092 return 1;
27093 if (LLONG_MAX / 2 < m)
27094 break;
27095 }
27096 return 0;
27097 ;
27098 return 0;
27099 }
27100 _ACEOF
27101 if ac_fn_c_try_run "$LINENO"
27102 then :
27103
27104 else case e in #(
27105 e) ac_cv_type_long_long_int=no ;;
27106 esac
27107 fi
27108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27109 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
27110 esac
27111 fi
27112
27113 fi;;
27114 esac ;;
27115 esac
27116 fi
27117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
27118 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
27119 if test $ac_cv_type_long_long_int = yes; then
27120
27121 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
27122
27123 fi
27124
27125
27126
27127 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
27128 if test "x$ac_cv_type_intmax_t" = xyes
27129 then :
27130
27131 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
27132
27133 else case e in #(
27134 e) test $ac_cv_type_long_long_int = yes \
27135 && ac_type='long long int' \
27136 || ac_type='long int'
27137
27138 printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
27139 ;;
27140 esac
27141 fi
27142
27143
27144
27145 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27146 if test "x$ac_cv_type_intptr_t" = xyes
27147 then :
27148
27149 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
27150
27151 else case e in #(
27152 e) for ac_type in 'int' 'long int' 'long long int'; do
27153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27154 /* end confdefs.h. */
27155 $ac_includes_default
27156 int
27157 main (void)
27158 {
27159 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27160 test_array [0] = 0;
27161 return test_array [0];
27162
27163 ;
27164 return 0;
27165 }
27166 _ACEOF
27167 if ac_fn_c_try_compile "$LINENO"
27168 then :
27169
27170 printf "%s\n" "#define intptr_t $ac_type" >>confdefs.h
27171
27172 ac_type=
27173 fi
27174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27175 test -z "$ac_type" && break
27176 done ;;
27177 esac
27178 fi
27179
27180
27181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
27182 printf %s "checking for mbstate_t... " >&6; }
27183 if test ${ac_cv_type_mbstate_t+y}
27184 then :
27185 printf %s "(cached) " >&6
27186 else case e in #(
27187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27188 /* end confdefs.h. */
27189 $ac_includes_default
27190 # include <wchar.h>
27191 int
27192 main (void)
27193 {
27194 mbstate_t x; return sizeof x;
27195 ;
27196 return 0;
27197 }
27198 _ACEOF
27199 if ac_fn_c_try_compile "$LINENO"
27200 then :
27201 ac_cv_type_mbstate_t=yes
27202 else case e in #(
27203 e) ac_cv_type_mbstate_t=no ;;
27204 esac
27205 fi
27206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
27207 esac
27208 fi
27209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
27210 printf "%s\n" "$ac_cv_type_mbstate_t" >&6; }
27211 if test $ac_cv_type_mbstate_t = yes; then
27212
27213 printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h
27214
27215 else
27216
27217 printf "%s\n" "#define mbstate_t int" >>confdefs.h
27218
27219 fi
27220 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27221 if test "x$ac_cv_type_mode_t" = xyes
27222 then :
27223
27224 else case e in #(
27225 e)
27226 printf "%s\n" "#define mode_t int" >>confdefs.h
27227 ;;
27228 esac
27229 fi
27230
27231 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27232 if test "x$ac_cv_type_off_t" = xyes
27233 then :
27234
27235 else case e in #(
27236 e)
27237 printf "%s\n" "#define off_t long int" >>confdefs.h
27238 ;;
27239 esac
27240 fi
27241
27242
27243 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
27244 "
27245 if test "x$ac_cv_type_pid_t" = xyes
27246 then :
27247
27248 else case e in #(
27249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27250 /* end confdefs.h. */
27251
27252 #if defined _WIN64 && !defined __CYGWIN__
27253 LLP64
27254 #endif
27255
27256 int
27257 main (void)
27258 {
27259
27260 ;
27261 return 0;
27262 }
27263
27264 _ACEOF
27265 if ac_fn_c_try_compile "$LINENO"
27266 then :
27267 ac_pid_type='int'
27268 else case e in #(
27269 e) ac_pid_type='__int64' ;;
27270 esac
27271 fi
27272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27273
27274 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
27275
27276 ;;
27277 esac
27278 fi
27279
27280
27281 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27282 if test "x$ac_cv_type_size_t" = xyes
27283 then :
27284
27285 else case e in #(
27286 e)
27287 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
27288 ;;
27289 esac
27290 fi
27291
27292 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27293 if test "x$ac_cv_type_ssize_t" = xyes
27294 then :
27295
27296 else case e in #(
27297 e)
27298 printf "%s\n" "#define ssize_t int" >>confdefs.h
27299 ;;
27300 esac
27301 fi
27302
27303 ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
27304 if test "x$ac_cv_type_uid_t" = xyes
27305 then :
27306
27307 else case e in #(
27308 e)
27309 printf "%s\n" "#define uid_t int" >>confdefs.h
27310 ;;
27311 esac
27312 fi
27313
27314 ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
27315 if test "x$ac_cv_type_gid_t" = xyes
27316 then :
27317
27318 else case e in #(
27319 e)
27320 printf "%s\n" "#define gid_t int" >>confdefs.h
27321 ;;
27322 esac
27323 fi
27324
27325 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
27326 case $ac_cv_c_uint8_t in #(
27327 no|yes) ;; #(
27328 *)
27329
27330 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
27331
27332
27333 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
27334 ;;
27335 esac
27336
27337 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
27338 case $ac_cv_c_uint16_t in #(
27339 no|yes) ;; #(
27340 *)
27341
27342
27343 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
27344 ;;
27345 esac
27346
27347 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
27348 case $ac_cv_c_uint32_t in #(
27349 no|yes) ;; #(
27350 *)
27351
27352 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
27353
27354
27355 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
27356 ;;
27357 esac
27358
27359 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
27360 case $ac_cv_c_uint64_t in #(
27361 no|yes) ;; #(
27362 *)
27363
27364 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
27365
27366
27367 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
27368 ;;
27369 esac
27370
27371
27372
27373 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
27374 if test "x$ac_cv_type_uintmax_t" = xyes
27375 then :
27376
27377 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
27378
27379 else case e in #(
27380 e) test $ac_cv_type_unsigned_long_long_int = yes \
27381 && ac_type='unsigned long long int' \
27382 || ac_type='unsigned long int'
27383
27384 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
27385 ;;
27386 esac
27387 fi
27388
27389
27390
27391 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27392 if test "x$ac_cv_type_uintptr_t" = xyes
27393 then :
27394
27395 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
27396
27397 else case e in #(
27398 e) for ac_type in 'unsigned int' 'unsigned long int' \
27399 'unsigned long long int'; do
27400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27401 /* end confdefs.h. */
27402 $ac_includes_default
27403 int
27404 main (void)
27405 {
27406 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27407 test_array [0] = 0;
27408 return test_array [0];
27409
27410 ;
27411 return 0;
27412 }
27413 _ACEOF
27414 if ac_fn_c_try_compile "$LINENO"
27415 then :
27416
27417 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
27418
27419 ac_type=
27420 fi
27421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27422 test -z "$ac_type" && break
27423 done ;;
27424 esac
27425 fi
27426
27427
27428
27429 # Float_t and double_t are intended to be the most efficient type.
27430 # The cast to long int works around a bug in the HP C Compiler
27431 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27432 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
27433 # This bug is HP SR number 8606223364.
27434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
27435 printf %s "checking size of float_t... " >&6; }
27436 if test ${ac_cv_sizeof_float_t+y}
27437 then :
27438 printf %s "(cached) " >&6
27439 else case e in #(
27440 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
27441 "
27442 then :
27443
27444 else case e in #(
27445 e) if test "$ac_cv_type_float_t" = yes; then
27446 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27447 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27448 as_fn_error 77 "cannot compute sizeof (float_t)
27449 See 'config.log' for more details" "$LINENO" 5; }
27450 else
27451 ac_cv_sizeof_float_t=0
27452 fi ;;
27453 esac
27454 fi
27455 ;;
27456 esac
27457 fi
27458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
27459 printf "%s\n" "$ac_cv_sizeof_float_t" >&6; }
27460
27461
27462
27463 printf "%s\n" "#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t" >>confdefs.h
27464
27465
27466 # The cast to long int works around a bug in the HP C Compiler
27467 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27468 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
27469 # This bug is HP SR number 8606223364.
27470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
27471 printf %s "checking size of double_t... " >&6; }
27472 if test ${ac_cv_sizeof_double_t+y}
27473 then :
27474 printf %s "(cached) " >&6
27475 else case e in #(
27476 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
27477 "
27478 then :
27479
27480 else case e in #(
27481 e) if test "$ac_cv_type_double_t" = yes; then
27482 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27483 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27484 as_fn_error 77 "cannot compute sizeof (double_t)
27485 See 'config.log' for more details" "$LINENO" 5; }
27486 else
27487 ac_cv_sizeof_double_t=0
27488 fi ;;
27489 esac
27490 fi
27491 ;;
27492 esac
27493 fi
27494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
27495 printf "%s\n" "$ac_cv_sizeof_double_t" >&6; }
27496
27497
27498
27499 printf "%s\n" "#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t" >>confdefs.h
27500
27501
27502
27503 # Get size of float, double and long double for comparison.
27504 # The cast to long int works around a bug in the HP C Compiler
27505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27506 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
27507 # This bug is HP SR number 8606223364.
27508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
27509 printf %s "checking size of float... " >&6; }
27510 if test ${ac_cv_sizeof_float+y}
27511 then :
27512 printf %s "(cached) " >&6
27513 else case e in #(
27514 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"
27515 then :
27516
27517 else case e in #(
27518 e) if test "$ac_cv_type_float" = yes; then
27519 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27520 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27521 as_fn_error 77 "cannot compute sizeof (float)
27522 See 'config.log' for more details" "$LINENO" 5; }
27523 else
27524 ac_cv_sizeof_float=0
27525 fi ;;
27526 esac
27527 fi
27528 ;;
27529 esac
27530 fi
27531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
27532 printf "%s\n" "$ac_cv_sizeof_float" >&6; }
27533
27534
27535
27536 printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h
27537
27538
27539 # The cast to long int works around a bug in the HP C Compiler
27540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27541 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
27542 # This bug is HP SR number 8606223364.
27543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
27544 printf %s "checking size of double... " >&6; }
27545 if test ${ac_cv_sizeof_double+y}
27546 then :
27547 printf %s "(cached) " >&6
27548 else case e in #(
27549 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"
27550 then :
27551
27552 else case e in #(
27553 e) if test "$ac_cv_type_double" = yes; then
27554 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27555 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27556 as_fn_error 77 "cannot compute sizeof (double)
27557 See 'config.log' for more details" "$LINENO" 5; }
27558 else
27559 ac_cv_sizeof_double=0
27560 fi ;;
27561 esac
27562 fi
27563 ;;
27564 esac
27565 fi
27566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
27567 printf "%s\n" "$ac_cv_sizeof_double" >&6; }
27568
27569
27570
27571 printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h
27572
27573
27574 # The cast to long int works around a bug in the HP C Compiler
27575 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27576 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
27577 # This bug is HP SR number 8606223364.
27578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
27579 printf %s "checking size of long double... " >&6; }
27580 if test ${ac_cv_sizeof_long_double+y}
27581 then :
27582 printf %s "(cached) " >&6
27583 else case e in #(
27584 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"
27585 then :
27586
27587 else case e in #(
27588 e) if test "$ac_cv_type_long_double" = yes; then
27589 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27590 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27591 as_fn_error 77 "cannot compute sizeof (long double)
27592 See 'config.log' for more details" "$LINENO" 5; }
27593 else
27594 ac_cv_sizeof_long_double=0
27595 fi ;;
27596 esac
27597 fi
27598 ;;
27599 esac
27600 fi
27601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
27602 printf "%s\n" "$ac_cv_sizeof_long_double" >&6; }
27603
27604
27605
27606 printf "%s\n" "#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double" >>confdefs.h
27607
27608
27609
27610 # Obtain size of a 'unsigned long long' and define as
27611 # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
27612 # supported then the value defined is zero.
27613 # The cast to long int works around a bug in the HP C Compiler
27614 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27615 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
27616 # This bug is HP SR number 8606223364.
27617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
27618 printf %s "checking size of unsigned long long... " >&6; }
27619 if test ${ac_cv_sizeof_unsigned_long_long+y}
27620 then :
27621 printf %s "(cached) " >&6
27622 else case e in #(
27623 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"
27624 then :
27625
27626 else case e in #(
27627 e) if test "$ac_cv_type_unsigned_long_long" = yes; then
27628 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27629 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27630 as_fn_error 77 "cannot compute sizeof (unsigned long long)
27631 See 'config.log' for more details" "$LINENO" 5; }
27632 else
27633 ac_cv_sizeof_unsigned_long_long=0
27634 fi ;;
27635 esac
27636 fi
27637 ;;
27638 esac
27639 fi
27640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
27641 printf "%s\n" "$ac_cv_sizeof_unsigned_long_long" >&6; }
27642
27643
27644
27645 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long" >>confdefs.h
27646
27647
27648 # The cast to long int works around a bug in the HP C Compiler
27649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27650 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
27651 # This bug is HP SR number 8606223364.
27652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
27653 printf %s "checking size of size_t... " >&6; }
27654 if test ${ac_cv_sizeof_size_t+y}
27655 then :
27656 printf %s "(cached) " >&6
27657 else case e in #(
27658 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"
27659 then :
27660
27661 else case e in #(
27662 e) if test "$ac_cv_type_size_t" = yes; then
27663 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27664 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27665 as_fn_error 77 "cannot compute sizeof (size_t)
27666 See 'config.log' for more details" "$LINENO" 5; }
27667 else
27668 ac_cv_sizeof_size_t=0
27669 fi ;;
27670 esac
27671 fi
27672 ;;
27673 esac
27674 fi
27675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
27676 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
27677
27678
27679
27680 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
27681
27682
27683
27684 # The cast to long int works around a bug in the HP C Compiler
27685 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27686 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
27687 # This bug is HP SR number 8606223364.
27688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
27689 printf %s "checking size of void *... " >&6; }
27690 if test ${ac_cv_sizeof_void_p+y}
27691 then :
27692 printf %s "(cached) " >&6
27693 else case e in #(
27694 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
27695 then :
27696
27697 else case e in #(
27698 e) if test "$ac_cv_type_void_p" = yes; then
27699 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27700 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27701 as_fn_error 77 "cannot compute sizeof (void *)
27702 See 'config.log' for more details" "$LINENO" 5; }
27703 else
27704 ac_cv_sizeof_void_p=0
27705 fi ;;
27706 esac
27707 fi
27708 ;;
27709 esac
27710 fi
27711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
27712 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
27713
27714
27715
27716 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
27717
27718
27719
27720 #
27721 # Check for __func__ support
27722 #
27723 ########
27724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
27725 printf %s "checking whether our compiler supports __func__... " >&6; }
27726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27727 /* end confdefs.h. */
27728
27729 int
27730 main (void)
27731 {
27732 { const char *func = __func__; return(func != 0 ? 0 : 1); }
27733 ;
27734 return 0;
27735 }
27736 _ACEOF
27737 if ac_fn_c_try_compile "$LINENO"
27738 then :
27739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27740 printf "%s\n" "yes" >&6; }
27741 else case e in #(
27742 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27743 printf "%s\n" "no" >&6; }
27744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
27745 printf %s "checking whether our compiler supports __FUNCTION__... " >&6; }
27746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27747 /* end confdefs.h. */
27748
27749 int
27750 main (void)
27751 {
27752 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
27753 ;
27754 return 0;
27755 }
27756 _ACEOF
27757 if ac_fn_c_try_compile "$LINENO"
27758 then :
27759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27760 printf "%s\n" "yes" >&6; }
27761
27762 printf "%s\n" "#define __func__ __FUNCTION__" >>confdefs.h
27763
27764 else case e in #(
27765 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27766 printf "%s\n" "no" >&6; }
27767
27768 printf "%s\n" "#define __func__ __FILE__" >>confdefs.h
27769 ;;
27770 esac
27771 fi
27772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
27773 esac
27774 fi
27775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27776
27777 ########
27778 #
27779 # Check for functions
27780 #
27781 ########
27782
27783 ac_func=
27784 for ac_item in $ac_func_c_list
27785 do
27786 if test $ac_func; then
27787 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
27788 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
27789 echo "#define $ac_item 1" >> confdefs.h
27790 fi
27791 ac_func=
27792 else
27793 ac_func=$ac_item
27794 fi
27795 done
27796
27797
27798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
27799 printf %s "checking for working mmap... " >&6; }
27800 if test ${ac_cv_func_mmap_fixed_mapped+y}
27801 then :
27802 printf %s "(cached) " >&6
27803 else case e in #(
27804 e) if test "$cross_compiling" = yes
27805 then :
27806 case "$host_os" in # ((
27807 # Guess yes on platforms where we know the result.
27808 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
27809 # If we don't know, assume the worst.
27810 *) ac_cv_func_mmap_fixed_mapped=no ;;
27811 esac
27812 else case e in #(
27813 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27814 /* end confdefs.h. */
27815 $ac_includes_default
27816 /* malloc might have been renamed as rpl_malloc. */
27817 #undef malloc
27818
27819 /* Thanks to Mike Haertel and Jim Avera for this test.
27820 Here is a matrix of mmap possibilities:
27821 mmap private not fixed
27822 mmap private fixed at somewhere currently unmapped
27823 mmap private fixed at somewhere already mapped
27824 mmap shared not fixed
27825 mmap shared fixed at somewhere currently unmapped
27826 mmap shared fixed at somewhere already mapped
27827 For private mappings, we should verify that changes cannot be read()
27828 back from the file, nor mmap's back from the file at a different
27829 address. (There have been systems where private was not correctly
27830 implemented like the infamous i386 svr4.0, and systems where the
27831 VM page cache was not coherent with the file system buffer cache
27832 like early versions of FreeBSD and possibly contemporary NetBSD.)
27833 For shared mappings, we should conversely verify that changes get
27834 propagated back to all the places they're supposed to be. */
27835
27836 #include <fcntl.h>
27837 #include <sys/mman.h>
27838
27839 #ifndef getpagesize
27840 /* Prefer sysconf to the legacy getpagesize function, as getpagesize has
27841 been removed from POSIX and is limited to page sizes that fit in 'int'. */
27842 # ifdef _SC_PAGESIZE
27843 # define getpagesize() sysconf (_SC_PAGESIZE)
27844 # elif defined _SC_PAGE_SIZE
27845 # define getpagesize() sysconf (_SC_PAGE_SIZE)
27846 # elif HAVE_GETPAGESIZE
27847 int getpagesize ();
27848 # else
27849 # ifdef HAVE_SYS_PARAM_H
27850 # include <sys/param.h>
27851 # ifdef EXEC_PAGESIZE
27852 # define getpagesize() EXEC_PAGESIZE
27853 # else /* no EXEC_PAGESIZE */
27854 # ifdef NBPG
27855 # define getpagesize() NBPG * CLSIZE
27856 # ifndef CLSIZE
27857 # define CLSIZE 1
27858 # endif /* no CLSIZE */
27859 # else /* no NBPG */
27860 # ifdef NBPC
27861 # define getpagesize() NBPC
27862 # else /* no NBPC */
27863 # ifdef PAGESIZE
27864 # define getpagesize() PAGESIZE
27865 # endif /* PAGESIZE */
27866 # endif /* no NBPC */
27867 # endif /* no NBPG */
27868 # endif /* no EXEC_PAGESIZE */
27869 # else /* no HAVE_SYS_PARAM_H */
27870 # define getpagesize() 8192 /* punt totally */
27871 # endif /* no HAVE_SYS_PARAM_H */
27872 # endif
27873 #endif
27874
27875 int
27876 main (void)
27877 {
27878 char *data, *data2, *data3;
27879 const char *cdata2;
27880 long i, pagesize;
27881 int fd, fd2;
27882
27883 pagesize = getpagesize ();
27884
27885 /* First, make a file with some known garbage in it. */
27886 data = (char *) malloc (pagesize);
27887 if (!data)
27888 return 1;
27889 for (i = 0; i < pagesize; ++i)
27890 *(data + i) = rand ();
27891 umask (0);
27892 fd = creat ("conftest.mmap", 0600);
27893 if (fd < 0)
27894 return 2;
27895 if (write (fd, data, pagesize) != pagesize)
27896 return 3;
27897 close (fd);
27898
27899 /* Next, check that the tail of a page is zero-filled. File must have
27900 non-zero length, otherwise we risk SIGBUS for entire page. */
27901 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
27902 if (fd2 < 0)
27903 return 4;
27904 cdata2 = "";
27905 if (write (fd2, cdata2, 1) != 1)
27906 return 5;
27907 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
27908 if (data2 == MAP_FAILED)
27909 return 6;
27910 for (i = 0; i < pagesize; ++i)
27911 if (*(data2 + i))
27912 return 7;
27913 close (fd2);
27914 /* 'return 8;' not currently used. */
27915
27916 /* Next, try to mmap the file at a fixed address which already has
27917 something else allocated at it. If we can, also make sure that
27918 we see the same garbage. */
27919 fd = open ("conftest.mmap", O_RDWR);
27920 if (fd < 0)
27921 return 9;
27922 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
27923 MAP_PRIVATE | MAP_FIXED, fd, 0L))
27924 return 10;
27925 for (i = 0; i < pagesize; ++i)
27926 if (*(data + i) != *(data2 + i))
27927 return 11;
27928
27929 /* Finally, make sure that changes to the mapped area do not
27930 percolate back to the file as seen by read(). (This is a bug on
27931 some variants of i386 svr4.0.) */
27932 for (i = 0; i < pagesize; ++i)
27933 *(data2 + i) = *(data2 + i) + 1;
27934 data3 = (char *) malloc (pagesize);
27935 if (!data3)
27936 return 12;
27937 if (read (fd, data3, pagesize) != pagesize)
27938 return 13;
27939 for (i = 0; i < pagesize; ++i)
27940 if (*(data + i) != *(data3 + i))
27941 return 14;
27942 close (fd);
27943 free (data);
27944 free (data3);
27945 return 0;
27946 }
27947 _ACEOF
27948 if ac_fn_c_try_run "$LINENO"
27949 then :
27950 ac_cv_func_mmap_fixed_mapped=yes
27951 else case e in #(
27952 e) ac_cv_func_mmap_fixed_mapped=no ;;
27953 esac
27954 fi
27955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27956 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
27957 esac
27958 fi
27959 ;;
27960 esac
27961 fi
27962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
27963 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
27964 if test $ac_cv_func_mmap_fixed_mapped = yes; then
27965
27966 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
27967
27968 fi
27969 rm -f conftest.mmap conftest.txt
27970
27971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
27972 printf %s "checking for working strtod... " >&6; }
27973 if test ${ac_cv_func_strtod+y}
27974 then :
27975 printf %s "(cached) " >&6
27976 else case e in #(
27977 e) if test "$cross_compiling" = yes
27978 then :
27979 ac_cv_func_strtod=no
27980 else case e in #(
27981 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27982 /* end confdefs.h. */
27983
27984 $ac_includes_default
27985 int
27986 main (void)
27987 {
27988 {
27989 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
27990 char *string = " +69";
27991 char *term;
27992 double value;
27993 value = strtod (string, &term);
27994 if (value != 69 || term != (string + 4))
27995 return 1;
27996 }
27997
27998 {
27999 /* Under Solaris 2.4, strtod returns the wrong value for the
28000 terminating character under some conditions. */
28001 char *string = "NaN";
28002 char *term;
28003 strtod (string, &term);
28004 if (term != string && *(term - 1) == 0)
28005 return 1;
28006 }
28007 return 0;
28008 }
28009
28010 _ACEOF
28011 if ac_fn_c_try_run "$LINENO"
28012 then :
28013 ac_cv_func_strtod=yes
28014 else case e in #(
28015 e) ac_cv_func_strtod=no ;;
28016 esac
28017 fi
28018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28019 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28020 esac
28021 fi
28022 ;;
28023 esac
28024 fi
28025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
28026 printf "%s\n" "$ac_cv_func_strtod" >&6; }
28027 if test $ac_cv_func_strtod = no; then
28028 case " $LIBOBJS " in
28029 *" strtod.$ac_objext "* ) ;;
28030 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
28031 ;;
28032 esac
28033
28034 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
28035 if test "x$ac_cv_func_pow" = xyes
28036 then :
28037
28038 fi
28039
28040 if test $ac_cv_func_pow = no; then
28041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
28042 printf %s "checking for pow in -lm... " >&6; }
28043 if test ${ac_cv_lib_m_pow+y}
28044 then :
28045 printf %s "(cached) " >&6
28046 else case e in #(
28047 e) ac_check_lib_save_LIBS=$LIBS
28048 LIBS="-lm $LIBS"
28049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28050 /* end confdefs.h. */
28051
28052 /* Override any GCC internal prototype to avoid an error.
28053 Use char because int might match the return type of a GCC
28054 builtin and then its argument prototype would still apply.
28055 The 'extern "C"' is for builds by C++ compilers;
28056 although this is not generally supported in C code supporting it here
28057 has little cost and some practical benefit (sr 110532). */
28058 #ifdef __cplusplus
28059 extern "C"
28060 #endif
28061 char pow (void);
28062 int
28063 main (void)
28064 {
28065 return pow ();
28066 ;
28067 return 0;
28068 }
28069 _ACEOF
28070 if ac_fn_c_try_link "$LINENO"
28071 then :
28072 ac_cv_lib_m_pow=yes
28073 else case e in #(
28074 e) ac_cv_lib_m_pow=no ;;
28075 esac
28076 fi
28077 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28078 conftest$ac_exeext conftest.$ac_ext
28079 LIBS=$ac_check_lib_save_LIBS ;;
28080 esac
28081 fi
28082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
28083 printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
28084 if test "x$ac_cv_lib_m_pow" = xyes
28085 then :
28086 POW_LIB=-lm
28087 else case e in #(
28088 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
28089 printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;} ;;
28090 esac
28091 fi
28092
28093 fi
28094
28095 fi
28096
28097 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
28098 if test "x$ac_cv_have_decl_strerror_r" = xyes
28099 then :
28100 ac_have_decl=1
28101 else case e in #(
28102 e) ac_have_decl=0 ;;
28103 esac
28104 fi
28105 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
28106
28107
28108 if test $ac_cv_have_decl_strerror_r = yes; then
28109 # For backward compatibility's sake, define HAVE_STRERROR_R.
28110 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
28111 # as AC_CHECK_DECLS_ONCE.)
28112
28113 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
28114
28115 fi
28116
28117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
28118 printf %s "checking whether strerror_r returns char *... " >&6; }
28119 if test ${ac_cv_func_strerror_r_char_p+y}
28120 then :
28121 printf %s "(cached) " >&6
28122 else case e in #(
28123 e)
28124 ac_cv_func_strerror_r_char_p=no
28125 if test $ac_cv_have_decl_strerror_r = yes; then
28126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28127 /* end confdefs.h. */
28128 #include <string.h>
28129 int
28130 main (void)
28131 {
28132
28133 char buf[100];
28134 char x = *strerror_r (0, buf, sizeof buf);
28135 char *p = strerror_r (0, buf, sizeof buf);
28136 return !p || x;
28137
28138 ;
28139 return 0;
28140 }
28141 _ACEOF
28142 if ac_fn_c_try_compile "$LINENO"
28143 then :
28144 ac_cv_func_strerror_r_char_p=yes
28145 fi
28146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28147
28148 fi
28149 ;;
28150 esac
28151 fi
28152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
28153 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
28154 if test $ac_cv_func_strerror_r_char_p = yes; then
28155
28156 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
28157
28158 fi
28159
28160
28161 #
28162 # Find math library
28163 #
28164 MATH_LIBS=''
28165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
28166 printf %s "checking for sqrt in -lm... " >&6; }
28167 if test ${ac_cv_lib_m_sqrt+y}
28168 then :
28169 printf %s "(cached) " >&6
28170 else case e in #(
28171 e) ac_check_lib_save_LIBS=$LIBS
28172 LIBS="-lm $LIBS"
28173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28174 /* end confdefs.h. */
28175
28176 /* Override any GCC internal prototype to avoid an error.
28177 Use char because int might match the return type of a GCC
28178 builtin and then its argument prototype would still apply.
28179 The 'extern "C"' is for builds by C++ compilers;
28180 although this is not generally supported in C code supporting it here
28181 has little cost and some practical benefit (sr 110532). */
28182 #ifdef __cplusplus
28183 extern "C"
28184 #endif
28185 char sqrt (void);
28186 int
28187 main (void)
28188 {
28189 return sqrt ();
28190 ;
28191 return 0;
28192 }
28193 _ACEOF
28194 if ac_fn_c_try_link "$LINENO"
28195 then :
28196 ac_cv_lib_m_sqrt=yes
28197 else case e in #(
28198 e) ac_cv_lib_m_sqrt=no ;;
28199 esac
28200 fi
28201 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28202 conftest$ac_exeext conftest.$ac_ext
28203 LIBS=$ac_check_lib_save_LIBS ;;
28204 esac
28205 fi
28206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
28207 printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; }
28208 if test "x$ac_cv_lib_m_sqrt" = xyes
28209 then :
28210 MATH_LIBS="-lm"
28211 fi
28212
28213 LIBS="$MATH_LIBS $LIBS"
28214
28215
28216 #
28217 # Find socket library
28218 #
28219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
28220 printf %s "checking for library containing gethostbyname... " >&6; }
28221 if test ${ac_cv_search_gethostbyname+y}
28222 then :
28223 printf %s "(cached) " >&6
28224 else case e in #(
28225 e) ac_func_search_save_LIBS=$LIBS
28226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28227 /* end confdefs.h. */
28228
28229 /* Override any GCC internal prototype to avoid an error.
28230 Use char because int might match the return type of a GCC
28231 builtin and then its argument prototype would still apply.
28232 The 'extern "C"' is for builds by C++ compilers;
28233 although this is not generally supported in C code supporting it here
28234 has little cost and some practical benefit (sr 110532). */
28235 #ifdef __cplusplus
28236 extern "C"
28237 #endif
28238 char gethostbyname (void);
28239 int
28240 main (void)
28241 {
28242 return gethostbyname ();
28243 ;
28244 return 0;
28245 }
28246 _ACEOF
28247 for ac_lib in '' resolv nsl
28248 do
28249 if test -z "$ac_lib"; then
28250 ac_res="none required"
28251 else
28252 ac_res=-l$ac_lib
28253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28254 fi
28255 if ac_fn_c_try_link "$LINENO"
28256 then :
28257 ac_cv_search_gethostbyname=$ac_res
28258 fi
28259 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28260 conftest$ac_exeext
28261 if test ${ac_cv_search_gethostbyname+y}
28262 then :
28263 break
28264 fi
28265 done
28266 if test ${ac_cv_search_gethostbyname+y}
28267 then :
28268
28269 else case e in #(
28270 e) ac_cv_search_gethostbyname=no ;;
28271 esac
28272 fi
28273 rm conftest.$ac_ext
28274 LIBS=$ac_func_search_save_LIBS ;;
28275 esac
28276 fi
28277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
28278 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
28279 ac_res=$ac_cv_search_gethostbyname
28280 if test "$ac_res" != no
28281 then :
28282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28283
28284 fi
28285
28286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
28287 printf %s "checking for library containing socket... " >&6; }
28288 if test ${ac_cv_search_socket+y}
28289 then :
28290 printf %s "(cached) " >&6
28291 else case e in #(
28292 e) ac_func_search_save_LIBS=$LIBS
28293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28294 /* end confdefs.h. */
28295
28296 /* Override any GCC internal prototype to avoid an error.
28297 Use char because int might match the return type of a GCC
28298 builtin and then its argument prototype would still apply.
28299 The 'extern "C"' is for builds by C++ compilers;
28300 although this is not generally supported in C code supporting it here
28301 has little cost and some practical benefit (sr 110532). */
28302 #ifdef __cplusplus
28303 extern "C"
28304 #endif
28305 char socket (void);
28306 int
28307 main (void)
28308 {
28309 return socket ();
28310 ;
28311 return 0;
28312 }
28313 _ACEOF
28314 for ac_lib in '' socket
28315 do
28316 if test -z "$ac_lib"; then
28317 ac_res="none required"
28318 else
28319 ac_res=-l$ac_lib
28320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28321 fi
28322 if ac_fn_c_try_link "$LINENO"
28323 then :
28324 ac_cv_search_socket=$ac_res
28325 fi
28326 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28327 conftest$ac_exeext
28328 if test ${ac_cv_search_socket+y}
28329 then :
28330 break
28331 fi
28332 done
28333 if test ${ac_cv_search_socket+y}
28334 then :
28335
28336 else case e in #(
28337 e) ac_cv_search_socket=no ;;
28338 esac
28339 fi
28340 rm conftest.$ac_ext
28341 LIBS=$ac_func_search_save_LIBS ;;
28342 esac
28343 fi
28344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
28345 printf "%s\n" "$ac_cv_search_socket" >&6; }
28346 ac_res=$ac_cv_search_socket
28347 if test "$ac_res" != no
28348 then :
28349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28350
28351
28352 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
28353
28354
28355 fi
28356
28357
28358 #
28359 # Check for clock_gettime().
28360 #
28361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
28362 printf %s "checking for library containing clock_gettime... " >&6; }
28363 if test ${ac_cv_search_clock_gettime+y}
28364 then :
28365 printf %s "(cached) " >&6
28366 else case e in #(
28367 e) ac_func_search_save_LIBS=$LIBS
28368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28369 /* end confdefs.h. */
28370
28371 /* Override any GCC internal prototype to avoid an error.
28372 Use char because int might match the return type of a GCC
28373 builtin and then its argument prototype would still apply.
28374 The 'extern "C"' is for builds by C++ compilers;
28375 although this is not generally supported in C code supporting it here
28376 has little cost and some practical benefit (sr 110532). */
28377 #ifdef __cplusplus
28378 extern "C"
28379 #endif
28380 char clock_gettime (void);
28381 int
28382 main (void)
28383 {
28384 return clock_gettime ();
28385 ;
28386 return 0;
28387 }
28388 _ACEOF
28389 for ac_lib in '' rt
28390 do
28391 if test -z "$ac_lib"; then
28392 ac_res="none required"
28393 else
28394 ac_res=-l$ac_lib
28395 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28396 fi
28397 if ac_fn_c_try_link "$LINENO"
28398 then :
28399 ac_cv_search_clock_gettime=$ac_res
28400 fi
28401 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28402 conftest$ac_exeext
28403 if test ${ac_cv_search_clock_gettime+y}
28404 then :
28405 break
28406 fi
28407 done
28408 if test ${ac_cv_search_clock_gettime+y}
28409 then :
28410
28411 else case e in #(
28412 e) ac_cv_search_clock_gettime=no ;;
28413 esac
28414 fi
28415 rm conftest.$ac_ext
28416 LIBS=$ac_func_search_save_LIBS ;;
28417 esac
28418 fi
28419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
28420 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
28421 ac_res=$ac_cv_search_clock_gettime
28422 if test "$ac_res" != no
28423 then :
28424 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28425
28426
28427 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
28428
28429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
28430 printf %s "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
28431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28432 /* end confdefs.h. */
28433
28434 #include <time.h>
28435 int
28436 main (void)
28437 {
28438 clockid_t clockType = CLOCK_REALTIME;
28439 ;
28440 return 0;
28441 }
28442 _ACEOF
28443 if ac_fn_c_try_compile "$LINENO"
28444 then :
28445
28446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28447 printf "%s\n" "yes" >&6; }
28448
28449 printf "%s\n" "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
28450
28451
28452 else case e in #(
28453 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28454 printf "%s\n" "no" >&6; }
28455 ;;
28456 esac
28457 fi
28458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28459
28460 else case e in #(
28461 e)
28462
28463 for ac_func in gettimeofday ftime
28464 do :
28465 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
28466 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28467 if eval test \"x\$"$as_ac_var"\" = x"yes"
28468 then :
28469 cat >>confdefs.h <<_ACEOF
28470 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
28471 _ACEOF
28472 break
28473 fi
28474
28475 done
28476
28477 ;;
28478 esac
28479 fi
28480
28481
28482 ########
28483 #
28484 # Check for function prototypes
28485 #
28486 ########
28487
28488 ac_fn_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
28489 #include <unistd.h>
28490 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28491 if test "x$ac_cv_have_decl_pread" = xyes
28492 then :
28493 ac_have_decl=1
28494 else case e in #(
28495 e) ac_have_decl=0 ;;
28496 esac
28497 fi
28498 printf "%s\n" "#define HAVE_DECL_PREAD $ac_have_decl" >>confdefs.h
28499 ac_fn_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
28500 #include <unistd.h>
28501 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28502 if test "x$ac_cv_have_decl_pwrite" = xyes
28503 then :
28504 ac_have_decl=1
28505 else case e in #(
28506 e) ac_have_decl=0 ;;
28507 esac
28508 fi
28509 printf "%s\n" "#define HAVE_DECL_PWRITE $ac_have_decl" >>confdefs.h
28510
28511
28512 ac_fn_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
28513 #include <strings.h>
28514 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28515 if test "x$ac_cv_have_decl_strlcpy" = xyes
28516 then :
28517 ac_have_decl=1
28518 else case e in #(
28519 e) ac_have_decl=0 ;;
28520 esac
28521 fi
28522 printf "%s\n" "#define HAVE_DECL_STRLCPY $ac_have_decl" >>confdefs.h
28523
28524
28525 ac_fn_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
28526 #include <stdio.h>
28527 #include <stdarg.h>
28528 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28529 if test "x$ac_cv_have_decl_vsnprintf" = xyes
28530 then :
28531 ac_have_decl=1
28532 else case e in #(
28533 e) ac_have_decl=0 ;;
28534 esac
28535 fi
28536 printf "%s\n" "#define HAVE_DECL_VSNPRINTF $ac_have_decl" >>confdefs.h
28537
28538
28539 ########
28540 #
28541 # C++ Support Tests (For Magick++)
28542 #
28543 ########
28544 have_magick_plus_plus='no'
28545 if test "$with_magick_plus_plus" = 'yes'; then
28546 OLIBS="$LIBS"
28547 LIBS=''
28548 ac_ext=cpp
28549 ac_cpp='$CXXCPP $CPPFLAGS'
28550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28553
28554
28555 # Full set of headers used...
28556 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
28557 # functional iomanip iosfwd iostream iterator list string strstream utility
28558 ac_ext=cpp
28559 ac_cpp='$CXXCPP $CPPFLAGS'
28560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28563
28564 ac_ext=cpp
28565 ac_cpp='$CXXCPP $CPPFLAGS'
28566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28569 if test -z "$CXX"; then
28570 if test -n "$CCC"; then
28571 CXX=$CCC
28572 else
28573 if test -n "$ac_tool_prefix"; then
28574 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
28575 do
28576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
28578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28579 printf %s "checking for $ac_word... " >&6; }
28580 if test ${ac_cv_prog_CXX+y}
28581 then :
28582 printf %s "(cached) " >&6
28583 else case e in #(
28584 e) if test -n "$CXX"; then
28585 ac_cv_prog_CXX="$CXX" # Let the user override the test.
28586 else
28587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28588 for as_dir in $PATH
28589 do
28590 IFS=$as_save_IFS
28591 case $as_dir in #(((
28592 '') as_dir=./ ;;
28593 */) ;;
28594 *) as_dir=$as_dir/ ;;
28595 esac
28596 for ac_exec_ext in '' $ac_executable_extensions; do
28597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28598 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
28599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28600 break 2
28601 fi
28602 done
28603 done
28604 IFS=$as_save_IFS
28605
28606 fi ;;
28607 esac
28608 fi
28609 CXX=$ac_cv_prog_CXX
28610 if test -n "$CXX"; then
28611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
28612 printf "%s\n" "$CXX" >&6; }
28613 else
28614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28615 printf "%s\n" "no" >&6; }
28616 fi
28617
28618
28619 test -n "$CXX" && break
28620 done
28621 fi
28622 if test -z "$CXX"; then
28623 ac_ct_CXX=$CXX
28624 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
28625 do
28626 # Extract the first word of "$ac_prog", so it can be a program name with args.
28627 set dummy $ac_prog; ac_word=$2
28628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28629 printf %s "checking for $ac_word... " >&6; }
28630 if test ${ac_cv_prog_ac_ct_CXX+y}
28631 then :
28632 printf %s "(cached) " >&6
28633 else case e in #(
28634 e) if test -n "$ac_ct_CXX"; then
28635 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
28636 else
28637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28638 for as_dir in $PATH
28639 do
28640 IFS=$as_save_IFS
28641 case $as_dir in #(((
28642 '') as_dir=./ ;;
28643 */) ;;
28644 *) as_dir=$as_dir/ ;;
28645 esac
28646 for ac_exec_ext in '' $ac_executable_extensions; do
28647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28648 ac_cv_prog_ac_ct_CXX="$ac_prog"
28649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28650 break 2
28651 fi
28652 done
28653 done
28654 IFS=$as_save_IFS
28655
28656 fi ;;
28657 esac
28658 fi
28659 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
28660 if test -n "$ac_ct_CXX"; then
28661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
28662 printf "%s\n" "$ac_ct_CXX" >&6; }
28663 else
28664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28665 printf "%s\n" "no" >&6; }
28666 fi
28667
28668
28669 test -n "$ac_ct_CXX" && break
28670 done
28671
28672 if test "x$ac_ct_CXX" = x; then
28673 CXX="g++"
28674 else
28675 case $cross_compiling:$ac_tool_warned in
28676 yes:)
28677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28678 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28679 ac_tool_warned=yes ;;
28680 esac
28681 CXX=$ac_ct_CXX
28682 fi
28683 fi
28684
28685 fi
28686 fi
28687 # Provide some information about the compiler.
28688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
28689 set X $ac_compile
28690 ac_compiler=$2
28691 for ac_option in --version -v -V -qversion; do
28692 { { ac_try="$ac_compiler $ac_option >&5"
28693 case "(($ac_try" in
28694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28695 *) ac_try_echo=$ac_try;;
28696 esac
28697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28698 printf "%s\n" "$ac_try_echo"; } >&5
28699 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
28700 ac_status=$?
28701 if test -s conftest.err; then
28702 sed '10a\
28703 ... rest of stderr output deleted ...
28704 10q' conftest.err >conftest.er1
28705 cat conftest.er1 >&5
28706 fi
28707 rm -f conftest.er1 conftest.err
28708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28709 test $ac_status = 0; }
28710 done
28711
28712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
28713 printf %s "checking whether the compiler supports GNU C++... " >&6; }
28714 if test ${ac_cv_cxx_compiler_gnu+y}
28715 then :
28716 printf %s "(cached) " >&6
28717 else case e in #(
28718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28719 /* end confdefs.h. */
28720
28721 int
28722 main (void)
28723 {
28724 #ifndef __GNUC__
28725 choke me
28726 #endif
28727
28728 ;
28729 return 0;
28730 }
28731 _ACEOF
28732 if ac_fn_cxx_try_compile "$LINENO"
28733 then :
28734 ac_compiler_gnu=yes
28735 else case e in #(
28736 e) ac_compiler_gnu=no ;;
28737 esac
28738 fi
28739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28740 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
28741 ;;
28742 esac
28743 fi
28744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
28745 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
28746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28747
28748 if test $ac_compiler_gnu = yes; then
28749 GXX=yes
28750 else
28751 GXX=
28752 fi
28753 ac_test_CXXFLAGS=${CXXFLAGS+y}
28754 ac_save_CXXFLAGS=$CXXFLAGS
28755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
28756 printf %s "checking whether $CXX accepts -g... " >&6; }
28757 if test ${ac_cv_prog_cxx_g+y}
28758 then :
28759 printf %s "(cached) " >&6
28760 else case e in #(
28761 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
28762 ac_cxx_werror_flag=yes
28763 ac_cv_prog_cxx_g=no
28764 CXXFLAGS="-g"
28765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28766 /* end confdefs.h. */
28767
28768 int
28769 main (void)
28770 {
28771
28772 ;
28773 return 0;
28774 }
28775 _ACEOF
28776 if ac_fn_cxx_try_compile "$LINENO"
28777 then :
28778 ac_cv_prog_cxx_g=yes
28779 else case e in #(
28780 e) CXXFLAGS=""
28781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28782 /* end confdefs.h. */
28783
28784 int
28785 main (void)
28786 {
28787
28788 ;
28789 return 0;
28790 }
28791 _ACEOF
28792 if ac_fn_cxx_try_compile "$LINENO"
28793 then :
28794
28795 else case e in #(
28796 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
28797 CXXFLAGS="-g"
28798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28799 /* end confdefs.h. */
28800
28801 int
28802 main (void)
28803 {
28804
28805 ;
28806 return 0;
28807 }
28808 _ACEOF
28809 if ac_fn_cxx_try_compile "$LINENO"
28810 then :
28811 ac_cv_prog_cxx_g=yes
28812 fi
28813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28814 esac
28815 fi
28816 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28817 esac
28818 fi
28819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28820 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
28821 esac
28822 fi
28823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
28824 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
28825 if test $ac_test_CXXFLAGS; then
28826 CXXFLAGS=$ac_save_CXXFLAGS
28827 elif test $ac_cv_prog_cxx_g = yes; then
28828 if test "$GXX" = yes; then
28829 CXXFLAGS="-g -O2"
28830 else
28831 CXXFLAGS="-g"
28832 fi
28833 else
28834 if test "$GXX" = yes; then
28835 CXXFLAGS="-O2"
28836 else
28837 CXXFLAGS=
28838 fi
28839 fi
28840 ac_prog_cxx_stdcxx=no
28841 if test x$ac_prog_cxx_stdcxx = xno
28842 then :
28843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
28844 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
28845 if test ${ac_cv_prog_cxx_cxx11+y}
28846 then :
28847 printf %s "(cached) " >&6
28848 else case e in #(
28849 e) ac_cv_prog_cxx_cxx11=no
28850 ac_save_CXX=$CXX
28851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28852 /* end confdefs.h. */
28853 $ac_cxx_conftest_cxx11_program
28854 _ACEOF
28855 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
28856 do
28857 CXX="$ac_save_CXX $ac_arg"
28858 if ac_fn_cxx_try_compile "$LINENO"
28859 then :
28860 ac_cv_prog_cxx_cxx11=$ac_arg
28861 fi
28862 rm -f core conftest.err conftest.$ac_objext conftest.beam
28863 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
28864 done
28865 rm -f conftest.$ac_ext
28866 CXX=$ac_save_CXX ;;
28867 esac
28868 fi
28869
28870 if test "x$ac_cv_prog_cxx_cxx11" = xno
28871 then :
28872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
28873 printf "%s\n" "unsupported" >&6; }
28874 else case e in #(
28875 e) if test "x$ac_cv_prog_cxx_cxx11" = x
28876 then :
28877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
28878 printf "%s\n" "none needed" >&6; }
28879 else case e in #(
28880 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
28881 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
28882 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
28883 esac
28884 fi
28885 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
28886 ac_prog_cxx_stdcxx=cxx11 ;;
28887 esac
28888 fi
28889 fi
28890 if test x$ac_prog_cxx_stdcxx = xno
28891 then :
28892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
28893 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
28894 if test ${ac_cv_prog_cxx_cxx98+y}
28895 then :
28896 printf %s "(cached) " >&6
28897 else case e in #(
28898 e) ac_cv_prog_cxx_cxx98=no
28899 ac_save_CXX=$CXX
28900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28901 /* end confdefs.h. */
28902 $ac_cxx_conftest_cxx98_program
28903 _ACEOF
28904 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
28905 do
28906 CXX="$ac_save_CXX $ac_arg"
28907 if ac_fn_cxx_try_compile "$LINENO"
28908 then :
28909 ac_cv_prog_cxx_cxx98=$ac_arg
28910 fi
28911 rm -f core conftest.err conftest.$ac_objext conftest.beam
28912 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
28913 done
28914 rm -f conftest.$ac_ext
28915 CXX=$ac_save_CXX ;;
28916 esac
28917 fi
28918
28919 if test "x$ac_cv_prog_cxx_cxx98" = xno
28920 then :
28921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
28922 printf "%s\n" "unsupported" >&6; }
28923 else case e in #(
28924 e) if test "x$ac_cv_prog_cxx_cxx98" = x
28925 then :
28926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
28927 printf "%s\n" "none needed" >&6; }
28928 else case e in #(
28929 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
28930 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
28931 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
28932 esac
28933 fi
28934 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
28935 ac_prog_cxx_stdcxx=cxx98 ;;
28936 esac
28937 fi
28938 fi
28939
28940 ac_ext=cpp
28941 ac_cpp='$CXXCPP $CPPFLAGS'
28942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28945
28946 depcc="$CXX" am_compiler_list=
28947
28948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
28949 printf %s "checking dependency style of $depcc... " >&6; }
28950 if test ${am_cv_CXX_dependencies_compiler_type+y}
28951 then :
28952 printf %s "(cached) " >&6
28953 else case e in #(
28954 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
28955 # We make a subdir and do the tests there. Otherwise we can end up
28956 # making bogus files that we don't know about and never remove. For
28957 # instance it was reported that on HP-UX the gcc test will end up
28958 # making a dummy file named 'D' -- because '-MD' means "put the output
28959 # in D".
28960 rm -rf conftest.dir
28961 mkdir conftest.dir
28962 # Copy depcomp to subdir because otherwise we won't find it if we're
28963 # using a relative directory.
28964 cp "$am_depcomp" conftest.dir
28965 cd conftest.dir
28966 # We will build objects and dependencies in a subdirectory because
28967 # it helps to detect inapplicable dependency modes. For instance
28968 # both Tru64's cc and ICC support -MD to output dependencies as a
28969 # side effect of compilation, but ICC will put the dependencies in
28970 # the current directory while Tru64 will put them in the object
28971 # directory.
28972 mkdir sub
28973
28974 am_cv_CXX_dependencies_compiler_type=none
28975 if test "$am_compiler_list" = ""; then
28976 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
28977 fi
28978 am__universal=false
28979 case " $depcc " in #(
28980 *\ -arch\ *\ -arch\ *) am__universal=true ;;
28981 esac
28982
28983 for depmode in $am_compiler_list; do
28984 # Setup a source with many dependencies, because some compilers
28985 # like to wrap large dependency lists on column 80 (with \), and
28986 # we should not choose a depcomp mode which is confused by this.
28987 #
28988 # We need to recreate these files for each test, as the compiler may
28989 # overwrite some of them when testing with obscure command lines.
28990 # This happens at least with the AIX C compiler.
28991 : > sub/conftest.c
28992 for i in 1 2 3 4 5 6; do
28993 echo '#include "conftst'$i'.h"' >> sub/conftest.c
28994 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
28995 # Solaris 10 /bin/sh.
28996 echo '/* dummy */' > sub/conftst$i.h
28997 done
28998 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
28999
29000 # We check with '-c' and '-o' for the sake of the "dashmstdout"
29001 # mode. It turns out that the SunPro C++ compiler does not properly
29002 # handle '-M -o', and we need to detect this. Also, some Intel
29003 # versions had trouble with output in subdirs.
29004 am__obj=sub/conftest.${OBJEXT-o}
29005 am__minus_obj="-o $am__obj"
29006 case $depmode in
29007 gcc)
29008 # This depmode causes a compiler race in universal mode.
29009 test "$am__universal" = false || continue
29010 ;;
29011 nosideeffect)
29012 # After this tag, mechanisms are not by side-effect, so they'll
29013 # only be used when explicitly requested.
29014 if test "x$enable_dependency_tracking" = xyes; then
29015 continue
29016 else
29017 break
29018 fi
29019 ;;
29020 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
29021 # This compiler won't grok '-c -o', but also, the minuso test has
29022 # not run yet. These depmodes are late enough in the game, and
29023 # so weak that their functioning should not be impacted.
29024 am__obj=conftest.${OBJEXT-o}
29025 am__minus_obj=
29026 ;;
29027 none) break ;;
29028 esac
29029 if depmode=$depmode \
29030 source=sub/conftest.c object=$am__obj \
29031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
29032 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
29033 >/dev/null 2>conftest.err &&
29034 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
29035 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
29036 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
29037 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
29038 # icc doesn't choke on unknown options, it will just issue warnings
29039 # or remarks (even with -Werror). So we grep stderr for any message
29040 # that says an option was ignored or not supported.
29041 # When given -MP, icc 7.0 and 7.1 complain thus:
29042 # icc: Command line warning: ignoring option '-M'; no argument required
29043 # The diagnosis changed in icc 8.0:
29044 # icc: Command line remark: option '-MP' not supported
29045 if (grep 'ignoring option' conftest.err ||
29046 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
29047 am_cv_CXX_dependencies_compiler_type=$depmode
29048 break
29049 fi
29050 fi
29051 done
29052
29053 cd ..
29054 rm -rf conftest.dir
29055 else
29056 am_cv_CXX_dependencies_compiler_type=none
29057 fi
29058 ;;
29059 esac
29060 fi
29061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
29062 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
29063 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
29064
29065 if
29066 test "x$enable_dependency_tracking" != xno \
29067 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
29068 am__fastdepCXX_TRUE=
29069 am__fastdepCXX_FALSE='#'
29070 else
29071 am__fastdepCXX_TRUE='#'
29072 am__fastdepCXX_FALSE=
29073 fi
29074
29075
29076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
29077 printf %s "checking whether the compiler recognizes bool as a built-in type... " >&6; }
29078 if test ${ax_cv_cxx_bool+y}
29079 then :
29080 printf %s "(cached) " >&6
29081 else case e in #(
29082 e) ac_ext=cpp
29083 ac_cpp='$CXXCPP $CPPFLAGS'
29084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29087
29088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29089 /* end confdefs.h. */
29090 int f(int x){return x;}
29091 int f(char x){return x == '\1' ? 1 : 0;}
29092 int f(bool x){return x ? 1 : 0;}
29093 int
29094 main (void)
29095 {
29096 bool b = true; return f(b);
29097 ;
29098 return 0;
29099 }
29100 _ACEOF
29101 if ac_fn_cxx_try_compile "$LINENO"
29102 then :
29103 ax_cv_cxx_bool=yes
29104 else case e in #(
29105 e) ax_cv_cxx_bool=no ;;
29106 esac
29107 fi
29108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29109 ac_ext=cpp
29110 ac_cpp='$CXXCPP $CPPFLAGS'
29111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29114
29115 ;;
29116 esac
29117 fi
29118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
29119 printf "%s\n" "$ax_cv_cxx_bool" >&6; }
29120 if test "X$ax_cv_cxx_bool" = Xyes
29121 then :
29122
29123 printf "%s\n" "#define HAVE_BOOL /**/" >>confdefs.h
29124
29125 fi
29126
29127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
29128 printf %s "checking whether the compiler implements namespaces... " >&6; }
29129 if test ${ax_cv_cxx_namespaces+y}
29130 then :
29131 printf %s "(cached) " >&6
29132 else case e in #(
29133 e) ac_ext=cpp
29134 ac_cpp='$CXXCPP $CPPFLAGS'
29135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29138
29139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29140 /* end confdefs.h. */
29141 namespace Outer { namespace Inner { int i = 0; }}
29142 using namespace Outer::Inner; int foo(void) { return i;}
29143 _ACEOF
29144 if ac_fn_cxx_try_compile "$LINENO"
29145 then :
29146 ax_cv_cxx_namespaces=yes
29147 else case e in #(
29148 e) ax_cv_cxx_namespaces=no ;;
29149 esac
29150 fi
29151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29152 ac_ext=cpp
29153 ac_cpp='$CXXCPP $CPPFLAGS'
29154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29157
29158 ;;
29159 esac
29160 fi
29161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
29162 printf "%s\n" "$ax_cv_cxx_namespaces" >&6; }
29163 if test "$ax_cv_cxx_namespaces" = yes; then
29164
29165 printf "%s\n" "#define HAVE_NAMESPACES /**/" >>confdefs.h
29166
29167 fi
29168
29169
29170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
29171 printf %s "checking if g++ supports namespace std... " >&6; }
29172 if test ${ax_cv_cxx_have_std_namespace+y}
29173 then :
29174 printf %s "(cached) " >&6
29175 else case e in #(
29176 e) ac_ext=cpp
29177 ac_cpp='$CXXCPP $CPPFLAGS'
29178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29181
29182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29183 /* end confdefs.h. */
29184 #include <iostream>
29185 std::istream& is = std::cin;
29186 int
29187 main (void)
29188 {
29189
29190 ;
29191 return 0;
29192 }
29193 _ACEOF
29194 if ac_fn_cxx_try_compile "$LINENO"
29195 then :
29196 ax_cv_cxx_have_std_namespace=yes
29197 else case e in #(
29198 e) ax_cv_cxx_have_std_namespace=no ;;
29199 esac
29200 fi
29201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29202 ac_ext=cpp
29203 ac_cpp='$CXXCPP $CPPFLAGS'
29204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29207
29208 ;;
29209 esac
29210 fi
29211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
29212 printf "%s\n" "$ax_cv_cxx_have_std_namespace" >&6; }
29213 if test "$ax_cv_cxx_have_std_namespace" = yes; then
29214
29215 printf "%s\n" "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
29216
29217 fi
29218
29219 # Check whether --enable-openmp was given.
29220 if test ${enable_openmp+y}
29221 then :
29222 enableval=$enable_openmp;
29223 fi
29224
29225 OPENMP_CXXFLAGS=
29226 if test "$enable_openmp" != no; then
29227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
29228 printf %s "checking for $CXX option to support OpenMP... " >&6; }
29229 if test ${ac_cv_prog_cxx_openmp+y}
29230 then :
29231 printf %s "(cached) " >&6
29232 else case e in #(
29233 e) ac_cv_prog_cxx_openmp='not found'
29234 for ac_option in '' -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
29235 -Popenmp --openmp; do
29236
29237 ac_save_CXXFLAGS=$CXXFLAGS
29238 CXXFLAGS="$CXXFLAGS $ac_option"
29239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29240 /* end confdefs.h. */
29241
29242 #ifndef _OPENMP
29243 #error "OpenMP not supported"
29244 #endif
29245 #include <omp.h>
29246 int main (void) { return omp_get_num_threads (); }
29247
29248 _ACEOF
29249 if ac_fn_cxx_try_compile "$LINENO"
29250 then :
29251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29252 /* end confdefs.h. */
29253
29254 #ifndef _OPENMP
29255 #error "OpenMP not supported"
29256 #endif
29257 #include <omp.h>
29258 int main (void) { return omp_get_num_threads (); }
29259
29260 _ACEOF
29261 if ac_fn_cxx_try_link "$LINENO"
29262 then :
29263 ac_cv_prog_cxx_openmp=$ac_option
29264 else case e in #(
29265 e) ac_cv_prog_cxx_openmp='unsupported' ;;
29266 esac
29267 fi
29268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29269 conftest$ac_exeext conftest.$ac_ext
29270 fi
29271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29272 CXXFLAGS=$ac_save_CXXFLAGS
29273
29274 if test "$ac_cv_prog_cxx_openmp" != 'not found'; then
29275 break
29276 fi
29277 done
29278 if test "$ac_cv_prog_cxx_openmp" = 'not found'; then
29279 ac_cv_prog_cxx_openmp='unsupported'
29280 elif test "$ac_cv_prog_cxx_openmp" = ''; then
29281 ac_cv_prog_cxx_openmp='none needed'
29282 fi
29283 rm -f penmp mp ;;
29284 esac
29285 fi
29286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
29287 printf "%s\n" "$ac_cv_prog_cxx_openmp" >&6; }
29288 if test "$ac_cv_prog_cxx_openmp" != 'unsupported' && \
29289 test "$ac_cv_prog_cxx_openmp" != 'none needed'; then
29290 OPENMP_CXXFLAGS="$ac_cv_prog_cxx_openmp"
29291 fi
29292 fi
29293
29294
29295 ac_ext=c
29296 ac_cpp='$CPP $CPPFLAGS'
29297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29300
29301
29302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
29303 printf %s "checking whether C++ compiler is sufficient for Magick++... " >&6; }
29304 if \
29305 test $ax_cv_cxx_bool = 'yes' && \
29306 test $ax_cv_cxx_namespaces = 'yes' && \
29307 test $ax_cv_cxx_have_std_namespace = 'yes'; then
29308 have_magick_plus_plus='yes'
29309 else
29310 have_magick_plus_plus='no (failed tests)'
29311 fi
29312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
29313 printf "%s\n" "$have_magick_plus_plus" >&6; }
29314 LIBS="$OLIBS"
29315 fi
29316 if test "$have_magick_plus_plus" = 'yes'; then
29317 WITH_MAGICK_PLUS_PLUS_TRUE=
29318 WITH_MAGICK_PLUS_PLUS_FALSE='#'
29319 else
29320 WITH_MAGICK_PLUS_PLUS_TRUE='#'
29321 WITH_MAGICK_PLUS_PLUS_FALSE=
29322 fi
29323
29324
29325 # Only check for delegate libraries in subdirectories if requested.
29326 if test "$enable_delegate_build" != 'no'; then
29327 # Check for delegate sub-directories and add -I & -L options as required.
29328 # This presumes that delegates are installed as detailed in the ImageMagick
29329 # README. If delegates are installed in a standard location where the
29330 # compiler will automatically find them then these options should not be
29331 # required.
29332
29333 #
29334 # Most delegates have includes in the same directory as the library, but not all...
29335 #
29336 # Includes
29337 for dir in bzlib fftw fpx gslib/src jp2 jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include uhdr wand webp/src wmf/include xml/include zlib zip; do
29338 if test -d "$builddir/$dir"; then
29339 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
29340 else
29341 if test -d "$srcdirfull/$dir"; then
29342 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
29343 fi
29344 fi
29345 done
29346
29347 # Libraries
29348 for dir in bzlib fftw fpx gslib/src jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs uhdr wand webp wmf/src xml zlib zip; do
29349 if test -d "$builddir/$dir/.libs"; then
29350 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
29351 else
29352 if test -d "$srcdirfull/$dir/.libs"; then
29353 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
29354 fi
29355 fi
29356 if test -d "$builddir/$dir"; then
29357 LDFLAGS="$LDFLAGS -L$builddir/$dir"
29358 else
29359 if test -d "$srcdirfull/$dir"; then
29360 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
29361 fi
29362 fi
29363 done
29364 fi
29365
29366 # Assume that delegate headers reside under same directory as ImageMagick
29367 # installation prefix.
29368 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
29369
29370 #
29371 # Find the X11 RGB database
29372 #
29373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
29374 printf %s "checking for X11 configure files... " >&6; }
29375 if test ${im_cv_x_configure+y}
29376 then :
29377 printf %s "(cached) " >&6
29378 else case e in #(
29379 e) # Look for the header file in a standard set of common directories.
29380 # Check X11 before X11Rn because it is often a symlink to the current release.
29381 for ac_dir in \
29382 /lib/usr/lib/X11 \
29383 /usr/X11/lib \
29384 /usr/X11R4/lib \
29385 /usr/X11R5/lib \
29386 /usr/X11R6/lib \
29387 /usr/X11R7/lib \
29388 /usr/X386/lib \
29389 /usr/XFree86/lib/X11 \
29390 /usr/athena/lib \
29391 /usr/lib \
29392 /usr/lib/X11 \
29393 /usr/lib/X11R4 \
29394 /usr/lib/X11R5 \
29395 /usr/lib/X11R6 \
29396 /usr/lib/X11R7 \
29397 /usr/local/X11/lib \
29398 /usr/local/X11R4/lib \
29399 /usr/local/X11R5/lib \
29400 /usr/local/X11R6/lib \
29401 /usr/local/lib \
29402 /usr/local/lib/X11 \
29403 /usr/local/lib/X11R4 \
29404 /usr/local/lib/X11R5 \
29405 /usr/local/lib/X11R6 \
29406 /usr/local/lib/X11R7 \
29407 /usr/local/x11r5/lib \
29408 /usr/lpp/Xamples/lib \
29409 /usr/openwin/lib \
29410 /usr/openwin/share/lib \
29411 /usr/unsupported/lib \
29412 /usr/x386/lib \
29413 ; do
29414 if test -f "$ac_dir/X11/rgb.txt"; then
29415 im_cv_x_configure="$ac_dir/X11/"
29416 break
29417 elif test -f "$ac_dir/rgb.txt"; then
29418 im_cv_x_configure="$ac_dir/"
29419 break
29420 fi
29421
29422 done ;;
29423 esac
29424 fi
29425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
29426 printf "%s\n" "$im_cv_x_configure" >&6; }
29427 X11_CONFIGURE_PATH="$im_cv_x_configure"
29428 case "${build_os}" in
29429 mingw* )
29430 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
29431 ;;
29432 esac
29433
29434 printf "%s\n" "#define X11_CONFIGURE_PATH \"$X11ConfigurePath\"" >>confdefs.h
29435
29436
29437 #
29438 # Find OpenMP library
29439 #
29440 GOMP_LIBS=''
29441 if test "${OPENMP_ENABLED}" = 'yes'; then
29442 ac_fn_c_check_header_compile "$LINENO" "omp.h" "ac_cv_header_omp_h" "$ac_includes_default"
29443 if test "x$ac_cv_header_omp_h" = xyes
29444 then :
29445
29446 else case e in #(
29447 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OpenMP header file not found" >&5
29448 printf "%s\n" "OpenMP header file not found" >&6; } ;;
29449 esac
29450 fi
29451
29452 if test "${GCC}" = "yes"; then
29453 # Open64 (passes for GCC but uses different OpenMP implementation)
29454 if test "x$GOMP_LIBS" = x ; then
29455 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
29456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29457 /* end confdefs.h. */
29458 #include <omp.h>
29459 int
29460 main (void)
29461 {
29462
29463 omp_set_num_threads(1);
29464 ;
29465 return 0;
29466 }
29467 _ACEOF
29468 if ac_fn_c_try_compile "$LINENO"
29469 then :
29470 GOMP_LIBS="-lopenmp"
29471 fi
29472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29473 fi
29474 fi
29475 # Clang (passes for GCC but uses different OpenMP implementation)
29476 if test "x$GOMP_LIBS" = x ; then
29477 if $CC --version 2>&1 | grep clang > /dev/null ; then
29478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29479 /* end confdefs.h. */
29480 #include <omp.h>
29481 int
29482 main (void)
29483 {
29484
29485 omp_set_num_threads(1);
29486 ;
29487 return 0;
29488 }
29489 _ACEOF
29490 if ac_fn_c_try_compile "$LINENO"
29491 then :
29492 GOMP_LIBS="-lomp"
29493 fi
29494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29495 fi
29496 fi
29497 # GCC
29498 if test "x$GOMP_LIBS" = x ; then
29499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29500 /* end confdefs.h. */
29501 #include <omp.h>
29502 int
29503 main (void)
29504 {
29505
29506 omp_set_num_threads(1);
29507 ;
29508 return 0;
29509 }
29510 _ACEOF
29511 if ac_fn_c_try_compile "$LINENO"
29512 then :
29513 GOMP_LIBS="-lgomp"
29514 fi
29515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29516 fi
29517 else
29518 # Sun CC
29519 if test "x$GOMP_LIBS" = x ; then
29520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29521 /* end confdefs.h. */
29522 #include <omp.h>
29523 int
29524 main (void)
29525 {
29526
29527 omp_set_num_threads(1);
29528 ;
29529 return 0;
29530 }
29531 _ACEOF
29532 if ac_fn_c_try_compile "$LINENO"
29533 then :
29534 GOMP_LIBS="-lmtsk"
29535 fi
29536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29537 fi
29538 # AIX xlc
29539 if test "x$GOMP_LIBS" = x ; then
29540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29541 /* end confdefs.h. */
29542 #include <omp.h>
29543 int
29544 main (void)
29545 {
29546
29547 omp_set_num_threads(1);
29548 ;
29549 return 0;
29550 }
29551 _ACEOF
29552 if ac_fn_c_try_compile "$LINENO"
29553 then :
29554 GOMP_LIBS="-lxmlsmp"
29555 fi
29556 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29557 fi
29558 # SGI IRIX 6.5 MIPSpro C/C++
29559 if test "x$GOMP_LIBS" = x ; then
29560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29561 /* end confdefs.h. */
29562 #include <omp.h>
29563 int
29564 main (void)
29565 {
29566
29567 omp_set_num_threads(1);
29568 ;
29569 return 0;
29570 }
29571 _ACEOF
29572 if ac_fn_c_try_compile "$LINENO"
29573 then :
29574 GOMP_LIBS="-lmp"
29575 fi
29576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29577 fi
29578 fi
29579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenMP library " >&5
29580 printf %s "checking for OpenMP library ... " >&6; }
29581 if test "x$GOMP_LIBS" = x ; then
29582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
29583 printf "%s\n" "not found!" >&6; }
29584 else
29585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${GOMP_LIBS}" >&5
29586 printf "%s\n" "${GOMP_LIBS}" >&6; }
29587 fi
29588 fi
29589
29590
29591 #
29592 # Check for jemalloc.
29593 #
29594 have_jemalloc='no'
29595 JEMALLOC_LIBS=''
29596 if test "$with_jemalloc" != 'no'; then
29597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support" >&5
29598 printf %s "checking for JEMALLOC support... " >&6; }
29599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
29600 printf "%s\n" "" >&6; }
29601 failed=0
29602 passed=0
29603 ac_fn_c_check_header_compile "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
29604 if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes
29605 then :
29606 passed=`expr $passed + 1`
29607 else case e in #(
29608 e) failed=`expr $failed + 1` ;;
29609 esac
29610 fi
29611
29612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
29613 printf %s "checking for malloc_stats_print in -ljemalloc... " >&6; }
29614 if test ${ac_cv_lib_jemalloc_malloc_stats_print+y}
29615 then :
29616 printf %s "(cached) " >&6
29617 else case e in #(
29618 e) ac_check_lib_save_LIBS=$LIBS
29619 LIBS="-ljemalloc $LIBS"
29620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29621 /* end confdefs.h. */
29622
29623 /* Override any GCC internal prototype to avoid an error.
29624 Use char because int might match the return type of a GCC
29625 builtin and then its argument prototype would still apply.
29626 The 'extern "C"' is for builds by C++ compilers;
29627 although this is not generally supported in C code supporting it here
29628 has little cost and some practical benefit (sr 110532). */
29629 #ifdef __cplusplus
29630 extern "C"
29631 #endif
29632 char malloc_stats_print (void);
29633 int
29634 main (void)
29635 {
29636 return malloc_stats_print ();
29637 ;
29638 return 0;
29639 }
29640 _ACEOF
29641 if ac_fn_c_try_link "$LINENO"
29642 then :
29643 ac_cv_lib_jemalloc_malloc_stats_print=yes
29644 else case e in #(
29645 e) ac_cv_lib_jemalloc_malloc_stats_print=no ;;
29646 esac
29647 fi
29648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29649 conftest$ac_exeext conftest.$ac_ext
29650 LIBS=$ac_check_lib_save_LIBS ;;
29651 esac
29652 fi
29653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
29654 printf "%s\n" "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
29655 if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes
29656 then :
29657 passed=`expr $passed + 1`
29658 else case e in #(
29659 e) failed=`expr $failed + 1` ;;
29660 esac
29661 fi
29662
29663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
29664 printf %s "checking if jemalloc memory allocation library is complete... " >&6; }
29665 if test $passed -gt 0; then
29666 if test $failed -gt 0; then
29667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29668 printf "%s\n" "no -- some components failed test" >&6; }
29669 have_jemalloc='no (failed tests)'
29670 else
29671 JEMALLOC_LIBS='-ljemalloc'
29672 LIBS="$JEMALLOC_LIBS $LIBS"
29673
29674 printf "%s\n" "#define HAVE_JEMALLOC 1" >>confdefs.h
29675
29676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29677 printf "%s\n" "yes" >&6; }
29678 have_jemalloc='yes'
29679 fi
29680 else
29681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29682 printf "%s\n" "no" >&6; }
29683 fi
29684 fi
29685 if test "$have_jemalloc" = 'yes'; then
29686 HAVE_JEMALLOC_TRUE=
29687 HAVE_JEMALLOC_FALSE='#'
29688 else
29689 HAVE_JEMALLOC_TRUE='#'
29690 HAVE_JEMALLOC_FALSE=
29691 fi
29692
29693
29694
29695 #
29696 # Check for MTMalloc library
29697 #
29698 have_mtmalloc='no'
29699 MTMALLOC_LIBS=''
29700 OLIBS="$LIBS"
29701 if test "$have_threads" = 'yes' -a "$with_mtmalloc" != 'no'; then
29702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking mtmalloc library support" >&5
29703 printf %s "checking mtmalloc library support... " >&6; }
29704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
29705 printf "%s\n" "" >&6; }
29706 failed=0
29707 passed=0
29708
29709 ac_fn_c_check_header_compile "$LINENO" "mtmalloc.h" "ac_cv_header_mtmalloc_h" "$ac_includes_default"
29710 if test "x$ac_cv_header_mtmalloc_h" = xyes
29711 then :
29712 passed=`expr $passed + 1`
29713 else case e in #(
29714 e) failed=`expr $failed + 1` ;;
29715 esac
29716 fi
29717
29718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mallocctl in -lmtalloc" >&5
29719 printf %s "checking for mallocctl in -lmtalloc... " >&6; }
29720 if test ${ac_cv_lib_mtalloc_mallocctl+y}
29721 then :
29722 printf %s "(cached) " >&6
29723 else case e in #(
29724 e) ac_check_lib_save_LIBS=$LIBS
29725 LIBS="-lmtalloc $LIBS"
29726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29727 /* end confdefs.h. */
29728
29729 /* Override any GCC internal prototype to avoid an error.
29730 Use char because int might match the return type of a GCC
29731 builtin and then its argument prototype would still apply.
29732 The 'extern "C"' is for builds by C++ compilers;
29733 although this is not generally supported in C code supporting it here
29734 has little cost and some practical benefit (sr 110532). */
29735 #ifdef __cplusplus
29736 extern "C"
29737 #endif
29738 char mallocctl (void);
29739 int
29740 main (void)
29741 {
29742 return mallocctl ();
29743 ;
29744 return 0;
29745 }
29746 _ACEOF
29747 if ac_fn_c_try_link "$LINENO"
29748 then :
29749 ac_cv_lib_mtalloc_mallocctl=yes
29750 else case e in #(
29751 e) ac_cv_lib_mtalloc_mallocctl=no ;;
29752 esac
29753 fi
29754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29755 conftest$ac_exeext conftest.$ac_ext
29756 LIBS=$ac_check_lib_save_LIBS ;;
29757 esac
29758 fi
29759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtalloc_mallocctl" >&5
29760 printf "%s\n" "$ac_cv_lib_mtalloc_mallocctl" >&6; }
29761 if test "x$ac_cv_lib_mtalloc_mallocctl" = xyes
29762 then :
29763 passed=`expr $passed + 1`
29764 else case e in #(
29765 e) failed=`expr $failed + 1` ;;
29766 esac
29767 fi
29768
29769
29770 if test $passed -gt 0; then
29771 if test $failed -gt 0; then
29772 have_mtmalloc='no (some components failed test)'
29773 else
29774 MTMALLOC_LIBS=-lmtalloc
29775 LIBS="$MTMALLOC_LIBS $LIBS"
29776 CFLAGS="$CFLAGS -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free"
29777
29778 printf "%s\n" "#define HAVE_MTMALLOC 1" >>confdefs.h
29779
29780 have_mtmalloc='yes'
29781 fi
29782 fi
29783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if mtmalloc memory allocation library is complete" >&5
29784 printf %s "checking if mtmalloc memory allocation library is complete... " >&6; }
29785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mtmalloc" >&5
29786 printf "%s\n" "$have_mtmalloc" >&6; }
29787 fi
29788 if test "$have_mtmalloc" = 'yes'; then
29789 HAVE_MTMALLOC_TRUE=
29790 HAVE_MTMALLOC_FALSE='#'
29791 else
29792 HAVE_MTMALLOC_TRUE='#'
29793 HAVE_MTMALLOC_FALSE=
29794 fi
29795
29796
29797
29798 #
29799 # Check for TCMalloc library
29800 #
29801 have_tcmalloc='no'
29802 TCMALLOC_LIBS=''
29803 OLIBS="$LIBS"
29804 if test "$have_threads" = 'yes' -a "$with_tcmalloc" != 'no'; then
29805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking tcmalloc library support" >&5
29806 printf %s "checking tcmalloc library support... " >&6; }
29807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
29808 printf "%s\n" "" >&6; }
29809 failed=0
29810 passed=0
29811
29812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mallinfo in -ltcmalloc_minimal" >&5
29813 printf %s "checking for mallinfo in -ltcmalloc_minimal... " >&6; }
29814 if test ${ac_cv_lib_tcmalloc_minimal_mallinfo+y}
29815 then :
29816 printf %s "(cached) " >&6
29817 else case e in #(
29818 e) ac_check_lib_save_LIBS=$LIBS
29819 LIBS="-ltcmalloc_minimal $LIBS"
29820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29821 /* end confdefs.h. */
29822
29823 /* Override any GCC internal prototype to avoid an error.
29824 Use char because int might match the return type of a GCC
29825 builtin and then its argument prototype would still apply.
29826 The 'extern "C"' is for builds by C++ compilers;
29827 although this is not generally supported in C code supporting it here
29828 has little cost and some practical benefit (sr 110532). */
29829 #ifdef __cplusplus
29830 extern "C"
29831 #endif
29832 char mallinfo (void);
29833 int
29834 main (void)
29835 {
29836 return mallinfo ();
29837 ;
29838 return 0;
29839 }
29840 _ACEOF
29841 if ac_fn_c_try_link "$LINENO"
29842 then :
29843 ac_cv_lib_tcmalloc_minimal_mallinfo=yes
29844 else case e in #(
29845 e) ac_cv_lib_tcmalloc_minimal_mallinfo=no ;;
29846 esac
29847 fi
29848 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29849 conftest$ac_exeext conftest.$ac_ext
29850 LIBS=$ac_check_lib_save_LIBS ;;
29851 esac
29852 fi
29853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcmalloc_minimal_mallinfo" >&5
29854 printf "%s\n" "$ac_cv_lib_tcmalloc_minimal_mallinfo" >&6; }
29855 if test "x$ac_cv_lib_tcmalloc_minimal_mallinfo" = xyes
29856 then :
29857 passed=`expr $passed + 1`
29858 else case e in #(
29859 e) failed=`expr $failed + 1` ;;
29860 esac
29861 fi
29862
29863
29864 if test $passed -gt 0; then
29865 if test $failed -gt 0; then
29866 have_tcmalloc='no (some components failed test)'
29867 else
29868 TCMALLOC_LIBS=-ltcmalloc_minimal
29869 LIBS="$TCMALLOC_LIBS $LIBS"
29870 CFLAGS="$CFLAGS -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free"
29871
29872 printf "%s\n" "#define HAVE_TCMALLOC 1" >>confdefs.h
29873
29874 have_tcmalloc='yes'
29875 fi
29876 fi
29877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if tcmalloc memory allocation library is complete" >&5
29878 printf %s "checking if tcmalloc memory allocation library is complete... " >&6; }
29879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_tcmalloc" >&5
29880 printf "%s\n" "$have_tcmalloc" >&6; }
29881 fi
29882 if test "$have_tcmalloc" = 'yes'; then
29883 HAVE_TCMALLOC_TRUE=
29884 HAVE_TCMALLOC_FALSE='#'
29885 else
29886 HAVE_TCMALLOC_TRUE='#'
29887 HAVE_TCMALLOC_FALSE=
29888 fi
29889
29890
29891
29892 #
29893 # Check for umem.
29894 #
29895 have_umem='no'
29896 UMEM_LIBS=''
29897 if test "$with_umem" != 'no'; then
29898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UMEM support" >&5
29899 printf %s "checking for UMEM support... " >&6; }
29900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
29901 printf "%s\n" "" >&6; }
29902 failed=0
29903 passed=0
29904 ac_fn_c_check_header_compile "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
29905 if test "x$ac_cv_header_umem_h" = xyes
29906 then :
29907 passed=`expr $passed + 1`
29908 else case e in #(
29909 e) failed=`expr $failed + 1` ;;
29910 esac
29911 fi
29912
29913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
29914 printf %s "checking for umem_alloc in -lumem... " >&6; }
29915 if test ${ac_cv_lib_umem_umem_alloc+y}
29916 then :
29917 printf %s "(cached) " >&6
29918 else case e in #(
29919 e) ac_check_lib_save_LIBS=$LIBS
29920 LIBS="-lumem $LIBS"
29921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29922 /* end confdefs.h. */
29923
29924 /* Override any GCC internal prototype to avoid an error.
29925 Use char because int might match the return type of a GCC
29926 builtin and then its argument prototype would still apply.
29927 The 'extern "C"' is for builds by C++ compilers;
29928 although this is not generally supported in C code supporting it here
29929 has little cost and some practical benefit (sr 110532). */
29930 #ifdef __cplusplus
29931 extern "C"
29932 #endif
29933 char umem_alloc (void);
29934 int
29935 main (void)
29936 {
29937 return umem_alloc ();
29938 ;
29939 return 0;
29940 }
29941 _ACEOF
29942 if ac_fn_c_try_link "$LINENO"
29943 then :
29944 ac_cv_lib_umem_umem_alloc=yes
29945 else case e in #(
29946 e) ac_cv_lib_umem_umem_alloc=no ;;
29947 esac
29948 fi
29949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29950 conftest$ac_exeext conftest.$ac_ext
29951 LIBS=$ac_check_lib_save_LIBS ;;
29952 esac
29953 fi
29954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
29955 printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
29956 if test "x$ac_cv_lib_umem_umem_alloc" = xyes
29957 then :
29958 passed=`expr $passed + 1`
29959 else case e in #(
29960 e) failed=`expr $failed + 1` ;;
29961 esac
29962 fi
29963
29964
29965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
29966 printf %s "checking for umem_free in -lumem... " >&6; }
29967 if test ${ac_cv_lib_umem_umem_free+y}
29968 then :
29969 printf %s "(cached) " >&6
29970 else case e in #(
29971 e) ac_check_lib_save_LIBS=$LIBS
29972 LIBS="-lumem $LIBS"
29973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29974 /* end confdefs.h. */
29975
29976 /* Override any GCC internal prototype to avoid an error.
29977 Use char because int might match the return type of a GCC
29978 builtin and then its argument prototype would still apply.
29979 The 'extern "C"' is for builds by C++ compilers;
29980 although this is not generally supported in C code supporting it here
29981 has little cost and some practical benefit (sr 110532). */
29982 #ifdef __cplusplus
29983 extern "C"
29984 #endif
29985 char umem_free (void);
29986 int
29987 main (void)
29988 {
29989 return umem_free ();
29990 ;
29991 return 0;
29992 }
29993 _ACEOF
29994 if ac_fn_c_try_link "$LINENO"
29995 then :
29996 ac_cv_lib_umem_umem_free=yes
29997 else case e in #(
29998 e) ac_cv_lib_umem_umem_free=no ;;
29999 esac
30000 fi
30001 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30002 conftest$ac_exeext conftest.$ac_ext
30003 LIBS=$ac_check_lib_save_LIBS ;;
30004 esac
30005 fi
30006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
30007 printf "%s\n" "$ac_cv_lib_umem_umem_free" >&6; }
30008 if test "x$ac_cv_lib_umem_umem_free" = xyes
30009 then :
30010 passed=`expr $passed + 1`
30011 else case e in #(
30012 e) failed=`expr $failed + 1` ;;
30013 esac
30014 fi
30015
30016
30017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
30018 printf %s "checking if umem memory allocation library is complete... " >&6; }
30019 if test $passed -gt 0; then
30020 if test $failed -gt 0; then
30021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30022 printf "%s\n" "no -- some components failed test" >&6; }
30023 have_umem='no (failed tests)'
30024 else
30025 UMEM_LIBS='-lumem'
30026 LIBS="$UMEM_LIBS $LIBS"
30027
30028 printf "%s\n" "#define HAVE_UMEM 1" >>confdefs.h
30029
30030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30031 printf "%s\n" "yes" >&6; }
30032 have_umem='yes'
30033 fi
30034 else
30035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30036 printf "%s\n" "no" >&6; }
30037 fi
30038 fi
30039 if test "$have_umem" = 'yes'; then
30040 HAVE_UMEM_TRUE=
30041 HAVE_UMEM_FALSE='#'
30042 else
30043 HAVE_UMEM_TRUE='#'
30044 HAVE_UMEM_FALSE=
30045 fi
30046
30047
30048
30049 #
30050 # Add support for ccmalloc memory debugging library if requested
30051 #
30052 have_ccmalloc='no'
30053 CCMALLOC_LIBS=''
30054 if test "$enable_ccmalloc" = 'yes'; then
30055 # Extract the first word of "ccmalloc", so it can be a program name with args.
30056 set dummy ccmalloc; ac_word=$2
30057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30058 printf %s "checking for $ac_word... " >&6; }
30059 if test ${ac_cv_path_CCMALLOCDelegate+y}
30060 then :
30061 printf %s "(cached) " >&6
30062 else case e in #(
30063 e) case $CCMALLOCDelegate in
30064 [\\/]* | ?:[\\/]*)
30065 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
30066 ;;
30067 *)
30068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30069 for as_dir in $PATH
30070 do
30071 IFS=$as_save_IFS
30072 case $as_dir in #(((
30073 '') as_dir=./ ;;
30074 */) ;;
30075 *) as_dir=$as_dir/ ;;
30076 esac
30077 for ac_exec_ext in '' $ac_executable_extensions; do
30078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30079 ac_cv_path_CCMALLOCDelegate="$as_dir$ac_word$ac_exec_ext"
30080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30081 break 2
30082 fi
30083 done
30084 done
30085 IFS=$as_save_IFS
30086
30087 ;;
30088 esac ;;
30089 esac
30090 fi
30091 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
30092 if test -n "$CCMALLOCDelegate"; then
30093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
30094 printf "%s\n" "$CCMALLOCDelegate" >&6; }
30095 else
30096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30097 printf "%s\n" "no" >&6; }
30098 fi
30099
30100
30101 if test -n "$CCMALLOCDelegate"; then
30102 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
30103 OLIBS="$LIBS"
30104 # Assume that gcc is used with ccmalloc.
30105 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
30106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
30107 printf %s "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
30108 if test ${ac_cv_lib_ccmalloc_ccmalloc_malloc+y}
30109 then :
30110 printf %s "(cached) " >&6
30111 else case e in #(
30112 e) ac_check_lib_save_LIBS=$LIBS
30113 LIBS="-lccmalloc -ldl $LIBS"
30114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30115 /* end confdefs.h. */
30116
30117 /* Override any GCC internal prototype to avoid an error.
30118 Use char because int might match the return type of a GCC
30119 builtin and then its argument prototype would still apply.
30120 The 'extern "C"' is for builds by C++ compilers;
30121 although this is not generally supported in C code supporting it here
30122 has little cost and some practical benefit (sr 110532). */
30123 #ifdef __cplusplus
30124 extern "C"
30125 #endif
30126 char ccmalloc_malloc (void);
30127 int
30128 main (void)
30129 {
30130 return ccmalloc_malloc ();
30131 ;
30132 return 0;
30133 }
30134 _ACEOF
30135 if ac_fn_c_try_link "$LINENO"
30136 then :
30137 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
30138 else case e in #(
30139 e) ac_cv_lib_ccmalloc_ccmalloc_malloc=no ;;
30140 esac
30141 fi
30142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30143 conftest$ac_exeext conftest.$ac_ext
30144 LIBS=$ac_check_lib_save_LIBS ;;
30145 esac
30146 fi
30147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
30148 printf "%s\n" "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
30149 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes
30150 then :
30151 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
30152 fi
30153
30154 if test -n "$CCMALLOC_LIBS"; then
30155 LIBS="$OLIBS"
30156 LIBS="$LIBS $CCMALLOC_LIBS"
30157 have_ccmalloc='yes'
30158 else
30159 LIBS="$OLIBS"
30160 fi
30161 fi
30162 fi
30163
30164 #
30165 # Add support for 'huge pages' if requested
30166 #
30167 if test "x$enable_hugepages" != "xno"
30168 then :
30169
30170
30171 printf "%s\n" "#define HAVE_HUGEPAGES 1" >>confdefs.h
30172
30173
30174 fi
30175
30176 #
30177 # Add support for efence memory debugging library if requested
30178 #
30179 if test "$enable_efence" = 'yes'; then
30180 EFENCE_LIBS='-lefence'
30181 LIBS="$EFENCE_LIBS $LIBS"
30182 fi
30183
30184
30185 #
30186 # Check for BZLIB
30187 #
30188
30189
30190 # Check whether --with-bzlib was given.
30191 if test ${with_bzlib+y}
30192 then :
30193 withval=$with_bzlib; with_bzlib=$withval
30194 else case e in #(
30195 e) with_bzlib='yes' ;;
30196 esac
30197 fi
30198
30199
30200 if test "$with_bzlib" != 'yes'; then
30201 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
30202 fi
30203
30204 have_bzlib='no'
30205 if test "$with_bzlib" != 'no'; then
30206 BZLIB_LIBS=''
30207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZLIB support " >&5
30208 printf %s "checking for BZLIB support ... " >&6; }
30209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
30210 printf "%s\n" "" >&6; }
30211 failed=0
30212 passed=0
30213 found_libbz=0
30214
30215
30216 pkg_failed=no
30217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzip2 >= 1.0.0" >&5
30218 printf %s "checking for bzip2 >= 1.0.0... " >&6; }
30219
30220 if test -n "$BZLIB_CFLAGS"; then
30221 pkg_cv_BZLIB_CFLAGS="$BZLIB_CFLAGS"
30222 elif test -n "$PKG_CONFIG"; then
30223 if test -n "$PKG_CONFIG" && \
30224 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2 >= 1.0.0\""; } >&5
30225 ($PKG_CONFIG --exists --print-errors "bzip2 >= 1.0.0") 2>&5
30226 ac_status=$?
30227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30228 test $ac_status = 0; }; then
30229 pkg_cv_BZLIB_CFLAGS=`$PKG_CONFIG --cflags "bzip2 >= 1.0.0" 2>/dev/null`
30230 test "x$?" != "x0" && pkg_failed=yes
30231 else
30232 pkg_failed=yes
30233 fi
30234 else
30235 pkg_failed=untried
30236 fi
30237 if test -n "$BZLIB_LIBS"; then
30238 pkg_cv_BZLIB_LIBS="$BZLIB_LIBS"
30239 elif test -n "$PKG_CONFIG"; then
30240 if test -n "$PKG_CONFIG" && \
30241 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2 >= 1.0.0\""; } >&5
30242 ($PKG_CONFIG --exists --print-errors "bzip2 >= 1.0.0") 2>&5
30243 ac_status=$?
30244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30245 test $ac_status = 0; }; then
30246 pkg_cv_BZLIB_LIBS=`$PKG_CONFIG --libs "bzip2 >= 1.0.0" 2>/dev/null`
30247 test "x$?" != "x0" && pkg_failed=yes
30248 else
30249 pkg_failed=yes
30250 fi
30251 else
30252 pkg_failed=untried
30253 fi
30254
30255
30256
30257 if test $pkg_failed = yes; then
30258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30259 printf "%s\n" "no" >&6; }
30260
30261 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30262 _pkg_short_errors_supported=yes
30263 else
30264 _pkg_short_errors_supported=no
30265 fi
30266 if test $_pkg_short_errors_supported = yes; then
30267 BZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bzip2 >= 1.0.0" 2>&1`
30268 else
30269 BZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bzip2 >= 1.0.0" 2>&1`
30270 fi
30271 # Put the nasty error message in config.log where it belongs
30272 echo "$BZLIB_PKG_ERRORS" >&5
30273
30274 have_bzlib=no
30275 elif test $pkg_failed = untried; then
30276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30277 printf "%s\n" "no" >&6; }
30278 have_bzlib=no
30279 else
30280 BZLIB_CFLAGS=$pkg_cv_BZLIB_CFLAGS
30281 BZLIB_LIBS=$pkg_cv_BZLIB_LIBS
30282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30283 printf "%s\n" "yes" >&6; }
30284 have_bzlib=yes
30285 fi
30286 CFLAGS="$CFLAGS $BZLIB_CFLAGS"
30287 LIBS="$LIBS $BZLIB_LIBS"
30288
30289 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
30290 if test "x$ac_cv_header_bzlib_h" = xyes
30291 then :
30292 passed=`expr $passed + 1`
30293 else case e in #(
30294 e) failed=`expr $failed + 1` ;;
30295 esac
30296 fi
30297
30298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
30299 printf %s "checking for BZ2_bzDecompress in -lbz2... " >&6; }
30300 if test ${ac_cv_lib_bz2_BZ2_bzDecompress+y}
30301 then :
30302 printf %s "(cached) " >&6
30303 else case e in #(
30304 e) ac_check_lib_save_LIBS=$LIBS
30305 LIBS="-lbz2 $LIBS"
30306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30307 /* end confdefs.h. */
30308
30309 /* Override any GCC internal prototype to avoid an error.
30310 Use char because int might match the return type of a GCC
30311 builtin and then its argument prototype would still apply.
30312 The 'extern "C"' is for builds by C++ compilers;
30313 although this is not generally supported in C code supporting it here
30314 has little cost and some practical benefit (sr 110532). */
30315 #ifdef __cplusplus
30316 extern "C"
30317 #endif
30318 char BZ2_bzDecompress (void);
30319 int
30320 main (void)
30321 {
30322 return BZ2_bzDecompress ();
30323 ;
30324 return 0;
30325 }
30326 _ACEOF
30327 if ac_fn_c_try_link "$LINENO"
30328 then :
30329 ac_cv_lib_bz2_BZ2_bzDecompress=yes
30330 else case e in #(
30331 e) ac_cv_lib_bz2_BZ2_bzDecompress=no ;;
30332 esac
30333 fi
30334 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30335 conftest$ac_exeext conftest.$ac_ext
30336 LIBS=$ac_check_lib_save_LIBS ;;
30337 esac
30338 fi
30339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
30340 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
30341 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes
30342 then :
30343 found_libbz=`expr $found_libbz + 1`
30344 fi
30345
30346 if test "$native_win32_build" = 'yes'; then
30347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
30348 printf %s "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
30349 if test ${ac_cv_lib_bz2__imp__BZ2_decompress+y}
30350 then :
30351 printf %s "(cached) " >&6
30352 else case e in #(
30353 e) ac_check_lib_save_LIBS=$LIBS
30354 LIBS="-lbz2 $LIBS"
30355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30356 /* end confdefs.h. */
30357
30358 /* Override any GCC internal prototype to avoid an error.
30359 Use char because int might match the return type of a GCC
30360 builtin and then its argument prototype would still apply.
30361 The 'extern "C"' is for builds by C++ compilers;
30362 although this is not generally supported in C code supporting it here
30363 has little cost and some practical benefit (sr 110532). */
30364 #ifdef __cplusplus
30365 extern "C"
30366 #endif
30367 char _imp__BZ2_decompress (void);
30368 int
30369 main (void)
30370 {
30371 return _imp__BZ2_decompress ();
30372 ;
30373 return 0;
30374 }
30375 _ACEOF
30376 if ac_fn_c_try_link "$LINENO"
30377 then :
30378 ac_cv_lib_bz2__imp__BZ2_decompress=yes
30379 else case e in #(
30380 e) ac_cv_lib_bz2__imp__BZ2_decompress=no ;;
30381 esac
30382 fi
30383 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30384 conftest$ac_exeext conftest.$ac_ext
30385 LIBS=$ac_check_lib_save_LIBS ;;
30386 esac
30387 fi
30388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
30389 printf "%s\n" "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
30390 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes
30391 then :
30392 found_libbz=`expr $found_libbz + 1`
30393 fi
30394
30395 fi
30396 if test $found_libbz -gt 0; then
30397 passed=`expr $passed + 1`
30398 else
30399 failed=`expr $failed + 1`
30400 fi
30401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
30402 printf %s "checking if BZLIB package is complete... " >&6; }
30403 if test $passed -gt 0; then
30404 if test $failed -gt 0; then
30405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30406 printf "%s\n" "no -- some components failed test" >&6; }
30407 have_bzlib='no (failed tests)'
30408 else
30409 BZLIB_LIBS='-lbz2'
30410 LIBS="$BZLIB_LIBS $LIBS"
30411
30412 printf "%s\n" "#define BZLIB_DELEGATE 1" >>confdefs.h
30413
30414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30415 printf "%s\n" "yes" >&6; }
30416 have_bzlib='yes'
30417 fi
30418 else
30419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30420 printf "%s\n" "no" >&6; }
30421 fi
30422 fi
30423 if test "$have_bzlib" = 'yes'; then
30424 BZLIB_DELEGATE_TRUE=
30425 BZLIB_DELEGATE_FALSE='#'
30426 else
30427 BZLIB_DELEGATE_TRUE='#'
30428 BZLIB_DELEGATE_FALSE=
30429 fi
30430
30431
30432
30433
30434 #
30435 # Find the X11 include and library directories.
30436 #
30437 IPC_LIBS=''
30438 X11_LIBS=''
30439 XEXT_LIBS=''
30440 XT_LIBS=''
30441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
30442 printf %s "checking for X... " >&6; }
30443
30444
30445 # Check whether --with-x was given.
30446 if test ${with_x+y}
30447 then :
30448 withval=$with_x;
30449 fi
30450
30451 # $have_x is 'yes', 'no', 'disabled', or empty when we do not yet know.
30452 if test "x$with_x" = xno; then
30453 # The user explicitly disabled X.
30454 have_x=disabled
30455 else
30456 case $x_includes,$x_libraries in #(
30457 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
30458 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
30459 then :
30460 printf %s "(cached) " >&6
30461 else case e in #(
30462 e) # One or both of the vars are not set, and there is no cached value.
30463 ac_x_includes=no
30464 ac_x_libraries=no
30465 # Do we need to do anything special at all?
30466 ac_save_LIBS=$LIBS
30467 LIBS="-lX11 $LIBS"
30468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30469 /* end confdefs.h. */
30470 #include <X11/Xlib.h>
30471 int
30472 main (void)
30473 {
30474 XrmInitialize ()
30475 ;
30476 return 0;
30477 }
30478 _ACEOF
30479 if ac_fn_c_try_link "$LINENO"
30480 then :
30481 # We can compile and link X programs with no special options.
30482 ac_x_includes=
30483 ac_x_libraries=
30484 fi
30485 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30486 conftest$ac_exeext conftest.$ac_ext
30487 LIBS="$ac_save_LIBS"
30488 # If that didn't work, only try xmkmf and file system searches
30489 # for native compilation.
30490 if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
30491 then :
30492 rm -f -r conftest.dir
30493 if mkdir conftest.dir; then
30494 cd conftest.dir
30495 cat >Imakefile <<'_ACEOF'
30496 incroot:
30497 @echo incroot='${INCROOT}'
30498 usrlibdir:
30499 @echo usrlibdir='${USRLIBDIR}'
30500 libdir:
30501 @echo libdir='${LIBDIR}'
30502 _ACEOF
30503 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30504 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
30505 for ac_var in incroot usrlibdir libdir; do
30506 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30507 done
30508 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30509 for ac_extension in a so sl dylib la dll; do
30510 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30511 test -f "$ac_im_libdir/libX11.$ac_extension"; then
30512 ac_im_usrlibdir=$ac_im_libdir; break
30513 fi
30514 done
30515 # Screen out bogus values from the imake configuration. They are
30516 # bogus both because they are the default anyway, and because
30517 # using them would break gcc on systems where it needs fixed includes.
30518 case $ac_im_incroot in
30519 /usr/include) ac_x_includes= ;;
30520 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30521 esac
30522 case $ac_im_usrlibdir in
30523 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
30524 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30525 esac
30526 fi
30527 cd ..
30528 rm -f -r conftest.dir
30529 fi
30530
30531 # Standard set of common directories for X headers.
30532 # Check X11 before X11Rn because it is often a symlink to the current release.
30533 ac_x_header_dirs='
30534 /usr/X11/include
30535 /usr/X11R7/include
30536 /usr/X11R6/include
30537 /usr/X11R5/include
30538 /usr/X11R4/include
30539
30540 /usr/include/X11
30541 /usr/include/X11R7
30542 /usr/include/X11R6
30543 /usr/include/X11R5
30544 /usr/include/X11R4
30545
30546 /usr/local/X11/include
30547 /usr/local/X11R7/include
30548 /usr/local/X11R6/include
30549 /usr/local/X11R5/include
30550 /usr/local/X11R4/include
30551
30552 /usr/local/include/X11
30553 /usr/local/include/X11R7
30554 /usr/local/include/X11R6
30555 /usr/local/include/X11R5
30556 /usr/local/include/X11R4
30557
30558 /opt/X11/include
30559
30560 /usr/X386/include
30561 /usr/x386/include
30562 /usr/XFree86/include/X11
30563
30564 /usr/include
30565 /usr/local/include
30566 /usr/unsupported/include
30567 /usr/athena/include
30568 /usr/local/x11r5/include
30569 /usr/lpp/Xamples/include
30570
30571 /usr/openwin/include
30572 /usr/openwin/share/include'
30573
30574 if test "$ac_x_includes" = no; then
30575 # Guess where to find include files, by looking for Xlib.h.
30576 # First, try using that file with no special directory specified.
30577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30578 /* end confdefs.h. */
30579 #include <X11/Xlib.h>
30580 _ACEOF
30581 if ac_fn_c_try_cpp "$LINENO"
30582 then :
30583 # We can compile using X headers with no special include directory.
30584 ac_x_includes=
30585 else case e in #(
30586 e) for ac_dir in $ac_x_header_dirs; do
30587 if test -r "$ac_dir/X11/Xlib.h"; then
30588 ac_x_includes=$ac_dir
30589 break
30590 fi
30591 done ;;
30592 esac
30593 fi
30594 rm -f conftest.err conftest.i conftest.$ac_ext
30595 fi # $ac_x_includes = no
30596
30597 if test "$ac_x_libraries" = no; then
30598 # Check for the libraries.
30599 # See if we find them without any special options.
30600 # Don't add to $LIBS permanently.
30601 ac_save_LIBS=$LIBS
30602 LIBS="-lX11 $LIBS"
30603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30604 /* end confdefs.h. */
30605 #include <X11/Xlib.h>
30606 int
30607 main (void)
30608 {
30609 XrmInitialize ()
30610 ;
30611 return 0;
30612 }
30613 _ACEOF
30614 if ac_fn_c_try_link "$LINENO"
30615 then :
30616 LIBS=$ac_save_LIBS
30617 # We can link X programs with no special library path.
30618 ac_x_libraries=
30619 else case e in #(
30620 e) LIBS=$ac_save_LIBS
30621 for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30622 do
30623 # Don't even attempt the hair of trying to link an X program!
30624 for ac_extension in a so sl dylib la dll; do
30625 if test -r "$ac_dir/libX11.$ac_extension"; then
30626 ac_x_libraries=$ac_dir
30627 break 2
30628 fi
30629 done
30630 done ;;
30631 esac
30632 fi
30633 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30634 conftest$ac_exeext conftest.$ac_ext
30635 fi # $ac_x_libraries = no
30636
30637 fi
30638 # Record the results.
30639 case $ac_x_includes,$ac_x_libraries in #(
30640 no,* | *,no | *\'*) :
30641 # Didn't find X, or a directory has "'" in its name.
30642 ac_cv_have_x="have_x=no" ;; #(
30643 *) :
30644 # Record where we found X for the cache.
30645 ac_cv_have_x="have_x=yes\
30646 ac_x_includes='$ac_x_includes'\
30647 ac_x_libraries='$ac_x_libraries'" ;;
30648 esac ;;
30649 esac
30650 fi
30651 ;; #(
30652 *) have_x=yes;;
30653 esac
30654 eval "$ac_cv_have_x"
30655 fi # $with_x != no
30656
30657 if test "$have_x" != yes; then
30658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
30659 printf "%s\n" "$have_x" >&6; }
30660 no_x=yes
30661 else
30662 # If each of the values was on the command line, it overrides each guess.
30663 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30664 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30665 # Update the cache value to reflect the command line values.
30666 ac_cv_have_x="have_x=yes\
30667 ac_x_includes='$x_includes'\
30668 ac_x_libraries='$x_libraries'"
30669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
30670 printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
30671 fi
30672
30673 if test "$no_x" = yes; then
30674 # Not all programs may use this symbol, but it does not hurt to define it.
30675
30676 printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
30677
30678 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30679 else
30680 if test -n "$x_includes"; then
30681 X_CFLAGS="$X_CFLAGS -I$x_includes"
30682 fi
30683
30684 # It would also be nice to do this for all -L options, not just this one.
30685 if test -n "$x_libraries"; then
30686 X_LIBS="$X_LIBS -L$x_libraries"
30687 # For Solaris; some versions of Sun CC require a space after -R and
30688 # others require no space. Words are not sufficient . . . .
30689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
30690 printf %s "checking whether -R must be followed by a space... " >&6; }
30691 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30692 ac_xsave_c_werror_flag=$ac_c_werror_flag
30693 ac_c_werror_flag=yes
30694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30695 /* end confdefs.h. */
30696
30697 int
30698 main (void)
30699 {
30700
30701 ;
30702 return 0;
30703 }
30704 _ACEOF
30705 if ac_fn_c_try_link "$LINENO"
30706 then :
30707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30708 printf "%s\n" "no" >&6; }
30709 X_LIBS="$X_LIBS -R$x_libraries"
30710 else case e in #(
30711 e) LIBS="$ac_xsave_LIBS -R $x_libraries"
30712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30713 /* end confdefs.h. */
30714
30715 int
30716 main (void)
30717 {
30718
30719 ;
30720 return 0;
30721 }
30722 _ACEOF
30723 if ac_fn_c_try_link "$LINENO"
30724 then :
30725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30726 printf "%s\n" "yes" >&6; }
30727 X_LIBS="$X_LIBS -R $x_libraries"
30728 else case e in #(
30729 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
30730 printf "%s\n" "neither works" >&6; } ;;
30731 esac
30732 fi
30733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30734 conftest$ac_exeext conftest.$ac_ext ;;
30735 esac
30736 fi
30737 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30738 conftest$ac_exeext conftest.$ac_ext
30739 ac_c_werror_flag=$ac_xsave_c_werror_flag
30740 LIBS=$ac_xsave_LIBS
30741 fi
30742
30743 # Check for system-dependent libraries X programs must link with.
30744 # Do this before checking for the system-independent R6 libraries
30745 # (-lICE), since we may need -lsocket or whatever for X linking.
30746
30747 if test "$ISC" = yes; then
30748 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30749 else
30750 # Martyn Johnson says this is needed for Ultrix, if the X
30751 # libraries were built with DECnet support. And Karl Berry says
30752 # the Alpha needs dnet_stub (dnet does not exist).
30753 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30755 /* end confdefs.h. */
30756
30757 /* Override any GCC internal prototype to avoid an error.
30758 Use char because int might match the return type of a GCC
30759 builtin and then its argument prototype would still apply.
30760 The 'extern "C"' is for builds by C++ compilers;
30761 although this is not generally supported in C code supporting it here
30762 has little cost and some practical benefit (sr 110532). */
30763 #ifdef __cplusplus
30764 extern "C"
30765 #endif
30766 char XOpenDisplay (void);
30767 int
30768 main (void)
30769 {
30770 return XOpenDisplay ();
30771 ;
30772 return 0;
30773 }
30774 _ACEOF
30775 if ac_fn_c_try_link "$LINENO"
30776 then :
30777
30778 else case e in #(
30779 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
30780 printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
30781 if test ${ac_cv_lib_dnet_dnet_ntoa+y}
30782 then :
30783 printf %s "(cached) " >&6
30784 else case e in #(
30785 e) ac_check_lib_save_LIBS=$LIBS
30786 LIBS="-ldnet $LIBS"
30787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30788 /* end confdefs.h. */
30789
30790 /* Override any GCC internal prototype to avoid an error.
30791 Use char because int might match the return type of a GCC
30792 builtin and then its argument prototype would still apply.
30793 The 'extern "C"' is for builds by C++ compilers;
30794 although this is not generally supported in C code supporting it here
30795 has little cost and some practical benefit (sr 110532). */
30796 #ifdef __cplusplus
30797 extern "C"
30798 #endif
30799 char dnet_ntoa (void);
30800 int
30801 main (void)
30802 {
30803 return dnet_ntoa ();
30804 ;
30805 return 0;
30806 }
30807 _ACEOF
30808 if ac_fn_c_try_link "$LINENO"
30809 then :
30810 ac_cv_lib_dnet_dnet_ntoa=yes
30811 else case e in #(
30812 e) ac_cv_lib_dnet_dnet_ntoa=no ;;
30813 esac
30814 fi
30815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30816 conftest$ac_exeext conftest.$ac_ext
30817 LIBS=$ac_check_lib_save_LIBS ;;
30818 esac
30819 fi
30820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30821 printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30822 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
30823 then :
30824 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30825 fi
30826
30827 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
30829 printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
30830 if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
30831 then :
30832 printf %s "(cached) " >&6
30833 else case e in #(
30834 e) ac_check_lib_save_LIBS=$LIBS
30835 LIBS="-ldnet_stub $LIBS"
30836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30837 /* end confdefs.h. */
30838
30839 /* Override any GCC internal prototype to avoid an error.
30840 Use char because int might match the return type of a GCC
30841 builtin and then its argument prototype would still apply.
30842 The 'extern "C"' is for builds by C++ compilers;
30843 although this is not generally supported in C code supporting it here
30844 has little cost and some practical benefit (sr 110532). */
30845 #ifdef __cplusplus
30846 extern "C"
30847 #endif
30848 char dnet_ntoa (void);
30849 int
30850 main (void)
30851 {
30852 return dnet_ntoa ();
30853 ;
30854 return 0;
30855 }
30856 _ACEOF
30857 if ac_fn_c_try_link "$LINENO"
30858 then :
30859 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30860 else case e in #(
30861 e) ac_cv_lib_dnet_stub_dnet_ntoa=no ;;
30862 esac
30863 fi
30864 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30865 conftest$ac_exeext conftest.$ac_ext
30866 LIBS=$ac_check_lib_save_LIBS ;;
30867 esac
30868 fi
30869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30870 printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30871 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
30872 then :
30873 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30874 fi
30875
30876 fi ;;
30877 esac
30878 fi
30879 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30880 conftest$ac_exeext conftest.$ac_ext
30881 LIBS="$ac_xsave_LIBS"
30882
30883 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
30884 # to get the SysV transport functions.
30885 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30886 # needs -lnsl.
30887 # The nsl library prevents programs from opening the X display
30888 # on Irix 5.2, according to T.E. Dickey.
30889 # The functions gethostbyname, getservbyname, and inet_addr are
30890 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30891 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
30892 if test "x$ac_cv_func_gethostbyname" = xyes
30893 then :
30894
30895 fi
30896
30897 if test $ac_cv_func_gethostbyname = no; then
30898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
30899 printf %s "checking for gethostbyname in -lnsl... " >&6; }
30900 if test ${ac_cv_lib_nsl_gethostbyname+y}
30901 then :
30902 printf %s "(cached) " >&6
30903 else case e in #(
30904 e) ac_check_lib_save_LIBS=$LIBS
30905 LIBS="-lnsl $LIBS"
30906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30907 /* end confdefs.h. */
30908
30909 /* Override any GCC internal prototype to avoid an error.
30910 Use char because int might match the return type of a GCC
30911 builtin and then its argument prototype would still apply.
30912 The 'extern "C"' is for builds by C++ compilers;
30913 although this is not generally supported in C code supporting it here
30914 has little cost and some practical benefit (sr 110532). */
30915 #ifdef __cplusplus
30916 extern "C"
30917 #endif
30918 char gethostbyname (void);
30919 int
30920 main (void)
30921 {
30922 return gethostbyname ();
30923 ;
30924 return 0;
30925 }
30926 _ACEOF
30927 if ac_fn_c_try_link "$LINENO"
30928 then :
30929 ac_cv_lib_nsl_gethostbyname=yes
30930 else case e in #(
30931 e) ac_cv_lib_nsl_gethostbyname=no ;;
30932 esac
30933 fi
30934 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30935 conftest$ac_exeext conftest.$ac_ext
30936 LIBS=$ac_check_lib_save_LIBS ;;
30937 esac
30938 fi
30939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
30940 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
30941 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
30942 then :
30943 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30944 fi
30945
30946 if test $ac_cv_lib_nsl_gethostbyname = no; then
30947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
30948 printf %s "checking for gethostbyname in -lbsd... " >&6; }
30949 if test ${ac_cv_lib_bsd_gethostbyname+y}
30950 then :
30951 printf %s "(cached) " >&6
30952 else case e in #(
30953 e) ac_check_lib_save_LIBS=$LIBS
30954 LIBS="-lbsd $LIBS"
30955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30956 /* end confdefs.h. */
30957
30958 /* Override any GCC internal prototype to avoid an error.
30959 Use char because int might match the return type of a GCC
30960 builtin and then its argument prototype would still apply.
30961 The 'extern "C"' is for builds by C++ compilers;
30962 although this is not generally supported in C code supporting it here
30963 has little cost and some practical benefit (sr 110532). */
30964 #ifdef __cplusplus
30965 extern "C"
30966 #endif
30967 char gethostbyname (void);
30968 int
30969 main (void)
30970 {
30971 return gethostbyname ();
30972 ;
30973 return 0;
30974 }
30975 _ACEOF
30976 if ac_fn_c_try_link "$LINENO"
30977 then :
30978 ac_cv_lib_bsd_gethostbyname=yes
30979 else case e in #(
30980 e) ac_cv_lib_bsd_gethostbyname=no ;;
30981 esac
30982 fi
30983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30984 conftest$ac_exeext conftest.$ac_ext
30985 LIBS=$ac_check_lib_save_LIBS ;;
30986 esac
30987 fi
30988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
30989 printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
30990 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
30991 then :
30992 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30993 fi
30994
30995 fi
30996 fi
30997
30998 # [email protected] says without -lsocket,
30999 # socket/setsockopt and other routines are undefined under SCO ODT
31000 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
31001 # on later versions), says Simon Leinen: it contains gethostby*
31002 # variants that don't use the name server (or something). -lsocket
31003 # must be given before -lnsl if both are needed. We assume that
31004 # if connect needs -lnsl, so does gethostbyname.
31005 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
31006 if test "x$ac_cv_func_connect" = xyes
31007 then :
31008
31009 fi
31010
31011 if test $ac_cv_func_connect = no; then
31012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
31013 printf %s "checking for connect in -lsocket... " >&6; }
31014 if test ${ac_cv_lib_socket_connect+y}
31015 then :
31016 printf %s "(cached) " >&6
31017 else case e in #(
31018 e) ac_check_lib_save_LIBS=$LIBS
31019 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
31020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31021 /* end confdefs.h. */
31022
31023 /* Override any GCC internal prototype to avoid an error.
31024 Use char because int might match the return type of a GCC
31025 builtin and then its argument prototype would still apply.
31026 The 'extern "C"' is for builds by C++ compilers;
31027 although this is not generally supported in C code supporting it here
31028 has little cost and some practical benefit (sr 110532). */
31029 #ifdef __cplusplus
31030 extern "C"
31031 #endif
31032 char connect (void);
31033 int
31034 main (void)
31035 {
31036 return connect ();
31037 ;
31038 return 0;
31039 }
31040 _ACEOF
31041 if ac_fn_c_try_link "$LINENO"
31042 then :
31043 ac_cv_lib_socket_connect=yes
31044 else case e in #(
31045 e) ac_cv_lib_socket_connect=no ;;
31046 esac
31047 fi
31048 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31049 conftest$ac_exeext conftest.$ac_ext
31050 LIBS=$ac_check_lib_save_LIBS ;;
31051 esac
31052 fi
31053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
31054 printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
31055 if test "x$ac_cv_lib_socket_connect" = xyes
31056 then :
31057 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
31058 fi
31059
31060 fi
31061
31062 # Guillermo Gomez says -lposix is necessary on A/UX.
31063 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
31064 if test "x$ac_cv_func_remove" = xyes
31065 then :
31066
31067 fi
31068
31069 if test $ac_cv_func_remove = no; then
31070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
31071 printf %s "checking for remove in -lposix... " >&6; }
31072 if test ${ac_cv_lib_posix_remove+y}
31073 then :
31074 printf %s "(cached) " >&6
31075 else case e in #(
31076 e) ac_check_lib_save_LIBS=$LIBS
31077 LIBS="-lposix $LIBS"
31078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31079 /* end confdefs.h. */
31080
31081 /* Override any GCC internal prototype to avoid an error.
31082 Use char because int might match the return type of a GCC
31083 builtin and then its argument prototype would still apply.
31084 The 'extern "C"' is for builds by C++ compilers;
31085 although this is not generally supported in C code supporting it here
31086 has little cost and some practical benefit (sr 110532). */
31087 #ifdef __cplusplus
31088 extern "C"
31089 #endif
31090 char remove (void);
31091 int
31092 main (void)
31093 {
31094 return remove ();
31095 ;
31096 return 0;
31097 }
31098 _ACEOF
31099 if ac_fn_c_try_link "$LINENO"
31100 then :
31101 ac_cv_lib_posix_remove=yes
31102 else case e in #(
31103 e) ac_cv_lib_posix_remove=no ;;
31104 esac
31105 fi
31106 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31107 conftest$ac_exeext conftest.$ac_ext
31108 LIBS=$ac_check_lib_save_LIBS ;;
31109 esac
31110 fi
31111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
31112 printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
31113 if test "x$ac_cv_lib_posix_remove" = xyes
31114 then :
31115 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31116 fi
31117
31118 fi
31119
31120 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31121 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
31122 if test "x$ac_cv_func_shmat" = xyes
31123 then :
31124
31125 fi
31126
31127 if test $ac_cv_func_shmat = no; then
31128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
31129 printf %s "checking for shmat in -lipc... " >&6; }
31130 if test ${ac_cv_lib_ipc_shmat+y}
31131 then :
31132 printf %s "(cached) " >&6
31133 else case e in #(
31134 e) ac_check_lib_save_LIBS=$LIBS
31135 LIBS="-lipc $LIBS"
31136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31137 /* end confdefs.h. */
31138
31139 /* Override any GCC internal prototype to avoid an error.
31140 Use char because int might match the return type of a GCC
31141 builtin and then its argument prototype would still apply.
31142 The 'extern "C"' is for builds by C++ compilers;
31143 although this is not generally supported in C code supporting it here
31144 has little cost and some practical benefit (sr 110532). */
31145 #ifdef __cplusplus
31146 extern "C"
31147 #endif
31148 char shmat (void);
31149 int
31150 main (void)
31151 {
31152 return shmat ();
31153 ;
31154 return 0;
31155 }
31156 _ACEOF
31157 if ac_fn_c_try_link "$LINENO"
31158 then :
31159 ac_cv_lib_ipc_shmat=yes
31160 else case e in #(
31161 e) ac_cv_lib_ipc_shmat=no ;;
31162 esac
31163 fi
31164 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31165 conftest$ac_exeext conftest.$ac_ext
31166 LIBS=$ac_check_lib_save_LIBS ;;
31167 esac
31168 fi
31169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
31170 printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
31171 if test "x$ac_cv_lib_ipc_shmat" = xyes
31172 then :
31173 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31174 fi
31175
31176 fi
31177 fi
31178
31179 # Check for libraries that X11R6 Xt/Xaw programs need.
31180 ac_save_LDFLAGS=$LDFLAGS
31181 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31182 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31183 # check for ICE first), but we must link in the order -lSM -lICE or
31184 # we get undefined symbols. So assume we have SM if we have ICE.
31185 # These have to be linked with before -lX11, unlike the other
31186 # libraries we check for below, so use a different variable.
31187 # John Interrante, Karl Berry
31188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
31189 printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
31190 if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
31191 then :
31192 printf %s "(cached) " >&6
31193 else case e in #(
31194 e) ac_check_lib_save_LIBS=$LIBS
31195 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31197 /* end confdefs.h. */
31198
31199 /* Override any GCC internal prototype to avoid an error.
31200 Use char because int might match the return type of a GCC
31201 builtin and then its argument prototype would still apply.
31202 The 'extern "C"' is for builds by C++ compilers;
31203 although this is not generally supported in C code supporting it here
31204 has little cost and some practical benefit (sr 110532). */
31205 #ifdef __cplusplus
31206 extern "C"
31207 #endif
31208 char IceConnectionNumber (void);
31209 int
31210 main (void)
31211 {
31212 return IceConnectionNumber ();
31213 ;
31214 return 0;
31215 }
31216 _ACEOF
31217 if ac_fn_c_try_link "$LINENO"
31218 then :
31219 ac_cv_lib_ICE_IceConnectionNumber=yes
31220 else case e in #(
31221 e) ac_cv_lib_ICE_IceConnectionNumber=no ;;
31222 esac
31223 fi
31224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31225 conftest$ac_exeext conftest.$ac_ext
31226 LIBS=$ac_check_lib_save_LIBS ;;
31227 esac
31228 fi
31229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31230 printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31231 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
31232 then :
31233 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31234 fi
31235
31236 LDFLAGS=$ac_save_LDFLAGS
31237
31238 fi
31239
31240 if test "$no_x" != 'yes'; then
31241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31242 printf "%s\n" "-------------------------------------------------------------" >&6; }
31243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
31244 printf %s "checking for X11... " >&6; }
31245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
31246 printf "%s\n" "" >&6; }
31247 LDFLAGS="$LDFLAGS $X_LIBS"
31248 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
31249 LIBS="$X11_LIBS $LIBS"
31250 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
31251
31252
31253 printf "%s\n" "#define X11_DELEGATE 1" >>confdefs.h
31254
31255 #
31256 # Check for X11 shared memory extension
31257 #
31258 # shmctl is required to support the shared memory extension
31259 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
31260 if test "x$ac_cv_func_shmctl" = xyes
31261 then :
31262 have_shmctl='yes'
31263 fi
31264
31265 if test "$have_shmctl" != 'yes'; then
31266 PERSIST_LIBS=$LIBS
31267 LIBS="$LIBS -lcygipc"
31268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31269 /* end confdefs.h. */
31270
31271 /* Override any GCC internal prototype to avoid an error.
31272 Use char because int might match the return type of a GCC
31273 builtin and then its argument prototype would still apply.
31274 The 'extern "C"' is for builds by C++ compilers;
31275 although this is not generally supported in C code supporting it here
31276 has little cost and some practical benefit (sr 110532). */
31277 #ifdef __cplusplus
31278 extern "C"
31279 #endif
31280 char shmctl (void);
31281 int
31282 main (void)
31283 {
31284 return shmctl ();
31285 ;
31286 return 0;
31287 }
31288 _ACEOF
31289 if ac_fn_c_try_link "$LINENO"
31290 then :
31291 have_shmctl='yes'; IPC_LIBS='-lcygipc'
31292 fi
31293 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31294 conftest$ac_exeext conftest.$ac_ext
31295 LIBS=$PERSIST_LIBS
31296 fi
31297
31298 if test "$have_shmctl" = 'yes'; then
31299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
31300 printf %s "checking for XShmAttach in -lXext... " >&6; }
31301 if test ${ac_cv_lib_Xext_XShmAttach+y}
31302 then :
31303 printf %s "(cached) " >&6
31304 else case e in #(
31305 e) ac_check_lib_save_LIBS=$LIBS
31306 LIBS="-lXext $LIBS"
31307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31308 /* end confdefs.h. */
31309
31310 /* Override any GCC internal prototype to avoid an error.
31311 Use char because int might match the return type of a GCC
31312 builtin and then its argument prototype would still apply.
31313 The 'extern "C"' is for builds by C++ compilers;
31314 although this is not generally supported in C code supporting it here
31315 has little cost and some practical benefit (sr 110532). */
31316 #ifdef __cplusplus
31317 extern "C"
31318 #endif
31319 char XShmAttach (void);
31320 int
31321 main (void)
31322 {
31323 return XShmAttach ();
31324 ;
31325 return 0;
31326 }
31327 _ACEOF
31328 if ac_fn_c_try_link "$LINENO"
31329 then :
31330 ac_cv_lib_Xext_XShmAttach=yes
31331 else case e in #(
31332 e) ac_cv_lib_Xext_XShmAttach=no ;;
31333 esac
31334 fi
31335 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31336 conftest$ac_exeext conftest.$ac_ext
31337 LIBS=$ac_check_lib_save_LIBS ;;
31338 esac
31339 fi
31340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
31341 printf "%s\n" "$ac_cv_lib_Xext_XShmAttach" >&6; }
31342 if test "x$ac_cv_lib_Xext_XShmAttach" = xyes
31343 then :
31344 XEXT_LIBS='-lXext' ;
31345 printf "%s\n" "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
31346
31347 fi
31348
31349 fi
31350
31351 #
31352 # Check for X11 shape extension
31353 #
31354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
31355 printf %s "checking for XShapeCombineMask in -lXext... " >&6; }
31356 if test ${ac_cv_lib_Xext_XShapeCombineMask+y}
31357 then :
31358 printf %s "(cached) " >&6
31359 else case e in #(
31360 e) ac_check_lib_save_LIBS=$LIBS
31361 LIBS="-lXext $LIBS"
31362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31363 /* end confdefs.h. */
31364
31365 /* Override any GCC internal prototype to avoid an error.
31366 Use char because int might match the return type of a GCC
31367 builtin and then its argument prototype would still apply.
31368 The 'extern "C"' is for builds by C++ compilers;
31369 although this is not generally supported in C code supporting it here
31370 has little cost and some practical benefit (sr 110532). */
31371 #ifdef __cplusplus
31372 extern "C"
31373 #endif
31374 char XShapeCombineMask (void);
31375 int
31376 main (void)
31377 {
31378 return XShapeCombineMask ();
31379 ;
31380 return 0;
31381 }
31382 _ACEOF
31383 if ac_fn_c_try_link "$LINENO"
31384 then :
31385 ac_cv_lib_Xext_XShapeCombineMask=yes
31386 else case e in #(
31387 e) ac_cv_lib_Xext_XShapeCombineMask=no ;;
31388 esac
31389 fi
31390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31391 conftest$ac_exeext conftest.$ac_ext
31392 LIBS=$ac_check_lib_save_LIBS ;;
31393 esac
31394 fi
31395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
31396 printf "%s\n" "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
31397 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes
31398 then :
31399 XEXT_LIBS='-lXext' ;
31400 printf "%s\n" "#define HAVE_SHAPE 1" >>confdefs.h
31401
31402 fi
31403
31404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
31405 printf %s "checking for XtSetEventDispatcher in -lXt... " >&6; }
31406 if test ${ac_cv_lib_Xt_XtSetEventDispatcher+y}
31407 then :
31408 printf %s "(cached) " >&6
31409 else case e in #(
31410 e) ac_check_lib_save_LIBS=$LIBS
31411 LIBS="-lXt $LIBS"
31412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31413 /* end confdefs.h. */
31414
31415 /* Override any GCC internal prototype to avoid an error.
31416 Use char because int might match the return type of a GCC
31417 builtin and then its argument prototype would still apply.
31418 The 'extern "C"' is for builds by C++ compilers;
31419 although this is not generally supported in C code supporting it here
31420 has little cost and some practical benefit (sr 110532). */
31421 #ifdef __cplusplus
31422 extern "C"
31423 #endif
31424 char XtSetEventDispatcher (void);
31425 int
31426 main (void)
31427 {
31428 return XtSetEventDispatcher ();
31429 ;
31430 return 0;
31431 }
31432 _ACEOF
31433 if ac_fn_c_try_link "$LINENO"
31434 then :
31435 ac_cv_lib_Xt_XtSetEventDispatcher=yes
31436 else case e in #(
31437 e) ac_cv_lib_Xt_XtSetEventDispatcher=no ;;
31438 esac
31439 fi
31440 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31441 conftest$ac_exeext conftest.$ac_ext
31442 LIBS=$ac_check_lib_save_LIBS ;;
31443 esac
31444 fi
31445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
31446 printf "%s\n" "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
31447 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes
31448 then :
31449 XT_LIBS='-lXt'
31450 fi
31451
31452 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
31453 fi
31454 if test "$no_x" != 'yes'; then
31455 have_x='yes'
31456 else
31457 have_x='no'
31458 fi
31459 if test "$have_x" = 'yes'; then
31460 X11_DELEGATE_TRUE=
31461 X11_DELEGATE_FALSE='#'
31462 else
31463 X11_DELEGATE_TRUE='#'
31464 X11_DELEGATE_FALSE=
31465 fi
31466
31467
31468
31469
31470
31471 #
31472 # Check for ZIP
31473 #
31474
31475 # Check whether --with-zip was given.
31476 if test ${with_zip+y}
31477 then :
31478 withval=$with_zip; with_zip=$withval
31479 else case e in #(
31480 e) with_zip='yes' ;;
31481 esac
31482 fi
31483
31484
31485 if test "$with_zip" != 'yes'; then
31486 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zip=$with_zip "
31487 fi
31488
31489 have_zip='no'
31490 ZIP_CFLAGS=""
31491 ZIP_LIBS=""
31492 ZIP_PKG=""
31493 if test "x$with_zip" = "xyes"; then
31494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31495 printf "%s\n" "-------------------------------------------------------------" >&6; }
31496
31497 pkg_failed=no
31498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzip >= 1.0.0" >&5
31499 printf %s "checking for libzip >= 1.0.0... " >&6; }
31500
31501 if test -n "$ZIP_CFLAGS"; then
31502 pkg_cv_ZIP_CFLAGS="$ZIP_CFLAGS"
31503 elif test -n "$PKG_CONFIG"; then
31504 if test -n "$PKG_CONFIG" && \
31505 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip >= 1.0.0\""; } >&5
31506 ($PKG_CONFIG --exists --print-errors "libzip >= 1.0.0") 2>&5
31507 ac_status=$?
31508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31509 test $ac_status = 0; }; then
31510 pkg_cv_ZIP_CFLAGS=`$PKG_CONFIG --cflags "libzip >= 1.0.0" 2>/dev/null`
31511 test "x$?" != "x0" && pkg_failed=yes
31512 else
31513 pkg_failed=yes
31514 fi
31515 else
31516 pkg_failed=untried
31517 fi
31518 if test -n "$ZIP_LIBS"; then
31519 pkg_cv_ZIP_LIBS="$ZIP_LIBS"
31520 elif test -n "$PKG_CONFIG"; then
31521 if test -n "$PKG_CONFIG" && \
31522 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip >= 1.0.0\""; } >&5
31523 ($PKG_CONFIG --exists --print-errors "libzip >= 1.0.0") 2>&5
31524 ac_status=$?
31525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31526 test $ac_status = 0; }; then
31527 pkg_cv_ZIP_LIBS=`$PKG_CONFIG --libs "libzip >= 1.0.0" 2>/dev/null`
31528 test "x$?" != "x0" && pkg_failed=yes
31529 else
31530 pkg_failed=yes
31531 fi
31532 else
31533 pkg_failed=untried
31534 fi
31535
31536
31537
31538 if test $pkg_failed = yes; then
31539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31540 printf "%s\n" "no" >&6; }
31541
31542 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31543 _pkg_short_errors_supported=yes
31544 else
31545 _pkg_short_errors_supported=no
31546 fi
31547 if test $_pkg_short_errors_supported = yes; then
31548 ZIP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzip >= 1.0.0" 2>&1`
31549 else
31550 ZIP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzip >= 1.0.0" 2>&1`
31551 fi
31552 # Put the nasty error message in config.log where it belongs
31553 echo "$ZIP_PKG_ERRORS" >&5
31554
31555 have_zip=no
31556 elif test $pkg_failed = untried; then
31557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31558 printf "%s\n" "no" >&6; }
31559 have_zip=no
31560 else
31561 ZIP_CFLAGS=$pkg_cv_ZIP_CFLAGS
31562 ZIP_LIBS=$pkg_cv_ZIP_LIBS
31563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31564 printf "%s\n" "yes" >&6; }
31565 have_zip=yes
31566 fi
31567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
31568 printf "%s\n" "" >&6; }
31569 fi
31570
31571 if test "$have_zip" = 'yes'; then
31572
31573 printf "%s\n" "#define ZIP_DELEGATE 1" >>confdefs.h
31574
31575 CFLAGS="$ZIP_CFLAGS $CFLAGS"
31576 LIBS="$ZIP_LIBS $LIBS"
31577 fi
31578
31579 if test "$have_zip" = 'yes'; then
31580 ZIP_DELEGATE_TRUE=
31581 ZIP_DELEGATE_FALSE='#'
31582 else
31583 ZIP_DELEGATE_TRUE='#'
31584 ZIP_DELEGATE_FALSE=
31585 fi
31586
31587
31588
31589
31590
31591 #
31592 # Check for ZLIB
31593 #
31594
31595 # Check whether --with-zlib was given.
31596 if test ${with_zlib+y}
31597 then :
31598 withval=$with_zlib; with_zlib=$withval
31599 else case e in #(
31600 e) with_zlib='yes' ;;
31601 esac
31602 fi
31603
31604
31605 if test "$with_zlib" != 'yes'; then
31606 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
31607 fi
31608
31609 have_zlib='no'
31610 ZLIB_CFLAGS=""
31611 ZLIB_LIBS=""
31612 ZLIB_PKG=""
31613 if test "x$with_zlib" = "xyes"; then
31614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31615 printf "%s\n" "-------------------------------------------------------------" >&6; }
31616
31617 pkg_failed=no
31618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.0.0" >&5
31619 printf %s "checking for zlib >= 1.0.0... " >&6; }
31620
31621 if test -n "$ZLIB_CFLAGS"; then
31622 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
31623 elif test -n "$PKG_CONFIG"; then
31624 if test -n "$PKG_CONFIG" && \
31625 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
31626 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
31627 ac_status=$?
31628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31629 test $ac_status = 0; }; then
31630 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
31631 test "x$?" != "x0" && pkg_failed=yes
31632 else
31633 pkg_failed=yes
31634 fi
31635 else
31636 pkg_failed=untried
31637 fi
31638 if test -n "$ZLIB_LIBS"; then
31639 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
31640 elif test -n "$PKG_CONFIG"; then
31641 if test -n "$PKG_CONFIG" && \
31642 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
31643 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
31644 ac_status=$?
31645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31646 test $ac_status = 0; }; then
31647 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
31648 test "x$?" != "x0" && pkg_failed=yes
31649 else
31650 pkg_failed=yes
31651 fi
31652 else
31653 pkg_failed=untried
31654 fi
31655
31656
31657
31658 if test $pkg_failed = yes; then
31659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31660 printf "%s\n" "no" >&6; }
31661
31662 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31663 _pkg_short_errors_supported=yes
31664 else
31665 _pkg_short_errors_supported=no
31666 fi
31667 if test $_pkg_short_errors_supported = yes; then
31668 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
31669 else
31670 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
31671 fi
31672 # Put the nasty error message in config.log where it belongs
31673 echo "$ZLIB_PKG_ERRORS" >&5
31674
31675 have_zlib=no
31676 elif test $pkg_failed = untried; then
31677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31678 printf "%s\n" "no" >&6; }
31679 have_zlib=no
31680 else
31681 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
31682 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
31683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31684 printf "%s\n" "yes" >&6; }
31685 have_zlib=yes
31686 fi
31687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
31688 printf "%s\n" "" >&6; }
31689 fi
31690
31691 if test "$have_zlib" = 'yes'; then
31692
31693 printf "%s\n" "#define ZLIB_DELEGATE 1" >>confdefs.h
31694
31695 CFLAGS="$ZLIB_CFLAGS $CFLAGS"
31696 LIBS="$ZLIB_LIBS $LIBS"
31697 fi
31698
31699 if test "$have_zlib" = 'yes'; then
31700 ZLIB_DELEGATE_TRUE=
31701 ZLIB_DELEGATE_FALSE='#'
31702 else
31703 ZLIB_DELEGATE_TRUE='#'
31704 ZLIB_DELEGATE_FALSE=
31705 fi
31706
31707
31708
31709
31710
31711 #
31712 # Check for ZSTD
31713 #
31714
31715 # Check whether --with-zstd was given.
31716 if test ${with_zstd+y}
31717 then :
31718 withval=$with_zstd; with_zstd=$withval
31719 else case e in #(
31720 e) with_zstd='yes' ;;
31721 esac
31722 fi
31723
31724
31725 if test "$with_zstd" != 'yes'; then
31726 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zstd=$with_zstd "
31727 fi
31728
31729 have_zstd='no'
31730 ZSTD_CFLAGS=""
31731 ZSTD_LIBS=""
31732 ZSTD_PKG=""
31733 if test "x$with_zstd" = "xyes"; then
31734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31735 printf "%s\n" "-------------------------------------------------------------" >&6; }
31736
31737 pkg_failed=no
31738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.0.0" >&5
31739 printf %s "checking for libzstd >= 1.0.0... " >&6; }
31740
31741 if test -n "$LIBZSTD_CFLAGS"; then
31742 pkg_cv_LIBZSTD_CFLAGS="$LIBZSTD_CFLAGS"
31743 elif test -n "$PKG_CONFIG"; then
31744 if test -n "$PKG_CONFIG" && \
31745 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.0.0\""; } >&5
31746 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.0.0") 2>&5
31747 ac_status=$?
31748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31749 test $ac_status = 0; }; then
31750 pkg_cv_LIBZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.0.0" 2>/dev/null`
31751 test "x$?" != "x0" && pkg_failed=yes
31752 else
31753 pkg_failed=yes
31754 fi
31755 else
31756 pkg_failed=untried
31757 fi
31758 if test -n "$LIBZSTD_LIBS"; then
31759 pkg_cv_LIBZSTD_LIBS="$LIBZSTD_LIBS"
31760 elif test -n "$PKG_CONFIG"; then
31761 if test -n "$PKG_CONFIG" && \
31762 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.0.0\""; } >&5
31763 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.0.0") 2>&5
31764 ac_status=$?
31765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31766 test $ac_status = 0; }; then
31767 pkg_cv_LIBZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.0.0" 2>/dev/null`
31768 test "x$?" != "x0" && pkg_failed=yes
31769 else
31770 pkg_failed=yes
31771 fi
31772 else
31773 pkg_failed=untried
31774 fi
31775
31776
31777
31778 if test $pkg_failed = yes; then
31779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31780 printf "%s\n" "no" >&6; }
31781
31782 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31783 _pkg_short_errors_supported=yes
31784 else
31785 _pkg_short_errors_supported=no
31786 fi
31787 if test $_pkg_short_errors_supported = yes; then
31788 LIBZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.0.0" 2>&1`
31789 else
31790 LIBZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.0.0" 2>&1`
31791 fi
31792 # Put the nasty error message in config.log where it belongs
31793 echo "$LIBZSTD_PKG_ERRORS" >&5
31794
31795 have_zstd=no
31796 elif test $pkg_failed = untried; then
31797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31798 printf "%s\n" "no" >&6; }
31799 have_zstd=no
31800 else
31801 LIBZSTD_CFLAGS=$pkg_cv_LIBZSTD_CFLAGS
31802 LIBZSTD_LIBS=$pkg_cv_LIBZSTD_LIBS
31803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31804 printf "%s\n" "yes" >&6; }
31805 have_zstd=yes
31806 fi
31807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
31808 printf "%s\n" "" >&6; }
31809 fi
31810
31811 if test "$have_zstd" = 'yes'; then
31812
31813 printf "%s\n" "#define ZSTD_DELEGATE 1" >>confdefs.h
31814
31815 CFLAGS="$ZSTD_CFLAGS $CFLAGS"
31816 LIBS="$ZSTD_LIBS $LIBS"
31817 fi
31818
31819 if test "$have_zstd" = 'yes'; then
31820 ZSTD_DELEGATE_TRUE=
31821 ZSTD_DELEGATE_FALSE='#'
31822 else
31823 ZSTD_DELEGATE_TRUE='#'
31824 ZSTD_DELEGATE_FALSE=
31825 fi
31826
31827
31828
31829
31830
31831 # whether modules are built or not.
31832 if test "$build_modules" != 'no' || test "X$no_cl" != 'Xyes'; then
31833 with_ltdl='yes'
31834 else
31835 with_ltdl='no'
31836 fi
31837 have_ltdl='no'
31838 LTDL_LIBS=''
31839 if test "$with_ltdl" = 'yes'; then
31840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31841 printf "%s\n" "-------------------------------------------------------------" >&6; }
31842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
31843 printf %s "checking for libltdl... " >&6; }
31844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
31845 printf "%s\n" "" >&6; }
31846 failed=0
31847 passed=0
31848 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
31849 if test "x$ac_cv_header_ltdl_h" = xyes
31850 then :
31851 passed=`expr $passed + 1`
31852 else case e in #(
31853 e) failed=`expr $failed + 1` ;;
31854 esac
31855 fi
31856
31857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31858 /* end confdefs.h. */
31859
31860
31861 #include <ltdl.h>
31862
31863 int
31864 main (void)
31865 {
31866
31867 lt_dlinit();
31868
31869 ;
31870 return 0;
31871 }
31872
31873 _ACEOF
31874 if ac_fn_c_try_compile "$LINENO"
31875 then :
31876 passed=`expr $passed + 1`
31877 else case e in #(
31878 e) failed=`expr $failed + 1` ;;
31879 esac
31880 fi
31881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
31883 printf %s "checking if libltdl package is complete... " >&6; }
31884 if test $passed -gt 0 ; then
31885 if test $failed -gt 0 ; then
31886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31887 printf "%s\n" "no -- some components failed test" >&6; }
31888 have_ltdl='no (failed tests)'
31889 else
31890 LTDL_LIBS='-lltdl'
31891 LIBS="$LTDL_LIBS $LIBS"
31892
31893 printf "%s\n" "#define LTDL_DELEGATE 1" >>confdefs.h
31894
31895
31896 printf "%s\n" "#define LTDL_MODULE_EXT \"${shrext_cmds}\"" >>confdefs.h
31897
31898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31899 printf "%s\n" "yes" >&6; }
31900 have_ltdl='yes'
31901 fi
31902 else
31903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31904 printf "%s\n" "no" >&6; }
31905 fi
31906 if test "$have_ltdl" != 'yes' ; then
31907 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
31908 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
31909 as_fn_error 1 "libltdl is required for modules and OpenCL builds
31910 See 'config.log' for more details" "$LINENO" 5; }
31911 fi
31912 fi
31913 if test "$have_ltdl" != 'no'; then
31914 WITH_LTDL_TRUE=
31915 WITH_LTDL_FALSE='#'
31916 else
31917 WITH_LTDL_TRUE='#'
31918 WITH_LTDL_FALSE=
31919 fi
31920
31921
31922 #
31923 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
31924 #
31925 LIB_DL=''
31926 if test "$enable_profiling" = 'yes'; then
31927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
31928 printf %s "checking for dlopen in -ldl... " >&6; }
31929 if test ${ac_cv_lib_dl_dlopen+y}
31930 then :
31931 printf %s "(cached) " >&6
31932 else case e in #(
31933 e) ac_check_lib_save_LIBS=$LIBS
31934 LIBS="-ldl $LIBS"
31935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31936 /* end confdefs.h. */
31937
31938 /* Override any GCC internal prototype to avoid an error.
31939 Use char because int might match the return type of a GCC
31940 builtin and then its argument prototype would still apply.
31941 The 'extern "C"' is for builds by C++ compilers;
31942 although this is not generally supported in C code supporting it here
31943 has little cost and some practical benefit (sr 110532). */
31944 #ifdef __cplusplus
31945 extern "C"
31946 #endif
31947 char dlopen (void);
31948 int
31949 main (void)
31950 {
31951 return dlopen ();
31952 ;
31953 return 0;
31954 }
31955 _ACEOF
31956 if ac_fn_c_try_link "$LINENO"
31957 then :
31958 ac_cv_lib_dl_dlopen=yes
31959 else case e in #(
31960 e) ac_cv_lib_dl_dlopen=no ;;
31961 esac
31962 fi
31963 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31964 conftest$ac_exeext conftest.$ac_ext
31965 LIBS=$ac_check_lib_save_LIBS ;;
31966 esac
31967 fi
31968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
31969 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
31970 if test "x$ac_cv_lib_dl_dlopen" = xyes
31971 then :
31972 LIB_DL='-ldl'
31973 fi
31974
31975 LIBS="$LIB_DL $LIBS"
31976 fi
31977
31978
31979
31980 #
31981 # Set Apple font directory.
31982 #
31983
31984 # Check whether --with-apple-font-dir was given.
31985 if test ${with_apple_font_dir+y}
31986 then :
31987 withval=$with_apple_font_dir; with_apple_font_dir=$withval
31988 else case e in #(
31989 e) with_apple_font_dir='default' ;;
31990 esac
31991 fi
31992
31993
31994 if test "$with_apple_font_dir" != 'default'; then
31995 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
31996 fi
31997
31998
31999 #
32000 # Check for Autotrace delegate library.
32001 #
32002
32003 # Check whether --with-autotrace was given.
32004 if test ${with_autotrace+y}
32005 then :
32006 withval=$with_autotrace; with_autotrace=$withval
32007 else case e in #(
32008 e) with_autotrace='no' ;;
32009 esac
32010 fi
32011
32012
32013 if test "$with_autotrace" != 'yes'; then
32014 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
32015 fi
32016
32017 have_autotrace='no'
32018 AUTOTRACE_CFLAGS=""
32019 AUTOTRACE_LIBS=""
32020 AUTOTRACE_PKG=""
32021 if test "x$with_autotrace" = "xyes"; then
32022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32023 printf "%s\n" "-------------------------------------------------------------" >&6; }
32024
32025 pkg_failed=no
32026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for autotrace >= 0.31.2" >&5
32027 printf %s "checking for autotrace >= 0.31.2... " >&6; }
32028
32029 if test -n "$AUTOTRACE_CFLAGS"; then
32030 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
32031 elif test -n "$PKG_CONFIG"; then
32032 if test -n "$PKG_CONFIG" && \
32033 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.2\""; } >&5
32034 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.2") 2>&5
32035 ac_status=$?
32036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32037 test $ac_status = 0; }; then
32038 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.2" 2>/dev/null`
32039 test "x$?" != "x0" && pkg_failed=yes
32040 else
32041 pkg_failed=yes
32042 fi
32043 else
32044 pkg_failed=untried
32045 fi
32046 if test -n "$AUTOTRACE_LIBS"; then
32047 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
32048 elif test -n "$PKG_CONFIG"; then
32049 if test -n "$PKG_CONFIG" && \
32050 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.2\""; } >&5
32051 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.2") 2>&5
32052 ac_status=$?
32053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32054 test $ac_status = 0; }; then
32055 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.2" 2>/dev/null`
32056 test "x$?" != "x0" && pkg_failed=yes
32057 else
32058 pkg_failed=yes
32059 fi
32060 else
32061 pkg_failed=untried
32062 fi
32063
32064
32065
32066 if test $pkg_failed = yes; then
32067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32068 printf "%s\n" "no" >&6; }
32069
32070 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32071 _pkg_short_errors_supported=yes
32072 else
32073 _pkg_short_errors_supported=no
32074 fi
32075 if test $_pkg_short_errors_supported = yes; then
32076 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.2" 2>&1`
32077 else
32078 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.2" 2>&1`
32079 fi
32080 # Put the nasty error message in config.log where it belongs
32081 echo "$AUTOTRACE_PKG_ERRORS" >&5
32082
32083 have_autotrace=no
32084 elif test $pkg_failed = untried; then
32085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32086 printf "%s\n" "no" >&6; }
32087 have_autotrace=no
32088 else
32089 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
32090 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
32091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32092 printf "%s\n" "yes" >&6; }
32093 have_autotrace=yes
32094 fi
32095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
32096 printf "%s\n" "" >&6; }
32097 fi
32098
32099 if test "$have_autotrace" = 'yes'; then
32100
32101 printf "%s\n" "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
32102
32103 CFLAGS="$AUTOTRACE_CFLAGS $CFLAGS"
32104 fi
32105
32106 if test "$have_autotrace" = 'yes'; then
32107 AUTOTRACE_DELEGATE_TRUE=
32108 AUTOTRACE_DELEGATE_FALSE='#'
32109 else
32110 AUTOTRACE_DELEGATE_TRUE='#'
32111 AUTOTRACE_DELEGATE_FALSE=
32112 fi
32113
32114
32115
32116
32117
32118 #
32119 # Check for Display Postscript delegate library.
32120 #
32121
32122 # Check whether --with-dps was given.
32123 if test ${with_dps+y}
32124 then :
32125 withval=$with_dps; with_dps=$withval
32126 else case e in #(
32127 e) with_dps='no' ;;
32128 esac
32129 fi
32130
32131
32132 if test "$with_dps" != 'yes'; then
32133 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
32134 fi
32135
32136 have_dps='no'
32137 DPS_LIBS=''
32138 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
32139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32140 printf "%s\n" "-------------------------------------------------------------" >&6; }
32141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
32142 printf %s "checking for DPS... " >&6; }
32143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
32144 printf "%s\n" "" >&6; }
32145 failed=0
32146 passed=0
32147 PERSIST_CPPFLAGS="$CPPFLAGS"
32148 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
32149 ac_fn_c_check_header_compile "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
32150 if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes
32151 then :
32152 passed=`expr $passed + 1`
32153 else case e in #(
32154 e) failed=`expr $failed + 1` ;;
32155 esac
32156 fi
32157
32158 # DPS issues:
32159 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
32160 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
32161 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
32162 # ImageMagick itself doesn't use -lXt.
32163 have_libdps='no'
32164 LIBDPS_XT=''
32165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
32166 printf %s "checking for DPSInitialize in -ldps... " >&6; }
32167 if test ${ac_cv_lib_dps_DPSInitialize+y}
32168 then :
32169 printf %s "(cached) " >&6
32170 else case e in #(
32171 e) ac_check_lib_save_LIBS=$LIBS
32172 LIBS="-ldps $LIBS"
32173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32174 /* end confdefs.h. */
32175
32176 /* Override any GCC internal prototype to avoid an error.
32177 Use char because int might match the return type of a GCC
32178 builtin and then its argument prototype would still apply.
32179 The 'extern "C"' is for builds by C++ compilers;
32180 although this is not generally supported in C code supporting it here
32181 has little cost and some practical benefit (sr 110532). */
32182 #ifdef __cplusplus
32183 extern "C"
32184 #endif
32185 char DPSInitialize (void);
32186 int
32187 main (void)
32188 {
32189 return DPSInitialize ();
32190 ;
32191 return 0;
32192 }
32193 _ACEOF
32194 if ac_fn_c_try_link "$LINENO"
32195 then :
32196 ac_cv_lib_dps_DPSInitialize=yes
32197 else case e in #(
32198 e) ac_cv_lib_dps_DPSInitialize=no ;;
32199 esac
32200 fi
32201 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32202 conftest$ac_exeext conftest.$ac_ext
32203 LIBS=$ac_check_lib_save_LIBS ;;
32204 esac
32205 fi
32206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
32207 printf "%s\n" "$ac_cv_lib_dps_DPSInitialize" >&6; }
32208 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes
32209 then :
32210 have_libdps='yes'
32211 else case e in #(
32212 e) have_libdps='no', ;;
32213 esac
32214 fi
32215
32216 if test "$have_libdps" != 'yes'; then
32217 # Unset cache variable so we can try again.
32218 unset ac_cv_lib_dps_DPSInitialize
32219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
32220 printf %s "checking for DPSInitialize in -ldps... " >&6; }
32221 if test ${ac_cv_lib_dps_DPSInitialize+y}
32222 then :
32223 printf %s "(cached) " >&6
32224 else case e in #(
32225 e) ac_check_lib_save_LIBS=$LIBS
32226 LIBS="-ldps $LIBS"
32227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32228 /* end confdefs.h. */
32229
32230 /* Override any GCC internal prototype to avoid an error.
32231 Use char because int might match the return type of a GCC
32232 builtin and then its argument prototype would still apply.
32233 The 'extern "C"' is for builds by C++ compilers;
32234 although this is not generally supported in C code supporting it here
32235 has little cost and some practical benefit (sr 110532). */
32236 #ifdef __cplusplus
32237 extern "C"
32238 #endif
32239 char DPSInitialize (void);
32240 int
32241 main (void)
32242 {
32243 return DPSInitialize ();
32244 ;
32245 return 0;
32246 }
32247 _ACEOF
32248 if ac_fn_c_try_link "$LINENO"
32249 then :
32250 ac_cv_lib_dps_DPSInitialize=yes
32251 else case e in #(
32252 e) ac_cv_lib_dps_DPSInitialize=no ;;
32253 esac
32254 fi
32255 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32256 conftest$ac_exeext conftest.$ac_ext
32257 LIBS=$ac_check_lib_save_LIBS ;;
32258 esac
32259 fi
32260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
32261 printf "%s\n" "$ac_cv_lib_dps_DPSInitialize" >&6; }
32262 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes
32263 then :
32264 have_libdps='yes'
32265 else case e in #(
32266 e) have_libdps='no',-lXt ;;
32267 esac
32268 fi
32269
32270 if test "$have_libdps" = 'yes'; then
32271 LIBDPS_XT='-lXt'
32272 fi
32273 fi
32274 if test "$have_libdps" = 'yes'; then
32275 passed=`expr $passed + 1`
32276 else
32277 failed=`expr $failed + 1`
32278 fi
32279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
32280 printf %s "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
32281 if test ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+y}
32282 then :
32283 printf %s "(cached) " >&6
32284 else case e in #(
32285 e) ac_check_lib_save_LIBS=$LIBS
32286 LIBS="-ldpstk $LIBS"
32287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32288 /* end confdefs.h. */
32289
32290 /* Override any GCC internal prototype to avoid an error.
32291 Use char because int might match the return type of a GCC
32292 builtin and then its argument prototype would still apply.
32293 The 'extern "C"' is for builds by C++ compilers;
32294 although this is not generally supported in C code supporting it here
32295 has little cost and some practical benefit (sr 110532). */
32296 #ifdef __cplusplus
32297 extern "C"
32298 #endif
32299 char XDPSPixelsPerPoint (void);
32300 int
32301 main (void)
32302 {
32303 return XDPSPixelsPerPoint ();
32304 ;
32305 return 0;
32306 }
32307 _ACEOF
32308 if ac_fn_c_try_link "$LINENO"
32309 then :
32310 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
32311 else case e in #(
32312 e) ac_cv_lib_dpstk_XDPSPixelsPerPoint=no ;;
32313 esac
32314 fi
32315 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32316 conftest$ac_exeext conftest.$ac_ext
32317 LIBS=$ac_check_lib_save_LIBS ;;
32318 esac
32319 fi
32320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
32321 printf "%s\n" "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
32322 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes
32323 then :
32324 passed=`expr $passed + 1`
32325 else case e in #(
32326 e) failed=`expr $failed + 1`,-ldps $LIBDPS_XT ;;
32327 esac
32328 fi
32329
32330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
32331 printf %s "checking if DPS package is complete... " >&6; }
32332 if test $passed -gt 0; then
32333 if test $failed -gt 0; then
32334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32335 printf "%s\n" "no -- some components failed test" >&6; }
32336 have_dps='no (failed tests)'
32337 CPPFLAGS="$PERSIST_CPPFLAGS"
32338 else
32339 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
32340 LIBS="$DPS_LIBS $LIBS"
32341
32342 printf "%s\n" "#define DPS_DELEGATE 1" >>confdefs.h
32343
32344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32345 printf "%s\n" "yes" >&6; }
32346 have_dps='yes'
32347 fi
32348 else
32349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32350 printf "%s\n" "no" >&6; }
32351 CPPFLAGS=$PERSIST_CPPFLAGS
32352 fi
32353 fi
32354 if test "$have_dps" = 'yes'; then
32355 DPS_DELEGATE_TRUE=
32356 DPS_DELEGATE_FALSE='#'
32357 else
32358 DPS_DELEGATE_TRUE='#'
32359 DPS_DELEGATE_FALSE=
32360 fi
32361
32362
32363
32364
32365 #
32366 # Set DejaVu font directory.
32367 #
32368
32369 # Check whether --with-dejavu-font-dir was given.
32370 if test ${with_dejavu_font_dir+y}
32371 then :
32372 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
32373 else case e in #(
32374 e) with_dejavu_font_dir='default' ;;
32375 esac
32376 fi
32377
32378
32379 if test "$with_dejavu_font_dir" != 'default'; then
32380 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
32381 fi
32382
32383
32384 #
32385 # Check for FFTW delegate library.
32386 #
32387
32388 # Check whether --with-fftw was given.
32389 if test ${with_fftw+y}
32390 then :
32391 withval=$with_fftw; with_fftw=$withval
32392 else case e in #(
32393 e) with_fftw='no' ;;
32394 esac
32395 fi
32396
32397
32398 if test "$with_fftw" != 'yes'; then
32399 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
32400 fi
32401
32402 have_fftw='no'
32403 FFTW_CFLAGS=""
32404 FFTW_LIBS=""
32405 FFTW_PKG=""
32406 if test "x$with_fftw" = "xyes"; then
32407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32408 printf "%s\n" "-------------------------------------------------------------" >&6; }
32409
32410 pkg_failed=no
32411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fftw3 >= 3.0.0" >&5
32412 printf %s "checking for fftw3 >= 3.0.0... " >&6; }
32413
32414 if test -n "$fftw3_CFLAGS"; then
32415 pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
32416 elif test -n "$PKG_CONFIG"; then
32417 if test -n "$PKG_CONFIG" && \
32418 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
32419 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
32420 ac_status=$?
32421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32422 test $ac_status = 0; }; then
32423 pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0" 2>/dev/null`
32424 test "x$?" != "x0" && pkg_failed=yes
32425 else
32426 pkg_failed=yes
32427 fi
32428 else
32429 pkg_failed=untried
32430 fi
32431 if test -n "$fftw3_LIBS"; then
32432 pkg_cv_fftw3_LIBS="$fftw3_LIBS"
32433 elif test -n "$PKG_CONFIG"; then
32434 if test -n "$PKG_CONFIG" && \
32435 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
32436 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
32437 ac_status=$?
32438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32439 test $ac_status = 0; }; then
32440 pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0" 2>/dev/null`
32441 test "x$?" != "x0" && pkg_failed=yes
32442 else
32443 pkg_failed=yes
32444 fi
32445 else
32446 pkg_failed=untried
32447 fi
32448
32449
32450
32451 if test $pkg_failed = yes; then
32452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32453 printf "%s\n" "no" >&6; }
32454
32455 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32456 _pkg_short_errors_supported=yes
32457 else
32458 _pkg_short_errors_supported=no
32459 fi
32460 if test $_pkg_short_errors_supported = yes; then
32461 fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
32462 else
32463 fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
32464 fi
32465 # Put the nasty error message in config.log where it belongs
32466 echo "$fftw3_PKG_ERRORS" >&5
32467
32468 have_fftw=no
32469 elif test $pkg_failed = untried; then
32470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32471 printf "%s\n" "no" >&6; }
32472 have_fftw=no
32473 else
32474 fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
32475 fftw3_LIBS=$pkg_cv_fftw3_LIBS
32476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32477 printf "%s\n" "yes" >&6; }
32478 have_fftw=yes
32479 fi
32480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
32481 printf "%s\n" "" >&6; }
32482 fi
32483
32484 if test "$have_fftw" = 'yes'; then
32485
32486 printf "%s\n" "#define FFTW_DELEGATE 1" >>confdefs.h
32487
32488 FFTW_CFLAGS="$fftw3_CFLAGS"
32489 FFTW_LIBS="$fftw3_LIBS"
32490 CFLAGS="$fftw3_CFLAGS $CFLAGS"
32491 fi
32492
32493 if test "$have_fftw" = 'yes'; then
32494 FFTW_DELEGATE_TRUE=
32495 FFTW_DELEGATE_FALSE='#'
32496 else
32497 FFTW_DELEGATE_TRUE='#'
32498 FFTW_DELEGATE_FALSE=
32499 fi
32500
32501
32502
32503
32504
32505 #
32506 # Check for FLIF delegate library.
32507 #
32508
32509 # Check whether --with-flif was given.
32510 if test ${with_flif+y}
32511 then :
32512 withval=$with_flif; with_flif=$withval
32513 else case e in #(
32514 e) with_flif='no' ;;
32515 esac
32516 fi
32517
32518
32519 if test "$with_flif" != 'yes'; then
32520 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-flif=$with_flif "
32521 fi
32522
32523 have_flif='no'
32524 FLIF_LIBS=''
32525 if test "$with_flif" != 'no'; then
32526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32527 printf "%s\n" "-------------------------------------------------------------" >&6; }
32528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FLIF" >&5
32529 printf %s "checking for FLIF... " >&6; }
32530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
32531 printf "%s\n" "" >&6; }
32532 failed=0
32533 passed=0
32534 ac_fn_c_check_header_compile "$LINENO" "flif.h" "ac_cv_header_flif_h" "$ac_includes_default"
32535 if test "x$ac_cv_header_flif_h" = xyes
32536 then :
32537 passed=`expr $passed + 1`
32538 else case e in #(
32539 e) failed=`expr $failed + 1` ;;
32540 esac
32541 fi
32542
32543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flif_create_decoder in -lflif" >&5
32544 printf %s "checking for flif_create_decoder in -lflif... " >&6; }
32545 if test ${ac_cv_lib_flif_flif_create_decoder+y}
32546 then :
32547 printf %s "(cached) " >&6
32548 else case e in #(
32549 e) ac_check_lib_save_LIBS=$LIBS
32550 LIBS="-lflif $LIBS"
32551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32552 /* end confdefs.h. */
32553
32554 /* Override any GCC internal prototype to avoid an error.
32555 Use char because int might match the return type of a GCC
32556 builtin and then its argument prototype would still apply.
32557 The 'extern "C"' is for builds by C++ compilers;
32558 although this is not generally supported in C code supporting it here
32559 has little cost and some practical benefit (sr 110532). */
32560 #ifdef __cplusplus
32561 extern "C"
32562 #endif
32563 char flif_create_decoder (void);
32564 int
32565 main (void)
32566 {
32567 return flif_create_decoder ();
32568 ;
32569 return 0;
32570 }
32571 _ACEOF
32572 if ac_fn_c_try_link "$LINENO"
32573 then :
32574 ac_cv_lib_flif_flif_create_decoder=yes
32575 else case e in #(
32576 e) ac_cv_lib_flif_flif_create_decoder=no ;;
32577 esac
32578 fi
32579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32580 conftest$ac_exeext conftest.$ac_ext
32581 LIBS=$ac_check_lib_save_LIBS ;;
32582 esac
32583 fi
32584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_flif_flif_create_decoder" >&5
32585 printf "%s\n" "$ac_cv_lib_flif_flif_create_decoder" >&6; }
32586 if test "x$ac_cv_lib_flif_flif_create_decoder" = xyes
32587 then :
32588 passed=`expr $passed + 1`
32589 else case e in #(
32590 e) failed=`expr $failed + 1` ;;
32591 esac
32592 fi
32593
32594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if FLIF package is complete" >&5
32595 printf %s "checking if FLIF package is complete... " >&6; }
32596 if test $passed -gt 0; then
32597 if test $failed -gt 0; then
32598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32599 printf "%s\n" "no -- some components failed test" >&6; }
32600 have_flif='no (failed tests)'
32601 else
32602 FLIF_LIBS='-lflif'
32603 LIBS="$FLIF_LIBS $LIBS"
32604
32605 printf "%s\n" "#define FLIF_DELEGATE 1" >>confdefs.h
32606
32607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32608 printf "%s\n" "yes" >&6; }
32609 have_flif='yes'
32610 fi
32611 else
32612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32613 printf "%s\n" "no" >&6; }
32614 fi
32615 fi
32616 if test "$have_flif" = 'yes'; then
32617 FLIF_DELEGATE_TRUE=
32618 FLIF_DELEGATE_FALSE='#'
32619 else
32620 FLIF_DELEGATE_TRUE='#'
32621 FLIF_DELEGATE_FALSE=
32622 fi
32623
32624
32625
32626
32627 #
32628 # Check for FlashPIX delegate library.
32629 #
32630
32631 # Check whether --with-fpx was given.
32632 if test ${with_fpx+y}
32633 then :
32634 withval=$with_fpx; with_fpx=$withval
32635 else case e in #(
32636 e) with_fpx='no' ;;
32637 esac
32638 fi
32639
32640
32641 if test "$with_fpx" != 'yes'; then
32642 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
32643 fi
32644
32645 have_fpx='no'
32646 FPX_LIBS=''
32647 if test "$with_fpx" != 'no'; then
32648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32649 printf "%s\n" "-------------------------------------------------------------" >&6; }
32650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
32651 printf %s "checking for FlashPIX... " >&6; }
32652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
32653 printf "%s\n" "" >&6; }
32654 failed=0
32655 passed=0
32656 ac_ext=cpp
32657 ac_cpp='$CXXCPP $CPPFLAGS'
32658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32661
32662 ac_fn_cxx_check_header_compile "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
32663 if test "x$ac_cv_header_fpxlib_h" = xyes
32664 then :
32665 passed=`expr $passed + 1`
32666 else case e in #(
32667 e) failed=`expr $failed + 1` ;;
32668 esac
32669 fi
32670
32671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
32672 printf %s "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
32673 if test ${ac_cv_lib_fpx_FPX_OpenImageByFilename+y}
32674 then :
32675 printf %s "(cached) " >&6
32676 else case e in #(
32677 e) ac_check_lib_save_LIBS=$LIBS
32678 LIBS="-lfpx $LIBS"
32679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32680 /* end confdefs.h. */
32681
32682 namespace conftest {
32683 extern "C" int FPX_OpenImageByFilename ();
32684 }
32685 int
32686 main (void)
32687 {
32688 return conftest::FPX_OpenImageByFilename ();
32689 ;
32690 return 0;
32691 }
32692 _ACEOF
32693 if ac_fn_cxx_try_link "$LINENO"
32694 then :
32695 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
32696 else case e in #(
32697 e) ac_cv_lib_fpx_FPX_OpenImageByFilename=no ;;
32698 esac
32699 fi
32700 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32701 conftest$ac_exeext conftest.$ac_ext
32702 LIBS=$ac_check_lib_save_LIBS ;;
32703 esac
32704 fi
32705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
32706 printf "%s\n" "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
32707 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes
32708 then :
32709 passed=`expr $passed + 1`
32710 else case e in #(
32711 e) failed=`expr $failed + 1` ;;
32712 esac
32713 fi
32714
32715
32716 ac_ext=c
32717 ac_cpp='$CPP $CPPFLAGS'
32718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32721
32722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
32723 printf %s "checking if FlashPIX package is complete... " >&6; }
32724 if test $passed -gt 0; then
32725 if test $failed -gt 0; then
32726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32727 printf "%s\n" "no -- some components failed test" >&6; }
32728 have_fpx='no (failed tests)'
32729 else
32730 FPX_LIBS='-lfpx'
32731
32732 printf "%s\n" "#define FPX_DELEGATE 1" >>confdefs.h
32733
32734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32735 printf "%s\n" "yes" >&6; }
32736 have_fpx='yes'
32737 PERLMAINCC="$CXX"
32738 fi
32739 else
32740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32741 printf "%s\n" "no" >&6; }
32742 fi
32743 fi
32744 if test "$have_fpx" = 'yes'; then
32745 FPX_DELEGATE_TRUE=
32746 FPX_DELEGATE_FALSE='#'
32747 else
32748 FPX_DELEGATE_TRUE='#'
32749 FPX_DELEGATE_FALSE=
32750 fi
32751
32752
32753
32754
32755 #
32756 # Check for DJVU delegate library.
32757 #
32758
32759 # Check whether --with-djvu was given.
32760 if test ${with_djvu+y}
32761 then :
32762 withval=$with_djvu; with_djvu=$withval
32763 else case e in #(
32764 e) with_djvu='yes' ;;
32765 esac
32766 fi
32767
32768
32769 if test "$with_djvu" != 'yes'; then
32770 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
32771 fi
32772
32773 have_djvu='no'
32774 DJVU_CFLAGS=""
32775 DJVU_LIBS=""
32776 DJVU_PKG=""
32777 if test "x$with_djvu" = "xyes"; then
32778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32779 printf "%s\n" "-------------------------------------------------------------" >&6; }
32780
32781 pkg_failed=no
32782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ddjvuapi >= 3.5.0" >&5
32783 printf %s "checking for ddjvuapi >= 3.5.0... " >&6; }
32784
32785 if test -n "$ddjvuapi_CFLAGS"; then
32786 pkg_cv_ddjvuapi_CFLAGS="$ddjvuapi_CFLAGS"
32787 elif test -n "$PKG_CONFIG"; then
32788 if test -n "$PKG_CONFIG" && \
32789 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
32790 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
32791 ac_status=$?
32792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32793 test $ac_status = 0; }; then
32794 pkg_cv_ddjvuapi_CFLAGS=`$PKG_CONFIG --cflags "ddjvuapi >= 3.5.0" 2>/dev/null`
32795 test "x$?" != "x0" && pkg_failed=yes
32796 else
32797 pkg_failed=yes
32798 fi
32799 else
32800 pkg_failed=untried
32801 fi
32802 if test -n "$ddjvuapi_LIBS"; then
32803 pkg_cv_ddjvuapi_LIBS="$ddjvuapi_LIBS"
32804 elif test -n "$PKG_CONFIG"; then
32805 if test -n "$PKG_CONFIG" && \
32806 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
32807 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
32808 ac_status=$?
32809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32810 test $ac_status = 0; }; then
32811 pkg_cv_ddjvuapi_LIBS=`$PKG_CONFIG --libs "ddjvuapi >= 3.5.0" 2>/dev/null`
32812 test "x$?" != "x0" && pkg_failed=yes
32813 else
32814 pkg_failed=yes
32815 fi
32816 else
32817 pkg_failed=untried
32818 fi
32819
32820
32821
32822 if test $pkg_failed = yes; then
32823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32824 printf "%s\n" "no" >&6; }
32825
32826 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32827 _pkg_short_errors_supported=yes
32828 else
32829 _pkg_short_errors_supported=no
32830 fi
32831 if test $_pkg_short_errors_supported = yes; then
32832 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
32833 else
32834 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
32835 fi
32836 # Put the nasty error message in config.log where it belongs
32837 echo "$ddjvuapi_PKG_ERRORS" >&5
32838
32839 have_djvu=no
32840 elif test $pkg_failed = untried; then
32841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32842 printf "%s\n" "no" >&6; }
32843 have_djvu=no
32844 else
32845 ddjvuapi_CFLAGS=$pkg_cv_ddjvuapi_CFLAGS
32846 ddjvuapi_LIBS=$pkg_cv_ddjvuapi_LIBS
32847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32848 printf "%s\n" "yes" >&6; }
32849 have_djvu=yes
32850 fi
32851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
32852 printf "%s\n" "" >&6; }
32853 fi
32854
32855 if test "$have_djvu" = 'yes'; then
32856
32857 printf "%s\n" "#define DJVU_DELEGATE 1" >>confdefs.h
32858
32859 DJVU_CFLAGS="$ddjvuapi_CFLAGS"
32860 DJVU_LIBS="$ddjvuapi_LIBS"
32861 CFLAGS="$ddjvuapi_CFLAGS $CFLAGS"
32862 fi
32863
32864 if test "$have_djvu" = 'yes'; then
32865 DJVU_DELEGATE_TRUE=
32866 DJVU_DELEGATE_FALSE='#'
32867 else
32868 DJVU_DELEGATE_TRUE='#'
32869 DJVU_DELEGATE_FALSE=
32870 fi
32871
32872
32873
32874
32875
32876 #
32877 # Check for fontconfig delegate library.
32878 #
32879
32880 # Check whether --with-fontconfig was given.
32881 if test ${with_fontconfig+y}
32882 then :
32883 withval=$with_fontconfig; with_fontconfig=$withval
32884 else case e in #(
32885 e) with_fontconfig='yes' ;;
32886 esac
32887 fi
32888
32889
32890 if test "$with_fontconfig" != 'yes'; then
32891 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
32892 fi
32893
32894 have_fontconfig='no'
32895 FONTCONFIG_CFLAGS=""
32896 FONTCONFIG_LIBS=""
32897 FONTCONFIG_PKG=""
32898 if test "x$with_fontconfig" = "xyes"; then
32899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32900 printf "%s\n" "-------------------------------------------------------------" >&6; }
32901
32902 pkg_failed=no
32903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.1.0" >&5
32904 printf %s "checking for fontconfig >= 2.1.0... " >&6; }
32905
32906 if test -n "$FONTCONFIG_CFLAGS"; then
32907 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
32908 elif test -n "$PKG_CONFIG"; then
32909 if test -n "$PKG_CONFIG" && \
32910 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
32911 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
32912 ac_status=$?
32913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32914 test $ac_status = 0; }; then
32915 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
32916 test "x$?" != "x0" && pkg_failed=yes
32917 else
32918 pkg_failed=yes
32919 fi
32920 else
32921 pkg_failed=untried
32922 fi
32923 if test -n "$FONTCONFIG_LIBS"; then
32924 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
32925 elif test -n "$PKG_CONFIG"; then
32926 if test -n "$PKG_CONFIG" && \
32927 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
32928 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
32929 ac_status=$?
32930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32931 test $ac_status = 0; }; then
32932 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
32933 test "x$?" != "x0" && pkg_failed=yes
32934 else
32935 pkg_failed=yes
32936 fi
32937 else
32938 pkg_failed=untried
32939 fi
32940
32941
32942
32943 if test $pkg_failed = yes; then
32944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32945 printf "%s\n" "no" >&6; }
32946
32947 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32948 _pkg_short_errors_supported=yes
32949 else
32950 _pkg_short_errors_supported=no
32951 fi
32952 if test $_pkg_short_errors_supported = yes; then
32953 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
32954 else
32955 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
32956 fi
32957 # Put the nasty error message in config.log where it belongs
32958 echo "$FONTCONFIG_PKG_ERRORS" >&5
32959
32960 have_fontconfig=no
32961 elif test $pkg_failed = untried; then
32962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32963 printf "%s\n" "no" >&6; }
32964 have_fontconfig=no
32965 else
32966 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
32967 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
32968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32969 printf "%s\n" "yes" >&6; }
32970 have_fontconfig=yes
32971 fi
32972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
32973 printf "%s\n" "" >&6; }
32974 fi
32975
32976 if test "$have_fontconfig" = 'yes'; then
32977
32978 printf "%s\n" "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
32979
32980 CFLAGS="$FONTCONFIG_CFLAGS $CFLAGS"
32981 fi
32982
32983 if test "$have_fontconfig" = 'yes'; then
32984 FONTCONFIG_DELEGATE_TRUE=
32985 FONTCONFIG_DELEGATE_FALSE='#'
32986 else
32987 FONTCONFIG_DELEGATE_TRUE='#'
32988 FONTCONFIG_DELEGATE_FALSE=
32989 fi
32990
32991
32992
32993
32994
32995 #
32996 # Check for the Freetype delegate library.
32997 #
32998
32999 # Check whether --with-freetype was given.
33000 if test ${with_freetype+y}
33001 then :
33002 withval=$with_freetype; with_freetype=$withval
33003 else case e in #(
33004 e) with_freetype='yes' ;;
33005 esac
33006 fi
33007
33008
33009 if test "$with_freetype" != 'yes'; then
33010 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
33011 fi
33012
33013 have_freetype='no'
33014 FREETYPE_CFLAGS=""
33015 FREETYPE_LIBS=""
33016 FREETYPE_PKG=""
33017 if test "x$with_freetype" = "xyes"; then
33018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33019 printf "%s\n" "-------------------------------------------------------------" >&6; }
33020
33021 pkg_failed=no
33022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for freetype2 >= 2.8.0" >&5
33023 printf %s "checking for freetype2 >= 2.8.0... " >&6; }
33024
33025 if test -n "$FREETYPE_CFLAGS"; then
33026 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
33027 elif test -n "$PKG_CONFIG"; then
33028 if test -n "$PKG_CONFIG" && \
33029 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.8.0\""; } >&5
33030 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.8.0") 2>&5
33031 ac_status=$?
33032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33033 test $ac_status = 0; }; then
33034 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.8.0" 2>/dev/null`
33035 test "x$?" != "x0" && pkg_failed=yes
33036 else
33037 pkg_failed=yes
33038 fi
33039 else
33040 pkg_failed=untried
33041 fi
33042 if test -n "$FREETYPE_LIBS"; then
33043 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
33044 elif test -n "$PKG_CONFIG"; then
33045 if test -n "$PKG_CONFIG" && \
33046 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.8.0\""; } >&5
33047 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.8.0") 2>&5
33048 ac_status=$?
33049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33050 test $ac_status = 0; }; then
33051 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.8.0" 2>/dev/null`
33052 test "x$?" != "x0" && pkg_failed=yes
33053 else
33054 pkg_failed=yes
33055 fi
33056 else
33057 pkg_failed=untried
33058 fi
33059
33060
33061
33062 if test $pkg_failed = yes; then
33063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33064 printf "%s\n" "no" >&6; }
33065
33066 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33067 _pkg_short_errors_supported=yes
33068 else
33069 _pkg_short_errors_supported=no
33070 fi
33071 if test $_pkg_short_errors_supported = yes; then
33072 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 2.8.0" 2>&1`
33073 else
33074 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 2.8.0" 2>&1`
33075 fi
33076 # Put the nasty error message in config.log where it belongs
33077 echo "$FREETYPE_PKG_ERRORS" >&5
33078
33079 have_freetype=no
33080 elif test $pkg_failed = untried; then
33081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33082 printf "%s\n" "no" >&6; }
33083 have_freetype=no
33084 else
33085 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
33086 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
33087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33088 printf "%s\n" "yes" >&6; }
33089 have_freetype=yes
33090 fi
33091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
33092 printf "%s\n" "" >&6; }
33093 fi
33094
33095 if test "$have_freetype" = 'yes'; then
33096
33097 printf "%s\n" "#define FREETYPE_DELEGATE 1" >>confdefs.h
33098
33099 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
33100 MAGICKCORE_FREETYPE_DELEGATE=1
33101 else
33102 MAGICKCORE_FREETYPE_DELEGATE=0
33103 fi
33104
33105
33106
33107
33108
33109
33110 #
33111 # Check for the raqm delegate library.
33112 #
33113
33114 # Check whether --with-raqm was given.
33115 if test ${with_raqm+y}
33116 then :
33117 withval=$with_raqm; with_raqm=$withval
33118 else case e in #(
33119 e) with_raqm='yes' ;;
33120 esac
33121 fi
33122
33123
33124 if test "$with_raqm" != 'yes'; then
33125 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-raqm=$with_raqm "
33126 fi
33127
33128 have_raqm='no'
33129 RAQM_CFLAGS=""
33130 RAQM_LIBS=""
33131 RAQM_PKG=""
33132 if test "x$with_raqm" = "xyes"; then
33133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33134 printf "%s\n" "-------------------------------------------------------------" >&6; }
33135
33136 pkg_failed=no
33137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for raqm" >&5
33138 printf %s "checking for raqm... " >&6; }
33139
33140 if test -n "$RAQM_CFLAGS"; then
33141 pkg_cv_RAQM_CFLAGS="$RAQM_CFLAGS"
33142 elif test -n "$PKG_CONFIG"; then
33143 if test -n "$PKG_CONFIG" && \
33144 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5
33145 ($PKG_CONFIG --exists --print-errors "raqm") 2>&5
33146 ac_status=$?
33147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33148 test $ac_status = 0; }; then
33149 pkg_cv_RAQM_CFLAGS=`$PKG_CONFIG --cflags "raqm" 2>/dev/null`
33150 test "x$?" != "x0" && pkg_failed=yes
33151 else
33152 pkg_failed=yes
33153 fi
33154 else
33155 pkg_failed=untried
33156 fi
33157 if test -n "$RAQM_LIBS"; then
33158 pkg_cv_RAQM_LIBS="$RAQM_LIBS"
33159 elif test -n "$PKG_CONFIG"; then
33160 if test -n "$PKG_CONFIG" && \
33161 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5
33162 ($PKG_CONFIG --exists --print-errors "raqm") 2>&5
33163 ac_status=$?
33164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33165 test $ac_status = 0; }; then
33166 pkg_cv_RAQM_LIBS=`$PKG_CONFIG --libs "raqm" 2>/dev/null`
33167 test "x$?" != "x0" && pkg_failed=yes
33168 else
33169 pkg_failed=yes
33170 fi
33171 else
33172 pkg_failed=untried
33173 fi
33174
33175
33176
33177 if test $pkg_failed = yes; then
33178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33179 printf "%s\n" "no" >&6; }
33180
33181 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33182 _pkg_short_errors_supported=yes
33183 else
33184 _pkg_short_errors_supported=no
33185 fi
33186 if test $_pkg_short_errors_supported = yes; then
33187 RAQM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "raqm" 2>&1`
33188 else
33189 RAQM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "raqm" 2>&1`
33190 fi
33191 # Put the nasty error message in config.log where it belongs
33192 echo "$RAQM_PKG_ERRORS" >&5
33193
33194 have_raqm=no
33195 elif test $pkg_failed = untried; then
33196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33197 printf "%s\n" "no" >&6; }
33198 have_raqm=no
33199 else
33200 RAQM_CFLAGS=$pkg_cv_RAQM_CFLAGS
33201 RAQM_LIBS=$pkg_cv_RAQM_LIBS
33202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33203 printf "%s\n" "yes" >&6; }
33204 have_raqm=yes
33205 fi
33206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
33207 printf "%s\n" "" >&6; }
33208 fi
33209
33210 if test "$have_raqm" = 'yes'; then
33211
33212 printf "%s\n" "#define RAQM_DELEGATE 1" >>confdefs.h
33213
33214 CFLAGS="$RAQM_CFLAGS $CFLAGS"
33215 fi
33216
33217 if test "$have_raqm" = 'yes'; then
33218 RAQM_DELEGATE_TRUE=
33219 RAQM_DELEGATE_FALSE='#'
33220 else
33221 RAQM_DELEGATE_TRUE='#'
33222 RAQM_DELEGATE_FALSE=
33223 fi
33224
33225
33226
33227
33228
33229 #
33230 # Enable Windows gdi32 libraries
33231 #
33232
33233 # Check whether --with-gdi32 was given.
33234 if test ${with_gdi32+y}
33235 then :
33236 withval=$with_gdi32; with_gdi32=$withval
33237 else case e in #(
33238 e) with_gdi32='yes' ;;
33239 esac
33240 fi
33241
33242 if test "$with_gdi32" != 'yes' ; then
33243 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gdi32=$with_gdi32 "
33244 fi
33245
33246 #
33247 # Check for Windows gdi32 library.
33248 #
33249 have_gdi32='no'
33250 if test "$with_gdi32" != 'no'; then
33251 GDI32_LIBS=''
33252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Windows GDI32 support" >&5
33253 printf %s "checking for Windows GDI32 support... " >&6; }
33254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
33255 printf "%s\n" "" >&6; }
33256 failed=0
33257 passed=0
33258 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
33259 if test "x$ac_cv_header_windows_h" = xyes
33260 then :
33261 passed=`expr $passed + 1`
33262 else case e in #(
33263 e) failed=`expr $failed + 1` ;;
33264 esac
33265 fi
33266
33267 ac_fn_c_check_header_compile "$LINENO" "winuser.h" "ac_cv_header_winuser_h" "#include <windows.h>
33268 "
33269 if test "x$ac_cv_header_winuser_h" = xyes
33270 then :
33271 passed=`expr $passed + 1`
33272 else case e in #(
33273 e) failed=`expr $failed + 1` ;;
33274 esac
33275 fi
33276
33277 ac_fn_c_check_header_compile "$LINENO" "wingdi.h" "ac_cv_header_wingdi_h" "#include <windows.h>
33278 "
33279 if test "x$ac_cv_header_wingdi_h" = xyes
33280 then :
33281 passed=`expr $passed + 1`
33282 else case e in #(
33283 e) failed=`expr $failed + 1` ;;
33284 esac
33285 fi
33286
33287 if test "$cygwin_build" = yes -o "$native_win32_build" = yes; then
33288 passed=`expr $passed + 1`
33289 fi
33290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Windows GDI32 support is complete" >&5
33291 printf %s "checking if Windows GDI32 support is complete... " >&6; }
33292 if test $passed -gt 0; then
33293 if test $failed -gt 0; then
33294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
33295 printf "%s\n" "no -- some components failed test" >&6; }
33296 have_gdi32='no (failed tests)'
33297 else
33298 GDI32_LIBS='-lgdi32 -luser32'
33299 LIBS="$GDI32_LIBS $LIBS"
33300
33301 printf "%s\n" "#define WINGDI32_DELEGATE 1" >>confdefs.h
33302
33303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33304 printf "%s\n" "yes" >&6; }
33305 have_gdi32='yes'
33306 fi
33307 else
33308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33309 printf "%s\n" "no" >&6; }
33310 fi
33311 fi
33312 if test "$have_gdi32" = 'yes'; then
33313 WINGDI32_DELEGATE_TRUE=
33314 WINGDI32_DELEGATE_FALSE='#'
33315 else
33316 WINGDI32_DELEGATE_TRUE='#'
33317 WINGDI32_DELEGATE_FALSE=
33318 fi
33319
33320
33321
33322
33323
33324 #
33325 # Check for Ghostscript library or framework.
33326 #
33327 # Test for iapi.h & test for gsapi_new_instance in -lgs
33328 # or -framework Ghostscript
33329
33330
33331 # Check whether --with-gslib was given.
33332 if test ${with_gslib+y}
33333 then :
33334 withval=$with_gslib; with_gslib=$withval
33335 else case e in #(
33336 e) with_gslib='no' ;;
33337 esac
33338 fi
33339
33340
33341 gslib_framework='no'
33342 if test "$with_gslib" != 'yes'; then
33343 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
33344 fi
33345
33346 have_gslib='no'
33347 GS_LIBS=''
33348 if test "$with_gslib" != 'no'; then
33349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33350 printf "%s\n" "-------------------------------------------------------------" >&6; }
33351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
33352 printf %s "checking for Ghostscript... " >&6; }
33353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
33354 printf "%s\n" "" >&6; }
33355 framework=0
33356 failed=0
33357 passed=0
33358 ac_fn_c_check_header_compile "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
33359 if test "x$ac_cv_header_ghostscript_iapi_h" = xyes
33360 then :
33361 passed=`expr $passed + 1`
33362 else case e in #(
33363 e) failed=`expr $failed + 1` ;;
33364 esac
33365 fi
33366
33367 ac_fn_c_check_header_compile "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
33368 if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes
33369 then :
33370 passed=`expr $passed + 1`
33371 else case e in #(
33372 e) failed=`expr $failed + 1` ;;
33373 esac
33374 fi
33375
33376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
33377 printf %s "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
33378 if test ${ac_cv_framework_Ghostscript_gsapi_new_instance+y}
33379 then :
33380 printf %s "(cached) " >&6
33381 else case e in #(
33382 e) ac_check_framework_save_LIBS=$LIBS
33383 LIBS="-framework Ghostscript $LIBS"
33384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33385 /* end confdefs.h. */
33386
33387 /* Override any GCC internal prototype to avoid an error.
33388 Use char because int might match the return type of a GCC
33389 builtin and then its argument prototype would still apply.
33390 The 'extern "C"' is for builds by C++ compilers;
33391 although this is not generally supported in C code supporting it here
33392 has little cost and some practical benefit (sr 110532). */
33393 #ifdef __cplusplus
33394 extern "C"
33395 #endif
33396 char gsapi_new_instance (void);
33397 int
33398 main (void)
33399 {
33400 return gsapi_new_instance ();
33401 ;
33402 return 0;
33403 }
33404 _ACEOF
33405 if ac_fn_c_try_link "$LINENO"
33406 then :
33407 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
33408 else case e in #(
33409 e) ac_cv_framework_Ghostscript_gsapi_new_instance=no ;;
33410 esac
33411 fi
33412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33413 conftest$ac_exeext conftest.$ac_ext
33414 LIBS=$ac_check_framework_save_LIBS ;;
33415 esac
33416 fi
33417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
33418 printf "%s\n" "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
33419 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes
33420 then :
33421 framework=`expr $framework + 1`
33422 else case e in #(
33423 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
33424 printf %s "checking for gsapi_new_instance in -lgs... " >&6; }
33425 if test ${ac_cv_lib_gs_gsapi_new_instance+y}
33426 then :
33427 printf %s "(cached) " >&6
33428 else case e in #(
33429 e) ac_check_lib_save_LIBS=$LIBS
33430 LIBS="-lgs $LIBS"
33431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33432 /* end confdefs.h. */
33433
33434 /* Override any GCC internal prototype to avoid an error.
33435 Use char because int might match the return type of a GCC
33436 builtin and then its argument prototype would still apply.
33437 The 'extern "C"' is for builds by C++ compilers;
33438 although this is not generally supported in C code supporting it here
33439 has little cost and some practical benefit (sr 110532). */
33440 #ifdef __cplusplus
33441 extern "C"
33442 #endif
33443 char gsapi_new_instance (void);
33444 int
33445 main (void)
33446 {
33447 return gsapi_new_instance ();
33448 ;
33449 return 0;
33450 }
33451 _ACEOF
33452 if ac_fn_c_try_link "$LINENO"
33453 then :
33454 ac_cv_lib_gs_gsapi_new_instance=yes
33455 else case e in #(
33456 e) ac_cv_lib_gs_gsapi_new_instance=no ;;
33457 esac
33458 fi
33459 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33460 conftest$ac_exeext conftest.$ac_ext
33461 LIBS=$ac_check_lib_save_LIBS ;;
33462 esac
33463 fi
33464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
33465 printf "%s\n" "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
33466 if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes
33467 then :
33468 passed=`expr $passed + 1`
33469 else case e in #(
33470 e) failed=`expr $failed + 1` ;;
33471 esac
33472 fi
33473 ;;
33474 esac
33475 fi
33476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
33477 printf %s "checking if Ghostscript package is complete... " >&6; }
33478 if test $passed -gt 0; then
33479 if test $failed -gt 0; then
33480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
33481 printf "%s\n" "no -- some components failed test" >&6; }
33482 have_gslib='no (failed tests)'
33483 else
33484 if test $framework -gt 0; then
33485 GS_LIBS='-framework Ghostscript'
33486 gslib_framework='yes'
33487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
33488 printf "%s\n" "yes, using framework." >&6; }
33489 else
33490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
33491 printf "%s\n" "yes, using library." >&6; }
33492 GS_LIBS='-lgs'
33493 fi
33494 LIBS="$GS_LIBS $LIBS"
33495
33496 printf "%s\n" "#define GS_DELEGATE 1" >>confdefs.h
33497
33498 have_gslib='yes'
33499 fi
33500 else
33501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33502 printf "%s\n" "no" >&6; }
33503 fi
33504 fi
33505 if test "$have_gslib" = 'yes'; then
33506 GS_DELEGATE_TRUE=
33507 GS_DELEGATE_FALSE='#'
33508 else
33509 GS_DELEGATE_TRUE='#'
33510 GS_DELEGATE_FALSE=
33511 fi
33512
33513
33514
33515 # Set default font search path
33516
33517 # Check whether --with-fontpath was given.
33518 if test ${with_fontpath+y}
33519 then :
33520 withval=$with_fontpath; with_fontpath=$withval
33521 else case e in #(
33522 e) with_fontpath='' ;;
33523 esac
33524 fi
33525
33526
33527 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
33528 with_fontpath=''
33529 else
33530
33531 printf "%s\n" "#define MAGICK_FONT_PATH \"$with_fontpath\"" >>confdefs.h
33532
33533 fi
33534 if test "$with_fontpath" != ''; then
33535 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
33536 fi
33537
33538 # Set Ghostscript font directory
33539
33540 # Check whether --with-gs-font-dir was given.
33541 if test ${with_gs_font_dir+y}
33542 then :
33543 withval=$with_gs_font_dir; with_gs_font_dir=$withval
33544 else case e in #(
33545 e) with_gs_font_dir='default' ;;
33546 esac
33547 fi
33548
33549
33550 if test "$with_gs_font_dir" != 'default'; then
33551 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
33552 fi
33553
33554
33555 #
33556 # Check for GVC delegate library.
33557 #
33558
33559 # Check whether --with-gvc was given.
33560 if test ${with_gvc+y}
33561 then :
33562 withval=$with_gvc; with_gvc=$withval
33563 else case e in #(
33564 e) with_gvc='yes' ;;
33565 esac
33566 fi
33567
33568
33569 if test "$with_gvc" != 'yes'; then
33570 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
33571 fi
33572
33573 GVC_PKG=""
33574 if test "x$with_gvc" = "xyes"; then
33575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33576 printf "%s\n" "-------------------------------------------------------------" >&6; }
33577
33578 pkg_failed=no
33579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgvc >= 2.9.0" >&5
33580 printf %s "checking for libgvc >= 2.9.0... " >&6; }
33581
33582 if test -n "$GVC_CFLAGS"; then
33583 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
33584 elif test -n "$PKG_CONFIG"; then
33585 if test -n "$PKG_CONFIG" && \
33586 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
33587 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
33588 ac_status=$?
33589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33590 test $ac_status = 0; }; then
33591 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
33592 test "x$?" != "x0" && pkg_failed=yes
33593 else
33594 pkg_failed=yes
33595 fi
33596 else
33597 pkg_failed=untried
33598 fi
33599 if test -n "$GVC_LIBS"; then
33600 pkg_cv_GVC_LIBS="$GVC_LIBS"
33601 elif test -n "$PKG_CONFIG"; then
33602 if test -n "$PKG_CONFIG" && \
33603 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
33604 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
33605 ac_status=$?
33606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33607 test $ac_status = 0; }; then
33608 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
33609 test "x$?" != "x0" && pkg_failed=yes
33610 else
33611 pkg_failed=yes
33612 fi
33613 else
33614 pkg_failed=untried
33615 fi
33616
33617
33618
33619 if test $pkg_failed = yes; then
33620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33621 printf "%s\n" "no" >&6; }
33622
33623 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33624 _pkg_short_errors_supported=yes
33625 else
33626 _pkg_short_errors_supported=no
33627 fi
33628 if test $_pkg_short_errors_supported = yes; then
33629 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
33630 else
33631 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
33632 fi
33633 # Put the nasty error message in config.log where it belongs
33634 echo "$GVC_PKG_ERRORS" >&5
33635
33636 have_gvc=no
33637 elif test $pkg_failed = untried; then
33638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33639 printf "%s\n" "no" >&6; }
33640 have_gvc=no
33641 else
33642 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
33643 GVC_LIBS=$pkg_cv_GVC_LIBS
33644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33645 printf "%s\n" "yes" >&6; }
33646 have_gvc=yes
33647 fi
33648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
33649 printf "%s\n" "" >&6; }
33650 fi
33651
33652 if test "$have_gvc" = 'yes'; then
33653
33654 printf "%s\n" "#define GVC_DELEGATE 1" >>confdefs.h
33655
33656 CFLAGS="$GVC_CFLAGS $CFLAGS"
33657 fi
33658
33659 if test "$have_gvc" = 'yes'; then
33660 GVC_DELEGATE_TRUE=
33661 GVC_DELEGATE_FALSE='#'
33662 else
33663 GVC_DELEGATE_TRUE='#'
33664 GVC_DELEGATE_FALSE=
33665 fi
33666
33667
33668
33669
33670
33671 #
33672 # Check for DMR, digital media repository, delegate library.
33673 #
33674
33675 # Check whether --with-dmr was given.
33676 if test ${with_dmr+y}
33677 then :
33678 withval=$with_dmr; with_dmr=$withval
33679 else case e in #(
33680 e) with_dmr='yes' ;;
33681 esac
33682 fi
33683
33684
33685 if test "$with_dmr" != 'yes'; then
33686 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dmr=$with_dmr "
33687 fi
33688
33689 have_dmr='no'
33690 DMR_CFLAGS=""
33691 DMR_LIBS=""
33692 DMR_PKG=""
33693 if test "x$with_dmr" = "xyes"; then
33694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33695 printf "%s\n" "-------------------------------------------------------------" >&6; }
33696
33697 pkg_failed=no
33698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MagickCache >= 0.9.3" >&5
33699 printf %s "checking for MagickCache >= 0.9.3... " >&6; }
33700
33701 if test -n "$MagickCache_CFLAGS"; then
33702 pkg_cv_MagickCache_CFLAGS="$MagickCache_CFLAGS"
33703 elif test -n "$PKG_CONFIG"; then
33704 if test -n "$PKG_CONFIG" && \
33705 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"MagickCache >= 0.9.3\""; } >&5
33706 ($PKG_CONFIG --exists --print-errors "MagickCache >= 0.9.3") 2>&5
33707 ac_status=$?
33708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33709 test $ac_status = 0; }; then
33710 pkg_cv_MagickCache_CFLAGS=`$PKG_CONFIG --cflags "MagickCache >= 0.9.3" 2>/dev/null`
33711 test "x$?" != "x0" && pkg_failed=yes
33712 else
33713 pkg_failed=yes
33714 fi
33715 else
33716 pkg_failed=untried
33717 fi
33718 if test -n "$MagickCache_LIBS"; then
33719 pkg_cv_MagickCache_LIBS="$MagickCache_LIBS"
33720 elif test -n "$PKG_CONFIG"; then
33721 if test -n "$PKG_CONFIG" && \
33722 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"MagickCache >= 0.9.3\""; } >&5
33723 ($PKG_CONFIG --exists --print-errors "MagickCache >= 0.9.3") 2>&5
33724 ac_status=$?
33725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33726 test $ac_status = 0; }; then
33727 pkg_cv_MagickCache_LIBS=`$PKG_CONFIG --libs "MagickCache >= 0.9.3" 2>/dev/null`
33728 test "x$?" != "x0" && pkg_failed=yes
33729 else
33730 pkg_failed=yes
33731 fi
33732 else
33733 pkg_failed=untried
33734 fi
33735
33736
33737
33738 if test $pkg_failed = yes; then
33739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33740 printf "%s\n" "no" >&6; }
33741
33742 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33743 _pkg_short_errors_supported=yes
33744 else
33745 _pkg_short_errors_supported=no
33746 fi
33747 if test $_pkg_short_errors_supported = yes; then
33748 MagickCache_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "MagickCache >= 0.9.3" 2>&1`
33749 else
33750 MagickCache_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "MagickCache >= 0.9.3" 2>&1`
33751 fi
33752 # Put the nasty error message in config.log where it belongs
33753 echo "$MagickCache_PKG_ERRORS" >&5
33754
33755 have_dmr=no
33756 elif test $pkg_failed = untried; then
33757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33758 printf "%s\n" "no" >&6; }
33759 have_dmr=no
33760 else
33761 MagickCache_CFLAGS=$pkg_cv_MagickCache_CFLAGS
33762 MagickCache_LIBS=$pkg_cv_MagickCache_LIBS
33763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33764 printf "%s\n" "yes" >&6; }
33765 have_dmr=yes
33766 fi
33767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
33768 printf "%s\n" "" >&6; }
33769 fi
33770
33771 if test "$have_dmr" = 'yes'; then
33772
33773 printf "%s\n" "#define DMR_DELEGATE 1" >>confdefs.h
33774
33775 DMR_CFLAGS="$MagickCache_CFLAGS"
33776 DMR_LIBS="$MagickCache_LIBS"
33777 CFLAGS="$DMR_CFLAGS $CFLAGS"
33778 fi
33779
33780 if test "$have_dmr" = 'yes'; then
33781 DMR_DELEGATE_TRUE=
33782 DMR_DELEGATE_FALSE='#'
33783 else
33784 DMR_DELEGATE_TRUE='#'
33785 DMR_DELEGATE_FALSE=
33786 fi
33787
33788
33789
33790
33791
33792 #
33793 # Check for the HEIC delegate library.
33794 #
33795
33796 # Check whether --with-heic was given.
33797 if test ${with_heic+y}
33798 then :
33799 withval=$with_heic; with_heic=$withval
33800 else case e in #(
33801 e) with_heic='yes' ;;
33802 esac
33803 fi
33804
33805
33806 if test "$with_heic" != 'yes'; then
33807 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-heic=$with_heic "
33808 fi
33809
33810 have_heic='no'
33811 HEIF_CFLAGS=""
33812 HEIF_LIBS=""
33813 HEIF_PKG=""
33814 if test "x$with_heic" = "xyes"; then
33815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33816 printf "%s\n" "-------------------------------------------------------------" >&6; }
33817
33818 pkg_failed=no
33819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libheif >= 1.11.0" >&5
33820 printf %s "checking for libheif >= 1.11.0... " >&6; }
33821
33822 if test -n "$HEIF_CFLAGS"; then
33823 pkg_cv_HEIF_CFLAGS="$HEIF_CFLAGS"
33824 elif test -n "$PKG_CONFIG"; then
33825 if test -n "$PKG_CONFIG" && \
33826 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libheif >= 1.11.0\""; } >&5
33827 ($PKG_CONFIG --exists --print-errors "libheif >= 1.11.0") 2>&5
33828 ac_status=$?
33829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33830 test $ac_status = 0; }; then
33831 pkg_cv_HEIF_CFLAGS=`$PKG_CONFIG --cflags "libheif >= 1.11.0" 2>/dev/null`
33832 test "x$?" != "x0" && pkg_failed=yes
33833 else
33834 pkg_failed=yes
33835 fi
33836 else
33837 pkg_failed=untried
33838 fi
33839 if test -n "$HEIF_LIBS"; then
33840 pkg_cv_HEIF_LIBS="$HEIF_LIBS"
33841 elif test -n "$PKG_CONFIG"; then
33842 if test -n "$PKG_CONFIG" && \
33843 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libheif >= 1.11.0\""; } >&5
33844 ($PKG_CONFIG --exists --print-errors "libheif >= 1.11.0") 2>&5
33845 ac_status=$?
33846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33847 test $ac_status = 0; }; then
33848 pkg_cv_HEIF_LIBS=`$PKG_CONFIG --libs "libheif >= 1.11.0" 2>/dev/null`
33849 test "x$?" != "x0" && pkg_failed=yes
33850 else
33851 pkg_failed=yes
33852 fi
33853 else
33854 pkg_failed=untried
33855 fi
33856
33857
33858
33859 if test $pkg_failed = yes; then
33860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33861 printf "%s\n" "no" >&6; }
33862
33863 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33864 _pkg_short_errors_supported=yes
33865 else
33866 _pkg_short_errors_supported=no
33867 fi
33868 if test $_pkg_short_errors_supported = yes; then
33869 HEIF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libheif >= 1.11.0" 2>&1`
33870 else
33871 HEIF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libheif >= 1.11.0" 2>&1`
33872 fi
33873 # Put the nasty error message in config.log where it belongs
33874 echo "$HEIF_PKG_ERRORS" >&5
33875
33876 have_heic=no
33877 elif test $pkg_failed = untried; then
33878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33879 printf "%s\n" "no" >&6; }
33880 have_heic=no
33881 else
33882 HEIF_CFLAGS=$pkg_cv_HEIF_CFLAGS
33883 HEIF_LIBS=$pkg_cv_HEIF_LIBS
33884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33885 printf "%s\n" "yes" >&6; }
33886 have_heic=yes
33887 fi
33888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
33889 printf "%s\n" "" >&6; }
33890 fi
33891
33892 if test "$have_heic" = 'yes'; then
33893
33894 printf "%s\n" "#define HEIC_DELEGATE 1" >>confdefs.h
33895
33896 CFLAGS="$HEIF_CFLAGS $CFLAGS"
33897 fi
33898
33899 if test "$have_heic" = 'yes'; then
33900 HEIC_DELEGATE_TRUE=
33901 HEIC_DELEGATE_FALSE='#'
33902 else
33903 HEIC_DELEGATE_TRUE='#'
33904 HEIC_DELEGATE_FALSE=
33905 fi
33906
33907
33908
33909
33910
33911 #
33912 # Check for JBIG delegate library.
33913 #
33914
33915 # Check whether --with-jbig was given.
33916 if test ${with_jbig+y}
33917 then :
33918 withval=$with_jbig; with_jbig=$withval
33919 else case e in #(
33920 e) with_jbig='yes' ;;
33921 esac
33922 fi
33923
33924
33925 have_jbig='no'
33926 JBIG_LIBS=''
33927 if test "$with_jbig" != 'no'; then
33928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33929 printf "%s\n" "-------------------------------------------------------------" >&6; }
33930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
33931 printf %s "checking for JBIG... " >&6; }
33932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
33933 printf "%s\n" "" >&6; }
33934 failed=0
33935 passed=0
33936 ac_fn_c_check_header_compile "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
33937 if test "x$ac_cv_header_jbig_h" = xyes
33938 then :
33939 passed=`expr $passed + 1`
33940 else case e in #(
33941 e) failed=`expr $failed + 1` ;;
33942 esac
33943 fi
33944
33945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
33946 printf %s "checking for jbg_dec_init in -ljbig... " >&6; }
33947 if test ${ac_cv_lib_jbig_jbg_dec_init+y}
33948 then :
33949 printf %s "(cached) " >&6
33950 else case e in #(
33951 e) ac_check_lib_save_LIBS=$LIBS
33952 LIBS="-ljbig $LIBS"
33953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33954 /* end confdefs.h. */
33955
33956 /* Override any GCC internal prototype to avoid an error.
33957 Use char because int might match the return type of a GCC
33958 builtin and then its argument prototype would still apply.
33959 The 'extern "C"' is for builds by C++ compilers;
33960 although this is not generally supported in C code supporting it here
33961 has little cost and some practical benefit (sr 110532). */
33962 #ifdef __cplusplus
33963 extern "C"
33964 #endif
33965 char jbg_dec_init (void);
33966 int
33967 main (void)
33968 {
33969 return jbg_dec_init ();
33970 ;
33971 return 0;
33972 }
33973 _ACEOF
33974 if ac_fn_c_try_link "$LINENO"
33975 then :
33976 ac_cv_lib_jbig_jbg_dec_init=yes
33977 else case e in #(
33978 e) ac_cv_lib_jbig_jbg_dec_init=no ;;
33979 esac
33980 fi
33981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33982 conftest$ac_exeext conftest.$ac_ext
33983 LIBS=$ac_check_lib_save_LIBS ;;
33984 esac
33985 fi
33986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
33987 printf "%s\n" "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
33988 if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes
33989 then :
33990 passed=`expr $passed + 1`
33991 else case e in #(
33992 e) failed=`expr $failed + 1` ;;
33993 esac
33994 fi
33995
33996
33997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
33998 printf %s "checking if JBIG package is complete... " >&6; }
33999 if test $passed -gt 0; then
34000 if test $failed -gt 0; then
34001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
34002 printf "%s\n" "no -- some components failed test" >&6; }
34003 have_jbig='no (failed tests)'
34004 else
34005 JBIG_LIBS='-ljbig'
34006 LIBS="$JBIG_LIBS $LIBS"
34007
34008 printf "%s\n" "#define JBIG_DELEGATE 1" >>confdefs.h
34009
34010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34011 printf "%s\n" "yes" >&6; }
34012 have_jbig='yes'
34013 fi
34014 else
34015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34016 printf "%s\n" "no" >&6; }
34017 fi
34018 fi
34019 if test "$have_jbig" = 'yes'; then
34020 JBIG_DELEGATE_TRUE=
34021 JBIG_DELEGATE_FALSE='#'
34022 else
34023 JBIG_DELEGATE_TRUE='#'
34024 JBIG_DELEGATE_FALSE=
34025 fi
34026
34027
34028
34029
34030 #
34031 # Check for JPEG delegate library.
34032 #
34033
34034 # Check whether --with-jpeg was given.
34035 if test ${with_jpeg+y}
34036 then :
34037 withval=$with_jpeg; with_jpeg=$withval
34038 else case e in #(
34039 e) with_jpeg='yes' ;;
34040 esac
34041 fi
34042
34043
34044 if test "$with_jpeg" != 'yes'; then
34045 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
34046 fi
34047
34048 have_jpeg='no'
34049 JPEG_LIBS=''
34050 if test "$with_jpeg" != 'no'; then
34051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34052 printf "%s\n" "-------------------------------------------------------------" >&6; }
34053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
34054 printf %s "checking for JPEG... " >&6; }
34055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
34056 printf "%s\n" "" >&6; }
34057 failed=0
34058 passed=0
34059
34060
34061 pkg_failed=no
34062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libjpeg >= 2.0.0" >&5
34063 printf %s "checking for libjpeg >= 2.0.0... " >&6; }
34064
34065 if test -n "$JPEG_CFLAGS"; then
34066 pkg_cv_JPEG_CFLAGS="$JPEG_CFLAGS"
34067 elif test -n "$PKG_CONFIG"; then
34068 if test -n "$PKG_CONFIG" && \
34069 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjpeg >= 2.0.0\""; } >&5
34070 ($PKG_CONFIG --exists --print-errors "libjpeg >= 2.0.0") 2>&5
34071 ac_status=$?
34072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34073 test $ac_status = 0; }; then
34074 pkg_cv_JPEG_CFLAGS=`$PKG_CONFIG --cflags "libjpeg >= 2.0.0" 2>/dev/null`
34075 test "x$?" != "x0" && pkg_failed=yes
34076 else
34077 pkg_failed=yes
34078 fi
34079 else
34080 pkg_failed=untried
34081 fi
34082 if test -n "$JPEG_LIBS"; then
34083 pkg_cv_JPEG_LIBS="$JPEG_LIBS"
34084 elif test -n "$PKG_CONFIG"; then
34085 if test -n "$PKG_CONFIG" && \
34086 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjpeg >= 2.0.0\""; } >&5
34087 ($PKG_CONFIG --exists --print-errors "libjpeg >= 2.0.0") 2>&5
34088 ac_status=$?
34089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34090 test $ac_status = 0; }; then
34091 pkg_cv_JPEG_LIBS=`$PKG_CONFIG --libs "libjpeg >= 2.0.0" 2>/dev/null`
34092 test "x$?" != "x0" && pkg_failed=yes
34093 else
34094 pkg_failed=yes
34095 fi
34096 else
34097 pkg_failed=untried
34098 fi
34099
34100
34101
34102 if test $pkg_failed = yes; then
34103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34104 printf "%s\n" "no" >&6; }
34105
34106 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34107 _pkg_short_errors_supported=yes
34108 else
34109 _pkg_short_errors_supported=no
34110 fi
34111 if test $_pkg_short_errors_supported = yes; then
34112 JPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libjpeg >= 2.0.0" 2>&1`
34113 else
34114 JPEG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libjpeg >= 2.0.0" 2>&1`
34115 fi
34116 # Put the nasty error message in config.log where it belongs
34117 echo "$JPEG_PKG_ERRORS" >&5
34118
34119 have_jpeg=no
34120 elif test $pkg_failed = untried; then
34121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34122 printf "%s\n" "no" >&6; }
34123 have_jpeg=no
34124 else
34125 JPEG_CFLAGS=$pkg_cv_JPEG_CFLAGS
34126 JPEG_LIBS=$pkg_cv_JPEG_LIBS
34127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34128 printf "%s\n" "yes" >&6; }
34129 have_jpeg=yes
34130 fi
34131 CFLAGS="$CFLAGS $JPEG_CFLAGS"
34132 LIBS="$LIBS $JPEG_LIBS"
34133
34134 ac_fn_c_check_header_compile "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
34135 if test "x$ac_cv_header_jconfig_h" = xyes
34136 then :
34137 passed=`expr $passed + 1`
34138 else case e in #(
34139 e) failed=`expr $failed + 1` ;;
34140 esac
34141 fi
34142
34143 ac_fn_c_check_header_compile "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
34144 if test "x$ac_cv_header_jerror_h" = xyes
34145 then :
34146 passed=`expr $passed + 1`
34147 else case e in #(
34148 e) failed=`expr $failed + 1` ;;
34149 esac
34150 fi
34151
34152 ac_fn_c_check_header_compile "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
34153 if test "x$ac_cv_header_jmorecfg_h" = xyes
34154 then :
34155 passed=`expr $passed + 1`
34156 else case e in #(
34157 e) failed=`expr $failed + 1` ;;
34158 esac
34159 fi
34160
34161 ac_fn_c_check_header_compile "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
34162 if test "x$ac_cv_header_jpeglib_h" = xyes
34163 then :
34164 passed=`expr $passed + 1`
34165 else case e in #(
34166 e) failed=`expr $failed + 1` ;;
34167 esac
34168 fi
34169
34170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
34171 printf %s "checking for jpeg_read_header in -ljpeg... " >&6; }
34172 if test ${ac_cv_lib_jpeg_jpeg_read_header+y}
34173 then :
34174 printf %s "(cached) " >&6
34175 else case e in #(
34176 e) ac_check_lib_save_LIBS=$LIBS
34177 LIBS="-ljpeg $LIBS"
34178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34179 /* end confdefs.h. */
34180
34181 /* Override any GCC internal prototype to avoid an error.
34182 Use char because int might match the return type of a GCC
34183 builtin and then its argument prototype would still apply.
34184 The 'extern "C"' is for builds by C++ compilers;
34185 although this is not generally supported in C code supporting it here
34186 has little cost and some practical benefit (sr 110532). */
34187 #ifdef __cplusplus
34188 extern "C"
34189 #endif
34190 char jpeg_read_header (void);
34191 int
34192 main (void)
34193 {
34194 return jpeg_read_header ();
34195 ;
34196 return 0;
34197 }
34198 _ACEOF
34199 if ac_fn_c_try_link "$LINENO"
34200 then :
34201 ac_cv_lib_jpeg_jpeg_read_header=yes
34202 else case e in #(
34203 e) ac_cv_lib_jpeg_jpeg_read_header=no ;;
34204 esac
34205 fi
34206 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34207 conftest$ac_exeext conftest.$ac_ext
34208 LIBS=$ac_check_lib_save_LIBS ;;
34209 esac
34210 fi
34211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
34212 printf "%s\n" "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
34213 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes
34214 then :
34215 passed=`expr $passed + 1`
34216 else case e in #(
34217 e) failed=`expr $failed + 1` ;;
34218 esac
34219 fi
34220
34221
34222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
34223 printf %s "checking if JPEG package is complete... " >&6; }
34224 if test $passed -gt 0; then
34225 if test $failed -gt 0; then
34226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
34227 printf "%s\n" "no -- some components failed test" >&6; }
34228 have_jpeg='no (failed tests)'
34229 else
34230 if test -z "$JPEG_LIBS"; then
34231 JPEG_LIBS='-ljpeg'
34232 fi
34233 LIBS="$JPEG_LIBS $LIBS"
34234
34235 printf "%s\n" "#define JPEG_DELEGATE 1" >>confdefs.h
34236
34237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34238 printf "%s\n" "yes" >&6; }
34239 have_jpeg='yes'
34240 fi
34241 ac_fn_c_check_func "$LINENO" "jpeg12_read_scanlines" "ac_cv_func_jpeg12_read_scanlines"
34242 if test "x$ac_cv_func_jpeg12_read_scanlines" = xyes
34243 then :
34244 printf "%s\n" "#define HAVE_JPEG12_READ_SCANLINES 1" >>confdefs.h
34245
34246 fi
34247 ac_fn_c_check_func "$LINENO" "jpeg12_write_scanlines" "ac_cv_func_jpeg12_write_scanlines"
34248 if test "x$ac_cv_func_jpeg12_write_scanlines" = xyes
34249 then :
34250 printf "%s\n" "#define HAVE_JPEG12_WRITE_SCANLINES 1" >>confdefs.h
34251
34252 fi
34253 ac_fn_c_check_func "$LINENO" "jpeg16_read_scanlines" "ac_cv_func_jpeg16_read_scanlines"
34254 if test "x$ac_cv_func_jpeg16_read_scanlines" = xyes
34255 then :
34256 printf "%s\n" "#define HAVE_JPEG16_READ_SCANLINES 1" >>confdefs.h
34257
34258 fi
34259 ac_fn_c_check_func "$LINENO" "jpeg16_write_scanlines" "ac_cv_func_jpeg16_write_scanlines"
34260 if test "x$ac_cv_func_jpeg16_write_scanlines" = xyes
34261 then :
34262 printf "%s\n" "#define HAVE_JPEG16_WRITE_SCANLINES 1" >>confdefs.h
34263
34264 fi
34265 ac_fn_c_check_func "$LINENO" "jpeg_enable_lossless" "ac_cv_func_jpeg_enable_lossless"
34266 if test "x$ac_cv_func_jpeg_enable_lossless" = xyes
34267 then :
34268 printf "%s\n" "#define HAVE_JPEG_ENABLE_LOSSLESS 1" >>confdefs.h
34269
34270 fi
34271 ac_fn_c_check_func "$LINENO" "jpeg_simple_lossless" "ac_cv_func_jpeg_simple_lossless"
34272 if test "x$ac_cv_func_jpeg_simple_lossless" = xyes
34273 then :
34274 printf "%s\n" "#define HAVE_JPEG_SIMPLE_LOSSLESS 1" >>confdefs.h
34275
34276 fi
34277
34278 else
34279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34280 printf "%s\n" "no" >&6; }
34281 fi
34282 fi
34283 if test "$have_jpeg" = 'yes'; then
34284 JPEG_DELEGATE_TRUE=
34285 JPEG_DELEGATE_FALSE='#'
34286 else
34287 JPEG_DELEGATE_TRUE='#'
34288 JPEG_DELEGATE_FALSE=
34289 fi
34290
34291
34292
34293
34294
34295 #
34296 # Check for JPEG-XL delegate library.
34297 #
34298
34299 # Check whether --with-jxl was given.
34300 if test ${with_jxl+y}
34301 then :
34302 withval=$with_jxl; with_jxl=$withval
34303 else case e in #(
34304 e) with_jxl='yes' ;;
34305 esac
34306 fi
34307
34308
34309 # Check for the JPEG-XL library.
34310 have_jxl='no'
34311 JXL_CFLAGS=''
34312 JXL_LIBS=''
34313 JXL_PKG=''
34314 if test "$with_jxl" != 'no'; then
34315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34316 printf "%s\n" "-------------------------------------------------------------" >&6; }
34317
34318 pkg_failed=no
34319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libjxl >= 0.7.0 libjxl_threads" >&5
34320 printf %s "checking for libjxl >= 0.7.0 libjxl_threads... " >&6; }
34321
34322 if test -n "$JXL_CFLAGS"; then
34323 pkg_cv_JXL_CFLAGS="$JXL_CFLAGS"
34324 elif test -n "$PKG_CONFIG"; then
34325 if test -n "$PKG_CONFIG" && \
34326 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjxl >= 0.7.0 libjxl_threads\""; } >&5
34327 ($PKG_CONFIG --exists --print-errors "libjxl >= 0.7.0 libjxl_threads") 2>&5
34328 ac_status=$?
34329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34330 test $ac_status = 0; }; then
34331 pkg_cv_JXL_CFLAGS=`$PKG_CONFIG --cflags "libjxl >= 0.7.0 libjxl_threads" 2>/dev/null`
34332 test "x$?" != "x0" && pkg_failed=yes
34333 else
34334 pkg_failed=yes
34335 fi
34336 else
34337 pkg_failed=untried
34338 fi
34339 if test -n "$JXL_LIBS"; then
34340 pkg_cv_JXL_LIBS="$JXL_LIBS"
34341 elif test -n "$PKG_CONFIG"; then
34342 if test -n "$PKG_CONFIG" && \
34343 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjxl >= 0.7.0 libjxl_threads\""; } >&5
34344 ($PKG_CONFIG --exists --print-errors "libjxl >= 0.7.0 libjxl_threads") 2>&5
34345 ac_status=$?
34346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34347 test $ac_status = 0; }; then
34348 pkg_cv_JXL_LIBS=`$PKG_CONFIG --libs "libjxl >= 0.7.0 libjxl_threads" 2>/dev/null`
34349 test "x$?" != "x0" && pkg_failed=yes
34350 else
34351 pkg_failed=yes
34352 fi
34353 else
34354 pkg_failed=untried
34355 fi
34356
34357
34358
34359 if test $pkg_failed = yes; then
34360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34361 printf "%s\n" "no" >&6; }
34362
34363 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34364 _pkg_short_errors_supported=yes
34365 else
34366 _pkg_short_errors_supported=no
34367 fi
34368 if test $_pkg_short_errors_supported = yes; then
34369 JXL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libjxl >= 0.7.0 libjxl_threads" 2>&1`
34370 else
34371 JXL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libjxl >= 0.7.0 libjxl_threads" 2>&1`
34372 fi
34373 # Put the nasty error message in config.log where it belongs
34374 echo "$JXL_PKG_ERRORS" >&5
34375
34376 have_jxl=no
34377 elif test $pkg_failed = untried; then
34378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34379 printf "%s\n" "no" >&6; }
34380 have_jxl=no
34381 else
34382 JXL_CFLAGS=$pkg_cv_JXL_CFLAGS
34383 JXL_LIBS=$pkg_cv_JXL_LIBS
34384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34385 printf "%s\n" "yes" >&6; }
34386 have_jxl=yes
34387 fi
34388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
34389 printf "%s\n" "" >&6; }
34390 fi
34391
34392 if test "$have_jxl" = 'yes'; then
34393
34394 printf "%s\n" "#define JXL_DELEGATE 1" >>confdefs.h
34395
34396 CFLAGS="$JXL_CFLAGS $CFLAGS"
34397 fi
34398
34399 if test "$have_jxl" = 'yes'; then
34400 JXL_DELEGATE_TRUE=
34401 JXL_DELEGATE_FALSE='#'
34402 else
34403 JXL_DELEGATE_TRUE='#'
34404 JXL_DELEGATE_FALSE=
34405 fi
34406
34407
34408
34409
34410
34411 #
34412 # Check for LCMS delegate library.
34413 #
34414
34415 # Check whether --with-lcms was given.
34416 if test ${with_lcms+y}
34417 then :
34418 withval=$with_lcms; with_lcms=$withval
34419 else case e in #(
34420 e) with_lcms='yes' ;;
34421 esac
34422 fi
34423
34424 if test "$with_lcms" != 'yes' ; then
34425 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
34426 fi
34427
34428 have_lcms='no'
34429 LCMS_CFLAGS=""
34430 LCMS_LIBS=""
34431 LCMS_PKG=""
34432 if test "x$with_lcms" = "xyes"; then
34433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34434 printf "%s\n" "-------------------------------------------------------------" >&6; }
34435
34436 pkg_failed=no
34437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lcms2 >= 2.0.0" >&5
34438 printf %s "checking for lcms2 >= 2.0.0... " >&6; }
34439
34440 if test -n "$LCMS2_CFLAGS"; then
34441 pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
34442 elif test -n "$PKG_CONFIG"; then
34443 if test -n "$PKG_CONFIG" && \
34444 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
34445 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
34446 ac_status=$?
34447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34448 test $ac_status = 0; }; then
34449 pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2 >= 2.0.0" 2>/dev/null`
34450 test "x$?" != "x0" && pkg_failed=yes
34451 else
34452 pkg_failed=yes
34453 fi
34454 else
34455 pkg_failed=untried
34456 fi
34457 if test -n "$LCMS2_LIBS"; then
34458 pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
34459 elif test -n "$PKG_CONFIG"; then
34460 if test -n "$PKG_CONFIG" && \
34461 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
34462 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
34463 ac_status=$?
34464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34465 test $ac_status = 0; }; then
34466 pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2 >= 2.0.0" 2>/dev/null`
34467 test "x$?" != "x0" && pkg_failed=yes
34468 else
34469 pkg_failed=yes
34470 fi
34471 else
34472 pkg_failed=untried
34473 fi
34474
34475
34476
34477 if test $pkg_failed = yes; then
34478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34479 printf "%s\n" "no" >&6; }
34480
34481 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34482 _pkg_short_errors_supported=yes
34483 else
34484 _pkg_short_errors_supported=no
34485 fi
34486 if test $_pkg_short_errors_supported = yes; then
34487 LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
34488 else
34489 LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
34490 fi
34491 # Put the nasty error message in config.log where it belongs
34492 echo "$LCMS2_PKG_ERRORS" >&5
34493
34494 have_lcms=no
34495 elif test $pkg_failed = untried; then
34496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34497 printf "%s\n" "no" >&6; }
34498 have_lcms=no
34499 else
34500 LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
34501 LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
34502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34503 printf "%s\n" "yes" >&6; }
34504 have_lcms=yes
34505 fi
34506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
34507 printf "%s\n" "" >&6; }
34508 fi
34509
34510 if test "$have_lcms" = 'yes'; then
34511
34512 printf "%s\n" "#define LCMS_DELEGATE 1" >>confdefs.h
34513
34514 LCMS_CFLAGS="$LCMS2_CFLAGS"
34515 LCMS_LIBS="$LCMS2_LIBS"
34516 CFLAGS="$LCMS2_CFLAGS $CFLAGS"
34517 ac_fn_c_check_header_compile "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
34518 if test "x$ac_cv_header_lcms2_lcms2_h" = xyes
34519 then :
34520 have_lcms_header='yes'
34521 fi
34522
34523 if test "$have_lcms_header" = 'yes'; then
34524
34525 printf "%s\n" "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
34526
34527 else
34528
34529 printf "%s\n" "#define HAVE_LCMS2_H 1" >>confdefs.h
34530
34531 fi
34532 fi
34533
34534 if test "$have_lcms" = 'yes'; then
34535 LCMS_DELEGATE_TRUE=
34536 LCMS_DELEGATE_FALSE='#'
34537 else
34538 LCMS_DELEGATE_TRUE='#'
34539 LCMS_DELEGATE_FALSE=
34540 fi
34541
34542
34543
34544
34545
34546 #
34547 # Check for the OpenJP2 delegate library.
34548 #
34549
34550 # Check whether --with-openjp2 was given.
34551 if test ${with_openjp2+y}
34552 then :
34553 withval=$with_openjp2; with_openjp2=$withval
34554 else case e in #(
34555 e) with_openjp2='yes' ;;
34556 esac
34557 fi
34558
34559
34560 if test "$with_openjp2" != 'yes'; then
34561 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
34562 fi
34563
34564 have_openjp2='no'
34565 LIBOPENJP2_CFLAGS=""
34566 LIBOPENJP2_LIBS=""
34567 LIBOPENJP2_PKG=""
34568 if test "$with_openjp2" != 'no'; then
34569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34570 printf "%s\n" "-------------------------------------------------------------" >&6; }
34571
34572 pkg_failed=no
34573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libopenjp2 >= 2.1.0" >&5
34574 printf %s "checking for libopenjp2 >= 2.1.0... " >&6; }
34575
34576 if test -n "$LIBOPENJP2_CFLAGS"; then
34577 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
34578 elif test -n "$PKG_CONFIG"; then
34579 if test -n "$PKG_CONFIG" && \
34580 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
34581 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
34582 ac_status=$?
34583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34584 test $ac_status = 0; }; then
34585 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
34586 test "x$?" != "x0" && pkg_failed=yes
34587 else
34588 pkg_failed=yes
34589 fi
34590 else
34591 pkg_failed=untried
34592 fi
34593 if test -n "$LIBOPENJP2_LIBS"; then
34594 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
34595 elif test -n "$PKG_CONFIG"; then
34596 if test -n "$PKG_CONFIG" && \
34597 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
34598 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
34599 ac_status=$?
34600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34601 test $ac_status = 0; }; then
34602 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
34603 test "x$?" != "x0" && pkg_failed=yes
34604 else
34605 pkg_failed=yes
34606 fi
34607 else
34608 pkg_failed=untried
34609 fi
34610
34611
34612
34613 if test $pkg_failed = yes; then
34614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34615 printf "%s\n" "no" >&6; }
34616
34617 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34618 _pkg_short_errors_supported=yes
34619 else
34620 _pkg_short_errors_supported=no
34621 fi
34622 if test $_pkg_short_errors_supported = yes; then
34623 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
34624 else
34625 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
34626 fi
34627 # Put the nasty error message in config.log where it belongs
34628 echo "$LIBOPENJP2_PKG_ERRORS" >&5
34629
34630 have_openjp2=no
34631 elif test $pkg_failed = untried; then
34632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34633 printf "%s\n" "no" >&6; }
34634 have_openjp2=no
34635 else
34636 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
34637 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
34638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34639 printf "%s\n" "yes" >&6; }
34640 have_openjp2=yes
34641 fi
34642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
34643 printf "%s\n" "" >&6; }
34644 fi
34645
34646 if test "$have_openjp2" = 'yes'; then
34647
34648 printf "%s\n" "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
34649
34650 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
34651 fi
34652
34653 if test "$have_openjp2" = 'yes'; then
34654 LIBOPENJP2_DELEGATE_TRUE=
34655 LIBOPENJP2_DELEGATE_FALSE='#'
34656 else
34657 LIBOPENJP2_DELEGATE_TRUE='#'
34658 LIBOPENJP2_DELEGATE_FALSE=
34659 fi
34660
34661
34662
34663
34664
34665
34666 #
34667 # Check for the LQR (Liquid Rescale) delegate library.
34668 #
34669
34670 # Check whether --with-lqr was given.
34671 if test ${with_lqr+y}
34672 then :
34673 withval=$with_lqr; with_lqr=$withval
34674 else case e in #(
34675 e) with_lqr='yes' ;;
34676 esac
34677 fi
34678
34679
34680 if test "$with_lqr" != 'yes'; then
34681 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
34682 fi
34683
34684 have_lqr='no'
34685 LQR_CFLAGS=""
34686 LQR_LIBS=""
34687 LQR_PKG=""
34688 if test "x$with_lqr" = "xyes"; then
34689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34690 printf "%s\n" "-------------------------------------------------------------" >&6; }
34691
34692 pkg_failed=no
34693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lqr-1 >= 0.1.0" >&5
34694 printf %s "checking for lqr-1 >= 0.1.0... " >&6; }
34695
34696 if test -n "$LQR_CFLAGS"; then
34697 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
34698 elif test -n "$PKG_CONFIG"; then
34699 if test -n "$PKG_CONFIG" && \
34700 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
34701 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
34702 ac_status=$?
34703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34704 test $ac_status = 0; }; then
34705 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
34706 test "x$?" != "x0" && pkg_failed=yes
34707 else
34708 pkg_failed=yes
34709 fi
34710 else
34711 pkg_failed=untried
34712 fi
34713 if test -n "$LQR_LIBS"; then
34714 pkg_cv_LQR_LIBS="$LQR_LIBS"
34715 elif test -n "$PKG_CONFIG"; then
34716 if test -n "$PKG_CONFIG" && \
34717 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
34718 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
34719 ac_status=$?
34720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34721 test $ac_status = 0; }; then
34722 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
34723 test "x$?" != "x0" && pkg_failed=yes
34724 else
34725 pkg_failed=yes
34726 fi
34727 else
34728 pkg_failed=untried
34729 fi
34730
34731
34732
34733 if test $pkg_failed = yes; then
34734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34735 printf "%s\n" "no" >&6; }
34736
34737 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34738 _pkg_short_errors_supported=yes
34739 else
34740 _pkg_short_errors_supported=no
34741 fi
34742 if test $_pkg_short_errors_supported = yes; then
34743 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
34744 else
34745 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
34746 fi
34747 # Put the nasty error message in config.log where it belongs
34748 echo "$LQR_PKG_ERRORS" >&5
34749
34750 have_lqr=no
34751 elif test $pkg_failed = untried; then
34752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34753 printf "%s\n" "no" >&6; }
34754 have_lqr=no
34755 else
34756 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
34757 LQR_LIBS=$pkg_cv_LQR_LIBS
34758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34759 printf "%s\n" "yes" >&6; }
34760 have_lqr=yes
34761 fi
34762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
34763 printf "%s\n" "" >&6; }
34764 fi
34765
34766 if test "$have_lqr" = 'yes'; then
34767
34768 printf "%s\n" "#define LQR_DELEGATE 1" >>confdefs.h
34769
34770 CFLAGS="$LQR_CFLAGS $CFLAGS"
34771 fi
34772
34773 if test "$have_lqr" = 'yes'; then
34774 LQR_DELEGATE_TRUE=
34775 LQR_DELEGATE_FALSE='#'
34776 else
34777 LQR_DELEGATE_TRUE='#'
34778 LQR_DELEGATE_FALSE=
34779 fi
34780
34781
34782
34783
34784
34785 # Disable LZMA (lzma library)
34786
34787 # Check whether --with-lzma was given.
34788 if test ${with_lzma+y}
34789 then :
34790 withval=$with_lzma; with_lzma=$withval
34791 else case e in #(
34792 e) with_lzma='yes' ;;
34793 esac
34794 fi
34795
34796 if test "$with_lzma" != 'yes' ; then
34797 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
34798 fi
34799
34800 LZMA_PKG=""
34801 if test "x$with_lzma" = "xyes"; then
34802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34803 printf "%s\n" "-------------------------------------------------------------" >&6; }
34804
34805 pkg_failed=no
34806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liblzma >= 2.9.0" >&5
34807 printf %s "checking for liblzma >= 2.9.0... " >&6; }
34808
34809 if test -n "$LZMA_CFLAGS"; then
34810 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
34811 elif test -n "$PKG_CONFIG"; then
34812 if test -n "$PKG_CONFIG" && \
34813 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
34814 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
34815 ac_status=$?
34816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34817 test $ac_status = 0; }; then
34818 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
34819 test "x$?" != "x0" && pkg_failed=yes
34820 else
34821 pkg_failed=yes
34822 fi
34823 else
34824 pkg_failed=untried
34825 fi
34826 if test -n "$LZMA_LIBS"; then
34827 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
34828 elif test -n "$PKG_CONFIG"; then
34829 if test -n "$PKG_CONFIG" && \
34830 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
34831 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
34832 ac_status=$?
34833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34834 test $ac_status = 0; }; then
34835 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
34836 test "x$?" != "x0" && pkg_failed=yes
34837 else
34838 pkg_failed=yes
34839 fi
34840 else
34841 pkg_failed=untried
34842 fi
34843
34844
34845
34846 if test $pkg_failed = yes; then
34847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34848 printf "%s\n" "no" >&6; }
34849
34850 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34851 _pkg_short_errors_supported=yes
34852 else
34853 _pkg_short_errors_supported=no
34854 fi
34855 if test $_pkg_short_errors_supported = yes; then
34856 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
34857 else
34858 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
34859 fi
34860 # Put the nasty error message in config.log where it belongs
34861 echo "$LZMA_PKG_ERRORS" >&5
34862
34863 have_lzma=no
34864 elif test $pkg_failed = untried; then
34865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34866 printf "%s\n" "no" >&6; }
34867 have_lzma=no
34868 else
34869 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
34870 LZMA_LIBS=$pkg_cv_LZMA_LIBS
34871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34872 printf "%s\n" "yes" >&6; }
34873 have_lzma=yes
34874 fi
34875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
34876 printf "%s\n" "" >&6; }
34877 else
34878 have_lzma=no
34879 fi
34880
34881 if test "$have_lzma" = 'yes'; then
34882
34883 printf "%s\n" "#define LZMA_DELEGATE 1" >>confdefs.h
34884
34885 CFLAGS="$LZMA_CFLAGS $CFLAGS"
34886 fi
34887
34888 if test "$have_lzma" = 'yes'; then
34889 LZMA_DELEGATE_TRUE=
34890 LZMA_DELEGATE_FALSE='#'
34891 else
34892 LZMA_DELEGATE_TRUE='#'
34893 LZMA_DELEGATE_FALSE=
34894 fi
34895
34896
34897
34898
34899
34900 #
34901 # Check for the OpenEXR delegate library.
34902 #
34903
34904 # Check whether --with-openexr was given.
34905 if test ${with_openexr+y}
34906 then :
34907 withval=$with_openexr; with_openexr=$withval
34908 else case e in #(
34909 e) with_openexr='yes' ;;
34910 esac
34911 fi
34912
34913
34914 if test "$with_openexr" != 'yes'; then
34915 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
34916 fi
34917
34918 have_openexr='no'
34919 OPENEXR_CFLAGS=""
34920 OPENEXR_LIBS=""
34921 OPENEXR_PKG=""
34922 if test "x$with_openexr" = "xyes"; then
34923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34924 printf "%s\n" "-------------------------------------------------------------" >&6; }
34925
34926 pkg_failed=no
34927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenEXR >= 1.0.6" >&5
34928 printf %s "checking for OpenEXR >= 1.0.6... " >&6; }
34929
34930 if test -n "$OPENEXR_CFLAGS"; then
34931 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
34932 elif test -n "$PKG_CONFIG"; then
34933 if test -n "$PKG_CONFIG" && \
34934 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
34935 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
34936 ac_status=$?
34937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34938 test $ac_status = 0; }; then
34939 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
34940 test "x$?" != "x0" && pkg_failed=yes
34941 else
34942 pkg_failed=yes
34943 fi
34944 else
34945 pkg_failed=untried
34946 fi
34947 if test -n "$OPENEXR_LIBS"; then
34948 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
34949 elif test -n "$PKG_CONFIG"; then
34950 if test -n "$PKG_CONFIG" && \
34951 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
34952 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
34953 ac_status=$?
34954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34955 test $ac_status = 0; }; then
34956 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
34957 test "x$?" != "x0" && pkg_failed=yes
34958 else
34959 pkg_failed=yes
34960 fi
34961 else
34962 pkg_failed=untried
34963 fi
34964
34965
34966
34967 if test $pkg_failed = yes; then
34968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34969 printf "%s\n" "no" >&6; }
34970
34971 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34972 _pkg_short_errors_supported=yes
34973 else
34974 _pkg_short_errors_supported=no
34975 fi
34976 if test $_pkg_short_errors_supported = yes; then
34977 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
34978 else
34979 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
34980 fi
34981 # Put the nasty error message in config.log where it belongs
34982 echo "$OPENEXR_PKG_ERRORS" >&5
34983
34984 have_openexr=no
34985 elif test $pkg_failed = untried; then
34986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34987 printf "%s\n" "no" >&6; }
34988 have_openexr=no
34989 else
34990 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
34991 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
34992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34993 printf "%s\n" "yes" >&6; }
34994 have_openexr=yes
34995 fi
34996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
34997 printf "%s\n" "" >&6; }
34998 fi
34999
35000 if test "$have_openexr" = 'yes'; then
35001
35002 printf "%s\n" "#define OPENEXR_DELEGATE 1" >>confdefs.h
35003
35004 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
35005 fi
35006
35007 if test "$have_openexr" = 'yes'; then
35008 OPENEXR_DELEGATE_TRUE=
35009 OPENEXR_DELEGATE_FALSE='#'
35010 else
35011 OPENEXR_DELEGATE_TRUE='#'
35012 OPENEXR_DELEGATE_FALSE=
35013 fi
35014
35015
35016
35017
35018
35019 #
35020 # Check for PANGO delegate library.
35021 #
35022
35023 # Check whether --with-pango was given.
35024 if test ${with_pango+y}
35025 then :
35026 withval=$with_pango; with_pango=$withval
35027 else case e in #(
35028 e) with_pango='yes' ;;
35029 esac
35030 fi
35031
35032
35033 if test "$with_pango" != 'yes'; then
35034 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
35035 fi
35036
35037 have_pango='no'
35038 have_pangocairo='no'
35039 PANGO_CFLAGS=""
35040 PANGO_LIBS=""
35041 PANGO_PKG=""
35042 if test "x$with_pango" = "xyes"; then
35043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35044 printf "%s\n" "-------------------------------------------------------------" >&6; }
35045
35046 pkg_failed=no
35047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pangocairo >= 1.28.1" >&5
35048 printf %s "checking for pangocairo >= 1.28.1... " >&6; }
35049
35050 if test -n "$PANGO_CFLAGS"; then
35051 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
35052 elif test -n "$PKG_CONFIG"; then
35053 if test -n "$PKG_CONFIG" && \
35054 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
35055 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
35056 ac_status=$?
35057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35058 test $ac_status = 0; }; then
35059 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
35060 test "x$?" != "x0" && pkg_failed=yes
35061 else
35062 pkg_failed=yes
35063 fi
35064 else
35065 pkg_failed=untried
35066 fi
35067 if test -n "$PANGO_LIBS"; then
35068 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
35069 elif test -n "$PKG_CONFIG"; then
35070 if test -n "$PKG_CONFIG" && \
35071 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
35072 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
35073 ac_status=$?
35074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35075 test $ac_status = 0; }; then
35076 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
35077 test "x$?" != "x0" && pkg_failed=yes
35078 else
35079 pkg_failed=yes
35080 fi
35081 else
35082 pkg_failed=untried
35083 fi
35084
35085
35086
35087 if test $pkg_failed = yes; then
35088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35089 printf "%s\n" "no" >&6; }
35090
35091 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35092 _pkg_short_errors_supported=yes
35093 else
35094 _pkg_short_errors_supported=no
35095 fi
35096 if test $_pkg_short_errors_supported = yes; then
35097 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
35098 else
35099 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
35100 fi
35101 # Put the nasty error message in config.log where it belongs
35102 echo "$PANGO_PKG_ERRORS" >&5
35103
35104 have_pangocairo=no
35105 elif test $pkg_failed = untried; then
35106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35107 printf "%s\n" "no" >&6; }
35108 have_pangocairo=no
35109 else
35110 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
35111 PANGO_LIBS=$pkg_cv_PANGO_LIBS
35112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35113 printf "%s\n" "yes" >&6; }
35114 have_pangocairo=yes
35115 fi
35116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
35117 printf "%s\n" "" >&6; }
35118
35119 pkg_failed=no
35120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pango >= 1.28.1" >&5
35121 printf %s "checking for pango >= 1.28.1... " >&6; }
35122
35123 if test -n "$PANGO_CFLAGS"; then
35124 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
35125 elif test -n "$PKG_CONFIG"; then
35126 if test -n "$PKG_CONFIG" && \
35127 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
35128 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
35129 ac_status=$?
35130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35131 test $ac_status = 0; }; then
35132 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
35133 test "x$?" != "x0" && pkg_failed=yes
35134 else
35135 pkg_failed=yes
35136 fi
35137 else
35138 pkg_failed=untried
35139 fi
35140 if test -n "$PANGO_LIBS"; then
35141 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
35142 elif test -n "$PKG_CONFIG"; then
35143 if test -n "$PKG_CONFIG" && \
35144 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
35145 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
35146 ac_status=$?
35147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35148 test $ac_status = 0; }; then
35149 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
35150 test "x$?" != "x0" && pkg_failed=yes
35151 else
35152 pkg_failed=yes
35153 fi
35154 else
35155 pkg_failed=untried
35156 fi
35157
35158
35159
35160 if test $pkg_failed = yes; then
35161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35162 printf "%s\n" "no" >&6; }
35163
35164 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35165 _pkg_short_errors_supported=yes
35166 else
35167 _pkg_short_errors_supported=no
35168 fi
35169 if test $_pkg_short_errors_supported = yes; then
35170 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
35171 else
35172 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
35173 fi
35174 # Put the nasty error message in config.log where it belongs
35175 echo "$PANGO_PKG_ERRORS" >&5
35176
35177 have_pango=no
35178 elif test $pkg_failed = untried; then
35179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35180 printf "%s\n" "no" >&6; }
35181 have_pango=no
35182 else
35183 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
35184 PANGO_LIBS=$pkg_cv_PANGO_LIBS
35185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35186 printf "%s\n" "yes" >&6; }
35187 have_pango=yes
35188 fi
35189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
35190 printf "%s\n" "" >&6; }
35191 fi
35192
35193 if test "${have_pango}x${have_pangocairo}" = 'yesxyes'; then
35194
35195 printf "%s\n" "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
35196
35197 CFLAGS="$PANGO_CFLAGS $PANGOCAIRO_CFLAGS $CFLAGS"
35198 fi
35199
35200 if test "$have_pangocairo" = 'yes'; then
35201 PANGOCAIRO_DELEGATE_TRUE=
35202 PANGOCAIRO_DELEGATE_FALSE='#'
35203 else
35204 PANGOCAIRO_DELEGATE_TRUE='#'
35205 PANGOCAIRO_DELEGATE_FALSE=
35206 fi
35207
35208
35209
35210
35211
35212 #
35213 # Check for PNG delegate library.
35214 #
35215
35216 # Check whether --with-png was given.
35217 if test ${with_png+y}
35218 then :
35219 withval=$with_png; with_png=$withval
35220 else case e in #(
35221 e) with_png='yes' ;;
35222 esac
35223 fi
35224
35225
35226 if test "$with_png" != 'yes'; then
35227 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
35228 fi
35229
35230 have_png='no'
35231 PNG_CFLAGS=""
35232 PNG_LIBS=""
35233 PNG_PKG=""
35234 if test "x$with_png" = "xyes"; then
35235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35236 printf "%s\n" "-------------------------------------------------------------" >&6; }
35237
35238 pkg_failed=no
35239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpng >= 1.0.0" >&5
35240 printf %s "checking for libpng >= 1.0.0... " >&6; }
35241
35242 if test -n "$PNG_CFLAGS"; then
35243 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
35244 elif test -n "$PKG_CONFIG"; then
35245 if test -n "$PKG_CONFIG" && \
35246 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
35247 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
35248 ac_status=$?
35249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35250 test $ac_status = 0; }; then
35251 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0" 2>/dev/null`
35252 test "x$?" != "x0" && pkg_failed=yes
35253 else
35254 pkg_failed=yes
35255 fi
35256 else
35257 pkg_failed=untried
35258 fi
35259 if test -n "$PNG_LIBS"; then
35260 pkg_cv_PNG_LIBS="$PNG_LIBS"
35261 elif test -n "$PKG_CONFIG"; then
35262 if test -n "$PKG_CONFIG" && \
35263 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
35264 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
35265 ac_status=$?
35266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35267 test $ac_status = 0; }; then
35268 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0" 2>/dev/null`
35269 test "x$?" != "x0" && pkg_failed=yes
35270 else
35271 pkg_failed=yes
35272 fi
35273 else
35274 pkg_failed=untried
35275 fi
35276
35277
35278
35279 if test $pkg_failed = yes; then
35280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35281 printf "%s\n" "no" >&6; }
35282
35283 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35284 _pkg_short_errors_supported=yes
35285 else
35286 _pkg_short_errors_supported=no
35287 fi
35288 if test $_pkg_short_errors_supported = yes; then
35289 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
35290 else
35291 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
35292 fi
35293 # Put the nasty error message in config.log where it belongs
35294 echo "$PNG_PKG_ERRORS" >&5
35295
35296 have_png=no
35297 elif test $pkg_failed = untried; then
35298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35299 printf "%s\n" "no" >&6; }
35300 have_png=no
35301 else
35302 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
35303 PNG_LIBS=$pkg_cv_PNG_LIBS
35304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35305 printf "%s\n" "yes" >&6; }
35306 have_png=yes
35307 fi
35308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
35309 printf "%s\n" "" >&6; }
35310 fi
35311
35312 if test "$have_png" = 'yes'; then
35313
35314 printf "%s\n" "#define PNG_DELEGATE 1" >>confdefs.h
35315
35316 CFLAGS="$PNG_CFLAGS $CFLAGS"
35317 fi
35318
35319 if test "$have_png" = 'yes'; then
35320 PNG_DELEGATE_TRUE=
35321 PNG_DELEGATE_FALSE='#'
35322 else
35323 PNG_DELEGATE_TRUE='#'
35324 PNG_DELEGATE_FALSE=
35325 fi
35326
35327
35328
35329
35330
35331 #
35332 # Check for the Raw delegate library.
35333 #
35334
35335 # Check whether --with-raw was given.
35336 if test ${with_raw+y}
35337 then :
35338 withval=$with_raw; with_raw=$withval
35339 else case e in #(
35340 e) with_raw='yes' ;;
35341 esac
35342 fi
35343
35344
35345 if test "$with_raw" != 'yes'; then
35346 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-libraw=$with_raw "
35347 fi
35348
35349 have_raw='no'
35350 RAW_R_CFLAGS=""
35351 RAW_R_LIBS=""
35352 RAW_R_PKG=""
35353 if test "x$with_raw" = "xyes"; then
35354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35355 printf "%s\n" "-------------------------------------------------------------" >&6; }
35356
35357 pkg_failed=no
35358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libraw_r >= 0.14.8" >&5
35359 printf %s "checking for libraw_r >= 0.14.8... " >&6; }
35360
35361 if test -n "$RAW_R_CFLAGS"; then
35362 pkg_cv_RAW_R_CFLAGS="$RAW_R_CFLAGS"
35363 elif test -n "$PKG_CONFIG"; then
35364 if test -n "$PKG_CONFIG" && \
35365 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libraw_r >= 0.14.8\""; } >&5
35366 ($PKG_CONFIG --exists --print-errors "libraw_r >= 0.14.8") 2>&5
35367 ac_status=$?
35368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35369 test $ac_status = 0; }; then
35370 pkg_cv_RAW_R_CFLAGS=`$PKG_CONFIG --cflags "libraw_r >= 0.14.8" 2>/dev/null`
35371 test "x$?" != "x0" && pkg_failed=yes
35372 else
35373 pkg_failed=yes
35374 fi
35375 else
35376 pkg_failed=untried
35377 fi
35378 if test -n "$RAW_R_LIBS"; then
35379 pkg_cv_RAW_R_LIBS="$RAW_R_LIBS"
35380 elif test -n "$PKG_CONFIG"; then
35381 if test -n "$PKG_CONFIG" && \
35382 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libraw_r >= 0.14.8\""; } >&5
35383 ($PKG_CONFIG --exists --print-errors "libraw_r >= 0.14.8") 2>&5
35384 ac_status=$?
35385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35386 test $ac_status = 0; }; then
35387 pkg_cv_RAW_R_LIBS=`$PKG_CONFIG --libs "libraw_r >= 0.14.8" 2>/dev/null`
35388 test "x$?" != "x0" && pkg_failed=yes
35389 else
35390 pkg_failed=yes
35391 fi
35392 else
35393 pkg_failed=untried
35394 fi
35395
35396
35397
35398 if test $pkg_failed = yes; then
35399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35400 printf "%s\n" "no" >&6; }
35401
35402 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35403 _pkg_short_errors_supported=yes
35404 else
35405 _pkg_short_errors_supported=no
35406 fi
35407 if test $_pkg_short_errors_supported = yes; then
35408 RAW_R_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libraw_r >= 0.14.8" 2>&1`
35409 else
35410 RAW_R_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libraw_r >= 0.14.8" 2>&1`
35411 fi
35412 # Put the nasty error message in config.log where it belongs
35413 echo "$RAW_R_PKG_ERRORS" >&5
35414
35415 have_raw=no
35416 elif test $pkg_failed = untried; then
35417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35418 printf "%s\n" "no" >&6; }
35419 have_raw=no
35420 else
35421 RAW_R_CFLAGS=$pkg_cv_RAW_R_CFLAGS
35422 RAW_R_LIBS=$pkg_cv_RAW_R_LIBS
35423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35424 printf "%s\n" "yes" >&6; }
35425 have_raw=yes
35426 fi
35427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
35428 printf "%s\n" "" >&6; }
35429 fi
35430
35431 if test "$have_raw" = 'yes'; then
35432
35433 printf "%s\n" "#define RAW_R_DELEGATE 1" >>confdefs.h
35434
35435 CFLAGS="$RAW_R_CFLAGS $CFLAGS"
35436 fi
35437
35438 if test "$have_raw" = 'yes'; then
35439 RAW_R_DELEGATE_TRUE=
35440 RAW_R_DELEGATE_FALSE='#'
35441 else
35442 RAW_R_DELEGATE_TRUE='#'
35443 RAW_R_DELEGATE_FALSE=
35444 fi
35445
35446
35447
35448
35449
35450 #
35451 # Check for RSVG delegate library.
35452 #
35453
35454 # Check whether --with-rsvg was given.
35455 if test ${with_rsvg+y}
35456 then :
35457 withval=$with_rsvg; with_rsvg=$withval
35458 else case e in #(
35459 e) with_rsvg='no' ;;
35460 esac
35461 fi
35462
35463
35464 if test "$with_rsvg" != 'yes'; then
35465 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
35466 fi
35467
35468 have_rsvg='no'
35469 have_cairo='no'
35470 RSVG_CFLAGS=""
35471 RSVG_LIBS=""
35472 RSVG_PKG=""
35473 if test "x$with_rsvg" = "xyes"; then
35474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35475 printf "%s\n" "-------------------------------------------------------------" >&6; }
35476
35477 pkg_failed=no
35478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librsvg-2.0 >= 2.9.0" >&5
35479 printf %s "checking for librsvg-2.0 >= 2.9.0... " >&6; }
35480
35481 if test -n "$RSVG_CFLAGS"; then
35482 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
35483 elif test -n "$PKG_CONFIG"; then
35484 if test -n "$PKG_CONFIG" && \
35485 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
35486 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
35487 ac_status=$?
35488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35489 test $ac_status = 0; }; then
35490 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
35491 test "x$?" != "x0" && pkg_failed=yes
35492 else
35493 pkg_failed=yes
35494 fi
35495 else
35496 pkg_failed=untried
35497 fi
35498 if test -n "$RSVG_LIBS"; then
35499 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
35500 elif test -n "$PKG_CONFIG"; then
35501 if test -n "$PKG_CONFIG" && \
35502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
35503 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
35504 ac_status=$?
35505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35506 test $ac_status = 0; }; then
35507 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
35508 test "x$?" != "x0" && pkg_failed=yes
35509 else
35510 pkg_failed=yes
35511 fi
35512 else
35513 pkg_failed=untried
35514 fi
35515
35516
35517
35518 if test $pkg_failed = yes; then
35519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35520 printf "%s\n" "no" >&6; }
35521
35522 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35523 _pkg_short_errors_supported=yes
35524 else
35525 _pkg_short_errors_supported=no
35526 fi
35527 if test $_pkg_short_errors_supported = yes; then
35528 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
35529 else
35530 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
35531 fi
35532 # Put the nasty error message in config.log where it belongs
35533 echo "$RSVG_PKG_ERRORS" >&5
35534
35535 have_rsvg=no
35536 elif test $pkg_failed = untried; then
35537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35538 printf "%s\n" "no" >&6; }
35539 have_rsvg=no
35540 else
35541 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
35542 RSVG_LIBS=$pkg_cv_RSVG_LIBS
35543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35544 printf "%s\n" "yes" >&6; }
35545 have_rsvg=yes
35546 fi
35547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
35548 printf "%s\n" "" >&6; }
35549
35550 pkg_failed=no
35551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cairo-svg" >&5
35552 printf %s "checking for cairo-svg... " >&6; }
35553
35554 if test -n "$CAIRO_SVG_CFLAGS"; then
35555 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
35556 elif test -n "$PKG_CONFIG"; then
35557 if test -n "$PKG_CONFIG" && \
35558 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
35559 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
35560 ac_status=$?
35561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35562 test $ac_status = 0; }; then
35563 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
35564 test "x$?" != "x0" && pkg_failed=yes
35565 else
35566 pkg_failed=yes
35567 fi
35568 else
35569 pkg_failed=untried
35570 fi
35571 if test -n "$CAIRO_SVG_LIBS"; then
35572 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
35573 elif test -n "$PKG_CONFIG"; then
35574 if test -n "$PKG_CONFIG" && \
35575 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
35576 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
35577 ac_status=$?
35578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35579 test $ac_status = 0; }; then
35580 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
35581 test "x$?" != "x0" && pkg_failed=yes
35582 else
35583 pkg_failed=yes
35584 fi
35585 else
35586 pkg_failed=untried
35587 fi
35588
35589
35590
35591 if test $pkg_failed = yes; then
35592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35593 printf "%s\n" "no" >&6; }
35594
35595 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35596 _pkg_short_errors_supported=yes
35597 else
35598 _pkg_short_errors_supported=no
35599 fi
35600 if test $_pkg_short_errors_supported = yes; then
35601 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1`
35602 else
35603 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1`
35604 fi
35605 # Put the nasty error message in config.log where it belongs
35606 echo "$CAIRO_SVG_PKG_ERRORS" >&5
35607
35608 have_cairo=no
35609 elif test $pkg_failed = untried; then
35610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35611 printf "%s\n" "no" >&6; }
35612 have_cairo=no
35613 else
35614 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
35615 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
35616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35617 printf "%s\n" "yes" >&6; }
35618 have_cairo=yes
35619 fi
35620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
35621 printf "%s\n" "" >&6; }
35622 fi
35623
35624 if test "$have_rsvg" = 'yes'; then
35625
35626 printf "%s\n" "#define RSVG_DELEGATE 1" >>confdefs.h
35627
35628 CFLAGS="$RSVG_CFLAGS $CFLAGS"
35629 fi
35630
35631 if test "$have_cairo" = 'yes'; then
35632
35633 printf "%s\n" "#define CAIRO_DELEGATE 1" >>confdefs.h
35634
35635 CFLAGS="$CAIRO_SVG_CFLAGS $CFLAGS"
35636 fi
35637
35638 if test "$have_rsvg" = 'yes'; then
35639 RSVG_DELEGATE_TRUE=
35640 RSVG_DELEGATE_FALSE='#'
35641 else
35642 RSVG_DELEGATE_TRUE='#'
35643 RSVG_DELEGATE_FALSE=
35644 fi
35645
35646 if test "$have_cairo" = 'yes'; then
35647 CAIRO_DELEGATE_TRUE=
35648 CAIRO_DELEGATE_FALSE='#'
35649 else
35650 CAIRO_DELEGATE_TRUE='#'
35651 CAIRO_DELEGATE_FALSE=
35652 fi
35653
35654
35655
35656
35657
35658 #
35659 # Check for TIFF delegate library.
35660 #
35661
35662 # Check whether --with-tiff was given.
35663 if test ${with_tiff+y}
35664 then :
35665 withval=$with_tiff; with_tiff=$withval
35666 else case e in #(
35667 e) with_tiff='yes' ;;
35668 esac
35669 fi
35670
35671
35672 if test "$with_tiff" != 'yes'; then
35673 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
35674 fi
35675
35676 have_tiff='no'
35677 TIFF_CFLAGS=""
35678 TIFF_LIBS=""
35679 TIFF_PKG=""
35680 if test "x$with_tiff" = "xyes"; then
35681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35682 printf "%s\n" "-------------------------------------------------------------" >&6; }
35683
35684 pkg_failed=no
35685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtiff-4 >= 4.0.0" >&5
35686 printf %s "checking for libtiff-4 >= 4.0.0... " >&6; }
35687
35688 if test -n "$TIFF_CFLAGS"; then
35689 pkg_cv_TIFF_CFLAGS="$TIFF_CFLAGS"
35690 elif test -n "$PKG_CONFIG"; then
35691 if test -n "$PKG_CONFIG" && \
35692 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtiff-4 >= 4.0.0\""; } >&5
35693 ($PKG_CONFIG --exists --print-errors "libtiff-4 >= 4.0.0") 2>&5
35694 ac_status=$?
35695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35696 test $ac_status = 0; }; then
35697 pkg_cv_TIFF_CFLAGS=`$PKG_CONFIG --cflags "libtiff-4 >= 4.0.0" 2>/dev/null`
35698 test "x$?" != "x0" && pkg_failed=yes
35699 else
35700 pkg_failed=yes
35701 fi
35702 else
35703 pkg_failed=untried
35704 fi
35705 if test -n "$TIFF_LIBS"; then
35706 pkg_cv_TIFF_LIBS="$TIFF_LIBS"
35707 elif test -n "$PKG_CONFIG"; then
35708 if test -n "$PKG_CONFIG" && \
35709 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtiff-4 >= 4.0.0\""; } >&5
35710 ($PKG_CONFIG --exists --print-errors "libtiff-4 >= 4.0.0") 2>&5
35711 ac_status=$?
35712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35713 test $ac_status = 0; }; then
35714 pkg_cv_TIFF_LIBS=`$PKG_CONFIG --libs "libtiff-4 >= 4.0.0" 2>/dev/null`
35715 test "x$?" != "x0" && pkg_failed=yes
35716 else
35717 pkg_failed=yes
35718 fi
35719 else
35720 pkg_failed=untried
35721 fi
35722
35723
35724
35725 if test $pkg_failed = yes; then
35726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35727 printf "%s\n" "no" >&6; }
35728
35729 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35730 _pkg_short_errors_supported=yes
35731 else
35732 _pkg_short_errors_supported=no
35733 fi
35734 if test $_pkg_short_errors_supported = yes; then
35735 TIFF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtiff-4 >= 4.0.0" 2>&1`
35736 else
35737 TIFF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtiff-4 >= 4.0.0" 2>&1`
35738 fi
35739 # Put the nasty error message in config.log where it belongs
35740 echo "$TIFF_PKG_ERRORS" >&5
35741
35742 have_tiff=no
35743 elif test $pkg_failed = untried; then
35744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35745 printf "%s\n" "no" >&6; }
35746 have_tiff=no
35747 else
35748 TIFF_CFLAGS=$pkg_cv_TIFF_CFLAGS
35749 TIFF_LIBS=$pkg_cv_TIFF_LIBS
35750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35751 printf "%s\n" "yes" >&6; }
35752 have_tiff=yes
35753 fi
35754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
35755 printf "%s\n" "" >&6; }
35756 fi
35757
35758 if test "$have_tiff" = 'yes'; then
35759
35760 printf "%s\n" "#define TIFF_DELEGATE 1" >>confdefs.h
35761
35762 CFLAGS="$TIFF_CFLAGS $CFLAGS"
35763 fi
35764
35765 if test "$have_tiff" = 'yes'; then
35766 TIFF_DELEGATE_TRUE=
35767 TIFF_DELEGATE_FALSE='#'
35768 else
35769 TIFF_DELEGATE_TRUE='#'
35770 TIFF_DELEGATE_FALSE=
35771 fi
35772
35773
35774
35775
35776
35777 #
35778 # Check for google libultrahdr delegate library
35779 #
35780
35781 # Check whether --with-uhdr was given.
35782 if test ${with_uhdr+y}
35783 then :
35784 withval=$with_uhdr; with_uhdr=$withval
35785 else case e in #(
35786 e) with_uhdr='no' ;;
35787 esac
35788 fi
35789
35790
35791 if test "$with_uhdr" != 'yes'; then
35792 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-uhdr=$with_uhdr "
35793 fi
35794
35795 have_uhdr='no'
35796 UHDR_CFLAGS=""
35797 UHDR_LIBS=""
35798 UHDR_PKG=""
35799 if test "$with_uhdr" != 'no'; then
35800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35801 printf "%s\n" "-------------------------------------------------------------" >&6; }
35802
35803 pkg_failed=no
35804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuhdr >= 1.3.0" >&5
35805 printf %s "checking for libuhdr >= 1.3.0... " >&6; }
35806
35807 if test -n "$UHDR_CFLAGS"; then
35808 pkg_cv_UHDR_CFLAGS="$UHDR_CFLAGS"
35809 elif test -n "$PKG_CONFIG"; then
35810 if test -n "$PKG_CONFIG" && \
35811 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuhdr >= 1.3.0\""; } >&5
35812 ($PKG_CONFIG --exists --print-errors "libuhdr >= 1.3.0") 2>&5
35813 ac_status=$?
35814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35815 test $ac_status = 0; }; then
35816 pkg_cv_UHDR_CFLAGS=`$PKG_CONFIG --cflags "libuhdr >= 1.3.0" 2>/dev/null`
35817 test "x$?" != "x0" && pkg_failed=yes
35818 else
35819 pkg_failed=yes
35820 fi
35821 else
35822 pkg_failed=untried
35823 fi
35824 if test -n "$UHDR_LIBS"; then
35825 pkg_cv_UHDR_LIBS="$UHDR_LIBS"
35826 elif test -n "$PKG_CONFIG"; then
35827 if test -n "$PKG_CONFIG" && \
35828 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuhdr >= 1.3.0\""; } >&5
35829 ($PKG_CONFIG --exists --print-errors "libuhdr >= 1.3.0") 2>&5
35830 ac_status=$?
35831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35832 test $ac_status = 0; }; then
35833 pkg_cv_UHDR_LIBS=`$PKG_CONFIG --libs "libuhdr >= 1.3.0" 2>/dev/null`
35834 test "x$?" != "x0" && pkg_failed=yes
35835 else
35836 pkg_failed=yes
35837 fi
35838 else
35839 pkg_failed=untried
35840 fi
35841
35842
35843
35844 if test $pkg_failed = yes; then
35845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35846 printf "%s\n" "no" >&6; }
35847
35848 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35849 _pkg_short_errors_supported=yes
35850 else
35851 _pkg_short_errors_supported=no
35852 fi
35853 if test $_pkg_short_errors_supported = yes; then
35854 UHDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuhdr >= 1.3.0" 2>&1`
35855 else
35856 UHDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuhdr >= 1.3.0" 2>&1`
35857 fi
35858 # Put the nasty error message in config.log where it belongs
35859 echo "$UHDR_PKG_ERRORS" >&5
35860
35861 have_uhdr=no
35862 elif test $pkg_failed = untried; then
35863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35864 printf "%s\n" "no" >&6; }
35865 have_uhdr=no
35866 else
35867 UHDR_CFLAGS=$pkg_cv_UHDR_CFLAGS
35868 UHDR_LIBS=$pkg_cv_UHDR_LIBS
35869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35870 printf "%s\n" "yes" >&6; }
35871 have_uhdr=yes
35872 fi
35873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
35874 printf "%s\n" "" >&6; }
35875 fi
35876
35877 if test "$have_uhdr" = 'yes'; then
35878
35879 printf "%s\n" "#define UHDR_DELEGATE 1" >>confdefs.h
35880
35881 CFLAGS="$UHDR_CFLAGS $CFLAGS"
35882 fi
35883
35884 if test "$have_uhdr" = 'yes'; then
35885 UHDR_DELEGATE_TRUE=
35886 UHDR_DELEGATE_FALSE='#'
35887 else
35888 UHDR_DELEGATE_TRUE='#'
35889 UHDR_DELEGATE_FALSE=
35890 fi
35891
35892
35893
35894
35895
35896 #
35897 # Set URW Base35 OTF font directory.
35898 #
35899
35900 # Check whether --with-urw-base35-font-dir was given.
35901 if test ${with_urw_base35_font_dir+y}
35902 then :
35903 withval=$with_urw_base35_font_dir; with_urw_base35_font_dir=$withval
35904 else case e in #(
35905 e) with_urw_base35_font_dir='default' ;;
35906 esac
35907 fi
35908
35909
35910 if test "$with_urw_base35_font_dir" != 'default'; then
35911 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-urw-base35-font-dir=$with_urw_base35_font_dir "
35912 fi
35913
35914
35915 #
35916 # Set URW Base35 Type1 font directory.
35917 #
35918
35919 # Check whether --with-urw-base35-type1-font-dir was given.
35920 if test ${with_urw_base35_type1_font_dir+y}
35921 then :
35922 withval=$with_urw_base35_type1_font_dir; with_urw_base35_type1_font_dir=$withval
35923 else case e in #(
35924 e) with_urw_base35_type1_font_dir='default' ;;
35925 esac
35926 fi
35927
35928
35929 if test "$with_urw_base35_type1_font_dir" != 'default'; then
35930 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-urw-base35-type1-font-dir=$with_urw_base35_type1_font_dir "
35931 fi
35932
35933
35934 #
35935 # Check for the WEBP delegate library.
35936 #
35937
35938 # Check whether --with-webp was given.
35939 if test ${with_webp+y}
35940 then :
35941 withval=$with_webp; with_webp=$withval
35942 else case e in #(
35943 e) with_webp='yes' ;;
35944 esac
35945 fi
35946
35947
35948 if test "$with_webp" != 'yes'; then
35949 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
35950 fi
35951
35952 have_webp='no'
35953 have_webpmux='no'
35954 WEBP_CFLAGS=""
35955 WEBP_LIBS=""
35956 WEBP_PKG=""
35957 WEBPMUX_CFLAGS=""
35958 WEBPMUX_LIBS=""
35959 WEBPMUX_PKG=""
35960 if test "x$with_webp" = "xyes"; then
35961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35962 printf "%s\n" "-------------------------------------------------------------" >&6; }
35963
35964 pkg_failed=no
35965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libwebp >= 0.4.1" >&5
35966 printf %s "checking for libwebp >= 0.4.1... " >&6; }
35967
35968 if test -n "$WEBP_CFLAGS"; then
35969 pkg_cv_WEBP_CFLAGS="$WEBP_CFLAGS"
35970 elif test -n "$PKG_CONFIG"; then
35971 if test -n "$PKG_CONFIG" && \
35972 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp >= 0.4.1\""; } >&5
35973 ($PKG_CONFIG --exists --print-errors "libwebp >= 0.4.1") 2>&5
35974 ac_status=$?
35975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35976 test $ac_status = 0; }; then
35977 pkg_cv_WEBP_CFLAGS=`$PKG_CONFIG --cflags "libwebp >= 0.4.1" 2>/dev/null`
35978 test "x$?" != "x0" && pkg_failed=yes
35979 else
35980 pkg_failed=yes
35981 fi
35982 else
35983 pkg_failed=untried
35984 fi
35985 if test -n "$WEBP_LIBS"; then
35986 pkg_cv_WEBP_LIBS="$WEBP_LIBS"
35987 elif test -n "$PKG_CONFIG"; then
35988 if test -n "$PKG_CONFIG" && \
35989 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp >= 0.4.1\""; } >&5
35990 ($PKG_CONFIG --exists --print-errors "libwebp >= 0.4.1") 2>&5
35991 ac_status=$?
35992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35993 test $ac_status = 0; }; then
35994 pkg_cv_WEBP_LIBS=`$PKG_CONFIG --libs "libwebp >= 0.4.1" 2>/dev/null`
35995 test "x$?" != "x0" && pkg_failed=yes
35996 else
35997 pkg_failed=yes
35998 fi
35999 else
36000 pkg_failed=untried
36001 fi
36002
36003
36004
36005 if test $pkg_failed = yes; then
36006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36007 printf "%s\n" "no" >&6; }
36008
36009 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36010 _pkg_short_errors_supported=yes
36011 else
36012 _pkg_short_errors_supported=no
36013 fi
36014 if test $_pkg_short_errors_supported = yes; then
36015 WEBP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwebp >= 0.4.1" 2>&1`
36016 else
36017 WEBP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwebp >= 0.4.1" 2>&1`
36018 fi
36019 # Put the nasty error message in config.log where it belongs
36020 echo "$WEBP_PKG_ERRORS" >&5
36021
36022 have_webp=no
36023 elif test $pkg_failed = untried; then
36024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36025 printf "%s\n" "no" >&6; }
36026 have_webp=no
36027 else
36028 WEBP_CFLAGS=$pkg_cv_WEBP_CFLAGS
36029 WEBP_LIBS=$pkg_cv_WEBP_LIBS
36030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36031 printf "%s\n" "yes" >&6; }
36032 have_webp=yes
36033 fi
36034
36035 pkg_failed=no
36036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" >&5
36037 printf %s "checking for libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0... " >&6; }
36038
36039 if test -n "$WEBPMUX_CFLAGS"; then
36040 pkg_cv_WEBPMUX_CFLAGS="$WEBPMUX_CFLAGS"
36041 elif test -n "$PKG_CONFIG"; then
36042 if test -n "$PKG_CONFIG" && \
36043 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0\""; } >&5
36044 ($PKG_CONFIG --exists --print-errors "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0") 2>&5
36045 ac_status=$?
36046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36047 test $ac_status = 0; }; then
36048 pkg_cv_WEBPMUX_CFLAGS=`$PKG_CONFIG --cflags "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" 2>/dev/null`
36049 test "x$?" != "x0" && pkg_failed=yes
36050 else
36051 pkg_failed=yes
36052 fi
36053 else
36054 pkg_failed=untried
36055 fi
36056 if test -n "$WEBPMUX_LIBS"; then
36057 pkg_cv_WEBPMUX_LIBS="$WEBPMUX_LIBS"
36058 elif test -n "$PKG_CONFIG"; then
36059 if test -n "$PKG_CONFIG" && \
36060 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0\""; } >&5
36061 ($PKG_CONFIG --exists --print-errors "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0") 2>&5
36062 ac_status=$?
36063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36064 test $ac_status = 0; }; then
36065 pkg_cv_WEBPMUX_LIBS=`$PKG_CONFIG --libs "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" 2>/dev/null`
36066 test "x$?" != "x0" && pkg_failed=yes
36067 else
36068 pkg_failed=yes
36069 fi
36070 else
36071 pkg_failed=untried
36072 fi
36073
36074
36075
36076 if test $pkg_failed = yes; then
36077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36078 printf "%s\n" "no" >&6; }
36079
36080 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36081 _pkg_short_errors_supported=yes
36082 else
36083 _pkg_short_errors_supported=no
36084 fi
36085 if test $_pkg_short_errors_supported = yes; then
36086 WEBPMUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" 2>&1`
36087 else
36088 WEBPMUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" 2>&1`
36089 fi
36090 # Put the nasty error message in config.log where it belongs
36091 echo "$WEBPMUX_PKG_ERRORS" >&5
36092
36093 have_webpmux=no
36094 elif test $pkg_failed = untried; then
36095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36096 printf "%s\n" "no" >&6; }
36097 have_webpmux=no
36098 else
36099 WEBPMUX_CFLAGS=$pkg_cv_WEBPMUX_CFLAGS
36100 WEBPMUX_LIBS=$pkg_cv_WEBPMUX_LIBS
36101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36102 printf "%s\n" "yes" >&6; }
36103 have_webpmux=yes
36104 fi
36105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
36106 printf "%s\n" "" >&6; }
36107 fi
36108
36109 if test "$have_webp" = 'yes'; then
36110
36111 printf "%s\n" "#define WEBP_DELEGATE 1" >>confdefs.h
36112
36113 CFLAGS="$WEBP_CFLAGS $CFLAGS"
36114 fi
36115
36116 if test "$have_webpmux" = 'yes'; then
36117
36118 printf "%s\n" "#define WEBPMUX_DELEGATE 1" >>confdefs.h
36119
36120 CFLAGS="$WEBPMUX_CFLAGS $CFLAGS"
36121 fi
36122
36123 if test "$have_webp" = 'yes'; then
36124 WEBP_DELEGATE_TRUE=
36125 WEBP_DELEGATE_FALSE='#'
36126 else
36127 WEBP_DELEGATE_TRUE='#'
36128 WEBP_DELEGATE_FALSE=
36129 fi
36130
36131 if test "$have_webpmux" = 'yes'; then
36132 WEBPMUX_DELEGATE_TRUE=
36133 WEBPMUX_DELEGATE_FALSE='#'
36134 else
36135 WEBPMUX_DELEGATE_TRUE='#'
36136 WEBPMUX_DELEGATE_FALSE=
36137 fi
36138
36139
36140
36141
36142
36143
36144
36145 #
36146 # Set Windows font directory.
36147 #
36148
36149 # Check whether --with-windows-font-dir was given.
36150 if test ${with_windows_font_dir+y}
36151 then :
36152 withval=$with_windows_font_dir; with_windows_font_dir=$withval
36153 else case e in #(
36154 e) with_windows_font_dir='default' ;;
36155 esac
36156 fi
36157
36158
36159 if test "$with_windows_font_dir" != 'default'; then
36160 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
36161 fi
36162
36163
36164 #
36165 # Check for WMF delegate library.
36166 #
36167
36168 # Check whether --with-wmf was given.
36169 if test ${with_wmf+y}
36170 then :
36171 withval=$with_wmf; with_wmf=$withval
36172 else case e in #(
36173 e) with_wmf=$build_modules ;;
36174 esac
36175 fi
36176
36177
36178 if test "$with_wmf" != 'yes'; then
36179 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
36180 fi
36181
36182 have_wmf='no'
36183 WMF_LIBS=''
36184 WMF_CFLAGS=''
36185 OLIBS="$LIBS"
36186 if test "$with_wmf" != 'no'; then
36187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WMF support" >&5
36188 printf %s "checking for WMF support... " >&6; }
36189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
36190 printf "%s\n" "" >&6; }
36191
36192 have_libwmflite='no'
36193 have_libwmf_ipa_h='no'
36194
36195 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
36196 "
36197 if test "x$ac_cv_header_libwmf_ipa_h" = xyes
36198 then :
36199 have_libwmf_ipa_h='yes'
36200 fi
36201
36202 if test "$have_libwmf_ipa_h" = 'yes'; then
36203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
36204 printf %s "checking for wmf_lite_create in -lwmflite... " >&6; }
36205 if test ${ac_cv_lib_wmflite_wmf_lite_create+y}
36206 then :
36207 printf %s "(cached) " >&6
36208 else case e in #(
36209 e) ac_check_lib_save_LIBS=$LIBS
36210 LIBS="-lwmflite $LIBS"
36211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36212 /* end confdefs.h. */
36213
36214 /* Override any GCC internal prototype to avoid an error.
36215 Use char because int might match the return type of a GCC
36216 builtin and then its argument prototype would still apply.
36217 The 'extern "C"' is for builds by C++ compilers;
36218 although this is not generally supported in C code supporting it here
36219 has little cost and some practical benefit (sr 110532). */
36220 #ifdef __cplusplus
36221 extern "C"
36222 #endif
36223 char wmf_lite_create (void);
36224 int
36225 main (void)
36226 {
36227 return wmf_lite_create ();
36228 ;
36229 return 0;
36230 }
36231 _ACEOF
36232 if ac_fn_c_try_link "$LINENO"
36233 then :
36234 ac_cv_lib_wmflite_wmf_lite_create=yes
36235 else case e in #(
36236 e) ac_cv_lib_wmflite_wmf_lite_create=no ;;
36237 esac
36238 fi
36239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36240 conftest$ac_exeext conftest.$ac_ext
36241 LIBS=$ac_check_lib_save_LIBS ;;
36242 esac
36243 fi
36244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
36245 printf "%s\n" "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
36246 if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes
36247 then :
36248 have_libwmflite='yes'
36249 fi
36250
36251 if test "$have_libwmflite" = 'yes'; then
36252
36253 printf "%s\n" "#define WMF_DELEGATE 1" >>confdefs.h
36254
36255 WMF_LIBS='-lwmflite'
36256 LIBS="$WMF_LIBS $LIBS"
36257 have_wmf='yes'
36258 else
36259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
36260 printf "%s\n" "no -- some components failed test" >&6; }
36261 have_wmf='no (failed tests)'
36262 have_wmflite='no (failed tests)'
36263 LIBS="$OLIBS"
36264 WMF_LIBS=''
36265 fi
36266 fi
36267 fi
36268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
36269 printf %s "checking if WMF package is complete... " >&6; }
36270 if test "$have_wmf" = 'yes'; then
36271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36272 printf "%s\n" "yes" >&6; }
36273 else
36274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36275 printf "%s\n" "no" >&6; }
36276 fi
36277 if test "$have_wmf" = 'yes'; then
36278 WMF_DELEGATE_TRUE=
36279 WMF_DELEGATE_FALSE='#'
36280 else
36281 WMF_DELEGATE_TRUE='#'
36282 WMF_DELEGATE_FALSE=
36283 fi
36284
36285
36286
36287
36288
36289 #
36290 # Check for XML delegate library.
36291 #
36292
36293 # Check whether --with-xml was given.
36294 if test ${with_xml+y}
36295 then :
36296 withval=$with_xml; with_xml=$withval
36297 else case e in #(
36298 e) with_xml='yes' ;;
36299 esac
36300 fi
36301
36302
36303 if test "$with_xml" != 'yes' ; then
36304 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
36305 fi
36306
36307 have_xml='no'
36308 XML_CFLAGS=""
36309 XML_LIBS=""
36310 XML_PKG=""
36311 if test "x$with_xml" = "xyes"; then
36312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36313 printf "%s\n" "-------------------------------------------------------------" >&6; }
36314
36315 pkg_failed=no
36316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.0.0" >&5
36317 printf %s "checking for libxml-2.0 >= 2.0.0... " >&6; }
36318
36319 if test -n "$XML_CFLAGS"; then
36320 pkg_cv_XML_CFLAGS="$XML_CFLAGS"
36321 elif test -n "$PKG_CONFIG"; then
36322 if test -n "$PKG_CONFIG" && \
36323 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
36324 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
36325 ac_status=$?
36326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36327 test $ac_status = 0; }; then
36328 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0.0" 2>/dev/null`
36329 test "x$?" != "x0" && pkg_failed=yes
36330 else
36331 pkg_failed=yes
36332 fi
36333 else
36334 pkg_failed=untried
36335 fi
36336 if test -n "$XML_LIBS"; then
36337 pkg_cv_XML_LIBS="$XML_LIBS"
36338 elif test -n "$PKG_CONFIG"; then
36339 if test -n "$PKG_CONFIG" && \
36340 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
36341 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
36342 ac_status=$?
36343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36344 test $ac_status = 0; }; then
36345 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0.0" 2>/dev/null`
36346 test "x$?" != "x0" && pkg_failed=yes
36347 else
36348 pkg_failed=yes
36349 fi
36350 else
36351 pkg_failed=untried
36352 fi
36353
36354
36355
36356 if test $pkg_failed = yes; then
36357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36358 printf "%s\n" "no" >&6; }
36359
36360 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36361 _pkg_short_errors_supported=yes
36362 else
36363 _pkg_short_errors_supported=no
36364 fi
36365 if test $_pkg_short_errors_supported = yes; then
36366 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
36367 else
36368 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
36369 fi
36370 # Put the nasty error message in config.log where it belongs
36371 echo "$XML_PKG_ERRORS" >&5
36372
36373 have_xml=no
36374 elif test $pkg_failed = untried; then
36375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36376 printf "%s\n" "no" >&6; }
36377 have_xml=no
36378 else
36379 XML_CFLAGS=$pkg_cv_XML_CFLAGS
36380 XML_LIBS=$pkg_cv_XML_LIBS
36381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36382 printf "%s\n" "yes" >&6; }
36383 have_xml=yes
36384 fi
36385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
36386 printf "%s\n" "" >&6; }
36387 fi
36388
36389 if test "$have_xml" = 'yes'; then
36390
36391 printf "%s\n" "#define XML_DELEGATE 1" >>confdefs.h
36392
36393 CFLAGS="$XML_CFLAGS $CFLAGS"
36394 fi
36395
36396 if test "$have_xml" = 'yes'; then
36397 XML_DELEGATE_TRUE=
36398 XML_DELEGATE_FALSE='#'
36399 else
36400 XML_DELEGATE_TRUE='#'
36401 XML_DELEGATE_FALSE=
36402 fi
36403
36404
36405
36406
36407
36408 # Check for functions
36409 #
36410 ac_fn_c_check_func "$LINENO" "acosh" "ac_cv_func_acosh"
36411 if test "x$ac_cv_func_acosh" = xyes
36412 then :
36413 printf "%s\n" "#define HAVE_ACOSH 1" >>confdefs.h
36414
36415 fi
36416 ac_fn_c_check_func "$LINENO" "_aligned_malloc" "ac_cv_func__aligned_malloc"
36417 if test "x$ac_cv_func__aligned_malloc" = xyes
36418 then :
36419 printf "%s\n" "#define HAVE__ALIGNED_MALLOC 1" >>confdefs.h
36420
36421 fi
36422 ac_fn_c_check_func "$LINENO" "aligned_malloc" "ac_cv_func_aligned_malloc"
36423 if test "x$ac_cv_func_aligned_malloc" = xyes
36424 then :
36425 printf "%s\n" "#define HAVE_ALIGNED_MALLOC 1" >>confdefs.h
36426
36427 fi
36428 ac_fn_c_check_func "$LINENO" "asinh" "ac_cv_func_asinh"
36429 if test "x$ac_cv_func_asinh" = xyes
36430 then :
36431 printf "%s\n" "#define HAVE_ASINH 1" >>confdefs.h
36432
36433 fi
36434 ac_fn_c_check_func "$LINENO" "atanh" "ac_cv_func_atanh"
36435 if test "x$ac_cv_func_atanh" = xyes
36436 then :
36437 printf "%s\n" "#define HAVE_ATANH 1" >>confdefs.h
36438
36439 fi
36440 ac_fn_c_check_func "$LINENO" "atoll" "ac_cv_func_atoll"
36441 if test "x$ac_cv_func_atoll" = xyes
36442 then :
36443 printf "%s\n" "#define HAVE_ATOLL 1" >>confdefs.h
36444
36445 fi
36446 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
36447 if test "x$ac_cv_func_atexit" = xyes
36448 then :
36449 printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
36450
36451 fi
36452 ac_fn_c_check_func "$LINENO" "cabs" "ac_cv_func_cabs"
36453 if test "x$ac_cv_func_cabs" = xyes
36454 then :
36455 printf "%s\n" "#define HAVE_CABS 1" >>confdefs.h
36456
36457 fi
36458 ac_fn_c_check_func "$LINENO" "carg" "ac_cv_func_carg"
36459 if test "x$ac_cv_func_carg" = xyes
36460 then :
36461 printf "%s\n" "#define HAVE_CARG 1" >>confdefs.h
36462
36463 fi
36464 ac_fn_c_check_func "$LINENO" "cimag" "ac_cv_func_cimag"
36465 if test "x$ac_cv_func_cimag" = xyes
36466 then :
36467 printf "%s\n" "#define HAVE_CIMAG 1" >>confdefs.h
36468
36469 fi
36470 ac_fn_c_check_func "$LINENO" "creal" "ac_cv_func_creal"
36471 if test "x$ac_cv_func_creal" = xyes
36472 then :
36473 printf "%s\n" "#define HAVE_CREAL 1" >>confdefs.h
36474
36475 fi
36476 ac_fn_c_check_func "$LINENO" "clock" "ac_cv_func_clock"
36477 if test "x$ac_cv_func_clock" = xyes
36478 then :
36479 printf "%s\n" "#define HAVE_CLOCK 1" >>confdefs.h
36480
36481 fi
36482 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
36483 if test "x$ac_cv_func_clock_getres" = xyes
36484 then :
36485 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
36486
36487 fi
36488 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
36489 if test "x$ac_cv_func_clock_gettime" = xyes
36490 then :
36491 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
36492
36493 fi
36494 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
36495 if test "x$ac_cv_func_ctime_r" = xyes
36496 then :
36497 printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h
36498
36499 fi
36500 ac_fn_c_check_func "$LINENO" "directio" "ac_cv_func_directio"
36501 if test "x$ac_cv_func_directio" = xyes
36502 then :
36503 printf "%s\n" "#define HAVE_DIRECTIO 1" >>confdefs.h
36504
36505 fi
36506 ac_fn_c_check_func "$LINENO" "erf" "ac_cv_func_erf"
36507 if test "x$ac_cv_func_erf" = xyes
36508 then :
36509 printf "%s\n" "#define HAVE_ERF 1" >>confdefs.h
36510
36511 fi
36512 ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
36513 if test "x$ac_cv_func__exit" = xyes
36514 then :
36515 printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
36516
36517 fi
36518 ac_fn_c_check_func "$LINENO" "execvp" "ac_cv_func_execvp"
36519 if test "x$ac_cv_func_execvp" = xyes
36520 then :
36521 printf "%s\n" "#define HAVE_EXECVP 1" >>confdefs.h
36522
36523 fi
36524 ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
36525 if test "x$ac_cv_func_fchmod" = xyes
36526 then :
36527 printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
36528
36529 fi
36530 ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
36531 if test "x$ac_cv_func_floor" = xyes
36532 then :
36533 printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
36534
36535 fi
36536 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
36537 if test "x$ac_cv_func_fork" = xyes
36538 then :
36539 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
36540
36541 fi
36542 ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
36543 if test "x$ac_cv_func_ftime" = xyes
36544 then :
36545 printf "%s\n" "#define HAVE_FTIME 1" >>confdefs.h
36546
36547 fi
36548 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
36549 if test "x$ac_cv_func_ftruncate" = xyes
36550 then :
36551 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
36552
36553 fi
36554 ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked"
36555 if test "x$ac_cv_func_getc_unlocked" = xyes
36556 then :
36557 printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
36558
36559 fi
36560 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
36561 if test "x$ac_cv_func_getcwd" = xyes
36562 then :
36563 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
36564
36565 fi
36566 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
36567 if test "x$ac_cv_func_getentropy" = xyes
36568 then :
36569 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
36570
36571 fi
36572 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
36573 if test "x$ac_cv_func_getexecname" = xyes
36574 then :
36575 printf "%s\n" "#define HAVE_GETEXECNAME 1" >>confdefs.h
36576
36577 fi
36578 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
36579 if test "x$ac_cv_func_getdtablesize" = xyes
36580 then :
36581 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
36582
36583 fi
36584 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
36585 if test "x$ac_cv_func_getloadavg" = xyes
36586 then :
36587 printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h
36588
36589 fi
36590 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
36591 if test "x$ac_cv_func_getpagesize" = xyes
36592 then :
36593 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
36594
36595 fi
36596 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
36597 if test "x$ac_cv_func_getpid" = xyes
36598 then :
36599 printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h
36600
36601 fi
36602 ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
36603 if test "x$ac_cv_func_getpwnam_r" = xyes
36604 then :
36605 printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h
36606
36607 fi
36608 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
36609 if test "x$ac_cv_func_getrlimit" = xyes
36610 then :
36611 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
36612
36613 fi
36614 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
36615 if test "x$ac_cv_func_getrusage" = xyes
36616 then :
36617 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
36618
36619 fi
36620 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
36621 if test "x$ac_cv_func_gettimeofday" = xyes
36622 then :
36623 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
36624
36625 fi
36626 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
36627 if test "x$ac_cv_func_gmtime_r" = xyes
36628 then :
36629 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
36630
36631 fi
36632 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
36633 if test "x$ac_cv_func_isnan" = xyes
36634 then :
36635 printf "%s\n" "#define HAVE_ISNAN 1" >>confdefs.h
36636
36637 fi
36638 ac_fn_c_check_func "$LINENO" "j0" "ac_cv_func_j0"
36639 if test "x$ac_cv_func_j0" = xyes
36640 then :
36641 printf "%s\n" "#define HAVE_J0 1" >>confdefs.h
36642
36643 fi
36644 ac_fn_c_check_func "$LINENO" "j1" "ac_cv_func_j1"
36645 if test "x$ac_cv_func_j1" = xyes
36646 then :
36647 printf "%s\n" "#define HAVE_J1 1" >>confdefs.h
36648
36649 fi
36650 ac_fn_c_check_func "$LINENO" "lltostr" "ac_cv_func_lltostr"
36651 if test "x$ac_cv_func_lltostr" = xyes
36652 then :
36653 printf "%s\n" "#define HAVE_LLTOSTR 1" >>confdefs.h
36654
36655 fi
36656 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
36657 if test "x$ac_cv_func_localtime_r" = xyes
36658 then :
36659 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
36660
36661 fi
36662 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
36663 if test "x$ac_cv_func_lstat" = xyes
36664 then :
36665 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
36666
36667 fi
36668 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
36669 if test "x$ac_cv_func_memmove" = xyes
36670 then :
36671 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
36672
36673 fi
36674 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
36675 if test "x$ac_cv_func_memset" = xyes
36676 then :
36677 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
36678
36679 fi
36680 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
36681 if test "x$ac_cv_func_mkdir" = xyes
36682 then :
36683 printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h
36684
36685 fi
36686 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
36687 if test "x$ac_cv_func_mkstemp" = xyes
36688 then :
36689 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
36690
36691 fi
36692 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
36693 if test "x$ac_cv_func_mmap" = xyes
36694 then :
36695 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
36696
36697 fi
36698 ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap"
36699 if test "x$ac_cv_func_munmap" = xyes
36700 then :
36701 printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h
36702
36703 fi
36704 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
36705 if test "x$ac_cv_func_nanosleep" = xyes
36706 then :
36707 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
36708
36709 fi
36710 ac_fn_c_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale"
36711 if test "x$ac_cv_func_newlocale" = xyes
36712 then :
36713 printf "%s\n" "#define HAVE_NEWLOCALE 1" >>confdefs.h
36714
36715 fi
36716 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
36717 if test "x$ac_cv_func__NSGetExecutablePath" = xyes
36718 then :
36719 printf "%s\n" "#define HAVE__NSGETEXECUTABLEPATH 1" >>confdefs.h
36720
36721 fi
36722 ac_fn_c_check_func "$LINENO" "pclose" "ac_cv_func_pclose"
36723 if test "x$ac_cv_func_pclose" = xyes
36724 then :
36725 printf "%s\n" "#define HAVE_PCLOSE 1" >>confdefs.h
36726
36727 fi
36728 ac_fn_c_check_func "$LINENO" "_pclose" "ac_cv_func__pclose"
36729 if test "x$ac_cv_func__pclose" = xyes
36730 then :
36731 printf "%s\n" "#define HAVE__PCLOSE 1" >>confdefs.h
36732
36733 fi
36734 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
36735 if test "x$ac_cv_func_poll" = xyes
36736 then :
36737 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
36738
36739 fi
36740 ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen"
36741 if test "x$ac_cv_func_popen" = xyes
36742 then :
36743 printf "%s\n" "#define HAVE_POPEN 1" >>confdefs.h
36744
36745 fi
36746 ac_fn_c_check_func "$LINENO" "_popen" "ac_cv_func__popen"
36747 if test "x$ac_cv_func__popen" = xyes
36748 then :
36749 printf "%s\n" "#define HAVE__POPEN 1" >>confdefs.h
36750
36751 fi
36752 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
36753 if test "x$ac_cv_func_posix_fadvise" = xyes
36754 then :
36755 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
36756
36757 fi
36758 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
36759 if test "x$ac_cv_func_posix_fallocate" = xyes
36760 then :
36761 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
36762
36763 fi
36764 ac_fn_c_check_func "$LINENO" "posix_madvise" "ac_cv_func_posix_madvise"
36765 if test "x$ac_cv_func_posix_madvise" = xyes
36766 then :
36767 printf "%s\n" "#define HAVE_POSIX_MADVISE 1" >>confdefs.h
36768
36769 fi
36770 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
36771 if test "x$ac_cv_func_posix_memalign" = xyes
36772 then :
36773 printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
36774
36775 fi
36776 ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
36777 if test "x$ac_cv_func_posix_spawnp" = xyes
36778 then :
36779 printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
36780
36781 fi
36782 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
36783 if test "x$ac_cv_func_pow" = xyes
36784 then :
36785 printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
36786
36787 fi
36788 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
36789 if test "x$ac_cv_func_pread" = xyes
36790 then :
36791 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
36792
36793 fi
36794 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
36795 if test "x$ac_cv_func_putenv" = xyes
36796 then :
36797 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
36798
36799 fi
36800 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
36801 if test "x$ac_cv_func_pwrite" = xyes
36802 then :
36803 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
36804
36805 fi
36806 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
36807 if test "x$ac_cv_func_qsort_r" = xyes
36808 then :
36809 printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h
36810
36811 fi
36812 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
36813 if test "x$ac_cv_func_raise" = xyes
36814 then :
36815 printf "%s\n" "#define HAVE_RAISE 1" >>confdefs.h
36816
36817 fi
36818 ac_fn_c_check_func "$LINENO" "rand_r" "ac_cv_func_rand_r"
36819 if test "x$ac_cv_func_rand_r" = xyes
36820 then :
36821 printf "%s\n" "#define HAVE_RAND_R 1" >>confdefs.h
36822
36823 fi
36824 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
36825 if test "x$ac_cv_func_readlink" = xyes
36826 then :
36827 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
36828
36829 fi
36830 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
36831 if test "x$ac_cv_func_realpath" = xyes
36832 then :
36833 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
36834
36835 fi
36836 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
36837 if test "x$ac_cv_func_select" = xyes
36838 then :
36839 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
36840
36841 fi
36842 ac_fn_c_check_func "$LINENO" "seekdir" "ac_cv_func_seekdir"
36843 if test "x$ac_cv_func_seekdir" = xyes
36844 then :
36845 printf "%s\n" "#define HAVE_SEEKDIR 1" >>confdefs.h
36846
36847 fi
36848 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
36849 if test "x$ac_cv_func_sendfile" = xyes
36850 then :
36851 printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h
36852
36853 fi
36854 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
36855 if test "x$ac_cv_func_setlocale" = xyes
36856 then :
36857 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
36858
36859 fi
36860 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
36861 if test "x$ac_cv_func_socket" = xyes
36862 then :
36863 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
36864
36865 fi
36866 ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
36867 if test "x$ac_cv_func_sqrt" = xyes
36868 then :
36869 printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
36870
36871 fi
36872 ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
36873 if test "x$ac_cv_func_setvbuf" = xyes
36874 then :
36875 printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
36876
36877 fi
36878 ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat"
36879 if test "x$ac_cv_func_stat" = xyes
36880 then :
36881 printf "%s\n" "#define HAVE_STAT 1" >>confdefs.h
36882
36883 fi
36884 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
36885 if test "x$ac_cv_func_strcasestr" = xyes
36886 then :
36887 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
36888
36889 fi
36890 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
36891 if test "x$ac_cv_func_strchr" = xyes
36892 then :
36893 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
36894
36895 fi
36896 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
36897 if test "x$ac_cv_func_strrchr" = xyes
36898 then :
36899 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
36900
36901 fi
36902 ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
36903 if test "x$ac_cv_func_strcspn" = xyes
36904 then :
36905 printf "%s\n" "#define HAVE_STRCSPN 1" >>confdefs.h
36906
36907 fi
36908 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
36909 if test "x$ac_cv_func_strdup" = xyes
36910 then :
36911 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
36912
36913 fi
36914 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
36915 if test "x$ac_cv_func_strpbrk" = xyes
36916 then :
36917 printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h
36918
36919 fi
36920 ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
36921 if test "x$ac_cv_func_strspn" = xyes
36922 then :
36923 printf "%s\n" "#define HAVE_STRSPN 1" >>confdefs.h
36924
36925 fi
36926 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
36927 if test "x$ac_cv_func_strstr" = xyes
36928 then :
36929 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
36930
36931 fi
36932 ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
36933 if test "x$ac_cv_func_strtod" = xyes
36934 then :
36935 printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
36936
36937 fi
36938 ac_fn_c_check_func "$LINENO" "strtod_l" "ac_cv_func_strtod_l"
36939 if test "x$ac_cv_func_strtod_l" = xyes
36940 then :
36941 printf "%s\n" "#define HAVE_STRTOD_L 1" >>confdefs.h
36942
36943 fi
36944 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
36945 if test "x$ac_cv_func_strtol" = xyes
36946 then :
36947 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
36948
36949 fi
36950 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
36951 if test "x$ac_cv_func_strtoul" = xyes
36952 then :
36953 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
36954
36955 fi
36956 ac_fn_c_check_func "$LINENO" "symlink" "ac_cv_func_symlink"
36957 if test "x$ac_cv_func_symlink" = xyes
36958 then :
36959 printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h
36960
36961 fi
36962 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
36963 if test "x$ac_cv_func_sysconf" = xyes
36964 then :
36965 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
36966
36967 fi
36968 ac_fn_c_check_func "$LINENO" "sigemptyset" "ac_cv_func_sigemptyset"
36969 if test "x$ac_cv_func_sigemptyset" = xyes
36970 then :
36971 printf "%s\n" "#define HAVE_SIGEMPTYSET 1" >>confdefs.h
36972
36973 fi
36974 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
36975 if test "x$ac_cv_func_sigaction" = xyes
36976 then :
36977 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
36978
36979 fi
36980 ac_fn_c_check_func "$LINENO" "spawnvp" "ac_cv_func_spawnvp"
36981 if test "x$ac_cv_func_spawnvp" = xyes
36982 then :
36983 printf "%s\n" "#define HAVE_SPAWNVP 1" >>confdefs.h
36984
36985 fi
36986 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
36987 if test "x$ac_cv_func_strerror" = xyes
36988 then :
36989 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
36990
36991 fi
36992 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
36993 if test "x$ac_cv_func_strlcat" = xyes
36994 then :
36995 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
36996
36997 fi
36998 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
36999 if test "x$ac_cv_func_strlcpy" = xyes
37000 then :
37001 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
37002
37003 fi
37004 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
37005 if test "x$ac_cv_func_strcasecmp" = xyes
37006 then :
37007 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
37008
37009 fi
37010 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
37011 if test "x$ac_cv_func_strncasecmp" = xyes
37012 then :
37013 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
37014
37015 fi
37016 ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
37017 if test "x$ac_cv_func_system" = xyes
37018 then :
37019 printf "%s\n" "#define HAVE_SYSTEM 1" >>confdefs.h
37020
37021 fi
37022 ac_fn_c_check_func "$LINENO" "telldir" "ac_cv_func_telldir"
37023 if test "x$ac_cv_func_telldir" = xyes
37024 then :
37025 printf "%s\n" "#define HAVE_TELLDIR 1" >>confdefs.h
37026
37027 fi
37028 ac_fn_c_check_func "$LINENO" "tempnam" "ac_cv_func_tempnam"
37029 if test "x$ac_cv_func_tempnam" = xyes
37030 then :
37031 printf "%s\n" "#define HAVE_TEMPNAM 1" >>confdefs.h
37032
37033 fi
37034 ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
37035 if test "x$ac_cv_func_times" = xyes
37036 then :
37037 printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h
37038
37039 fi
37040 ac_fn_c_check_func "$LINENO" "ulltostr" "ac_cv_func_ulltostr"
37041 if test "x$ac_cv_func_ulltostr" = xyes
37042 then :
37043 printf "%s\n" "#define HAVE_ULLTOSTR 1" >>confdefs.h
37044
37045 fi
37046 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
37047 if test "x$ac_cv_func_uselocale" = xyes
37048 then :
37049 printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h
37050
37051 fi
37052 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
37053 if test "x$ac_cv_func_usleep" = xyes
37054 then :
37055 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
37056
37057 fi
37058 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
37059 if test "x$ac_cv_func_utime" = xyes
37060 then :
37061 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
37062
37063 fi
37064 ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
37065 if test "x$ac_cv_func_utimensat" = xyes
37066 then :
37067 printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
37068
37069 fi
37070 ac_fn_c_check_func "$LINENO" "vfprintf" "ac_cv_func_vfprintf"
37071 if test "x$ac_cv_func_vfprintf" = xyes
37072 then :
37073 printf "%s\n" "#define HAVE_VFPRINTF 1" >>confdefs.h
37074
37075 fi
37076 ac_fn_c_check_func "$LINENO" "vfprintf_l" "ac_cv_func_vfprintf_l"
37077 if test "x$ac_cv_func_vfprintf_l" = xyes
37078 then :
37079 printf "%s\n" "#define HAVE_VFPRINTF_L 1" >>confdefs.h
37080
37081 fi
37082 ac_fn_c_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
37083 if test "x$ac_cv_func_vsprintf" = xyes
37084 then :
37085 printf "%s\n" "#define HAVE_VSPRINTF 1" >>confdefs.h
37086
37087 fi
37088 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
37089 if test "x$ac_cv_func_vsnprintf" = xyes
37090 then :
37091 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
37092
37093 fi
37094 ac_fn_c_check_func "$LINENO" "vsnprintf_l" "ac_cv_func_vsnprintf_l"
37095 if test "x$ac_cv_func_vsnprintf_l" = xyes
37096 then :
37097 printf "%s\n" "#define HAVE_VSNPRINTF_L 1" >>confdefs.h
37098
37099 fi
37100 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
37101 if test "x$ac_cv_func_waitpid" = xyes
37102 then :
37103 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
37104
37105 fi
37106 ac_fn_c_check_func "$LINENO" "_wfopen" "ac_cv_func__wfopen"
37107 if test "x$ac_cv_func__wfopen" = xyes
37108 then :
37109 printf "%s\n" "#define HAVE__WFOPEN 1" >>confdefs.h
37110
37111 fi
37112 ac_fn_c_check_func "$LINENO" "_wstat" "ac_cv_func__wstat"
37113 if test "x$ac_cv_func__wstat" = xyes
37114 then :
37115 printf "%s\n" "#define HAVE__WSTAT 1" >>confdefs.h
37116
37117 fi
37118
37119
37120 # Substitute compiler name to build/link PerlMagick
37121 #
37122
37123
37124 #
37125 # Configure install Paths
37126 #
37127
37128 # Path to ImageMagick header files
37129 INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
37130 INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
37131 DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
37132 case "${build_os}" in
37133 mingw* )
37134 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
37135 ;;
37136 esac
37137
37138 printf "%s\n" "#define INCLUDE_PATH \"$DEFINE_INCLUDE_PATH\"" >>confdefs.h
37139
37140
37141
37142 # Path to ImageMagick header files (arch part)
37143 INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
37144 DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
37145 case "${build_os}" in
37146 mingw* )
37147 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
37148 ;;
37149 esac
37150
37151 printf "%s\n" "#define INCLUDEARCH_PATH \"$DEFINE_INCLUDE_PATH\"" >>confdefs.h
37152
37153
37154
37155 # Subdirectory under lib to place ImageMagick lib files
37156 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_BASE_VERSION}"
37157
37158 printf "%s\n" "#define LIBRARY_RELATIVE_PATH \"$LIBRARY_RELATIVE_PATH\"" >>confdefs.h
37159
37160
37161 # Path to ImageMagick bin directory
37162 EXECUTABLE_PATH="${BIN_DIR}"
37163 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
37164 case "${build_os}" in
37165 mingw* )
37166 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
37167 ;;
37168 esac
37169
37170 printf "%s\n" "#define EXECUTABLE_PATH \"$DEFINE_EXECUTABLE_PATH\"" >>confdefs.h
37171
37172
37173
37174 # Path to ImageMagick lib
37175 LIBRARY_ABSOLUTE_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
37176 DEFINE_LIBRARY_ABSOLUTE_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
37177 case "${build_os}" in
37178 mingw* )
37179 DEFINE_LIBRARY_ABSOLUTE_PATH=`$WinPathScript "$DEFINE_LIBRARY_ABSOLUTE_PATH" 1`
37180 ;;
37181 esac
37182
37183 printf "%s\n" "#define LIBRARY_ABSOLUTE_PATH \"$DEFINE_LIBRARY_ABSOLUTE_PATH\"" >>confdefs.h
37184
37185
37186
37187 #
37188 # path to local binaries
37189 if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
37190 LIB_BIN_BASEDIRNAME="bin"
37191 fi
37192
37193 printf "%s\n" "#define LIB_BIN_BASEDIRNAME \"$LIB_BIN_BASEDIRNAME\"" >>confdefs.h
37194
37195
37196
37197 if test "x$LIB_BIN_DIR" = "x"; then
37198 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
37199 fi
37200
37201
37202 LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
37203
37204 LIB_BIN_DIR_PATH="${LIBRARY_ABSOLUTE_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
37205
37206
37207 #
37208 # path to modules lib
37209 if test "x$MODULES_BASEDIRNAME" = "x"; then
37210 MODULES_BASEDIRNAME="modules"
37211 fi
37212
37213 printf "%s\n" "#define MODULES_BASEDIRNAME \"$MODULES_BASEDIRNAME\"" >>confdefs.h
37214
37215
37216
37217 if test "x$MODULES_DIRNAME" = "x"; then
37218 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
37219 else
37220
37221 printf "%s\n" "#define MODULES_DIRNAME \"$MODULES_DIRNAME\"" >>confdefs.h
37222
37223 fi
37224
37225
37226 MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
37227
37228 MODULES_PATH="${LIBRARY_ABSOLUTE_PATH}/${MODULES_RELATIVE_PATH}"
37229
37230
37231 #
37232 # path to coders lib
37233 if test "x$CODER_DIRNAME" = "x"; then
37234 CODER_DIRNAME="coders"
37235 fi
37236
37237 printf "%s\n" "#define CODER_DIRNAME \"$CODER_DIRNAME\"" >>confdefs.h
37238
37239
37240
37241 CODER_RELATIVE_PATH="${CODER_DIRNAME}"
37242 CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
37243
37244
37245 #
37246 # Subdirectory under lib to place ImageMagick filter module files
37247 #
37248 # path to coders lib
37249 if test "x$FILTER_DIRNAME" = "x"; then
37250 FILTER_DIRNAME="filters"
37251 fi
37252
37253 printf "%s\n" "#define FILTER_DIRNAME \"$FILTER_DIRNAME\"" >>confdefs.h
37254
37255
37256
37257 FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
37258 FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
37259
37260
37261 #
37262 # Path to ImageMagick documentation files
37263 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
37264 DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
37265 DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
37266 case "${build_os}" in
37267 mingw* )
37268 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
37269 ;;
37270 esac
37271
37272 printf "%s\n" "#define DOCUMENTATION_PATH \"$DEFINE_DOCUMENTATION_PATH\"" >>confdefs.h
37273
37274
37275
37276 #
37277 # Enable/Disable documentation
37278 # Check whether --enable-docs was given.
37279 if test ${enable_docs+y}
37280 then :
37281 enableval=$enable_docs; wantdocs=$enableval
37282 else case e in #(
37283 e) wantdocs=yes ;;
37284 esac
37285 fi
37286
37287 if test "$wantdocs" = "yes"; then
37288 INSTALL_DOC_TRUE=
37289 INSTALL_DOC_FALSE='#'
37290 else
37291 INSTALL_DOC_TRUE='#'
37292 INSTALL_DOC_FALSE=
37293 fi
37294
37295
37296 # Subdirectory to place architecture-dependent configuration files
37297 CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
37298
37299 printf "%s\n" "#define CONFIGURE_RELATIVE_PATH \"$CONFIGURE_RELATIVE_PATH\"" >>confdefs.h
37300
37301 CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
37302 DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
37303 case "${build_os}" in
37304 mingw* )
37305 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
37306 ;;
37307 esac
37308
37309 printf "%s\n" "#define CONFIGURE_PATH \"$DEFINE_CONFIGURE_PATH\"" >>confdefs.h
37310
37311
37312
37313 # Subdirectory to place architecture-independent configuration files
37314 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
37315
37316 printf "%s\n" "#define SHARE_RELATIVE_PATH \"$SHARE_RELATIVE_PATH\"" >>confdefs.h
37317
37318 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
37319 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
37320 case "${build_os}" in
37321 mingw* )
37322 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
37323 ;;
37324 esac
37325
37326 printf "%s\n" "#define SHARE_PATH \"$DEFINE_SHARE_PATH\"" >>confdefs.h
37327
37328
37329
37330 #
37331 # Subdirectory to place architecture-dependent configuration files.
37332 if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
37333 SHAREARCH_BASEDIRNAME="config"
37334 fi
37335
37336 printf "%s\n" "#define SHAREARCH_BASEDIRNAME \"$SHAREARCH_BASEDIRNAME\"" >>confdefs.h
37337
37338
37339
37340 if test "x$SHAREARCH_DIRNAME" = "x"; then
37341 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
37342 else
37343
37344 printf "%s\n" "#define SHAREARCH_DIRNAME \"$SHAREARCH_DIRNAME\"" >>confdefs.h
37345
37346 fi
37347
37348
37349 SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
37350
37351 SHAREARCH_PATH="${LIBRARY_ABSOLUTE_PATH}/${SHAREARCH_RELATIVE_PATH}"
37352
37353
37354 #
37355 # program_transform_name is formed for use in a Makefile, so create a
37356 # modified version for use in a shell script.
37357 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
37358
37359 # Default delegate definitions
37360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
37361 printf "%s\n" "-------------------------------------------------------------" >&6; }
37362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
37363 printf %s "checking for ImageMagick delegate programs... " >&6; }
37364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
37365 printf "%s\n" "" >&6; }
37366 BPGDecodeDelegateDefault='bpgdec'
37367 BPGEncodeDelegateDefault='bpgenc'
37368 BlenderDecodeDelegateDefault='blender'
37369 BrowseDelegateDefault='xdg-open'
37370 ClipboardDelegateDefault='xclip'
37371 DNGDecodeDelegateDefault='darktable-cli'
37372 DOCDecodeDelegateDefault='libreoffice'
37373 GVCDecodeDelegateDefault='dot'
37374 DVIDecodeDelegateDefault='dvips'
37375 EditorDelegateDefault='xterm'
37376 ConvertDelegateDefault=`echo magick | sed ${configure_transform_name}`
37377 DisplayDelegateDefault=`echo magick | sed ${configure_transform_name}`
37378 Fig2devDelegateDefault='fig2dev'
37379 MogrifyDelegateDefault=`echo magick | sed ${configure_transform_name}`
37380 HPGLDecodeDelegateDefault='hp2xx'
37381 HTMLDecodeDelegateDefault='html2ps'
37382 ILBMDecodeDelegateDefault='ilbmtoppm'
37383 ILBMEncodeDelegateDefault='ppmtoilbm'
37384 JXRDecodeDelegateDefault='JxrDecApp'
37385 JXREncodeDelegateDefault='JxrEncApp'
37386 LEPDelegateDefault='lepton'
37387 LPDelegateDefault='lp'
37388 LPRDelegateDefault='lpr'
37389 LaunchDelegateDefault='gimp'
37390 MKDIRDelegateDefault='mkdir'
37391 MrSIDDecodeDelegateDefault='mrsidgeodecode'
37392 MVDelegateDefault='mv'
37393 OpenDelegateDefault='open'
37394 PCLDelegateDefault='pcl6'
37395 if test "$native_win32_build" = 'yes'; then
37396 PSDelegateDefault='gswin32c'
37397 elif test "$gslib_framework" = 'yes'; then
37398 PSDelegateDefault='gsc'
37399 else
37400 PSDelegateDefault='gs'
37401 fi
37402 RMDelegateDefault='rm'
37403 RSVGDecodeDelegateDefault='rsvg-convert'
37404 SVGDecodeDelegateDefault='inkscape'
37405 TextEncodeDelegateDefault='tesseract'
37406 TraceEncodeDelegateDefault='potrace'
37407 VIDEODecodeDelegateDefault='ffmpeg'
37408 VIDEOEncodeDelegateDefault='ffmpeg'
37409 WebPDecodeDelegateDefault='dwebp'
37410 WebPEncodeDelegateDefault='cwebp'
37411 WWWDecodeDelegateDefault='curl'
37412 XPSDelegateDefault='gxps'
37413
37414 # Search for delegates
37415 # Extract the first word of ""$BPGDecodeDelegateDefault"", so it can be a program name with args.
37416 set dummy "$BPGDecodeDelegateDefault"; ac_word=$2
37417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37418 printf %s "checking for $ac_word... " >&6; }
37419 if test ${ac_cv_path_BPGDecodeDelegate+y}
37420 then :
37421 printf %s "(cached) " >&6
37422 else case e in #(
37423 e) case $BPGDecodeDelegate in
37424 [\\/]* | ?:[\\/]*)
37425 ac_cv_path_BPGDecodeDelegate="$BPGDecodeDelegate" # Let the user override the test with a path.
37426 ;;
37427 *)
37428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37429 for as_dir in $PATH
37430 do
37431 IFS=$as_save_IFS
37432 case $as_dir in #(((
37433 '') as_dir=./ ;;
37434 */) ;;
37435 *) as_dir=$as_dir/ ;;
37436 esac
37437 for ac_exec_ext in '' $ac_executable_extensions; do
37438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37439 ac_cv_path_BPGDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
37440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37441 break 2
37442 fi
37443 done
37444 done
37445 IFS=$as_save_IFS
37446
37447 test -z "$ac_cv_path_BPGDecodeDelegate" && ac_cv_path_BPGDecodeDelegate=""$BPGDecodeDelegateDefault""
37448 ;;
37449 esac ;;
37450 esac
37451 fi
37452 BPGDecodeDelegate=$ac_cv_path_BPGDecodeDelegate
37453 if test -n "$BPGDecodeDelegate"; then
37454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BPGDecodeDelegate" >&5
37455 printf "%s\n" "$BPGDecodeDelegate" >&6; }
37456 else
37457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37458 printf "%s\n" "no" >&6; }
37459 fi
37460
37461
37462 # Extract the first word of ""$BPGEncodeDelegateDefault"", so it can be a program name with args.
37463 set dummy "$BPGEncodeDelegateDefault"; ac_word=$2
37464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37465 printf %s "checking for $ac_word... " >&6; }
37466 if test ${ac_cv_path_BPGEncodeDelegate+y}
37467 then :
37468 printf %s "(cached) " >&6
37469 else case e in #(
37470 e) case $BPGEncodeDelegate in
37471 [\\/]* | ?:[\\/]*)
37472 ac_cv_path_BPGEncodeDelegate="$BPGEncodeDelegate" # Let the user override the test with a path.
37473 ;;
37474 *)
37475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37476 for as_dir in $PATH
37477 do
37478 IFS=$as_save_IFS
37479 case $as_dir in #(((
37480 '') as_dir=./ ;;
37481 */) ;;
37482 *) as_dir=$as_dir/ ;;
37483 esac
37484 for ac_exec_ext in '' $ac_executable_extensions; do
37485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37486 ac_cv_path_BPGEncodeDelegate="$as_dir$ac_word$ac_exec_ext"
37487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37488 break 2
37489 fi
37490 done
37491 done
37492 IFS=$as_save_IFS
37493
37494 test -z "$ac_cv_path_BPGEncodeDelegate" && ac_cv_path_BPGEncodeDelegate=""$BPGEncodeDelegateDefault""
37495 ;;
37496 esac ;;
37497 esac
37498 fi
37499 BPGEncodeDelegate=$ac_cv_path_BPGEncodeDelegate
37500 if test -n "$BPGEncodeDelegate"; then
37501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BPGEncodeDelegate" >&5
37502 printf "%s\n" "$BPGEncodeDelegate" >&6; }
37503 else
37504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37505 printf "%s\n" "no" >&6; }
37506 fi
37507
37508
37509 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
37510 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
37511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37512 printf %s "checking for $ac_word... " >&6; }
37513 if test ${ac_cv_path_BlenderDecodeDelegate+y}
37514 then :
37515 printf %s "(cached) " >&6
37516 else case e in #(
37517 e) case $BlenderDecodeDelegate in
37518 [\\/]* | ?:[\\/]*)
37519 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
37520 ;;
37521 *)
37522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37523 for as_dir in $PATH
37524 do
37525 IFS=$as_save_IFS
37526 case $as_dir in #(((
37527 '') as_dir=./ ;;
37528 */) ;;
37529 *) as_dir=$as_dir/ ;;
37530 esac
37531 for ac_exec_ext in '' $ac_executable_extensions; do
37532 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37533 ac_cv_path_BlenderDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
37534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37535 break 2
37536 fi
37537 done
37538 done
37539 IFS=$as_save_IFS
37540
37541 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
37542 ;;
37543 esac ;;
37544 esac
37545 fi
37546 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
37547 if test -n "$BlenderDecodeDelegate"; then
37548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
37549 printf "%s\n" "$BlenderDecodeDelegate" >&6; }
37550 else
37551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37552 printf "%s\n" "no" >&6; }
37553 fi
37554
37555
37556 for ac_prog in "$BrowseDelegateDefault" brave-browser microsoft-edge google-chrome firefox konqueror lynx
37557 do
37558 # Extract the first word of "$ac_prog", so it can be a program name with args.
37559 set dummy $ac_prog; ac_word=$2
37560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37561 printf %s "checking for $ac_word... " >&6; }
37562 if test ${ac_cv_path_BrowseDelegate+y}
37563 then :
37564 printf %s "(cached) " >&6
37565 else case e in #(
37566 e) case $BrowseDelegate in
37567 [\\/]* | ?:[\\/]*)
37568 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
37569 ;;
37570 *)
37571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37572 for as_dir in $PATH
37573 do
37574 IFS=$as_save_IFS
37575 case $as_dir in #(((
37576 '') as_dir=./ ;;
37577 */) ;;
37578 *) as_dir=$as_dir/ ;;
37579 esac
37580 for ac_exec_ext in '' $ac_executable_extensions; do
37581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37582 ac_cv_path_BrowseDelegate="$as_dir$ac_word$ac_exec_ext"
37583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37584 break 2
37585 fi
37586 done
37587 done
37588 IFS=$as_save_IFS
37589
37590 ;;
37591 esac ;;
37592 esac
37593 fi
37594 BrowseDelegate=$ac_cv_path_BrowseDelegate
37595 if test -n "$BrowseDelegate"; then
37596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
37597 printf "%s\n" "$BrowseDelegate" >&6; }
37598 else
37599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37600 printf "%s\n" "no" >&6; }
37601 fi
37602
37603
37604 test -n "$BrowseDelegate" && break
37605 done
37606 test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
37607
37608 for ac_prog in "$ClipboardDelegateDefault"
37609 do
37610 # Extract the first word of "$ac_prog", so it can be a program name with args.
37611 set dummy $ac_prog; ac_word=$2
37612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37613 printf %s "checking for $ac_word... " >&6; }
37614 if test ${ac_cv_path_ClipboardDelegate+y}
37615 then :
37616 printf %s "(cached) " >&6
37617 else case e in #(
37618 e) case $ClipboardDelegate in
37619 [\\/]* | ?:[\\/]*)
37620 ac_cv_path_ClipboardDelegate="$ClipboardDelegate" # Let the user override the test with a path.
37621 ;;
37622 *)
37623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37624 for as_dir in $PATH
37625 do
37626 IFS=$as_save_IFS
37627 case $as_dir in #(((
37628 '') as_dir=./ ;;
37629 */) ;;
37630 *) as_dir=$as_dir/ ;;
37631 esac
37632 for ac_exec_ext in '' $ac_executable_extensions; do
37633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37634 ac_cv_path_ClipboardDelegate="$as_dir$ac_word$ac_exec_ext"
37635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37636 break 2
37637 fi
37638 done
37639 done
37640 IFS=$as_save_IFS
37641
37642 ;;
37643 esac ;;
37644 esac
37645 fi
37646 ClipboardDelegate=$ac_cv_path_ClipboardDelegate
37647 if test -n "$ClipboardDelegate"; then
37648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ClipboardDelegate" >&5
37649 printf "%s\n" "$ClipboardDelegate" >&6; }
37650 else
37651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37652 printf "%s\n" "no" >&6; }
37653 fi
37654
37655
37656 test -n "$ClipboardDelegate" && break
37657 done
37658 test -n "$ClipboardDelegate" || ClipboardDelegate=""$ClipboardDelegateDefault""
37659
37660 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
37661 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
37662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37663 printf %s "checking for $ac_word... " >&6; }
37664 if test ${ac_cv_path_DNGDecodeDelegate+y}
37665 then :
37666 printf %s "(cached) " >&6
37667 else case e in #(
37668 e) case $DNGDecodeDelegate in
37669 [\\/]* | ?:[\\/]*)
37670 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
37671 ;;
37672 *)
37673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37674 for as_dir in $PATH
37675 do
37676 IFS=$as_save_IFS
37677 case $as_dir in #(((
37678 '') as_dir=./ ;;
37679 */) ;;
37680 *) as_dir=$as_dir/ ;;
37681 esac
37682 for ac_exec_ext in '' $ac_executable_extensions; do
37683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37684 ac_cv_path_DNGDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
37685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37686 break 2
37687 fi
37688 done
37689 done
37690 IFS=$as_save_IFS
37691
37692 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
37693 ;;
37694 esac ;;
37695 esac
37696 fi
37697 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
37698 if test -n "$DNGDecodeDelegate"; then
37699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
37700 printf "%s\n" "$DNGDecodeDelegate" >&6; }
37701 else
37702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37703 printf "%s\n" "no" >&6; }
37704 fi
37705
37706
37707 # Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
37708 set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
37709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37710 printf %s "checking for $ac_word... " >&6; }
37711 if test ${ac_cv_path_DOCDecodeDelegate+y}
37712 then :
37713 printf %s "(cached) " >&6
37714 else case e in #(
37715 e) case $DOCDecodeDelegate in
37716 [\\/]* | ?:[\\/]*)
37717 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
37718 ;;
37719 *)
37720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37721 for as_dir in $PATH
37722 do
37723 IFS=$as_save_IFS
37724 case $as_dir in #(((
37725 '') as_dir=./ ;;
37726 */) ;;
37727 *) as_dir=$as_dir/ ;;
37728 esac
37729 for ac_exec_ext in '' $ac_executable_extensions; do
37730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37731 ac_cv_path_DOCDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
37732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37733 break 2
37734 fi
37735 done
37736 done
37737 IFS=$as_save_IFS
37738
37739 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
37740 ;;
37741 esac ;;
37742 esac
37743 fi
37744 DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
37745 if test -n "$DOCDecodeDelegate"; then
37746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
37747 printf "%s\n" "$DOCDecodeDelegate" >&6; }
37748 else
37749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37750 printf "%s\n" "no" >&6; }
37751 fi
37752
37753
37754 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
37755 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
37756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37757 printf %s "checking for $ac_word... " >&6; }
37758 if test ${ac_cv_path_DVIDecodeDelegate+y}
37759 then :
37760 printf %s "(cached) " >&6
37761 else case e in #(
37762 e) case $DVIDecodeDelegate in
37763 [\\/]* | ?:[\\/]*)
37764 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
37765 ;;
37766 *)
37767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37768 for as_dir in $PATH
37769 do
37770 IFS=$as_save_IFS
37771 case $as_dir in #(((
37772 '') as_dir=./ ;;
37773 */) ;;
37774 *) as_dir=$as_dir/ ;;
37775 esac
37776 for ac_exec_ext in '' $ac_executable_extensions; do
37777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37778 ac_cv_path_DVIDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
37779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37780 break 2
37781 fi
37782 done
37783 done
37784 IFS=$as_save_IFS
37785
37786 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
37787 ;;
37788 esac ;;
37789 esac
37790 fi
37791 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
37792 if test -n "$DVIDecodeDelegate"; then
37793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
37794 printf "%s\n" "$DVIDecodeDelegate" >&6; }
37795 else
37796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37797 printf "%s\n" "no" >&6; }
37798 fi
37799
37800
37801 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
37802 set dummy "$ConvertDelegateDefault"; ac_word=$2
37803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37804 printf %s "checking for $ac_word... " >&6; }
37805 if test ${ac_cv_path_ConvertDelegate+y}
37806 then :
37807 printf %s "(cached) " >&6
37808 else case e in #(
37809 e) case $ConvertDelegate in
37810 [\\/]* | ?:[\\/]*)
37811 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
37812 ;;
37813 *)
37814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37815 for as_dir in $PATH
37816 do
37817 IFS=$as_save_IFS
37818 case $as_dir in #(((
37819 '') as_dir=./ ;;
37820 */) ;;
37821 *) as_dir=$as_dir/ ;;
37822 esac
37823 for ac_exec_ext in '' $ac_executable_extensions; do
37824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37825 ac_cv_path_ConvertDelegate="$as_dir$ac_word$ac_exec_ext"
37826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37827 break 2
37828 fi
37829 done
37830 done
37831 IFS=$as_save_IFS
37832
37833 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
37834 ;;
37835 esac ;;
37836 esac
37837 fi
37838 ConvertDelegate=$ac_cv_path_ConvertDelegate
37839 if test -n "$ConvertDelegate"; then
37840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
37841 printf "%s\n" "$ConvertDelegate" >&6; }
37842 else
37843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37844 printf "%s\n" "no" >&6; }
37845 fi
37846
37847
37848 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
37849 set dummy "$DisplayDelegateDefault"; ac_word=$2
37850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37851 printf %s "checking for $ac_word... " >&6; }
37852 if test ${ac_cv_path_DisplayDelegate+y}
37853 then :
37854 printf %s "(cached) " >&6
37855 else case e in #(
37856 e) case $DisplayDelegate in
37857 [\\/]* | ?:[\\/]*)
37858 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
37859 ;;
37860 *)
37861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37862 for as_dir in $PATH
37863 do
37864 IFS=$as_save_IFS
37865 case $as_dir in #(((
37866 '') as_dir=./ ;;
37867 */) ;;
37868 *) as_dir=$as_dir/ ;;
37869 esac
37870 for ac_exec_ext in '' $ac_executable_extensions; do
37871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37872 ac_cv_path_DisplayDelegate="$as_dir$ac_word$ac_exec_ext"
37873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37874 break 2
37875 fi
37876 done
37877 done
37878 IFS=$as_save_IFS
37879
37880 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
37881 ;;
37882 esac ;;
37883 esac
37884 fi
37885 DisplayDelegate=$ac_cv_path_DisplayDelegate
37886 if test -n "$DisplayDelegate"; then
37887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
37888 printf "%s\n" "$DisplayDelegate" >&6; }
37889 else
37890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37891 printf "%s\n" "no" >&6; }
37892 fi
37893
37894
37895 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
37896 set dummy "$EditorDelegateDefault"; ac_word=$2
37897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37898 printf %s "checking for $ac_word... " >&6; }
37899 if test ${ac_cv_path_EditorDelegate+y}
37900 then :
37901 printf %s "(cached) " >&6
37902 else case e in #(
37903 e) case $EditorDelegate in
37904 [\\/]* | ?:[\\/]*)
37905 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
37906 ;;
37907 *)
37908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37909 for as_dir in $PATH
37910 do
37911 IFS=$as_save_IFS
37912 case $as_dir in #(((
37913 '') as_dir=./ ;;
37914 */) ;;
37915 *) as_dir=$as_dir/ ;;
37916 esac
37917 for ac_exec_ext in '' $ac_executable_extensions; do
37918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37919 ac_cv_path_EditorDelegate="$as_dir$ac_word$ac_exec_ext"
37920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37921 break 2
37922 fi
37923 done
37924 done
37925 IFS=$as_save_IFS
37926
37927 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
37928 ;;
37929 esac ;;
37930 esac
37931 fi
37932 EditorDelegate=$ac_cv_path_EditorDelegate
37933 if test -n "$EditorDelegate"; then
37934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
37935 printf "%s\n" "$EditorDelegate" >&6; }
37936 else
37937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37938 printf "%s\n" "no" >&6; }
37939 fi
37940
37941
37942 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
37943 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
37944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37945 printf %s "checking for $ac_word... " >&6; }
37946 if test ${ac_cv_path_GVCDecodeDelegate+y}
37947 then :
37948 printf %s "(cached) " >&6
37949 else case e in #(
37950 e) case $GVCDecodeDelegate in
37951 [\\/]* | ?:[\\/]*)
37952 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
37953 ;;
37954 *)
37955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37956 for as_dir in $PATH
37957 do
37958 IFS=$as_save_IFS
37959 case $as_dir in #(((
37960 '') as_dir=./ ;;
37961 */) ;;
37962 *) as_dir=$as_dir/ ;;
37963 esac
37964 for ac_exec_ext in '' $ac_executable_extensions; do
37965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37966 ac_cv_path_GVCDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
37967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37968 break 2
37969 fi
37970 done
37971 done
37972 IFS=$as_save_IFS
37973
37974 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
37975 ;;
37976 esac ;;
37977 esac
37978 fi
37979 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
37980 if test -n "$GVCDecodeDelegate"; then
37981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
37982 printf "%s\n" "$GVCDecodeDelegate" >&6; }
37983 else
37984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37985 printf "%s\n" "no" >&6; }
37986 fi
37987
37988
37989 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
37990 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
37991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37992 printf %s "checking for $ac_word... " >&6; }
37993 if test ${ac_cv_path_HPGLDecodeDelegate+y}
37994 then :
37995 printf %s "(cached) " >&6
37996 else case e in #(
37997 e) case $HPGLDecodeDelegate in
37998 [\\/]* | ?:[\\/]*)
37999 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
38000 ;;
38001 *)
38002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38003 for as_dir in $PATH
38004 do
38005 IFS=$as_save_IFS
38006 case $as_dir in #(((
38007 '') as_dir=./ ;;
38008 */) ;;
38009 *) as_dir=$as_dir/ ;;
38010 esac
38011 for ac_exec_ext in '' $ac_executable_extensions; do
38012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38013 ac_cv_path_HPGLDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
38014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38015 break 2
38016 fi
38017 done
38018 done
38019 IFS=$as_save_IFS
38020
38021 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
38022 ;;
38023 esac ;;
38024 esac
38025 fi
38026 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
38027 if test -n "$HPGLDecodeDelegate"; then
38028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
38029 printf "%s\n" "$HPGLDecodeDelegate" >&6; }
38030 else
38031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38032 printf "%s\n" "no" >&6; }
38033 fi
38034
38035
38036 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
38037 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
38038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38039 printf %s "checking for $ac_word... " >&6; }
38040 if test ${ac_cv_path_HTMLDecodeDelegate+y}
38041 then :
38042 printf %s "(cached) " >&6
38043 else case e in #(
38044 e) case $HTMLDecodeDelegate in
38045 [\\/]* | ?:[\\/]*)
38046 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
38047 ;;
38048 *)
38049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38050 for as_dir in $PATH
38051 do
38052 IFS=$as_save_IFS
38053 case $as_dir in #(((
38054 '') as_dir=./ ;;
38055 */) ;;
38056 *) as_dir=$as_dir/ ;;
38057 esac
38058 for ac_exec_ext in '' $ac_executable_extensions; do
38059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38060 ac_cv_path_HTMLDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
38061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38062 break 2
38063 fi
38064 done
38065 done
38066 IFS=$as_save_IFS
38067
38068 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
38069 ;;
38070 esac ;;
38071 esac
38072 fi
38073 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
38074 if test -n "$HTMLDecodeDelegate"; then
38075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
38076 printf "%s\n" "$HTMLDecodeDelegate" >&6; }
38077 else
38078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38079 printf "%s\n" "no" >&6; }
38080 fi
38081
38082
38083 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
38084 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
38085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38086 printf %s "checking for $ac_word... " >&6; }
38087 if test ${ac_cv_path_ILBMDecodeDelegate+y}
38088 then :
38089 printf %s "(cached) " >&6
38090 else case e in #(
38091 e) case $ILBMDecodeDelegate in
38092 [\\/]* | ?:[\\/]*)
38093 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
38094 ;;
38095 *)
38096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38097 for as_dir in $PATH
38098 do
38099 IFS=$as_save_IFS
38100 case $as_dir in #(((
38101 '') as_dir=./ ;;
38102 */) ;;
38103 *) as_dir=$as_dir/ ;;
38104 esac
38105 for ac_exec_ext in '' $ac_executable_extensions; do
38106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38107 ac_cv_path_ILBMDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
38108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38109 break 2
38110 fi
38111 done
38112 done
38113 IFS=$as_save_IFS
38114
38115 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
38116 ;;
38117 esac ;;
38118 esac
38119 fi
38120 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
38121 if test -n "$ILBMDecodeDelegate"; then
38122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
38123 printf "%s\n" "$ILBMDecodeDelegate" >&6; }
38124 else
38125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38126 printf "%s\n" "no" >&6; }
38127 fi
38128
38129
38130 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
38131 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
38132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38133 printf %s "checking for $ac_word... " >&6; }
38134 if test ${ac_cv_path_ILBMEncodeDelegate+y}
38135 then :
38136 printf %s "(cached) " >&6
38137 else case e in #(
38138 e) case $ILBMEncodeDelegate in
38139 [\\/]* | ?:[\\/]*)
38140 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
38141 ;;
38142 *)
38143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38144 for as_dir in $PATH
38145 do
38146 IFS=$as_save_IFS
38147 case $as_dir in #(((
38148 '') as_dir=./ ;;
38149 */) ;;
38150 *) as_dir=$as_dir/ ;;
38151 esac
38152 for ac_exec_ext in '' $ac_executable_extensions; do
38153 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38154 ac_cv_path_ILBMEncodeDelegate="$as_dir$ac_word$ac_exec_ext"
38155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38156 break 2
38157 fi
38158 done
38159 done
38160 IFS=$as_save_IFS
38161
38162 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
38163 ;;
38164 esac ;;
38165 esac
38166 fi
38167 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
38168 if test -n "$ILBMEncodeDelegate"; then
38169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
38170 printf "%s\n" "$ILBMEncodeDelegate" >&6; }
38171 else
38172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38173 printf "%s\n" "no" >&6; }
38174 fi
38175
38176
38177 # Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
38178 set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
38179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38180 printf %s "checking for $ac_word... " >&6; }
38181 if test ${ac_cv_path_JXRDecodeDelegate+y}
38182 then :
38183 printf %s "(cached) " >&6
38184 else case e in #(
38185 e) case $JXRDecodeDelegate in
38186 [\\/]* | ?:[\\/]*)
38187 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
38188 ;;
38189 *)
38190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38191 for as_dir in $PATH
38192 do
38193 IFS=$as_save_IFS
38194 case $as_dir in #(((
38195 '') as_dir=./ ;;
38196 */) ;;
38197 *) as_dir=$as_dir/ ;;
38198 esac
38199 for ac_exec_ext in '' $ac_executable_extensions; do
38200 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38201 ac_cv_path_JXRDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
38202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38203 break 2
38204 fi
38205 done
38206 done
38207 IFS=$as_save_IFS
38208
38209 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
38210 ;;
38211 esac ;;
38212 esac
38213 fi
38214 JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
38215 if test -n "$JXRDecodeDelegate"; then
38216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
38217 printf "%s\n" "$JXRDecodeDelegate" >&6; }
38218 else
38219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38220 printf "%s\n" "no" >&6; }
38221 fi
38222
38223
38224 # Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
38225 set dummy "$JXREncodeDelegateDefault"; ac_word=$2
38226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38227 printf %s "checking for $ac_word... " >&6; }
38228 if test ${ac_cv_path_JXREncodeDelegate+y}
38229 then :
38230 printf %s "(cached) " >&6
38231 else case e in #(
38232 e) case $JXREncodeDelegate in
38233 [\\/]* | ?:[\\/]*)
38234 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
38235 ;;
38236 *)
38237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38238 for as_dir in $PATH
38239 do
38240 IFS=$as_save_IFS
38241 case $as_dir in #(((
38242 '') as_dir=./ ;;
38243 */) ;;
38244 *) as_dir=$as_dir/ ;;
38245 esac
38246 for ac_exec_ext in '' $ac_executable_extensions; do
38247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38248 ac_cv_path_JXREncodeDelegate="$as_dir$ac_word$ac_exec_ext"
38249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38250 break 2
38251 fi
38252 done
38253 done
38254 IFS=$as_save_IFS
38255
38256 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
38257 ;;
38258 esac ;;
38259 esac
38260 fi
38261 JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
38262 if test -n "$JXREncodeDelegate"; then
38263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
38264 printf "%s\n" "$JXREncodeDelegate" >&6; }
38265 else
38266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38267 printf "%s\n" "no" >&6; }
38268 fi
38269
38270
38271 # Extract the first word of ""$LEPDelegateDefault"", so it can be a program name with args.
38272 set dummy "$LEPDelegateDefault"; ac_word=$2
38273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38274 printf %s "checking for $ac_word... " >&6; }
38275 if test ${ac_cv_path_LEPDelegate+y}
38276 then :
38277 printf %s "(cached) " >&6
38278 else case e in #(
38279 e) case $LEPDelegate in
38280 [\\/]* | ?:[\\/]*)
38281 ac_cv_path_LEPDelegate="$LEPDelegate" # Let the user override the test with a path.
38282 ;;
38283 *)
38284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38285 for as_dir in $PATH
38286 do
38287 IFS=$as_save_IFS
38288 case $as_dir in #(((
38289 '') as_dir=./ ;;
38290 */) ;;
38291 *) as_dir=$as_dir/ ;;
38292 esac
38293 for ac_exec_ext in '' $ac_executable_extensions; do
38294 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38295 ac_cv_path_LEPDelegate="$as_dir$ac_word$ac_exec_ext"
38296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38297 break 2
38298 fi
38299 done
38300 done
38301 IFS=$as_save_IFS
38302
38303 test -z "$ac_cv_path_LEPDelegate" && ac_cv_path_LEPDelegate=""$LEPDelegateDefault""
38304 ;;
38305 esac ;;
38306 esac
38307 fi
38308 LEPDelegate=$ac_cv_path_LEPDelegate
38309 if test -n "$LEPDelegate"; then
38310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEPDelegate" >&5
38311 printf "%s\n" "$LEPDelegate" >&6; }
38312 else
38313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38314 printf "%s\n" "no" >&6; }
38315 fi
38316
38317
38318 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
38319 set dummy "$LPDelegateDefault"; ac_word=$2
38320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38321 printf %s "checking for $ac_word... " >&6; }
38322 if test ${ac_cv_path_LPDelegate+y}
38323 then :
38324 printf %s "(cached) " >&6
38325 else case e in #(
38326 e) case $LPDelegate in
38327 [\\/]* | ?:[\\/]*)
38328 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
38329 ;;
38330 *)
38331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38332 for as_dir in $PATH
38333 do
38334 IFS=$as_save_IFS
38335 case $as_dir in #(((
38336 '') as_dir=./ ;;
38337 */) ;;
38338 *) as_dir=$as_dir/ ;;
38339 esac
38340 for ac_exec_ext in '' $ac_executable_extensions; do
38341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38342 ac_cv_path_LPDelegate="$as_dir$ac_word$ac_exec_ext"
38343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38344 break 2
38345 fi
38346 done
38347 done
38348 IFS=$as_save_IFS
38349
38350 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
38351 ;;
38352 esac ;;
38353 esac
38354 fi
38355 LPDelegate=$ac_cv_path_LPDelegate
38356 if test -n "$LPDelegate"; then
38357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
38358 printf "%s\n" "$LPDelegate" >&6; }
38359 else
38360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38361 printf "%s\n" "no" >&6; }
38362 fi
38363
38364
38365 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
38366 set dummy "$LPRDelegateDefault"; ac_word=$2
38367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38368 printf %s "checking for $ac_word... " >&6; }
38369 if test ${ac_cv_path_LPRDelegate+y}
38370 then :
38371 printf %s "(cached) " >&6
38372 else case e in #(
38373 e) case $LPRDelegate in
38374 [\\/]* | ?:[\\/]*)
38375 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
38376 ;;
38377 *)
38378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38379 for as_dir in $PATH
38380 do
38381 IFS=$as_save_IFS
38382 case $as_dir in #(((
38383 '') as_dir=./ ;;
38384 */) ;;
38385 *) as_dir=$as_dir/ ;;
38386 esac
38387 for ac_exec_ext in '' $ac_executable_extensions; do
38388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38389 ac_cv_path_LPRDelegate="$as_dir$ac_word$ac_exec_ext"
38390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38391 break 2
38392 fi
38393 done
38394 done
38395 IFS=$as_save_IFS
38396
38397 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
38398 ;;
38399 esac ;;
38400 esac
38401 fi
38402 LPRDelegate=$ac_cv_path_LPRDelegate
38403 if test -n "$LPRDelegate"; then
38404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
38405 printf "%s\n" "$LPRDelegate" >&6; }
38406 else
38407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38408 printf "%s\n" "no" >&6; }
38409 fi
38410
38411
38412 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
38413 set dummy "$LaunchDelegateDefault"; ac_word=$2
38414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38415 printf %s "checking for $ac_word... " >&6; }
38416 if test ${ac_cv_path_LaunchDelegate+y}
38417 then :
38418 printf %s "(cached) " >&6
38419 else case e in #(
38420 e) case $LaunchDelegate in
38421 [\\/]* | ?:[\\/]*)
38422 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
38423 ;;
38424 *)
38425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38426 for as_dir in $PATH
38427 do
38428 IFS=$as_save_IFS
38429 case $as_dir in #(((
38430 '') as_dir=./ ;;
38431 */) ;;
38432 *) as_dir=$as_dir/ ;;
38433 esac
38434 for ac_exec_ext in '' $ac_executable_extensions; do
38435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38436 ac_cv_path_LaunchDelegate="$as_dir$ac_word$ac_exec_ext"
38437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38438 break 2
38439 fi
38440 done
38441 done
38442 IFS=$as_save_IFS
38443
38444 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
38445 ;;
38446 esac ;;
38447 esac
38448 fi
38449 LaunchDelegate=$ac_cv_path_LaunchDelegate
38450 if test -n "$LaunchDelegate"; then
38451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
38452 printf "%s\n" "$LaunchDelegate" >&6; }
38453 else
38454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38455 printf "%s\n" "no" >&6; }
38456 fi
38457
38458
38459 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
38460 set dummy "$MogrifyDelegateDefault"; ac_word=$2
38461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38462 printf %s "checking for $ac_word... " >&6; }
38463 if test ${ac_cv_path_MogrifyDelegate+y}
38464 then :
38465 printf %s "(cached) " >&6
38466 else case e in #(
38467 e) case $MogrifyDelegate in
38468 [\\/]* | ?:[\\/]*)
38469 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
38470 ;;
38471 *)
38472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38473 for as_dir in $PATH
38474 do
38475 IFS=$as_save_IFS
38476 case $as_dir in #(((
38477 '') as_dir=./ ;;
38478 */) ;;
38479 *) as_dir=$as_dir/ ;;
38480 esac
38481 for ac_exec_ext in '' $ac_executable_extensions; do
38482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38483 ac_cv_path_MogrifyDelegate="$as_dir$ac_word$ac_exec_ext"
38484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38485 break 2
38486 fi
38487 done
38488 done
38489 IFS=$as_save_IFS
38490
38491 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
38492 ;;
38493 esac ;;
38494 esac
38495 fi
38496 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
38497 if test -n "$MogrifyDelegate"; then
38498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
38499 printf "%s\n" "$MogrifyDelegate" >&6; }
38500 else
38501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38502 printf "%s\n" "no" >&6; }
38503 fi
38504
38505
38506 # Extract the first word of ""$VIDEODecodeDelegateDefault"", so it can be a program name with args.
38507 set dummy "$VIDEODecodeDelegateDefault"; ac_word=$2
38508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38509 printf %s "checking for $ac_word... " >&6; }
38510 if test ${ac_cv_path_VIDEODecodeDelegate+y}
38511 then :
38512 printf %s "(cached) " >&6
38513 else case e in #(
38514 e) case $VIDEODecodeDelegate in
38515 [\\/]* | ?:[\\/]*)
38516 ac_cv_path_VIDEODecodeDelegate="$VIDEODecodeDelegate" # Let the user override the test with a path.
38517 ;;
38518 *)
38519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38520 for as_dir in $PATH
38521 do
38522 IFS=$as_save_IFS
38523 case $as_dir in #(((
38524 '') as_dir=./ ;;
38525 */) ;;
38526 *) as_dir=$as_dir/ ;;
38527 esac
38528 for ac_exec_ext in '' $ac_executable_extensions; do
38529 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38530 ac_cv_path_VIDEODecodeDelegate="$as_dir$ac_word$ac_exec_ext"
38531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38532 break 2
38533 fi
38534 done
38535 done
38536 IFS=$as_save_IFS
38537
38538 test -z "$ac_cv_path_VIDEODecodeDelegate" && ac_cv_path_VIDEODecodeDelegate=""$VIDEODecodeDelegateDefault""
38539 ;;
38540 esac ;;
38541 esac
38542 fi
38543 VIDEODecodeDelegate=$ac_cv_path_VIDEODecodeDelegate
38544 if test -n "$VIDEODecodeDelegate"; then
38545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VIDEODecodeDelegate" >&5
38546 printf "%s\n" "$VIDEODecodeDelegate" >&6; }
38547 else
38548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38549 printf "%s\n" "no" >&6; }
38550 fi
38551
38552
38553 # Extract the first word of ""$VIDEOEncodeDelegateDefault"", so it can be a program name with args.
38554 set dummy "$VIDEOEncodeDelegateDefault"; ac_word=$2
38555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38556 printf %s "checking for $ac_word... " >&6; }
38557 if test ${ac_cv_path_VIDEOEncodeDelegate+y}
38558 then :
38559 printf %s "(cached) " >&6
38560 else case e in #(
38561 e) case $VIDEOEncodeDelegate in
38562 [\\/]* | ?:[\\/]*)
38563 ac_cv_path_VIDEOEncodeDelegate="$VIDEOEncodeDelegate" # Let the user override the test with a path.
38564 ;;
38565 *)
38566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38567 for as_dir in $PATH
38568 do
38569 IFS=$as_save_IFS
38570 case $as_dir in #(((
38571 '') as_dir=./ ;;
38572 */) ;;
38573 *) as_dir=$as_dir/ ;;
38574 esac
38575 for ac_exec_ext in '' $ac_executable_extensions; do
38576 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38577 ac_cv_path_VIDEOEncodeDelegate="$as_dir$ac_word$ac_exec_ext"
38578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38579 break 2
38580 fi
38581 done
38582 done
38583 IFS=$as_save_IFS
38584
38585 test -z "$ac_cv_path_VIDEOEncodeDelegate" && ac_cv_path_VIDEOEncodeDelegate=""$VIDEOEncodeDelegateDefault""
38586 ;;
38587 esac ;;
38588 esac
38589 fi
38590 VIDEOEncodeDelegate=$ac_cv_path_VIDEOEncodeDelegate
38591 if test -n "$VIDEOEncodeDelegate"; then
38592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VIDEOEncodeDelegate" >&5
38593 printf "%s\n" "$VIDEOEncodeDelegate" >&6; }
38594 else
38595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38596 printf "%s\n" "no" >&6; }
38597 fi
38598
38599
38600 # Extract the first word of ""$MKDIRDelegateDefault"", so it can be a program name with args.
38601 set dummy "$MKDIRDelegateDefault"; ac_word=$2
38602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38603 printf %s "checking for $ac_word... " >&6; }
38604 if test ${ac_cv_path_MKDIRDelegate+y}
38605 then :
38606 printf %s "(cached) " >&6
38607 else case e in #(
38608 e) case $MKDIRDelegate in
38609 [\\/]* | ?:[\\/]*)
38610 ac_cv_path_MKDIRDelegate="$MKDIRDelegate" # Let the user override the test with a path.
38611 ;;
38612 *)
38613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38614 for as_dir in $PATH
38615 do
38616 IFS=$as_save_IFS
38617 case $as_dir in #(((
38618 '') as_dir=./ ;;
38619 */) ;;
38620 *) as_dir=$as_dir/ ;;
38621 esac
38622 for ac_exec_ext in '' $ac_executable_extensions; do
38623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38624 ac_cv_path_MKDIRDelegate="$as_dir$ac_word$ac_exec_ext"
38625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38626 break 2
38627 fi
38628 done
38629 done
38630 IFS=$as_save_IFS
38631
38632 test -z "$ac_cv_path_MKDIRDelegate" && ac_cv_path_MKDIRDelegate=""$MKDIRDelegateDefault""
38633 ;;
38634 esac ;;
38635 esac
38636 fi
38637 MKDIRDelegate=$ac_cv_path_MKDIRDelegate
38638 if test -n "$MKDIRDelegate"; then
38639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIRDelegate" >&5
38640 printf "%s\n" "$MKDIRDelegate" >&6; }
38641 else
38642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38643 printf "%s\n" "no" >&6; }
38644 fi
38645
38646
38647 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
38648 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
38649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38650 printf %s "checking for $ac_word... " >&6; }
38651 if test ${ac_cv_path_MrSIDDecodeDelegate+y}
38652 then :
38653 printf %s "(cached) " >&6
38654 else case e in #(
38655 e) case $MrSIDDecodeDelegate in
38656 [\\/]* | ?:[\\/]*)
38657 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
38658 ;;
38659 *)
38660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38661 for as_dir in $PATH
38662 do
38663 IFS=$as_save_IFS
38664 case $as_dir in #(((
38665 '') as_dir=./ ;;
38666 */) ;;
38667 *) as_dir=$as_dir/ ;;
38668 esac
38669 for ac_exec_ext in '' $ac_executable_extensions; do
38670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38671 ac_cv_path_MrSIDDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
38672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38673 break 2
38674 fi
38675 done
38676 done
38677 IFS=$as_save_IFS
38678
38679 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
38680 ;;
38681 esac ;;
38682 esac
38683 fi
38684 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
38685 if test -n "$MrSIDDecodeDelegate"; then
38686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
38687 printf "%s\n" "$MrSIDDecodeDelegate" >&6; }
38688 else
38689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38690 printf "%s\n" "no" >&6; }
38691 fi
38692
38693
38694 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
38695 set dummy "$MVDelegateDefault"; ac_word=$2
38696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38697 printf %s "checking for $ac_word... " >&6; }
38698 if test ${ac_cv_path_MVDelegate+y}
38699 then :
38700 printf %s "(cached) " >&6
38701 else case e in #(
38702 e) case $MVDelegate in
38703 [\\/]* | ?:[\\/]*)
38704 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
38705 ;;
38706 *)
38707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38708 for as_dir in $PATH
38709 do
38710 IFS=$as_save_IFS
38711 case $as_dir in #(((
38712 '') as_dir=./ ;;
38713 */) ;;
38714 *) as_dir=$as_dir/ ;;
38715 esac
38716 for ac_exec_ext in '' $ac_executable_extensions; do
38717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38718 ac_cv_path_MVDelegate="$as_dir$ac_word$ac_exec_ext"
38719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38720 break 2
38721 fi
38722 done
38723 done
38724 IFS=$as_save_IFS
38725
38726 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
38727 ;;
38728 esac ;;
38729 esac
38730 fi
38731 MVDelegate=$ac_cv_path_MVDelegate
38732 if test -n "$MVDelegate"; then
38733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
38734 printf "%s\n" "$MVDelegate" >&6; }
38735 else
38736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38737 printf "%s\n" "no" >&6; }
38738 fi
38739
38740
38741 # Extract the first word of ""$OpenDelegateDefault"", so it can be a program name with args.
38742 set dummy "$OpenDelegateDefault"; ac_word=$2
38743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38744 printf %s "checking for $ac_word... " >&6; }
38745 if test ${ac_cv_path_OpenDelegate+y}
38746 then :
38747 printf %s "(cached) " >&6
38748 else case e in #(
38749 e) case $OpenDelegate in
38750 [\\/]* | ?:[\\/]*)
38751 ac_cv_path_OpenDelegate="$OpenDelegate" # Let the user override the test with a path.
38752 ;;
38753 *)
38754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38755 for as_dir in $PATH
38756 do
38757 IFS=$as_save_IFS
38758 case $as_dir in #(((
38759 '') as_dir=./ ;;
38760 */) ;;
38761 *) as_dir=$as_dir/ ;;
38762 esac
38763 for ac_exec_ext in '' $ac_executable_extensions; do
38764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38765 ac_cv_path_OpenDelegate="$as_dir$ac_word$ac_exec_ext"
38766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38767 break 2
38768 fi
38769 done
38770 done
38771 IFS=$as_save_IFS
38772
38773 test -z "$ac_cv_path_OpenDelegate" && ac_cv_path_OpenDelegate=""$OpenDelegateDefault""
38774 ;;
38775 esac ;;
38776 esac
38777 fi
38778 OpenDelegate=$ac_cv_path_OpenDelegate
38779 if test -n "$OpenDelegate"; then
38780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OpenDelegate" >&5
38781 printf "%s\n" "$OpenDelegate" >&6; }
38782 else
38783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38784 printf "%s\n" "no" >&6; }
38785 fi
38786
38787
38788 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
38789 set dummy "$PCLDelegateDefault"; ac_word=$2
38790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38791 printf %s "checking for $ac_word... " >&6; }
38792 if test ${ac_cv_path_PCLDelegate+y}
38793 then :
38794 printf %s "(cached) " >&6
38795 else case e in #(
38796 e) case $PCLDelegate in
38797 [\\/]* | ?:[\\/]*)
38798 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
38799 ;;
38800 *)
38801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38802 for as_dir in $PATH
38803 do
38804 IFS=$as_save_IFS
38805 case $as_dir in #(((
38806 '') as_dir=./ ;;
38807 */) ;;
38808 *) as_dir=$as_dir/ ;;
38809 esac
38810 for ac_exec_ext in '' $ac_executable_extensions; do
38811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38812 ac_cv_path_PCLDelegate="$as_dir$ac_word$ac_exec_ext"
38813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38814 break 2
38815 fi
38816 done
38817 done
38818 IFS=$as_save_IFS
38819
38820 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
38821 ;;
38822 esac ;;
38823 esac
38824 fi
38825 PCLDelegate=$ac_cv_path_PCLDelegate
38826 if test -n "$PCLDelegate"; then
38827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
38828 printf "%s\n" "$PCLDelegate" >&6; }
38829 else
38830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38831 printf "%s\n" "no" >&6; }
38832 fi
38833
38834
38835 for ac_prog in gsx gsc "$PSDelegateDefault"
38836 do
38837 # Extract the first word of "$ac_prog", so it can be a program name with args.
38838 set dummy $ac_prog; ac_word=$2
38839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38840 printf %s "checking for $ac_word... " >&6; }
38841 if test ${ac_cv_path_PSDelegate+y}
38842 then :
38843 printf %s "(cached) " >&6
38844 else case e in #(
38845 e) case $PSDelegate in
38846 [\\/]* | ?:[\\/]*)
38847 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
38848 ;;
38849 *)
38850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38851 for as_dir in $PATH
38852 do
38853 IFS=$as_save_IFS
38854 case $as_dir in #(((
38855 '') as_dir=./ ;;
38856 */) ;;
38857 *) as_dir=$as_dir/ ;;
38858 esac
38859 for ac_exec_ext in '' $ac_executable_extensions; do
38860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38861 ac_cv_path_PSDelegate="$as_dir$ac_word$ac_exec_ext"
38862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38863 break 2
38864 fi
38865 done
38866 done
38867 IFS=$as_save_IFS
38868
38869 ;;
38870 esac ;;
38871 esac
38872 fi
38873 PSDelegate=$ac_cv_path_PSDelegate
38874 if test -n "$PSDelegate"; then
38875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
38876 printf "%s\n" "$PSDelegate" >&6; }
38877 else
38878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38879 printf "%s\n" "no" >&6; }
38880 fi
38881
38882
38883 test -n "$PSDelegate" && break
38884 done
38885 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
38886
38887 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
38888 set dummy "$RMDelegateDefault"; ac_word=$2
38889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38890 printf %s "checking for $ac_word... " >&6; }
38891 if test ${ac_cv_path_RMDelegate+y}
38892 then :
38893 printf %s "(cached) " >&6
38894 else case e in #(
38895 e) case $RMDelegate in
38896 [\\/]* | ?:[\\/]*)
38897 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
38898 ;;
38899 *)
38900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38901 for as_dir in $PATH
38902 do
38903 IFS=$as_save_IFS
38904 case $as_dir in #(((
38905 '') as_dir=./ ;;
38906 */) ;;
38907 *) as_dir=$as_dir/ ;;
38908 esac
38909 for ac_exec_ext in '' $ac_executable_extensions; do
38910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38911 ac_cv_path_RMDelegate="$as_dir$ac_word$ac_exec_ext"
38912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38913 break 2
38914 fi
38915 done
38916 done
38917 IFS=$as_save_IFS
38918
38919 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
38920 ;;
38921 esac ;;
38922 esac
38923 fi
38924 RMDelegate=$ac_cv_path_RMDelegate
38925 if test -n "$RMDelegate"; then
38926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
38927 printf "%s\n" "$RMDelegate" >&6; }
38928 else
38929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38930 printf "%s\n" "no" >&6; }
38931 fi
38932
38933
38934 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
38935 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
38936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38937 printf %s "checking for $ac_word... " >&6; }
38938 if test ${ac_cv_path_RSVGDecodeDelegate+y}
38939 then :
38940 printf %s "(cached) " >&6
38941 else case e in #(
38942 e) case $RSVGDecodeDelegate in
38943 [\\/]* | ?:[\\/]*)
38944 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
38945 ;;
38946 *)
38947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38948 for as_dir in $PATH
38949 do
38950 IFS=$as_save_IFS
38951 case $as_dir in #(((
38952 '') as_dir=./ ;;
38953 */) ;;
38954 *) as_dir=$as_dir/ ;;
38955 esac
38956 for ac_exec_ext in '' $ac_executable_extensions; do
38957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38958 ac_cv_path_RSVGDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
38959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38960 break 2
38961 fi
38962 done
38963 done
38964 IFS=$as_save_IFS
38965
38966 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
38967 ;;
38968 esac ;;
38969 esac
38970 fi
38971 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
38972 if test -n "$RSVGDecodeDelegate"; then
38973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
38974 printf "%s\n" "$RSVGDecodeDelegate" >&6; }
38975 else
38976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38977 printf "%s\n" "no" >&6; }
38978 fi
38979
38980
38981 # Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
38982 set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
38983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38984 printf %s "checking for $ac_word... " >&6; }
38985 if test ${ac_cv_path_SVGDecodeDelegate+y}
38986 then :
38987 printf %s "(cached) " >&6
38988 else case e in #(
38989 e) case $SVGDecodeDelegate in
38990 [\\/]* | ?:[\\/]*)
38991 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
38992 ;;
38993 *)
38994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38995 for as_dir in $PATH
38996 do
38997 IFS=$as_save_IFS
38998 case $as_dir in #(((
38999 '') as_dir=./ ;;
39000 */) ;;
39001 *) as_dir=$as_dir/ ;;
39002 esac
39003 for ac_exec_ext in '' $ac_executable_extensions; do
39004 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39005 ac_cv_path_SVGDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
39006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39007 break 2
39008 fi
39009 done
39010 done
39011 IFS=$as_save_IFS
39012
39013 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
39014 ;;
39015 esac ;;
39016 esac
39017 fi
39018 SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
39019 if test -n "$SVGDecodeDelegate"; then
39020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
39021 printf "%s\n" "$SVGDecodeDelegate" >&6; }
39022 else
39023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39024 printf "%s\n" "no" >&6; }
39025 fi
39026
39027
39028 # Extract the first word of ""$TextEncodeDelegateDefault"", so it can be a program name with args.
39029 set dummy "$TextEncodeDelegateDefault"; ac_word=$2
39030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39031 printf %s "checking for $ac_word... " >&6; }
39032 if test ${ac_cv_path_TextEncodeDelegate+y}
39033 then :
39034 printf %s "(cached) " >&6
39035 else case e in #(
39036 e) case $TextEncodeDelegate in
39037 [\\/]* | ?:[\\/]*)
39038 ac_cv_path_TextEncodeDelegate="$TextEncodeDelegate" # Let the user override the test with a path.
39039 ;;
39040 *)
39041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39042 for as_dir in $PATH
39043 do
39044 IFS=$as_save_IFS
39045 case $as_dir in #(((
39046 '') as_dir=./ ;;
39047 */) ;;
39048 *) as_dir=$as_dir/ ;;
39049 esac
39050 for ac_exec_ext in '' $ac_executable_extensions; do
39051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39052 ac_cv_path_TextEncodeDelegate="$as_dir$ac_word$ac_exec_ext"
39053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39054 break 2
39055 fi
39056 done
39057 done
39058 IFS=$as_save_IFS
39059
39060 test -z "$ac_cv_path_TextEncodeDelegate" && ac_cv_path_TextEncodeDelegate=""$TextEncodeDelegateDefault""
39061 ;;
39062 esac ;;
39063 esac
39064 fi
39065 TextEncodeDelegate=$ac_cv_path_TextEncodeDelegate
39066 if test -n "$TextEncodeDelegate"; then
39067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TextEncodeDelegate" >&5
39068 printf "%s\n" "$TextEncodeDelegate" >&6; }
39069 else
39070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39071 printf "%s\n" "no" >&6; }
39072 fi
39073
39074
39075 # Extract the first word of ""$TraceEncodeDelegateDefault"", so it can be a program name with args.
39076 set dummy "$TraceEncodeDelegateDefault"; ac_word=$2
39077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39078 printf %s "checking for $ac_word... " >&6; }
39079 if test ${ac_cv_path_TraceEncodeDelegate+y}
39080 then :
39081 printf %s "(cached) " >&6
39082 else case e in #(
39083 e) case $TraceEncodeDelegate in
39084 [\\/]* | ?:[\\/]*)
39085 ac_cv_path_TraceEncodeDelegate="$TraceEncodeDelegate" # Let the user override the test with a path.
39086 ;;
39087 *)
39088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39089 for as_dir in $PATH
39090 do
39091 IFS=$as_save_IFS
39092 case $as_dir in #(((
39093 '') as_dir=./ ;;
39094 */) ;;
39095 *) as_dir=$as_dir/ ;;
39096 esac
39097 for ac_exec_ext in '' $ac_executable_extensions; do
39098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39099 ac_cv_path_TraceEncodeDelegate="$as_dir$ac_word$ac_exec_ext"
39100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39101 break 2
39102 fi
39103 done
39104 done
39105 IFS=$as_save_IFS
39106
39107 test -z "$ac_cv_path_TraceEncodeDelegate" && ac_cv_path_TraceEncodeDelegate=""$TraceEncodeDelegateDefault""
39108 ;;
39109 esac ;;
39110 esac
39111 fi
39112 TraceEncodeDelegate=$ac_cv_path_TraceEncodeDelegate
39113 if test -n "$TraceEncodeDelegate"; then
39114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TraceEncodeDelegate" >&5
39115 printf "%s\n" "$TraceEncodeDelegate" >&6; }
39116 else
39117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39118 printf "%s\n" "no" >&6; }
39119 fi
39120
39121
39122 # Extract the first word of ""$Fig2devDelegateDefault"", so it can be a program name with args.
39123 set dummy "$Fig2devDelegateDefault"; ac_word=$2
39124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39125 printf %s "checking for $ac_word... " >&6; }
39126 if test ${ac_cv_path_Fig2devDelegate+y}
39127 then :
39128 printf %s "(cached) " >&6
39129 else case e in #(
39130 e) case $Fig2devDelegate in
39131 [\\/]* | ?:[\\/]*)
39132 ac_cv_path_Fig2devDelegate="$Fig2devDelegate" # Let the user override the test with a path.
39133 ;;
39134 *)
39135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39136 for as_dir in $PATH
39137 do
39138 IFS=$as_save_IFS
39139 case $as_dir in #(((
39140 '') as_dir=./ ;;
39141 */) ;;
39142 *) as_dir=$as_dir/ ;;
39143 esac
39144 for ac_exec_ext in '' $ac_executable_extensions; do
39145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39146 ac_cv_path_Fig2devDelegate="$as_dir$ac_word$ac_exec_ext"
39147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39148 break 2
39149 fi
39150 done
39151 done
39152 IFS=$as_save_IFS
39153
39154 test -z "$ac_cv_path_Fig2devDelegate" && ac_cv_path_Fig2devDelegate=""$Fig2devDelegateDefault""
39155 ;;
39156 esac ;;
39157 esac
39158 fi
39159 Fig2devDelegate=$ac_cv_path_Fig2devDelegate
39160 if test -n "$Fig2devDelegate"; then
39161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $Fig2devDelegate" >&5
39162 printf "%s\n" "$Fig2devDelegate" >&6; }
39163 else
39164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39165 printf "%s\n" "no" >&6; }
39166 fi
39167
39168
39169 # Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
39170 set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
39171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39172 printf %s "checking for $ac_word... " >&6; }
39173 if test ${ac_cv_path_WebPDecodeDelegate+y}
39174 then :
39175 printf %s "(cached) " >&6
39176 else case e in #(
39177 e) case $WebPDecodeDelegate in
39178 [\\/]* | ?:[\\/]*)
39179 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
39180 ;;
39181 *)
39182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39183 for as_dir in $PATH
39184 do
39185 IFS=$as_save_IFS
39186 case $as_dir in #(((
39187 '') as_dir=./ ;;
39188 */) ;;
39189 *) as_dir=$as_dir/ ;;
39190 esac
39191 for ac_exec_ext in '' $ac_executable_extensions; do
39192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39193 ac_cv_path_WebPDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
39194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39195 break 2
39196 fi
39197 done
39198 done
39199 IFS=$as_save_IFS
39200
39201 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
39202 ;;
39203 esac ;;
39204 esac
39205 fi
39206 WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
39207 if test -n "$WebPDecodeDelegate"; then
39208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
39209 printf "%s\n" "$WebPDecodeDelegate" >&6; }
39210 else
39211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39212 printf "%s\n" "no" >&6; }
39213 fi
39214
39215
39216 # Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
39217 set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
39218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39219 printf %s "checking for $ac_word... " >&6; }
39220 if test ${ac_cv_path_WebPEncodeDelegate+y}
39221 then :
39222 printf %s "(cached) " >&6
39223 else case e in #(
39224 e) case $WebPEncodeDelegate in
39225 [\\/]* | ?:[\\/]*)
39226 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
39227 ;;
39228 *)
39229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39230 for as_dir in $PATH
39231 do
39232 IFS=$as_save_IFS
39233 case $as_dir in #(((
39234 '') as_dir=./ ;;
39235 */) ;;
39236 *) as_dir=$as_dir/ ;;
39237 esac
39238 for ac_exec_ext in '' $ac_executable_extensions; do
39239 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39240 ac_cv_path_WebPEncodeDelegate="$as_dir$ac_word$ac_exec_ext"
39241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39242 break 2
39243 fi
39244 done
39245 done
39246 IFS=$as_save_IFS
39247
39248 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
39249 ;;
39250 esac ;;
39251 esac
39252 fi
39253 WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
39254 if test -n "$WebPEncodeDelegate"; then
39255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
39256 printf "%s\n" "$WebPEncodeDelegate" >&6; }
39257 else
39258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39259 printf "%s\n" "no" >&6; }
39260 fi
39261
39262
39263 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
39264 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
39265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39266 printf %s "checking for $ac_word... " >&6; }
39267 if test ${ac_cv_path_WWWDecodeDelegate+y}
39268 then :
39269 printf %s "(cached) " >&6
39270 else case e in #(
39271 e) case $WWWDecodeDelegate in
39272 [\\/]* | ?:[\\/]*)
39273 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
39274 ;;
39275 *)
39276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39277 for as_dir in $PATH
39278 do
39279 IFS=$as_save_IFS
39280 case $as_dir in #(((
39281 '') as_dir=./ ;;
39282 */) ;;
39283 *) as_dir=$as_dir/ ;;
39284 esac
39285 for ac_exec_ext in '' $ac_executable_extensions; do
39286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39287 ac_cv_path_WWWDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
39288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39289 break 2
39290 fi
39291 done
39292 done
39293 IFS=$as_save_IFS
39294
39295 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDelegateDefault""
39296 ;;
39297 esac ;;
39298 esac
39299 fi
39300 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
39301 if test -n "$WWWDecodeDelegate"; then
39302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
39303 printf "%s\n" "$WWWDecodeDelegate" >&6; }
39304 else
39305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39306 printf "%s\n" "no" >&6; }
39307 fi
39308
39309
39310 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
39311 set dummy "$XPSDelegateDefault"; ac_word=$2
39312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39313 printf %s "checking for $ac_word... " >&6; }
39314 if test ${ac_cv_path_XPSDelegate+y}
39315 then :
39316 printf %s "(cached) " >&6
39317 else case e in #(
39318 e) case $XPSDelegate in
39319 [\\/]* | ?:[\\/]*)
39320 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
39321 ;;
39322 *)
39323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39324 for as_dir in $PATH
39325 do
39326 IFS=$as_save_IFS
39327 case $as_dir in #(((
39328 '') as_dir=./ ;;
39329 */) ;;
39330 *) as_dir=$as_dir/ ;;
39331 esac
39332 for ac_exec_ext in '' $ac_executable_extensions; do
39333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39334 ac_cv_path_XPSDelegate="$as_dir$ac_word$ac_exec_ext"
39335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39336 break 2
39337 fi
39338 done
39339 done
39340 IFS=$as_save_IFS
39341
39342 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
39343 ;;
39344 esac ;;
39345 esac
39346 fi
39347 XPSDelegate=$ac_cv_path_XPSDelegate
39348 if test -n "$XPSDelegate"; then
39349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
39350 printf "%s\n" "$XPSDelegate" >&6; }
39351 else
39352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39353 printf "%s\n" "no" >&6; }
39354 fi
39355
39356
39357
39358 # Prefer lpr to lp; lp needs options tacked on.
39359 if test "$LPRDelegate" != no; then
39360 PrintDelegate="$LPRDelegate"
39361 else
39362 PrintDelegate="$LPDelegate -c -s"
39363 fi
39364
39365
39366 # Installed ImageMagick utility paths
39367 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
39368 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
39369 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
39370
39371 # Set delegate booleans
39372 have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
39373 have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
39374 have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
39375 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
39376 have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
39377 have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
39378 have_video='no'; if test "$VIDEODecodeDelegate" != "$VIDEODecodeDelegateDefault" ; then have_video='yes'; fi
39379 have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
39380
39381 #
39382 # Test for font directories
39383 #
39384 type_include_files=''
39385
39386 # Apple fonts.
39387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
39388 printf %s "checking for Apple fonts directory... " >&6; }
39389 apple_font_dir=''
39390 if test "${with_apple_font_dir}" != 'default'; then
39391 apple_font_dir="${with_apple_font_dir}/"
39392 else
39393 for font_dir in '/Library/Fonts/'; do
39394 if test -f "${font_dir}Arial.ttf"; then
39395 apple_font_dir="${font_dir}"
39396 break 1
39397 fi
39398 done
39399 fi
39400 if test "${apple_font_dir}x" != 'x'; then
39401 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
39402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
39403 printf "%s\n" "$apple_font_dir" >&6; }
39404 else
39405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
39406 printf "%s\n" "not found!" >&6; };
39407 fi
39408
39409
39410 # Dejavu fonts.
39411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
39412 printf %s "checking for Dejavu fonts directory... " >&6; }
39413 dejavu_font_dir=''
39414 if test "${with_dejavu_font_dir}" != 'default'; then
39415 dejavu_font_dir="${with_dejavu_font_dir}/"
39416 else
39417 for font_dir in "${prefix}/share/fonts/dejavu" "${prefix}/share/dejavu-serif-fonts/fonts/" '/usr/share/fonts/dejavu-serif-fonts/' '/usr/share/fonts/truetype/dejavu/'; do
39418 if test -f "${font_dir}DejaVuSerif.ttf"; then
39419 dejavu_font_dir="${font_dir}"
39420 break 1
39421 fi
39422 done
39423 fi
39424 if test "${dejavu_font_dir}x" != 'x'; then
39425 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
39426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
39427 printf "%s\n" "$dejavu_font_dir" >&6; }
39428 else
39429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
39430 printf "%s\n" "not found!" >&6; };
39431 fi
39432
39433
39434 # Ghostscript
39435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
39436 printf %s "checking for Ghostscript fonts directory... " >&6; }
39437 ghostscript_font_dir=''
39438 if test "${with_gs_font_dir}" != 'default'; then
39439 ghostscript_font_dir="${with_gs_font_dir}/"
39440 else
39441 if test "${native_win32_build}" = 'yes'; then
39442 # Native Windows Build
39443 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
39444 if test -f "${font_dir}a010013l.pfb"; then
39445 ghostscript_font_dir="$font_dir"
39446 break 1
39447 fi
39448 done
39449 if test "${PSDelegate}" != 'gswin32c'; then
39450 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
39451 fi
39452 else
39453 # Linux / macOS / Unix Build
39454 for font_dir in "${prefix}/share/ghostscript/fonts/" '/usr/share/fonts/default/Type1/' '/usr/share/ghostscript/fonts/' '/usr/share/fonts/ghostscript/' '/usr/share/fonts/type1/gsfonts/' '/opt/local/share/ghostscript/fonts/' '/sw/share/ghostscript/fonts/' '/System/Library/Frameworks/Ghostscript.framework/Resources/fonts/'; do
39455 if test -f "${font_dir}a010013l.pfb"; then
39456 ghostscript_font_dir="${font_dir}"
39457 break 1
39458 fi
39459 done
39460 if test "${ghostscript_font_dir}x" = 'x'; then
39461 if test "$PSDelegate" != 'gs'; then
39462 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
39463 fi
39464 fi
39465 fi
39466 fi
39467 if test "${ghostscript_font_dir}x" != 'x'; then
39468 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
39469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
39470 printf "%s\n" "$ghostscript_font_dir" >&6; }
39471 else
39472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
39473 printf "%s\n" "not found!" >&6; };
39474 fi
39475
39476 case "${build_os}" in
39477 mingw* )
39478 PSDelegate=`$WinPathScript "$PSDelegate" 1`
39479 ;;
39480 esac
39481
39482 # URW-base35 OTF fonts.
39483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for URW-base35 OTF fonts directory" >&5
39484 printf %s "checking for URW-base35 OTF fonts directory... " >&6; }
39485 urw_base35_font_dir=''
39486 if test "${with_urw_base35_font_dir}" != 'default'; then
39487 urw_base35_font_dir="${with_urw_base35_font_dir}/"
39488 else
39489 for font_dir in "${prefix}/share/urw-base35/fonts/" "${prefix}/share/fonts/opentype/urw-base35" '/usr/share/fonts/urw-base35/' '/usr/share/fonts/opentype/urw-base35/'; do
39490 if test -f "${font_dir}URWGothic-Book.otf"; then
39491 urw_base35_font_dir="${font_dir}"
39492 break 1
39493 fi
39494 done
39495 fi
39496 if test "${urw_base35_font_dir}x" != 'x'; then
39497 type_include_files="${type_include_files} "'<include file="type-urw-base35.xml" />'
39498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $urw_base35_font_dir" >&5
39499 printf "%s\n" "$urw_base35_font_dir" >&6; }
39500 else
39501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
39502 printf "%s\n" "not found!" >&6; };
39503 fi
39504
39505
39506 # URW-base35 Type1 fonts.
39507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for URW-base35 Type1 fonts directory" >&5
39508 printf %s "checking for URW-base35 Type1 fonts directory... " >&6; }
39509 urw_base35_type1_font_dir=''
39510 if test "${with_urw_base35_type1_font_dir}" != 'default'; then
39511 urw_base35_type1_font_dir="${with_urw_base35_type1_font_dir}/"
39512 else
39513 for font_dir in "${prefix}/share/urw-base35/fonts/" "${prefix}/share/fonts/type1/urw-base35" '/usr/share/fonts/urw-base35/' '/usr/share/fonts/type1/urw-base35/'; do
39514 if test -f "${font_dir}URWGothic-Book.t1"; then
39515 urw_base35_type1_font_dir="${font_dir}"
39516 break 1
39517 fi
39518 done
39519 fi
39520 if test "${urw_base35_type1_font_dir}x" != 'x'; then
39521 type_include_files="${type_include_files} "'<include file="type-urw-base35-type1.xml" />'
39522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $urw_base35_type1_font_dir" >&5
39523 printf "%s\n" "$urw_base35_type1_font_dir" >&6; }
39524 else
39525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
39526 printf "%s\n" "not found!" >&6; };
39527 fi
39528
39529
39530 # Windows fonts.
39531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
39532 printf %s "checking for Windows fonts directory... " >&6; }
39533 windows_font_dir=''
39534 if test "${with_windows_font_dir}" != 'default'; then
39535 windows_font_dir="${with_windows_font_dir}/"
39536 else
39537 for font_dir in '/usr/share/wine/fonts/' '/usr/share/fonts/msttcore/' '/usr/share/fonts/microsoft/' '/usr/share/fonts/truetype/msttcorefonts/'; do
39538 if test -f "${font_dir}arial.ttf"; then
39539 windows_font_dir="${font_dir}"
39540 break 1
39541 fi
39542 done
39543 fi
39544 if test "${windows_font_dir}x" != 'x'; then
39545 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
39546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
39547 printf "%s\n" "$windows_font_dir" >&6; }
39548 else
39549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
39550 printf "%s\n" "not found!" >&6; };
39551 fi
39552
39553
39554
39555
39556 # Permit enciphering and deciphering image pixels.
39557 # Check whether --enable-cipher was given.
39558 if test ${enable_cipher+y}
39559 then :
39560 enableval=$enable_cipher; enable_cipher=$enableval
39561 else case e in #(
39562 e) enable_cipher='yes' ;;
39563 esac
39564 fi
39565
39566
39567 if test "$enable_cipher" = 'yes'; then
39568
39569 printf "%s\n" "#define CIPHER_SUPPORT 1" >>confdefs.h
39570
39571 MAGICK_FEATURES="Cipher $MAGICK_FEATURES"
39572 fi
39573
39574 #
39575 # Check for extended channel masks.
39576 #
39577 # Check whether --enable-64bit_channel_masks was given.
39578 if test ${enable_64bit_channel_masks+y}
39579 then :
39580 enableval=$enable_64bit_channel_masks; enable_64bit_channel_masks=$enableval
39581 else case e in #(
39582 e) enable_64bit_channel_masks='no' ;;
39583 esac
39584 fi
39585
39586
39587 # Check whether --enable-force_cpp was given.
39588 if test ${enable_force_cpp+y}
39589 then :
39590 enableval=$enable_force_cpp; enable_force_cpp=$enableval
39591 else case e in #(
39592 e) enable_force_cpp='no' ;;
39593 esac
39594 fi
39595
39596
39597 magick_channel_mask_depth='32';
39598 if test "$enable_64bit_channel_masks" = 'yes'; then
39599 if test "$enable_force_cpp" = 'yes'; then
39600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -x c++ option" >&5
39601 printf %s "checking whether the compiler supports -x c++ option... " >&6; }
39602 old_CC="$CC"
39603 old_CFLAGS="$CFLAGS"
39604 cpp_CC=''
39605 for option in $CC; do
39606 case "$option" in
39607 -std=c*|-std=gnu*)
39608 ;;
39609 *)
39610 cpp_CC="$cpp_CC $option"
39611 ;;
39612 esac
39613 done
39614 CC="$cpp_CC"
39615 CFLAGS="$CFLAGS -x c++"
39616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39617 /* end confdefs.h. */
39618
39619
39620 enum Days : int { Monday = 1 };
39621
39622 int
39623 main (void)
39624 {
39625
39626
39627 ;
39628 return 0;
39629 }
39630
39631 _ACEOF
39632 if ac_fn_c_try_compile "$LINENO"
39633 then :
39634
39635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39636 printf "%s\n" "yes" >&6; }
39637 magick_channel_mask_depth='64';
39638
39639 else case e in #(
39640 e)
39641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39642 printf "%s\n" "no" >&6; }
39643 ;;
39644 esac
39645 fi
39646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39647 if test "$magick_channel_mask_depth" != '64'; then
39648 CC="$old_CC"
39649 CFLAGS="$old_CFLAGS"
39650 fi
39651 else
39652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports enum type modifiers" >&5
39653 printf %s "checking whether the compiler supports enum type modifiers... " >&6; }
39654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39655 /* end confdefs.h. */
39656
39657
39658 enum Days : int { Monday = 1 };
39659
39660 int
39661 main (void)
39662 {
39663
39664
39665 ;
39666 return 0;
39667 }
39668
39669 _ACEOF
39670 if ac_fn_c_try_compile "$LINENO"
39671 then :
39672
39673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39674 printf "%s\n" "yes" >&6; }
39675 magick_channel_mask_depth='64';
39676
39677 else case e in #(
39678 e)
39679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39680 printf "%s\n" "no" >&6; }
39681 ;;
39682 esac
39683 fi
39684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39685 fi
39686 fi
39687 if test "$magick_channel_mask_depth" = '64'; then
39688 MAGICK_FEATURES="Channel-masks(64-bit) $MAGICK_FEATURES"
39689 else
39690 MAGICK_FEATURES="Channel-masks(32-bit) $MAGICK_FEATURES"
39691 fi
39692
39693 printf "%s\n" "#define CHANNEL_MASK_DEPTH $magick_channel_mask_depth" >>confdefs.h
39694
39695 CHANNEL_MASK_DEPTH=$magick_channel_mask_depth
39696 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_CHANNEL_MASK_DEPTH=$magick_channel_mask_depth"
39697 CFLAGS="$CFLAGS -DMAGICKCORE_CHANNEL_MASK_DEPTH=$magick_channel_mask_depth"
39698 CPPFLAGS="$CPPFLAGS -DMAGICKCORE_CHANNEL_MASK_DEPTH=$magick_channel_mask_depth"
39699
39700 #
39701 # Handle case where user doesn't want frozen paths
39702 #
39703 if test "$with_frozenpaths" != 'yes'; then
39704 # Re-set delegate definitions to default (no paths)
39705 BPGDecodeDelegate="$BPGDecodeDelegateDefault"
39706 BPGEncodeDelegate="$BPGEncodeDelegateDefault"
39707 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
39708 BrowseDelegate="$BrowseDelegateDefault"
39709 ClipboardDelegate="$ClipboardDelegateDefault"
39710 ConvertDelegate="$ConvertDelegateDefault"
39711 DisplayDelegate="$DisplayDelegateDefault"
39712 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
39713 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
39714 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
39715 EditorDelegate="$EditorDelegateDefault"
39716 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
39717 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
39718 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
39719 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
39720 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
39721 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
39722 JXREncodeDelegate="$JXREncodeDelegateDefault"
39723 LEPDelegate="$LEPDelegateDefault"
39724 LPDelegate="$LPDelegateDefault"
39725 LaunchDelegate="$LaunchDelegateDefault"
39726 MogrifyDelegate="$MogrifyDelegateDefault"
39727 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
39728 OpenDelegate="$OpenDelegateDefault"
39729 PCLDelegate="$PCLDelegateDefault"
39730 PSDelegate="$PSDelegateDefault"
39731 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
39732 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
39733 ShowImageDelegate="$ShowImageDelegateDefault"
39734 TextEncodeDelegate="$TextEncodeDelegateDefault"
39735 TraceEncodeDelegate="$TraceEncodeDelegateDefault"
39736 Fig2devDelegate="$Fig2devDelegateDefault"
39737 VIDEODecodeDelegate="$VIDEODecodeDelegateDefault"
39738 VIDEOEncodeDelegate="$VIDEOEncodeDelegateDefault"
39739 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
39740 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
39741 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
39742 XPSDelegate="$XPSDelegateDefault"
39743 fi
39744
39745 # Delegate substitutions
39746
39747
39748
39749
39750
39751
39752
39753
39754
39755
39756
39757
39758
39759
39760
39761
39762
39763
39764
39765
39766
39767
39768
39769
39770
39771
39772
39773
39774
39775
39776
39777
39778
39779
39780 #
39781 # RPM support.
39782 #
39783 RPM=''
39784 for ac_prog in gnutar gtar tar
39785 do
39786 # Extract the first word of "$ac_prog", so it can be a program name with args.
39787 set dummy $ac_prog; ac_word=$2
39788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39789 printf %s "checking for $ac_word... " >&6; }
39790 if test ${ac_cv_prog_TAR+y}
39791 then :
39792 printf %s "(cached) " >&6
39793 else case e in #(
39794 e) if test -n "$TAR"; then
39795 ac_cv_prog_TAR="$TAR" # Let the user override the test.
39796 else
39797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39798 for as_dir in $PATH
39799 do
39800 IFS=$as_save_IFS
39801 case $as_dir in #(((
39802 '') as_dir=./ ;;
39803 */) ;;
39804 *) as_dir=$as_dir/ ;;
39805 esac
39806 for ac_exec_ext in '' $ac_executable_extensions; do
39807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39808 ac_cv_prog_TAR="$ac_prog"
39809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39810 break 2
39811 fi
39812 done
39813 done
39814 IFS=$as_save_IFS
39815
39816 fi ;;
39817 esac
39818 fi
39819 TAR=$ac_cv_prog_TAR
39820 if test -n "$TAR"; then
39821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
39822 printf "%s\n" "$TAR" >&6; }
39823 else
39824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39825 printf "%s\n" "no" >&6; }
39826 fi
39827
39828
39829 test -n "$TAR" && break
39830 done
39831
39832 for ac_prog in perl
39833 do
39834 # Extract the first word of "$ac_prog", so it can be a program name with args.
39835 set dummy $ac_prog; ac_word=$2
39836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39837 printf %s "checking for $ac_word... " >&6; }
39838 if test ${ac_cv_prog_PERL+y}
39839 then :
39840 printf %s "(cached) " >&6
39841 else case e in #(
39842 e) if test -n "$PERL"; then
39843 ac_cv_prog_PERL="$PERL" # Let the user override the test.
39844 else
39845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39846 for as_dir in $PATH
39847 do
39848 IFS=$as_save_IFS
39849 case $as_dir in #(((
39850 '') as_dir=./ ;;
39851 */) ;;
39852 *) as_dir=$as_dir/ ;;
39853 esac
39854 for ac_exec_ext in '' $ac_executable_extensions; do
39855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39856 ac_cv_prog_PERL="$ac_prog"
39857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39858 break 2
39859 fi
39860 done
39861 done
39862 IFS=$as_save_IFS
39863
39864 fi ;;
39865 esac
39866 fi
39867 PERL=$ac_cv_prog_PERL
39868 if test -n "$PERL"; then
39869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
39870 printf "%s\n" "$PERL" >&6; }
39871 else
39872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39873 printf "%s\n" "no" >&6; }
39874 fi
39875
39876
39877 test -n "$PERL" && break
39878 done
39879
39880 for ac_prog in rpmbuild rpm
39881 do
39882 # Extract the first word of "$ac_prog", so it can be a program name with args.
39883 set dummy $ac_prog; ac_word=$2
39884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39885 printf %s "checking for $ac_word... " >&6; }
39886 if test ${ac_cv_prog_RPM+y}
39887 then :
39888 printf %s "(cached) " >&6
39889 else case e in #(
39890 e) if test -n "$RPM"; then
39891 ac_cv_prog_RPM="$RPM" # Let the user override the test.
39892 else
39893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39894 for as_dir in $PATH
39895 do
39896 IFS=$as_save_IFS
39897 case $as_dir in #(((
39898 '') as_dir=./ ;;
39899 */) ;;
39900 *) as_dir=$as_dir/ ;;
39901 esac
39902 for ac_exec_ext in '' $ac_executable_extensions; do
39903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39904 ac_cv_prog_RPM="$ac_prog"
39905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39906 break 2
39907 fi
39908 done
39909 done
39910 IFS=$as_save_IFS
39911
39912 fi ;;
39913 esac
39914 fi
39915 RPM=$ac_cv_prog_RPM
39916 if test -n "$RPM"; then
39917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
39918 printf "%s\n" "$RPM" >&6; }
39919 else
39920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39921 printf "%s\n" "no" >&6; }
39922 fi
39923
39924
39925 test -n "$RPM" && break
39926 done
39927
39928
39929 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
39930
39931
39932 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
39933
39934
39935 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
39936
39937
39938 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
39939
39940
39941 if test "x$RPM" != "x"; then
39942 RPM_DELEGATE_TRUE=
39943 RPM_DELEGATE_FALSE='#'
39944 else
39945 RPM_DELEGATE_TRUE='#'
39946 RPM_DELEGATE_FALSE=
39947 fi
39948
39949
39950 #
39951 # 7ZIP support (http://p7zip.sourceforge.net/)
39952 #
39953 P7ZIP=''
39954 for ac_prog in 7za
39955 do
39956 # Extract the first word of "$ac_prog", so it can be a program name with args.
39957 set dummy $ac_prog; ac_word=$2
39958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39959 printf %s "checking for $ac_word... " >&6; }
39960 if test ${ac_cv_prog_P7ZIP+y}
39961 then :
39962 printf %s "(cached) " >&6
39963 else case e in #(
39964 e) if test -n "$P7ZIP"; then
39965 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
39966 else
39967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39968 for as_dir in $PATH
39969 do
39970 IFS=$as_save_IFS
39971 case $as_dir in #(((
39972 '') as_dir=./ ;;
39973 */) ;;
39974 *) as_dir=$as_dir/ ;;
39975 esac
39976 for ac_exec_ext in '' $ac_executable_extensions; do
39977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39978 ac_cv_prog_P7ZIP="$ac_prog"
39979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39980 break 2
39981 fi
39982 done
39983 done
39984 IFS=$as_save_IFS
39985
39986 fi ;;
39987 esac
39988 fi
39989 P7ZIP=$ac_cv_prog_P7ZIP
39990 if test -n "$P7ZIP"; then
39991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
39992 printf "%s\n" "$P7ZIP" >&6; }
39993 else
39994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39995 printf "%s\n" "no" >&6; }
39996 fi
39997
39998
39999 test -n "$P7ZIP" && break
40000 done
40001
40002
40003 if test "x$P7ZIP" != "x"; then
40004 P7ZIP_DELEGATE_TRUE=
40005 P7ZIP_DELEGATE_FALSE='#'
40006 else
40007 P7ZIP_DELEGATE_TRUE='#'
40008 P7ZIP_DELEGATE_FALSE=
40009 fi
40010
40011
40012 #
40013 # ZIP support (http://www.info-zip.org/Zip.html)
40014 #
40015 ZIP=''
40016 for ac_prog in zip
40017 do
40018 # Extract the first word of "$ac_prog", so it can be a program name with args.
40019 set dummy $ac_prog; ac_word=$2
40020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40021 printf %s "checking for $ac_word... " >&6; }
40022 if test ${ac_cv_prog_ZIP+y}
40023 then :
40024 printf %s "(cached) " >&6
40025 else case e in #(
40026 e) if test -n "$ZIP"; then
40027 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
40028 else
40029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40030 for as_dir in $PATH
40031 do
40032 IFS=$as_save_IFS
40033 case $as_dir in #(((
40034 '') as_dir=./ ;;
40035 */) ;;
40036 *) as_dir=$as_dir/ ;;
40037 esac
40038 for ac_exec_ext in '' $ac_executable_extensions; do
40039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
40040 ac_cv_prog_ZIP="$ac_prog"
40041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
40042 break 2
40043 fi
40044 done
40045 done
40046 IFS=$as_save_IFS
40047
40048 fi ;;
40049 esac
40050 fi
40051 ZIP=$ac_cv_prog_ZIP
40052 if test -n "$ZIP"; then
40053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
40054 printf "%s\n" "$ZIP" >&6; }
40055 else
40056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40057 printf "%s\n" "no" >&6; }
40058 fi
40059
40060
40061 test -n "$ZIP" && break
40062 done
40063
40064
40065 if test "x$ZIP" != "x"; then
40066 ZIP_DELEGATE_TRUE=
40067 ZIP_DELEGATE_FALSE='#'
40068 else
40069 ZIP_DELEGATE_TRUE='#'
40070 ZIP_DELEGATE_FALSE=
40071 fi
40072
40073
40074 #
40075 # GhostPCL related configuration.
40076 #
40077 PCLColorDevice=png16malpha
40078 PCLCMYKDevice=pamcmyk32
40079 PCLMonoDevice=pbmraw
40080 if test -z "$PCLVersion"; then
40081 PCLVersion='unknown'
40082 fi
40083 if test $have_pcl = 'yes'; then
40084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
40085 printf "%s\n" "-------------------------------------------------------------" >&6; }
40086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
40087 printf %s "checking for PCL... " >&6; }
40088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
40089 printf "%s\n" "" >&6; }
40090 # PCLColorDevice
40091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
40092 printf %s "checking for pcl color device... " >&6; }
40093 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40094 :
40095 else
40096 PCLColorDevice=ppmraw
40097 fi
40098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
40099 printf "%s\n" "$PCLColorDevice" >&6; }
40100
40101 # PCLCMYKDevice
40102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
40103 printf %s "checking for pcl CMYK device... " >&6; }
40104 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40105 :
40106 else
40107 PCLCMYKDevice=$PCLColorDevice
40108 fi
40109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
40110 printf "%s\n" "$PCLCMYKDevice" >&6; }
40111
40112 # PCLMonoDevice
40113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
40114 printf %s "checking for pcl mono device... " >&6; }
40115 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40116 :
40117 else
40118 PCLMonoDevice=$PCLColorDevice
40119 fi
40120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
40121 printf "%s\n" "$PCLMonoDevice" >&6; }
40122 fi
40123
40124
40125
40126
40127
40128
40129 #
40130 # GhostXPS related configuration.
40131 #
40132 XPSColorDevice=png16malpha
40133 XPSCMYKDevice=pamcmyk32
40134 XPSMonoDevice=pbmraw
40135 if test -z "$XPSVersion"; then
40136 XPSVersion='unknown'
40137 fi
40138 if test $have_xps = 'yes'; then
40139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
40140 printf "%s\n" "-------------------------------------------------------------" >&6; }
40141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
40142 printf %s "checking for XPS... " >&6; }
40143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
40144 printf "%s\n" "" >&6; }
40145 # XPSColorDevice
40146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
40147 printf %s "checking for xps color device... " >&6; }
40148 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40149 :
40150 else
40151 XPSColorDevice=ppmraw
40152 fi
40153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
40154 printf "%s\n" "$XPSColorDevice" >&6; }
40155
40156 # XPSCMYKDevice
40157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
40158 printf %s "checking for xps CMYK device... " >&6; }
40159 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40160 :
40161 else
40162 XPSCMYKDevice=$XPSColorDevice
40163 fi
40164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
40165 printf "%s\n" "$XPSCMYKDevice" >&6; }
40166
40167 # XPSMonoDevice
40168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
40169 printf %s "checking for xps mono device... " >&6; }
40170 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40171 :
40172 else
40173 XPSMonoDevice=$XPSColorDevice
40174 fi
40175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
40176 printf "%s\n" "$XPSMonoDevice" >&6; }
40177 fi
40178
40179
40180
40181
40182
40183
40184 #
40185 # Ghostscript related configuration.
40186 #
40187 GSAlphaDevice=png16malpha
40188 GSColorDevice=png16m
40189 GSCMYKDevice=pamcmyk32
40190 GSMonoDevice=pbmraw
40191 GSPDFDevice=pdfwrite
40192 GSPSDevice=ps2write
40193 GSEPSDevice=eps2write
40194 GSVersion='unknown'
40195 if test $have_gs = 'yes'; then
40196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
40197 printf "%s\n" "-------------------------------------------------------------" >&6; }
40198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
40199 printf %s "checking for Ghostscript... " >&6; }
40200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
40201 printf "%s\n" "" >&6; }
40202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
40203 printf %s "checking for Ghostscript version... " >&6; }
40204 if GSVersion=`$PSDelegate --version`; then
40205 :
40206 else
40207 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
40208 fi
40209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
40210 printf "%s\n" "$GSVersion" >&6; }
40211
40212 # GSColorDevice
40213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
40214 printf %s "checking for gs color device... " >&6; }
40215 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40216 :
40217 else
40218 GSColorDevice=ppmraw
40219 fi
40220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
40221 printf "%s\n" "$GSColorDevice" >&6; }
40222
40223 # GSAlphaDevice
40224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
40225 printf %s "checking for gs alpha device... " >&6; }
40226 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40227 :
40228 elif $PSDelegate -q -dBATCH -sDEVICE=pngalpha -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40229 GSAlphaDevice=pngalpha
40230 else
40231 GSAlphaDevice=$GSColorDevice
40232 fi
40233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
40234 printf "%s\n" "$GSAlphaDevice" >&6; }
40235
40236 # GSCMYKDevice
40237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
40238 printf %s "checking for gs CMYK device... " >&6; }
40239 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40240 :
40241 else
40242 GSCMYKDevice=pam
40243 fi
40244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
40245 printf "%s\n" "$GSCMYKDevice" >&6; }
40246
40247 # GSMonoDevice
40248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
40249 printf %s "checking for gs mono device... " >&6; }
40250 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40251 :
40252 else
40253 GSMonoDevice=$GSColorDevice
40254 fi
40255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
40256 printf "%s\n" "$GSMonoDevice" >&6; }
40257
40258 # GSPDFDevice
40259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
40260 printf %s "checking for gs PDF writing device... " >&6; }
40261 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40262 :
40263 else
40264 GSPDFDevice=nodevice
40265 fi
40266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
40267 printf "%s\n" "$GSPDFDevice" >&6; }
40268
40269 # GSPSDevice
40270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
40271 printf %s "checking for gs PS writing device... " >&6; }
40272 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40273 :
40274 else
40275 GSPSDevice=pswrite
40276 fi
40277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
40278 printf "%s\n" "$GSPSDevice" >&6; }
40279
40280 # GSEPSDevice
40281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
40282 printf %s "checking for gs EPS writing device... " >&6; }
40283 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40284 :
40285 else
40286 GSEPSDevice=epswrite
40287 fi
40288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
40289 printf "%s\n" "$GSEPSDevice" >&6; }
40290 fi
40291
40292
40293
40294
40295
40296
40297
40298
40299
40300
40301 #
40302 # PerlMagick-related configuration
40303 #
40304
40305 # Look for PERL if PerlMagick requested
40306 # If name/path of desired PERL interpreter is specified, look for that one first
40307 have_perl='no'
40308 if test "$with_perl" != 'no'; then
40309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
40310 printf "%s\n" "-------------------------------------------------------------" >&6; }
40311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
40312 printf %s "checking for Perl... " >&6; }
40313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
40314 printf "%s\n" "" >&6; }
40315 if test "$with_perl" != 'yes'; then
40316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
40317 printf %s "checking for perl... " >&6; }
40318 if test ${ac_cv_path_PERL+y}
40319 then :
40320 printf %s "(cached) " >&6
40321 else case e in #(
40322 e) ac_cv_path_PERL="$with_perl" ;;
40323 esac
40324 fi
40325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
40326 printf "%s\n" "$ac_cv_path_PERL" >&6; };
40327 PERL=$ac_cv_path_PERL
40328 have_perl="$ac_cv_path_PERL"
40329 else
40330 for ac_prog in perl perl5
40331 do
40332 # Extract the first word of "$ac_prog", so it can be a program name with args.
40333 set dummy $ac_prog; ac_word=$2
40334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40335 printf %s "checking for $ac_word... " >&6; }
40336 if test ${ac_cv_path_PERL+y}
40337 then :
40338 printf %s "(cached) " >&6
40339 else case e in #(
40340 e) case $PERL in
40341 [\\/]* | ?:[\\/]*)
40342 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40343 ;;
40344 *)
40345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40346 for as_dir in $PATH
40347 do
40348 IFS=$as_save_IFS
40349 case $as_dir in #(((
40350 '') as_dir=./ ;;
40351 */) ;;
40352 *) as_dir=$as_dir/ ;;
40353 esac
40354 for ac_exec_ext in '' $ac_executable_extensions; do
40355 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
40356 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
40357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
40358 break 2
40359 fi
40360 done
40361 done
40362 IFS=$as_save_IFS
40363
40364 ;;
40365 esac ;;
40366 esac
40367 fi
40368 PERL=$ac_cv_path_PERL
40369 if test -n "$PERL"; then
40370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40371 printf "%s\n" "$PERL" >&6; }
40372 else
40373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40374 printf "%s\n" "no" >&6; }
40375 fi
40376
40377
40378 test -n "$PERL" && break
40379 done
40380 if test "$ac_cv_path_PERL"; then
40381 have_perl="$ac_cv_path_PERL"
40382 fi
40383 fi
40384 fi
40385
40386 if test "$with_perl" != 'yes' ; then
40387 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
40388 fi
40389
40390 PERL_SUPPORTS_DESTDIR='no'
40391
40392 with_perl_static='no'
40393 with_perl_dynamic='no'
40394 if test "$have_perl" != 'no'; then
40395 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
40396 with_perl_static='yes'
40397 fi
40398 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
40399 with_perl_dynamic='yes'
40400 fi
40401 # Is PERL's MakeMaker new enough to support DESTDIR?
40402
40403
40404
40405
40406 if test -n "$PERL"
40407 then :
40408
40409 ax_perl_version="5.8.1"
40410
40411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
40412 printf %s "checking for perl version... " >&6; }
40413
40414 perl_version=`$PERL --version 2>&1 \
40415 | $SED -n -e '/This is perl/b inspect
40416 b
40417 : inspect
40418 s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
40419
40420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
40421 printf "%s\n" "$perl_version" >&6; }
40422
40423 PERL_VERSION=$perl_version
40424
40425
40426
40427
40428
40429 # Used to indicate true or false condition
40430 ax_compare_version=false
40431
40432 # Convert the two version strings to be compared into a format that
40433 # allows a simple string comparison. The end result is that a version
40434 # string of the form 1.12.5-r617 will be converted to the form
40435 # 0001001200050617. In other words, each number is zero padded to four
40436 # digits, and non digits are removed.
40437
40438 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
40439 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
40440 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
40441 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
40442 -e 's/[^0-9]//g'`
40443
40444
40445 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
40446 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
40447 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
40448 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
40449 -e 's/[^0-9]//g'`
40450
40451
40452 ax_compare_version=`echo "x$ax_compare_version_A
40453 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
40454
40455
40456
40457 if test "$ax_compare_version" = "true" ; then
40458
40459 :
40460 PERL_SUPPORTS_DESTDIR='yes'
40461
40462 else
40463 :
40464 PERL_SUPPORTS_DESTDIR='no'
40465
40466 fi
40467
40468
40469 else case e in #(
40470 e)
40471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
40472 printf "%s\n" "$as_me: WARNING: could not find the perl interpreter" >&2;}
40473 PERL_SUPPORTS_DESTDIR='no'
40474 ;;
40475 esac
40476 fi
40477
40478 fi
40479 if test "$have_perl" != 'no'; then
40480 WITH_PERL_TRUE=
40481 WITH_PERL_FALSE='#'
40482 else
40483 WITH_PERL_TRUE='#'
40484 WITH_PERL_FALSE=
40485 fi
40486
40487 if test $with_perl_static = 'yes'; then
40488 WITH_PERL_STATIC_TRUE=
40489 WITH_PERL_STATIC_FALSE='#'
40490 else
40491 WITH_PERL_STATIC_TRUE='#'
40492 WITH_PERL_STATIC_FALSE=
40493 fi
40494
40495 if test $with_perl_dynamic = 'yes'; then
40496 WITH_PERL_DYNAMIC_TRUE=
40497 WITH_PERL_DYNAMIC_FALSE='#'
40498 else
40499 WITH_PERL_DYNAMIC_TRUE='#'
40500 WITH_PERL_DYNAMIC_FALSE=
40501 fi
40502
40503
40504
40505 # Determine path to pick up MagickCore library from for use with building PerlMagick
40506 MAGICKCORE_PATH="${LIB_DIR}"
40507 if test $with_perl_static = 'yes'; then
40508 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
40509 libtool_objdir=$objdir
40510
40511 # Linker search path to library, followed by -lMagickCore
40512 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
40513 fi
40514
40515
40516 # Create a simple string containing format names for all delegate libraries.
40517 MAGICK_DELEGATES=''
40518 if test "$have_autotrace" = 'yes' ; then
40519 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
40520 fi
40521 if test "$have_bzlib" = 'yes' ; then
40522 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
40523 fi
40524 if test "$have_cairo" = 'yes' ; then
40525 MAGICK_DELEGATES="$MAGICK_DELEGATES cairo"
40526 fi
40527 if test "$have_dmr" = 'yes' ; then
40528 MAGICK_DELEGATES="$MAGICK_DELEGATES dmr"
40529 fi
40530 if test "$have_djvu" = 'yes' ; then
40531 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
40532 fi
40533 if test "$have_dps" = 'yes' ; then
40534 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
40535 fi
40536 if test "$have_fftw" = 'yes' ; then
40537 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
40538 fi
40539 if test "$have_flif" = 'yes' ; then
40540 MAGICK_DELEGATES="$MAGICK_DELEGATES flif"
40541 fi
40542 if test "$have_fpx" = 'yes' ; then
40543 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
40544 fi
40545 if test "$have_fontconfig" = 'yes' ; then
40546 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
40547 fi
40548 if test "$have_freetype" = 'yes' ; then
40549 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
40550 fi
40551 if test "$have_gslib" = 'yes' ; then
40552 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
40553 fi
40554 if test "$have_heic" = 'yes' ; then
40555 MAGICK_DELEGATES="$MAGICK_DELEGATES heic"
40556 fi
40557 if test "$have_jbig" = 'yes' ; then
40558 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
40559 fi
40560 if test "$have_png$have_jpeg" = 'yesyes' ; then
40561 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
40562 fi
40563 if test "$have_openjp2" = 'yes' ; then
40564 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
40565 fi
40566 if test "$have_jpeg" = 'yes' ; then
40567 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
40568 fi
40569 if test "$have_jxl" = 'yes' ; then
40570 MAGICK_DELEGATES="$MAGICK_DELEGATES jxl"
40571 fi
40572 if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
40573 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
40574 fi
40575 if test "$have_lqr" = 'yes' ; then
40576 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
40577 fi
40578 if test "$have_lzma" = 'yes' ; then
40579 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
40580 fi
40581 if test "$have_openexr" = 'yes' ; then
40582 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
40583 fi
40584 if test "$have_pangocairo" = 'yes' ; then
40585 MAGICK_DELEGATES="$MAGICK_DELEGATES pangocairo"
40586 fi
40587 if test "$have_pcl" = 'yes' ; then
40588 MAGICK_DELEGATES="$MAGICK_DELEGATES pcl"
40589 fi
40590 if test "$have_png" = 'yes' ; then
40591 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
40592 fi
40593 have_ps='no'
40594 if test "$have_dps" = 'yes' || \
40595 test "$have_gs" = 'yes' || \
40596 test "${native_win32_build}" = 'yes' ; then
40597 have_ps='yes'
40598 fi
40599 if test "$have_ps" = 'yes' ; then
40600 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
40601 fi
40602 if test "$have_raqm" = 'yes' ; then
40603 MAGICK_DELEGATES="$MAGICK_DELEGATES raqm"
40604 fi
40605 if test "$have_raw" = 'yes' ; then
40606 MAGICK_DELEGATES="$MAGICK_DELEGATES raw"
40607 fi
40608 if test "$have_ra_ppm" = 'yes' ; then
40609 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
40610 fi
40611 if test "$have_rsvg" = 'yes' ; then
40612 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
40613 fi
40614 if test "$have_tiff" = 'yes' ; then
40615 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
40616 fi
40617 if test "$have_ttf" = 'yes' ; then
40618 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
40619 fi
40620 if test "$have_uhdr" = 'yes' ; then
40621 MAGICK_DELEGATES="$MAGICK_DELEGATES uhdr"
40622 fi
40623 if test "$have_video" = 'yes' ; then
40624 MAGICK_DELEGATES="$MAGICK_DELEGATES video"
40625 fi
40626 if test "$have_webp" = 'yes' ; then
40627 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
40628 fi
40629 if test "$have_wmf" = 'yes' ; then
40630 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
40631 fi
40632 if test "$have_x" = 'yes' ; then
40633 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
40634 fi
40635 if test "$have_xml" = 'yes' ; then
40636 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
40637 fi
40638 if test "$have_zip" = 'yes' ; then
40639 MAGICK_DELEGATES="$MAGICK_DELEGATES zip"
40640 fi
40641 if test "$have_zlib" = 'yes' ; then
40642 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
40643 fi
40644 if test "$have_zstd" = 'yes' ; then
40645 MAGICK_DELEGATES="$MAGICK_DELEGATES zstd"
40646 fi
40647
40648 # Remove extraneous spaces from output variables (aesthetic)
40649 MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
40650 MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
40651
40652
40653
40654 #
40655 # Handle special compiler flags
40656 #
40657
40658 # Add '-p' if prof source profiling support enabled
40659 if test "$enable_prof" = 'yes'; then
40660 CFLAGS="-p $CFLAGS"
40661 CXXFLAGS="-p $CXXFLAGS"
40662 LDFLAGS="-p $LDFLAGS"
40663 fi
40664
40665 # Add '-pg' if gprof source profiling support enabled
40666 if test "$enable_gprof" = 'yes'; then
40667 CFLAGS="-pg $CFLAGS"
40668 CXXFLAGS="-pg $CXXFLAGS"
40669 LDFLAGS="-pg $LDFLAGS"
40670 fi
40671
40672 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
40673 # This is a gcc-specific feature
40674 if test "$enable_gcov" = 'yes'; then
40675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
40676 printf %s "checking for _gcov_init in -lgcov... " >&6; }
40677 if test ${ac_cv_lib_gcov__gcov_init+y}
40678 then :
40679 printf %s "(cached) " >&6
40680 else case e in #(
40681 e) ac_check_lib_save_LIBS=$LIBS
40682 LIBS="-lgcov $LIBS"
40683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40684 /* end confdefs.h. */
40685
40686 /* Override any GCC internal prototype to avoid an error.
40687 Use char because int might match the return type of a GCC
40688 builtin and then its argument prototype would still apply.
40689 The 'extern "C"' is for builds by C++ compilers;
40690 although this is not generally supported in C code supporting it here
40691 has little cost and some practical benefit (sr 110532). */
40692 #ifdef __cplusplus
40693 extern "C"
40694 #endif
40695 char _gcov_init (void);
40696 int
40697 main (void)
40698 {
40699 return _gcov_init ();
40700 ;
40701 return 0;
40702 }
40703 _ACEOF
40704 if ac_fn_c_try_link "$LINENO"
40705 then :
40706 ac_cv_lib_gcov__gcov_init=yes
40707 else case e in #(
40708 e) ac_cv_lib_gcov__gcov_init=no ;;
40709 esac
40710 fi
40711 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40712 conftest$ac_exeext conftest.$ac_ext
40713 LIBS=$ac_check_lib_save_LIBS ;;
40714 esac
40715 fi
40716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
40717 printf "%s\n" "$ac_cv_lib_gcov__gcov_init" >&6; }
40718 if test "x$ac_cv_lib_gcov__gcov_init" = xyes
40719 then :
40720 printf "%s\n" "#define HAVE_LIBGCOV 1" >>confdefs.h
40721
40722 LIBS="-lgcov $LIBS"
40723
40724 fi
40725
40726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
40727 printf %s "checking for __gcov_init in -lgcov... " >&6; }
40728 if test ${ac_cv_lib_gcov___gcov_init+y}
40729 then :
40730 printf %s "(cached) " >&6
40731 else case e in #(
40732 e) ac_check_lib_save_LIBS=$LIBS
40733 LIBS="-lgcov $LIBS"
40734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40735 /* end confdefs.h. */
40736
40737 /* Override any GCC internal prototype to avoid an error.
40738 Use char because int might match the return type of a GCC
40739 builtin and then its argument prototype would still apply.
40740 The 'extern "C"' is for builds by C++ compilers;
40741 although this is not generally supported in C code supporting it here
40742 has little cost and some practical benefit (sr 110532). */
40743 #ifdef __cplusplus
40744 extern "C"
40745 #endif
40746 char __gcov_init (void);
40747 int
40748 main (void)
40749 {
40750 return __gcov_init ();
40751 ;
40752 return 0;
40753 }
40754 _ACEOF
40755 if ac_fn_c_try_link "$LINENO"
40756 then :
40757 ac_cv_lib_gcov___gcov_init=yes
40758 else case e in #(
40759 e) ac_cv_lib_gcov___gcov_init=no ;;
40760 esac
40761 fi
40762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40763 conftest$ac_exeext conftest.$ac_ext
40764 LIBS=$ac_check_lib_save_LIBS ;;
40765 esac
40766 fi
40767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
40768 printf "%s\n" "$ac_cv_lib_gcov___gcov_init" >&6; }
40769 if test "x$ac_cv_lib_gcov___gcov_init" = xyes
40770 then :
40771 printf "%s\n" "#define HAVE_LIBGCOV 1" >>confdefs.h
40772
40773 LIBS="-lgcov $LIBS"
40774
40775 fi
40776
40777 case "$target_os" in
40778 darwin*)
40779 OSX_GCOV_LDFLAG="-Wl,-single_module"
40780 ;;
40781 *)
40782 OSX_GCOV_LDFLAG=""
40783 ;;
40784 esac
40785
40786 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
40787 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
40788 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
40789 fi
40790
40791 #
40792 # Build library dependency list for libMagickCore
40793 #
40794
40795 if test "$build_modules" != 'no'; then
40796 MAGICK_DEP_LIBS="$USER_LIBS $LCMS_LIBS $DMR_LIBS $FREETYPE_LIBS $RAQM_LIBS $LQR_LIBS $FFTW_LIBS $XML_LIBS $FLIF_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $BZLIB_LIBS $ZLIB_LIBS $ZIP_LIBS $ZSTD_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS $TCMALLOC_LIBS $MTMALLOC_LIBS"
40797 else
40798 MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $DMR_LIBS $TIFF_LIBS $FREETYPE_LIBS $RAQM_LIBS $JPEG_LIBS $JXL_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FLIF_LIBS $FPX_LIBS $FONTCONFIG_LIBS $HEIF_LIBS $WEBPMUX_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $LIBOPENJP2_LIBS $PANGO_LIBS $RAW_R_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $ZIP_LIBS $ZSTD_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS $TCMALLOC_LIBS $MTMALLOC_LIBS $UHDR_LIBS"
40799 fi
40800 MAGICK_EXTRA_DEP_LIBS="$GOMP_LIBS"
40801
40802
40803
40804 # Pass only user-provided LIBS as "global" libraries
40805 LIBS=$USER_LIBS
40806
40807 #AC_SUBST([CPPFLAGS])
40808
40809 #AC_SUBST([LDFLAGS])
40810 #AC_SUBST([X_PRE_LIBS])
40811 #AC_SUBST([X_LIBS])
40812 #AC_SUBST([X_EXTRA_LIBS])
40813
40814 CC=`echo $CC | sed -e 's/ */ /g'`
40815 CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
40816 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
40817 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
40818 LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
40819 LIBS=`echo $LIBS | sed -e 's/ */ /g'`
40820
40821 MAGICK_CFLAGS=$CFLAGS
40822 MAGICK_CXXFLAGS="$CXXFLAGS"
40823 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
40824 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
40825 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
40826 MAGICK_LIBS="$MAGICK_DEP_LIBS $MAGICK_EXTRA_DEP_LIBS"
40827 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
40828 MAGICK_EXTRA_DEP_LIBS=`echo $MAGICK_EXTRA_DEP_LIBS | sed -e 's/ */ /g'`
40829
40830
40831
40832
40833
40834
40835
40836
40837 # Set configured scripts to executable.
40838 ac_config_commands="$ac_config_commands default"
40839
40840 ac_config_commands="$ac_config_commands magick.sh.in"
40841
40842 ac_config_commands="$ac_config_commands MagickCore-config.in"
40843
40844 ac_config_commands="$ac_config_commands MagickWand-config.in"
40845
40846 ac_config_commands="$ac_config_commands Magick++-config.in"
40847
40848 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
40849
40850
40851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
40852 printf "%s\n" "-------------------------------------------------------------" >&6; }
40853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
40854 printf "%s\n" "Update ImageMagick configuration" >&6; }
40855
40856 rm -f magick-version
40857
40858 result_dejavu_font_dir='none'
40859 if test "${dejavu_font_dir}x" != 'x'; then
40860 result_dejavu_font_dir=$dejavu_font_dir
40861 fi
40862
40863 result_ghostscript_font_dir='none'
40864 if test "${ghostscript_font_dir}x" != 'x'; then
40865 result_ghostscript_font_dir=$ghostscript_font_dir
40866 fi
40867
40868 result_urw_base35_font_dir='none'
40869 if test "${urw_base35_font_dir}x" != 'x'; then
40870 result_urw_base35_font_dir=$urw_base35_font_dir
40871 fi
40872
40873 result_urw_base35_type1_font_dir='none'
40874 if test "${urw_base35_type1_font_dir}x" != 'x'; then
40875 result_urw_base35_type1_font_dir=$urw_base35_type1_font_dir
40876 fi
40877
40878 result_windows_font_dir='none'
40879 if test "${windows_font_dir}x" != 'x'; then
40880 result_windows_font_dir=${windows_font_dir}
40881 fi
40882
40883 # ==============================================================================
40884 # Generate build environment
40885 # ==============================================================================
40886 ac_config_files="$ac_config_files app-image/AppRun common.shi config/policy.xml:config/policy-"$magick_cv_with_security_policy".xml config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-apple.xml config/type-dejavu.xml config/type-ghostscript.xml config/type-urw-base35.xml config/type-urw-base35-type1.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/magick.1 utilities/magick-script.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
40887
40888 cat >confcache <<\_ACEOF
40889 # This file is a shell script that caches the results of configure
40890 # tests run on this system so they can be shared between configure
40891 # scripts and configure runs, see configure's option --config-cache.
40892 # It is not useful on other systems. If it contains results you don't
40893 # want to keep, you may remove or edit it.
40894 #
40895 # config.status only pays attention to the cache file if you give it
40896 # the --recheck option to rerun configure.
40897 #
40898 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
40899 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
40900 # following values.
40901
40902 _ACEOF
40903
40904 # The following way of writing the cache mishandles newlines in values,
40905 # but we know of no workaround that is simple, portable, and efficient.
40906 # So, we kill variables containing newlines.
40907 # Ultrix sh set writes to stderr and can't be redirected directly,
40908 # and sets the high bit in the cache file unless we assign to the vars.
40909 (
40910 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40911 eval ac_val=\$$ac_var
40912 case $ac_val in #(
40913 *${as_nl}*)
40914 case $ac_var in #(
40915 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
40916 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
40917 esac
40918 case $ac_var in #(
40919 _ | IFS | as_nl) ;; #(
40920 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
40921 *) { eval $ac_var=; unset $ac_var;} ;;
40922 esac ;;
40923 esac
40924 done
40925
40926 (set) 2>&1 |
40927 case $as_nl`(ac_space=' '; set) 2>&1` in #(
40928 *${as_nl}ac_space=\ *)
40929 # 'set' does not quote correctly, so add quotes: double-quote
40930 # substitution turns \\\\ into \\, and sed turns \\ into \.
40931 sed -n \
40932 "s/'/'\\\\''/g;
40933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40934 ;; #(
40935 *)
40936 # 'set' quotes correctly as required by POSIX, so do not add quotes.
40937 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40938 ;;
40939 esac |
40940 sort
40941 ) |
40942 sed '
40943 /^ac_cv_env_/b end
40944 t clear
40945 :clear
40946 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
40947 t end
40948 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40949 :end' >>confcache
40950 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
40951 if test -w "$cache_file"; then
40952 if test "x$cache_file" != "x/dev/null"; then
40953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
40954 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
40955 if test ! -f "$cache_file" || test -h "$cache_file"; then
40956 cat confcache >"$cache_file"
40957 else
40958 case $cache_file in #(
40959 */* | ?:*)
40960 mv -f confcache "$cache_file"$$ &&
40961 mv -f "$cache_file"$$ "$cache_file" ;; #(
40962 *)
40963 mv -f confcache "$cache_file" ;;
40964 esac
40965 fi
40966 fi
40967 else
40968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
40969 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
40970 fi
40971 fi
40972 rm -f confcache
40973
40974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40975 # Let make expand exec_prefix.
40976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40977
40978 DEFS=-DHAVE_CONFIG_H
40979
40980 ac_libobjs=
40981 ac_ltlibobjs=
40982 U=
40983 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40984 # 1. Remove the extension, and $U if already installed.
40985 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
40986 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
40987 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
40988 # will be set to the directory where LIBOBJS objects are built.
40989 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
40990 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
40991 done
40992 LIBOBJS=$ac_libobjs
40993
40994 LTLIBOBJS=$ac_ltlibobjs
40995
40996
40997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
40998 printf %s "checking that generated files are newer than configure... " >&6; }
40999 if test -n "$am_sleep_pid"; then
41000 # Hide warnings about reused PIDs.
41001 wait $am_sleep_pid 2>/dev/null
41002 fi
41003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
41004 printf "%s\n" "done" >&6; }
41005 case $enable_silent_rules in # (((
41006 yes) AM_DEFAULT_VERBOSITY=0;;
41007 no) AM_DEFAULT_VERBOSITY=1;;
41008 esac
41009 if test $am_cv_make_support_nested_variables = yes; then
41010 AM_V='$(V)'
41011 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
41012 else
41013 AM_V=$AM_DEFAULT_VERBOSITY
41014 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
41015 fi
41016
41017 if test -n "$EXEEXT"; then
41018 am__EXEEXT_TRUE=
41019 am__EXEEXT_FALSE='#'
41020 else
41021 am__EXEEXT_TRUE='#'
41022 am__EXEEXT_FALSE=
41023 fi
41024
41025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41026 printf %s "checking that generated files are newer than configure... " >&6; }
41027 if test -n "$am_sleep_pid"; then
41028 # Hide warnings about reused PIDs.
41029 wait $am_sleep_pid 2>/dev/null
41030 fi
41031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
41032 printf "%s\n" "done" >&6; }
41033 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41034 as_fn_error $? "conditional \"AMDEP\" was never defined.
41035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41036 fi
41037 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41038 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41040 fi
41041 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41042 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41044 fi
41045 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
41046 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
41047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41048 fi
41049 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
41050 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
41051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41052 fi
41053 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
41054 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
41055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41056 fi
41057 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
41058 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
41059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41060 fi
41061 # Check whether --enable-year2038 was given.
41062 if test ${enable_year2038+y}
41063 then :
41064 enableval=$enable_year2038;
41065 fi
41066
41067 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
41068 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
41069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41070 fi
41071 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
41072 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
41073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41074 fi
41075 if test -z "${MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_TRUE}" && test -z "${MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_FALSE}"; then
41076 as_fn_error $? "conditional \"MAGICKCORE_ZERO_CONFIGURATION_SUPPORT\" was never defined.
41077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41078 fi
41079 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41080 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41082 fi
41083 if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
41084 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
41085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41086 fi
41087 if test -z "${WITH_UTILITIES_TRUE}" && test -z "${WITH_UTILITIES_FALSE}"; then
41088 as_fn_error $? "conditional \"WITH_UTILITIES\" was never defined.
41089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41090 fi
41091
41092 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
41093 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
41094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41095 fi
41096 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
41097 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
41098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41099 fi
41100 if test -z "${HAVE_JEMALLOC_TRUE}" && test -z "${HAVE_JEMALLOC_FALSE}"; then
41101 as_fn_error $? "conditional \"HAVE_JEMALLOC\" was never defined.
41102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41103 fi
41104 if test -z "${HAVE_MTMALLOC_TRUE}" && test -z "${HAVE_MTMALLOC_FALSE}"; then
41105 as_fn_error $? "conditional \"HAVE_MTMALLOC\" was never defined.
41106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41107 fi
41108 if test -z "${HAVE_TCMALLOC_TRUE}" && test -z "${HAVE_TCMALLOC_FALSE}"; then
41109 as_fn_error $? "conditional \"HAVE_TCMALLOC\" was never defined.
41110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41111 fi
41112 if test -z "${HAVE_UMEM_TRUE}" && test -z "${HAVE_UMEM_FALSE}"; then
41113 as_fn_error $? "conditional \"HAVE_UMEM\" was never defined.
41114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41115 fi
41116 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
41117 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
41118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41119 fi
41120 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
41121 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
41122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41123 fi
41124 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
41125 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
41126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41127 fi
41128 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
41129 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
41130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41131 fi
41132 if test -z "${ZSTD_DELEGATE_TRUE}" && test -z "${ZSTD_DELEGATE_FALSE}"; then
41133 as_fn_error $? "conditional \"ZSTD_DELEGATE\" was never defined.
41134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41135 fi
41136 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
41137 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
41138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41139 fi
41140 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
41141 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
41142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41143 fi
41144 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
41145 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
41146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41147 fi
41148 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
41149 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
41150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41151 fi
41152 if test -z "${FLIF_DELEGATE_TRUE}" && test -z "${FLIF_DELEGATE_FALSE}"; then
41153 as_fn_error $? "conditional \"FLIF_DELEGATE\" was never defined.
41154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41155 fi
41156 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
41157 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
41158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41159 fi
41160 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
41161 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
41162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41163 fi
41164 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
41165 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
41166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41167 fi
41168 if test -z "${RAQM_DELEGATE_TRUE}" && test -z "${RAQM_DELEGATE_FALSE}"; then
41169 as_fn_error $? "conditional \"RAQM_DELEGATE\" was never defined.
41170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41171 fi
41172 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
41173 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
41174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41175 fi
41176 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
41177 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
41178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41179 fi
41180 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
41181 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
41182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41183 fi
41184 if test -z "${DMR_DELEGATE_TRUE}" && test -z "${DMR_DELEGATE_FALSE}"; then
41185 as_fn_error $? "conditional \"DMR_DELEGATE\" was never defined.
41186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41187 fi
41188 if test -z "${HEIC_DELEGATE_TRUE}" && test -z "${HEIC_DELEGATE_FALSE}"; then
41189 as_fn_error $? "conditional \"HEIC_DELEGATE\" was never defined.
41190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41191 fi
41192 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
41193 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
41194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41195 fi
41196 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
41197 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
41198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41199 fi
41200 if test -z "${JXL_DELEGATE_TRUE}" && test -z "${JXL_DELEGATE_FALSE}"; then
41201 as_fn_error $? "conditional \"JXL_DELEGATE\" was never defined.
41202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41203 fi
41204 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
41205 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
41206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41207 fi
41208 if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
41209 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
41210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41211 fi
41212 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
41213 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
41214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41215 fi
41216 if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
41217 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
41218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41219 fi
41220 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
41221 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
41222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41223 fi
41224 if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
41225 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
41226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41227 fi
41228 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
41229 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
41230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41231 fi
41232 if test -z "${RAW_R_DELEGATE_TRUE}" && test -z "${RAW_R_DELEGATE_FALSE}"; then
41233 as_fn_error $? "conditional \"RAW_R_DELEGATE\" was never defined.
41234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41235 fi
41236 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
41237 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
41238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41239 fi
41240 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
41241 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
41242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41243 fi
41244 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
41245 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
41246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41247 fi
41248 if test -z "${UHDR_DELEGATE_TRUE}" && test -z "${UHDR_DELEGATE_FALSE}"; then
41249 as_fn_error $? "conditional \"UHDR_DELEGATE\" was never defined.
41250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41251 fi
41252 if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
41253 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
41254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41255 fi
41256 if test -z "${WEBPMUX_DELEGATE_TRUE}" && test -z "${WEBPMUX_DELEGATE_FALSE}"; then
41257 as_fn_error $? "conditional \"WEBPMUX_DELEGATE\" was never defined.
41258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41259 fi
41260 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
41261 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
41262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41263 fi
41264 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
41265 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
41266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41267 fi
41268 if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
41269 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
41270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41271 fi
41272 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
41273 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
41274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41275 fi
41276 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
41277 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
41278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41279 fi
41280 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
41281 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
41282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41283 fi
41284 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
41285 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
41286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41287 fi
41288 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
41289 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
41290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41291 fi
41292 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
41293 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
41294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41295 fi
41296
41297 : "${CONFIG_STATUS=./config.status}"
41298 ac_write_fail=0
41299 ac_clean_files_save=$ac_clean_files
41300 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41302 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
41303 as_write_fail=0
41304 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41305 #! $SHELL
41306 # Generated by $as_me.
41307 # Run this file to recreate the current configuration.
41308 # Compiler output produced by configure, useful for debugging
41309 # configure, is in config.log if it exists.
41310
41311 debug=false
41312 ac_cs_recheck=false
41313 ac_cs_silent=false
41314
41315 SHELL=\${CONFIG_SHELL-$SHELL}
41316 export SHELL
41317 _ASEOF
41318 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41319 ## -------------------- ##
41320 ## M4sh Initialization. ##
41321 ## -------------------- ##
41322
41323 # Be more Bourne compatible
41324 DUALCASE=1; export DUALCASE # for MKS sh
41325 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
41326 then :
41327 emulate sh
41328 NULLCMD=:
41329 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41330 # is contrary to our usage. Disable this feature.
41331 alias -g '${1+"$@"}'='"$@"'
41332 setopt NO_GLOB_SUBST
41333 else case e in #(
41334 e) case `(set -o) 2>/dev/null` in #(
41335 *posix*) :
41336 set -o posix ;; #(
41337 *) :
41338 ;;
41339 esac ;;
41340 esac
41341 fi
41342
41343
41344
41345 # Reset variables that may have inherited troublesome values from
41346 # the environment.
41347
41348 # IFS needs to be set, to space, tab, and newline, in precisely that order.
41349 # (If _AS_PATH_WALK were called with IFS unset, it would have the
41350 # side effect of setting IFS to empty, thus disabling word splitting.)
41351 # Quoting is to prevent editors from complaining about space-tab.
41352 as_nl='
41353 '
41354 export as_nl
41355 IFS=" "" $as_nl"
41356
41357 PS1='$ '
41358 PS2='> '
41359 PS4='+ '
41360
41361 # Ensure predictable behavior from utilities with locale-dependent output.
41362 LC_ALL=C
41363 export LC_ALL
41364 LANGUAGE=C
41365 export LANGUAGE
41366
41367 # We cannot yet rely on "unset" to work, but we need these variables
41368 # to be unset--not just set to an empty or harmless value--now, to
41369 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
41370 # also avoids known problems related to "unset" and subshell syntax
41371 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
41372 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
41373 do eval test \${$as_var+y} \
41374 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41375 done
41376
41377 # Ensure that fds 0, 1, and 2 are open.
41378 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
41379 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
41380 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
41381
41382 # The user is always right.
41383 if ${PATH_SEPARATOR+false} :; then
41384 PATH_SEPARATOR=:
41385 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
41386 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
41387 PATH_SEPARATOR=';'
41388 }
41389 fi
41390
41391
41392 # Find who we are. Look in the path if we contain no directory separator.
41393 as_myself=
41394 case $0 in #((
41395 *[\\/]* ) as_myself=$0 ;;
41396 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41397 for as_dir in $PATH
41398 do
41399 IFS=$as_save_IFS
41400 case $as_dir in #(((
41401 '') as_dir=./ ;;
41402 */) ;;
41403 *) as_dir=$as_dir/ ;;
41404 esac
41405 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
41406 done
41407 IFS=$as_save_IFS
41408
41409 ;;
41410 esac
41411 # We did not find ourselves, most probably we were run as 'sh COMMAND'
41412 # in which case we are not to be found in the path.
41413 if test "x$as_myself" = x; then
41414 as_myself=$0
41415 fi
41416 if test ! -f "$as_myself"; then
41417 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41418 exit 1
41419 fi
41420
41421
41422
41423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
41424 # ----------------------------------------
41425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41427 # script with STATUS, using 1 if that was 0.
41428 as_fn_error ()
41429 {
41430 as_status=$1; test $as_status -eq 0 && as_status=1
41431 if test "$4"; then
41432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41434 fi
41435 printf "%s\n" "$as_me: error: $2" >&2
41436 as_fn_exit $as_status
41437 } # as_fn_error
41438
41439
41440 # as_fn_set_status STATUS
41441 # -----------------------
41442 # Set $? to STATUS, without forking.
41443 as_fn_set_status ()
41444 {
41445 return $1
41446 } # as_fn_set_status
41447
41448 # as_fn_exit STATUS
41449 # -----------------
41450 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41451 as_fn_exit ()
41452 {
41453 set +e
41454 as_fn_set_status $1
41455 exit $1
41456 } # as_fn_exit
41457
41458 # as_fn_unset VAR
41459 # ---------------
41460 # Portably unset VAR.
41461 as_fn_unset ()
41462 {
41463 { eval $1=; unset $1;}
41464 }
41465 as_unset=as_fn_unset
41466
41467 # as_fn_append VAR VALUE
41468 # ----------------------
41469 # Append the text in VALUE to the end of the definition contained in VAR. Take
41470 # advantage of any shell optimizations that allow amortized linear growth over
41471 # repeated appends, instead of the typical quadratic growth present in naive
41472 # implementations.
41473 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
41474 then :
41475 eval 'as_fn_append ()
41476 {
41477 eval $1+=\$2
41478 }'
41479 else case e in #(
41480 e) as_fn_append ()
41481 {
41482 eval $1=\$$1\$2
41483 } ;;
41484 esac
41485 fi # as_fn_append
41486
41487 # as_fn_arith ARG...
41488 # ------------------
41489 # Perform arithmetic evaluation on the ARGs, and store the result in the
41490 # global $as_val. Take advantage of shells that can avoid forks. The arguments
41491 # must be portable across $(()) and expr.
41492 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
41493 then :
41494 eval 'as_fn_arith ()
41495 {
41496 as_val=$(( $* ))
41497 }'
41498 else case e in #(
41499 e) as_fn_arith ()
41500 {
41501 as_val=`expr "$@" || test $? -eq 1`
41502 } ;;
41503 esac
41504 fi # as_fn_arith
41505
41506
41507 if expr a : '\(a\)' >/dev/null 2>&1 &&
41508 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41509 as_expr=expr
41510 else
41511 as_expr=false
41512 fi
41513
41514 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41515 as_basename=basename
41516 else
41517 as_basename=false
41518 fi
41519
41520 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41521 as_dirname=dirname
41522 else
41523 as_dirname=false
41524 fi
41525
41526 as_me=`$as_basename -- "$0" ||
41527 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41528 X"$0" : 'X\(//\)$' \| \
41529 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41530 printf "%s\n" X/"$0" |
41531 sed '/^.*\/\([^/][^/]*\)\/*$/{
41532 s//\1/
41533 q
41534 }
41535 /^X\/\(\/\/\)$/{
41536 s//\1/
41537 q
41538 }
41539 /^X\/\(\/\).*/{
41540 s//\1/
41541 q
41542 }
41543 s/.*/./; q'`
41544
41545 # Avoid depending upon Character Ranges.
41546 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41547 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41548 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41549 as_cr_digits='0123456789'
41550 as_cr_alnum=$as_cr_Letters$as_cr_digits
41551
41552
41553 # Determine whether it's possible to make 'echo' print without a newline.
41554 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
41555 # for compatibility with existing Makefiles.
41556 ECHO_C= ECHO_N= ECHO_T=
41557 case `echo -n x` in #(((((
41558 -n*)
41559 case `echo 'xy\c'` in
41560 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41561 xy) ECHO_C='\c';;
41562 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
41563 ECHO_T=' ';;
41564 esac;;
41565 *)
41566 ECHO_N='-n';;
41567 esac
41568
41569 # For backward compatibility with old third-party macros, we provide
41570 # the shell variables $as_echo and $as_echo_n. New code should use
41571 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
41572 as_echo='printf %s\n'
41573 as_echo_n='printf %s'
41574
41575 rm -f conf$$ conf$$.exe conf$$.file
41576 if test -d conf$$.dir; then
41577 rm -f conf$$.dir/conf$$.file
41578 else
41579 rm -f conf$$.dir
41580 mkdir conf$$.dir 2>/dev/null
41581 fi
41582 if (echo >conf$$.file) 2>/dev/null; then
41583 if ln -s conf$$.file conf$$ 2>/dev/null; then
41584 as_ln_s='ln -s'
41585 # ... but there are two gotchas:
41586 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
41587 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
41588 # In both cases, we have to default to 'cp -pR'.
41589 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41590 as_ln_s='cp -pR'
41591 elif ln conf$$.file conf$$ 2>/dev/null; then
41592 as_ln_s=ln
41593 else
41594 as_ln_s='cp -pR'
41595 fi
41596 else
41597 as_ln_s='cp -pR'
41598 fi
41599 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41600 rmdir conf$$.dir 2>/dev/null
41601
41602
41603 # as_fn_mkdir_p
41604 # -------------
41605 # Create "$as_dir" as a directory, including parents if necessary.
41606 as_fn_mkdir_p ()
41607 {
41608
41609 case $as_dir in #(
41610 -*) as_dir=./$as_dir;;
41611 esac
41612 test -d "$as_dir" || eval $as_mkdir_p || {
41613 as_dirs=
41614 while :; do
41615 case $as_dir in #(
41616 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41617 *) as_qdir=$as_dir;;
41618 esac
41619 as_dirs="'$as_qdir' $as_dirs"
41620 as_dir=`$as_dirname -- "$as_dir" ||
41621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41622 X"$as_dir" : 'X\(//\)[^/]' \| \
41623 X"$as_dir" : 'X\(//\)$' \| \
41624 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41625 printf "%s\n" X"$as_dir" |
41626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41627 s//\1/
41628 q
41629 }
41630 /^X\(\/\/\)[^/].*/{
41631 s//\1/
41632 q
41633 }
41634 /^X\(\/\/\)$/{
41635 s//\1/
41636 q
41637 }
41638 /^X\(\/\).*/{
41639 s//\1/
41640 q
41641 }
41642 s/.*/./; q'`
41643 test -d "$as_dir" && break
41644 done
41645 test -z "$as_dirs" || eval "mkdir $as_dirs"
41646 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
41647
41648
41649 } # as_fn_mkdir_p
41650 if mkdir -p . 2>/dev/null; then
41651 as_mkdir_p='mkdir -p "$as_dir"'
41652 else
41653 test -d ./-p && rmdir ./-p
41654 as_mkdir_p=false
41655 fi
41656
41657
41658 # as_fn_executable_p FILE
41659 # -----------------------
41660 # Test if FILE is an executable regular file.
41661 as_fn_executable_p ()
41662 {
41663 test -f "$1" && test -x "$1"
41664 } # as_fn_executable_p
41665 as_test_x='test -x'
41666 as_executable_p=as_fn_executable_p
41667
41668 # Sed expression to map a string onto a valid CPP name.
41669 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
41670 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
41671
41672 # Sed expression to map a string onto a valid variable name.
41673 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
41674 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
41675
41676
41677 exec 6>&1
41678 ## ----------------------------------- ##
41679 ## Main body of $CONFIG_STATUS script. ##
41680 ## ----------------------------------- ##
41681 _ASEOF
41682 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
41683
41684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41685 # Save the log message, to keep $0 and so on meaningful, and to
41686 # report actual input values of CONFIG_FILES etc. instead of their
41687 # values after options handling.
41688 ac_log="
41689 This file was extended by ImageMagick $as_me 7.1.2-27, which was
41690 generated by GNU Autoconf 2.72. Invocation command line was
41691
41692 CONFIG_FILES = $CONFIG_FILES
41693 CONFIG_HEADERS = $CONFIG_HEADERS
41694 CONFIG_LINKS = $CONFIG_LINKS
41695 CONFIG_COMMANDS = $CONFIG_COMMANDS
41696 $ $0 $@
41697
41698 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41699 "
41700
41701 _ACEOF
41702
41703 case $ac_config_files in *"
41704 "*) set x $ac_config_files; shift; ac_config_files=$*;;
41705 esac
41706
41707 case $ac_config_headers in *"
41708 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
41709 esac
41710
41711
41712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41713 # Files that config.status was made for.
41714 config_files="$ac_config_files"
41715 config_headers="$ac_config_headers"
41716 config_commands="$ac_config_commands"
41717
41718 _ACEOF
41719
41720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41721 ac_cs_usage="\
41722 '$as_me' instantiates files and other configuration actions
41723 from templates according to the current configuration. Unless the files
41724 and actions are specified as TAGs, all are instantiated by default.
41725
41726 Usage: $0 [OPTION]... [TAG]...
41727
41728 -h, --help print this help, then exit
41729 -V, --version print version number and configuration settings, then exit
41730 --config print configuration, then exit
41731 -q, --quiet, --silent
41732 do not print progress messages
41733 -d, --debug don't remove temporary files
41734 --recheck update $as_me by reconfiguring in the same conditions
41735 --file=FILE[:TEMPLATE]
41736 instantiate the configuration file FILE
41737 --header=FILE[:TEMPLATE]
41738 instantiate the configuration header FILE
41739
41740 Configuration files:
41741 $config_files
41742
41743 Configuration headers:
41744 $config_headers
41745
41746 Configuration commands:
41747 $config_commands
41748
41749 Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>.
41750 ImageMagick home page: <https://imagemagick.org>."
41751
41752 _ACEOF
41753 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
41754 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
41755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41756 ac_cs_config='$ac_cs_config_escaped'
41757 ac_cs_version="\\
41758 ImageMagick config.status 7.1.2-27
41759 configured by $0, generated by GNU Autoconf 2.72,
41760 with options \\"\$ac_cs_config\\"
41761
41762 Copyright (C) 2023 Free Software Foundation, Inc.
41763 This config.status script is free software; the Free Software Foundation
41764 gives unlimited permission to copy, distribute and modify it."
41765
41766 ac_pwd='$ac_pwd'
41767 srcdir='$srcdir'
41768 INSTALL='$INSTALL'
41769 MKDIR_P='$MKDIR_P'
41770 AWK='$AWK'
41771 test -n "\$AWK" || AWK=awk
41772 _ACEOF
41773
41774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41775 # The default lists apply if the user does not specify any file.
41776 ac_need_defaults=:
41777 while test $# != 0
41778 do
41779 case $1 in
41780 --*=?*)
41781 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41782 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41783 ac_shift=:
41784 ;;
41785 --*=)
41786 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41787 ac_optarg=
41788 ac_shift=:
41789 ;;
41790 *)
41791 ac_option=$1
41792 ac_optarg=$2
41793 ac_shift=shift
41794 ;;
41795 esac
41796
41797 case $ac_option in
41798 # Handling of the options.
41799 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41800 ac_cs_recheck=: ;;
41801 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41802 printf "%s\n" "$ac_cs_version"; exit ;;
41803 --config | --confi | --conf | --con | --co | --c )
41804 printf "%s\n" "$ac_cs_config"; exit ;;
41805 --debug | --debu | --deb | --de | --d | -d )
41806 debug=: ;;
41807 --file | --fil | --fi | --f )
41808 $ac_shift
41809 case $ac_optarg in
41810 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41811 '') as_fn_error $? "missing file argument" ;;
41812 esac
41813 as_fn_append CONFIG_FILES " '$ac_optarg'"
41814 ac_need_defaults=false;;
41815 --header | --heade | --head | --hea )
41816 $ac_shift
41817 case $ac_optarg in
41818 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41819 esac
41820 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
41821 ac_need_defaults=false;;
41822 --he | --h)
41823 # Conflict between --help and --header
41824 as_fn_error $? "ambiguous option: '$1'
41825 Try '$0 --help' for more information.";;
41826 --help | --hel | -h )
41827 printf "%s\n" "$ac_cs_usage"; exit ;;
41828 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41829 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41830 ac_cs_silent=: ;;
41831
41832 # This is an error.
41833 -*) as_fn_error $? "unrecognized option: '$1'
41834 Try '$0 --help' for more information." ;;
41835
41836 *) as_fn_append ac_config_targets " $1"
41837 ac_need_defaults=false ;;
41838
41839 esac
41840 shift
41841 done
41842
41843 ac_configure_extra_args=
41844
41845 if $ac_cs_silent; then
41846 exec 6>/dev/null
41847 ac_configure_extra_args="$ac_configure_extra_args --silent"
41848 fi
41849
41850 _ACEOF
41851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41852 if \$ac_cs_recheck; then
41853 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41854 shift
41855 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
41856 CONFIG_SHELL='$SHELL'
41857 export CONFIG_SHELL
41858 exec "\$@"
41859 fi
41860
41861 _ACEOF
41862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41863 exec 5>>config.log
41864 {
41865 echo
41866 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41867 ## Running $as_me. ##
41868 _ASBOX
41869 printf "%s\n" "$ac_log"
41870 } >&5
41871
41872 _ACEOF
41873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41874 #
41875 # INIT-COMMANDS
41876 #
41877 PACKAGE="$PACKAGE"
41878 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
41879
41880
41881 # The HP-UX ksh and POSIX shell print the target directory to stdout
41882 # if CDPATH is set.
41883 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41884
41885 sed_quote_subst='$sed_quote_subst'
41886 double_quote_subst='$double_quote_subst'
41887 delay_variable_subst='$delay_variable_subst'
41888 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41889 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41890 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41891 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41892 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41893 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41894 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41895 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41896 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41897 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41898 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
41899 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41900 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41901 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41902 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41903 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41904 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41905 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
41906 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41907 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41908 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41909 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41910 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41911 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41912 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41913 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41914 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41915 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41916 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41917 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41918 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41919 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41920 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41921 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41922 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41923 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41924 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41925 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
41926 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41927 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41928 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41929 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41930 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41931 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41932 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
41933 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41934 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41935 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41936 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41937 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41938 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41939 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41940 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41941 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41942 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41943 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41944 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41945 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41946 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41947 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
41948 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41949 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"`'
41950 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
41951 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41952 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41953 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
41954 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41955 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41956 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41957 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41958 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41959 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41960 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41961 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41962 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41963 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41964 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41965 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41966 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41967 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41968 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41969 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41970 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41971 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41972 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41973 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41974 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41975 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41976 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41977 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41978 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41979 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41980 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41981 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41982 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41983 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41984 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41985 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41986 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41987 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41988 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41989 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41990 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41991 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41992 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41993 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41994 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41995 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41996 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41997 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41998 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41999 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42000 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42001 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42002 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42003 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42004 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42005 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42006 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42007 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42008 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42009 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42010 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42011 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42012 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42013 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42014 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42015 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42016 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42017 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42018 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42019 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42020 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42021 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42022 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42023 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42024 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42025 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42026 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
42027 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
42028 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
42029 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
42030 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
42031 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
42032 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
42033 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
42034 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42035 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42036 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
42037 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
42038 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
42039 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
42040 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
42041 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
42042 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
42043 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
42044 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
42045 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
42046 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
42047 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
42048 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42049 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42050 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42051 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42052 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42053 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42054 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
42055 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
42056 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
42057 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
42058 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
42059 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
42060 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
42061 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
42062 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
42063 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
42064 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
42065 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
42066 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
42067 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42068 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
42069 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
42070 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42071 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42072 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
42073 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
42074 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
42075 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
42076 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
42077 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
42078 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
42079 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
42080
42081 LTCC='$LTCC'
42082 LTCFLAGS='$LTCFLAGS'
42083 compiler='$compiler_DEFAULT'
42084
42085 # A function that is used when there is no print builtin or printf.
42086 func_fallback_echo ()
42087 {
42088 eval 'cat <<_LTECHO_EOF
42089 \$1
42090 _LTECHO_EOF'
42091 }
42092
42093 # Quote evaled strings.
42094 for var in SED \
42095 GREP \
42096 EGREP \
42097 FGREP \
42098 SHELL \
42099 ECHO \
42100 LD \
42101 AS \
42102 DLLTOOL \
42103 OBJDUMP \
42104 PATH_SEPARATOR \
42105 NM \
42106 LN_S \
42107 lt_SP2NL \
42108 lt_NL2SP \
42109 reload_flag \
42110 FILECMD \
42111 deplibs_check_method \
42112 file_magic_cmd \
42113 file_magic_glob \
42114 want_nocaseglob \
42115 sharedlib_from_linklib_cmd \
42116 AR \
42117 archiver_list_spec \
42118 STRIP \
42119 RANLIB \
42120 CC \
42121 CFLAGS \
42122 compiler \
42123 lt_cv_sys_global_symbol_pipe \
42124 lt_cv_sys_global_symbol_to_cdecl \
42125 lt_cv_sys_global_symbol_to_import \
42126 lt_cv_sys_global_symbol_to_c_name_address \
42127 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42128 lt_cv_nm_interface \
42129 nm_file_list_spec \
42130 lt_cv_truncate_bin \
42131 lt_prog_compiler_no_builtin_flag \
42132 lt_prog_compiler_pic \
42133 lt_prog_compiler_wl \
42134 lt_prog_compiler_static \
42135 lt_cv_prog_compiler_c_o \
42136 need_locks \
42137 MANIFEST_TOOL \
42138 DSYMUTIL \
42139 NMEDIT \
42140 LIPO \
42141 OTOOL \
42142 OTOOL64 \
42143 shrext_cmds \
42144 export_dynamic_flag_spec \
42145 whole_archive_flag_spec \
42146 compiler_needs_object \
42147 with_gnu_ld \
42148 allow_undefined_flag \
42149 no_undefined_flag \
42150 hardcode_libdir_flag_spec \
42151 hardcode_libdir_separator \
42152 exclude_expsyms \
42153 include_expsyms \
42154 file_list_spec \
42155 variables_saved_for_relink \
42156 libname_spec \
42157 library_names_spec \
42158 soname_spec \
42159 install_override_mode \
42160 finish_eval \
42161 old_striplib \
42162 striplib \
42163 compiler_lib_search_dirs \
42164 predep_objects \
42165 postdep_objects \
42166 predeps \
42167 postdeps \
42168 compiler_lib_search_path \
42169 LD_CXX \
42170 reload_flag_CXX \
42171 compiler_CXX \
42172 lt_prog_compiler_no_builtin_flag_CXX \
42173 lt_prog_compiler_pic_CXX \
42174 lt_prog_compiler_wl_CXX \
42175 lt_prog_compiler_static_CXX \
42176 lt_cv_prog_compiler_c_o_CXX \
42177 export_dynamic_flag_spec_CXX \
42178 whole_archive_flag_spec_CXX \
42179 compiler_needs_object_CXX \
42180 with_gnu_ld_CXX \
42181 allow_undefined_flag_CXX \
42182 no_undefined_flag_CXX \
42183 hardcode_libdir_flag_spec_CXX \
42184 hardcode_libdir_separator_CXX \
42185 exclude_expsyms_CXX \
42186 include_expsyms_CXX \
42187 file_list_spec_CXX \
42188 compiler_lib_search_dirs_CXX \
42189 predep_objects_CXX \
42190 postdep_objects_CXX \
42191 predeps_CXX \
42192 postdeps_CXX \
42193 compiler_lib_search_path_CXX; do
42194 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42195 *[\\\\\\\`\\"\\\$]*)
42196 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42197 ;;
42198 *)
42199 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42200 ;;
42201 esac
42202 done
42203
42204 # Double-quote double-evaled strings.
42205 for var in reload_cmds \
42206 old_postinstall_cmds \
42207 old_postuninstall_cmds \
42208 old_archive_cmds \
42209 extract_expsyms_cmds \
42210 old_archive_from_new_cmds \
42211 old_archive_from_expsyms_cmds \
42212 archive_cmds \
42213 archive_expsym_cmds \
42214 module_cmds \
42215 module_expsym_cmds \
42216 export_symbols_cmds \
42217 prelink_cmds \
42218 postlink_cmds \
42219 postinstall_cmds \
42220 postuninstall_cmds \
42221 finish_cmds \
42222 sys_lib_search_path_spec \
42223 configure_time_dlsearch_path \
42224 configure_time_lt_sys_library_path \
42225 reload_cmds_CXX \
42226 old_archive_cmds_CXX \
42227 old_archive_from_new_cmds_CXX \
42228 old_archive_from_expsyms_cmds_CXX \
42229 archive_cmds_CXX \
42230 archive_expsym_cmds_CXX \
42231 module_cmds_CXX \
42232 module_expsym_cmds_CXX \
42233 export_symbols_cmds_CXX \
42234 prelink_cmds_CXX \
42235 postlink_cmds_CXX; do
42236 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42237 *[\\\\\\\`\\"\\\$]*)
42238 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42239 ;;
42240 *)
42241 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42242 ;;
42243 esac
42244 done
42245
42246 ac_aux_dir='$ac_aux_dir'
42247
42248 # See if we are running on zsh, and set the options that allow our
42249 # commands through without removal of \ escapes INIT.
42250 if test -n "\${ZSH_VERSION+set}"; then
42251 setopt NO_GLOB_SUBST
42252 fi
42253
42254
42255 PACKAGE='$PACKAGE'
42256 VERSION='$VERSION'
42257 RM='$RM'
42258 ofile='$ofile'
42259
42260
42261
42262
42263
42264
42265 _ACEOF
42266
42267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42268
42269 # Handling of arguments.
42270 for ac_config_target in $ac_config_targets
42271 do
42272 case $ac_config_target in
42273 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
42274 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
42275 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42276 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42277 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42278 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
42279 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
42280 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
42281 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
42282 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
42283 "app-image/AppRun") CONFIG_FILES="$CONFIG_FILES app-image/AppRun" ;;
42284 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
42285 "config/policy.xml") CONFIG_FILES="$CONFIG_FILES config/policy.xml:config/policy-"$magick_cv_with_security_policy".xml" ;;
42286 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
42287 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
42288 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
42289 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
42290 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
42291 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
42292 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
42293 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
42294 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
42295 "config/type-urw-base35.xml") CONFIG_FILES="$CONFIG_FILES config/type-urw-base35.xml" ;;
42296 "config/type-urw-base35-type1.xml") CONFIG_FILES="$CONFIG_FILES config/type-urw-base35-type1.xml" ;;
42297 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
42298 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
42299 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
42300 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
42301 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
42302 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
42303 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
42304 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
42305 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
42306 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42307 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
42308 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
42309 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
42310 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
42311 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
42312 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
42313 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
42314 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
42315 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
42316 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
42317 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
42318 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
42319 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
42320 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
42321 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
42322 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
42323 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
42324 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
42325 "utilities/magick.1") CONFIG_FILES="$CONFIG_FILES utilities/magick.1" ;;
42326 "utilities/magick-script.1") CONFIG_FILES="$CONFIG_FILES utilities/magick-script.1" ;;
42327 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
42328 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
42329 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
42330 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
42331 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
42332
42333 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
42334 esac
42335 done
42336
42337
42338 # If the user did not use the arguments to specify the items to instantiate,
42339 # then the envvar interface is used. Set only those that are not.
42340 # We use the long form for the default assignment because of an extremely
42341 # bizarre bug on SunOS 4.1.3.
42342 if $ac_need_defaults; then
42343 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
42344 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
42345 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
42346 fi
42347
42348 # Have a temporary directory for convenience. Make it in the build tree
42349 # simply because there is no reason against having it here, and in addition,
42350 # creating and moving files from /tmp can sometimes cause problems.
42351 # Hook for its removal unless debugging.
42352 # Note that there is a small window in which the directory will not be cleaned:
42353 # after its creation but before its name has been assigned to '$tmp'.
42354 $debug ||
42355 {
42356 tmp= ac_tmp=
42357 trap 'exit_status=$?
42358 : "${ac_tmp:=$tmp}"
42359 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42360 ' 0
42361 trap 'as_fn_exit 1' 1 2 13 15
42362 }
42363 # Create a (secure) tmp directory for tmp files.
42364
42365 {
42366 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42367 test -d "$tmp"
42368 } ||
42369 {
42370 tmp=./conf$$-$RANDOM
42371 (umask 077 && mkdir "$tmp")
42372 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42373 ac_tmp=$tmp
42374
42375 # Set up the scripts for CONFIG_FILES section.
42376 # No need to generate them if there are no CONFIG_FILES.
42377 # This happens for instance with './config.status config.h'.
42378 if test -n "$CONFIG_FILES"; then
42379
42380
42381 ac_cr=`echo X | tr X '\015'`
42382 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42383 # But we know of no other shell where ac_cr would be empty at this
42384 # point, so we can use a bashism as a fallback.
42385 if test "x$ac_cr" = x; then
42386 eval ac_cr=\$\'\\r\'
42387 fi
42388 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42389 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42390 ac_cs_awk_cr='\\r'
42391 else
42392 ac_cs_awk_cr=$ac_cr
42393 fi
42394
42395 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42396 _ACEOF
42397
42398
42399 {
42400 echo "cat >conf$$subs.awk <<_ACEOF" &&
42401 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42402 echo "_ACEOF"
42403 } >conf$$subs.sh ||
42404 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42405 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42406 ac_delim='%!_!# '
42407 for ac_last_try in false false false false false :; do
42408 . ./conf$$subs.sh ||
42409 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42410
42411 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42412 if test $ac_delim_n = $ac_delim_num; then
42413 break
42414 elif $ac_last_try; then
42415 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42416 else
42417 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42418 fi
42419 done
42420 rm -f conf$$subs.sh
42421
42422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42423 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42424 _ACEOF
42425 sed -n '
42426 h
42427 s/^/S["/; s/!.*/"]=/
42428 p
42429 g
42430 s/^[^!]*!//
42431 :repl
42432 t repl
42433 s/'"$ac_delim"'$//
42434 t delim
42435 :nl
42436 h
42437 s/\(.\{148\}\)..*/\1/
42438 t more1
42439 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42440 p
42441 n
42442 b repl
42443 :more1
42444 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42445 p
42446 g
42447 s/.\{148\}//
42448 t nl
42449 :delim
42450 h
42451 s/\(.\{148\}\)..*/\1/
42452 t more2
42453 s/["\\]/\\&/g; s/^/"/; s/$/"/
42454 p
42455 b
42456 :more2
42457 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42458 p
42459 g
42460 s/.\{148\}//
42461 t delim
42462 ' <conf$$subs.awk | sed '
42463 /^[^""]/{
42464 N
42465 s/\n//
42466 }
42467 ' >>$CONFIG_STATUS || ac_write_fail=1
42468 rm -f conf$$subs.awk
42469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42470 _ACAWK
42471 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42472 for (key in S) S_is_set[key] = 1
42473 FS = ""
42474
42475 }
42476 {
42477 line = $ 0
42478 nfields = split(line, field, "@")
42479 substed = 0
42480 len = length(field[1])
42481 for (i = 2; i < nfields; i++) {
42482 key = field[i]
42483 keylen = length(key)
42484 if (S_is_set[key]) {
42485 value = S[key]
42486 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42487 len += length(value) + length(field[++i])
42488 substed = 1
42489 } else
42490 len += 1 + keylen
42491 }
42492
42493 print line
42494 }
42495
42496 _ACAWK
42497 _ACEOF
42498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42499 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42500 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42501 else
42502 cat
42503 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42504 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42505 _ACEOF
42506
42507 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42508 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42509 # trailing colons and then remove the whole line if VPATH becomes empty
42510 # (actually we leave an empty line to preserve line numbers).
42511 if test "x$srcdir" = x.; then
42512 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42513 h
42514 s///
42515 s/^/:/
42516 s/[ ]*$/:/
42517 s/:\$(srcdir):/:/g
42518 s/:\${srcdir}:/:/g
42519 s/:@srcdir@:/:/g
42520 s/^:*//
42521 s/:*$//
42522 x
42523 s/\(=[ ]*\).*/\1/
42524 G
42525 s/\n//
42526 s/^[^=]*=[ ]*$//
42527 }'
42528 fi
42529
42530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42531 fi # test -n "$CONFIG_FILES"
42532
42533 # Set up the scripts for CONFIG_HEADERS section.
42534 # No need to generate them if there are no CONFIG_HEADERS.
42535 # This happens for instance with './config.status Makefile'.
42536 if test -n "$CONFIG_HEADERS"; then
42537 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42538 BEGIN {
42539 _ACEOF
42540
42541 # Transform confdefs.h into an awk script 'defines.awk', embedded as
42542 # here-document in config.status, that substitutes the proper values into
42543 # config.h.in to produce config.h.
42544
42545 # Create a delimiter string that does not exist in confdefs.h, to ease
42546 # handling of long lines.
42547 ac_delim='%!_!# '
42548 for ac_last_try in false false :; do
42549 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42550 if test -z "$ac_tt"; then
42551 break
42552 elif $ac_last_try; then
42553 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42554 else
42555 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42556 fi
42557 done
42558
42559 # For the awk script, D is an array of macro values keyed by name,
42560 # likewise P contains macro parameters if any. Preserve backslash
42561 # newline sequences.
42562
42563 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42564 sed -n '
42565 s/.\{148\}/&'"$ac_delim"'/g
42566 t rset
42567 :rset
42568 s/^[ ]*#[ ]*define[ ][ ]*/ /
42569 t def
42570 d
42571 :def
42572 s/\\$//
42573 t bsnl
42574 s/["\\]/\\&/g
42575 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42576 D["\1"]=" \3"/p
42577 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
42578 d
42579 :bsnl
42580 s/["\\]/\\&/g
42581 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42582 D["\1"]=" \3\\\\\\n"\\/p
42583 t cont
42584 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42585 t cont
42586 d
42587 :cont
42588 n
42589 s/.\{148\}/&'"$ac_delim"'/g
42590 t clear
42591 :clear
42592 s/\\$//
42593 t bsnlc
42594 s/["\\]/\\&/g; s/^/"/; s/$/"/p
42595 d
42596 :bsnlc
42597 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42598 b cont
42599 ' <confdefs.h | sed '
42600 s/'"$ac_delim"'/"\\\
42601 "/g' >>$CONFIG_STATUS || ac_write_fail=1
42602
42603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42604 for (key in D) D_is_set[key] = 1
42605 FS = ""
42606 }
42607 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42608 line = \$ 0
42609 split(line, arg, " ")
42610 if (arg[1] == "#") {
42611 defundef = arg[2]
42612 mac1 = arg[3]
42613 } else {
42614 defundef = substr(arg[1], 2)
42615 mac1 = arg[2]
42616 }
42617 split(mac1, mac2, "(") #)
42618 macro = mac2[1]
42619 prefix = substr(line, 1, index(line, defundef) - 1)
42620 if (D_is_set[macro]) {
42621 # Preserve the white space surrounding the "#".
42622 print prefix "define", macro P[macro] D[macro]
42623 next
42624 } else {
42625 # Replace #undef with comments. This is necessary, for example,
42626 # in the case of _POSIX_SOURCE, which is predefined and required
42627 # on some systems where configure will not decide to define it.
42628 if (defundef == "undef") {
42629 print "/*", prefix defundef, macro, "*/"
42630 next
42631 }
42632 }
42633 }
42634 { print }
42635 _ACAWK
42636 _ACEOF
42637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42638 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42639 fi # test -n "$CONFIG_HEADERS"
42640
42641
42642 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42643 shift
42644 for ac_tag
42645 do
42646 case $ac_tag in
42647 :[FHLC]) ac_mode=$ac_tag; continue;;
42648 esac
42649 case $ac_mode$ac_tag in
42650 :[FHL]*:*);;
42651 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
42652 :[FH]-) ac_tag=-:-;;
42653 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42654 esac
42655 ac_save_IFS=$IFS
42656 IFS=:
42657 set x $ac_tag
42658 IFS=$ac_save_IFS
42659 shift
42660 ac_file=$1
42661 shift
42662
42663 case $ac_mode in
42664 :L) ac_source=$1;;
42665 :[FH])
42666 ac_file_inputs=
42667 for ac_f
42668 do
42669 case $ac_f in
42670 -) ac_f="$ac_tmp/stdin";;
42671 *) # Look for the file first in the build tree, then in the source tree
42672 # (if the path is not absolute). The absolute path cannot be DOS-style,
42673 # because $ac_f cannot contain ':'.
42674 test -f "$ac_f" ||
42675 case $ac_f in
42676 [\\/$]*) false;;
42677 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42678 esac ||
42679 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
42680 esac
42681 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42682 as_fn_append ac_file_inputs " '$ac_f'"
42683 done
42684
42685 # Let's still pretend it is 'configure' which instantiates (i.e., don't
42686 # use $as_me), people would be surprised to read:
42687 # /* config.h. Generated by config.status. */
42688 configure_input='Generated from '`
42689 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42690 `' by configure.'
42691 if test x"$ac_file" != x-; then
42692 configure_input="$ac_file. $configure_input"
42693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42694 printf "%s\n" "$as_me: creating $ac_file" >&6;}
42695 fi
42696 # Neutralize special characters interpreted by sed in replacement strings.
42697 case $configure_input in #(
42698 *\&* | *\|* | *\\* )
42699 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
42700 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42701 *) ac_sed_conf_input=$configure_input;;
42702 esac
42703
42704 case $ac_tag in
42705 *:-:* | *:-) cat >"$ac_tmp/stdin" \
42706 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42707 esac
42708 ;;
42709 esac
42710
42711 ac_dir=`$as_dirname -- "$ac_file" ||
42712 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42713 X"$ac_file" : 'X\(//\)[^/]' \| \
42714 X"$ac_file" : 'X\(//\)$' \| \
42715 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42716 printf "%s\n" X"$ac_file" |
42717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42718 s//\1/
42719 q
42720 }
42721 /^X\(\/\/\)[^/].*/{
42722 s//\1/
42723 q
42724 }
42725 /^X\(\/\/\)$/{
42726 s//\1/
42727 q
42728 }
42729 /^X\(\/\).*/{
42730 s//\1/
42731 q
42732 }
42733 s/.*/./; q'`
42734 as_dir="$ac_dir"; as_fn_mkdir_p
42735 ac_builddir=.
42736
42737 case "$ac_dir" in
42738 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42739 *)
42740 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
42741 # A ".." for each directory in $ac_dir_suffix.
42742 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42743 case $ac_top_builddir_sub in
42744 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42745 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42746 esac ;;
42747 esac
42748 ac_abs_top_builddir=$ac_pwd
42749 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42750 # for backward compatibility:
42751 ac_top_builddir=$ac_top_build_prefix
42752
42753 case $srcdir in
42754 .) # We are building in place.
42755 ac_srcdir=.
42756 ac_top_srcdir=$ac_top_builddir_sub
42757 ac_abs_top_srcdir=$ac_pwd ;;
42758 [\\/]* | ?:[\\/]* ) # Absolute name.
42759 ac_srcdir=$srcdir$ac_dir_suffix;
42760 ac_top_srcdir=$srcdir
42761 ac_abs_top_srcdir=$srcdir ;;
42762 *) # Relative name.
42763 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42764 ac_top_srcdir=$ac_top_build_prefix$srcdir
42765 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42766 esac
42767 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42768
42769
42770 case $ac_mode in
42771 :F)
42772 #
42773 # CONFIG_FILE
42774 #
42775
42776 case $INSTALL in
42777 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42778 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42779 esac
42780 ac_MKDIR_P=$MKDIR_P
42781 case $MKDIR_P in
42782 [\\/$]* | ?:[\\/]* ) ;;
42783 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
42784 esac
42785 _ACEOF
42786
42787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42788 # If the template does not know about datarootdir, expand it.
42789 # FIXME: This hack should be removed a few years after 2.60.
42790 ac_datarootdir_hack=; ac_datarootdir_seen=
42791 ac_sed_dataroot='
42792 /datarootdir/ {
42793 p
42794 q
42795 }
42796 /@datadir@/p
42797 /@docdir@/p
42798 /@infodir@/p
42799 /@localedir@/p
42800 /@mandir@/p'
42801 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42802 *datarootdir*) ac_datarootdir_seen=yes;;
42803 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42805 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42806 _ACEOF
42807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42808 ac_datarootdir_hack='
42809 s&@datadir@&$datadir&g
42810 s&@docdir@&$docdir&g
42811 s&@infodir@&$infodir&g
42812 s&@localedir@&$localedir&g
42813 s&@mandir@&$mandir&g
42814 s&\\\${datarootdir}&$datarootdir&g' ;;
42815 esac
42816 _ACEOF
42817
42818 # Neutralize VPATH when '$srcdir' = '.'.
42819 # Shell code in configure.ac might set extrasub.
42820 # FIXME: do we really want to maintain this feature?
42821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42822 ac_sed_extra="$ac_vpsub
42823 $extrasub
42824 _ACEOF
42825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42826 :t
42827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42828 s|@configure_input@|$ac_sed_conf_input|;t t
42829 s&@top_builddir@&$ac_top_builddir_sub&;t t
42830 s&@top_build_prefix@&$ac_top_build_prefix&;t t
42831 s&@srcdir@&$ac_srcdir&;t t
42832 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42833 s&@top_srcdir@&$ac_top_srcdir&;t t
42834 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42835 s&@builddir@&$ac_builddir&;t t
42836 s&@abs_builddir@&$ac_abs_builddir&;t t
42837 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42838 s&@INSTALL@&$ac_INSTALL&;t t
42839 s&@MKDIR_P@&$ac_MKDIR_P&;t t
42840 $ac_datarootdir_hack
42841 "
42842 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
42843 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42844
42845 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42846 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
42847 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
42848 "$ac_tmp/out"`; test -z "$ac_out"; } &&
42849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
42850 which seems to be undefined. Please make sure it is defined" >&5
42851 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
42852 which seems to be undefined. Please make sure it is defined" >&2;}
42853
42854 rm -f "$ac_tmp/stdin"
42855 case $ac_file in
42856 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42857 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42858 esac \
42859 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42860 ;;
42861 :H)
42862 #
42863 # CONFIG_HEADER
42864 #
42865 if test x"$ac_file" != x-; then
42866 {
42867 printf "%s\n" "/* $configure_input */" >&1 \
42868 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42869 } >"$ac_tmp/config.h" \
42870 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42871 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42873 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
42874 else
42875 rm -f "$ac_file"
42876 mv "$ac_tmp/config.h" "$ac_file" \
42877 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42878 fi
42879 else
42880 printf "%s\n" "/* $configure_input */" >&1 \
42881 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42882 || as_fn_error $? "could not create -" "$LINENO" 5
42883 fi
42884 # Compute "$ac_file"'s index in $config_headers.
42885 _am_arg="$ac_file"
42886 _am_stamp_count=1
42887 for _am_header in $config_headers :; do
42888 case $_am_header in
42889 $_am_arg | $_am_arg:* )
42890 break ;;
42891 * )
42892 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42893 esac
42894 done
42895 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42896 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42897 X"$_am_arg" : 'X\(//\)[^/]' \| \
42898 X"$_am_arg" : 'X\(//\)$' \| \
42899 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42900 printf "%s\n" X"$_am_arg" |
42901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42902 s//\1/
42903 q
42904 }
42905 /^X\(\/\/\)[^/].*/{
42906 s//\1/
42907 q
42908 }
42909 /^X\(\/\/\)$/{
42910 s//\1/
42911 q
42912 }
42913 /^X\(\/\).*/{
42914 s//\1/
42915 q
42916 }
42917 s/.*/./; q'`/stamp-h$_am_stamp_count
42918 ;;
42919
42920 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42921 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
42922 ;;
42923 esac
42924
42925
42926 case $ac_file$ac_mode in
42927 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
42928 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
42929 ac_prefix_conf_PKG=`echo MagickCore`
42930 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
42931 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
42932 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
42933 if test ".$ac_prefix_conf_INP" = "."; then
42934 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
42935 case "$ac_file" in
42936 *.h) ac_prefix_conf_INP=$ac_file ;;
42937 *)
42938 esac
42939 test ".$ac_prefix_conf_INP" != "." && break
42940 done
42941 fi
42942 if test ".$ac_prefix_conf_INP" = "."; then
42943 case "$ac_prefix_conf_OUT" in
42944 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
42945 ;;
42946 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
42947 ;;
42948 *) ac_prefix_conf_INP=config.h
42949 ;;
42950 esac
42951 fi
42952 if test -z "$ac_prefix_conf_PKG" ; then
42953 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
42954 else
42955 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
42956 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
42957 fi fi
42958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
42959 printf "%s\n" "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
42960 if test -f $ac_prefix_conf_INP ; then
42961 printf "%s\n" "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
42962 printf "%s\n" "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
42963 printf "%s\n" "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
42964 printf "%s\n" "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
42965 printf "%s\n" "#endif/" >> conftest.prefix
42966 printf "%s\n" "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
42967 printf "%s\n" "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
42968 printf "%s\n" "#endif/" >> conftest.prefix
42969 # now executing _script on _DEF input to create _OUT output file
42970 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
42971 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
42972 echo ' ' >>$tmp/pconfig.h
42973 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
42974
42975 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
42976 echo ' ' >>$tmp/pconfig.h
42977 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
42978 echo "#endif" >>$tmp/pconfig.h
42979 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
42980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
42981 printf "%s\n" "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
42982 else
42983 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
42984 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42985 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
42986 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
42987 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
42988 printf "%s\n" X"$ac_prefix_conf_OUT" |
42989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42990 s//\1/
42991 q
42992 }
42993 /^X\(\/\/\)[^/].*/{
42994 s//\1/
42995 q
42996 }
42997 /^X\(\/\/\)$/{
42998 s//\1/
42999 q
43000 }
43001 /^X\(\/\).*/{
43002 s//\1/
43003 q
43004 }
43005 s/.*/./; q'`
43006 as_dir="$ac_dir"; as_fn_mkdir_p
43007 rm -f "$ac_prefix_conf_OUT"
43008 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
43009 fi
43010 else
43011 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
43012 fi
43013 rm -f conftest.*
43014 fi
43015 ;;
43016 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43017 # Older Autoconf quotes --file arguments for eval, but not when files
43018 # are listed without --file. Let's play safe and only enable the eval
43019 # if we detect the quoting.
43020 # TODO: see whether this extra hack can be removed once we start
43021 # requiring Autoconf 2.70 or later.
43022 case $CONFIG_FILES in #(
43023 *\'*) :
43024 eval set x "$CONFIG_FILES" ;; #(
43025 *) :
43026 set x $CONFIG_FILES ;; #(
43027 *) :
43028 ;;
43029 esac
43030 shift
43031 # Used to flag and report bootstrapping failures.
43032 am_rc=0
43033 for am_mf
43034 do
43035 # Strip MF so we end up with the name of the file.
43036 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
43037 # Check whether this is an Automake generated Makefile which includes
43038 # dependency-tracking related rules and includes.
43039 # Grep'ing the whole file directly is not great: AIX grep has a line
43040 # limit of 2048, but all sed's we know have understand at least 4000.
43041 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
43042 || continue
43043 am_dirpart=`$as_dirname -- "$am_mf" ||
43044 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43045 X"$am_mf" : 'X\(//\)[^/]' \| \
43046 X"$am_mf" : 'X\(//\)$' \| \
43047 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
43048 printf "%s\n" X"$am_mf" |
43049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43050 s//\1/
43051 q
43052 }
43053 /^X\(\/\/\)[^/].*/{
43054 s//\1/
43055 q
43056 }
43057 /^X\(\/\/\)$/{
43058 s//\1/
43059 q
43060 }
43061 /^X\(\/\).*/{
43062 s//\1/
43063 q
43064 }
43065 s/.*/./; q'`
43066 am_filepart=`$as_basename -- "$am_mf" ||
43067 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
43068 X"$am_mf" : 'X\(//\)$' \| \
43069 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
43070 printf "%s\n" X/"$am_mf" |
43071 sed '/^.*\/\([^/][^/]*\)\/*$/{
43072 s//\1/
43073 q
43074 }
43075 /^X\/\(\/\/\)$/{
43076 s//\1/
43077 q
43078 }
43079 /^X\/\(\/\).*/{
43080 s//\1/
43081 q
43082 }
43083 s/.*/./; q'`
43084 { echo "$as_me:$LINENO: cd "$am_dirpart" \
43085 && sed -e '/# am--include-marker/d' "$am_filepart" \
43086 | $MAKE -f - am--depfiles" >&5
43087 (cd "$am_dirpart" \
43088 && sed -e '/# am--include-marker/d' "$am_filepart" \
43089 | $MAKE -f - am--depfiles) >&5 2>&5
43090 ac_status=$?
43091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43092 (exit $ac_status); } || am_rc=$?
43093 done
43094 if test $am_rc -ne 0; then
43095 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
43096 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
43097 as_fn_error $? "Something went wrong bootstrapping makefile fragments
43098 for automatic dependency tracking. If GNU make was not used, consider
43099 re-running the configure script with MAKE=\"gmake\" (or whatever is
43100 necessary). You can also try re-running configure with the
43101 '--disable-dependency-tracking' option to at least be able to build
43102 the package (albeit without support for automatic dependency tracking).
43103 See 'config.log' for more details" "$LINENO" 5; }
43104 fi
43105 { am_dirpart=; unset am_dirpart;}
43106 { am_filepart=; unset am_filepart;}
43107 { am_mf=; unset am_mf;}
43108 { am_rc=; unset am_rc;}
43109 rm -f conftest-deps.mk
43110 }
43111 ;;
43112 "libtool":C)
43113
43114 # See if we are running on zsh, and set the options that allow our
43115 # commands through without removal of \ escapes.
43116 if test -n "${ZSH_VERSION+set}"; then
43117 setopt NO_GLOB_SUBST
43118 fi
43119
43120 cfgfile=${ofile}T
43121 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43122 $RM "$cfgfile"
43123
43124 cat <<_LT_EOF >> "$cfgfile"
43125 #! $SHELL
43126 # Generated automatically by $as_me ($PACKAGE) $VERSION
43127 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43128
43129 # Provide generalized library-building support services.
43130 # Written by Gordon Matzigkeit, 1996
43131
43132 # Copyright (C) 2024 Free Software Foundation, Inc.
43133 # This is free software; see the source for copying conditions. There is NO
43134 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43135
43136 # GNU Libtool is free software; you can redistribute it and/or modify
43137 # it under the terms of the GNU General Public License as published by
43138 # the Free Software Foundation; either version 2 of the License, or
43139 # (at your option) any later version.
43140 #
43141 # As a special exception to the GNU General Public License, if you
43142 # distribute this file as part of a program or library that is built
43143 # using GNU Libtool, you may include this file under the same
43144 # distribution terms that you use for the rest of that program.
43145 #
43146 # GNU Libtool is distributed in the hope that it will be useful, but
43147 # WITHOUT ANY WARRANTY; without even the implied warranty of
43148 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43149 # GNU General Public License for more details.
43150 #
43151 # You should have received a copy of the GNU General Public License
43152 # along with this program. If not, see <http://www.gnu.org/licenses/>.
43153
43154
43155 # The names of the tagged configurations supported by this script.
43156 available_tags='CXX '
43157
43158 # Configured defaults for sys_lib_dlsearch_path munging.
43159 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43160
43161 # ### BEGIN LIBTOOL CONFIG
43162
43163 # A sed program that does not truncate output.
43164 SED=$lt_SED
43165
43166 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43167 Xsed="\$SED -e 1s/^X//"
43168
43169 # A grep program that handles long lines.
43170 GREP=$lt_GREP
43171
43172 # An ERE matcher.
43173 EGREP=$lt_EGREP
43174
43175 # A literal string matcher.
43176 FGREP=$lt_FGREP
43177
43178 # Shell to use when invoking shell scripts.
43179 SHELL=$lt_SHELL
43180
43181 # An echo program that protects backslashes.
43182 ECHO=$lt_ECHO
43183
43184 # Which release of libtool.m4 was used?
43185 macro_version=$macro_version
43186 macro_revision=$macro_revision
43187
43188 # Assembler program.
43189 AS=$lt_AS
43190
43191 # DLL creation program.
43192 DLLTOOL=$lt_DLLTOOL
43193
43194 # Object dumper program.
43195 OBJDUMP=$lt_OBJDUMP
43196
43197 # Whether or not to build shared libraries.
43198 build_libtool_libs=$enable_shared
43199
43200 # Whether or not to build static libraries.
43201 build_old_libs=$enable_static
43202
43203 # What type of objects to build.
43204 pic_mode=$pic_mode
43205
43206 # Whether or not to optimize for fast installation.
43207 fast_install=$enable_fast_install
43208
43209 # Shared archive member basename,for filename based shared library versioning on AIX.
43210 shared_archive_member_spec=$shared_archive_member_spec
43211
43212 # The PATH separator for the build system.
43213 PATH_SEPARATOR=$lt_PATH_SEPARATOR
43214
43215 # The host system.
43216 host_alias=$host_alias
43217 host=$host
43218 host_os=$host_os
43219
43220 # The build system.
43221 build_alias=$build_alias
43222 build=$build
43223 build_os=$build_os
43224
43225 # A BSD- or MS-compatible name lister.
43226 NM=$lt_NM
43227
43228 # Whether we need soft or hard links.
43229 LN_S=$lt_LN_S
43230
43231 # What is the maximum length of a command?
43232 max_cmd_len=$max_cmd_len
43233
43234 # Object file suffix (normally "o").
43235 objext=$ac_objext
43236
43237 # Executable file suffix (normally "").
43238 exeext=$exeext
43239
43240 # whether the shell understands "unset".
43241 lt_unset=$lt_unset
43242
43243 # turn spaces into newlines.
43244 SP2NL=$lt_lt_SP2NL
43245
43246 # turn newlines into spaces.
43247 NL2SP=$lt_lt_NL2SP
43248
43249 # convert \$build file names to \$host format.
43250 to_host_file_cmd=$lt_cv_to_host_file_cmd
43251
43252 # convert \$build files to toolchain format.
43253 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43254
43255 # A file(cmd) program that detects file types.
43256 FILECMD=$lt_FILECMD
43257
43258 # Method to check whether dependent libraries are shared objects.
43259 deplibs_check_method=$lt_deplibs_check_method
43260
43261 # Command to use when deplibs_check_method = "file_magic".
43262 file_magic_cmd=$lt_file_magic_cmd
43263
43264 # How to find potential files when deplibs_check_method = "file_magic".
43265 file_magic_glob=$lt_file_magic_glob
43266
43267 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43268 want_nocaseglob=$lt_want_nocaseglob
43269
43270 # Command to associate shared and link libraries.
43271 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43272
43273 # The archiver.
43274 AR=$lt_AR
43275
43276 # Flags to create an archive (by configure).
43277 lt_ar_flags=$lt_ar_flags
43278
43279 # Flags to create an archive.
43280 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
43281
43282 # How to feed a file listing to the archiver.
43283 archiver_list_spec=$lt_archiver_list_spec
43284
43285 # A symbol stripping program.
43286 STRIP=$lt_STRIP
43287
43288 # Commands used to install an old-style archive.
43289 RANLIB=$lt_RANLIB
43290 old_postinstall_cmds=$lt_old_postinstall_cmds
43291 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43292
43293 # Whether to use a lock for old archive extraction.
43294 lock_old_archive_extraction=$lock_old_archive_extraction
43295
43296 # A C compiler.
43297 LTCC=$lt_CC
43298
43299 # LTCC compiler flags.
43300 LTCFLAGS=$lt_CFLAGS
43301
43302 # Take the output of nm and produce a listing of raw symbols and C names.
43303 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43304
43305 # Transform the output of nm in a proper C declaration.
43306 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43307
43308 # Transform the output of nm into a list of symbols to manually relocate.
43309 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43310
43311 # Transform the output of nm in a C name address pair.
43312 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43313
43314 # Transform the output of nm in a C name address pair when lib prefix is needed.
43315 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43316
43317 # The name lister interface.
43318 nm_interface=$lt_lt_cv_nm_interface
43319
43320 # Specify filename containing input files for \$NM.
43321 nm_file_list_spec=$lt_nm_file_list_spec
43322
43323 # The root where to search for dependent libraries,and where our libraries should be installed.
43324 lt_sysroot=$lt_sysroot
43325
43326 # Command to truncate a binary pipe.
43327 lt_truncate_bin=$lt_lt_cv_truncate_bin
43328
43329 # The name of the directory that contains temporary libtool files.
43330 objdir=$objdir
43331
43332 # Used to examine libraries when file_magic_cmd begins with "file".
43333 MAGIC_CMD=$MAGIC_CMD
43334
43335 # Must we lock files when doing compilation?
43336 need_locks=$lt_need_locks
43337
43338 # Manifest tool.
43339 MANIFEST_TOOL=$lt_MANIFEST_TOOL
43340
43341 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43342 DSYMUTIL=$lt_DSYMUTIL
43343
43344 # Tool to change global to local symbols on Mac OS X.
43345 NMEDIT=$lt_NMEDIT
43346
43347 # Tool to manipulate fat objects and archives on Mac OS X.
43348 LIPO=$lt_LIPO
43349
43350 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43351 OTOOL=$lt_OTOOL
43352
43353 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43354 OTOOL64=$lt_OTOOL64
43355
43356 # Old archive suffix (normally "a").
43357 libext=$libext
43358
43359 # Shared library suffix (normally ".so").
43360 shrext_cmds=$lt_shrext_cmds
43361
43362 # The commands to extract the exported symbol list from a shared archive.
43363 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43364
43365 # Variables whose values should be saved in libtool wrapper scripts and
43366 # restored at link time.
43367 variables_saved_for_relink=$lt_variables_saved_for_relink
43368
43369 # Do we need the "lib" prefix for modules?
43370 need_lib_prefix=$need_lib_prefix
43371
43372 # Do we need a version for libraries?
43373 need_version=$need_version
43374
43375 # Library versioning type.
43376 version_type=$version_type
43377
43378 # Shared library runtime path variable.
43379 runpath_var=$runpath_var
43380
43381 # Shared library path variable.
43382 shlibpath_var=$shlibpath_var
43383
43384 # Is shlibpath searched before the hard-coded library search path?
43385 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43386
43387 # Format of library name prefix.
43388 libname_spec=$lt_libname_spec
43389
43390 # List of archive names. First name is the real one, the rest are links.
43391 # The last name is the one that the linker finds with -lNAME
43392 library_names_spec=$lt_library_names_spec
43393
43394 # The coded name of the library, if different from the real name.
43395 soname_spec=$lt_soname_spec
43396
43397 # Permission mode override for installation of shared libraries.
43398 install_override_mode=$lt_install_override_mode
43399
43400 # Command to use after installation of a shared archive.
43401 postinstall_cmds=$lt_postinstall_cmds
43402
43403 # Command to use after uninstallation of a shared archive.
43404 postuninstall_cmds=$lt_postuninstall_cmds
43405
43406 # Commands used to finish a libtool library installation in a directory.
43407 finish_cmds=$lt_finish_cmds
43408
43409 # As "finish_cmds", except a single script fragment to be evaled but
43410 # not shown.
43411 finish_eval=$lt_finish_eval
43412
43413 # Whether we should hardcode library paths into libraries.
43414 hardcode_into_libs=$hardcode_into_libs
43415
43416 # Compile-time system search path for libraries.
43417 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43418
43419 # Detected run-time system search path for libraries.
43420 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43421
43422 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43423 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43424
43425 # Whether dlopen is supported.
43426 dlopen_support=$enable_dlopen
43427
43428 # Whether dlopen of programs is supported.
43429 dlopen_self=$enable_dlopen_self
43430
43431 # Whether dlopen of statically linked programs is supported.
43432 dlopen_self_static=$enable_dlopen_self_static
43433
43434 # Commands to strip libraries.
43435 old_striplib=$lt_old_striplib
43436 striplib=$lt_striplib
43437
43438
43439 # The linker used to build libraries.
43440 LD=$lt_LD
43441
43442 # How to create reloadable object files.
43443 reload_flag=$lt_reload_flag
43444 reload_cmds=$lt_reload_cmds
43445
43446 # Commands used to build an old-style archive.
43447 old_archive_cmds=$lt_old_archive_cmds
43448
43449 # A language specific compiler.
43450 CC=$lt_compiler
43451
43452 # Is the compiler the GNU compiler?
43453 with_gcc=$GCC
43454
43455 # Compiler flag to turn off builtin functions.
43456 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43457
43458 # Additional compiler flags for building library objects.
43459 pic_flag=$lt_lt_prog_compiler_pic
43460
43461 # How to pass a linker flag through the compiler.
43462 wl=$lt_lt_prog_compiler_wl
43463
43464 # Compiler flag to prevent dynamic linking.
43465 link_static_flag=$lt_lt_prog_compiler_static
43466
43467 # Does compiler simultaneously support -c and -o options?
43468 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43469
43470 # Whether or not to add -lc for building shared libraries.
43471 build_libtool_need_lc=$archive_cmds_need_lc
43472
43473 # Whether or not to disallow shared libs when runtime libs are static.
43474 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43475
43476 # Compiler flag to allow reflexive dlopens.
43477 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43478
43479 # Compiler flag to generate shared objects directly from archives.
43480 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43481
43482 # Whether the compiler copes with passing no objects directly.
43483 compiler_needs_object=$lt_compiler_needs_object
43484
43485 # Create an old-style archive from a shared archive.
43486 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43487
43488 # Create a temporary old-style archive to link instead of a shared archive.
43489 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43490
43491 # Commands used to build a shared archive.
43492 archive_cmds=$lt_archive_cmds
43493 archive_expsym_cmds=$lt_archive_expsym_cmds
43494
43495 # Commands used to build a loadable module if different from building
43496 # a shared archive.
43497 module_cmds=$lt_module_cmds
43498 module_expsym_cmds=$lt_module_expsym_cmds
43499
43500 # Whether we are building with GNU ld or not.
43501 with_gnu_ld=$lt_with_gnu_ld
43502
43503 # Flag that allows shared libraries with undefined symbols to be built.
43504 allow_undefined_flag=$lt_allow_undefined_flag
43505
43506 # Flag that enforces no undefined symbols.
43507 no_undefined_flag=$lt_no_undefined_flag
43508
43509 # Flag to hardcode \$libdir into a binary during linking.
43510 # This must work even if \$libdir does not exist
43511 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43512
43513 # Whether we need a single "-rpath" flag with a separated argument.
43514 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43515
43516 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43517 # DIR into the resulting binary.
43518 hardcode_direct=$hardcode_direct
43519
43520 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43521 # DIR into the resulting binary and the resulting library dependency is
43522 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
43523 # library is relocated.
43524 hardcode_direct_absolute=$hardcode_direct_absolute
43525
43526 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43527 # into the resulting binary.
43528 hardcode_minus_L=$hardcode_minus_L
43529
43530 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43531 # into the resulting binary.
43532 hardcode_shlibpath_var=$hardcode_shlibpath_var
43533
43534 # Set to "yes" if building a shared library automatically hardcodes DIR
43535 # into the library and all subsequent libraries and executables linked
43536 # against it.
43537 hardcode_automatic=$hardcode_automatic
43538
43539 # Set to yes if linker adds runtime paths of dependent libraries
43540 # to runtime path list.
43541 inherit_rpath=$inherit_rpath
43542
43543 # Whether libtool must link a program against all its dependency libraries.
43544 link_all_deplibs=$link_all_deplibs
43545
43546 # Set to "yes" if exported symbols are required.
43547 always_export_symbols=$always_export_symbols
43548
43549 # The commands to list exported symbols.
43550 export_symbols_cmds=$lt_export_symbols_cmds
43551
43552 # Symbols that should not be listed in the preloaded symbols.
43553 exclude_expsyms=$lt_exclude_expsyms
43554
43555 # Symbols that must always be exported.
43556 include_expsyms=$lt_include_expsyms
43557
43558 # Commands necessary for linking programs (against libraries) with templates.
43559 prelink_cmds=$lt_prelink_cmds
43560
43561 # Commands necessary for finishing linking programs.
43562 postlink_cmds=$lt_postlink_cmds
43563
43564 # Specify filename containing input files.
43565 file_list_spec=$lt_file_list_spec
43566
43567 # How to hardcode a shared library path into an executable.
43568 hardcode_action=$hardcode_action
43569
43570 # The directories searched by this compiler when creating a shared library.
43571 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
43572
43573 # Dependencies to place before and after the objects being linked to
43574 # create a shared library.
43575 predep_objects=$lt_predep_objects
43576 postdep_objects=$lt_postdep_objects
43577 predeps=$lt_predeps
43578 postdeps=$lt_postdeps
43579
43580 # The library search path used internally by the compiler when linking
43581 # a shared library.
43582 compiler_lib_search_path=$lt_compiler_lib_search_path
43583
43584 # ### END LIBTOOL CONFIG
43585
43586 _LT_EOF
43587
43588 cat <<'_LT_EOF' >> "$cfgfile"
43589
43590 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43591
43592 # func_munge_path_list VARIABLE PATH
43593 # -----------------------------------
43594 # VARIABLE is name of variable containing _space_ separated list of
43595 # directories to be munged by the contents of PATH, which is string
43596 # having a format:
43597 # "DIR[:DIR]:"
43598 # string "DIR[ DIR]" will be prepended to VARIABLE
43599 # ":DIR[:DIR]"
43600 # string "DIR[ DIR]" will be appended to VARIABLE
43601 # "DIRP[:DIRP]::[DIRA:]DIRA"
43602 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43603 # "DIRA[ DIRA]" will be appended to VARIABLE
43604 # "DIR[:DIR]"
43605 # VARIABLE will be replaced by "DIR[ DIR]"
43606 func_munge_path_list ()
43607 {
43608 case x$2 in
43609 x)
43610 ;;
43611 *:)
43612 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43613 ;;
43614 x:*)
43615 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43616 ;;
43617 *::*)
43618 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43619 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43620 ;;
43621 *)
43622 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43623 ;;
43624 esac
43625 }
43626
43627
43628 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43629 func_cc_basename ()
43630 {
43631 for cc_temp in $*""; do
43632 case $cc_temp in
43633 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43634 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43635 \-*) ;;
43636 *) break;;
43637 esac
43638 done
43639 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43640 }
43641
43642
43643 # ### END FUNCTIONS SHARED WITH CONFIGURE
43644
43645 _LT_EOF
43646
43647 case $host_os in
43648 aix3*)
43649 cat <<\_LT_EOF >> "$cfgfile"
43650 # AIX sometimes has problems with the GCC collect2 program. For some
43651 # reason, if we set the COLLECT_NAMES environment variable, the problems
43652 # vanish in a puff of smoke.
43653 if test set != "${COLLECT_NAMES+set}"; then
43654 COLLECT_NAMES=
43655 export COLLECT_NAMES
43656 fi
43657 _LT_EOF
43658 ;;
43659 esac
43660
43661
43662
43663 ltmain=$ac_aux_dir/ltmain.sh
43664
43665
43666 # We use sed instead of cat because bash on DJGPP gets confused if
43667 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43668 # text mode, it properly converts lines to CR/LF. This bash problem
43669 # is reportedly fixed, but why not run on old versions too?
43670 $SED '$q' "$ltmain" >> "$cfgfile" \
43671 || (rm -f "$cfgfile"; exit 1)
43672
43673 mv -f "$cfgfile" "$ofile" ||
43674 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43675 chmod +x "$ofile"
43676
43677
43678 cat <<_LT_EOF >> "$ofile"
43679
43680 # ### BEGIN LIBTOOL TAG CONFIG: CXX
43681
43682 # The linker used to build libraries.
43683 LD=$lt_LD_CXX
43684
43685 # How to create reloadable object files.
43686 reload_flag=$lt_reload_flag_CXX
43687 reload_cmds=$lt_reload_cmds_CXX
43688
43689 # Commands used to build an old-style archive.
43690 old_archive_cmds=$lt_old_archive_cmds_CXX
43691
43692 # A language specific compiler.
43693 CC=$lt_compiler_CXX
43694
43695 # Is the compiler the GNU compiler?
43696 with_gcc=$GCC_CXX
43697
43698 # Compiler flag to turn off builtin functions.
43699 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
43700
43701 # Additional compiler flags for building library objects.
43702 pic_flag=$lt_lt_prog_compiler_pic_CXX
43703
43704 # How to pass a linker flag through the compiler.
43705 wl=$lt_lt_prog_compiler_wl_CXX
43706
43707 # Compiler flag to prevent dynamic linking.
43708 link_static_flag=$lt_lt_prog_compiler_static_CXX
43709
43710 # Does compiler simultaneously support -c and -o options?
43711 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
43712
43713 # Whether or not to add -lc for building shared libraries.
43714 build_libtool_need_lc=$archive_cmds_need_lc_CXX
43715
43716 # Whether or not to disallow shared libs when runtime libs are static.
43717 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
43718
43719 # Compiler flag to allow reflexive dlopens.
43720 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
43721
43722 # Compiler flag to generate shared objects directly from archives.
43723 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
43724
43725 # Whether the compiler copes with passing no objects directly.
43726 compiler_needs_object=$lt_compiler_needs_object_CXX
43727
43728 # Create an old-style archive from a shared archive.
43729 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
43730
43731 # Create a temporary old-style archive to link instead of a shared archive.
43732 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
43733
43734 # Commands used to build a shared archive.
43735 archive_cmds=$lt_archive_cmds_CXX
43736 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43737
43738 # Commands used to build a loadable module if different from building
43739 # a shared archive.
43740 module_cmds=$lt_module_cmds_CXX
43741 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43742
43743 # Whether we are building with GNU ld or not.
43744 with_gnu_ld=$lt_with_gnu_ld_CXX
43745
43746 # Flag that allows shared libraries with undefined symbols to be built.
43747 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43748
43749 # Flag that enforces no undefined symbols.
43750 no_undefined_flag=$lt_no_undefined_flag_CXX
43751
43752 # Flag to hardcode \$libdir into a binary during linking.
43753 # This must work even if \$libdir does not exist
43754 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
43755
43756 # Whether we need a single "-rpath" flag with a separated argument.
43757 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
43758
43759 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43760 # DIR into the resulting binary.
43761 hardcode_direct=$hardcode_direct_CXX
43762
43763 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43764 # DIR into the resulting binary and the resulting library dependency is
43765 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
43766 # library is relocated.
43767 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
43768
43769 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43770 # into the resulting binary.
43771 hardcode_minus_L=$hardcode_minus_L_CXX
43772
43773 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43774 # into the resulting binary.
43775 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
43776
43777 # Set to "yes" if building a shared library automatically hardcodes DIR
43778 # into the library and all subsequent libraries and executables linked
43779 # against it.
43780 hardcode_automatic=$hardcode_automatic_CXX
43781
43782 # Set to yes if linker adds runtime paths of dependent libraries
43783 # to runtime path list.
43784 inherit_rpath=$inherit_rpath_CXX
43785
43786 # Whether libtool must link a program against all its dependency libraries.
43787 link_all_deplibs=$link_all_deplibs_CXX
43788
43789 # Set to "yes" if exported symbols are required.
43790 always_export_symbols=$always_export_symbols_CXX
43791
43792 # The commands to list exported symbols.
43793 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43794
43795 # Symbols that should not be listed in the preloaded symbols.
43796 exclude_expsyms=$lt_exclude_expsyms_CXX
43797
43798 # Symbols that must always be exported.
43799 include_expsyms=$lt_include_expsyms_CXX
43800
43801 # Commands necessary for linking programs (against libraries) with templates.
43802 prelink_cmds=$lt_prelink_cmds_CXX
43803
43804 # Commands necessary for finishing linking programs.
43805 postlink_cmds=$lt_postlink_cmds_CXX
43806
43807 # Specify filename containing input files.
43808 file_list_spec=$lt_file_list_spec_CXX
43809
43810 # How to hardcode a shared library path into an executable.
43811 hardcode_action=$hardcode_action_CXX
43812
43813 # The directories searched by this compiler when creating a shared library.
43814 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43815
43816 # Dependencies to place before and after the objects being linked to
43817 # create a shared library.
43818 predep_objects=$lt_predep_objects_CXX
43819 postdep_objects=$lt_postdep_objects_CXX
43820 predeps=$lt_predeps_CXX
43821 postdeps=$lt_postdeps_CXX
43822
43823 # The library search path used internally by the compiler when linking
43824 # a shared library.
43825 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43826
43827 # ### END LIBTOOL TAG CONFIG: CXX
43828 _LT_EOF
43829
43830 ;;
43831 "magick.sh.in":C) chmod +x magick.sh ;;
43832 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
43833 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
43834 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
43835 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
43836
43837 esac
43838 done # for ac_tag
43839
43840
43841 as_fn_exit 0
43842 _ACEOF
43843 ac_clean_files=$ac_clean_files_save
43844
43845 test $ac_write_fail = 0 ||
43846 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43847
43848
43849 # configure is writing to config.log, and then calls config.status.
43850 # config.status does its own redirection, appending to config.log.
43851 # Unfortunately, on DOS this fails, as config.log is still kept open
43852 # by configure, so config.status won't be able to write to it; its
43853 # output is simply discarded. So we exec the FD to /dev/null,
43854 # effectively closing config.log, so it can be properly (re)opened and
43855 # appended to by config.status. When coming back to configure, we
43856 # need to make the FD available again.
43857 if test "$no_create" != yes; then
43858 ac_cs_success=:
43859 ac_config_status_args=
43860 test "$silent" = yes &&
43861 ac_config_status_args="$ac_config_status_args --quiet"
43862 exec 5>/dev/null
43863 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43864 exec 5>>config.log
43865 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43866 # would make configure fail if this is the last instruction.
43867 $ac_cs_success || as_fn_exit 1
43868 fi
43869 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
43870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43871 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
43872 fi
43873
43874
43875 # ==============================================================================
43876 # ImageMagick Configuration
43877 # ==============================================================================
43878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
43879 ==============================================================================
43880 ${PACKAGE_NAME} ${PACKAGE_VERSION} is configured as follows. Verify that this configuration
43881 matches your expectations.
43882
43883 Host system type: $host
43884 Build system type: $build
43885
43886 Option Value
43887 ------------------------------------------------------------------------------
43888 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
43889 Static libraries --enable-static=$enable_static $libtool_build_static_libs
43890 Build utilities --with-utilities=$with_utilities $with_utilities
43891 Module support --with-modules=$build_modules $build_modules
43892 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
43893 OpenMP --enable-openmp=$enable_openmp ${OPENMP_ENABLED}
43894 Security policy --with-security-policy=$security_policy $security_policy
43895 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
43896 Channel mask depth --enable-64bit-channel-masks=$enable_64bit_channel_masks $magick_channel_mask_depth
43897 High Dynamic Range Imagery
43898 --enable-hdri=$enable_hdri $enable_hdri
43899
43900 Install documentation: $wantdocs
43901
43902 Memory allocation library:
43903 JEMalloc --with-jemalloc=$with_jemalloc $have_jemalloc
43904 MTMalloc --with-mtmalloc=$with_mtmalloc $have_mtmalloc
43905 TCMalloc --with-tcmalloc=$with_tcmalloc $have_tcmalloc
43906 UMem --with-umem=$with_umem $have_umem
43907
43908 Delegate library configuration:
43909 BZLIB --with-bzlib=$with_bzlib $have_bzlib
43910 Autotrace --with-autotrace=$with_autotrace $have_autotrace
43911 DJVU --with-djvu=$with_djvu $have_djvu
43912 DPS --with-dps=$with_dps $have_dps
43913 FFTW --with-fftw=$with_fftw $have_fftw
43914 FLIF --with-flif=$with_flif $have_flif
43915 FlashPIX --with-fpx=$with_fpx $have_fpx
43916 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
43917 FreeType --with-freetype=$with_freetype $have_freetype
43918 Ghostscript lib --with-gslib=$with_gslib $have_gslib
43919 Graphviz --with-gvc=$with_gvc $have_gvc
43920 HEIC --with-heic=$with_heic $have_heic
43921 JBIG --with-jbig=$with_jbig $have_jbig
43922 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
43923 JPEG XL --with-jxl=$with_jxl $have_jxl
43924 DMR --with-dmr=$with_dmr $have_dmr
43925 LCMS --with-lcms=$with_lcms $have_lcms
43926 LQR --with-lqr=$with_lqr $have_lqr
43927 LTDL --with-ltdl=$with_ltdl $have_ltdl
43928 LZMA --with-lzma=$with_lzma $have_lzma
43929 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
43930 OpenEXR --with-openexr=$with_openexr $have_openexr
43931 OpenJP2 --with-openjp2=$with_openjp2 $have_openjp2
43932 PANGO --with-pango=$with_pango $have_pangocairo
43933 PERL --with-perl=$with_perl $have_perl
43934 PNG --with-png=$with_png $have_png
43935 RAQM --with-raqm=$with_raqm $have_raqm
43936 RAW --with-raw=$with_raw $have_raw
43937 RSVG --with-rsvg=$with_rsvg $have_rsvg
43938 TIFF --with-tiff=$with_tiff $have_tiff
43939 UHDR --with-uhdr=$with_uhdr $have_uhdr
43940 WEBP --with-webp=$with_webp $have_webp
43941 WMF --with-wmf=$with_wmf $have_wmf
43942 X11 --with-x=$with_x $have_x
43943 XML --with-xml=$with_xml $have_xml
43944 ZIP --with-zip=$with_zip $have_zip
43945 ZLIB --with-zlib=$with_zlib $have_zlib
43946 ZSTD --with-zstd=$with_zstd $have_zstd
43947
43948 Delegate program configuration:
43949 GhostPCL None $PCLDelegate ($PCLVersion)
43950 GhostXPS None $XPSDelegate ($XPSVersion)
43951 Ghostscript None $PSDelegate ($GSVersion)
43952
43953 Font configuration:
43954 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
43955 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
43956 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
43957 URW OTF fonts --with-urw-base35-font-dir=$with_urw_base35_font_dir $result_urw_base35_font_dir
43958 URW Type1 fonts --with-urw-base35-type1-font-dir=$with_urw_base35_type1_font_dir $result_urw_base35_type1_font_dir
43959 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
43960
43961 X11 configuration:
43962 X_CFLAGS = $X_CFLAGS
43963 X_PRE_LIBS = $X_PRE_LIBS
43964 X_LIBS = $X_LIBS
43965 X_EXTRA_LIBS = $X_EXTRA_LIBS
43966
43967 Options used to compile and link:
43968 PREFIX = $PREFIX_DIR
43969 EXEC-PREFIX = $EXEC_PREFIX_DIR
43970 VERSION = $PACKAGE_VERSION
43971 CC = $CC
43972 CFLAGS = $CFLAGS
43973 CPPFLAGS = $CPPFLAGS
43974 PCFLAGS = $PCFLAGS
43975 DEFS = $DEFS
43976 LDFLAGS = $LDFLAGS
43977 LIBS = $MAGICK_DEP_LIBS $MAGICK_EXTRA_DEP_LIBS
43978 CXX = $CXX
43979 CXXFLAGS = $CXXFLAGS
43980 FEATURES = $MAGICK_FEATURES
43981 DELEGATES = $MAGICK_DELEGATES
43982 ==============================================================================
43983 " >&5
43984 printf "%s\n" "$as_me:
43985 ==============================================================================
43986 ${PACKAGE_NAME} ${PACKAGE_VERSION} is configured as follows. Verify that this configuration
43987 matches your expectations.
43988
43989 Host system type: $host
43990 Build system type: $build
43991
43992 Option Value
43993 ------------------------------------------------------------------------------
43994 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
43995 Static libraries --enable-static=$enable_static $libtool_build_static_libs
43996 Build utilities --with-utilities=$with_utilities $with_utilities
43997 Module support --with-modules=$build_modules $build_modules
43998 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
43999 OpenMP --enable-openmp=$enable_openmp ${OPENMP_ENABLED}
44000 Security policy --with-security-policy=$security_policy $security_policy
44001 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
44002 Channel mask depth --enable-64bit-channel-masks=$enable_64bit_channel_masks $magick_channel_mask_depth
44003 High Dynamic Range Imagery
44004 --enable-hdri=$enable_hdri $enable_hdri
44005
44006 Install documentation: $wantdocs
44007
44008 Memory allocation library:
44009 JEMalloc --with-jemalloc=$with_jemalloc $have_jemalloc
44010 MTMalloc --with-mtmalloc=$with_mtmalloc $have_mtmalloc
44011 TCMalloc --with-tcmalloc=$with_tcmalloc $have_tcmalloc
44012 UMem --with-umem=$with_umem $have_umem
44013
44014 Delegate library configuration:
44015 BZLIB --with-bzlib=$with_bzlib $have_bzlib
44016 Autotrace --with-autotrace=$with_autotrace $have_autotrace
44017 DJVU --with-djvu=$with_djvu $have_djvu
44018 DPS --with-dps=$with_dps $have_dps
44019 FFTW --with-fftw=$with_fftw $have_fftw
44020 FLIF --with-flif=$with_flif $have_flif
44021 FlashPIX --with-fpx=$with_fpx $have_fpx
44022 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
44023 FreeType --with-freetype=$with_freetype $have_freetype
44024 Ghostscript lib --with-gslib=$with_gslib $have_gslib
44025 Graphviz --with-gvc=$with_gvc $have_gvc
44026 HEIC --with-heic=$with_heic $have_heic
44027 JBIG --with-jbig=$with_jbig $have_jbig
44028 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
44029 JPEG XL --with-jxl=$with_jxl $have_jxl
44030 DMR --with-dmr=$with_dmr $have_dmr
44031 LCMS --with-lcms=$with_lcms $have_lcms
44032 LQR --with-lqr=$with_lqr $have_lqr
44033 LTDL --with-ltdl=$with_ltdl $have_ltdl
44034 LZMA --with-lzma=$with_lzma $have_lzma
44035 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
44036 OpenEXR --with-openexr=$with_openexr $have_openexr
44037 OpenJP2 --with-openjp2=$with_openjp2 $have_openjp2
44038 PANGO --with-pango=$with_pango $have_pangocairo
44039 PERL --with-perl=$with_perl $have_perl
44040 PNG --with-png=$with_png $have_png
44041 RAQM --with-raqm=$with_raqm $have_raqm
44042 RAW --with-raw=$with_raw $have_raw
44043 RSVG --with-rsvg=$with_rsvg $have_rsvg
44044 TIFF --with-tiff=$with_tiff $have_tiff
44045 UHDR --with-uhdr=$with_uhdr $have_uhdr
44046 WEBP --with-webp=$with_webp $have_webp
44047 WMF --with-wmf=$with_wmf $have_wmf
44048 X11 --with-x=$with_x $have_x
44049 XML --with-xml=$with_xml $have_xml
44050 ZIP --with-zip=$with_zip $have_zip
44051 ZLIB --with-zlib=$with_zlib $have_zlib
44052 ZSTD --with-zstd=$with_zstd $have_zstd
44053
44054 Delegate program configuration:
44055 GhostPCL None $PCLDelegate ($PCLVersion)
44056 GhostXPS None $XPSDelegate ($XPSVersion)
44057 Ghostscript None $PSDelegate ($GSVersion)
44058
44059 Font configuration:
44060 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
44061 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
44062 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
44063 URW OTF fonts --with-urw-base35-font-dir=$with_urw_base35_font_dir $result_urw_base35_font_dir
44064 URW Type1 fonts --with-urw-base35-type1-font-dir=$with_urw_base35_type1_font_dir $result_urw_base35_type1_font_dir
44065 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
44066
44067 X11 configuration:
44068 X_CFLAGS = $X_CFLAGS
44069 X_PRE_LIBS = $X_PRE_LIBS
44070 X_LIBS = $X_LIBS
44071 X_EXTRA_LIBS = $X_EXTRA_LIBS
44072
44073 Options used to compile and link:
44074 PREFIX = $PREFIX_DIR
44075 EXEC-PREFIX = $EXEC_PREFIX_DIR
44076 VERSION = $PACKAGE_VERSION
44077 CC = $CC
44078 CFLAGS = $CFLAGS
44079 CPPFLAGS = $CPPFLAGS
44080 PCFLAGS = $PCFLAGS
44081 DEFS = $DEFS
44082 LDFLAGS = $LDFLAGS
44083 LIBS = $MAGICK_DEP_LIBS $MAGICK_EXTRA_DEP_LIBS
44084 CXX = $CXX
44085 CXXFLAGS = $CXXFLAGS
44086 FEATURES = $MAGICK_FEATURES
44087 DELEGATES = $MAGICK_DELEGATES
44088 ==============================================================================
44089 " >&6;}
44090