Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for ImageMagick 7.1.2-25.
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-25'
618 PACKAGE_STRING='ImageMagick 7.1.2-25'
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-25 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-25:";;
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-25
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-25, 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 auto const *utf8 = u8"UTF-8 string \u2500";
4108 char16_t const *utf16 = u"UTF-16 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-25'
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=25
5389
5390 MAGICK_VERSION=7.1.2-25
5391
5392 MAGICK_GIT_REVISION=20260604
5393
5394
5395 # Substitute library versioning
5396 MAGICK_LIBRARY_CURRENT=10
5397 MAGICK_LIBRARY_REVISION=2
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=25
5415
5416 if test "n" = 'y'; then
5417 PACKAGE_VERSION_ADDENDUM='-25 (Beta)'
5418 else
5419 PACKAGE_VERSION_ADDENDUM=-25
5420 fi
5421
5422 PACKAGE_LIB_VERSION=0x712
5423
5424 PACKAGE_LIB_VERSION_NUMBER=7,1,2,25
5425
5426 PACKAGE_RELEASE_DATE=2026-06-04
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 $CC option to enable large file support" >&5
12132 printf %s "checking for $CC option to enable large file support... " >&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_CC="$CC"
12138 ac_opt_found=no
12139 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
12140 if test x"$ac_opt" != x"none needed"
12141 then :
12142 CC="$ac_save_CC $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 CC="$CC -DFTYPE=ino_t"
12172 if ac_fn_c_try_compile "$LINENO"
12173 then :
12174
12175 else case e in #(
12176 e) CC="$CC -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 CC="$ac_save_CC"
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 "-n32") :
12217 CC="$CC -n32" ;; #(
12218 *) :
12219 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
12220 esac
12221
12222 if test "$enable_year2038" != no
12223 then :
12224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
12225 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
12226 if test ${ac_cv_sys_year2038_opts+y}
12227 then :
12228 printf %s "(cached) " >&6
12229 else case e in #(
12230 e) ac_save_CPPFLAGS="$CPPFLAGS"
12231 ac_opt_found=no
12232 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
12233 if test x"$ac_opt" != x"none needed"
12234 then :
12235 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
12236 fi
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12239
12240 #include <time.h>
12241 /* Check that time_t can represent 2**32 - 1 correctly. */
12242 #define LARGE_TIME_T \\
12243 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
12244 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
12245 && LARGE_TIME_T % 65537 == 0)
12246 ? 1 : -1];
12247
12248 int
12249 main (void)
12250 {
12251
12252 ;
12253 return 0;
12254 }
12255 _ACEOF
12256 if ac_fn_c_try_compile "$LINENO"
12257 then :
12258 ac_cv_sys_year2038_opts="$ac_opt"
12259 ac_opt_found=yes
12260 fi
12261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12262 test $ac_opt_found = no || break
12263 done
12264 CPPFLAGS="$ac_save_CPPFLAGS"
12265 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
12266 esac
12267 fi
12268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
12269 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
12270
12271 ac_have_year2038=yes
12272 case $ac_cv_sys_year2038_opts in #(
12273 "none needed") :
12274 ;; #(
12275 "support not detected") :
12276 ac_have_year2038=no ;; #(
12277 "-D_TIME_BITS=64") :
12278
12279 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
12280 ;; #(
12281 "-D__MINGW_USE_VC2005_COMPAT") :
12282
12283 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
12284 ;; #(
12285 "-U_USE_32_BIT_TIME_T"*) :
12286 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12287 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12288 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
12289 will stop working after mid-January 2038. Remove
12290 _USE_32BIT_TIME_T from the compiler flags.
12291 See 'config.log' for more details" "$LINENO" 5; } ;; #(
12292 *) :
12293 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
12294 esac
12295
12296 fi
12297
12298 fi
12299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
12300 printf %s "checking for declarations of fseeko and ftello... " >&6; }
12301 if test ${ac_cv_func_fseeko_ftello+y}
12302 then :
12303 printf %s "(cached) " >&6
12304 else case e in #(
12305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306 /* end confdefs.h. */
12307
12308 #if defined __hpux && !defined _LARGEFILE_SOURCE
12309 # include <limits.h>
12310 # if LONG_MAX >> 31 == 0
12311 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
12312 # endif
12313 #endif
12314 #include <sys/types.h> /* for off_t */
12315 #include <stdio.h>
12316
12317 int
12318 main (void)
12319 {
12320
12321 int (*fp1) (FILE *, off_t, int) = fseeko;
12322 off_t (*fp2) (FILE *) = ftello;
12323 return fseeko (stdin, 0, 0)
12324 && fp1 (stdin, 0, 0)
12325 && ftello (stdin) >= 0
12326 && fp2 (stdin) >= 0;
12327
12328 ;
12329 return 0;
12330 }
12331 _ACEOF
12332 if ac_fn_c_try_compile "$LINENO"
12333 then :
12334 ac_cv_func_fseeko_ftello=yes
12335 else case e in #(
12336 e) ac_save_CPPFLAGS="$CPPFLAGS"
12337 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12340
12341 #if defined __hpux && !defined _LARGEFILE_SOURCE
12342 # include <limits.h>
12343 # if LONG_MAX >> 31 == 0
12344 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
12345 # endif
12346 #endif
12347 #include <sys/types.h> /* for off_t */
12348 #include <stdio.h>
12349
12350 int
12351 main (void)
12352 {
12353
12354 int (*fp1) (FILE *, off_t, int) = fseeko;
12355 off_t (*fp2) (FILE *) = ftello;
12356 return fseeko (stdin, 0, 0)
12357 && fp1 (stdin, 0, 0)
12358 && ftello (stdin) >= 0
12359 && fp2 (stdin) >= 0;
12360
12361 ;
12362 return 0;
12363 }
12364 _ACEOF
12365 if ac_fn_c_try_compile "$LINENO"
12366 then :
12367 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
12368 else case e in #(
12369 e) ac_cv_func_fseeko_ftello=no ;;
12370 esac
12371 fi
12372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12373 esac
12374 fi
12375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12376 esac
12377 fi
12378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
12379 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
12380 if test "$ac_cv_func_fseeko_ftello" != no
12381 then :
12382
12383 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
12384
12385 fi
12386 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
12387 then :
12388
12389 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
12390
12391 fi
12392
12393 LFS_CPPFLAGS=''
12394 if test "$enable_largefile" != no; then
12395 case $ac_cv_sys_file_offset_bits in
12396 no)
12397 # nothing to do here as the host supports LFS fine
12398 ;;
12399 unknown)
12400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
12401 printf %s "checking for native large file support... " >&6; }
12402 if test "$cross_compiling" = yes
12403 then :
12404 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12405 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12406 as_fn_error $? "cannot run test program while cross compiling
12407 See 'config.log' for more details" "$LINENO" 5; }
12408 else case e in #(
12409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h. */
12411 #include <unistd.h>
12412 #include <stdlib.h>
12413 int main () {
12414 exit(!(sizeof(off_t) == 8));
12415 }
12416 int
12417 main (void)
12418 {
12419
12420 ;
12421 return 0;
12422 }
12423 _ACEOF
12424 if ac_fn_c_try_run "$LINENO"
12425 then :
12426 ac_cv_sys_file_offset_bits=64; printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
12427
12428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12429 printf "%s\n" "yes" >&6; }
12430 else case e in #(
12431 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 printf "%s\n" "no" >&6; } ;;
12433 esac
12434 fi
12435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12436 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12437 esac
12438 fi
12439
12440 ;;
12441 *)
12442 if test "$ac_cv_sys_file_offset_bits" = ''; then
12443 ac_cv_sys_file_offset_bits=64;
12444 fi
12445 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
12446 ;;
12447 esac
12448 if test "$ac_cv_sys_large_files" != 'no'; then
12449 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
12450 fi
12451 if test "$ac_cv_sys_largefile_source" != 'no'; then
12452 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
12453 fi
12454 fi
12455
12456
12457 #
12458 # Check for sendfile support
12459 #
12460 ########
12461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Linux compatible sendfile()" >&5
12462 printf %s "checking Linux compatible sendfile()... " >&6; }
12463 if test ${ac_cv_have_linux_sendfile+y}
12464 then :
12465 printf %s "(cached) " >&6
12466 else case e in #(
12467 e)
12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h. */
12470
12471 #undef _FILE_OFFSET_BITS
12472 #include <sys/types.h>
12473 #include <sys/socket.h>
12474 #include <sys/sendfile.h>
12475
12476 int
12477 main (void)
12478 {
12479
12480 sendfile(0, 0, (void *) 0, 0);
12481
12482 ;
12483 return 0;
12484 }
12485 _ACEOF
12486 if ac_fn_c_try_compile "$LINENO"
12487 then :
12488
12489 ac_cv_have_linux_sendfile=yes
12490
12491 else case e in #(
12492 e)
12493 ac_cv_have_linux_sendfile=no
12494 ;;
12495 esac
12496 fi
12497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12498 esac
12499 fi
12500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_linux_sendfile" >&5
12501 printf "%s\n" "$ac_cv_have_linux_sendfile" >&6; }
12502 if test "$ac_cv_have_linux_sendfile" = 'yes'; then
12503
12504 printf "%s\n" "#define HAVE_LINUX_SENDFILE 1" >>confdefs.h
12505
12506 fi
12507
12508 #
12509 # Set SETJMP_IS_THREAD_SAFE define.
12510 #
12511 case "${host_os}" in
12512 solaris2* ) ;;
12513 *)
12514 printf "%s\n" "#define SETJMP_IS_THREAD_SAFE 1" >>confdefs.h
12515 ;;
12516 esac
12517
12518 # Configure libtool
12519 : ${AR_FLAGS=cr}
12520 case `pwd` in
12521 *\ * | *\ *)
12522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12523 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12524 esac
12525
12526
12527
12528 macro_version='2.5.4'
12529 macro_revision='2.5.4'
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544 ltmain=$ac_aux_dir/ltmain.sh
12545
12546 # Backslashify metacharacters that are still active within
12547 # double-quoted strings.
12548 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12549
12550 # Same as above, but do not quote variable references.
12551 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12552
12553 # Sed substitution to delay expansion of an escaped shell variable in a
12554 # double_quote_subst'ed string.
12555 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12556
12557 # Sed substitution to delay expansion of an escaped single quote.
12558 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12559
12560 # Sed substitution to avoid accidental globbing in evaled expressions
12561 no_glob_subst='s/\*/\\\*/g'
12562
12563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12564 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12565 if test ${lt_cv_path_NM+y}
12566 then :
12567 printf %s "(cached) " >&6
12568 else case e in #(
12569 e) if test -n "$NM"; then
12570 # Let the user override the test.
12571 lt_cv_path_NM=$NM
12572 else
12573 lt_nm_to_check=${ac_tool_prefix}nm
12574 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12575 lt_nm_to_check="$lt_nm_to_check nm"
12576 fi
12577 for lt_tmp_nm in $lt_nm_to_check; do
12578 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12579 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12580 IFS=$lt_save_ifs
12581 test -z "$ac_dir" && ac_dir=.
12582 tmp_nm=$ac_dir/$lt_tmp_nm
12583 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
12584 # Check to see if the nm accepts a BSD-compat flag.
12585 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
12586 # nm: unknown option "B" ignored
12587 # Tru64's nm complains that /dev/null is an invalid object file
12588 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
12589 case $build_os in
12590 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
12591 *) lt_bad_file=/dev/null ;;
12592 esac
12593 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
12594 *$lt_bad_file* | *'Invalid file or object type'*)
12595 lt_cv_path_NM="$tmp_nm -B"
12596 break 2
12597 ;;
12598 *)
12599 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
12600 */dev/null*)
12601 lt_cv_path_NM="$tmp_nm -p"
12602 break 2
12603 ;;
12604 *)
12605 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12606 continue # so that we can try to find one that supports BSD flags
12607 ;;
12608 esac
12609 ;;
12610 esac
12611 fi
12612 done
12613 IFS=$lt_save_ifs
12614 done
12615 : ${lt_cv_path_NM=no}
12616 fi ;;
12617 esac
12618 fi
12619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12620 printf "%s\n" "$lt_cv_path_NM" >&6; }
12621 if test no != "$lt_cv_path_NM"; then
12622 NM=$lt_cv_path_NM
12623 else
12624 # Didn't find any BSD compatible name lister, look for dumpbin.
12625 if test -n "$DUMPBIN"; then :
12626 # Let the user override the test.
12627 else
12628 if test -n "$ac_tool_prefix"; then
12629 for ac_prog in dumpbin "link -dump"
12630 do
12631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634 printf %s "checking for $ac_word... " >&6; }
12635 if test ${ac_cv_prog_DUMPBIN+y}
12636 then :
12637 printf %s "(cached) " >&6
12638 else case e in #(
12639 e) if test -n "$DUMPBIN"; then
12640 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12641 else
12642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12643 for as_dir in $PATH
12644 do
12645 IFS=$as_save_IFS
12646 case $as_dir in #(((
12647 '') as_dir=./ ;;
12648 */) ;;
12649 *) as_dir=$as_dir/ ;;
12650 esac
12651 for ac_exec_ext in '' $ac_executable_extensions; do
12652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12653 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12655 break 2
12656 fi
12657 done
12658 done
12659 IFS=$as_save_IFS
12660
12661 fi ;;
12662 esac
12663 fi
12664 DUMPBIN=$ac_cv_prog_DUMPBIN
12665 if test -n "$DUMPBIN"; then
12666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12667 printf "%s\n" "$DUMPBIN" >&6; }
12668 else
12669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670 printf "%s\n" "no" >&6; }
12671 fi
12672
12673
12674 test -n "$DUMPBIN" && break
12675 done
12676 fi
12677 if test -z "$DUMPBIN"; then
12678 ac_ct_DUMPBIN=$DUMPBIN
12679 for ac_prog in dumpbin "link -dump"
12680 do
12681 # Extract the first word of "$ac_prog", so it can be a program name with args.
12682 set dummy $ac_prog; ac_word=$2
12683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12684 printf %s "checking for $ac_word... " >&6; }
12685 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
12686 then :
12687 printf %s "(cached) " >&6
12688 else case e in #(
12689 e) if test -n "$ac_ct_DUMPBIN"; then
12690 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12691 else
12692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12693 for as_dir in $PATH
12694 do
12695 IFS=$as_save_IFS
12696 case $as_dir in #(((
12697 '') as_dir=./ ;;
12698 */) ;;
12699 *) as_dir=$as_dir/ ;;
12700 esac
12701 for ac_exec_ext in '' $ac_executable_extensions; do
12702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12703 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12705 break 2
12706 fi
12707 done
12708 done
12709 IFS=$as_save_IFS
12710
12711 fi ;;
12712 esac
12713 fi
12714 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12715 if test -n "$ac_ct_DUMPBIN"; then
12716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12717 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
12718 else
12719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720 printf "%s\n" "no" >&6; }
12721 fi
12722
12723
12724 test -n "$ac_ct_DUMPBIN" && break
12725 done
12726
12727 if test "x$ac_ct_DUMPBIN" = x; then
12728 DUMPBIN=":"
12729 else
12730 case $cross_compiling:$ac_tool_warned in
12731 yes:)
12732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12733 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12734 ac_tool_warned=yes ;;
12735 esac
12736 DUMPBIN=$ac_ct_DUMPBIN
12737 fi
12738 fi
12739
12740 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
12741 *COFF*)
12742 DUMPBIN="$DUMPBIN -symbols -headers"
12743 ;;
12744 *)
12745 DUMPBIN=:
12746 ;;
12747 esac
12748 fi
12749
12750 if test : != "$DUMPBIN"; then
12751 NM=$DUMPBIN
12752 fi
12753 fi
12754 test -z "$NM" && NM=nm
12755
12756
12757
12758
12759
12760
12761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12762 printf %s "checking the name lister ($NM) interface... " >&6; }
12763 if test ${lt_cv_nm_interface+y}
12764 then :
12765 printf %s "(cached) " >&6
12766 else case e in #(
12767 e) lt_cv_nm_interface="BSD nm"
12768 echo "int some_variable = 0;" > conftest.$ac_ext
12769 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12770 (eval "$ac_compile" 2>conftest.err)
12771 cat conftest.err >&5
12772 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12773 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12774 cat conftest.err >&5
12775 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12776 cat conftest.out >&5
12777 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12778 lt_cv_nm_interface="MS dumpbin"
12779 fi
12780 rm -f conftest* ;;
12781 esac
12782 fi
12783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12784 printf "%s\n" "$lt_cv_nm_interface" >&6; }
12785
12786 # find the maximum length of command line arguments
12787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12788 printf %s "checking the maximum length of command line arguments... " >&6; }
12789 if test ${lt_cv_sys_max_cmd_len+y}
12790 then :
12791 printf %s "(cached) " >&6
12792 else case e in #(
12793 e) i=0
12794 teststring=ABCD
12795
12796 case $build_os in
12797 msdosdjgpp*)
12798 # On DJGPP, this test can blow up pretty badly due to problems in libc
12799 # (any single argument exceeding 2000 bytes causes a buffer overrun
12800 # during glob expansion). Even if it were fixed, the result of this
12801 # check would be larger than it should be.
12802 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12803 ;;
12804
12805 gnu* | ironclad*)
12806 # Under GNU Hurd and Ironclad, this test is not required because there
12807 # is no limit to the length of command line arguments.
12808 # Libtool will interpret -1 as no limit whatsoever
12809 lt_cv_sys_max_cmd_len=-1;
12810 ;;
12811
12812 cygwin* | mingw* | windows* | cegcc*)
12813 # On Win9x/ME, this test blows up -- it succeeds, but takes
12814 # about 5 minutes as the teststring grows exponentially.
12815 # Worse, since 9x/ME are not pre-emptively multitasking,
12816 # you end up with a "frozen" computer, even though with patience
12817 # the test eventually succeeds (with a max line length of 256k).
12818 # Instead, let's just punt: use the minimum linelength reported by
12819 # all of the supported platforms: 8192 (on NT/2K/XP).
12820 lt_cv_sys_max_cmd_len=8192;
12821 ;;
12822
12823 mint*)
12824 # On MiNT this can take a long time and run out of memory.
12825 lt_cv_sys_max_cmd_len=8192;
12826 ;;
12827
12828 amigaos*)
12829 # On AmigaOS with pdksh, this test takes hours, literally.
12830 # So we just punt and use a minimum line length of 8192.
12831 lt_cv_sys_max_cmd_len=8192;
12832 ;;
12833
12834 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12835 # This has been around since 386BSD, at least. Likely further.
12836 if test -x /sbin/sysctl; then
12837 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12838 elif test -x /usr/sbin/sysctl; then
12839 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12840 else
12841 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12842 fi
12843 # And add a safety zone
12844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12846 ;;
12847
12848 interix*)
12849 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12850 lt_cv_sys_max_cmd_len=196608
12851 ;;
12852
12853 os2*)
12854 # The test takes a long time on OS/2.
12855 lt_cv_sys_max_cmd_len=8192
12856 ;;
12857
12858 osf*)
12859 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12860 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12861 # nice to cause kernel panics so lets avoid the loop below.
12862 # First set a reasonable default.
12863 lt_cv_sys_max_cmd_len=16384
12864 #
12865 if test -x /sbin/sysconfig; then
12866 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12867 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12868 esac
12869 fi
12870 ;;
12871 sco3.2v5*)
12872 lt_cv_sys_max_cmd_len=102400
12873 ;;
12874 sysv5* | sco5v6* | sysv4.2uw2*)
12875 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12876 if test -n "$kargmax"; then
12877 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
12878 else
12879 lt_cv_sys_max_cmd_len=32768
12880 fi
12881 ;;
12882 *)
12883 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12884 if test -n "$lt_cv_sys_max_cmd_len" && \
12885 test undefined != "$lt_cv_sys_max_cmd_len"; then
12886 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12887 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12888 else
12889 # Make teststring a little bigger before we do anything with it.
12890 # a 1K string should be a reasonable start.
12891 for i in 1 2 3 4 5 6 7 8; do
12892 teststring=$teststring$teststring
12893 done
12894 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12895 # If test is not a shell built-in, we'll probably end up computing a
12896 # maximum length that is only half of the actual maximum length, but
12897 # we can't tell.
12898 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12899 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12900 test 17 != "$i" # 1/2 MB should be enough
12901 do
12902 i=`expr $i + 1`
12903 teststring=$teststring$teststring
12904 done
12905 # Only check the string length outside the loop.
12906 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12907 teststring=
12908 # Add a significant safety factor because C++ compilers can tack on
12909 # massive amounts of additional arguments before passing them to the
12910 # linker. It appears as though 1/2 is a usable value.
12911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12912 fi
12913 ;;
12914 esac
12915 ;;
12916 esac
12917 fi
12918
12919 if test -n "$lt_cv_sys_max_cmd_len"; then
12920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12921 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12922 else
12923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12924 printf "%s\n" "none" >&6; }
12925 fi
12926 max_cmd_len=$lt_cv_sys_max_cmd_len
12927
12928
12929
12930
12931
12932
12933 : ${CP="cp -f"}
12934 : ${MV="mv -f"}
12935 : ${RM="rm -f"}
12936
12937 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12938 lt_unset=unset
12939 else
12940 lt_unset=false
12941 fi
12942
12943
12944
12945
12946
12947 # test EBCDIC or ASCII
12948 case `echo X|tr X '\101'` in
12949 A) # ASCII based system
12950 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12951 lt_SP2NL='tr \040 \012'
12952 lt_NL2SP='tr \015\012 \040\040'
12953 ;;
12954 *) # EBCDIC based system
12955 lt_SP2NL='tr \100 \n'
12956 lt_NL2SP='tr \r\n \100\100'
12957 ;;
12958 esac
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12969 printf %s "checking how to convert $build file names to $host format... " >&6; }
12970 if test ${lt_cv_to_host_file_cmd+y}
12971 then :
12972 printf %s "(cached) " >&6
12973 else case e in #(
12974 e) case $host in
12975 *-*-mingw* )
12976 case $build in
12977 *-*-mingw* | *-*-windows* ) # actually msys
12978 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12979 ;;
12980 *-*-cygwin* )
12981 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12982 ;;
12983 * ) # otherwise, assume *nix
12984 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12985 ;;
12986 esac
12987 ;;
12988 *-*-cygwin* )
12989 case $build in
12990 *-*-mingw* | *-*-windows* ) # actually msys
12991 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12992 ;;
12993 *-*-cygwin* )
12994 lt_cv_to_host_file_cmd=func_convert_file_noop
12995 ;;
12996 * ) # otherwise, assume *nix
12997 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12998 ;;
12999 esac
13000 ;;
13001 * ) # unhandled hosts (and "normal" native builds)
13002 lt_cv_to_host_file_cmd=func_convert_file_noop
13003 ;;
13004 esac
13005 ;;
13006 esac
13007 fi
13008
13009 to_host_file_cmd=$lt_cv_to_host_file_cmd
13010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
13011 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
13012
13013
13014
13015
13016
13017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
13018 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
13019 if test ${lt_cv_to_tool_file_cmd+y}
13020 then :
13021 printf %s "(cached) " >&6
13022 else case e in #(
13023 e) #assume ordinary cross tools, or native build.
13024 lt_cv_to_tool_file_cmd=func_convert_file_noop
13025 case $host in
13026 *-*-mingw* | *-*-windows* )
13027 case $build in
13028 *-*-mingw* | *-*-windows* ) # actually msys
13029 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
13030 ;;
13031 esac
13032 ;;
13033 esac
13034 ;;
13035 esac
13036 fi
13037
13038 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
13040 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
13041
13042
13043
13044
13045
13046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13047 printf %s "checking for $LD option to reload object files... " >&6; }
13048 if test ${lt_cv_ld_reload_flag+y}
13049 then :
13050 printf %s "(cached) " >&6
13051 else case e in #(
13052 e) lt_cv_ld_reload_flag='-r' ;;
13053 esac
13054 fi
13055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13056 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
13057 reload_flag=$lt_cv_ld_reload_flag
13058 case $reload_flag in
13059 "" | " "*) ;;
13060 *) reload_flag=" $reload_flag" ;;
13061 esac
13062 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13063 case $host_os in
13064 cygwin* | mingw* | windows* | pw32* | cegcc*)
13065 if test yes != "$GCC"; then
13066 reload_cmds=false
13067 fi
13068 ;;
13069 darwin*)
13070 if test yes = "$GCC"; then
13071 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
13072 else
13073 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13074 fi
13075 ;;
13076 esac
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086 # Extract the first word of "file", so it can be a program name with args.
13087 set dummy file; ac_word=$2
13088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13089 printf %s "checking for $ac_word... " >&6; }
13090 if test ${ac_cv_prog_FILECMD+y}
13091 then :
13092 printf %s "(cached) " >&6
13093 else case e in #(
13094 e) if test -n "$FILECMD"; then
13095 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
13096 else
13097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098 for as_dir in $PATH
13099 do
13100 IFS=$as_save_IFS
13101 case $as_dir in #(((
13102 '') as_dir=./ ;;
13103 */) ;;
13104 *) as_dir=$as_dir/ ;;
13105 esac
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13108 ac_cv_prog_FILECMD="file"
13109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13110 break 2
13111 fi
13112 done
13113 done
13114 IFS=$as_save_IFS
13115
13116 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
13117 fi ;;
13118 esac
13119 fi
13120 FILECMD=$ac_cv_prog_FILECMD
13121 if test -n "$FILECMD"; then
13122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
13123 printf "%s\n" "$FILECMD" >&6; }
13124 else
13125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126 printf "%s\n" "no" >&6; }
13127 fi
13128
13129
13130
13131
13132
13133
13134
13135
13136 if test -n "$ac_tool_prefix"; then
13137 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13138 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13140 printf %s "checking for $ac_word... " >&6; }
13141 if test ${ac_cv_prog_OBJDUMP+y}
13142 then :
13143 printf %s "(cached) " >&6
13144 else case e in #(
13145 e) if test -n "$OBJDUMP"; then
13146 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13147 else
13148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13149 for as_dir in $PATH
13150 do
13151 IFS=$as_save_IFS
13152 case $as_dir in #(((
13153 '') as_dir=./ ;;
13154 */) ;;
13155 *) as_dir=$as_dir/ ;;
13156 esac
13157 for ac_exec_ext in '' $ac_executable_extensions; do
13158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13159 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13161 break 2
13162 fi
13163 done
13164 done
13165 IFS=$as_save_IFS
13166
13167 fi ;;
13168 esac
13169 fi
13170 OBJDUMP=$ac_cv_prog_OBJDUMP
13171 if test -n "$OBJDUMP"; then
13172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13173 printf "%s\n" "$OBJDUMP" >&6; }
13174 else
13175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176 printf "%s\n" "no" >&6; }
13177 fi
13178
13179
13180 fi
13181 if test -z "$ac_cv_prog_OBJDUMP"; then
13182 ac_ct_OBJDUMP=$OBJDUMP
13183 # Extract the first word of "objdump", so it can be a program name with args.
13184 set dummy objdump; ac_word=$2
13185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13186 printf %s "checking for $ac_word... " >&6; }
13187 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
13188 then :
13189 printf %s "(cached) " >&6
13190 else case e in #(
13191 e) if test -n "$ac_ct_OBJDUMP"; then
13192 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13193 else
13194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13195 for as_dir in $PATH
13196 do
13197 IFS=$as_save_IFS
13198 case $as_dir in #(((
13199 '') as_dir=./ ;;
13200 */) ;;
13201 *) as_dir=$as_dir/ ;;
13202 esac
13203 for ac_exec_ext in '' $ac_executable_extensions; do
13204 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13205 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13207 break 2
13208 fi
13209 done
13210 done
13211 IFS=$as_save_IFS
13212
13213 fi ;;
13214 esac
13215 fi
13216 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13217 if test -n "$ac_ct_OBJDUMP"; then
13218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13219 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
13220 else
13221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222 printf "%s\n" "no" >&6; }
13223 fi
13224
13225 if test "x$ac_ct_OBJDUMP" = x; then
13226 OBJDUMP="false"
13227 else
13228 case $cross_compiling:$ac_tool_warned in
13229 yes:)
13230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13231 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13232 ac_tool_warned=yes ;;
13233 esac
13234 OBJDUMP=$ac_ct_OBJDUMP
13235 fi
13236 else
13237 OBJDUMP="$ac_cv_prog_OBJDUMP"
13238 fi
13239
13240 test -z "$OBJDUMP" && OBJDUMP=objdump
13241
13242
13243
13244
13245
13246
13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13248 printf %s "checking how to recognize dependent libraries... " >&6; }
13249 if test ${lt_cv_deplibs_check_method+y}
13250 then :
13251 printf %s "(cached) " >&6
13252 else case e in #(
13253 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
13254 lt_cv_file_magic_test_file=
13255 lt_cv_deplibs_check_method='unknown'
13256 # Need to set the preceding variable on all platforms that support
13257 # interlibrary dependencies.
13258 # 'none' -- dependencies not supported.
13259 # 'unknown' -- same as none, but documents that we really don't know.
13260 # 'pass_all' -- all dependencies passed with no checks.
13261 # 'file_magic [[regex]]' -- check by looking for files in library path
13262 # that responds to the $file_magic_cmd with a given extended regex.
13263 # If you have 'file' or equivalent on your system and you're not sure
13264 # whether 'pass_all' will *always* work, you probably want this one.
13265
13266 case $host_os in
13267 aix[4-9]*)
13268 lt_cv_deplibs_check_method=pass_all
13269 ;;
13270
13271 beos*)
13272 lt_cv_deplibs_check_method=pass_all
13273 ;;
13274
13275 bsdi[45]*)
13276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13277 lt_cv_file_magic_cmd='$FILECMD -L'
13278 lt_cv_file_magic_test_file=/shlib/libc.so
13279 ;;
13280
13281 cygwin*)
13282 # func_win32_libid is a shell function defined in ltmain.sh
13283 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13284 lt_cv_file_magic_cmd='func_win32_libid'
13285 ;;
13286
13287 mingw* | windows* | pw32*)
13288 # Base MSYS/MinGW do not provide the 'file' command needed by
13289 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13290 # unless we find 'file', for example because we are cross-compiling.
13291 if ( file / ) >/dev/null 2>&1; then
13292 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13293 lt_cv_file_magic_cmd='func_win32_libid'
13294 else
13295 # Keep this pattern in sync with the one in func_win32_libid.
13296 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
13297 lt_cv_file_magic_cmd='$OBJDUMP -f'
13298 fi
13299 ;;
13300
13301 cegcc*)
13302 # use the weaker test based on 'objdump'. See mingw*.
13303 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13304 lt_cv_file_magic_cmd='$OBJDUMP -f'
13305 ;;
13306
13307 darwin* | rhapsody*)
13308 lt_cv_deplibs_check_method=pass_all
13309 ;;
13310
13311 freebsd* | dragonfly* | midnightbsd*)
13312 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13313 case $host_cpu in
13314 i*86 )
13315 # Not sure whether the presence of OpenBSD here was a mistake.
13316 # Let's accept both of them until this is cleared up.
13317 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13318 lt_cv_file_magic_cmd=$FILECMD
13319 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13320 ;;
13321 esac
13322 else
13323 lt_cv_deplibs_check_method=pass_all
13324 fi
13325 ;;
13326
13327 haiku*)
13328 lt_cv_deplibs_check_method=pass_all
13329 ;;
13330
13331 hpux10.20* | hpux11*)
13332 lt_cv_file_magic_cmd=$FILECMD
13333 case $host_cpu in
13334 ia64*)
13335 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13336 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13337 ;;
13338 hppa*64*)
13339 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]'
13340 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13341 ;;
13342 *)
13343 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13344 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13345 ;;
13346 esac
13347 ;;
13348
13349 interix[3-9]*)
13350 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13352 ;;
13353
13354 irix5* | irix6* | nonstopux*)
13355 case $LD in
13356 *-32|*"-32 ") libmagic=32-bit;;
13357 *-n32|*"-n32 ") libmagic=N32;;
13358 *-64|*"-64 ") libmagic=64-bit;;
13359 *) libmagic=never-match;;
13360 esac
13361 lt_cv_deplibs_check_method=pass_all
13362 ;;
13363
13364 # This must be glibc/ELF.
13365 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13366 lt_cv_deplibs_check_method=pass_all
13367 ;;
13368
13369 *-mlibc)
13370 lt_cv_deplibs_check_method=pass_all
13371 ;;
13372
13373 netbsd* | netbsdelf*-gnu)
13374 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13376 else
13377 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13378 fi
13379 ;;
13380
13381 newos6*)
13382 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13383 lt_cv_file_magic_cmd=$FILECMD
13384 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13385 ;;
13386
13387 *nto* | *qnx*)
13388 lt_cv_deplibs_check_method=pass_all
13389 ;;
13390
13391 openbsd*)
13392 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13394 else
13395 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13396 fi
13397 ;;
13398
13399 osf3* | osf4* | osf5*)
13400 lt_cv_deplibs_check_method=pass_all
13401 ;;
13402
13403 rdos*)
13404 lt_cv_deplibs_check_method=pass_all
13405 ;;
13406
13407 serenity*)
13408 lt_cv_deplibs_check_method=pass_all
13409 ;;
13410
13411 solaris*)
13412 lt_cv_deplibs_check_method=pass_all
13413 ;;
13414
13415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13416 lt_cv_deplibs_check_method=pass_all
13417 ;;
13418
13419 sysv4 | sysv4.3*)
13420 case $host_vendor in
13421 motorola)
13422 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]'
13423 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13424 ;;
13425 ncr)
13426 lt_cv_deplibs_check_method=pass_all
13427 ;;
13428 sequent)
13429 lt_cv_file_magic_cmd='/bin/file'
13430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13431 ;;
13432 sni)
13433 lt_cv_file_magic_cmd='/bin/file'
13434 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13435 lt_cv_file_magic_test_file=/lib/libc.so
13436 ;;
13437 siemens)
13438 lt_cv_deplibs_check_method=pass_all
13439 ;;
13440 pc)
13441 lt_cv_deplibs_check_method=pass_all
13442 ;;
13443 esac
13444 ;;
13445
13446 tpf*)
13447 lt_cv_deplibs_check_method=pass_all
13448 ;;
13449 os2*)
13450 lt_cv_deplibs_check_method=pass_all
13451 ;;
13452 esac
13453 ;;
13454 esac
13455 fi
13456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13457 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
13458
13459 file_magic_glob=
13460 want_nocaseglob=no
13461 if test "$build" = "$host"; then
13462 case $host_os in
13463 mingw* | windows* | pw32*)
13464 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13465 want_nocaseglob=yes
13466 else
13467 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13468 fi
13469 ;;
13470 esac
13471 fi
13472
13473 file_magic_cmd=$lt_cv_file_magic_cmd
13474 deplibs_check_method=$lt_cv_deplibs_check_method
13475 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498 if test -n "$ac_tool_prefix"; then
13499 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13500 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13502 printf %s "checking for $ac_word... " >&6; }
13503 if test ${ac_cv_prog_DLLTOOL+y}
13504 then :
13505 printf %s "(cached) " >&6
13506 else case e in #(
13507 e) if test -n "$DLLTOOL"; then
13508 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13509 else
13510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13511 for as_dir in $PATH
13512 do
13513 IFS=$as_save_IFS
13514 case $as_dir in #(((
13515 '') as_dir=./ ;;
13516 */) ;;
13517 *) as_dir=$as_dir/ ;;
13518 esac
13519 for ac_exec_ext in '' $ac_executable_extensions; do
13520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13521 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13523 break 2
13524 fi
13525 done
13526 done
13527 IFS=$as_save_IFS
13528
13529 fi ;;
13530 esac
13531 fi
13532 DLLTOOL=$ac_cv_prog_DLLTOOL
13533 if test -n "$DLLTOOL"; then
13534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13535 printf "%s\n" "$DLLTOOL" >&6; }
13536 else
13537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538 printf "%s\n" "no" >&6; }
13539 fi
13540
13541
13542 fi
13543 if test -z "$ac_cv_prog_DLLTOOL"; then
13544 ac_ct_DLLTOOL=$DLLTOOL
13545 # Extract the first word of "dlltool", so it can be a program name with args.
13546 set dummy dlltool; ac_word=$2
13547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13548 printf %s "checking for $ac_word... " >&6; }
13549 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
13550 then :
13551 printf %s "(cached) " >&6
13552 else case e in #(
13553 e) if test -n "$ac_ct_DLLTOOL"; then
13554 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13555 else
13556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13557 for as_dir in $PATH
13558 do
13559 IFS=$as_save_IFS
13560 case $as_dir in #(((
13561 '') as_dir=./ ;;
13562 */) ;;
13563 *) as_dir=$as_dir/ ;;
13564 esac
13565 for ac_exec_ext in '' $ac_executable_extensions; do
13566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13567 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13569 break 2
13570 fi
13571 done
13572 done
13573 IFS=$as_save_IFS
13574
13575 fi ;;
13576 esac
13577 fi
13578 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13579 if test -n "$ac_ct_DLLTOOL"; then
13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13581 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
13582 else
13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13584 printf "%s\n" "no" >&6; }
13585 fi
13586
13587 if test "x$ac_ct_DLLTOOL" = x; then
13588 DLLTOOL="false"
13589 else
13590 case $cross_compiling:$ac_tool_warned in
13591 yes:)
13592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13593 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13594 ac_tool_warned=yes ;;
13595 esac
13596 DLLTOOL=$ac_ct_DLLTOOL
13597 fi
13598 else
13599 DLLTOOL="$ac_cv_prog_DLLTOOL"
13600 fi
13601
13602 test -z "$DLLTOOL" && DLLTOOL=dlltool
13603
13604
13605
13606
13607
13608
13609
13610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13611 printf %s "checking how to associate runtime and link libraries... " >&6; }
13612 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
13613 then :
13614 printf %s "(cached) " >&6
13615 else case e in #(
13616 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
13617
13618 case $host_os in
13619 cygwin* | mingw* | windows* | pw32* | cegcc*)
13620 # two different shell functions defined in ltmain.sh;
13621 # decide which one to use based on capabilities of $DLLTOOL
13622 case `$DLLTOOL --help 2>&1` in
13623 *--identify-strict*)
13624 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13625 ;;
13626 *)
13627 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13628 ;;
13629 esac
13630 ;;
13631 *)
13632 # fallback: assume linklib IS sharedlib
13633 lt_cv_sharedlib_from_linklib_cmd=$ECHO
13634 ;;
13635 esac
13636 ;;
13637 esac
13638 fi
13639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13640 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13641 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13642 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13643
13644
13645
13646
13647
13648
13649
13650 if test -n "$ac_tool_prefix"; then
13651 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13652 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13654 printf %s "checking for $ac_word... " >&6; }
13655 if test ${ac_cv_prog_RANLIB+y}
13656 then :
13657 printf %s "(cached) " >&6
13658 else case e in #(
13659 e) if test -n "$RANLIB"; then
13660 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13661 else
13662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13663 for as_dir in $PATH
13664 do
13665 IFS=$as_save_IFS
13666 case $as_dir in #(((
13667 '') as_dir=./ ;;
13668 */) ;;
13669 *) as_dir=$as_dir/ ;;
13670 esac
13671 for ac_exec_ext in '' $ac_executable_extensions; do
13672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13673 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13675 break 2
13676 fi
13677 done
13678 done
13679 IFS=$as_save_IFS
13680
13681 fi ;;
13682 esac
13683 fi
13684 RANLIB=$ac_cv_prog_RANLIB
13685 if test -n "$RANLIB"; then
13686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13687 printf "%s\n" "$RANLIB" >&6; }
13688 else
13689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13690 printf "%s\n" "no" >&6; }
13691 fi
13692
13693
13694 fi
13695 if test -z "$ac_cv_prog_RANLIB"; then
13696 ac_ct_RANLIB=$RANLIB
13697 # Extract the first word of "ranlib", so it can be a program name with args.
13698 set dummy ranlib; ac_word=$2
13699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13700 printf %s "checking for $ac_word... " >&6; }
13701 if test ${ac_cv_prog_ac_ct_RANLIB+y}
13702 then :
13703 printf %s "(cached) " >&6
13704 else case e in #(
13705 e) if test -n "$ac_ct_RANLIB"; then
13706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13707 else
13708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13709 for as_dir in $PATH
13710 do
13711 IFS=$as_save_IFS
13712 case $as_dir in #(((
13713 '') as_dir=./ ;;
13714 */) ;;
13715 *) as_dir=$as_dir/ ;;
13716 esac
13717 for ac_exec_ext in '' $ac_executable_extensions; do
13718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13719 ac_cv_prog_ac_ct_RANLIB="ranlib"
13720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13721 break 2
13722 fi
13723 done
13724 done
13725 IFS=$as_save_IFS
13726
13727 fi ;;
13728 esac
13729 fi
13730 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13731 if test -n "$ac_ct_RANLIB"; then
13732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13733 printf "%s\n" "$ac_ct_RANLIB" >&6; }
13734 else
13735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13736 printf "%s\n" "no" >&6; }
13737 fi
13738
13739 if test "x$ac_ct_RANLIB" = x; then
13740 RANLIB=":"
13741 else
13742 case $cross_compiling:$ac_tool_warned in
13743 yes:)
13744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13745 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13746 ac_tool_warned=yes ;;
13747 esac
13748 RANLIB=$ac_ct_RANLIB
13749 fi
13750 else
13751 RANLIB="$ac_cv_prog_RANLIB"
13752 fi
13753
13754 if test -n "$ac_tool_prefix"; then
13755 for ac_prog in ar
13756 do
13757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13760 printf %s "checking for $ac_word... " >&6; }
13761 if test ${ac_cv_prog_AR+y}
13762 then :
13763 printf %s "(cached) " >&6
13764 else case e in #(
13765 e) if test -n "$AR"; then
13766 ac_cv_prog_AR="$AR" # Let the user override the test.
13767 else
13768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13769 for as_dir in $PATH
13770 do
13771 IFS=$as_save_IFS
13772 case $as_dir in #(((
13773 '') as_dir=./ ;;
13774 */) ;;
13775 *) as_dir=$as_dir/ ;;
13776 esac
13777 for ac_exec_ext in '' $ac_executable_extensions; do
13778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13779 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13781 break 2
13782 fi
13783 done
13784 done
13785 IFS=$as_save_IFS
13786
13787 fi ;;
13788 esac
13789 fi
13790 AR=$ac_cv_prog_AR
13791 if test -n "$AR"; then
13792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13793 printf "%s\n" "$AR" >&6; }
13794 else
13795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13796 printf "%s\n" "no" >&6; }
13797 fi
13798
13799
13800 test -n "$AR" && break
13801 done
13802 fi
13803 if test -z "$AR"; then
13804 ac_ct_AR=$AR
13805 for ac_prog in ar
13806 do
13807 # Extract the first word of "$ac_prog", so it can be a program name with args.
13808 set dummy $ac_prog; ac_word=$2
13809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13810 printf %s "checking for $ac_word... " >&6; }
13811 if test ${ac_cv_prog_ac_ct_AR+y}
13812 then :
13813 printf %s "(cached) " >&6
13814 else case e in #(
13815 e) if test -n "$ac_ct_AR"; then
13816 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13817 else
13818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13819 for as_dir in $PATH
13820 do
13821 IFS=$as_save_IFS
13822 case $as_dir in #(((
13823 '') as_dir=./ ;;
13824 */) ;;
13825 *) as_dir=$as_dir/ ;;
13826 esac
13827 for ac_exec_ext in '' $ac_executable_extensions; do
13828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13829 ac_cv_prog_ac_ct_AR="$ac_prog"
13830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13831 break 2
13832 fi
13833 done
13834 done
13835 IFS=$as_save_IFS
13836
13837 fi ;;
13838 esac
13839 fi
13840 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13841 if test -n "$ac_ct_AR"; then
13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13843 printf "%s\n" "$ac_ct_AR" >&6; }
13844 else
13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846 printf "%s\n" "no" >&6; }
13847 fi
13848
13849
13850 test -n "$ac_ct_AR" && break
13851 done
13852
13853 if test "x$ac_ct_AR" = x; then
13854 AR="false"
13855 else
13856 case $cross_compiling:$ac_tool_warned in
13857 yes:)
13858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13859 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13860 ac_tool_warned=yes ;;
13861 esac
13862 AR=$ac_ct_AR
13863 fi
13864 fi
13865
13866 : ${AR=ar}
13867
13868
13869
13870
13871
13872
13873 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
13874 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13875 # higher priority because that's what people were doing historically (setting
13876 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
13877 # variable obsoleted/removed.
13878
13879 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13880 lt_ar_flags=$AR_FLAGS
13881
13882
13883
13884
13885
13886
13887 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
13888 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13889
13890
13891
13892
13893
13894
13895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13896 printf %s "checking for archiver @FILE support... " >&6; }
13897 if test ${lt_cv_ar_at_file+y}
13898 then :
13899 printf %s "(cached) " >&6
13900 else case e in #(
13901 e) lt_cv_ar_at_file=no
13902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13903 /* end confdefs.h. */
13904
13905 int
13906 main (void)
13907 {
13908
13909 ;
13910 return 0;
13911 }
13912 _ACEOF
13913 if ac_fn_c_try_compile "$LINENO"
13914 then :
13915 echo conftest.$ac_objext > conftest.lst
13916 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13918 (eval $lt_ar_try) 2>&5
13919 ac_status=$?
13920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13921 test $ac_status = 0; }
13922 if test 0 -eq "$ac_status"; then
13923 # Ensure the archiver fails upon bogus file names.
13924 rm -f conftest.$ac_objext libconftest.a
13925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13926 (eval $lt_ar_try) 2>&5
13927 ac_status=$?
13928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13929 test $ac_status = 0; }
13930 if test 0 -ne "$ac_status"; then
13931 lt_cv_ar_at_file=@
13932 fi
13933 fi
13934 rm -f conftest.* libconftest.a
13935
13936 fi
13937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13938 ;;
13939 esac
13940 fi
13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13942 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13943
13944 if test no = "$lt_cv_ar_at_file"; then
13945 archiver_list_spec=
13946 else
13947 archiver_list_spec=$lt_cv_ar_at_file
13948 fi
13949
13950
13951
13952
13953
13954
13955
13956 if test -n "$ac_tool_prefix"; then
13957 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13958 set dummy ${ac_tool_prefix}strip; ac_word=$2
13959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13960 printf %s "checking for $ac_word... " >&6; }
13961 if test ${ac_cv_prog_STRIP+y}
13962 then :
13963 printf %s "(cached) " >&6
13964 else case e in #(
13965 e) if test -n "$STRIP"; then
13966 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13967 else
13968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13969 for as_dir in $PATH
13970 do
13971 IFS=$as_save_IFS
13972 case $as_dir in #(((
13973 '') as_dir=./ ;;
13974 */) ;;
13975 *) as_dir=$as_dir/ ;;
13976 esac
13977 for ac_exec_ext in '' $ac_executable_extensions; do
13978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13979 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13981 break 2
13982 fi
13983 done
13984 done
13985 IFS=$as_save_IFS
13986
13987 fi ;;
13988 esac
13989 fi
13990 STRIP=$ac_cv_prog_STRIP
13991 if test -n "$STRIP"; then
13992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13993 printf "%s\n" "$STRIP" >&6; }
13994 else
13995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13996 printf "%s\n" "no" >&6; }
13997 fi
13998
13999
14000 fi
14001 if test -z "$ac_cv_prog_STRIP"; then
14002 ac_ct_STRIP=$STRIP
14003 # Extract the first word of "strip", so it can be a program name with args.
14004 set dummy strip; ac_word=$2
14005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14006 printf %s "checking for $ac_word... " >&6; }
14007 if test ${ac_cv_prog_ac_ct_STRIP+y}
14008 then :
14009 printf %s "(cached) " >&6
14010 else case e in #(
14011 e) if test -n "$ac_ct_STRIP"; then
14012 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14013 else
14014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14015 for as_dir in $PATH
14016 do
14017 IFS=$as_save_IFS
14018 case $as_dir in #(((
14019 '') as_dir=./ ;;
14020 */) ;;
14021 *) as_dir=$as_dir/ ;;
14022 esac
14023 for ac_exec_ext in '' $ac_executable_extensions; do
14024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14025 ac_cv_prog_ac_ct_STRIP="strip"
14026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14027 break 2
14028 fi
14029 done
14030 done
14031 IFS=$as_save_IFS
14032
14033 fi ;;
14034 esac
14035 fi
14036 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14037 if test -n "$ac_ct_STRIP"; then
14038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14039 printf "%s\n" "$ac_ct_STRIP" >&6; }
14040 else
14041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14042 printf "%s\n" "no" >&6; }
14043 fi
14044
14045 if test "x$ac_ct_STRIP" = x; then
14046 STRIP=":"
14047 else
14048 case $cross_compiling:$ac_tool_warned in
14049 yes:)
14050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14051 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14052 ac_tool_warned=yes ;;
14053 esac
14054 STRIP=$ac_ct_STRIP
14055 fi
14056 else
14057 STRIP="$ac_cv_prog_STRIP"
14058 fi
14059
14060 test -z "$STRIP" && STRIP=:
14061
14062
14063
14064
14065
14066
14067
14068 test -z "$RANLIB" && RANLIB=:
14069
14070
14071
14072
14073
14074
14075 # Determine commands to create old-style static archives.
14076 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14077 old_postinstall_cmds='chmod 644 $oldlib'
14078 old_postuninstall_cmds=
14079
14080 if test -n "$RANLIB"; then
14081 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
14082 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
14083 fi
14084
14085 case $host_os in
14086 darwin*)
14087 lock_old_archive_extraction=yes ;;
14088 *)
14089 lock_old_archive_extraction=no ;;
14090 esac
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
14129
14130 # If no C compiler was specified, use CC.
14131 LTCC=${LTCC-"$CC"}
14132
14133 # If no C compiler flags were specified, use CFLAGS.
14134 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14135
14136 # Allow CC to be a program name with arguments.
14137 compiler=$CC
14138
14139
14140 # Check for command to grab the raw symbol name followed by C symbol from nm.
14141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14142 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
14143 if test ${lt_cv_sys_global_symbol_pipe+y}
14144 then :
14145 printf %s "(cached) " >&6
14146 else case e in #(
14147 e)
14148 # These are sane defaults that work on at least a few old systems.
14149 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14150
14151 # Character class describing NM global symbol codes.
14152 symcode='[BCDEGRST]'
14153
14154 # Regexp to match symbols that can be accessed directly from C.
14155 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14156
14157 # Define system-specific variables.
14158 case $host_os in
14159 aix*)
14160 symcode='[BCDT]'
14161 ;;
14162 cygwin* | mingw* | windows* | pw32* | cegcc*)
14163 symcode='[ABCDGISTW]'
14164 ;;
14165 hpux*)
14166 if test ia64 = "$host_cpu"; then
14167 symcode='[ABCDEGRST]'
14168 fi
14169 ;;
14170 irix* | nonstopux*)
14171 symcode='[BCDEGRST]'
14172 ;;
14173 osf*)
14174 symcode='[BCDEGQRST]'
14175 ;;
14176 solaris*)
14177 symcode='[BCDRT]'
14178 ;;
14179 sco3.2v5*)
14180 symcode='[DT]'
14181 ;;
14182 sysv4.2uw2*)
14183 symcode='[DT]'
14184 ;;
14185 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14186 symcode='[ABDT]'
14187 ;;
14188 sysv4)
14189 symcode='[DFNSTU]'
14190 ;;
14191 esac
14192
14193 # If we're using GNU nm, then use its standard symbol codes.
14194 case `$NM -V 2>&1` in
14195 *GNU* | *'with BFD'*)
14196 symcode='[ABCDGIRSTW]' ;;
14197 esac
14198
14199 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14200 # Gets list of data symbols to import.
14201 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
14202 # Adjust the below global symbol transforms to fixup imported variables.
14203 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
14204 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
14205 lt_c_name_lib_hook="\
14206 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
14207 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
14208 else
14209 # Disable hooks by default.
14210 lt_cv_sys_global_symbol_to_import=
14211 lt_cdecl_hook=
14212 lt_c_name_hook=
14213 lt_c_name_lib_hook=
14214 fi
14215
14216 # Transform an extracted symbol line into a proper C declaration.
14217 # Some systems (esp. on ia64) link data and code symbols differently,
14218 # so use this general approach.
14219 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
14220 $lt_cdecl_hook\
14221 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
14222 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
14223
14224 # Transform an extracted symbol line into symbol name and symbol address
14225 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
14226 $lt_c_name_hook\
14227 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
14228 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
14229
14230 # Transform an extracted symbol line into symbol name with lib prefix and
14231 # symbol address.
14232 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
14233 $lt_c_name_lib_hook\
14234 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
14235 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
14236 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
14237
14238 # Handle CRLF in mingw tool chain
14239 opt_cr=
14240 case $build_os in
14241 mingw* | windows*)
14242 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14243 ;;
14244 esac
14245
14246 # Try without a prefix underscore, then with it.
14247 for ac_symprfx in "" "_"; do
14248
14249 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14250 symxfrm="\\1 $ac_symprfx\\2 \\2"
14251
14252 # Write the raw and C identifiers.
14253 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14254 # Fake it for dumpbin and say T for any non-static function,
14255 # D for any global variable and I for any imported variable.
14256 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
14257 # which start with @ or ?.
14258 lt_cv_sys_global_symbol_pipe="$AWK '"\
14259 " {last_section=section; section=\$ 3};"\
14260 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
14261 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14262 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
14263 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
14264 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
14265 " \$ 0!~/External *\|/{next};"\
14266 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14267 " {if(hide[section]) next};"\
14268 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
14269 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
14270 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
14271 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
14272 " ' prfx=^$ac_symprfx"
14273 else
14274 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14275 fi
14276 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
14277
14278 # Check to see that the pipe works correctly.
14279 pipe_works=no
14280
14281 rm -f conftest*
14282 cat > conftest.$ac_ext <<_LT_EOF
14283 #ifdef __cplusplus
14284 extern "C" {
14285 #endif
14286 char nm_test_var;
14287 void nm_test_func(void);
14288 void nm_test_func(void){}
14289 #ifdef __cplusplus
14290 }
14291 #endif
14292 int main(void){nm_test_var='a';nm_test_func();return(0);}
14293 _LT_EOF
14294
14295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14296 (eval $ac_compile) 2>&5
14297 ac_status=$?
14298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14299 test $ac_status = 0; }; then
14300 # Now try to grab the symbols.
14301 nlist=conftest.nm
14302 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
14303 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
14304 # Try sorting and uniquifying the output.
14305 if sort "$nlist" | uniq > "$nlist"T; then
14306 mv -f "$nlist"T "$nlist"
14307 else
14308 rm -f "$nlist"T
14309 fi
14310
14311 # Make sure that we snagged all the symbols we need.
14312 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14313 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14314 cat <<_LT_EOF > conftest.$ac_ext
14315 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
14316 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
14317 /* DATA imports from DLLs on WIN32 can't be const, because runtime
14318 relocations are performed -- see ld's documentation on pseudo-relocs. */
14319 # define LT_DLSYM_CONST
14320 #elif defined __osf__
14321 /* This system does not cope well with relocations in const data. */
14322 # define LT_DLSYM_CONST
14323 #else
14324 # define LT_DLSYM_CONST const
14325 #endif
14326
14327 #ifdef __cplusplus
14328 extern "C" {
14329 #endif
14330
14331 _LT_EOF
14332 # Now generate the symbol file.
14333 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14334
14335 cat <<_LT_EOF >> conftest.$ac_ext
14336
14337 /* The mapping between symbol names and symbols. */
14338 LT_DLSYM_CONST struct {
14339 const char *name;
14340 void *address;
14341 }
14342 lt__PROGRAM__LTX_preloaded_symbols[] =
14343 {
14344 { "@PROGRAM@", (void *) 0 },
14345 _LT_EOF
14346 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14347 cat <<\_LT_EOF >> conftest.$ac_ext
14348 {0, (void *) 0}
14349 };
14350
14351 /* This works around a problem in FreeBSD linker */
14352 #ifdef FREEBSD_WORKAROUND
14353 static const void *lt_preloaded_setup() {
14354 return lt__PROGRAM__LTX_preloaded_symbols;
14355 }
14356 #endif
14357
14358 #ifdef __cplusplus
14359 }
14360 #endif
14361 _LT_EOF
14362 # Now try linking the two files.
14363 mv conftest.$ac_objext conftstm.$ac_objext
14364 lt_globsym_save_LIBS=$LIBS
14365 lt_globsym_save_CFLAGS=$CFLAGS
14366 LIBS=conftstm.$ac_objext
14367 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14369 (eval $ac_link) 2>&5
14370 ac_status=$?
14371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14372 test $ac_status = 0; } && test -s conftest$ac_exeext; then
14373 pipe_works=yes
14374 fi
14375 LIBS=$lt_globsym_save_LIBS
14376 CFLAGS=$lt_globsym_save_CFLAGS
14377 else
14378 echo "cannot find nm_test_func in $nlist" >&5
14379 fi
14380 else
14381 echo "cannot find nm_test_var in $nlist" >&5
14382 fi
14383 else
14384 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14385 fi
14386 else
14387 echo "$progname: failed program was:" >&5
14388 cat conftest.$ac_ext >&5
14389 fi
14390 rm -rf conftest* conftst*
14391
14392 # Do not use the global_symbol_pipe unless it works.
14393 if test yes = "$pipe_works"; then
14394 break
14395 else
14396 lt_cv_sys_global_symbol_pipe=
14397 fi
14398 done
14399 ;;
14400 esac
14401 fi
14402
14403 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14404 lt_cv_sys_global_symbol_to_cdecl=
14405 fi
14406 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14408 printf "%s\n" "failed" >&6; }
14409 else
14410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14411 printf "%s\n" "ok" >&6; }
14412 fi
14413
14414 # Response file support.
14415 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14416 nm_file_list_spec='@'
14417 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
14418 nm_file_list_spec='@'
14419 fi
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
14456
14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14458 printf %s "checking for sysroot... " >&6; }
14459
14460 # Check whether --with-sysroot was given.
14461 if test ${with_sysroot+y}
14462 then :
14463 withval=$with_sysroot;
14464 else case e in #(
14465 e) with_sysroot=no ;;
14466 esac
14467 fi
14468
14469
14470 lt_sysroot=
14471 case $with_sysroot in #(
14472 yes)
14473 if test yes = "$GCC"; then
14474 # Trim trailing / since we'll always append absolute paths and we want
14475 # to avoid //, if only for less confusing output for the user.
14476 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
14477 fi
14478 ;; #(
14479 /*)
14480 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
14481 ;; #(
14482 no|'')
14483 ;; #(
14484 *)
14485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
14486 printf "%s\n" "$with_sysroot" >&6; }
14487 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
14488 ;;
14489 esac
14490
14491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
14492 printf "%s\n" "${lt_sysroot:-no}" >&6; }
14493
14494
14495
14496
14497
14498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
14499 printf %s "checking for a working dd... " >&6; }
14500 if test ${ac_cv_path_lt_DD+y}
14501 then :
14502 printf %s "(cached) " >&6
14503 else case e in #(
14504 e) printf 0123456789abcdef0123456789abcdef >conftest.i
14505 cat conftest.i conftest.i >conftest2.i
14506 : ${lt_DD:=$DD}
14507 if test -z "$lt_DD"; then
14508 ac_path_lt_DD_found=false
14509 # Loop through the user's path and test for each of PROGNAME-LIST
14510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14511 for as_dir in $PATH
14512 do
14513 IFS=$as_save_IFS
14514 case $as_dir in #(((
14515 '') as_dir=./ ;;
14516 */) ;;
14517 *) as_dir=$as_dir/ ;;
14518 esac
14519 for ac_prog in dd
14520 do
14521 for ac_exec_ext in '' $ac_executable_extensions; do
14522 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
14523 as_fn_executable_p "$ac_path_lt_DD" || continue
14524 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14525 cmp -s conftest.i conftest.out \
14526 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
14527 fi
14528 $ac_path_lt_DD_found && break 3
14529 done
14530 done
14531 done
14532 IFS=$as_save_IFS
14533 if test -z "$ac_cv_path_lt_DD"; then
14534 :
14535 fi
14536 else
14537 ac_cv_path_lt_DD=$lt_DD
14538 fi
14539
14540 rm -f conftest.i conftest2.i conftest.out ;;
14541 esac
14542 fi
14543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
14544 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
14545
14546
14547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
14548 printf %s "checking how to truncate binary pipes... " >&6; }
14549 if test ${lt_cv_truncate_bin+y}
14550 then :
14551 printf %s "(cached) " >&6
14552 else case e in #(
14553 e) printf 0123456789abcdef0123456789abcdef >conftest.i
14554 cat conftest.i conftest.i >conftest2.i
14555 lt_cv_truncate_bin=
14556 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14557 cmp -s conftest.i conftest.out \
14558 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
14559 fi
14560 rm -f conftest.i conftest2.i conftest.out
14561 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
14562 esac
14563 fi
14564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
14565 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
14566
14567
14568
14569
14570
14571
14572
14573 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14574 func_cc_basename ()
14575 {
14576 for cc_temp in $*""; do
14577 case $cc_temp in
14578 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14579 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14580 \-*) ;;
14581 *) break;;
14582 esac
14583 done
14584 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14585 }
14586
14587 # Check whether --enable-libtool-lock was given.
14588 if test ${enable_libtool_lock+y}
14589 then :
14590 enableval=$enable_libtool_lock;
14591 fi
14592
14593 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
14594
14595 # Some flags need to be propagated to the compiler or linker for good
14596 # libtool support.
14597 case $host in
14598 ia64-*-hpux*)
14599 # Find out what ABI is being produced by ac_compile, and set mode
14600 # options accordingly.
14601 echo 'int i;' > conftest.$ac_ext
14602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14603 (eval $ac_compile) 2>&5
14604 ac_status=$?
14605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14606 test $ac_status = 0; }; then
14607 case `$FILECMD conftest.$ac_objext` in
14608 *ELF-32*)
14609 HPUX_IA64_MODE=32
14610 ;;
14611 *ELF-64*)
14612 HPUX_IA64_MODE=64
14613 ;;
14614 esac
14615 fi
14616 rm -rf conftest*
14617 ;;
14618 *-*-irix6*)
14619 # Find out what ABI is being produced by ac_compile, and set linker
14620 # options accordingly.
14621 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14623 (eval $ac_compile) 2>&5
14624 ac_status=$?
14625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14626 test $ac_status = 0; }; then
14627 if test yes = "$lt_cv_prog_gnu_ld"; then
14628 case `$FILECMD conftest.$ac_objext` in
14629 *32-bit*)
14630 LD="${LD-ld} -melf32bsmip"
14631 ;;
14632 *N32*)
14633 LD="${LD-ld} -melf32bmipn32"
14634 ;;
14635 *64-bit*)
14636 LD="${LD-ld} -melf64bmip"
14637 ;;
14638 esac
14639 else
14640 case `$FILECMD conftest.$ac_objext` in
14641 *32-bit*)
14642 LD="${LD-ld} -32"
14643 ;;
14644 *N32*)
14645 LD="${LD-ld} -n32"
14646 ;;
14647 *64-bit*)
14648 LD="${LD-ld} -64"
14649 ;;
14650 esac
14651 fi
14652 fi
14653 rm -rf conftest*
14654 ;;
14655
14656 mips64*-*linux*)
14657 # Find out what ABI is being produced by ac_compile, and set linker
14658 # options accordingly.
14659 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14661 (eval $ac_compile) 2>&5
14662 ac_status=$?
14663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14664 test $ac_status = 0; }; then
14665 emul=elf
14666 case `$FILECMD conftest.$ac_objext` in
14667 *32-bit*)
14668 emul="${emul}32"
14669 ;;
14670 *64-bit*)
14671 emul="${emul}64"
14672 ;;
14673 esac
14674 case `$FILECMD conftest.$ac_objext` in
14675 *MSB*)
14676 emul="${emul}btsmip"
14677 ;;
14678 *LSB*)
14679 emul="${emul}ltsmip"
14680 ;;
14681 esac
14682 case `$FILECMD conftest.$ac_objext` in
14683 *N32*)
14684 emul="${emul}n32"
14685 ;;
14686 esac
14687 LD="${LD-ld} -m $emul"
14688 fi
14689 rm -rf conftest*
14690 ;;
14691
14692 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14693 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
14694 # Find out what ABI is being produced by ac_compile, and set linker
14695 # options accordingly. Note that the listed cases only cover the
14696 # situations where additional linker options are needed (such as when
14697 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14698 # vice versa); the common cases where no linker options are needed do
14699 # not appear in the list.
14700 echo 'int i;' > conftest.$ac_ext
14701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14702 (eval $ac_compile) 2>&5
14703 ac_status=$?
14704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14705 test $ac_status = 0; }; then
14706 case `$FILECMD conftest.o` in
14707 *32-bit*)
14708 case $host in
14709 x86_64-*kfreebsd*-gnu)
14710 LD="${LD-ld} -m elf_i386_fbsd"
14711 ;;
14712 x86_64-*linux*|x86_64-gnu*)
14713 case `$FILECMD conftest.o` in
14714 *x86-64*)
14715 LD="${LD-ld} -m elf32_x86_64"
14716 ;;
14717 *)
14718 LD="${LD-ld} -m elf_i386"
14719 ;;
14720 esac
14721 ;;
14722 powerpc64le-*linux*)
14723 LD="${LD-ld} -m elf32lppclinux"
14724 ;;
14725 powerpc64-*linux*)
14726 LD="${LD-ld} -m elf32ppclinux"
14727 ;;
14728 s390x-*linux*)
14729 LD="${LD-ld} -m elf_s390"
14730 ;;
14731 sparc64-*linux*)
14732 LD="${LD-ld} -m elf32_sparc"
14733 ;;
14734 esac
14735 ;;
14736 *64-bit*)
14737 case $host in
14738 x86_64-*kfreebsd*-gnu)
14739 LD="${LD-ld} -m elf_x86_64_fbsd"
14740 ;;
14741 x86_64-*linux*|x86_64-gnu*)
14742 LD="${LD-ld} -m elf_x86_64"
14743 ;;
14744 powerpcle-*linux*)
14745 LD="${LD-ld} -m elf64lppc"
14746 ;;
14747 powerpc-*linux*)
14748 LD="${LD-ld} -m elf64ppc"
14749 ;;
14750 s390*-*linux*|s390*-*tpf*)
14751 LD="${LD-ld} -m elf64_s390"
14752 ;;
14753 sparc*-*linux*)
14754 LD="${LD-ld} -m elf64_sparc"
14755 ;;
14756 esac
14757 ;;
14758 esac
14759 fi
14760 rm -rf conftest*
14761 ;;
14762
14763 *-*-sco3.2v5*)
14764 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14765 SAVE_CFLAGS=$CFLAGS
14766 CFLAGS="$CFLAGS -belf"
14767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14768 printf %s "checking whether the C compiler needs -belf... " >&6; }
14769 if test ${lt_cv_cc_needs_belf+y}
14770 then :
14771 printf %s "(cached) " >&6
14772 else case e in #(
14773 e) ac_ext=c
14774 ac_cpp='$CPP $CPPFLAGS'
14775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14778
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h. */
14781
14782 int
14783 main (void)
14784 {
14785
14786 ;
14787 return 0;
14788 }
14789 _ACEOF
14790 if ac_fn_c_try_link "$LINENO"
14791 then :
14792 lt_cv_cc_needs_belf=yes
14793 else case e in #(
14794 e) lt_cv_cc_needs_belf=no ;;
14795 esac
14796 fi
14797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14798 conftest$ac_exeext conftest.$ac_ext
14799 ac_ext=c
14800 ac_cpp='$CPP $CPPFLAGS'
14801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14804 ;;
14805 esac
14806 fi
14807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14808 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14809 if test yes != "$lt_cv_cc_needs_belf"; then
14810 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14811 CFLAGS=$SAVE_CFLAGS
14812 fi
14813 ;;
14814 *-*solaris*)
14815 # Find out what ABI is being produced by ac_compile, and set linker
14816 # options accordingly.
14817 echo 'int i;' > conftest.$ac_ext
14818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14819 (eval $ac_compile) 2>&5
14820 ac_status=$?
14821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14822 test $ac_status = 0; }; then
14823 case `$FILECMD conftest.o` in
14824 *64-bit*)
14825 case $lt_cv_prog_gnu_ld in
14826 yes*)
14827 case $host in
14828 i?86-*-solaris*|x86_64-*-solaris*)
14829 LD="${LD-ld} -m elf_x86_64"
14830 ;;
14831 sparc*-*-solaris*)
14832 LD="${LD-ld} -m elf64_sparc"
14833 ;;
14834 esac
14835 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14836 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14837 LD=${LD-ld}_sol2
14838 fi
14839 ;;
14840 *)
14841 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14842 LD="${LD-ld} -64"
14843 fi
14844 ;;
14845 esac
14846 ;;
14847 esac
14848 fi
14849 rm -rf conftest*
14850 ;;
14851 esac
14852
14853 need_locks=$enable_libtool_lock
14854
14855 if test -n "$ac_tool_prefix"; then
14856 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14857 set dummy ${ac_tool_prefix}mt; ac_word=$2
14858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14859 printf %s "checking for $ac_word... " >&6; }
14860 if test ${ac_cv_prog_MANIFEST_TOOL+y}
14861 then :
14862 printf %s "(cached) " >&6
14863 else case e in #(
14864 e) if test -n "$MANIFEST_TOOL"; then
14865 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14866 else
14867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14868 for as_dir in $PATH
14869 do
14870 IFS=$as_save_IFS
14871 case $as_dir in #(((
14872 '') as_dir=./ ;;
14873 */) ;;
14874 *) as_dir=$as_dir/ ;;
14875 esac
14876 for ac_exec_ext in '' $ac_executable_extensions; do
14877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14878 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14880 break 2
14881 fi
14882 done
14883 done
14884 IFS=$as_save_IFS
14885
14886 fi ;;
14887 esac
14888 fi
14889 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14890 if test -n "$MANIFEST_TOOL"; then
14891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14892 printf "%s\n" "$MANIFEST_TOOL" >&6; }
14893 else
14894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14895 printf "%s\n" "no" >&6; }
14896 fi
14897
14898
14899 fi
14900 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14901 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14902 # Extract the first word of "mt", so it can be a program name with args.
14903 set dummy mt; ac_word=$2
14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14905 printf %s "checking for $ac_word... " >&6; }
14906 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14907 then :
14908 printf %s "(cached) " >&6
14909 else case e in #(
14910 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
14911 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14912 else
14913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14914 for as_dir in $PATH
14915 do
14916 IFS=$as_save_IFS
14917 case $as_dir in #(((
14918 '') as_dir=./ ;;
14919 */) ;;
14920 *) as_dir=$as_dir/ ;;
14921 esac
14922 for ac_exec_ext in '' $ac_executable_extensions; do
14923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14924 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14926 break 2
14927 fi
14928 done
14929 done
14930 IFS=$as_save_IFS
14931
14932 fi ;;
14933 esac
14934 fi
14935 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14936 if test -n "$ac_ct_MANIFEST_TOOL"; then
14937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14938 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14939 else
14940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14941 printf "%s\n" "no" >&6; }
14942 fi
14943
14944 if test "x$ac_ct_MANIFEST_TOOL" = x; then
14945 MANIFEST_TOOL=":"
14946 else
14947 case $cross_compiling:$ac_tool_warned in
14948 yes:)
14949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14950 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14951 ac_tool_warned=yes ;;
14952 esac
14953 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14954 fi
14955 else
14956 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14957 fi
14958
14959 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14961 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14962 if test ${lt_cv_path_manifest_tool+y}
14963 then :
14964 printf %s "(cached) " >&6
14965 else case e in #(
14966 e) lt_cv_path_manifest_tool=no
14967 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14968 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14969 cat conftest.err >&5
14970 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14971 lt_cv_path_manifest_tool=yes
14972 fi
14973 rm -f conftest* ;;
14974 esac
14975 fi
14976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
14977 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
14978 if test yes != "$lt_cv_path_manifest_tool"; then
14979 MANIFEST_TOOL=:
14980 fi
14981
14982
14983
14984
14985
14986
14987 case $host_os in
14988 rhapsody* | darwin*)
14989 if test -n "$ac_tool_prefix"; then
14990 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14991 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14993 printf %s "checking for $ac_word... " >&6; }
14994 if test ${ac_cv_prog_DSYMUTIL+y}
14995 then :
14996 printf %s "(cached) " >&6
14997 else case e in #(
14998 e) if test -n "$DSYMUTIL"; then
14999 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15000 else
15001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15002 for as_dir in $PATH
15003 do
15004 IFS=$as_save_IFS
15005 case $as_dir in #(((
15006 '') as_dir=./ ;;
15007 */) ;;
15008 *) as_dir=$as_dir/ ;;
15009 esac
15010 for ac_exec_ext in '' $ac_executable_extensions; do
15011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15012 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15014 break 2
15015 fi
15016 done
15017 done
15018 IFS=$as_save_IFS
15019
15020 fi ;;
15021 esac
15022 fi
15023 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15024 if test -n "$DSYMUTIL"; then
15025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15026 printf "%s\n" "$DSYMUTIL" >&6; }
15027 else
15028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15029 printf "%s\n" "no" >&6; }
15030 fi
15031
15032
15033 fi
15034 if test -z "$ac_cv_prog_DSYMUTIL"; then
15035 ac_ct_DSYMUTIL=$DSYMUTIL
15036 # Extract the first word of "dsymutil", so it can be a program name with args.
15037 set dummy dsymutil; ac_word=$2
15038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15039 printf %s "checking for $ac_word... " >&6; }
15040 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
15041 then :
15042 printf %s "(cached) " >&6
15043 else case e in #(
15044 e) if test -n "$ac_ct_DSYMUTIL"; then
15045 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15046 else
15047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15048 for as_dir in $PATH
15049 do
15050 IFS=$as_save_IFS
15051 case $as_dir in #(((
15052 '') as_dir=./ ;;
15053 */) ;;
15054 *) as_dir=$as_dir/ ;;
15055 esac
15056 for ac_exec_ext in '' $ac_executable_extensions; do
15057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15058 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15060 break 2
15061 fi
15062 done
15063 done
15064 IFS=$as_save_IFS
15065
15066 fi ;;
15067 esac
15068 fi
15069 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15070 if test -n "$ac_ct_DSYMUTIL"; then
15071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15072 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
15073 else
15074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15075 printf "%s\n" "no" >&6; }
15076 fi
15077
15078 if test "x$ac_ct_DSYMUTIL" = x; then
15079 DSYMUTIL=":"
15080 else
15081 case $cross_compiling:$ac_tool_warned in
15082 yes:)
15083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15084 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15085 ac_tool_warned=yes ;;
15086 esac
15087 DSYMUTIL=$ac_ct_DSYMUTIL
15088 fi
15089 else
15090 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15091 fi
15092
15093 if test -n "$ac_tool_prefix"; then
15094 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15095 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15097 printf %s "checking for $ac_word... " >&6; }
15098 if test ${ac_cv_prog_NMEDIT+y}
15099 then :
15100 printf %s "(cached) " >&6
15101 else case e in #(
15102 e) if test -n "$NMEDIT"; then
15103 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15104 else
15105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15106 for as_dir in $PATH
15107 do
15108 IFS=$as_save_IFS
15109 case $as_dir in #(((
15110 '') as_dir=./ ;;
15111 */) ;;
15112 *) as_dir=$as_dir/ ;;
15113 esac
15114 for ac_exec_ext in '' $ac_executable_extensions; do
15115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15116 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15118 break 2
15119 fi
15120 done
15121 done
15122 IFS=$as_save_IFS
15123
15124 fi ;;
15125 esac
15126 fi
15127 NMEDIT=$ac_cv_prog_NMEDIT
15128 if test -n "$NMEDIT"; then
15129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15130 printf "%s\n" "$NMEDIT" >&6; }
15131 else
15132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15133 printf "%s\n" "no" >&6; }
15134 fi
15135
15136
15137 fi
15138 if test -z "$ac_cv_prog_NMEDIT"; then
15139 ac_ct_NMEDIT=$NMEDIT
15140 # Extract the first word of "nmedit", so it can be a program name with args.
15141 set dummy nmedit; ac_word=$2
15142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15143 printf %s "checking for $ac_word... " >&6; }
15144 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
15145 then :
15146 printf %s "(cached) " >&6
15147 else case e in #(
15148 e) if test -n "$ac_ct_NMEDIT"; then
15149 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15150 else
15151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15152 for as_dir in $PATH
15153 do
15154 IFS=$as_save_IFS
15155 case $as_dir in #(((
15156 '') as_dir=./ ;;
15157 */) ;;
15158 *) as_dir=$as_dir/ ;;
15159 esac
15160 for ac_exec_ext in '' $ac_executable_extensions; do
15161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15162 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15164 break 2
15165 fi
15166 done
15167 done
15168 IFS=$as_save_IFS
15169
15170 fi ;;
15171 esac
15172 fi
15173 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15174 if test -n "$ac_ct_NMEDIT"; then
15175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15176 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
15177 else
15178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15179 printf "%s\n" "no" >&6; }
15180 fi
15181
15182 if test "x$ac_ct_NMEDIT" = x; then
15183 NMEDIT=":"
15184 else
15185 case $cross_compiling:$ac_tool_warned in
15186 yes:)
15187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15188 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15189 ac_tool_warned=yes ;;
15190 esac
15191 NMEDIT=$ac_ct_NMEDIT
15192 fi
15193 else
15194 NMEDIT="$ac_cv_prog_NMEDIT"
15195 fi
15196
15197 if test -n "$ac_tool_prefix"; then
15198 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15199 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15201 printf %s "checking for $ac_word... " >&6; }
15202 if test ${ac_cv_prog_LIPO+y}
15203 then :
15204 printf %s "(cached) " >&6
15205 else case e in #(
15206 e) if test -n "$LIPO"; then
15207 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15208 else
15209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15210 for as_dir in $PATH
15211 do
15212 IFS=$as_save_IFS
15213 case $as_dir in #(((
15214 '') as_dir=./ ;;
15215 */) ;;
15216 *) as_dir=$as_dir/ ;;
15217 esac
15218 for ac_exec_ext in '' $ac_executable_extensions; do
15219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15220 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15222 break 2
15223 fi
15224 done
15225 done
15226 IFS=$as_save_IFS
15227
15228 fi ;;
15229 esac
15230 fi
15231 LIPO=$ac_cv_prog_LIPO
15232 if test -n "$LIPO"; then
15233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15234 printf "%s\n" "$LIPO" >&6; }
15235 else
15236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15237 printf "%s\n" "no" >&6; }
15238 fi
15239
15240
15241 fi
15242 if test -z "$ac_cv_prog_LIPO"; then
15243 ac_ct_LIPO=$LIPO
15244 # Extract the first word of "lipo", so it can be a program name with args.
15245 set dummy lipo; ac_word=$2
15246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15247 printf %s "checking for $ac_word... " >&6; }
15248 if test ${ac_cv_prog_ac_ct_LIPO+y}
15249 then :
15250 printf %s "(cached) " >&6
15251 else case e in #(
15252 e) if test -n "$ac_ct_LIPO"; then
15253 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15254 else
15255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15256 for as_dir in $PATH
15257 do
15258 IFS=$as_save_IFS
15259 case $as_dir in #(((
15260 '') as_dir=./ ;;
15261 */) ;;
15262 *) as_dir=$as_dir/ ;;
15263 esac
15264 for ac_exec_ext in '' $ac_executable_extensions; do
15265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15266 ac_cv_prog_ac_ct_LIPO="lipo"
15267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15268 break 2
15269 fi
15270 done
15271 done
15272 IFS=$as_save_IFS
15273
15274 fi ;;
15275 esac
15276 fi
15277 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15278 if test -n "$ac_ct_LIPO"; then
15279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15280 printf "%s\n" "$ac_ct_LIPO" >&6; }
15281 else
15282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15283 printf "%s\n" "no" >&6; }
15284 fi
15285
15286 if test "x$ac_ct_LIPO" = x; then
15287 LIPO=":"
15288 else
15289 case $cross_compiling:$ac_tool_warned in
15290 yes:)
15291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15292 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15293 ac_tool_warned=yes ;;
15294 esac
15295 LIPO=$ac_ct_LIPO
15296 fi
15297 else
15298 LIPO="$ac_cv_prog_LIPO"
15299 fi
15300
15301 if test -n "$ac_tool_prefix"; then
15302 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15303 set dummy ${ac_tool_prefix}otool; ac_word=$2
15304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15305 printf %s "checking for $ac_word... " >&6; }
15306 if test ${ac_cv_prog_OTOOL+y}
15307 then :
15308 printf %s "(cached) " >&6
15309 else case e in #(
15310 e) if test -n "$OTOOL"; then
15311 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15312 else
15313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15314 for as_dir in $PATH
15315 do
15316 IFS=$as_save_IFS
15317 case $as_dir in #(((
15318 '') as_dir=./ ;;
15319 */) ;;
15320 *) as_dir=$as_dir/ ;;
15321 esac
15322 for ac_exec_ext in '' $ac_executable_extensions; do
15323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15324 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15326 break 2
15327 fi
15328 done
15329 done
15330 IFS=$as_save_IFS
15331
15332 fi ;;
15333 esac
15334 fi
15335 OTOOL=$ac_cv_prog_OTOOL
15336 if test -n "$OTOOL"; then
15337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15338 printf "%s\n" "$OTOOL" >&6; }
15339 else
15340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15341 printf "%s\n" "no" >&6; }
15342 fi
15343
15344
15345 fi
15346 if test -z "$ac_cv_prog_OTOOL"; then
15347 ac_ct_OTOOL=$OTOOL
15348 # Extract the first word of "otool", so it can be a program name with args.
15349 set dummy otool; ac_word=$2
15350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15351 printf %s "checking for $ac_word... " >&6; }
15352 if test ${ac_cv_prog_ac_ct_OTOOL+y}
15353 then :
15354 printf %s "(cached) " >&6
15355 else case e in #(
15356 e) if test -n "$ac_ct_OTOOL"; then
15357 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15358 else
15359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15360 for as_dir in $PATH
15361 do
15362 IFS=$as_save_IFS
15363 case $as_dir in #(((
15364 '') as_dir=./ ;;
15365 */) ;;
15366 *) as_dir=$as_dir/ ;;
15367 esac
15368 for ac_exec_ext in '' $ac_executable_extensions; do
15369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15370 ac_cv_prog_ac_ct_OTOOL="otool"
15371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15372 break 2
15373 fi
15374 done
15375 done
15376 IFS=$as_save_IFS
15377
15378 fi ;;
15379 esac
15380 fi
15381 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15382 if test -n "$ac_ct_OTOOL"; then
15383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15384 printf "%s\n" "$ac_ct_OTOOL" >&6; }
15385 else
15386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15387 printf "%s\n" "no" >&6; }
15388 fi
15389
15390 if test "x$ac_ct_OTOOL" = x; then
15391 OTOOL=":"
15392 else
15393 case $cross_compiling:$ac_tool_warned in
15394 yes:)
15395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15396 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15397 ac_tool_warned=yes ;;
15398 esac
15399 OTOOL=$ac_ct_OTOOL
15400 fi
15401 else
15402 OTOOL="$ac_cv_prog_OTOOL"
15403 fi
15404
15405 if test -n "$ac_tool_prefix"; then
15406 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15407 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15409 printf %s "checking for $ac_word... " >&6; }
15410 if test ${ac_cv_prog_OTOOL64+y}
15411 then :
15412 printf %s "(cached) " >&6
15413 else case e in #(
15414 e) if test -n "$OTOOL64"; then
15415 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15416 else
15417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15418 for as_dir in $PATH
15419 do
15420 IFS=$as_save_IFS
15421 case $as_dir in #(((
15422 '') as_dir=./ ;;
15423 */) ;;
15424 *) as_dir=$as_dir/ ;;
15425 esac
15426 for ac_exec_ext in '' $ac_executable_extensions; do
15427 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15428 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15430 break 2
15431 fi
15432 done
15433 done
15434 IFS=$as_save_IFS
15435
15436 fi ;;
15437 esac
15438 fi
15439 OTOOL64=$ac_cv_prog_OTOOL64
15440 if test -n "$OTOOL64"; then
15441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15442 printf "%s\n" "$OTOOL64" >&6; }
15443 else
15444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15445 printf "%s\n" "no" >&6; }
15446 fi
15447
15448
15449 fi
15450 if test -z "$ac_cv_prog_OTOOL64"; then
15451 ac_ct_OTOOL64=$OTOOL64
15452 # Extract the first word of "otool64", so it can be a program name with args.
15453 set dummy otool64; ac_word=$2
15454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15455 printf %s "checking for $ac_word... " >&6; }
15456 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
15457 then :
15458 printf %s "(cached) " >&6
15459 else case e in #(
15460 e) if test -n "$ac_ct_OTOOL64"; then
15461 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15462 else
15463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15464 for as_dir in $PATH
15465 do
15466 IFS=$as_save_IFS
15467 case $as_dir in #(((
15468 '') as_dir=./ ;;
15469 */) ;;
15470 *) as_dir=$as_dir/ ;;
15471 esac
15472 for ac_exec_ext in '' $ac_executable_extensions; do
15473 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15474 ac_cv_prog_ac_ct_OTOOL64="otool64"
15475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15476 break 2
15477 fi
15478 done
15479 done
15480 IFS=$as_save_IFS
15481
15482 fi ;;
15483 esac
15484 fi
15485 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15486 if test -n "$ac_ct_OTOOL64"; then
15487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15488 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
15489 else
15490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15491 printf "%s\n" "no" >&6; }
15492 fi
15493
15494 if test "x$ac_ct_OTOOL64" = x; then
15495 OTOOL64=":"
15496 else
15497 case $cross_compiling:$ac_tool_warned in
15498 yes:)
15499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15500 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15501 ac_tool_warned=yes ;;
15502 esac
15503 OTOOL64=$ac_ct_OTOOL64
15504 fi
15505 else
15506 OTOOL64="$ac_cv_prog_OTOOL64"
15507 fi
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
15534
15535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15536 printf %s "checking for -single_module linker flag... " >&6; }
15537 if test ${lt_cv_apple_cc_single_mod+y}
15538 then :
15539 printf %s "(cached) " >&6
15540 else case e in #(
15541 e) lt_cv_apple_cc_single_mod=no
15542 if test -z "$LT_MULTI_MODULE"; then
15543 # By default we will add the -single_module flag. You can override
15544 # by either setting the environment variable LT_MULTI_MODULE
15545 # non-empty at configure time, or by adding -multi_module to the
15546 # link flags.
15547 rm -rf libconftest.dylib*
15548 echo "int foo(void){return 1;}" > conftest.c
15549 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15550 -dynamiclib -Wl,-single_module conftest.c" >&5
15551 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15552 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15553 _lt_result=$?
15554 # If there is a non-empty error log, and "single_module"
15555 # appears in it, assume the flag caused a linker warning
15556 if test -s conftest.err && $GREP single_module conftest.err; then
15557 cat conftest.err >&5
15558 # Otherwise, if the output was created with a 0 exit code from
15559 # the compiler, it worked.
15560 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
15561 lt_cv_apple_cc_single_mod=yes
15562 else
15563 cat conftest.err >&5
15564 fi
15565 rm -rf libconftest.dylib*
15566 rm -f conftest.*
15567 fi ;;
15568 esac
15569 fi
15570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15571 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
15572
15573 # Feature test to disable chained fixups since it is not
15574 # compatible with '-undefined dynamic_lookup'
15575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
15576 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
15577 if test ${lt_cv_support_no_fixup_chains+y}
15578 then :
15579 printf %s "(cached) " >&6
15580 else case e in #(
15581 e) save_LDFLAGS=$LDFLAGS
15582 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584 /* end confdefs.h. */
15585
15586 int
15587 main (void)
15588 {
15589
15590 ;
15591 return 0;
15592 }
15593 _ACEOF
15594 if ac_fn_c_try_link "$LINENO"
15595 then :
15596 lt_cv_support_no_fixup_chains=yes
15597 else case e in #(
15598 e) lt_cv_support_no_fixup_chains=no
15599 ;;
15600 esac
15601 fi
15602 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15603 conftest$ac_exeext conftest.$ac_ext
15604 LDFLAGS=$save_LDFLAGS
15605
15606 ;;
15607 esac
15608 fi
15609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
15610 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
15611
15612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15613 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
15614 if test ${lt_cv_ld_exported_symbols_list+y}
15615 then :
15616 printf %s "(cached) " >&6
15617 else case e in #(
15618 e) lt_cv_ld_exported_symbols_list=no
15619 save_LDFLAGS=$LDFLAGS
15620 echo "_main" > conftest.sym
15621 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h. */
15624
15625 int
15626 main (void)
15627 {
15628
15629 ;
15630 return 0;
15631 }
15632 _ACEOF
15633 if ac_fn_c_try_link "$LINENO"
15634 then :
15635 lt_cv_ld_exported_symbols_list=yes
15636 else case e in #(
15637 e) lt_cv_ld_exported_symbols_list=no ;;
15638 esac
15639 fi
15640 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15641 conftest$ac_exeext conftest.$ac_ext
15642 LDFLAGS=$save_LDFLAGS
15643 ;;
15644 esac
15645 fi
15646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15647 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
15648
15649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15650 printf %s "checking for -force_load linker flag... " >&6; }
15651 if test ${lt_cv_ld_force_load+y}
15652 then :
15653 printf %s "(cached) " >&6
15654 else case e in #(
15655 e) lt_cv_ld_force_load=no
15656 cat > conftest.c << _LT_EOF
15657 int forced_loaded() { return 2;}
15658 _LT_EOF
15659 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15660 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15661 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
15662 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
15663 echo "$RANLIB libconftest.a" >&5
15664 $RANLIB libconftest.a 2>&5
15665 cat > conftest.c << _LT_EOF
15666 int main(void) { return 0;}
15667 _LT_EOF
15668 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15669 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15670 _lt_result=$?
15671 if test -s conftest.err && $GREP force_load conftest.err; then
15672 cat conftest.err >&5
15673 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
15674 lt_cv_ld_force_load=yes
15675 else
15676 cat conftest.err >&5
15677 fi
15678 rm -f conftest.err libconftest.a conftest conftest.c
15679 rm -rf conftest.dSYM
15680 ;;
15681 esac
15682 fi
15683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15684 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
15685 case $host_os in
15686 rhapsody* | darwin1.[012])
15687 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
15688 darwin1.*)
15689 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15690 darwin*)
15691 case $MACOSX_DEPLOYMENT_TARGET,$host in
15692 10.[012],*|,*powerpc*-darwin[5-8]*)
15693 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15694 *)
15695 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
15696 if test yes = "$lt_cv_support_no_fixup_chains"; then
15697 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
15698 fi
15699 ;;
15700 esac
15701 ;;
15702 esac
15703 if test yes = "$lt_cv_apple_cc_single_mod"; then
15704 _lt_dar_single_mod='$single_module'
15705 fi
15706 _lt_dar_needs_single_mod=no
15707 case $host_os in
15708 rhapsody* | darwin1.*)
15709 _lt_dar_needs_single_mod=yes ;;
15710 darwin*)
15711 # When targeting Mac OS X 10.4 (darwin 8) or later,
15712 # -single_module is the default and -multi_module is unsupported.
15713 # The toolchain on macOS 10.14 (darwin 18) and later cannot
15714 # target any OS version that needs -single_module.
15715 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15716 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
15717 _lt_dar_needs_single_mod=yes ;;
15718 esac
15719 ;;
15720 esac
15721 if test yes = "$lt_cv_ld_exported_symbols_list"; then
15722 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
15723 else
15724 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
15725 fi
15726 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
15727 _lt_dsymutil='~$DSYMUTIL $lib || :'
15728 else
15729 _lt_dsymutil=
15730 fi
15731 ;;
15732 esac
15733
15734 # func_munge_path_list VARIABLE PATH
15735 # -----------------------------------
15736 # VARIABLE is name of variable containing _space_ separated list of
15737 # directories to be munged by the contents of PATH, which is string
15738 # having a format:
15739 # "DIR[:DIR]:"
15740 # string "DIR[ DIR]" will be prepended to VARIABLE
15741 # ":DIR[:DIR]"
15742 # string "DIR[ DIR]" will be appended to VARIABLE
15743 # "DIRP[:DIRP]::[DIRA:]DIRA"
15744 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15745 # "DIRA[ DIRA]" will be appended to VARIABLE
15746 # "DIR[:DIR]"
15747 # VARIABLE will be replaced by "DIR[ DIR]"
15748 func_munge_path_list ()
15749 {
15750 case x$2 in
15751 x)
15752 ;;
15753 *:)
15754 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15755 ;;
15756 x:*)
15757 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15758 ;;
15759 *::*)
15760 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15761 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15762 ;;
15763 *)
15764 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15765 ;;
15766 esac
15767 }
15768
15769 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15770 "
15771 if test "x$ac_cv_header_dlfcn_h" = xyes
15772 then :
15773 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15774
15775 fi
15776
15777
15778
15779
15780 func_stripname_cnf ()
15781 {
15782 case $2 in
15783 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
15784 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
15785 esac
15786 } # func_stripname_cnf
15787
15788
15789
15790
15791
15792 # Set options
15793 enable_win32_dll=yes
15794
15795 case $host in
15796 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
15797 if test -n "$ac_tool_prefix"; then
15798 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
15799 set dummy ${ac_tool_prefix}as; ac_word=$2
15800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15801 printf %s "checking for $ac_word... " >&6; }
15802 if test ${ac_cv_prog_AS+y}
15803 then :
15804 printf %s "(cached) " >&6
15805 else case e in #(
15806 e) if test -n "$AS"; then
15807 ac_cv_prog_AS="$AS" # Let the user override the test.
15808 else
15809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15810 for as_dir in $PATH
15811 do
15812 IFS=$as_save_IFS
15813 case $as_dir in #(((
15814 '') as_dir=./ ;;
15815 */) ;;
15816 *) as_dir=$as_dir/ ;;
15817 esac
15818 for ac_exec_ext in '' $ac_executable_extensions; do
15819 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15820 ac_cv_prog_AS="${ac_tool_prefix}as"
15821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15822 break 2
15823 fi
15824 done
15825 done
15826 IFS=$as_save_IFS
15827
15828 fi ;;
15829 esac
15830 fi
15831 AS=$ac_cv_prog_AS
15832 if test -n "$AS"; then
15833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
15834 printf "%s\n" "$AS" >&6; }
15835 else
15836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15837 printf "%s\n" "no" >&6; }
15838 fi
15839
15840
15841 fi
15842 if test -z "$ac_cv_prog_AS"; then
15843 ac_ct_AS=$AS
15844 # Extract the first word of "as", so it can be a program name with args.
15845 set dummy as; ac_word=$2
15846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15847 printf %s "checking for $ac_word... " >&6; }
15848 if test ${ac_cv_prog_ac_ct_AS+y}
15849 then :
15850 printf %s "(cached) " >&6
15851 else case e in #(
15852 e) if test -n "$ac_ct_AS"; then
15853 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
15854 else
15855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15856 for as_dir in $PATH
15857 do
15858 IFS=$as_save_IFS
15859 case $as_dir in #(((
15860 '') as_dir=./ ;;
15861 */) ;;
15862 *) as_dir=$as_dir/ ;;
15863 esac
15864 for ac_exec_ext in '' $ac_executable_extensions; do
15865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15866 ac_cv_prog_ac_ct_AS="as"
15867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15868 break 2
15869 fi
15870 done
15871 done
15872 IFS=$as_save_IFS
15873
15874 fi ;;
15875 esac
15876 fi
15877 ac_ct_AS=$ac_cv_prog_ac_ct_AS
15878 if test -n "$ac_ct_AS"; then
15879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
15880 printf "%s\n" "$ac_ct_AS" >&6; }
15881 else
15882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15883 printf "%s\n" "no" >&6; }
15884 fi
15885
15886 if test "x$ac_ct_AS" = x; then
15887 AS="false"
15888 else
15889 case $cross_compiling:$ac_tool_warned in
15890 yes:)
15891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15892 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15893 ac_tool_warned=yes ;;
15894 esac
15895 AS=$ac_ct_AS
15896 fi
15897 else
15898 AS="$ac_cv_prog_AS"
15899 fi
15900
15901 if test -n "$ac_tool_prefix"; then
15902 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15903 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15905 printf %s "checking for $ac_word... " >&6; }
15906 if test ${ac_cv_prog_DLLTOOL+y}
15907 then :
15908 printf %s "(cached) " >&6
15909 else case e in #(
15910 e) if test -n "$DLLTOOL"; then
15911 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15912 else
15913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15914 for as_dir in $PATH
15915 do
15916 IFS=$as_save_IFS
15917 case $as_dir in #(((
15918 '') as_dir=./ ;;
15919 */) ;;
15920 *) as_dir=$as_dir/ ;;
15921 esac
15922 for ac_exec_ext in '' $ac_executable_extensions; do
15923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15924 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15926 break 2
15927 fi
15928 done
15929 done
15930 IFS=$as_save_IFS
15931
15932 fi ;;
15933 esac
15934 fi
15935 DLLTOOL=$ac_cv_prog_DLLTOOL
15936 if test -n "$DLLTOOL"; then
15937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
15938 printf "%s\n" "$DLLTOOL" >&6; }
15939 else
15940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941 printf "%s\n" "no" >&6; }
15942 fi
15943
15944
15945 fi
15946 if test -z "$ac_cv_prog_DLLTOOL"; then
15947 ac_ct_DLLTOOL=$DLLTOOL
15948 # Extract the first word of "dlltool", so it can be a program name with args.
15949 set dummy dlltool; ac_word=$2
15950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15951 printf %s "checking for $ac_word... " >&6; }
15952 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
15953 then :
15954 printf %s "(cached) " >&6
15955 else case e in #(
15956 e) if test -n "$ac_ct_DLLTOOL"; then
15957 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15958 else
15959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15960 for as_dir in $PATH
15961 do
15962 IFS=$as_save_IFS
15963 case $as_dir in #(((
15964 '') as_dir=./ ;;
15965 */) ;;
15966 *) as_dir=$as_dir/ ;;
15967 esac
15968 for ac_exec_ext in '' $ac_executable_extensions; do
15969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15970 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15972 break 2
15973 fi
15974 done
15975 done
15976 IFS=$as_save_IFS
15977
15978 fi ;;
15979 esac
15980 fi
15981 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15982 if test -n "$ac_ct_DLLTOOL"; then
15983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
15984 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
15985 else
15986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15987 printf "%s\n" "no" >&6; }
15988 fi
15989
15990 if test "x$ac_ct_DLLTOOL" = x; then
15991 DLLTOOL="false"
15992 else
15993 case $cross_compiling:$ac_tool_warned in
15994 yes:)
15995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15996 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15997 ac_tool_warned=yes ;;
15998 esac
15999 DLLTOOL=$ac_ct_DLLTOOL
16000 fi
16001 else
16002 DLLTOOL="$ac_cv_prog_DLLTOOL"
16003 fi
16004
16005 if test -n "$ac_tool_prefix"; then
16006 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16007 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16009 printf %s "checking for $ac_word... " >&6; }
16010 if test ${ac_cv_prog_OBJDUMP+y}
16011 then :
16012 printf %s "(cached) " >&6
16013 else case e in #(
16014 e) if test -n "$OBJDUMP"; then
16015 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16016 else
16017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16018 for as_dir in $PATH
16019 do
16020 IFS=$as_save_IFS
16021 case $as_dir in #(((
16022 '') as_dir=./ ;;
16023 */) ;;
16024 *) as_dir=$as_dir/ ;;
16025 esac
16026 for ac_exec_ext in '' $ac_executable_extensions; do
16027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16028 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16030 break 2
16031 fi
16032 done
16033 done
16034 IFS=$as_save_IFS
16035
16036 fi ;;
16037 esac
16038 fi
16039 OBJDUMP=$ac_cv_prog_OBJDUMP
16040 if test -n "$OBJDUMP"; then
16041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16042 printf "%s\n" "$OBJDUMP" >&6; }
16043 else
16044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16045 printf "%s\n" "no" >&6; }
16046 fi
16047
16048
16049 fi
16050 if test -z "$ac_cv_prog_OBJDUMP"; then
16051 ac_ct_OBJDUMP=$OBJDUMP
16052 # Extract the first word of "objdump", so it can be a program name with args.
16053 set dummy objdump; ac_word=$2
16054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16055 printf %s "checking for $ac_word... " >&6; }
16056 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
16057 then :
16058 printf %s "(cached) " >&6
16059 else case e in #(
16060 e) if test -n "$ac_ct_OBJDUMP"; then
16061 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16062 else
16063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16064 for as_dir in $PATH
16065 do
16066 IFS=$as_save_IFS
16067 case $as_dir in #(((
16068 '') as_dir=./ ;;
16069 */) ;;
16070 *) as_dir=$as_dir/ ;;
16071 esac
16072 for ac_exec_ext in '' $ac_executable_extensions; do
16073 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16074 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16076 break 2
16077 fi
16078 done
16079 done
16080 IFS=$as_save_IFS
16081
16082 fi ;;
16083 esac
16084 fi
16085 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16086 if test -n "$ac_ct_OBJDUMP"; then
16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16088 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
16089 else
16090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16091 printf "%s\n" "no" >&6; }
16092 fi
16093
16094 if test "x$ac_ct_OBJDUMP" = x; then
16095 OBJDUMP="false"
16096 else
16097 case $cross_compiling:$ac_tool_warned in
16098 yes:)
16099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16100 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16101 ac_tool_warned=yes ;;
16102 esac
16103 OBJDUMP=$ac_ct_OBJDUMP
16104 fi
16105 else
16106 OBJDUMP="$ac_cv_prog_OBJDUMP"
16107 fi
16108
16109 ;;
16110 esac
16111
16112 test -z "$AS" && AS=as
16113
16114
16115
16116
16117
16118 test -z "$DLLTOOL" && DLLTOOL=dlltool
16119
16120
16121
16122
16123
16124 test -z "$OBJDUMP" && OBJDUMP=objdump
16125
16126
16127
16128
16129 enable_dlopen=yes
16130
16131
16132
16133
16134
16135 # Check whether --enable-shared was given.
16136 if test ${enable_shared+y}
16137 then :
16138 enableval=$enable_shared; p=${PACKAGE-default}
16139 case $enableval in
16140 yes) enable_shared=yes ;;
16141 no) enable_shared=no ;;
16142 *)
16143 enable_shared=no
16144 # Look at the argument we got. We use all the common list separators.
16145 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16146 for pkg in $enableval; do
16147 IFS=$lt_save_ifs
16148 if test "X$pkg" = "X$p"; then
16149 enable_shared=yes
16150 fi
16151 done
16152 IFS=$lt_save_ifs
16153 ;;
16154 esac
16155 else case e in #(
16156 e) enable_shared=yes ;;
16157 esac
16158 fi
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168 # Check whether --enable-static was given.
16169 if test ${enable_static+y}
16170 then :
16171 enableval=$enable_static; p=${PACKAGE-default}
16172 case $enableval in
16173 yes) enable_static=yes ;;
16174 no) enable_static=no ;;
16175 *)
16176 enable_static=no
16177 # Look at the argument we got. We use all the common list separators.
16178 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16179 for pkg in $enableval; do
16180 IFS=$lt_save_ifs
16181 if test "X$pkg" = "X$p"; then
16182 enable_static=yes
16183 fi
16184 done
16185 IFS=$lt_save_ifs
16186 ;;
16187 esac
16188 else case e in #(
16189 e) enable_static=yes ;;
16190 esac
16191 fi
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201 # Check whether --enable-pic was given.
16202 if test ${enable_pic+y}
16203 then :
16204 enableval=$enable_pic; lt_p=${PACKAGE-default}
16205 case $enableval in
16206 yes|no) pic_mode=$enableval ;;
16207 *)
16208 pic_mode=default
16209 # Look at the argument we got. We use all the common list separators.
16210 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16211 for lt_pkg in $enableval; do
16212 IFS=$lt_save_ifs
16213 if test "X$lt_pkg" = "X$lt_p"; then
16214 pic_mode=yes
16215 fi
16216 done
16217 IFS=$lt_save_ifs
16218 ;;
16219 esac
16220 else case e in #(
16221 e) # Check whether --with-pic was given.
16222 if test ${with_pic+y}
16223 then :
16224 withval=$with_pic; lt_p=${PACKAGE-default}
16225 case $withval in
16226 yes|no) pic_mode=$withval ;;
16227 *)
16228 pic_mode=default
16229 # Look at the argument we got. We use all the common list separators.
16230 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16231 for lt_pkg in $withval; do
16232 IFS=$lt_save_ifs
16233 if test "X$lt_pkg" = "X$lt_p"; then
16234 pic_mode=yes
16235 fi
16236 done
16237 IFS=$lt_save_ifs
16238 ;;
16239 esac
16240 else case e in #(
16241 e) pic_mode=default ;;
16242 esac
16243 fi
16244
16245 ;;
16246 esac
16247 fi
16248
16249
16250
16251
16252
16253
16254
16255
16256 # Check whether --enable-fast-install was given.
16257 if test ${enable_fast_install+y}
16258 then :
16259 enableval=$enable_fast_install; p=${PACKAGE-default}
16260 case $enableval in
16261 yes) enable_fast_install=yes ;;
16262 no) enable_fast_install=no ;;
16263 *)
16264 enable_fast_install=no
16265 # Look at the argument we got. We use all the common list separators.
16266 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16267 for pkg in $enableval; do
16268 IFS=$lt_save_ifs
16269 if test "X$pkg" = "X$p"; then
16270 enable_fast_install=yes
16271 fi
16272 done
16273 IFS=$lt_save_ifs
16274 ;;
16275 esac
16276 else case e in #(
16277 e) enable_fast_install=yes ;;
16278 esac
16279 fi
16280
16281
16282
16283
16284
16285
16286
16287
16288 shared_archive_member_spec=
16289 case $host,$enable_shared in
16290 power*-*-aix[5-9]*,yes)
16291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
16292 printf %s "checking which variant of shared library versioning to provide... " >&6; }
16293 # Check whether --enable-aix-soname was given.
16294 if test ${enable_aix_soname+y}
16295 then :
16296 enableval=$enable_aix_soname; case $enableval in
16297 aix|svr4|both)
16298 ;;
16299 *)
16300 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
16301 ;;
16302 esac
16303 lt_cv_with_aix_soname=$enable_aix_soname
16304 else case e in #(
16305 e) # Check whether --with-aix-soname was given.
16306 if test ${with_aix_soname+y}
16307 then :
16308 withval=$with_aix_soname; case $withval in
16309 aix|svr4|both)
16310 ;;
16311 *)
16312 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
16313 ;;
16314 esac
16315 lt_cv_with_aix_soname=$with_aix_soname
16316 else case e in #(
16317 e) if test ${lt_cv_with_aix_soname+y}
16318 then :
16319 printf %s "(cached) " >&6
16320 else case e in #(
16321 e) lt_cv_with_aix_soname=aix ;;
16322 esac
16323 fi
16324 ;;
16325 esac
16326 fi
16327
16328 enable_aix_soname=$lt_cv_with_aix_soname ;;
16329 esac
16330 fi
16331
16332 with_aix_soname=$enable_aix_soname
16333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
16334 printf "%s\n" "$with_aix_soname" >&6; }
16335 if test aix != "$with_aix_soname"; then
16336 # For the AIX way of multilib, we name the shared archive member
16337 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
16338 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
16339 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
16340 # the AIX toolchain works better with OBJECT_MODE set (default 32).
16341 if test 64 = "${OBJECT_MODE-32}"; then
16342 shared_archive_member_spec=shr_64
16343 else
16344 shared_archive_member_spec=shr
16345 fi
16346 fi
16347 ;;
16348 *)
16349 with_aix_soname=aix
16350 ;;
16351 esac
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362 # This can be used to rebuild libtool when needed
16363 LIBTOOL_DEPS=$ltmain
16364
16365 # Always use our own libtool.
16366 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
16396
16397 test -z "$LN_S" && LN_S="ln -s"
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412 if test -n "${ZSH_VERSION+set}"; then
16413 setopt NO_GLOB_SUBST
16414 fi
16415
16416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16417 printf %s "checking for objdir... " >&6; }
16418 if test ${lt_cv_objdir+y}
16419 then :
16420 printf %s "(cached) " >&6
16421 else case e in #(
16422 e) rm -f .libs 2>/dev/null
16423 mkdir .libs 2>/dev/null
16424 if test -d .libs; then
16425 lt_cv_objdir=.libs
16426 else
16427 # MS-DOS does not allow filenames that begin with a dot.
16428 lt_cv_objdir=_libs
16429 fi
16430 rmdir .libs 2>/dev/null ;;
16431 esac
16432 fi
16433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16434 printf "%s\n" "$lt_cv_objdir" >&6; }
16435 objdir=$lt_cv_objdir
16436
16437
16438
16439
16440
16441 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
16442
16443
16444
16445
16446 case $host_os in
16447 aix3*)
16448 # AIX sometimes has problems with the GCC collect2 program. For some
16449 # reason, if we set the COLLECT_NAMES environment variable, the problems
16450 # vanish in a puff of smoke.
16451 if test set != "${COLLECT_NAMES+set}"; then
16452 COLLECT_NAMES=
16453 export COLLECT_NAMES
16454 fi
16455 ;;
16456 esac
16457
16458 # Global variables:
16459 ofile=libtool
16460 can_build_shared=yes
16461
16462 # All known linkers require a '.a' archive for static linking (except MSVC and
16463 # ICC, which need '.lib').
16464 libext=a
16465
16466 with_gnu_ld=$lt_cv_prog_gnu_ld
16467
16468 old_CC=$CC
16469 old_CFLAGS=$CFLAGS
16470
16471 # Set sane defaults for various variables
16472 test -z "$CC" && CC=cc
16473 test -z "$LTCC" && LTCC=$CC
16474 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16475 test -z "$LD" && LD=ld
16476 test -z "$ac_objext" && ac_objext=o
16477
16478 func_cc_basename $compiler
16479 cc_basename=$func_cc_basename_result
16480
16481
16482 # Only perform the check for file, if the check method requires it
16483 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16484 case $deplibs_check_method in
16485 file_magic*)
16486 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16488 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
16489 if test ${lt_cv_path_MAGIC_CMD+y}
16490 then :
16491 printf %s "(cached) " >&6
16492 else case e in #(
16493 e) case $MAGIC_CMD in
16494 [\\/*] | ?:[\\/]*)
16495 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
16496 ;;
16497 *)
16498 lt_save_MAGIC_CMD=$MAGIC_CMD
16499 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16500 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16501 for ac_dir in $ac_dummy; do
16502 IFS=$lt_save_ifs
16503 test -z "$ac_dir" && ac_dir=.
16504 if test -f "$ac_dir/${ac_tool_prefix}file"; then
16505 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
16506 if test -n "$file_magic_test_file"; then
16507 case $deplibs_check_method in
16508 "file_magic "*)
16509 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16510 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16512 $EGREP "$file_magic_regex" > /dev/null; then
16513 :
16514 else
16515 cat <<_LT_EOF 1>&2
16516
16517 *** Warning: the command libtool uses to detect shared libraries,
16518 *** $file_magic_cmd, produces output that libtool cannot recognize.
16519 *** The result is that libtool may fail to recognize shared libraries
16520 *** as such. This will affect the creation of libtool libraries that
16521 *** depend on shared libraries, but programs linked with such libtool
16522 *** libraries will work regardless of this problem. Nevertheless, you
16523 *** may want to report the problem to your system manager and/or to
16524 *** [email protected]
16525
16526 _LT_EOF
16527 fi ;;
16528 esac
16529 fi
16530 break
16531 fi
16532 done
16533 IFS=$lt_save_ifs
16534 MAGIC_CMD=$lt_save_MAGIC_CMD
16535 ;;
16536 esac ;;
16537 esac
16538 fi
16539
16540 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16541 if test -n "$MAGIC_CMD"; then
16542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16543 printf "%s\n" "$MAGIC_CMD" >&6; }
16544 else
16545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16546 printf "%s\n" "no" >&6; }
16547 fi
16548
16549
16550
16551
16552
16553 if test -z "$lt_cv_path_MAGIC_CMD"; then
16554 if test -n "$ac_tool_prefix"; then
16555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16556 printf %s "checking for file... " >&6; }
16557 if test ${lt_cv_path_MAGIC_CMD+y}
16558 then :
16559 printf %s "(cached) " >&6
16560 else case e in #(
16561 e) case $MAGIC_CMD in
16562 [\\/*] | ?:[\\/]*)
16563 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
16564 ;;
16565 *)
16566 lt_save_MAGIC_CMD=$MAGIC_CMD
16567 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16568 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16569 for ac_dir in $ac_dummy; do
16570 IFS=$lt_save_ifs
16571 test -z "$ac_dir" && ac_dir=.
16572 if test -f "$ac_dir/file"; then
16573 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
16574 if test -n "$file_magic_test_file"; then
16575 case $deplibs_check_method in
16576 "file_magic "*)
16577 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16578 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16579 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16580 $EGREP "$file_magic_regex" > /dev/null; then
16581 :
16582 else
16583 cat <<_LT_EOF 1>&2
16584
16585 *** Warning: the command libtool uses to detect shared libraries,
16586 *** $file_magic_cmd, produces output that libtool cannot recognize.
16587 *** The result is that libtool may fail to recognize shared libraries
16588 *** as such. This will affect the creation of libtool libraries that
16589 *** depend on shared libraries, but programs linked with such libtool
16590 *** libraries will work regardless of this problem. Nevertheless, you
16591 *** may want to report the problem to your system manager and/or to
16592 *** [email protected]
16593
16594 _LT_EOF
16595 fi ;;
16596 esac
16597 fi
16598 break
16599 fi
16600 done
16601 IFS=$lt_save_ifs
16602 MAGIC_CMD=$lt_save_MAGIC_CMD
16603 ;;
16604 esac ;;
16605 esac
16606 fi
16607
16608 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16609 if test -n "$MAGIC_CMD"; then
16610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16611 printf "%s\n" "$MAGIC_CMD" >&6; }
16612 else
16613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16614 printf "%s\n" "no" >&6; }
16615 fi
16616
16617
16618 else
16619 MAGIC_CMD=:
16620 fi
16621 fi
16622
16623 fi
16624 ;;
16625 esac
16626
16627 # Use C for the default configuration in the libtool script
16628
16629 lt_save_CC=$CC
16630 ac_ext=c
16631 ac_cpp='$CPP $CPPFLAGS'
16632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16635
16636
16637 # Source file extension for C test sources.
16638 ac_ext=c
16639
16640 # Object file extension for compiled C test sources.
16641 objext=o
16642 objext=$objext
16643
16644 # Code to be used in simple compile tests
16645 lt_simple_compile_test_code="int some_variable = 0;"
16646
16647 # Code to be used in simple link tests
16648 lt_simple_link_test_code='int main(void){return(0);}'
16649
16650
16651
16652
16653
16654
16655
16656 # If no C compiler was specified, use CC.
16657 LTCC=${LTCC-"$CC"}
16658
16659 # If no C compiler flags were specified, use CFLAGS.
16660 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16661
16662 # Allow CC to be a program name with arguments.
16663 compiler=$CC
16664
16665 # Save the default compiler, since it gets overwritten when the other
16666 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16667 compiler_DEFAULT=$CC
16668
16669 # save warnings/boilerplate of simple test code
16670 ac_outfile=conftest.$ac_objext
16671 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16672 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16673 _lt_compiler_boilerplate=`cat conftest.err`
16674 $RM conftest*
16675
16676 ac_outfile=conftest.$ac_objext
16677 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16678 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16679 _lt_linker_boilerplate=`cat conftest.err`
16680 $RM -r conftest*
16681
16682
16683 ## CAVEAT EMPTOR:
16684 ## There is no encapsulation within the following macros, do not change
16685 ## the running order or otherwise move them around unless you know exactly
16686 ## what you are doing...
16687 if test -n "$compiler"; then
16688
16689 lt_prog_compiler_no_builtin_flag=
16690
16691 if test yes = "$GCC"; then
16692 case $cc_basename in
16693 nvcc*)
16694 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16695 *)
16696 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16697 esac
16698
16699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16700 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16701 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
16702 then :
16703 printf %s "(cached) " >&6
16704 else case e in #(
16705 e) lt_cv_prog_compiler_rtti_exceptions=no
16706 ac_outfile=conftest.$ac_objext
16707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16708 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
16709 # Insert the option either (1) after the last *FLAGS variable, or
16710 # (2) before a word containing "conftest.", or (3) at the end.
16711 # Note that $ac_compile itself does not contain backslashes and begins
16712 # with a dollar sign (not a hyphen), so the echo should work correctly.
16713 # The option is referenced via a variable to avoid confusing sed.
16714 lt_compile=`echo "$ac_compile" | $SED \
16715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16717 -e 's:$: $lt_compiler_flag:'`
16718 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16719 (eval "$lt_compile" 2>conftest.err)
16720 ac_status=$?
16721 cat conftest.err >&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 if (exit $ac_status) && test -s "$ac_outfile"; then
16724 # The compiler can only warn and ignore the option if not recognized
16725 # So say no if there are warnings other than the usual output.
16726 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16727 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16728 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16729 lt_cv_prog_compiler_rtti_exceptions=yes
16730 fi
16731 fi
16732 $RM conftest*
16733 ;;
16734 esac
16735 fi
16736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16737 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16738
16739 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
16740 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16741 else
16742 :
16743 fi
16744
16745 fi
16746
16747
16748
16749
16750
16751
16752 lt_prog_compiler_wl=
16753 lt_prog_compiler_pic=
16754 lt_prog_compiler_static=
16755
16756
16757 if test yes = "$GCC"; then
16758 lt_prog_compiler_wl='-Wl,'
16759 lt_prog_compiler_static='-static'
16760
16761 case $host_os in
16762 aix*)
16763 # All AIX code is PIC.
16764 if test ia64 = "$host_cpu"; then
16765 # AIX 5 now supports IA64 processor
16766 lt_prog_compiler_static='-Bstatic'
16767 fi
16768 lt_prog_compiler_pic='-fPIC'
16769 ;;
16770
16771 amigaos*)
16772 case $host_cpu in
16773 powerpc)
16774 # see comment about AmigaOS4 .so support
16775 lt_prog_compiler_pic='-fPIC'
16776 ;;
16777 m68k)
16778 # FIXME: we need at least 68020 code to build shared libraries, but
16779 # adding the '-m68020' flag to GCC prevents building anything better,
16780 # like '-m68040'.
16781 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16782 ;;
16783 esac
16784 ;;
16785
16786 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16787 # PIC is the default for these OSes.
16788 ;;
16789
16790 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
16791 # This hack is so that the source file can tell whether it is being
16792 # built for inclusion in a dll (and should export symbols for example).
16793 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16794 # (--disable-auto-import) libraries
16795 lt_prog_compiler_pic='-DDLL_EXPORT'
16796 case $host_os in
16797 os2*)
16798 lt_prog_compiler_static='$wl-static'
16799 ;;
16800 esac
16801 ;;
16802
16803 darwin* | rhapsody*)
16804 # PIC is the default on this platform
16805 # Common symbols not allowed in MH_DYLIB files
16806 lt_prog_compiler_pic='-fno-common'
16807 ;;
16808
16809 haiku*)
16810 # PIC is the default for Haiku.
16811 # The "-static" flag exists, but is broken.
16812 lt_prog_compiler_static=
16813 ;;
16814
16815 hpux*)
16816 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16817 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16818 # sets the default TLS model and affects inlining.
16819 case $host_cpu in
16820 hppa*64*)
16821 # +Z the default
16822 ;;
16823 *)
16824 lt_prog_compiler_pic='-fPIC'
16825 ;;
16826 esac
16827 ;;
16828
16829 interix[3-9]*)
16830 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16831 # Instead, we relocate shared libraries at runtime.
16832 ;;
16833
16834 msdosdjgpp*)
16835 # Just because we use GCC doesn't mean we suddenly get shared libraries
16836 # on systems that don't support them.
16837 lt_prog_compiler_can_build_shared=no
16838 enable_shared=no
16839 ;;
16840
16841 *nto* | *qnx*)
16842 # QNX uses GNU C++, but need to define -shared option too, otherwise
16843 # it will coredump.
16844 lt_prog_compiler_pic='-fPIC -shared'
16845 ;;
16846
16847 sysv4*MP*)
16848 if test -d /usr/nec; then
16849 lt_prog_compiler_pic=-Kconform_pic
16850 fi
16851 ;;
16852
16853 *)
16854 lt_prog_compiler_pic='-fPIC'
16855 ;;
16856 esac
16857
16858 case $cc_basename in
16859 nvcc*) # Cuda Compiler Driver 2.2
16860 lt_prog_compiler_wl='-Xlinker '
16861 if test -n "$lt_prog_compiler_pic"; then
16862 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
16863 fi
16864 ;;
16865 esac
16866 else
16867 # PORTME Check for flag to pass linker flags through the system compiler.
16868 case $host_os in
16869 aix*)
16870 lt_prog_compiler_wl='-Wl,'
16871 if test ia64 = "$host_cpu"; then
16872 # AIX 5 now supports IA64 processor
16873 lt_prog_compiler_static='-Bstatic'
16874 else
16875 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16876 fi
16877 ;;
16878
16879 darwin* | rhapsody*)
16880 # PIC is the default on this platform
16881 # Common symbols not allowed in MH_DYLIB files
16882 lt_prog_compiler_pic='-fno-common'
16883 case $cc_basename in
16884 nagfor*)
16885 # NAG Fortran compiler
16886 lt_prog_compiler_wl='-Wl,-Wl,,'
16887 lt_prog_compiler_pic='-PIC'
16888 lt_prog_compiler_static='-Bstatic'
16889 ;;
16890 esac
16891 ;;
16892
16893 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
16894 # This hack is so that the source file can tell whether it is being
16895 # built for inclusion in a dll (and should export symbols for example).
16896 lt_prog_compiler_pic='-DDLL_EXPORT'
16897 case $host_os in
16898 os2*)
16899 lt_prog_compiler_static='$wl-static'
16900 ;;
16901 esac
16902 ;;
16903
16904 hpux9* | hpux10* | hpux11*)
16905 lt_prog_compiler_wl='-Wl,'
16906 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16907 # not for PA HP-UX.
16908 case $host_cpu in
16909 hppa*64*|ia64*)
16910 # +Z the default
16911 ;;
16912 *)
16913 lt_prog_compiler_pic='+Z'
16914 ;;
16915 esac
16916 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16917 lt_prog_compiler_static='$wl-a ${wl}archive'
16918 ;;
16919
16920 irix5* | irix6* | nonstopux*)
16921 lt_prog_compiler_wl='-Wl,'
16922 # PIC (with -KPIC) is the default.
16923 lt_prog_compiler_static='-non_shared'
16924 ;;
16925
16926 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16927 case $cc_basename in
16928 # old Intel for x86_64, which still supported -KPIC.
16929 ecc*)
16930 lt_prog_compiler_wl='-Wl,'
16931 lt_prog_compiler_pic='-KPIC'
16932 lt_prog_compiler_static='-static'
16933 ;;
16934 *flang* | ftn | f18* | f95*)
16935 # Flang compiler.
16936 lt_prog_compiler_wl='-Wl,'
16937 lt_prog_compiler_pic='-fPIC'
16938 lt_prog_compiler_static='-static'
16939 ;;
16940 # icc used to be incompatible with GCC.
16941 # ICC 10 doesn't accept -KPIC any more.
16942 icc* | ifort*)
16943 lt_prog_compiler_wl='-Wl,'
16944 lt_prog_compiler_pic='-fPIC'
16945 lt_prog_compiler_static='-static'
16946 ;;
16947 # Lahey Fortran 8.1.
16948 lf95*)
16949 lt_prog_compiler_wl='-Wl,'
16950 lt_prog_compiler_pic='--shared'
16951 lt_prog_compiler_static='--static'
16952 ;;
16953 nagfor*)
16954 # NAG Fortran compiler
16955 lt_prog_compiler_wl='-Wl,-Wl,,'
16956 lt_prog_compiler_pic='-PIC'
16957 lt_prog_compiler_static='-Bstatic'
16958 ;;
16959 tcc*)
16960 # Fabrice Bellard et al's Tiny C Compiler
16961 lt_prog_compiler_wl='-Wl,'
16962 lt_prog_compiler_pic='-fPIC'
16963 lt_prog_compiler_static='-static'
16964 ;;
16965 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16966 # Portland Group compilers (*not* the Pentium gcc compiler,
16967 # which looks to be a dead project)
16968 lt_prog_compiler_wl='-Wl,'
16969 lt_prog_compiler_pic='-fpic'
16970 lt_prog_compiler_static='-Bstatic'
16971 ;;
16972 ccc*)
16973 lt_prog_compiler_wl='-Wl,'
16974 # All Alpha code is PIC.
16975 lt_prog_compiler_static='-non_shared'
16976 ;;
16977 xl* | bgxl* | bgf* | mpixl*)
16978 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16979 lt_prog_compiler_wl='-Wl,'
16980 lt_prog_compiler_pic='-qpic'
16981 lt_prog_compiler_static='-qstaticlink'
16982 ;;
16983 *)
16984 case `$CC -V 2>&1 | $SED 5q` in
16985 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16986 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16987 lt_prog_compiler_pic='-KPIC'
16988 lt_prog_compiler_static='-Bstatic'
16989 lt_prog_compiler_wl=''
16990 ;;
16991 *Sun\ F* | *Sun*Fortran*)
16992 lt_prog_compiler_pic='-KPIC'
16993 lt_prog_compiler_static='-Bstatic'
16994 lt_prog_compiler_wl='-Qoption ld '
16995 ;;
16996 *Sun\ C*)
16997 # Sun C 5.9
16998 lt_prog_compiler_pic='-KPIC'
16999 lt_prog_compiler_static='-Bstatic'
17000 lt_prog_compiler_wl='-Wl,'
17001 ;;
17002 *Intel*\ [CF]*Compiler*)
17003 lt_prog_compiler_wl='-Wl,'
17004 lt_prog_compiler_pic='-fPIC'
17005 lt_prog_compiler_static='-static'
17006 ;;
17007 *Portland\ Group*)
17008 lt_prog_compiler_wl='-Wl,'
17009 lt_prog_compiler_pic='-fpic'
17010 lt_prog_compiler_static='-Bstatic'
17011 ;;
17012 esac
17013 ;;
17014 esac
17015 ;;
17016
17017 newsos6)
17018 lt_prog_compiler_pic='-KPIC'
17019 lt_prog_compiler_static='-Bstatic'
17020 ;;
17021
17022 *-mlibc)
17023 lt_prog_compiler_wl='-Wl,'
17024 lt_prog_compiler_pic='-fPIC'
17025 lt_prog_compiler_static='-static'
17026 ;;
17027
17028 *nto* | *qnx*)
17029 # QNX uses GNU C++, but need to define -shared option too, otherwise
17030 # it will coredump.
17031 lt_prog_compiler_pic='-fPIC -shared'
17032 ;;
17033
17034 osf3* | osf4* | osf5*)
17035 lt_prog_compiler_wl='-Wl,'
17036 # All OSF/1 code is PIC.
17037 lt_prog_compiler_static='-non_shared'
17038 ;;
17039
17040 rdos*)
17041 lt_prog_compiler_static='-non_shared'
17042 ;;
17043
17044 serenity*)
17045 ;;
17046
17047 solaris*)
17048 lt_prog_compiler_pic='-KPIC'
17049 lt_prog_compiler_static='-Bstatic'
17050 case $cc_basename in
17051 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
17052 lt_prog_compiler_wl='-Qoption ld ';;
17053 *)
17054 lt_prog_compiler_wl='-Wl,';;
17055 esac
17056 ;;
17057
17058 sunos4*)
17059 lt_prog_compiler_wl='-Qoption ld '
17060 lt_prog_compiler_pic='-PIC'
17061 lt_prog_compiler_static='-Bstatic'
17062 ;;
17063
17064 sysv4 | sysv4.2uw2* | sysv4.3*)
17065 lt_prog_compiler_wl='-Wl,'
17066 lt_prog_compiler_pic='-KPIC'
17067 lt_prog_compiler_static='-Bstatic'
17068 ;;
17069
17070 sysv4*MP*)
17071 if test -d /usr/nec; then
17072 lt_prog_compiler_pic='-Kconform_pic'
17073 lt_prog_compiler_static='-Bstatic'
17074 fi
17075 ;;
17076
17077 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17078 lt_prog_compiler_wl='-Wl,'
17079 lt_prog_compiler_pic='-KPIC'
17080 lt_prog_compiler_static='-Bstatic'
17081 ;;
17082
17083 unicos*)
17084 lt_prog_compiler_wl='-Wl,'
17085 lt_prog_compiler_can_build_shared=no
17086 ;;
17087
17088 uts4*)
17089 lt_prog_compiler_pic='-pic'
17090 lt_prog_compiler_static='-Bstatic'
17091 ;;
17092
17093 *)
17094 lt_prog_compiler_can_build_shared=no
17095 ;;
17096 esac
17097 fi
17098
17099 case $host_os in
17100 # For platforms that do not support PIC, -DPIC is meaningless:
17101 *djgpp*)
17102 lt_prog_compiler_pic=
17103 ;;
17104 *)
17105 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17106 ;;
17107 esac
17108
17109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17110 printf %s "checking for $compiler option to produce PIC... " >&6; }
17111 if test ${lt_cv_prog_compiler_pic+y}
17112 then :
17113 printf %s "(cached) " >&6
17114 else case e in #(
17115 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
17116 esac
17117 fi
17118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
17119 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
17120 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
17121
17122 #
17123 # Check to make sure the PIC flag actually works.
17124 #
17125 if test -n "$lt_prog_compiler_pic"; then
17126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17127 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17128 if test ${lt_cv_prog_compiler_pic_works+y}
17129 then :
17130 printf %s "(cached) " >&6
17131 else case e in #(
17132 e) lt_cv_prog_compiler_pic_works=no
17133 ac_outfile=conftest.$ac_objext
17134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17135 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
17136 # Insert the option either (1) after the last *FLAGS variable, or
17137 # (2) before a word containing "conftest.", or (3) at the end.
17138 # Note that $ac_compile itself does not contain backslashes and begins
17139 # with a dollar sign (not a hyphen), so the echo should work correctly.
17140 # The option is referenced via a variable to avoid confusing sed.
17141 lt_compile=`echo "$ac_compile" | $SED \
17142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17144 -e 's:$: $lt_compiler_flag:'`
17145 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17146 (eval "$lt_compile" 2>conftest.err)
17147 ac_status=$?
17148 cat conftest.err >&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 if (exit $ac_status) && test -s "$ac_outfile"; then
17151 # The compiler can only warn and ignore the option if not recognized
17152 # So say no if there are warnings other than the usual output.
17153 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17155 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17156 lt_cv_prog_compiler_pic_works=yes
17157 fi
17158 fi
17159 $RM conftest*
17160 ;;
17161 esac
17162 fi
17163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17164 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
17165
17166 if test yes = "$lt_cv_prog_compiler_pic_works"; then
17167 case $lt_prog_compiler_pic in
17168 "" | " "*) ;;
17169 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17170 esac
17171 else
17172 lt_prog_compiler_pic=
17173 lt_prog_compiler_can_build_shared=no
17174 fi
17175
17176 fi
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188 #
17189 # Check to make sure the static flag actually works.
17190 #
17191 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17193 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17194 if test ${lt_cv_prog_compiler_static_works+y}
17195 then :
17196 printf %s "(cached) " >&6
17197 else case e in #(
17198 e) lt_cv_prog_compiler_static_works=no
17199 save_LDFLAGS=$LDFLAGS
17200 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17201 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17202 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17203 # The linker can only warn and ignore the option if not recognized
17204 # So say no if there are warnings
17205 if test -s conftest.err; then
17206 # Append any errors to the config.log.
17207 cat conftest.err 1>&5
17208 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17210 if diff conftest.exp conftest.er2 >/dev/null; then
17211 lt_cv_prog_compiler_static_works=yes
17212 fi
17213 else
17214 lt_cv_prog_compiler_static_works=yes
17215 fi
17216 fi
17217 $RM -r conftest*
17218 LDFLAGS=$save_LDFLAGS
17219 ;;
17220 esac
17221 fi
17222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17223 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
17224
17225 if test yes = "$lt_cv_prog_compiler_static_works"; then
17226 :
17227 else
17228 lt_prog_compiler_static=
17229 fi
17230
17231
17232
17233
17234
17235
17236
17237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17238 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17239 if test ${lt_cv_prog_compiler_c_o+y}
17240 then :
17241 printf %s "(cached) " >&6
17242 else case e in #(
17243 e) lt_cv_prog_compiler_c_o=no
17244 $RM -r conftest 2>/dev/null
17245 mkdir conftest
17246 cd conftest
17247 mkdir out
17248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17249
17250 lt_compiler_flag="-o out/conftest2.$ac_objext"
17251 # Insert the option either (1) after the last *FLAGS variable, or
17252 # (2) before a word containing "conftest.", or (3) at the end.
17253 # Note that $ac_compile itself does not contain backslashes and begins
17254 # with a dollar sign (not a hyphen), so the echo should work correctly.
17255 lt_compile=`echo "$ac_compile" | $SED \
17256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17258 -e 's:$: $lt_compiler_flag:'`
17259 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17260 (eval "$lt_compile" 2>out/conftest.err)
17261 ac_status=$?
17262 cat out/conftest.err >&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17265 then
17266 # The compiler can only warn and ignore the option if not recognized
17267 # So say no if there are warnings
17268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17269 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17270 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17271 lt_cv_prog_compiler_c_o=yes
17272 fi
17273 fi
17274 chmod u+w . 2>&5
17275 $RM conftest*
17276 # SGI C++ compiler will create directory out/ii_files/ for
17277 # template instantiation
17278 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17279 $RM out/* && rmdir out
17280 cd ..
17281 $RM -r conftest
17282 $RM conftest*
17283 ;;
17284 esac
17285 fi
17286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17287 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
17288
17289
17290
17291
17292
17293
17294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17295 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17296 if test ${lt_cv_prog_compiler_c_o+y}
17297 then :
17298 printf %s "(cached) " >&6
17299 else case e in #(
17300 e) lt_cv_prog_compiler_c_o=no
17301 $RM -r conftest 2>/dev/null
17302 mkdir conftest
17303 cd conftest
17304 mkdir out
17305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17306
17307 lt_compiler_flag="-o out/conftest2.$ac_objext"
17308 # Insert the option either (1) after the last *FLAGS variable, or
17309 # (2) before a word containing "conftest.", or (3) at the end.
17310 # Note that $ac_compile itself does not contain backslashes and begins
17311 # with a dollar sign (not a hyphen), so the echo should work correctly.
17312 lt_compile=`echo "$ac_compile" | $SED \
17313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17315 -e 's:$: $lt_compiler_flag:'`
17316 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17317 (eval "$lt_compile" 2>out/conftest.err)
17318 ac_status=$?
17319 cat out/conftest.err >&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17322 then
17323 # The compiler can only warn and ignore the option if not recognized
17324 # So say no if there are warnings
17325 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17326 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17327 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17328 lt_cv_prog_compiler_c_o=yes
17329 fi
17330 fi
17331 chmod u+w . 2>&5
17332 $RM conftest*
17333 # SGI C++ compiler will create directory out/ii_files/ for
17334 # template instantiation
17335 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17336 $RM out/* && rmdir out
17337 cd ..
17338 $RM -r conftest
17339 $RM conftest*
17340 ;;
17341 esac
17342 fi
17343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17344 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
17345
17346
17347
17348
17349 hard_links=nottested
17350 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
17351 # do not overwrite the value of need_locks provided by the user
17352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17353 printf %s "checking if we can lock with hard links... " >&6; }
17354 hard_links=yes
17355 $RM conftest*
17356 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17357 touch conftest.a
17358 ln conftest.a conftest.b 2>&5 || hard_links=no
17359 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17361 printf "%s\n" "$hard_links" >&6; }
17362 if test no = "$hard_links"; then
17363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17364 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17365 need_locks=warn
17366 fi
17367 else
17368 need_locks=no
17369 fi
17370
17371
17372
17373
17374
17375
17376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17377 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17378
17379 runpath_var=
17380 allow_undefined_flag=
17381 always_export_symbols=no
17382 archive_cmds=
17383 archive_expsym_cmds=
17384 compiler_needs_object=no
17385 enable_shared_with_static_runtimes=no
17386 export_dynamic_flag_spec=
17387 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17388 hardcode_automatic=no
17389 hardcode_direct=no
17390 hardcode_direct_absolute=no
17391 hardcode_libdir_flag_spec=
17392 hardcode_libdir_separator=
17393 hardcode_minus_L=no
17394 hardcode_shlibpath_var=unsupported
17395 inherit_rpath=no
17396 link_all_deplibs=unknown
17397 module_cmds=
17398 module_expsym_cmds=
17399 old_archive_from_new_cmds=
17400 old_archive_from_expsyms_cmds=
17401 thread_safe_flag_spec=
17402 whole_archive_flag_spec=
17403 # include_expsyms should be a list of space-separated symbols to be *always*
17404 # included in the symbol list
17405 include_expsyms=
17406 # exclude_expsyms can be an extended regexp of symbols to exclude
17407 # it will be wrapped by ' (' and ')$', so one must not match beginning or
17408 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
17409 # as well as any symbol that contains 'd'.
17410 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17411 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17412 # platforms (ab)use it in PIC code, but their linkers get confused if
17413 # the symbol is explicitly referenced. Since portable code cannot
17414 # rely on this symbol name, it's probably fine to never include it in
17415 # preloaded symbol tables.
17416 # Exclude shared library initialization/finalization symbols.
17417 extract_expsyms_cmds=
17418
17419 case $host_os in
17420 cygwin* | mingw* | windows* | pw32* | cegcc*)
17421 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
17422 # When not using gcc, we currently assume that we are using
17423 # Microsoft Visual C++ or Intel C++ Compiler.
17424 if test yes != "$GCC"; then
17425 with_gnu_ld=no
17426 fi
17427 ;;
17428 interix*)
17429 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
17430 with_gnu_ld=yes
17431 ;;
17432 esac
17433
17434 ld_shlibs=yes
17435
17436 # On some targets, GNU ld is compatible enough with the native linker
17437 # that we're better off using the native interface for both.
17438 lt_use_gnu_ld_interface=no
17439 if test yes = "$with_gnu_ld"; then
17440 case $host_os in
17441 aix*)
17442 # The AIX port of GNU ld has always aspired to compatibility
17443 # with the native linker. However, as the warning in the GNU ld
17444 # block says, versions before 2.19.5* couldn't really create working
17445 # shared libraries, regardless of the interface used.
17446 case `$LD -v 2>&1` in
17447 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17448 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17449 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17450 *)
17451 lt_use_gnu_ld_interface=yes
17452 ;;
17453 esac
17454 ;;
17455 *)
17456 lt_use_gnu_ld_interface=yes
17457 ;;
17458 esac
17459 fi
17460
17461 if test yes = "$lt_use_gnu_ld_interface"; then
17462 # If archive_cmds runs LD, not CC, wlarc should be empty
17463 wlarc='$wl'
17464
17465 # Set some defaults for GNU ld with shared library support. These
17466 # are reset later if shared libraries are not supported. Putting them
17467 # here allows them to be overridden if necessary.
17468 runpath_var=LD_RUN_PATH
17469 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17470 export_dynamic_flag_spec='$wl--export-dynamic'
17471 # ancient GNU ld didn't support --whole-archive et. al.
17472 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17473 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17474 else
17475 whole_archive_flag_spec=
17476 fi
17477 supports_anon_versioning=no
17478 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
17479 *GNU\ gold*) supports_anon_versioning=yes ;;
17480 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17481 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17482 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17483 *\ 2.11.*) ;; # other 2.11 versions
17484 *) supports_anon_versioning=yes ;;
17485 esac
17486
17487 # See if GNU ld supports shared libraries.
17488 case $host_os in
17489 aix[3-9]*)
17490 # On AIX/PPC, the GNU linker is very broken
17491 if test ia64 != "$host_cpu"; then
17492 ld_shlibs=no
17493 cat <<_LT_EOF 1>&2
17494
17495 *** Warning: the GNU linker, at least up to release 2.19, is reported
17496 *** to be unable to reliably create shared libraries on AIX.
17497 *** Therefore, libtool is disabling shared libraries support. If you
17498 *** really care for shared libraries, you may want to install binutils
17499 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17500 *** You will then need to restart the configuration process.
17501
17502 _LT_EOF
17503 fi
17504 ;;
17505
17506 amigaos*)
17507 case $host_cpu in
17508 powerpc)
17509 # see comment about AmigaOS4 .so support
17510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17511 archive_expsym_cmds=''
17512 ;;
17513 m68k)
17514 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)'
17515 hardcode_libdir_flag_spec='-L$libdir'
17516 hardcode_minus_L=yes
17517 ;;
17518 esac
17519 ;;
17520
17521 beos*)
17522 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17523 allow_undefined_flag=unsupported
17524 # Joseph Beckenbach <[email protected]> says some releases of gcc
17525 # support --undefined. This deserves some investigation. FIXME
17526 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17527 else
17528 ld_shlibs=no
17529 fi
17530 ;;
17531
17532 cygwin* | mingw* | windows* | pw32* | cegcc*)
17533 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17534 # as there is no search path for DLLs.
17535 hardcode_libdir_flag_spec='-L$libdir'
17536 export_dynamic_flag_spec='$wl--export-all-symbols'
17537 allow_undefined_flag=unsupported
17538 always_export_symbols=no
17539 enable_shared_with_static_runtimes=yes
17540 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'
17541 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17542 file_list_spec='@'
17543
17544 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17546 # If the export-symbols file already is a .def file, use it as
17547 # is; otherwise, prepend EXPORTS...
17548 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17549 cp $export_symbols $output_objdir/$soname.def;
17550 else
17551 echo EXPORTS > $output_objdir/$soname.def;
17552 cat $export_symbols >> $output_objdir/$soname.def;
17553 fi~
17554 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17555 else
17556 ld_shlibs=no
17557 fi
17558 ;;
17559
17560 haiku*)
17561 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17562 link_all_deplibs=no
17563 ;;
17564
17565 os2*)
17566 hardcode_libdir_flag_spec='-L$libdir'
17567 hardcode_minus_L=yes
17568 allow_undefined_flag=unsupported
17569 shrext_cmds=.dll
17570 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17571 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17572 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17573 $ECHO EXPORTS >> $output_objdir/$libname.def~
17574 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17575 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17576 emximp -o $lib $output_objdir/$libname.def'
17577 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17578 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17579 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17580 $ECHO EXPORTS >> $output_objdir/$libname.def~
17581 prefix_cmds="$SED"~
17582 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17583 prefix_cmds="$prefix_cmds -e 1d";
17584 fi~
17585 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17586 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17587 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17588 emximp -o $lib $output_objdir/$libname.def'
17589 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17590 enable_shared_with_static_runtimes=yes
17591 file_list_spec='@'
17592 ;;
17593
17594 interix[3-9]*)
17595 hardcode_direct=no
17596 hardcode_shlibpath_var=no
17597 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17598 export_dynamic_flag_spec='$wl-E'
17599 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17600 # Instead, shared libraries are loaded at an image base (0x10000000 by
17601 # default) and relocated if they conflict, which is a slow very memory
17602 # consuming and fragmenting process. To avoid this, we pick a random,
17603 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17604 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17605 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17606 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'
17607 ;;
17608
17609 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17610 tmp_diet=no
17611 if test linux-dietlibc = "$host_os"; then
17612 case $cc_basename in
17613 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17614 esac
17615 fi
17616 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17617 && test no = "$tmp_diet"
17618 then
17619 tmp_addflag=' $pic_flag'
17620 tmp_sharedflag='-shared'
17621 case $cc_basename,$host_cpu in
17622 pgcc*) # Portland Group C compiler
17623 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'
17624 tmp_addflag=' $pic_flag'
17625 ;;
17626 pgf77* | pgf90* | pgf95* | pgfortran*)
17627 # Portland Group f77 and f90 compilers
17628 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'
17629 tmp_addflag=' $pic_flag -Mnomain' ;;
17630 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17631 tmp_addflag=' -i_dynamic' ;;
17632 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17633 tmp_addflag=' -i_dynamic -nofor_main' ;;
17634 ifc* | ifort*) # Intel Fortran compiler
17635 tmp_addflag=' -nofor_main' ;;
17636 lf95*) # Lahey Fortran 8.1
17637 whole_archive_flag_spec=
17638 tmp_sharedflag='--shared' ;;
17639 nagfor*) # NAGFOR 5.3
17640 tmp_sharedflag='-Wl,-shared' ;;
17641 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17642 tmp_sharedflag='-qmkshrobj'
17643 tmp_addflag= ;;
17644 nvcc*) # Cuda Compiler Driver 2.2
17645 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'
17646 compiler_needs_object=yes
17647 ;;
17648 esac
17649 case `$CC -V 2>&1 | $SED 5q` in
17650 *Sun\ C*) # Sun C 5.9
17651 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'
17652 compiler_needs_object=yes
17653 tmp_sharedflag='-G' ;;
17654 *Sun\ F*) # Sun Fortran 8.3
17655 tmp_sharedflag='-G' ;;
17656 esac
17657 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17658
17659 if test yes = "$supports_anon_versioning"; then
17660 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17661 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17662 echo "local: *; };" >> $output_objdir/$libname.ver~
17663 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17664 fi
17665
17666 case $cc_basename in
17667 tcc*)
17668 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17669 export_dynamic_flag_spec='-rdynamic'
17670 ;;
17671 xlf* | bgf* | bgxlf* | mpixlf*)
17672 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17673 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17674 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17675 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
17676 if test yes = "$supports_anon_versioning"; then
17677 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17678 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17679 echo "local: *; };" >> $output_objdir/$libname.ver~
17680 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17681 fi
17682 ;;
17683 esac
17684 else
17685 ld_shlibs=no
17686 fi
17687 ;;
17688
17689 *-mlibc)
17690 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17691 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17692 ;;
17693
17694 netbsd* | netbsdelf*-gnu)
17695 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17696 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17697 wlarc=
17698 else
17699 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17700 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17701 fi
17702 ;;
17703
17704 solaris*)
17705 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17706 ld_shlibs=no
17707 cat <<_LT_EOF 1>&2
17708
17709 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17710 *** create shared libraries on Solaris systems. Therefore, libtool
17711 *** is disabling shared libraries support. We urge you to upgrade GNU
17712 *** binutils to release 2.9.1 or newer. Another option is to modify
17713 *** your PATH or compiler configuration so that the native linker is
17714 *** used, and then restart.
17715
17716 _LT_EOF
17717 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17718 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17719 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17720 else
17721 ld_shlibs=no
17722 fi
17723 ;;
17724
17725 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17726 case `$LD -v 2>&1` in
17727 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17728 ld_shlibs=no
17729 cat <<_LT_EOF 1>&2
17730
17731 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
17732 *** reliably create shared libraries on SCO systems. Therefore, libtool
17733 *** is disabling shared libraries support. We urge you to upgrade GNU
17734 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17735 *** your PATH or compiler configuration so that the native linker is
17736 *** used, and then restart.
17737
17738 _LT_EOF
17739 ;;
17740 *)
17741 # For security reasons, it is highly recommended that you always
17742 # use absolute paths for naming shared libraries, and exclude the
17743 # DT_RUNPATH tag from executables and libraries. But doing so
17744 # requires that you compile everything twice, which is a pain.
17745 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17746 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17748 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17749 else
17750 ld_shlibs=no
17751 fi
17752 ;;
17753 esac
17754 ;;
17755
17756 sunos4*)
17757 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17758 wlarc=
17759 hardcode_direct=yes
17760 hardcode_shlibpath_var=no
17761 ;;
17762
17763 *)
17764 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17765 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17766 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17767 else
17768 ld_shlibs=no
17769 fi
17770 ;;
17771 esac
17772
17773 if test no = "$ld_shlibs"; then
17774 runpath_var=
17775 hardcode_libdir_flag_spec=
17776 export_dynamic_flag_spec=
17777 whole_archive_flag_spec=
17778 fi
17779 else
17780 # PORTME fill in a description of your system's linker (not GNU ld)
17781 case $host_os in
17782 aix3*)
17783 allow_undefined_flag=unsupported
17784 always_export_symbols=yes
17785 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'
17786 # Note: this linker hardcodes the directories in LIBPATH if there
17787 # are no directories specified by -L.
17788 hardcode_minus_L=yes
17789 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
17790 # Neither direct hardcoding nor static linking is supported with a
17791 # broken collect2.
17792 hardcode_direct=unsupported
17793 fi
17794 ;;
17795
17796 aix[4-9]*)
17797 if test ia64 = "$host_cpu"; then
17798 # On IA64, the linker does run time linking by default, so we don't
17799 # have to do anything special.
17800 aix_use_runtimelinking=no
17801 exp_sym_flag='-Bexport'
17802 no_entry_flag=
17803 else
17804 # If we're using GNU nm, then we don't want the "-C" option.
17805 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17806 # Without the "-l" option, or with the "-B" option, AIX nm treats
17807 # weak defined symbols like other global defined symbols, whereas
17808 # GNU nm marks them as "W".
17809 # While the 'weak' keyword is ignored in the Export File, we need
17810 # it in the Import File for the 'aix-soname' feature, so we have
17811 # to replace the "-B" option with "-P" for AIX nm.
17812 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17813 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'
17814 else
17815 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'
17816 fi
17817 aix_use_runtimelinking=no
17818
17819 # Test if we are trying to use run time linking or normal
17820 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17821 # have runtime linking enabled, and use it for executables.
17822 # For shared libraries, we enable/disable runtime linking
17823 # depending on the kind of the shared library created -
17824 # when "with_aix_soname,aix_use_runtimelinking" is:
17825 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
17826 # "aix,yes" lib.so shared, rtl:yes, for executables
17827 # lib.a static archive
17828 # "both,no" lib.so.V(shr.o) shared, rtl:yes
17829 # lib.a(lib.so.V) shared, rtl:no, for executables
17830 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17831 # lib.a(lib.so.V) shared, rtl:no
17832 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
17833 # lib.a static archive
17834 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17835 for ld_flag in $LDFLAGS; do
17836 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
17837 aix_use_runtimelinking=yes
17838 break
17839 fi
17840 done
17841 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17842 # With aix-soname=svr4, we create the lib.so.V shared archives only,
17843 # so we don't have lib.a shared libs to link our executables.
17844 # We have to force runtime linking in this case.
17845 aix_use_runtimelinking=yes
17846 LDFLAGS="$LDFLAGS -Wl,-brtl"
17847 fi
17848 ;;
17849 esac
17850
17851 exp_sym_flag='-bexport'
17852 no_entry_flag='-bnoentry'
17853 fi
17854
17855 # When large executables or shared objects are built, AIX ld can
17856 # have problems creating the table of contents. If linking a library
17857 # or program results in "error TOC overflow" add -mminimal-toc to
17858 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17859 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17860
17861 archive_cmds=''
17862 hardcode_direct=yes
17863 hardcode_direct_absolute=yes
17864 hardcode_libdir_separator=':'
17865 link_all_deplibs=yes
17866 file_list_spec='$wl-f,'
17867 case $with_aix_soname,$aix_use_runtimelinking in
17868 aix,*) ;; # traditional, no import file
17869 svr4,* | *,yes) # use import file
17870 # The Import File defines what to hardcode.
17871 hardcode_direct=no
17872 hardcode_direct_absolute=no
17873 ;;
17874 esac
17875
17876 if test yes = "$GCC"; then
17877 case $host_os in aix4.[012]|aix4.[012].*)
17878 # We only want to do this on AIX 4.2 and lower, the check
17879 # below for broken collect2 doesn't work under 4.3+
17880 collect2name=`$CC -print-prog-name=collect2`
17881 if test -f "$collect2name" &&
17882 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17883 then
17884 # We have reworked collect2
17885 :
17886 else
17887 # We have old collect2
17888 hardcode_direct=unsupported
17889 # It fails to find uninstalled libraries when the uninstalled
17890 # path is not listed in the libpath. Setting hardcode_minus_L
17891 # to unsupported forces relinking
17892 hardcode_minus_L=yes
17893 hardcode_libdir_flag_spec='-L$libdir'
17894 hardcode_libdir_separator=
17895 fi
17896 ;;
17897 esac
17898 shared_flag='-shared'
17899 if test yes = "$aix_use_runtimelinking"; then
17900 shared_flag="$shared_flag "'$wl-G'
17901 fi
17902 # Need to ensure runtime linking is disabled for the traditional
17903 # shared library, or the linker may eventually find shared libraries
17904 # /with/ Import File - we do not want to mix them.
17905 shared_flag_aix='-shared'
17906 shared_flag_svr4='-shared $wl-G'
17907 else
17908 # not using gcc
17909 if test ia64 = "$host_cpu"; then
17910 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17911 # chokes on -Wl,-G. The following line is correct:
17912 shared_flag='-G'
17913 else
17914 if test yes = "$aix_use_runtimelinking"; then
17915 shared_flag='$wl-G'
17916 else
17917 shared_flag='$wl-bM:SRE'
17918 fi
17919 shared_flag_aix='$wl-bM:SRE'
17920 shared_flag_svr4='$wl-G'
17921 fi
17922 fi
17923
17924 export_dynamic_flag_spec='$wl-bexpall'
17925 # It seems that -bexpall does not export symbols beginning with
17926 # underscore (_), so it is better to generate a list of symbols to export.
17927 always_export_symbols=yes
17928 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17929 # Warning - without using the other runtime loading flags (-brtl),
17930 # -berok will link without error, but may produce a broken library.
17931 allow_undefined_flag='-berok'
17932 # Determine the default libpath from the value encoded in an
17933 # empty executable.
17934 if test set = "${lt_cv_aix_libpath+set}"; then
17935 aix_libpath=$lt_cv_aix_libpath
17936 else
17937 if test ${lt_cv_aix_libpath_+y}
17938 then :
17939 printf %s "(cached) " >&6
17940 else case e in #(
17941 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942 /* end confdefs.h. */
17943
17944 int
17945 main (void)
17946 {
17947
17948 ;
17949 return 0;
17950 }
17951 _ACEOF
17952 if ac_fn_c_try_link "$LINENO"
17953 then :
17954
17955 lt_aix_libpath_sed='
17956 /Import File Strings/,/^$/ {
17957 /^0/ {
17958 s/^0 *\([^ ]*\) *$/\1/
17959 p
17960 }
17961 }'
17962 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17963 # Check for a 64-bit object if we didn't find anything.
17964 if test -z "$lt_cv_aix_libpath_"; then
17965 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17966 fi
17967 fi
17968 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17969 conftest$ac_exeext conftest.$ac_ext
17970 if test -z "$lt_cv_aix_libpath_"; then
17971 lt_cv_aix_libpath_=/usr/lib:/lib
17972 fi
17973 ;;
17974 esac
17975 fi
17976
17977 aix_libpath=$lt_cv_aix_libpath_
17978 fi
17979
17980 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17981 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
17982 else
17983 if test ia64 = "$host_cpu"; then
17984 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
17985 allow_undefined_flag="-z nodefs"
17986 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"
17987 else
17988 # Determine the default libpath from the value encoded in an
17989 # empty executable.
17990 if test set = "${lt_cv_aix_libpath+set}"; then
17991 aix_libpath=$lt_cv_aix_libpath
17992 else
17993 if test ${lt_cv_aix_libpath_+y}
17994 then :
17995 printf %s "(cached) " >&6
17996 else case e in #(
17997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h. */
17999
18000 int
18001 main (void)
18002 {
18003
18004 ;
18005 return 0;
18006 }
18007 _ACEOF
18008 if ac_fn_c_try_link "$LINENO"
18009 then :
18010
18011 lt_aix_libpath_sed='
18012 /Import File Strings/,/^$/ {
18013 /^0/ {
18014 s/^0 *\([^ ]*\) *$/\1/
18015 p
18016 }
18017 }'
18018 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18019 # Check for a 64-bit object if we didn't find anything.
18020 if test -z "$lt_cv_aix_libpath_"; then
18021 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18022 fi
18023 fi
18024 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18025 conftest$ac_exeext conftest.$ac_ext
18026 if test -z "$lt_cv_aix_libpath_"; then
18027 lt_cv_aix_libpath_=/usr/lib:/lib
18028 fi
18029 ;;
18030 esac
18031 fi
18032
18033 aix_libpath=$lt_cv_aix_libpath_
18034 fi
18035
18036 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
18037 # Warning - without using the other run time loading flags,
18038 # -berok will link without error, but may produce a broken library.
18039 no_undefined_flag=' $wl-bernotok'
18040 allow_undefined_flag=' $wl-berok'
18041 if test yes = "$with_gnu_ld"; then
18042 # We only use this code for GNU lds that support --whole-archive.
18043 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
18044 else
18045 # Exported symbols can be pulled into shared objects from archives
18046 whole_archive_flag_spec='$convenience'
18047 fi
18048 archive_cmds_need_lc=yes
18049 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
18050 # -brtl affects multiple linker settings, -berok does not and is overridden later
18051 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
18052 if test svr4 != "$with_aix_soname"; then
18053 # This is similar to how AIX traditionally builds its shared libraries.
18054 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'
18055 fi
18056 if test aix != "$with_aix_soname"; then
18057 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'
18058 else
18059 # used by -dlpreopen to get the symbols
18060 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
18061 fi
18062 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
18063 fi
18064 fi
18065 ;;
18066
18067 amigaos*)
18068 case $host_cpu in
18069 powerpc)
18070 # see comment about AmigaOS4 .so support
18071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18072 archive_expsym_cmds=''
18073 ;;
18074 m68k)
18075 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)'
18076 hardcode_libdir_flag_spec='-L$libdir'
18077 hardcode_minus_L=yes
18078 ;;
18079 esac
18080 ;;
18081
18082 bsdi[45]*)
18083 export_dynamic_flag_spec=-rdynamic
18084 ;;
18085
18086 cygwin* | mingw* | windows* | pw32* | cegcc*)
18087 # When not using gcc, we currently assume that we are using
18088 # Microsoft Visual C++ or Intel C++ Compiler.
18089 # hardcode_libdir_flag_spec is actually meaningless, as there is
18090 # no search path for DLLs.
18091 case $cc_basename in
18092 cl* | icl*)
18093 # Native MSVC or ICC
18094 hardcode_libdir_flag_spec=' '
18095 allow_undefined_flag=unsupported
18096 always_export_symbols=yes
18097 file_list_spec='@'
18098 # Tell ltmain to make .lib files, not .a files.
18099 libext=lib
18100 # Tell ltmain to make .dll files, not .so files.
18101 shrext_cmds=.dll
18102 # FIXME: Setting linknames here is a bad hack.
18103 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
18104 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
18105 cp "$export_symbols" "$output_objdir/$soname.def";
18106 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
18107 else
18108 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
18109 fi~
18110 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18111 linknames='
18112 # The linker will not automatically build a static lib if we build a DLL.
18113 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
18114 enable_shared_with_static_runtimes=yes
18115 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18116 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18117 # Don't use ranlib
18118 old_postinstall_cmds='chmod 644 $oldlib'
18119 postlink_cmds='lt_outputfile="@OUTPUT@"~
18120 lt_tool_outputfile="@TOOL_OUTPUT@"~
18121 case $lt_outputfile in
18122 *.exe|*.EXE) ;;
18123 *)
18124 lt_outputfile=$lt_outputfile.exe
18125 lt_tool_outputfile=$lt_tool_outputfile.exe
18126 ;;
18127 esac~
18128 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
18129 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18130 $RM "$lt_outputfile.manifest";
18131 fi'
18132 ;;
18133 *)
18134 # Assume MSVC and ICC wrapper
18135 hardcode_libdir_flag_spec=' '
18136 allow_undefined_flag=unsupported
18137 # Tell ltmain to make .lib files, not .a files.
18138 libext=lib
18139 # Tell ltmain to make .dll files, not .so files.
18140 shrext_cmds=.dll
18141 # FIXME: Setting linknames here is a bad hack.
18142 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18143 # The linker will automatically build a .lib file if we build a DLL.
18144 old_archive_from_new_cmds='true'
18145 # FIXME: Should let the user specify the lib program.
18146 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18147 enable_shared_with_static_runtimes=yes
18148 ;;
18149 esac
18150 ;;
18151
18152 darwin* | rhapsody*)
18153
18154
18155 archive_cmds_need_lc=no
18156 hardcode_direct=no
18157 hardcode_automatic=yes
18158 hardcode_shlibpath_var=unsupported
18159 if test yes = "$lt_cv_ld_force_load"; then
18160 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\"`'
18161
18162 else
18163 whole_archive_flag_spec=''
18164 fi
18165 link_all_deplibs=yes
18166 allow_undefined_flag=$_lt_dar_allow_undefined
18167 case $cc_basename in
18168 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
18169 *) _lt_dar_can_shared=$GCC ;;
18170 esac
18171 if test yes = "$_lt_dar_can_shared"; then
18172 output_verbose_link_cmd=func_echo_all
18173 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
18174 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
18175 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"
18176 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"
18177
18178 else
18179 ld_shlibs=no
18180 fi
18181
18182 ;;
18183
18184 dgux*)
18185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18186 hardcode_libdir_flag_spec='-L$libdir'
18187 hardcode_shlibpath_var=no
18188 ;;
18189
18190 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18191 # support. Future versions do this automatically, but an explicit c++rt0.o
18192 # does not break anything, and helps significantly (at the cost of a little
18193 # extra space).
18194 freebsd2.2*)
18195 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18196 hardcode_libdir_flag_spec='-R$libdir'
18197 hardcode_direct=yes
18198 hardcode_shlibpath_var=no
18199 ;;
18200
18201 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18202 freebsd2.*)
18203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18204 hardcode_direct=yes
18205 hardcode_minus_L=yes
18206 hardcode_shlibpath_var=no
18207 ;;
18208
18209 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18210 freebsd* | dragonfly* | midnightbsd*)
18211 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18212 hardcode_libdir_flag_spec='-R$libdir'
18213 hardcode_direct=yes
18214 hardcode_shlibpath_var=no
18215 ;;
18216
18217 hpux9*)
18218 if test yes = "$GCC"; then
18219 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'
18220 else
18221 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'
18222 fi
18223 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18224 hardcode_libdir_separator=:
18225 hardcode_direct=yes
18226
18227 # hardcode_minus_L: Not really in the search PATH,
18228 # but as the default location of the library.
18229 hardcode_minus_L=yes
18230 export_dynamic_flag_spec='$wl-E'
18231 ;;
18232
18233 hpux10*)
18234 if test yes,no = "$GCC,$with_gnu_ld"; then
18235 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18236 else
18237 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18238 fi
18239 if test no = "$with_gnu_ld"; then
18240 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18241 hardcode_libdir_separator=:
18242 hardcode_direct=yes
18243 hardcode_direct_absolute=yes
18244 export_dynamic_flag_spec='$wl-E'
18245 # hardcode_minus_L: Not really in the search PATH,
18246 # but as the default location of the library.
18247 hardcode_minus_L=yes
18248 fi
18249 ;;
18250
18251 hpux11*)
18252 if test yes,no = "$GCC,$with_gnu_ld"; then
18253 case $host_cpu in
18254 hppa*64*)
18255 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18256 ;;
18257 ia64*)
18258 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18259 ;;
18260 *)
18261 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18262 ;;
18263 esac
18264 else
18265 case $host_cpu in
18266 hppa*64*)
18267 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18268 ;;
18269 ia64*)
18270 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18271 ;;
18272 *)
18273
18274 # Older versions of the 11.00 compiler do not understand -b yet
18275 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18277 printf %s "checking if $CC understands -b... " >&6; }
18278 if test ${lt_cv_prog_compiler__b+y}
18279 then :
18280 printf %s "(cached) " >&6
18281 else case e in #(
18282 e) lt_cv_prog_compiler__b=no
18283 save_LDFLAGS=$LDFLAGS
18284 LDFLAGS="$LDFLAGS -b"
18285 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18286 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18287 # The linker can only warn and ignore the option if not recognized
18288 # So say no if there are warnings
18289 if test -s conftest.err; then
18290 # Append any errors to the config.log.
18291 cat conftest.err 1>&5
18292 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18294 if diff conftest.exp conftest.er2 >/dev/null; then
18295 lt_cv_prog_compiler__b=yes
18296 fi
18297 else
18298 lt_cv_prog_compiler__b=yes
18299 fi
18300 fi
18301 $RM -r conftest*
18302 LDFLAGS=$save_LDFLAGS
18303 ;;
18304 esac
18305 fi
18306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18307 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
18308
18309 if test yes = "$lt_cv_prog_compiler__b"; then
18310 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18311 else
18312 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18313 fi
18314
18315 ;;
18316 esac
18317 fi
18318 if test no = "$with_gnu_ld"; then
18319 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18320 hardcode_libdir_separator=:
18321
18322 case $host_cpu in
18323 hppa*64*|ia64*)
18324 hardcode_direct=no
18325 hardcode_shlibpath_var=no
18326 ;;
18327 *)
18328 hardcode_direct=yes
18329 hardcode_direct_absolute=yes
18330 export_dynamic_flag_spec='$wl-E'
18331
18332 # hardcode_minus_L: Not really in the search PATH,
18333 # but as the default location of the library.
18334 hardcode_minus_L=yes
18335 ;;
18336 esac
18337 fi
18338 ;;
18339
18340 irix5* | irix6* | nonstopux*)
18341 if test yes = "$GCC"; then
18342 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'
18343 # Try to use the -exported_symbol ld option, if it does not
18344 # work, assume that -exports_file does not work either and
18345 # implicitly export all symbols.
18346 # This should be the same for all languages, so no per-tag cache variable.
18347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
18348 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
18349 if test ${lt_cv_irix_exported_symbol+y}
18350 then :
18351 printf %s "(cached) " >&6
18352 else case e in #(
18353 e) save_LDFLAGS=$LDFLAGS
18354 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
18355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356 /* end confdefs.h. */
18357 int foo (void) { return 0; }
18358 _ACEOF
18359 if ac_fn_c_try_link "$LINENO"
18360 then :
18361 lt_cv_irix_exported_symbol=yes
18362 else case e in #(
18363 e) lt_cv_irix_exported_symbol=no ;;
18364 esac
18365 fi
18366 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18367 conftest$ac_exeext conftest.$ac_ext
18368 LDFLAGS=$save_LDFLAGS ;;
18369 esac
18370 fi
18371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
18372 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
18373 if test yes = "$lt_cv_irix_exported_symbol"; then
18374 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'
18375 fi
18376 else
18377 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'
18378 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'
18379 fi
18380 archive_cmds_need_lc='no'
18381 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18382 hardcode_libdir_separator=:
18383 inherit_rpath=yes
18384 link_all_deplibs=yes
18385 ;;
18386
18387 linux*)
18388 case $cc_basename in
18389 tcc*)
18390 # Fabrice Bellard et al's Tiny C Compiler
18391 ld_shlibs=yes
18392 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18393 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18394 ;;
18395 esac
18396 ;;
18397
18398 *-mlibc)
18399 ;;
18400
18401 netbsd* | netbsdelf*-gnu)
18402 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18403 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18404 else
18405 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18406 fi
18407 hardcode_libdir_flag_spec='-R$libdir'
18408 hardcode_direct=yes
18409 hardcode_shlibpath_var=no
18410 ;;
18411
18412 newsos6)
18413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18414 hardcode_direct=yes
18415 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18416 hardcode_libdir_separator=:
18417 hardcode_shlibpath_var=no
18418 ;;
18419
18420 *nto* | *qnx*)
18421 ;;
18422
18423 openbsd*)
18424 if test -f /usr/libexec/ld.so; then
18425 hardcode_direct=yes
18426 hardcode_shlibpath_var=no
18427 hardcode_direct_absolute=yes
18428 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18429 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18430 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
18431 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18432 export_dynamic_flag_spec='$wl-E'
18433 else
18434 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18435 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18436 fi
18437 else
18438 ld_shlibs=no
18439 fi
18440 ;;
18441
18442 os2*)
18443 hardcode_libdir_flag_spec='-L$libdir'
18444 hardcode_minus_L=yes
18445 allow_undefined_flag=unsupported
18446 shrext_cmds=.dll
18447 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18448 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18449 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18450 $ECHO EXPORTS >> $output_objdir/$libname.def~
18451 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
18452 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18453 emximp -o $lib $output_objdir/$libname.def'
18454 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18455 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18456 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18457 $ECHO EXPORTS >> $output_objdir/$libname.def~
18458 prefix_cmds="$SED"~
18459 if test EXPORTS = "`$SED 1q $export_symbols`"; then
18460 prefix_cmds="$prefix_cmds -e 1d";
18461 fi~
18462 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
18463 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
18464 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18465 emximp -o $lib $output_objdir/$libname.def'
18466 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
18467 enable_shared_with_static_runtimes=yes
18468 file_list_spec='@'
18469 ;;
18470
18471 osf3*)
18472 if test yes = "$GCC"; then
18473 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
18474 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'
18475 else
18476 allow_undefined_flag=' -expect_unresolved \*'
18477 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'
18478 fi
18479 archive_cmds_need_lc='no'
18480 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18481 hardcode_libdir_separator=:
18482 ;;
18483
18484 osf4* | osf5*) # as osf3* with the addition of -msym flag
18485 if test yes = "$GCC"; then
18486 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
18487 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'
18488 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18489 else
18490 allow_undefined_flag=' -expect_unresolved \*'
18491 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'
18492 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~
18493 $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'
18494
18495 # Both c and cxx compiler support -rpath directly
18496 hardcode_libdir_flag_spec='-rpath $libdir'
18497 fi
18498 archive_cmds_need_lc='no'
18499 hardcode_libdir_separator=:
18500 ;;
18501
18502 serenity*)
18503 ;;
18504
18505 solaris*)
18506 no_undefined_flag=' -z defs'
18507 if test yes = "$GCC"; then
18508 wlarc='$wl'
18509 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18510 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18511 $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'
18512 else
18513 case `$CC -V 2>&1` in
18514 *"Compilers 5.0"*)
18515 wlarc=''
18516 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
18517 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18518 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18519 ;;
18520 *)
18521 wlarc='$wl'
18522 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18523 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18524 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18525 ;;
18526 esac
18527 fi
18528 hardcode_libdir_flag_spec='-R$libdir'
18529 hardcode_shlibpath_var=no
18530 case $host_os in
18531 solaris2.[0-5] | solaris2.[0-5].*) ;;
18532 *)
18533 # The compiler driver will combine and reorder linker options,
18534 # but understands '-z linker_flag'. GCC discards it without '$wl',
18535 # but is careful enough not to reorder.
18536 # Supported since Solaris 2.6 (maybe 2.5.1?)
18537 if test yes = "$GCC"; then
18538 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
18539 else
18540 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18541 fi
18542 ;;
18543 esac
18544 link_all_deplibs=yes
18545 ;;
18546
18547 sunos4*)
18548 if test sequent = "$host_vendor"; then
18549 # Use $CC to link under sequent, because it throws in some extra .o
18550 # files that make .init and .fini sections work.
18551 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18552 else
18553 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18554 fi
18555 hardcode_libdir_flag_spec='-L$libdir'
18556 hardcode_direct=yes
18557 hardcode_minus_L=yes
18558 hardcode_shlibpath_var=no
18559 ;;
18560
18561 sysv4)
18562 case $host_vendor in
18563 sni)
18564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18565 hardcode_direct=yes # is this really true???
18566 ;;
18567 siemens)
18568 ## LD is ld it makes a PLAMLIB
18569 ## CC just makes a GrossModule.
18570 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18571 reload_cmds='$CC -r -o $output$reload_objs'
18572 hardcode_direct=no
18573 ;;
18574 motorola)
18575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18576 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18577 ;;
18578 esac
18579 runpath_var='LD_RUN_PATH'
18580 hardcode_shlibpath_var=no
18581 ;;
18582
18583 sysv4.3*)
18584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18585 hardcode_shlibpath_var=no
18586 export_dynamic_flag_spec='-Bexport'
18587 ;;
18588
18589 sysv4*MP*)
18590 if test -d /usr/nec; then
18591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18592 hardcode_shlibpath_var=no
18593 runpath_var=LD_RUN_PATH
18594 hardcode_runpath_var=yes
18595 ld_shlibs=yes
18596 fi
18597 ;;
18598
18599 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18600 no_undefined_flag='$wl-z,text'
18601 archive_cmds_need_lc=no
18602 hardcode_shlibpath_var=no
18603 runpath_var='LD_RUN_PATH'
18604
18605 if test yes = "$GCC"; then
18606 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18607 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18608 else
18609 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18610 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18611 fi
18612 ;;
18613
18614 sysv5* | sco3.2v5* | sco5v6*)
18615 # Note: We CANNOT use -z defs as we might desire, because we do not
18616 # link with -lc, and that would cause any symbols used from libc to
18617 # always be unresolved, which means just about no library would
18618 # ever link correctly. If we're not using GNU ld we use -z text
18619 # though, which does catch some bad symbols but isn't as heavy-handed
18620 # as -z defs.
18621 no_undefined_flag='$wl-z,text'
18622 allow_undefined_flag='$wl-z,nodefs'
18623 archive_cmds_need_lc=no
18624 hardcode_shlibpath_var=no
18625 hardcode_libdir_flag_spec='$wl-R,$libdir'
18626 hardcode_libdir_separator=':'
18627 link_all_deplibs=yes
18628 export_dynamic_flag_spec='$wl-Bexport'
18629 runpath_var='LD_RUN_PATH'
18630
18631 if test yes = "$GCC"; then
18632 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18633 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18634 else
18635 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18636 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18637 fi
18638 ;;
18639
18640 uts4*)
18641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18642 hardcode_libdir_flag_spec='-L$libdir'
18643 hardcode_shlibpath_var=no
18644 ;;
18645
18646 *)
18647 ld_shlibs=no
18648 ;;
18649 esac
18650
18651 if test sni = "$host_vendor"; then
18652 case $host in
18653 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18654 export_dynamic_flag_spec='$wl-Blargedynsym'
18655 ;;
18656 esac
18657 fi
18658 fi
18659
18660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18661 printf "%s\n" "$ld_shlibs" >&6; }
18662 test no = "$ld_shlibs" && can_build_shared=no
18663
18664 with_gnu_ld=$with_gnu_ld
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680 #
18681 # Do we need to explicitly link libc?
18682 #
18683 case "x$archive_cmds_need_lc" in
18684 x|xyes)
18685 # Assume -lc should be added
18686 archive_cmds_need_lc=yes
18687
18688 if test yes,yes = "$GCC,$enable_shared"; then
18689 case $archive_cmds in
18690 *'~'*)
18691 # FIXME: we may have to deal with multi-command sequences.
18692 ;;
18693 '$CC '*)
18694 # Test whether the compiler implicitly links with -lc since on some
18695 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18696 # to ld, don't add -lc before -lgcc.
18697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18698 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
18699 if test ${lt_cv_archive_cmds_need_lc+y}
18700 then :
18701 printf %s "(cached) " >&6
18702 else case e in #(
18703 e) $RM conftest*
18704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18705
18706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18707 (eval $ac_compile) 2>&5
18708 ac_status=$?
18709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18710 test $ac_status = 0; } 2>conftest.err; then
18711 soname=conftest
18712 lib=conftest
18713 libobjs=conftest.$ac_objext
18714 deplibs=
18715 wl=$lt_prog_compiler_wl
18716 pic_flag=$lt_prog_compiler_pic
18717 compiler_flags=-v
18718 linker_flags=-v
18719 verstring=
18720 output_objdir=.
18721 libname=conftest
18722 lt_save_allow_undefined_flag=$allow_undefined_flag
18723 allow_undefined_flag=
18724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18725 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18726 ac_status=$?
18727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18728 test $ac_status = 0; }
18729 then
18730 lt_cv_archive_cmds_need_lc=no
18731 else
18732 lt_cv_archive_cmds_need_lc=yes
18733 fi
18734 allow_undefined_flag=$lt_save_allow_undefined_flag
18735 else
18736 cat conftest.err 1>&5
18737 fi
18738 $RM conftest*
18739 ;;
18740 esac
18741 fi
18742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18743 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
18744 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18745 ;;
18746 esac
18747 fi
18748 ;;
18749 esac
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
18901
18902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18903 printf %s "checking dynamic linker characteristics... " >&6; }
18904
18905 if test yes = "$GCC"; then
18906 case $host_os in
18907 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
18908 *) lt_awk_arg='/^libraries:/' ;;
18909 esac
18910 case $host_os in
18911 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
18912 *) lt_sed_strip_eq='s|=/|/|g' ;;
18913 esac
18914 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18915 case $lt_search_path_spec in
18916 *\;*)
18917 # if the path contains ";" then we assume it to be the separator
18918 # otherwise default to the standard path separator (i.e. ":") - it is
18919 # assumed that no part of a normal pathname contains ";" but that should
18920 # okay in the real world where ";" in dirpaths is itself problematic.
18921 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18922 ;;
18923 *)
18924 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18925 ;;
18926 esac
18927 # Ok, now we have the path, separated by spaces, we can step through it
18928 # and add multilib dir if necessary...
18929 lt_tmp_lt_search_path_spec=
18930 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18931 # ...but if some path component already ends with the multilib dir we assume
18932 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
18933 case "$lt_multi_os_dir; $lt_search_path_spec " in
18934 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
18935 lt_multi_os_dir=
18936 ;;
18937 esac
18938 for lt_sys_path in $lt_search_path_spec; do
18939 if test -d "$lt_sys_path$lt_multi_os_dir"; then
18940 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
18941 elif test -n "$lt_multi_os_dir"; then
18942 test -d "$lt_sys_path" && \
18943 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18944 fi
18945 done
18946 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18947 BEGIN {RS = " "; FS = "/|\n";} {
18948 lt_foo = "";
18949 lt_count = 0;
18950 for (lt_i = NF; lt_i > 0; lt_i--) {
18951 if ($lt_i != "" && $lt_i != ".") {
18952 if ($lt_i == "..") {
18953 lt_count++;
18954 } else {
18955 if (lt_count == 0) {
18956 lt_foo = "/" $lt_i lt_foo;
18957 } else {
18958 lt_count--;
18959 }
18960 }
18961 }
18962 }
18963 if (lt_foo != "") { lt_freq[lt_foo]++; }
18964 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18965 }'`
18966 # AWK program above erroneously prepends '/' to C:/dos/paths
18967 # for these hosts.
18968 case $host_os in
18969 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18970 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
18971 esac
18972 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18973 else
18974 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18975 fi
18976 library_names_spec=
18977 libname_spec='lib$name'
18978 soname_spec=
18979 shrext_cmds=.so
18980 postinstall_cmds=
18981 postuninstall_cmds=
18982 finish_cmds=
18983 finish_eval=
18984 shlibpath_var=
18985 shlibpath_overrides_runpath=unknown
18986 version_type=none
18987 dynamic_linker="$host_os ld.so"
18988 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18989 need_lib_prefix=unknown
18990 hardcode_into_libs=no
18991
18992 # when you set need_version to no, make sure it does not cause -set_version
18993 # flags to be left without arguments
18994 need_version=unknown
18995
18996
18997
18998 case $host_os in
18999 aix3*)
19000 version_type=linux # correct to gnu/linux during the next big refactor
19001 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
19002 shlibpath_var=LIBPATH
19003
19004 # AIX 3 has no versioning support, so we append a major version to the name.
19005 soname_spec='$libname$release$shared_ext$major'
19006 ;;
19007
19008 aix[4-9]*)
19009 version_type=linux # correct to gnu/linux during the next big refactor
19010 need_lib_prefix=no
19011 need_version=no
19012 hardcode_into_libs=yes
19013 if test ia64 = "$host_cpu"; then
19014 # AIX 5 supports IA64
19015 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
19016 shlibpath_var=LD_LIBRARY_PATH
19017 else
19018 # With GCC up to 2.95.x, collect2 would create an import file
19019 # for dependence libraries. The import file would start with
19020 # the line '#! .'. This would cause the generated library to
19021 # depend on '.', always an invalid library. This was fixed in
19022 # development snapshots of GCC prior to 3.0.
19023 case $host_os in
19024 aix4 | aix4.[01] | aix4.[01].*)
19025 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19026 echo ' yes '
19027 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
19028 :
19029 else
19030 can_build_shared=no
19031 fi
19032 ;;
19033 esac
19034 # Using Import Files as archive members, it is possible to support
19035 # filename-based versioning of shared library archives on AIX. While
19036 # this would work for both with and without runtime linking, it will
19037 # prevent static linking of such archives. So we do filename-based
19038 # shared library versioning with .so extension only, which is used
19039 # when both runtime linking and shared linking is enabled.
19040 # Unfortunately, runtime linking may impact performance, so we do
19041 # not want this to be the default eventually. Also, we use the
19042 # versioned .so libs for executables only if there is the -brtl
19043 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
19044 # To allow for filename-based versioning support, we need to create
19045 # libNAME.so.V as an archive file, containing:
19046 # *) an Import File, referring to the versioned filename of the
19047 # archive as well as the shared archive member, telling the
19048 # bitwidth (32 or 64) of that shared object, and providing the
19049 # list of exported symbols of that shared object, eventually
19050 # decorated with the 'weak' keyword
19051 # *) the shared object with the F_LOADONLY flag set, to really avoid
19052 # it being seen by the linker.
19053 # At run time we better use the real file rather than another symlink,
19054 # but for link time we create the symlink libNAME.so -> libNAME.so.V
19055
19056 case $with_aix_soname,$aix_use_runtimelinking in
19057 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
19058 # soname into executable. Probably we can add versioning support to
19059 # collect2, so additional links can be useful in future.
19060 aix,yes) # traditional libtool
19061 dynamic_linker='AIX unversionable lib.so'
19062 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19063 # instead of lib<name>.a to let people know that these are not
19064 # typical AIX shared libraries.
19065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19066 ;;
19067 aix,no) # traditional AIX only
19068 dynamic_linker='AIX lib.a(lib.so.V)'
19069 # We preserve .a as extension for shared libraries through AIX4.2
19070 # and later when we are not doing run time linking.
19071 library_names_spec='$libname$release.a $libname.a'
19072 soname_spec='$libname$release$shared_ext$major'
19073 ;;
19074 svr4,*) # full svr4 only
19075 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
19076 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19077 # We do not specify a path in Import Files, so LIBPATH fires.
19078 shlibpath_overrides_runpath=yes
19079 ;;
19080 *,yes) # both, prefer svr4
19081 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
19082 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19083 # unpreferred sharedlib libNAME.a needs extra handling
19084 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"'
19085 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"'
19086 # We do not specify a path in Import Files, so LIBPATH fires.
19087 shlibpath_overrides_runpath=yes
19088 ;;
19089 *,no) # both, prefer aix
19090 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19091 library_names_spec='$libname$release.a $libname.a'
19092 soname_spec='$libname$release$shared_ext$major'
19093 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19094 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)'
19095 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"'
19096 ;;
19097 esac
19098 shlibpath_var=LIBPATH
19099 fi
19100 ;;
19101
19102 amigaos*)
19103 case $host_cpu in
19104 powerpc)
19105 # Since July 2007 AmigaOS4 officially supports .so libraries.
19106 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19107 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19108 ;;
19109 m68k)
19110 library_names_spec='$libname.ixlibrary $libname.a'
19111 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19112 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'
19113 ;;
19114 esac
19115 ;;
19116
19117 beos*)
19118 library_names_spec='$libname$shared_ext'
19119 dynamic_linker="$host_os ld.so"
19120 shlibpath_var=LIBRARY_PATH
19121 ;;
19122
19123 bsdi[45]*)
19124 version_type=linux # correct to gnu/linux during the next big refactor
19125 need_version=no
19126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19127 soname_spec='$libname$release$shared_ext$major'
19128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19129 shlibpath_var=LD_LIBRARY_PATH
19130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19132 # the default ld.so.conf also contains /usr/contrib/lib and
19133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19134 # libtool to hard-code these into programs
19135 ;;
19136
19137 cygwin* | mingw* | windows* | pw32* | cegcc*)
19138 version_type=windows
19139 shrext_cmds=.dll
19140 need_version=no
19141 need_lib_prefix=no
19142
19143 case $GCC,$cc_basename in
19144 yes,*)
19145 # gcc
19146 library_names_spec='$libname.dll.a'
19147 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19148 # If user builds GCC with multilib enabled,
19149 # it should just install on $(libdir)
19150 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
19151 if test xyes = x"$multilib"; then
19152 postinstall_cmds='base_file=`basename \$file`~
19153 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19154 dldir=$destdir/`dirname \$dlpath`~
19155 $install_prog $dir/$dlname $destdir/$dlname~
19156 chmod a+x $destdir/$dlname~
19157 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19158 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
19159 fi'
19160 else
19161 postinstall_cmds='base_file=`basename \$file`~
19162 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19163 dldir=$destdir/`dirname \$dlpath`~
19164 test -d \$dldir || mkdir -p \$dldir~
19165 $install_prog $dir/$dlname \$dldir/$dlname~
19166 chmod a+x \$dldir/$dlname~
19167 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19168 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19169 fi'
19170 fi
19171 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19172 dlpath=$dir/\$dldll~
19173 $RM \$dlpath'
19174 shlibpath_overrides_runpath=yes
19175
19176 case $host_os in
19177 cygwin*)
19178 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19179 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19180
19181 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
19182 ;;
19183 mingw* | windows* | cegcc*)
19184 # MinGW DLLs use traditional 'lib' prefix
19185 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19186 ;;
19187 pw32*)
19188 # pw32 DLLs use 'pw' prefix rather than 'lib'
19189 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19190 ;;
19191 esac
19192 dynamic_linker='Win32 ld.exe'
19193 ;;
19194
19195 *,cl* | *,icl*)
19196 # Native MSVC or ICC
19197 libname_spec='$name'
19198 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19199 library_names_spec='$libname.dll.lib'
19200
19201 case $build_os in
19202 mingw* | windows*)
19203 sys_lib_search_path_spec=
19204 lt_save_ifs=$IFS
19205 IFS=';'
19206 for lt_path in $LIB
19207 do
19208 IFS=$lt_save_ifs
19209 # Let DOS variable expansion print the short 8.3 style file name.
19210 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19211 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19212 done
19213 IFS=$lt_save_ifs
19214 # Convert to MSYS style.
19215 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19216 ;;
19217 cygwin*)
19218 # Convert to unix form, then to dos form, then back to unix form
19219 # but this time dos style (no spaces!) so that the unix form looks
19220 # like /cygdrive/c/PROGRA~1:/cygdr...
19221 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19222 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19223 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19224 ;;
19225 *)
19226 sys_lib_search_path_spec=$LIB
19227 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19228 # It is most probably a Windows format PATH.
19229 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19230 else
19231 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19232 fi
19233 # FIXME: find the short name or the path components, as spaces are
19234 # common. (e.g. "Program Files" -> "PROGRA~1")
19235 ;;
19236 esac
19237
19238 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19239 postinstall_cmds='base_file=`basename \$file`~
19240 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19241 dldir=$destdir/`dirname \$dlpath`~
19242 test -d \$dldir || mkdir -p \$dldir~
19243 $install_prog $dir/$dlname \$dldir/$dlname'
19244 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19245 dlpath=$dir/\$dldll~
19246 $RM \$dlpath'
19247 shlibpath_overrides_runpath=yes
19248 dynamic_linker='Win32 link.exe'
19249 ;;
19250
19251 *)
19252 # Assume MSVC and ICC wrapper
19253 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19254 dynamic_linker='Win32 ld.exe'
19255 ;;
19256 esac
19257 # FIXME: first we should search . and the directory the executable is in
19258 shlibpath_var=PATH
19259 ;;
19260
19261 darwin* | rhapsody*)
19262 dynamic_linker="$host_os dyld"
19263 version_type=darwin
19264 need_lib_prefix=no
19265 need_version=no
19266 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19267 soname_spec='$libname$release$major$shared_ext'
19268 shlibpath_overrides_runpath=yes
19269 shlibpath_var=DYLD_LIBRARY_PATH
19270 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19271
19272 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
19273 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19274 ;;
19275
19276 dgux*)
19277 version_type=linux # correct to gnu/linux during the next big refactor
19278 need_lib_prefix=no
19279 need_version=no
19280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19281 soname_spec='$libname$release$shared_ext$major'
19282 shlibpath_var=LD_LIBRARY_PATH
19283 ;;
19284
19285 freebsd* | dragonfly* | midnightbsd*)
19286 # DragonFly does not have aout. When/if they implement a new
19287 # versioning mechanism, adjust this.
19288 if test -x /usr/bin/objformat; then
19289 objformat=`/usr/bin/objformat`
19290 else
19291 case $host_os in
19292 freebsd[23].*) objformat=aout ;;
19293 *) objformat=elf ;;
19294 esac
19295 fi
19296 version_type=freebsd-$objformat
19297 case $version_type in
19298 freebsd-elf*)
19299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19300 soname_spec='$libname$release$shared_ext$major'
19301 need_version=no
19302 need_lib_prefix=no
19303 ;;
19304 freebsd-*)
19305 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19306 need_version=yes
19307 ;;
19308 esac
19309 case $host_cpu in
19310 powerpc64)
19311 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
19312 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
19313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19314 /* end confdefs.h. */
19315 int test_pointer_size[sizeof (void *) - 5];
19316
19317 _ACEOF
19318 if ac_fn_c_try_compile "$LINENO"
19319 then :
19320 shlibpath_var=LD_LIBRARY_PATH
19321 else case e in #(
19322 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
19323 esac
19324 fi
19325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19326 ;;
19327 *)
19328 shlibpath_var=LD_LIBRARY_PATH
19329 ;;
19330 esac
19331 case $host_os in
19332 freebsd2.*)
19333 shlibpath_overrides_runpath=yes
19334 ;;
19335 freebsd3.[01]* | freebsdelf3.[01]*)
19336 shlibpath_overrides_runpath=yes
19337 hardcode_into_libs=yes
19338 ;;
19339 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19340 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19341 shlibpath_overrides_runpath=no
19342 hardcode_into_libs=yes
19343 ;;
19344 *) # from 4.6 on, and DragonFly
19345 shlibpath_overrides_runpath=yes
19346 hardcode_into_libs=yes
19347 ;;
19348 esac
19349 ;;
19350
19351 haiku*)
19352 version_type=linux # correct to gnu/linux during the next big refactor
19353 need_lib_prefix=no
19354 need_version=no
19355 dynamic_linker="$host_os runtime_loader"
19356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19357 soname_spec='$libname$release$shared_ext$major'
19358 shlibpath_var=LIBRARY_PATH
19359 shlibpath_overrides_runpath=no
19360 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
19361 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
19362 hardcode_into_libs=no
19363 ;;
19364
19365 hpux9* | hpux10* | hpux11*)
19366 # Give a soname corresponding to the major version so that dld.sl refuses to
19367 # link against other versions.
19368 version_type=sunos
19369 need_lib_prefix=no
19370 need_version=no
19371 case $host_cpu in
19372 ia64*)
19373 shrext_cmds='.so'
19374 hardcode_into_libs=yes
19375 dynamic_linker="$host_os dld.so"
19376 shlibpath_var=LD_LIBRARY_PATH
19377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19379 soname_spec='$libname$release$shared_ext$major'
19380 if test 32 = "$HPUX_IA64_MODE"; then
19381 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19382 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19383 else
19384 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19385 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19386 fi
19387 ;;
19388 hppa*64*)
19389 shrext_cmds='.sl'
19390 hardcode_into_libs=yes
19391 dynamic_linker="$host_os dld.sl"
19392 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19393 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19395 soname_spec='$libname$release$shared_ext$major'
19396 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19398 ;;
19399 *)
19400 shrext_cmds='.sl'
19401 dynamic_linker="$host_os dld.sl"
19402 shlibpath_var=SHLIB_PATH
19403 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19405 soname_spec='$libname$release$shared_ext$major'
19406 ;;
19407 esac
19408 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19409 postinstall_cmds='chmod 555 $lib'
19410 # or fails outright, so override atomically:
19411 install_override_mode=555
19412 ;;
19413
19414 interix[3-9]*)
19415 version_type=linux # correct to gnu/linux during the next big refactor
19416 need_lib_prefix=no
19417 need_version=no
19418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19419 soname_spec='$libname$release$shared_ext$major'
19420 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19421 shlibpath_var=LD_LIBRARY_PATH
19422 shlibpath_overrides_runpath=no
19423 hardcode_into_libs=yes
19424 ;;
19425
19426 irix5* | irix6* | nonstopux*)
19427 case $host_os in
19428 nonstopux*) version_type=nonstopux ;;
19429 *)
19430 if test yes = "$lt_cv_prog_gnu_ld"; then
19431 version_type=linux # correct to gnu/linux during the next big refactor
19432 else
19433 version_type=irix
19434 fi ;;
19435 esac
19436 need_lib_prefix=no
19437 need_version=no
19438 soname_spec='$libname$release$shared_ext$major'
19439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19440 case $host_os in
19441 irix5* | nonstopux*)
19442 libsuff= shlibsuff=
19443 ;;
19444 *)
19445 case $LD in # libtool.m4 will add one of these switches to LD
19446 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19447 libsuff= shlibsuff= libmagic=32-bit;;
19448 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19449 libsuff=32 shlibsuff=N32 libmagic=N32;;
19450 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19451 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19452 *) libsuff= shlibsuff= libmagic=never-match;;
19453 esac
19454 ;;
19455 esac
19456 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19457 shlibpath_overrides_runpath=no
19458 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19459 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19460 hardcode_into_libs=yes
19461 ;;
19462
19463 # No shared lib support for Linux oldld, aout, or coff.
19464 linux*oldld* | linux*aout* | linux*coff*)
19465 dynamic_linker=no
19466 ;;
19467
19468 linux*android*)
19469 version_type=none # Android doesn't support versioned libraries.
19470 need_lib_prefix=no
19471 need_version=no
19472 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
19473 soname_spec='$libname$release$shared_ext'
19474 finish_cmds=
19475 shlibpath_var=LD_LIBRARY_PATH
19476 shlibpath_overrides_runpath=yes
19477
19478 # This implies no fast_install, which is unacceptable.
19479 # Some rework will be needed to allow for fast_install
19480 # before this can be enabled.
19481 hardcode_into_libs=yes
19482
19483 dynamic_linker='Android linker'
19484 # -rpath works at least for libraries that are not overridden by
19485 # libraries installed in system locations.
19486 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19487 ;;
19488
19489 # This must be glibc/ELF.
19490 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19491 version_type=linux # correct to gnu/linux during the next big refactor
19492 need_lib_prefix=no
19493 need_version=no
19494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19495 soname_spec='$libname$release$shared_ext$major'
19496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19497 shlibpath_var=LD_LIBRARY_PATH
19498 shlibpath_overrides_runpath=no
19499
19500 # Some binutils ld are patched to set DT_RUNPATH
19501 if test ${lt_cv_shlibpath_overrides_runpath+y}
19502 then :
19503 printf %s "(cached) " >&6
19504 else case e in #(
19505 e) lt_cv_shlibpath_overrides_runpath=no
19506 save_LDFLAGS=$LDFLAGS
19507 save_libdir=$libdir
19508 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19509 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19511 /* end confdefs.h. */
19512
19513 int
19514 main (void)
19515 {
19516
19517 ;
19518 return 0;
19519 }
19520 _ACEOF
19521 if ac_fn_c_try_link "$LINENO"
19522 then :
19523 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
19524 then :
19525 lt_cv_shlibpath_overrides_runpath=yes
19526 fi
19527 fi
19528 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19529 conftest$ac_exeext conftest.$ac_ext
19530 LDFLAGS=$save_LDFLAGS
19531 libdir=$save_libdir
19532 ;;
19533 esac
19534 fi
19535
19536 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19537
19538 # This implies no fast_install, which is unacceptable.
19539 # Some rework will be needed to allow for fast_install
19540 # before this can be enabled.
19541 hardcode_into_libs=yes
19542
19543 # Add ABI-specific directories to the system library path.
19544 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19545
19546 # Ideally, we could use ldconfig to report *all* directories which are
19547 # searched for libraries, however this is still not possible. Aside from not
19548 # being certain /sbin/ldconfig is available, command
19549 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19550 # even though it is searched at run-time. Try to do the best guess by
19551 # appending ld.so.conf contents (and includes) to the search path.
19552 if test -f /etc/ld.so.conf; then
19553 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' ' '`
19554 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19555 fi
19556
19557 # We used to test for /lib/ld.so.1 and disable shared libraries on
19558 # powerpc, because MkLinux only supported shared libraries with the
19559 # GNU dynamic linker. Since this was broken with cross compilers,
19560 # most powerpc-linux boxes support dynamic linking these days and
19561 # people can always --disable-shared, the test was removed, and we
19562 # assume the GNU/Linux dynamic linker is in use.
19563 dynamic_linker='GNU/Linux ld.so'
19564 ;;
19565
19566 netbsdelf*-gnu)
19567 version_type=linux
19568 need_lib_prefix=no
19569 need_version=no
19570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19571 soname_spec='$libname$release$shared_ext$major'
19572 shlibpath_var=LD_LIBRARY_PATH
19573 shlibpath_overrides_runpath=no
19574 hardcode_into_libs=yes
19575 dynamic_linker='NetBSD ld.elf_so'
19576 ;;
19577
19578 netbsd*)
19579 version_type=sunos
19580 need_lib_prefix=no
19581 need_version=no
19582 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19583 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19585 dynamic_linker='NetBSD (a.out) ld.so'
19586 else
19587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19588 soname_spec='$libname$release$shared_ext$major'
19589 dynamic_linker='NetBSD ld.elf_so'
19590 fi
19591 shlibpath_var=LD_LIBRARY_PATH
19592 shlibpath_overrides_runpath=yes
19593 hardcode_into_libs=yes
19594 ;;
19595
19596 *-mlibc)
19597 version_type=linux # correct to gnu/linux during the next big refactor
19598 need_lib_prefix=no
19599 need_version=no
19600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19601 soname_spec='$libname$release$shared_ext$major'
19602 dynamic_linker='mlibc ld.so'
19603 shlibpath_var=LD_LIBRARY_PATH
19604 shlibpath_overrides_runpath=no
19605 hardcode_into_libs=yes
19606 ;;
19607
19608 newsos6)
19609 version_type=linux # correct to gnu/linux during the next big refactor
19610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19611 shlibpath_var=LD_LIBRARY_PATH
19612 shlibpath_overrides_runpath=yes
19613 ;;
19614
19615 *nto* | *qnx*)
19616 version_type=qnx
19617 need_lib_prefix=no
19618 need_version=no
19619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19620 soname_spec='$libname$release$shared_ext$major'
19621 shlibpath_var=LD_LIBRARY_PATH
19622 shlibpath_overrides_runpath=no
19623 hardcode_into_libs=yes
19624 dynamic_linker='ldqnx.so'
19625 ;;
19626
19627 openbsd*)
19628 version_type=sunos
19629 sys_lib_dlsearch_path_spec=/usr/lib
19630 need_lib_prefix=no
19631 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19632 need_version=no
19633 else
19634 need_version=yes
19635 fi
19636 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19638 shlibpath_var=LD_LIBRARY_PATH
19639 shlibpath_overrides_runpath=yes
19640 ;;
19641
19642 os2*)
19643 libname_spec='$name'
19644 version_type=windows
19645 shrext_cmds=.dll
19646 need_version=no
19647 need_lib_prefix=no
19648 # OS/2 can only load a DLL with a base name of 8 characters or less.
19649 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19650 v=$($ECHO $release$versuffix | tr -d .-);
19651 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19652 $ECHO $n$v`$shared_ext'
19653 library_names_spec='${libname}_dll.$libext'
19654 dynamic_linker='OS/2 ld.exe'
19655 shlibpath_var=BEGINLIBPATH
19656 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19657 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19658 postinstall_cmds='base_file=`basename \$file`~
19659 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19660 dldir=$destdir/`dirname \$dlpath`~
19661 test -d \$dldir || mkdir -p \$dldir~
19662 $install_prog $dir/$dlname \$dldir/$dlname~
19663 chmod a+x \$dldir/$dlname~
19664 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19665 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19666 fi'
19667 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19668 dlpath=$dir/\$dldll~
19669 $RM \$dlpath'
19670 ;;
19671
19672 osf3* | osf4* | osf5*)
19673 version_type=osf
19674 need_lib_prefix=no
19675 need_version=no
19676 soname_spec='$libname$release$shared_ext$major'
19677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19678 shlibpath_var=LD_LIBRARY_PATH
19679 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19680 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19681 ;;
19682
19683 rdos*)
19684 dynamic_linker=no
19685 ;;
19686
19687 serenity*)
19688 version_type=linux # correct to gnu/linux during the next big refactor
19689 need_lib_prefix=no
19690 need_version=no
19691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19692 soname_spec='$libname$release$shared_ext$major'
19693 shlibpath_var=LD_LIBRARY_PATH
19694 shlibpath_overrides_runpath=no
19695 dynamic_linker='SerenityOS LibELF'
19696 ;;
19697
19698 solaris*)
19699 version_type=linux # correct to gnu/linux during the next big refactor
19700 need_lib_prefix=no
19701 need_version=no
19702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19703 soname_spec='$libname$release$shared_ext$major'
19704 shlibpath_var=LD_LIBRARY_PATH
19705 shlibpath_overrides_runpath=yes
19706 hardcode_into_libs=yes
19707 # ldd complains unless libraries are executable
19708 postinstall_cmds='chmod +x $lib'
19709 ;;
19710
19711 sunos4*)
19712 version_type=sunos
19713 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19715 shlibpath_var=LD_LIBRARY_PATH
19716 shlibpath_overrides_runpath=yes
19717 if test yes = "$with_gnu_ld"; then
19718 need_lib_prefix=no
19719 fi
19720 need_version=yes
19721 ;;
19722
19723 sysv4 | sysv4.3*)
19724 version_type=linux # correct to gnu/linux during the next big refactor
19725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19726 soname_spec='$libname$release$shared_ext$major'
19727 shlibpath_var=LD_LIBRARY_PATH
19728 case $host_vendor in
19729 sni)
19730 shlibpath_overrides_runpath=no
19731 need_lib_prefix=no
19732 runpath_var=LD_RUN_PATH
19733 ;;
19734 siemens)
19735 need_lib_prefix=no
19736 ;;
19737 motorola)
19738 need_lib_prefix=no
19739 need_version=no
19740 shlibpath_overrides_runpath=no
19741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19742 ;;
19743 esac
19744 ;;
19745
19746 sysv4*MP*)
19747 if test -d /usr/nec; then
19748 version_type=linux # correct to gnu/linux during the next big refactor
19749 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19750 soname_spec='$libname$shared_ext.$major'
19751 shlibpath_var=LD_LIBRARY_PATH
19752 fi
19753 ;;
19754
19755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19756 version_type=sco
19757 need_lib_prefix=no
19758 need_version=no
19759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19760 soname_spec='$libname$release$shared_ext$major'
19761 shlibpath_var=LD_LIBRARY_PATH
19762 shlibpath_overrides_runpath=yes
19763 hardcode_into_libs=yes
19764 if test yes = "$with_gnu_ld"; then
19765 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19766 else
19767 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19768 case $host_os in
19769 sco3.2v5*)
19770 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19771 ;;
19772 esac
19773 fi
19774 sys_lib_dlsearch_path_spec='/usr/lib'
19775 ;;
19776
19777 tpf*)
19778 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19779 version_type=linux # correct to gnu/linux during the next big refactor
19780 need_lib_prefix=no
19781 need_version=no
19782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19783 shlibpath_var=LD_LIBRARY_PATH
19784 shlibpath_overrides_runpath=no
19785 hardcode_into_libs=yes
19786 ;;
19787
19788 uts4*)
19789 version_type=linux # correct to gnu/linux during the next big refactor
19790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19791 soname_spec='$libname$release$shared_ext$major'
19792 shlibpath_var=LD_LIBRARY_PATH
19793 ;;
19794
19795 emscripten*)
19796 version_type=none
19797 need_lib_prefix=no
19798 need_version=no
19799 library_names_spec='$libname$release$shared_ext'
19800 soname_spec='$libname$release$shared_ext'
19801 finish_cmds=
19802 dynamic_linker="Emscripten linker"
19803 lt_prog_compiler_wl=
19804 lt_prog_compiler_pic=
19805 lt_prog_compiler_static=
19806
19807
19808 if test yes = "$GCC"; then
19809 lt_prog_compiler_wl='-Wl,'
19810 lt_prog_compiler_static='-static'
19811
19812 case $host_os in
19813 aix*)
19814 # All AIX code is PIC.
19815 if test ia64 = "$host_cpu"; then
19816 # AIX 5 now supports IA64 processor
19817 lt_prog_compiler_static='-Bstatic'
19818 fi
19819 lt_prog_compiler_pic='-fPIC'
19820 ;;
19821
19822 amigaos*)
19823 case $host_cpu in
19824 powerpc)
19825 # see comment about AmigaOS4 .so support
19826 lt_prog_compiler_pic='-fPIC'
19827 ;;
19828 m68k)
19829 # FIXME: we need at least 68020 code to build shared libraries, but
19830 # adding the '-m68020' flag to GCC prevents building anything better,
19831 # like '-m68040'.
19832 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
19833 ;;
19834 esac
19835 ;;
19836
19837 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19838 # PIC is the default for these OSes.
19839 ;;
19840
19841 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
19842 # This hack is so that the source file can tell whether it is being
19843 # built for inclusion in a dll (and should export symbols for example).
19844 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19845 # (--disable-auto-import) libraries
19846 lt_prog_compiler_pic='-DDLL_EXPORT'
19847 case $host_os in
19848 os2*)
19849 lt_prog_compiler_static='$wl-static'
19850 ;;
19851 esac
19852 ;;
19853
19854 darwin* | rhapsody*)
19855 # PIC is the default on this platform
19856 # Common symbols not allowed in MH_DYLIB files
19857 lt_prog_compiler_pic='-fno-common'
19858 ;;
19859
19860 haiku*)
19861 # PIC is the default for Haiku.
19862 # The "-static" flag exists, but is broken.
19863 lt_prog_compiler_static=
19864 ;;
19865
19866 hpux*)
19867 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19868 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19869 # sets the default TLS model and affects inlining.
19870 case $host_cpu in
19871 hppa*64*)
19872 # +Z the default
19873 ;;
19874 *)
19875 lt_prog_compiler_pic='-fPIC'
19876 ;;
19877 esac
19878 ;;
19879
19880 interix[3-9]*)
19881 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19882 # Instead, we relocate shared libraries at runtime.
19883 ;;
19884
19885 msdosdjgpp*)
19886 # Just because we use GCC doesn't mean we suddenly get shared libraries
19887 # on systems that don't support them.
19888 lt_prog_compiler_can_build_shared=no
19889 enable_shared=no
19890 ;;
19891
19892 *nto* | *qnx*)
19893 # QNX uses GNU C++, but need to define -shared option too, otherwise
19894 # it will coredump.
19895 lt_prog_compiler_pic='-fPIC -shared'
19896 ;;
19897
19898 sysv4*MP*)
19899 if test -d /usr/nec; then
19900 lt_prog_compiler_pic=-Kconform_pic
19901 fi
19902 ;;
19903
19904 *)
19905 lt_prog_compiler_pic='-fPIC'
19906 ;;
19907 esac
19908
19909 case $cc_basename in
19910 nvcc*) # Cuda Compiler Driver 2.2
19911 lt_prog_compiler_wl='-Xlinker '
19912 if test -n "$lt_prog_compiler_pic"; then
19913 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
19914 fi
19915 ;;
19916 esac
19917 else
19918 # PORTME Check for flag to pass linker flags through the system compiler.
19919 case $host_os in
19920 aix*)
19921 lt_prog_compiler_wl='-Wl,'
19922 if test ia64 = "$host_cpu"; then
19923 # AIX 5 now supports IA64 processor
19924 lt_prog_compiler_static='-Bstatic'
19925 else
19926 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
19927 fi
19928 ;;
19929
19930 darwin* | rhapsody*)
19931 # PIC is the default on this platform
19932 # Common symbols not allowed in MH_DYLIB files
19933 lt_prog_compiler_pic='-fno-common'
19934 case $cc_basename in
19935 nagfor*)
19936 # NAG Fortran compiler
19937 lt_prog_compiler_wl='-Wl,-Wl,,'
19938 lt_prog_compiler_pic='-PIC'
19939 lt_prog_compiler_static='-Bstatic'
19940 ;;
19941 esac
19942 ;;
19943
19944 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
19945 # This hack is so that the source file can tell whether it is being
19946 # built for inclusion in a dll (and should export symbols for example).
19947 lt_prog_compiler_pic='-DDLL_EXPORT'
19948 case $host_os in
19949 os2*)
19950 lt_prog_compiler_static='$wl-static'
19951 ;;
19952 esac
19953 ;;
19954
19955 hpux9* | hpux10* | hpux11*)
19956 lt_prog_compiler_wl='-Wl,'
19957 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19958 # not for PA HP-UX.
19959 case $host_cpu in
19960 hppa*64*|ia64*)
19961 # +Z the default
19962 ;;
19963 *)
19964 lt_prog_compiler_pic='+Z'
19965 ;;
19966 esac
19967 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19968 lt_prog_compiler_static='$wl-a ${wl}archive'
19969 ;;
19970
19971 irix5* | irix6* | nonstopux*)
19972 lt_prog_compiler_wl='-Wl,'
19973 # PIC (with -KPIC) is the default.
19974 lt_prog_compiler_static='-non_shared'
19975 ;;
19976
19977 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19978 case $cc_basename in
19979 # old Intel for x86_64, which still supported -KPIC.
19980 ecc*)
19981 lt_prog_compiler_wl='-Wl,'
19982 lt_prog_compiler_pic='-KPIC'
19983 lt_prog_compiler_static='-static'
19984 ;;
19985 *flang* | ftn | f18* | f95*)
19986 # Flang compiler.
19987 lt_prog_compiler_wl='-Wl,'
19988 lt_prog_compiler_pic='-fPIC'
19989 lt_prog_compiler_static='-static'
19990 ;;
19991 # icc used to be incompatible with GCC.
19992 # ICC 10 doesn't accept -KPIC any more.
19993 icc* | ifort*)
19994 lt_prog_compiler_wl='-Wl,'
19995 lt_prog_compiler_pic='-fPIC'
19996 lt_prog_compiler_static='-static'
19997 ;;
19998 # Lahey Fortran 8.1.
19999 lf95*)
20000 lt_prog_compiler_wl='-Wl,'
20001 lt_prog_compiler_pic='--shared'
20002 lt_prog_compiler_static='--static'
20003 ;;
20004 nagfor*)
20005 # NAG Fortran compiler
20006 lt_prog_compiler_wl='-Wl,-Wl,,'
20007 lt_prog_compiler_pic='-PIC'
20008 lt_prog_compiler_static='-Bstatic'
20009 ;;
20010 tcc*)
20011 # Fabrice Bellard et al's Tiny C Compiler
20012 lt_prog_compiler_wl='-Wl,'
20013 lt_prog_compiler_pic='-fPIC'
20014 lt_prog_compiler_static='-static'
20015 ;;
20016 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
20017 # Portland Group compilers (*not* the Pentium gcc compiler,
20018 # which looks to be a dead project)
20019 lt_prog_compiler_wl='-Wl,'
20020 lt_prog_compiler_pic='-fpic'
20021 lt_prog_compiler_static='-Bstatic'
20022 ;;
20023 ccc*)
20024 lt_prog_compiler_wl='-Wl,'
20025 # All Alpha code is PIC.
20026 lt_prog_compiler_static='-non_shared'
20027 ;;
20028 xl* | bgxl* | bgf* | mpixl*)
20029 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
20030 lt_prog_compiler_wl='-Wl,'
20031 lt_prog_compiler_pic='-qpic'
20032 lt_prog_compiler_static='-qstaticlink'
20033 ;;
20034 *)
20035 case `$CC -V 2>&1 | $SED 5q` in
20036 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
20037 # Sun Fortran 8.3 passes all unrecognized flags to the linker
20038 lt_prog_compiler_pic='-KPIC'
20039 lt_prog_compiler_static='-Bstatic'
20040 lt_prog_compiler_wl=''
20041 ;;
20042 *Sun\ F* | *Sun*Fortran*)
20043 lt_prog_compiler_pic='-KPIC'
20044 lt_prog_compiler_static='-Bstatic'
20045 lt_prog_compiler_wl='-Qoption ld '
20046 ;;
20047 *Sun\ C*)
20048 # Sun C 5.9
20049 lt_prog_compiler_pic='-KPIC'
20050 lt_prog_compiler_static='-Bstatic'
20051 lt_prog_compiler_wl='-Wl,'
20052 ;;
20053 *Intel*\ [CF]*Compiler*)
20054 lt_prog_compiler_wl='-Wl,'
20055 lt_prog_compiler_pic='-fPIC'
20056 lt_prog_compiler_static='-static'
20057 ;;
20058 *Portland\ Group*)
20059 lt_prog_compiler_wl='-Wl,'
20060 lt_prog_compiler_pic='-fpic'
20061 lt_prog_compiler_static='-Bstatic'
20062 ;;
20063 esac
20064 ;;
20065 esac
20066 ;;
20067
20068 newsos6)
20069 lt_prog_compiler_pic='-KPIC'
20070 lt_prog_compiler_static='-Bstatic'
20071 ;;
20072
20073 *-mlibc)
20074 lt_prog_compiler_wl='-Wl,'
20075 lt_prog_compiler_pic='-fPIC'
20076 lt_prog_compiler_static='-static'
20077 ;;
20078
20079 *nto* | *qnx*)
20080 # QNX uses GNU C++, but need to define -shared option too, otherwise
20081 # it will coredump.
20082 lt_prog_compiler_pic='-fPIC -shared'
20083 ;;
20084
20085 osf3* | osf4* | osf5*)
20086 lt_prog_compiler_wl='-Wl,'
20087 # All OSF/1 code is PIC.
20088 lt_prog_compiler_static='-non_shared'
20089 ;;
20090
20091 rdos*)
20092 lt_prog_compiler_static='-non_shared'
20093 ;;
20094
20095 serenity*)
20096 ;;
20097
20098 solaris*)
20099 lt_prog_compiler_pic='-KPIC'
20100 lt_prog_compiler_static='-Bstatic'
20101 case $cc_basename in
20102 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
20103 lt_prog_compiler_wl='-Qoption ld ';;
20104 *)
20105 lt_prog_compiler_wl='-Wl,';;
20106 esac
20107 ;;
20108
20109 sunos4*)
20110 lt_prog_compiler_wl='-Qoption ld '
20111 lt_prog_compiler_pic='-PIC'
20112 lt_prog_compiler_static='-Bstatic'
20113 ;;
20114
20115 sysv4 | sysv4.2uw2* | sysv4.3*)
20116 lt_prog_compiler_wl='-Wl,'
20117 lt_prog_compiler_pic='-KPIC'
20118 lt_prog_compiler_static='-Bstatic'
20119 ;;
20120
20121 sysv4*MP*)
20122 if test -d /usr/nec; then
20123 lt_prog_compiler_pic='-Kconform_pic'
20124 lt_prog_compiler_static='-Bstatic'
20125 fi
20126 ;;
20127
20128 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20129 lt_prog_compiler_wl='-Wl,'
20130 lt_prog_compiler_pic='-KPIC'
20131 lt_prog_compiler_static='-Bstatic'
20132 ;;
20133
20134 unicos*)
20135 lt_prog_compiler_wl='-Wl,'
20136 lt_prog_compiler_can_build_shared=no
20137 ;;
20138
20139 uts4*)
20140 lt_prog_compiler_pic='-pic'
20141 lt_prog_compiler_static='-Bstatic'
20142 ;;
20143
20144 *)
20145 lt_prog_compiler_can_build_shared=no
20146 ;;
20147 esac
20148 fi
20149
20150 case $host_os in
20151 # For platforms that do not support PIC, -DPIC is meaningless:
20152 *djgpp*)
20153 lt_prog_compiler_pic=
20154 ;;
20155 *)
20156 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
20157 ;;
20158 esac
20159
20160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20161 printf %s "checking for $compiler option to produce PIC... " >&6; }
20162 if test ${lt_cv_prog_compiler_pic+y}
20163 then :
20164 printf %s "(cached) " >&6
20165 else case e in #(
20166 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
20167 esac
20168 fi
20169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
20170 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
20171 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
20172
20173 #
20174 # Check to make sure the PIC flag actually works.
20175 #
20176 if test -n "$lt_prog_compiler_pic"; then
20177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
20178 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
20179 if test ${lt_cv_prog_compiler_pic_works+y}
20180 then :
20181 printf %s "(cached) " >&6
20182 else case e in #(
20183 e) lt_cv_prog_compiler_pic_works=no
20184 ac_outfile=conftest.$ac_objext
20185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20186 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
20187 # Insert the option either (1) after the last *FLAGS variable, or
20188 # (2) before a word containing "conftest.", or (3) at the end.
20189 # Note that $ac_compile itself does not contain backslashes and begins
20190 # with a dollar sign (not a hyphen), so the echo should work correctly.
20191 # The option is referenced via a variable to avoid confusing sed.
20192 lt_compile=`echo "$ac_compile" | $SED \
20193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20195 -e 's:$: $lt_compiler_flag:'`
20196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20197 (eval "$lt_compile" 2>conftest.err)
20198 ac_status=$?
20199 cat conftest.err >&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 if (exit $ac_status) && test -s "$ac_outfile"; then
20202 # The compiler can only warn and ignore the option if not recognized
20203 # So say no if there are warnings other than the usual output.
20204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20207 lt_cv_prog_compiler_pic_works=yes
20208 fi
20209 fi
20210 $RM conftest*
20211 ;;
20212 esac
20213 fi
20214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
20215 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
20216
20217 if test yes = "$lt_cv_prog_compiler_pic_works"; then
20218 case $lt_prog_compiler_pic in
20219 "" | " "*) ;;
20220 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
20221 esac
20222 else
20223 lt_prog_compiler_pic=
20224 lt_prog_compiler_can_build_shared=no
20225 fi
20226
20227 fi
20228
20229
20230
20231
20232
20233 #
20234 # Check to make sure the static flag actually works.
20235 #
20236 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
20237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20238 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20239 if test ${lt_cv_prog_compiler_static_works+y}
20240 then :
20241 printf %s "(cached) " >&6
20242 else case e in #(
20243 e) lt_cv_prog_compiler_static_works=no
20244 save_LDFLAGS=$LDFLAGS
20245 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20246 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20247 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20248 # The linker can only warn and ignore the option if not recognized
20249 # So say no if there are warnings
20250 if test -s conftest.err; then
20251 # Append any errors to the config.log.
20252 cat conftest.err 1>&5
20253 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20255 if diff conftest.exp conftest.er2 >/dev/null; then
20256 lt_cv_prog_compiler_static_works=yes
20257 fi
20258 else
20259 lt_cv_prog_compiler_static_works=yes
20260 fi
20261 fi
20262 $RM -r conftest*
20263 LDFLAGS=$save_LDFLAGS
20264 ;;
20265 esac
20266 fi
20267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
20268 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
20269
20270 if test yes = "$lt_cv_prog_compiler_static_works"; then
20271 :
20272 else
20273 lt_prog_compiler_static=
20274 fi
20275
20276
20277
20278 ='-fPIC'
20279 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
20280 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'
20281 archive_cmds_need_lc=no
20282 no_undefined_flag=
20283 ;;
20284
20285 *)
20286 dynamic_linker=no
20287 ;;
20288 esac
20289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20290 printf "%s\n" "$dynamic_linker" >&6; }
20291 test no = "$dynamic_linker" && can_build_shared=no
20292
20293 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20294 if test yes = "$GCC"; then
20295 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20296 fi
20297
20298 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20299 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20300 fi
20301
20302 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20303 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20304 fi
20305
20306 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20307 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20308
20309 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20310 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20311
20312 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20313 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
20410
20411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20412 printf %s "checking how to hardcode library paths into programs... " >&6; }
20413 hardcode_action=
20414 if test -n "$hardcode_libdir_flag_spec" ||
20415 test -n "$runpath_var" ||
20416 test yes = "$hardcode_automatic"; then
20417
20418 # We can hardcode non-existent directories.
20419 if test no != "$hardcode_direct" &&
20420 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20421 # have to relink, otherwise we might link with an installed library
20422 # when we should be linking with a yet-to-be-installed one
20423 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
20424 test no != "$hardcode_minus_L"; then
20425 # Linking always hardcodes the temporary library directory.
20426 hardcode_action=relink
20427 else
20428 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20429 hardcode_action=immediate
20430 fi
20431 else
20432 # We cannot hardcode anything, or else we can only hardcode existing
20433 # directories.
20434 hardcode_action=unsupported
20435 fi
20436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
20437 printf "%s\n" "$hardcode_action" >&6; }
20438
20439 if test relink = "$hardcode_action" ||
20440 test yes = "$inherit_rpath"; then
20441 # Fast installation is not supported
20442 enable_fast_install=no
20443 elif test yes = "$shlibpath_overrides_runpath" ||
20444 test no = "$enable_shared"; then
20445 # Fast installation is not necessary
20446 enable_fast_install=needless
20447 fi
20448
20449
20450
20451
20452
20453
20454 if test yes != "$enable_dlopen"; then
20455 enable_dlopen=unknown
20456 enable_dlopen_self=unknown
20457 enable_dlopen_self_static=unknown
20458 else
20459 lt_cv_dlopen=no
20460 lt_cv_dlopen_libs=
20461
20462 case $host_os in
20463 beos*)
20464 lt_cv_dlopen=load_add_on
20465 lt_cv_dlopen_libs=
20466 lt_cv_dlopen_self=yes
20467 ;;
20468
20469 mingw* | windows* | pw32* | cegcc*)
20470 lt_cv_dlopen=LoadLibrary
20471 lt_cv_dlopen_libs=
20472 ;;
20473
20474 cygwin*)
20475 lt_cv_dlopen=dlopen
20476 lt_cv_dlopen_libs=
20477 ;;
20478
20479 darwin*)
20480 # if libdl is installed we need to link against it
20481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20482 printf %s "checking for dlopen in -ldl... " >&6; }
20483 if test ${ac_cv_lib_dl_dlopen+y}
20484 then :
20485 printf %s "(cached) " >&6
20486 else case e in #(
20487 e) ac_check_lib_save_LIBS=$LIBS
20488 LIBS="-ldl $LIBS"
20489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20490 /* end confdefs.h. */
20491
20492 /* Override any GCC internal prototype to avoid an error.
20493 Use char because int might match the return type of a GCC
20494 builtin and then its argument prototype would still apply.
20495 The 'extern "C"' is for builds by C++ compilers;
20496 although this is not generally supported in C code supporting it here
20497 has little cost and some practical benefit (sr 110532). */
20498 #ifdef __cplusplus
20499 extern "C"
20500 #endif
20501 char dlopen (void);
20502 int
20503 main (void)
20504 {
20505 return dlopen ();
20506 ;
20507 return 0;
20508 }
20509 _ACEOF
20510 if ac_fn_c_try_link "$LINENO"
20511 then :
20512 ac_cv_lib_dl_dlopen=yes
20513 else case e in #(
20514 e) ac_cv_lib_dl_dlopen=no ;;
20515 esac
20516 fi
20517 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20518 conftest$ac_exeext conftest.$ac_ext
20519 LIBS=$ac_check_lib_save_LIBS ;;
20520 esac
20521 fi
20522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20523 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
20524 if test "x$ac_cv_lib_dl_dlopen" = xyes
20525 then :
20526 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
20527 else case e in #(
20528 e)
20529 lt_cv_dlopen=dyld
20530 lt_cv_dlopen_libs=
20531 lt_cv_dlopen_self=yes
20532 ;;
20533 esac
20534 fi
20535
20536 ;;
20537
20538 tpf*)
20539 # Don't try to run any link tests for TPF. We know it's impossible
20540 # because TPF is a cross-compiler, and we know how we open DSOs.
20541 lt_cv_dlopen=dlopen
20542 lt_cv_dlopen_libs=
20543 lt_cv_dlopen_self=no
20544 ;;
20545
20546 *)
20547 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
20548 if test "x$ac_cv_func_shl_load" = xyes
20549 then :
20550 lt_cv_dlopen=shl_load
20551 else case e in #(
20552 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20553 printf %s "checking for shl_load in -ldld... " >&6; }
20554 if test ${ac_cv_lib_dld_shl_load+y}
20555 then :
20556 printf %s "(cached) " >&6
20557 else case e in #(
20558 e) ac_check_lib_save_LIBS=$LIBS
20559 LIBS="-ldld $LIBS"
20560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20561 /* end confdefs.h. */
20562
20563 /* Override any GCC internal prototype to avoid an error.
20564 Use char because int might match the return type of a GCC
20565 builtin and then its argument prototype would still apply.
20566 The 'extern "C"' is for builds by C++ compilers;
20567 although this is not generally supported in C code supporting it here
20568 has little cost and some practical benefit (sr 110532). */
20569 #ifdef __cplusplus
20570 extern "C"
20571 #endif
20572 char shl_load (void);
20573 int
20574 main (void)
20575 {
20576 return shl_load ();
20577 ;
20578 return 0;
20579 }
20580 _ACEOF
20581 if ac_fn_c_try_link "$LINENO"
20582 then :
20583 ac_cv_lib_dld_shl_load=yes
20584 else case e in #(
20585 e) ac_cv_lib_dld_shl_load=no ;;
20586 esac
20587 fi
20588 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20589 conftest$ac_exeext conftest.$ac_ext
20590 LIBS=$ac_check_lib_save_LIBS ;;
20591 esac
20592 fi
20593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20594 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
20595 if test "x$ac_cv_lib_dld_shl_load" = xyes
20596 then :
20597 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
20598 else case e in #(
20599 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
20600 if test "x$ac_cv_func_dlopen" = xyes
20601 then :
20602 lt_cv_dlopen=dlopen
20603 else case e in #(
20604 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20605 printf %s "checking for dlopen in -ldl... " >&6; }
20606 if test ${ac_cv_lib_dl_dlopen+y}
20607 then :
20608 printf %s "(cached) " >&6
20609 else case e in #(
20610 e) ac_check_lib_save_LIBS=$LIBS
20611 LIBS="-ldl $LIBS"
20612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20613 /* end confdefs.h. */
20614
20615 /* Override any GCC internal prototype to avoid an error.
20616 Use char because int might match the return type of a GCC
20617 builtin and then its argument prototype would still apply.
20618 The 'extern "C"' is for builds by C++ compilers;
20619 although this is not generally supported in C code supporting it here
20620 has little cost and some practical benefit (sr 110532). */
20621 #ifdef __cplusplus
20622 extern "C"
20623 #endif
20624 char dlopen (void);
20625 int
20626 main (void)
20627 {
20628 return dlopen ();
20629 ;
20630 return 0;
20631 }
20632 _ACEOF
20633 if ac_fn_c_try_link "$LINENO"
20634 then :
20635 ac_cv_lib_dl_dlopen=yes
20636 else case e in #(
20637 e) ac_cv_lib_dl_dlopen=no ;;
20638 esac
20639 fi
20640 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20641 conftest$ac_exeext conftest.$ac_ext
20642 LIBS=$ac_check_lib_save_LIBS ;;
20643 esac
20644 fi
20645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20646 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
20647 if test "x$ac_cv_lib_dl_dlopen" = xyes
20648 then :
20649 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
20650 else case e in #(
20651 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20652 printf %s "checking for dlopen in -lsvld... " >&6; }
20653 if test ${ac_cv_lib_svld_dlopen+y}
20654 then :
20655 printf %s "(cached) " >&6
20656 else case e in #(
20657 e) ac_check_lib_save_LIBS=$LIBS
20658 LIBS="-lsvld $LIBS"
20659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20660 /* end confdefs.h. */
20661
20662 /* Override any GCC internal prototype to avoid an error.
20663 Use char because int might match the return type of a GCC
20664 builtin and then its argument prototype would still apply.
20665 The 'extern "C"' is for builds by C++ compilers;
20666 although this is not generally supported in C code supporting it here
20667 has little cost and some practical benefit (sr 110532). */
20668 #ifdef __cplusplus
20669 extern "C"
20670 #endif
20671 char dlopen (void);
20672 int
20673 main (void)
20674 {
20675 return dlopen ();
20676 ;
20677 return 0;
20678 }
20679 _ACEOF
20680 if ac_fn_c_try_link "$LINENO"
20681 then :
20682 ac_cv_lib_svld_dlopen=yes
20683 else case e in #(
20684 e) ac_cv_lib_svld_dlopen=no ;;
20685 esac
20686 fi
20687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20688 conftest$ac_exeext conftest.$ac_ext
20689 LIBS=$ac_check_lib_save_LIBS ;;
20690 esac
20691 fi
20692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20693 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
20694 if test "x$ac_cv_lib_svld_dlopen" = xyes
20695 then :
20696 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
20697 else case e in #(
20698 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20699 printf %s "checking for dld_link in -ldld... " >&6; }
20700 if test ${ac_cv_lib_dld_dld_link+y}
20701 then :
20702 printf %s "(cached) " >&6
20703 else case e in #(
20704 e) ac_check_lib_save_LIBS=$LIBS
20705 LIBS="-ldld $LIBS"
20706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20707 /* end confdefs.h. */
20708
20709 /* Override any GCC internal prototype to avoid an error.
20710 Use char because int might match the return type of a GCC
20711 builtin and then its argument prototype would still apply.
20712 The 'extern "C"' is for builds by C++ compilers;
20713 although this is not generally supported in C code supporting it here
20714 has little cost and some practical benefit (sr 110532). */
20715 #ifdef __cplusplus
20716 extern "C"
20717 #endif
20718 char dld_link (void);
20719 int
20720 main (void)
20721 {
20722 return dld_link ();
20723 ;
20724 return 0;
20725 }
20726 _ACEOF
20727 if ac_fn_c_try_link "$LINENO"
20728 then :
20729 ac_cv_lib_dld_dld_link=yes
20730 else case e in #(
20731 e) ac_cv_lib_dld_dld_link=no ;;
20732 esac
20733 fi
20734 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20735 conftest$ac_exeext conftest.$ac_ext
20736 LIBS=$ac_check_lib_save_LIBS ;;
20737 esac
20738 fi
20739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20740 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
20741 if test "x$ac_cv_lib_dld_dld_link" = xyes
20742 then :
20743 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
20744 fi
20745
20746 ;;
20747 esac
20748 fi
20749
20750 ;;
20751 esac
20752 fi
20753
20754 ;;
20755 esac
20756 fi
20757
20758 ;;
20759 esac
20760 fi
20761
20762 ;;
20763 esac
20764 fi
20765
20766 ;;
20767 esac
20768
20769 if test no = "$lt_cv_dlopen"; then
20770 enable_dlopen=no
20771 else
20772 enable_dlopen=yes
20773 fi
20774
20775 case $lt_cv_dlopen in
20776 dlopen)
20777 save_CPPFLAGS=$CPPFLAGS
20778 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20779
20780 save_LDFLAGS=$LDFLAGS
20781 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20782
20783 save_LIBS=$LIBS
20784 LIBS="$lt_cv_dlopen_libs $LIBS"
20785
20786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
20787 printf %s "checking whether a program can dlopen itself... " >&6; }
20788 if test ${lt_cv_dlopen_self+y}
20789 then :
20790 printf %s "(cached) " >&6
20791 else case e in #(
20792 e) if test yes = "$cross_compiling"; then :
20793 lt_cv_dlopen_self=cross
20794 else
20795 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20796 lt_status=$lt_dlunknown
20797 cat > conftest.$ac_ext <<_LT_EOF
20798 #line $LINENO "configure"
20799 #include "confdefs.h"
20800
20801 #if HAVE_DLFCN_H
20802 #include <dlfcn.h>
20803 #endif
20804
20805 #include <stdio.h>
20806
20807 #ifdef RTLD_GLOBAL
20808 # define LT_DLGLOBAL RTLD_GLOBAL
20809 #else
20810 # ifdef DL_GLOBAL
20811 # define LT_DLGLOBAL DL_GLOBAL
20812 # else
20813 # define LT_DLGLOBAL 0
20814 # endif
20815 #endif
20816
20817 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20818 find out it does not work in some platform. */
20819 #ifndef LT_DLLAZY_OR_NOW
20820 # ifdef RTLD_LAZY
20821 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20822 # else
20823 # ifdef DL_LAZY
20824 # define LT_DLLAZY_OR_NOW DL_LAZY
20825 # else
20826 # ifdef RTLD_NOW
20827 # define LT_DLLAZY_OR_NOW RTLD_NOW
20828 # else
20829 # ifdef DL_NOW
20830 # define LT_DLLAZY_OR_NOW DL_NOW
20831 # else
20832 # define LT_DLLAZY_OR_NOW 0
20833 # endif
20834 # endif
20835 # endif
20836 # endif
20837 #endif
20838
20839 /* When -fvisibility=hidden is used, assume the code has been annotated
20840 correspondingly for the symbols needed. */
20841 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20842 int fnord (void) __attribute__((visibility("default")));
20843 #endif
20844
20845 int fnord (void) { return 42; }
20846 int main (void)
20847 {
20848 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20849 int status = $lt_dlunknown;
20850
20851 if (self)
20852 {
20853 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20854 else
20855 {
20856 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20857 else puts (dlerror ());
20858 }
20859 /* dlclose (self); */
20860 }
20861 else
20862 puts (dlerror ());
20863
20864 return status;
20865 }
20866 _LT_EOF
20867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20868 (eval $ac_link) 2>&5
20869 ac_status=$?
20870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20871 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20872 (./conftest; exit; ) >&5 2>/dev/null
20873 lt_status=$?
20874 case x$lt_status in
20875 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20876 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20877 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20878 esac
20879 else :
20880 # compilation failed
20881 lt_cv_dlopen_self=no
20882 fi
20883 fi
20884 rm -fr conftest*
20885
20886 ;;
20887 esac
20888 fi
20889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
20890 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
20891
20892 if test yes = "$lt_cv_dlopen_self"; then
20893 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
20895 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
20896 if test ${lt_cv_dlopen_self_static+y}
20897 then :
20898 printf %s "(cached) " >&6
20899 else case e in #(
20900 e) if test yes = "$cross_compiling"; then :
20901 lt_cv_dlopen_self_static=cross
20902 else
20903 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20904 lt_status=$lt_dlunknown
20905 cat > conftest.$ac_ext <<_LT_EOF
20906 #line $LINENO "configure"
20907 #include "confdefs.h"
20908
20909 #if HAVE_DLFCN_H
20910 #include <dlfcn.h>
20911 #endif
20912
20913 #include <stdio.h>
20914
20915 #ifdef RTLD_GLOBAL
20916 # define LT_DLGLOBAL RTLD_GLOBAL
20917 #else
20918 # ifdef DL_GLOBAL
20919 # define LT_DLGLOBAL DL_GLOBAL
20920 # else
20921 # define LT_DLGLOBAL 0
20922 # endif
20923 #endif
20924
20925 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20926 find out it does not work in some platform. */
20927 #ifndef LT_DLLAZY_OR_NOW
20928 # ifdef RTLD_LAZY
20929 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20930 # else
20931 # ifdef DL_LAZY
20932 # define LT_DLLAZY_OR_NOW DL_LAZY
20933 # else
20934 # ifdef RTLD_NOW
20935 # define LT_DLLAZY_OR_NOW RTLD_NOW
20936 # else
20937 # ifdef DL_NOW
20938 # define LT_DLLAZY_OR_NOW DL_NOW
20939 # else
20940 # define LT_DLLAZY_OR_NOW 0
20941 # endif
20942 # endif
20943 # endif
20944 # endif
20945 #endif
20946
20947 /* When -fvisibility=hidden is used, assume the code has been annotated
20948 correspondingly for the symbols needed. */
20949 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20950 int fnord (void) __attribute__((visibility("default")));
20951 #endif
20952
20953 int fnord (void) { return 42; }
20954 int main (void)
20955 {
20956 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20957 int status = $lt_dlunknown;
20958
20959 if (self)
20960 {
20961 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20962 else
20963 {
20964 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20965 else puts (dlerror ());
20966 }
20967 /* dlclose (self); */
20968 }
20969 else
20970 puts (dlerror ());
20971
20972 return status;
20973 }
20974 _LT_EOF
20975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20976 (eval $ac_link) 2>&5
20977 ac_status=$?
20978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20979 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20980 (./conftest; exit; ) >&5 2>/dev/null
20981 lt_status=$?
20982 case x$lt_status in
20983 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20984 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20985 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20986 esac
20987 else :
20988 # compilation failed
20989 lt_cv_dlopen_self_static=no
20990 fi
20991 fi
20992 rm -fr conftest*
20993
20994 ;;
20995 esac
20996 fi
20997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20998 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
20999 fi
21000
21001 CPPFLAGS=$save_CPPFLAGS
21002 LDFLAGS=$save_LDFLAGS
21003 LIBS=$save_LIBS
21004 ;;
21005 esac
21006
21007 case $lt_cv_dlopen_self in
21008 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21009 *) enable_dlopen_self=unknown ;;
21010 esac
21011
21012 case $lt_cv_dlopen_self_static in
21013 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21014 *) enable_dlopen_self_static=unknown ;;
21015 esac
21016 fi
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034 striplib=
21035 old_striplib=
21036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21037 printf %s "checking whether stripping libraries is possible... " >&6; }
21038 if test -z "$STRIP"; then
21039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21040 printf "%s\n" "no" >&6; }
21041 else
21042 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21043 old_striplib="$STRIP --strip-debug"
21044 striplib="$STRIP --strip-unneeded"
21045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21046 printf "%s\n" "yes" >&6; }
21047 else
21048 case $host_os in
21049 darwin*)
21050 # FIXME - insert some real tests, host_os isn't really good enough
21051 striplib="$STRIP -x"
21052 old_striplib="$STRIP -S"
21053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21054 printf "%s\n" "yes" >&6; }
21055 ;;
21056 freebsd*)
21057 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
21058 old_striplib="$STRIP --strip-debug"
21059 striplib="$STRIP --strip-unneeded"
21060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21061 printf "%s\n" "yes" >&6; }
21062 else
21063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21064 printf "%s\n" "no" >&6; }
21065 fi
21066 ;;
21067 *)
21068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21069 printf "%s\n" "no" >&6; }
21070 ;;
21071 esac
21072 fi
21073 fi
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086 # Report what library types will actually be built
21087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21088 printf %s "checking if libtool supports shared libraries... " >&6; }
21089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21090 printf "%s\n" "$can_build_shared" >&6; }
21091
21092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21093 printf %s "checking whether to build shared libraries... " >&6; }
21094 test no = "$can_build_shared" && enable_shared=no
21095
21096 # On AIX, shared libraries and static libraries use the same namespace, and
21097 # are all built from PIC.
21098 case $host_os in
21099 aix3*)
21100 test yes = "$enable_shared" && enable_static=no
21101 if test -n "$RANLIB"; then
21102 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21103 postinstall_cmds='$RANLIB $lib'
21104 fi
21105 ;;
21106
21107 aix[4-9]*)
21108 if test ia64 != "$host_cpu"; then
21109 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
21110 yes,aix,yes) ;; # shared object as lib.so file only
21111 yes,svr4,*) ;; # shared object as lib.so archive member only
21112 yes,*) enable_static=no ;; # shared object in lib.a archive as well
21113 esac
21114 fi
21115 ;;
21116 esac
21117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21118 printf "%s\n" "$enable_shared" >&6; }
21119
21120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21121 printf %s "checking whether to build static libraries... " >&6; }
21122 # Make sure either enable_shared or enable_static is yes.
21123 test yes = "$enable_shared" || enable_static=yes
21124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21125 printf "%s\n" "$enable_static" >&6; }
21126
21127
21128
21129
21130 fi
21131 ac_ext=c
21132 ac_cpp='$CPP $CPPFLAGS'
21133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21136
21137 CC=$lt_save_CC
21138
21139 if test -n "$CXX" && ( test no != "$CXX" &&
21140 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
21141 (test g++ != "$CXX"))); then
21142 ac_ext=cpp
21143 ac_cpp='$CXXCPP $CPPFLAGS'
21144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
21148 printf %s "checking how to run the C++ preprocessor... " >&6; }
21149 if test -z "$CXXCPP"; then
21150 if test ${ac_cv_prog_CXXCPP+y}
21151 then :
21152 printf %s "(cached) " >&6
21153 else case e in #(
21154 e) # Double quotes because $CXX needs to be expanded
21155 for CXXCPP in "$CXX -E" cpp /lib/cpp
21156 do
21157 ac_preproc_ok=false
21158 for ac_cxx_preproc_warn_flag in '' yes
21159 do
21160 # Use a header file that comes with gcc, so configuring glibc
21161 # with a fresh cross-compiler works.
21162 # On the NeXT, cc -E runs the code through the compiler's parser,
21163 # not just through cpp. "Syntax error" is here to catch this case.
21164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21165 /* end confdefs.h. */
21166 #include <limits.h>
21167 Syntax error
21168 _ACEOF
21169 if ac_fn_cxx_try_cpp "$LINENO"
21170 then :
21171
21172 else case e in #(
21173 e) # Broken: fails on valid input.
21174 continue ;;
21175 esac
21176 fi
21177 rm -f conftest.err conftest.i conftest.$ac_ext
21178
21179 # OK, works on sane cases. Now check whether nonexistent headers
21180 # can be detected and how.
21181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21182 /* end confdefs.h. */
21183 #include <ac_nonexistent.h>
21184 _ACEOF
21185 if ac_fn_cxx_try_cpp "$LINENO"
21186 then :
21187 # Broken: success on invalid input.
21188 continue
21189 else case e in #(
21190 e) # Passes both tests.
21191 ac_preproc_ok=:
21192 break ;;
21193 esac
21194 fi
21195 rm -f conftest.err conftest.i conftest.$ac_ext
21196
21197 done
21198 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21199 rm -f conftest.i conftest.err conftest.$ac_ext
21200 if $ac_preproc_ok
21201 then :
21202 break
21203 fi
21204
21205 done
21206 ac_cv_prog_CXXCPP=$CXXCPP
21207 ;;
21208 esac
21209 fi
21210 CXXCPP=$ac_cv_prog_CXXCPP
21211 else
21212 ac_cv_prog_CXXCPP=$CXXCPP
21213 fi
21214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
21215 printf "%s\n" "$CXXCPP" >&6; }
21216 ac_preproc_ok=false
21217 for ac_cxx_preproc_warn_flag in '' yes
21218 do
21219 # Use a header file that comes with gcc, so configuring glibc
21220 # with a fresh cross-compiler works.
21221 # On the NeXT, cc -E runs the code through the compiler's parser,
21222 # not just through cpp. "Syntax error" is here to catch this case.
21223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21224 /* end confdefs.h. */
21225 #include <limits.h>
21226 Syntax error
21227 _ACEOF
21228 if ac_fn_cxx_try_cpp "$LINENO"
21229 then :
21230
21231 else case e in #(
21232 e) # Broken: fails on valid input.
21233 continue ;;
21234 esac
21235 fi
21236 rm -f conftest.err conftest.i conftest.$ac_ext
21237
21238 # OK, works on sane cases. Now check whether nonexistent headers
21239 # can be detected and how.
21240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21241 /* end confdefs.h. */
21242 #include <ac_nonexistent.h>
21243 _ACEOF
21244 if ac_fn_cxx_try_cpp "$LINENO"
21245 then :
21246 # Broken: success on invalid input.
21247 continue
21248 else case e in #(
21249 e) # Passes both tests.
21250 ac_preproc_ok=:
21251 break ;;
21252 esac
21253 fi
21254 rm -f conftest.err conftest.i conftest.$ac_ext
21255
21256 done
21257 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21258 rm -f conftest.i conftest.err conftest.$ac_ext
21259 if $ac_preproc_ok
21260 then :
21261
21262 else case e in #(
21263 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21264 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21265 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
21266 See 'config.log' for more details" "$LINENO" 5; } ;;
21267 esac
21268 fi
21269
21270 ac_ext=c
21271 ac_cpp='$CPP $CPPFLAGS'
21272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21275
21276 else
21277 _lt_caught_CXX_error=yes
21278 fi
21279
21280 ac_ext=cpp
21281 ac_cpp='$CXXCPP $CPPFLAGS'
21282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21285
21286 archive_cmds_need_lc_CXX=no
21287 allow_undefined_flag_CXX=
21288 always_export_symbols_CXX=no
21289 archive_expsym_cmds_CXX=
21290 compiler_needs_object_CXX=no
21291 export_dynamic_flag_spec_CXX=
21292 hardcode_direct_CXX=no
21293 hardcode_direct_absolute_CXX=no
21294 hardcode_libdir_flag_spec_CXX=
21295 hardcode_libdir_separator_CXX=
21296 hardcode_minus_L_CXX=no
21297 hardcode_shlibpath_var_CXX=unsupported
21298 hardcode_automatic_CXX=no
21299 inherit_rpath_CXX=no
21300 module_cmds_CXX=
21301 module_expsym_cmds_CXX=
21302 link_all_deplibs_CXX=unknown
21303 old_archive_cmds_CXX=$old_archive_cmds
21304 reload_flag_CXX=$reload_flag
21305 reload_cmds_CXX=$reload_cmds
21306 no_undefined_flag_CXX=
21307 whole_archive_flag_spec_CXX=
21308 enable_shared_with_static_runtimes_CXX=no
21309
21310 # Source file extension for C++ test sources.
21311 ac_ext=cpp
21312
21313 # Object file extension for compiled C++ test sources.
21314 objext=o
21315 objext_CXX=$objext
21316
21317 # No sense in running all these tests if we already determined that
21318 # the CXX compiler isn't working. Some variables (like enable_shared)
21319 # are currently assumed to apply to all compilers on this platform,
21320 # and will be corrupted by setting them based on a non-working compiler.
21321 if test yes != "$_lt_caught_CXX_error"; then
21322 # Code to be used in simple compile tests
21323 lt_simple_compile_test_code="int some_variable = 0;"
21324
21325 # Code to be used in simple link tests
21326 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
21327
21328 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21329
21330
21331
21332
21333
21334
21335 # If no C compiler was specified, use CC.
21336 LTCC=${LTCC-"$CC"}
21337
21338 # If no C compiler flags were specified, use CFLAGS.
21339 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21340
21341 # Allow CC to be a program name with arguments.
21342 compiler=$CC
21343
21344
21345 # save warnings/boilerplate of simple test code
21346 ac_outfile=conftest.$ac_objext
21347 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21348 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21349 _lt_compiler_boilerplate=`cat conftest.err`
21350 $RM conftest*
21351
21352 ac_outfile=conftest.$ac_objext
21353 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21354 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21355 _lt_linker_boilerplate=`cat conftest.err`
21356 $RM -r conftest*
21357
21358
21359 # Allow CC to be a program name with arguments.
21360 lt_save_CC=$CC
21361 lt_save_CFLAGS=$CFLAGS
21362 lt_save_LD=$LD
21363 lt_save_GCC=$GCC
21364 GCC=$GXX
21365 lt_save_with_gnu_ld=$with_gnu_ld
21366 lt_save_path_LD=$lt_cv_path_LD
21367 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
21368 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
21369 else
21370 $as_unset lt_cv_prog_gnu_ld
21371 fi
21372 if test -n "${lt_cv_path_LDCXX+set}"; then
21373 lt_cv_path_LD=$lt_cv_path_LDCXX
21374 else
21375 $as_unset lt_cv_path_LD
21376 fi
21377 test -z "${LDCXX+set}" || LD=$LDCXX
21378 CC=${CXX-"c++"}
21379 CFLAGS=$CXXFLAGS
21380 compiler=$CC
21381 compiler_CXX=$CC
21382 func_cc_basename $compiler
21383 cc_basename=$func_cc_basename_result
21384
21385
21386 if test -n "$compiler"; then
21387 # We don't want -fno-exception when compiling C++ code, so set the
21388 # no_builtin_flag separately
21389 if test yes = "$GXX"; then
21390 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
21391 else
21392 lt_prog_compiler_no_builtin_flag_CXX=
21393 fi
21394
21395 if test yes = "$GXX"; then
21396 # Set up default GNU C++ configuration
21397
21398
21399
21400 # Check whether --with-gnu-ld was given.
21401 if test ${with_gnu_ld+y}
21402 then :
21403 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
21404 else case e in #(
21405 e) with_gnu_ld=no ;;
21406 esac
21407 fi
21408
21409 ac_prog=ld
21410 if test yes = "$GCC"; then
21411 # Check if gcc -print-prog-name=ld gives a path.
21412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
21413 printf %s "checking for ld used by $CC... " >&6; }
21414 case $host in
21415 *-*-mingw* | *-*-windows*)
21416 # gcc leaves a trailing carriage return, which upsets mingw
21417 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21418 *)
21419 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21420 esac
21421 case $ac_prog in
21422 # Accept absolute paths.
21423 [\\/]* | ?:[\\/]*)
21424 re_direlt='/[^/][^/]*/\.\./'
21425 # Canonicalize the pathname of ld
21426 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
21427 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
21428 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
21429 done
21430 test -z "$LD" && LD=$ac_prog
21431 ;;
21432 "")
21433 # If it fails, then pretend we aren't using GCC.
21434 ac_prog=ld
21435 ;;
21436 *)
21437 # If it is relative, then search for the first ld in PATH.
21438 with_gnu_ld=unknown
21439 ;;
21440 esac
21441 elif test yes = "$with_gnu_ld"; then
21442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21443 printf %s "checking for GNU ld... " >&6; }
21444 else
21445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21446 printf %s "checking for non-GNU ld... " >&6; }
21447 fi
21448 if test ${lt_cv_path_LD+y}
21449 then :
21450 printf %s "(cached) " >&6
21451 else case e in #(
21452 e) if test -z "$LD"; then
21453 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
21454 for ac_dir in $PATH; do
21455 IFS=$lt_save_ifs
21456 test -z "$ac_dir" && ac_dir=.
21457 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21458 lt_cv_path_LD=$ac_dir/$ac_prog
21459 # Check to see if the program is GNU ld. I'd rather use --version,
21460 # but apparently some variants of GNU ld only accept -v.
21461 # Break only if it was the GNU/non-GNU ld that we prefer.
21462 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
21463 *GNU* | *'with BFD'*)
21464 test no != "$with_gnu_ld" && break
21465 ;;
21466 *)
21467 test yes != "$with_gnu_ld" && break
21468 ;;
21469 esac
21470 fi
21471 done
21472 IFS=$lt_save_ifs
21473 else
21474 lt_cv_path_LD=$LD # Let the user override the test with a path.
21475 fi ;;
21476 esac
21477 fi
21478
21479 LD=$lt_cv_path_LD
21480 if test -n "$LD"; then
21481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21482 printf "%s\n" "$LD" >&6; }
21483 else
21484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21485 printf "%s\n" "no" >&6; }
21486 fi
21487 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
21488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21489 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
21490 if test ${lt_cv_prog_gnu_ld+y}
21491 then :
21492 printf %s "(cached) " >&6
21493 else case e in #(
21494 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
21495 case `$LD -v 2>&1 </dev/null` in
21496 *GNU* | *'with BFD'*)
21497 lt_cv_prog_gnu_ld=yes
21498 ;;
21499 *)
21500 lt_cv_prog_gnu_ld=no
21501 ;;
21502 esac ;;
21503 esac
21504 fi
21505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
21506 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
21507 with_gnu_ld=$lt_cv_prog_gnu_ld
21508
21509
21510
21511
21512
21513
21514
21515 # Check if GNU C++ uses GNU ld as the underlying linker, since the
21516 # archiving commands below assume that GNU ld is being used.
21517 if test yes = "$with_gnu_ld"; then
21518 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21519 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'
21520
21521 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21522 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21523
21524 # If archive_cmds runs LD, not CC, wlarc should be empty
21525 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
21526 # investigate it a little bit more. (MM)
21527 wlarc='$wl'
21528
21529 # ancient GNU ld didn't support --whole-archive et. al.
21530 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
21531 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
21532 else
21533 whole_archive_flag_spec_CXX=
21534 fi
21535 else
21536 with_gnu_ld=no
21537 wlarc=
21538
21539 # A generic and very simple default shared library creation
21540 # command for GNU C++ for the case where it uses the native
21541 # linker, instead of GNU ld. If possible, this setting should
21542 # overridden to take advantage of the native linker features on
21543 # the platform it is being used on.
21544 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21545 fi
21546
21547 # Commands to make compiler produce verbose output that lists
21548 # what "hidden" libraries, object files and flags are used when
21549 # linking a shared library.
21550 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
21551
21552 else
21553 GXX=no
21554 with_gnu_ld=no
21555 wlarc=
21556 fi
21557
21558 # PORTME: fill in a description of your system's C++ link characteristics
21559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21560 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21561 ld_shlibs_CXX=yes
21562 case $host_os in
21563 aix3*)
21564 # FIXME: insert proper C++ library support
21565 ld_shlibs_CXX=no
21566 ;;
21567 aix[4-9]*)
21568 if test ia64 = "$host_cpu"; then
21569 # On IA64, the linker does run time linking by default, so we don't
21570 # have to do anything special.
21571 aix_use_runtimelinking=no
21572 exp_sym_flag='-Bexport'
21573 no_entry_flag=
21574 else
21575 aix_use_runtimelinking=no
21576
21577 # Test if we are trying to use run time linking or normal
21578 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21579 # have runtime linking enabled, and use it for executables.
21580 # For shared libraries, we enable/disable runtime linking
21581 # depending on the kind of the shared library created -
21582 # when "with_aix_soname,aix_use_runtimelinking" is:
21583 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
21584 # "aix,yes" lib.so shared, rtl:yes, for executables
21585 # lib.a static archive
21586 # "both,no" lib.so.V(shr.o) shared, rtl:yes
21587 # lib.a(lib.so.V) shared, rtl:no, for executables
21588 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
21589 # lib.a(lib.so.V) shared, rtl:no
21590 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
21591 # lib.a static archive
21592 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
21593 for ld_flag in $LDFLAGS; do
21594 case $ld_flag in
21595 *-brtl*)
21596 aix_use_runtimelinking=yes
21597 break
21598 ;;
21599 esac
21600 done
21601 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
21602 # With aix-soname=svr4, we create the lib.so.V shared archives only,
21603 # so we don't have lib.a shared libs to link our executables.
21604 # We have to force runtime linking in this case.
21605 aix_use_runtimelinking=yes
21606 LDFLAGS="$LDFLAGS -Wl,-brtl"
21607 fi
21608 ;;
21609 esac
21610
21611 exp_sym_flag='-bexport'
21612 no_entry_flag='-bnoentry'
21613 fi
21614
21615 # When large executables or shared objects are built, AIX ld can
21616 # have problems creating the table of contents. If linking a library
21617 # or program results in "error TOC overflow" add -mminimal-toc to
21618 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21619 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21620
21621 archive_cmds_CXX=''
21622 hardcode_direct_CXX=yes
21623 hardcode_direct_absolute_CXX=yes
21624 hardcode_libdir_separator_CXX=':'
21625 link_all_deplibs_CXX=yes
21626 file_list_spec_CXX='$wl-f,'
21627 case $with_aix_soname,$aix_use_runtimelinking in
21628 aix,*) ;; # no import file
21629 svr4,* | *,yes) # use import file
21630 # The Import File defines what to hardcode.
21631 hardcode_direct_CXX=no
21632 hardcode_direct_absolute_CXX=no
21633 ;;
21634 esac
21635
21636 if test yes = "$GXX"; then
21637 case $host_os in aix4.[012]|aix4.[012].*)
21638 # We only want to do this on AIX 4.2 and lower, the check
21639 # below for broken collect2 doesn't work under 4.3+
21640 collect2name=`$CC -print-prog-name=collect2`
21641 if test -f "$collect2name" &&
21642 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
21643 then
21644 # We have reworked collect2
21645 :
21646 else
21647 # We have old collect2
21648 hardcode_direct_CXX=unsupported
21649 # It fails to find uninstalled libraries when the uninstalled
21650 # path is not listed in the libpath. Setting hardcode_minus_L
21651 # to unsupported forces relinking
21652 hardcode_minus_L_CXX=yes
21653 hardcode_libdir_flag_spec_CXX='-L$libdir'
21654 hardcode_libdir_separator_CXX=
21655 fi
21656 esac
21657 shared_flag='-shared'
21658 if test yes = "$aix_use_runtimelinking"; then
21659 shared_flag=$shared_flag' $wl-G'
21660 fi
21661 # Need to ensure runtime linking is disabled for the traditional
21662 # shared library, or the linker may eventually find shared libraries
21663 # /with/ Import File - we do not want to mix them.
21664 shared_flag_aix='-shared'
21665 shared_flag_svr4='-shared $wl-G'
21666 else
21667 # not using gcc
21668 if test ia64 = "$host_cpu"; then
21669 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21670 # chokes on -Wl,-G. The following line is correct:
21671 shared_flag='-G'
21672 else
21673 if test yes = "$aix_use_runtimelinking"; then
21674 shared_flag='$wl-G'
21675 else
21676 shared_flag='$wl-bM:SRE'
21677 fi
21678 shared_flag_aix='$wl-bM:SRE'
21679 shared_flag_svr4='$wl-G'
21680 fi
21681 fi
21682
21683 export_dynamic_flag_spec_CXX='$wl-bexpall'
21684 # It seems that -bexpall does not export symbols beginning with
21685 # underscore (_), so it is better to generate a list of symbols to
21686 # export.
21687 always_export_symbols_CXX=yes
21688 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
21689 # Warning - without using the other runtime loading flags (-brtl),
21690 # -berok will link without error, but may produce a broken library.
21691 # The "-G" linker flag allows undefined symbols.
21692 no_undefined_flag_CXX='-bernotok'
21693 # Determine the default libpath from the value encoded in an empty
21694 # executable.
21695 if test set = "${lt_cv_aix_libpath+set}"; then
21696 aix_libpath=$lt_cv_aix_libpath
21697 else
21698 if test ${lt_cv_aix_libpath__CXX+y}
21699 then :
21700 printf %s "(cached) " >&6
21701 else case e in #(
21702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21703 /* end confdefs.h. */
21704
21705 int
21706 main (void)
21707 {
21708
21709 ;
21710 return 0;
21711 }
21712 _ACEOF
21713 if ac_fn_cxx_try_link "$LINENO"
21714 then :
21715
21716 lt_aix_libpath_sed='
21717 /Import File Strings/,/^$/ {
21718 /^0/ {
21719 s/^0 *\([^ ]*\) *$/\1/
21720 p
21721 }
21722 }'
21723 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21724 # Check for a 64-bit object if we didn't find anything.
21725 if test -z "$lt_cv_aix_libpath__CXX"; then
21726 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21727 fi
21728 fi
21729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21730 conftest$ac_exeext conftest.$ac_ext
21731 if test -z "$lt_cv_aix_libpath__CXX"; then
21732 lt_cv_aix_libpath__CXX=/usr/lib:/lib
21733 fi
21734 ;;
21735 esac
21736 fi
21737
21738 aix_libpath=$lt_cv_aix_libpath__CXX
21739 fi
21740
21741 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
21742
21743 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
21744 else
21745 if test ia64 = "$host_cpu"; then
21746 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
21747 allow_undefined_flag_CXX="-z nodefs"
21748 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"
21749 else
21750 # Determine the default libpath from the value encoded in an
21751 # empty executable.
21752 if test set = "${lt_cv_aix_libpath+set}"; then
21753 aix_libpath=$lt_cv_aix_libpath
21754 else
21755 if test ${lt_cv_aix_libpath__CXX+y}
21756 then :
21757 printf %s "(cached) " >&6
21758 else case e in #(
21759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21760 /* end confdefs.h. */
21761
21762 int
21763 main (void)
21764 {
21765
21766 ;
21767 return 0;
21768 }
21769 _ACEOF
21770 if ac_fn_cxx_try_link "$LINENO"
21771 then :
21772
21773 lt_aix_libpath_sed='
21774 /Import File Strings/,/^$/ {
21775 /^0/ {
21776 s/^0 *\([^ ]*\) *$/\1/
21777 p
21778 }
21779 }'
21780 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21781 # Check for a 64-bit object if we didn't find anything.
21782 if test -z "$lt_cv_aix_libpath__CXX"; then
21783 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21784 fi
21785 fi
21786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21787 conftest$ac_exeext conftest.$ac_ext
21788 if test -z "$lt_cv_aix_libpath__CXX"; then
21789 lt_cv_aix_libpath__CXX=/usr/lib:/lib
21790 fi
21791 ;;
21792 esac
21793 fi
21794
21795 aix_libpath=$lt_cv_aix_libpath__CXX
21796 fi
21797
21798 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
21799 # Warning - without using the other run time loading flags,
21800 # -berok will link without error, but may produce a broken library.
21801 no_undefined_flag_CXX=' $wl-bernotok'
21802 allow_undefined_flag_CXX=' $wl-berok'
21803 if test yes = "$with_gnu_ld"; then
21804 # We only use this code for GNU lds that support --whole-archive.
21805 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
21806 else
21807 # Exported symbols can be pulled into shared objects from archives
21808 whole_archive_flag_spec_CXX='$convenience'
21809 fi
21810 archive_cmds_need_lc_CXX=yes
21811 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
21812 # -brtl affects multiple linker settings, -berok does not and is overridden later
21813 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
21814 if test svr4 != "$with_aix_soname"; then
21815 # This is similar to how AIX traditionally builds its shared
21816 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
21817 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'
21818 fi
21819 if test aix != "$with_aix_soname"; then
21820 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'
21821 else
21822 # used by -dlpreopen to get the symbols
21823 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
21824 fi
21825 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
21826 fi
21827 fi
21828 ;;
21829
21830 beos*)
21831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21832 allow_undefined_flag_CXX=unsupported
21833 # Joseph Beckenbach <[email protected]> says some releases of gcc
21834 # support --undefined. This deserves some investigation. FIXME
21835 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21836 else
21837 ld_shlibs_CXX=no
21838 fi
21839 ;;
21840
21841 chorus*)
21842 case $cc_basename in
21843 *)
21844 # FIXME: insert proper C++ library support
21845 ld_shlibs_CXX=no
21846 ;;
21847 esac
21848 ;;
21849
21850 cygwin* | mingw* | windows* | pw32* | cegcc*)
21851 case $GXX,$cc_basename in
21852 ,cl* | no,cl* | ,icl* | no,icl*)
21853 # Native MSVC or ICC
21854 # hardcode_libdir_flag_spec is actually meaningless, as there is
21855 # no search path for DLLs.
21856 hardcode_libdir_flag_spec_CXX=' '
21857 allow_undefined_flag_CXX=unsupported
21858 always_export_symbols_CXX=yes
21859 file_list_spec_CXX='@'
21860 # Tell ltmain to make .lib files, not .a files.
21861 libext=lib
21862 # Tell ltmain to make .dll files, not .so files.
21863 shrext_cmds=.dll
21864 # FIXME: Setting linknames here is a bad hack.
21865 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
21866 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
21867 cp "$export_symbols" "$output_objdir/$soname.def";
21868 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
21869 else
21870 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
21871 fi~
21872 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
21873 linknames='
21874 # The linker will not automatically build a static lib if we build a DLL.
21875 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
21876 enable_shared_with_static_runtimes_CXX=yes
21877 # Don't use ranlib
21878 old_postinstall_cmds_CXX='chmod 644 $oldlib'
21879 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
21880 lt_tool_outputfile="@TOOL_OUTPUT@"~
21881 case $lt_outputfile in
21882 *.exe|*.EXE) ;;
21883 *)
21884 lt_outputfile=$lt_outputfile.exe
21885 lt_tool_outputfile=$lt_tool_outputfile.exe
21886 ;;
21887 esac~
21888 func_to_tool_file "$lt_outputfile"~
21889 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
21890 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
21891 $RM "$lt_outputfile.manifest";
21892 fi'
21893 ;;
21894 *)
21895 # g++
21896 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
21897 # as there is no search path for DLLs.
21898 hardcode_libdir_flag_spec_CXX='-L$libdir'
21899 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
21900 allow_undefined_flag_CXX=unsupported
21901 always_export_symbols_CXX=no
21902 enable_shared_with_static_runtimes_CXX=yes
21903 file_list_spec_CXX='@'
21904
21905 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
21906 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'
21907 # If the export-symbols file already is a .def file, use it as
21908 # is; otherwise, prepend EXPORTS...
21909 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
21910 cp $export_symbols $output_objdir/$soname.def;
21911 else
21912 echo EXPORTS > $output_objdir/$soname.def;
21913 cat $export_symbols >> $output_objdir/$soname.def;
21914 fi~
21915 $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'
21916 else
21917 ld_shlibs_CXX=no
21918 fi
21919 ;;
21920 esac
21921 ;;
21922 darwin* | rhapsody*)
21923
21924
21925 archive_cmds_need_lc_CXX=no
21926 hardcode_direct_CXX=no
21927 hardcode_automatic_CXX=yes
21928 hardcode_shlibpath_var_CXX=unsupported
21929 if test yes = "$lt_cv_ld_force_load"; then
21930 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\"`'
21931
21932 else
21933 whole_archive_flag_spec_CXX=''
21934 fi
21935 link_all_deplibs_CXX=yes
21936 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
21937 case $cc_basename in
21938 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
21939 *) _lt_dar_can_shared=$GCC ;;
21940 esac
21941 if test yes = "$_lt_dar_can_shared"; then
21942 output_verbose_link_cmd=func_echo_all
21943 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"
21944 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
21945 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"
21946 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"
21947 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
21948 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"
21949 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"
21950 fi
21951
21952 else
21953 ld_shlibs_CXX=no
21954 fi
21955
21956 ;;
21957
21958 os2*)
21959 hardcode_libdir_flag_spec_CXX='-L$libdir'
21960 hardcode_minus_L_CXX=yes
21961 allow_undefined_flag_CXX=unsupported
21962 shrext_cmds=.dll
21963 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21964 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21965 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21966 $ECHO EXPORTS >> $output_objdir/$libname.def~
21967 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
21968 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21969 emximp -o $lib $output_objdir/$libname.def'
21970 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21971 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21972 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21973 $ECHO EXPORTS >> $output_objdir/$libname.def~
21974 prefix_cmds="$SED"~
21975 if test EXPORTS = "`$SED 1q $export_symbols`"; then
21976 prefix_cmds="$prefix_cmds -e 1d";
21977 fi~
21978 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
21979 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
21980 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21981 emximp -o $lib $output_objdir/$libname.def'
21982 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
21983 enable_shared_with_static_runtimes_CXX=yes
21984 file_list_spec_CXX='@'
21985 ;;
21986
21987 dgux*)
21988 case $cc_basename in
21989 ec++*)
21990 # FIXME: insert proper C++ library support
21991 ld_shlibs_CXX=no
21992 ;;
21993 ghcx*)
21994 # Green Hills C++ Compiler
21995 # FIXME: insert proper C++ library support
21996 ld_shlibs_CXX=no
21997 ;;
21998 *)
21999 # FIXME: insert proper C++ library support
22000 ld_shlibs_CXX=no
22001 ;;
22002 esac
22003 ;;
22004
22005 freebsd2.*)
22006 # C++ shared libraries reported to be fairly broken before
22007 # switch to ELF
22008 ld_shlibs_CXX=no
22009 ;;
22010
22011 freebsd-elf*)
22012 archive_cmds_need_lc_CXX=no
22013 ;;
22014
22015 freebsd* | dragonfly* | midnightbsd*)
22016 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22017 # conventions
22018 ld_shlibs_CXX=yes
22019 ;;
22020
22021 haiku*)
22022 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
22023 link_all_deplibs_CXX=no
22024 ;;
22025
22026 hpux9*)
22027 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
22028 hardcode_libdir_separator_CXX=:
22029 export_dynamic_flag_spec_CXX='$wl-E'
22030 hardcode_direct_CXX=yes
22031 hardcode_minus_L_CXX=yes # Not in the search PATH,
22032 # but as the default
22033 # location of the library.
22034
22035 case $cc_basename in
22036 CC*)
22037 # FIXME: insert proper C++ library support
22038 ld_shlibs_CXX=no
22039 ;;
22040 aCC*)
22041 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'
22042 # Commands to make compiler produce verbose output that lists
22043 # what "hidden" libraries, object files and flags are used when
22044 # linking a shared library.
22045 #
22046 # There doesn't appear to be a way to prevent this compiler from
22047 # explicitly linking system object files so we need to strip them
22048 # from the output so that they don't get included in the library
22049 # dependencies.
22050 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"'
22051 ;;
22052 *)
22053 if test yes = "$GXX"; then
22054 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'
22055 else
22056 # FIXME: insert proper C++ library support
22057 ld_shlibs_CXX=no
22058 fi
22059 ;;
22060 esac
22061 ;;
22062
22063 hpux10*|hpux11*)
22064 if test no = "$with_gnu_ld"; then
22065 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
22066 hardcode_libdir_separator_CXX=:
22067
22068 case $host_cpu in
22069 hppa*64*|ia64*)
22070 ;;
22071 *)
22072 export_dynamic_flag_spec_CXX='$wl-E'
22073 ;;
22074 esac
22075 fi
22076 case $host_cpu in
22077 hppa*64*|ia64*)
22078 hardcode_direct_CXX=no
22079 hardcode_shlibpath_var_CXX=no
22080 ;;
22081 *)
22082 hardcode_direct_CXX=yes
22083 hardcode_direct_absolute_CXX=yes
22084 hardcode_minus_L_CXX=yes # Not in the search PATH,
22085 # but as the default
22086 # location of the library.
22087 ;;
22088 esac
22089
22090 case $cc_basename in
22091 CC*)
22092 # FIXME: insert proper C++ library support
22093 ld_shlibs_CXX=no
22094 ;;
22095 aCC*)
22096 case $host_cpu in
22097 hppa*64*)
22098 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22099 ;;
22100 ia64*)
22101 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22102 ;;
22103 *)
22104 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22105 ;;
22106 esac
22107 # Commands to make compiler produce verbose output that lists
22108 # what "hidden" libraries, object files and flags are used when
22109 # linking a shared library.
22110 #
22111 # There doesn't appear to be a way to prevent this compiler from
22112 # explicitly linking system object files so we need to strip them
22113 # from the output so that they don't get included in the library
22114 # dependencies.
22115 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"'
22116 ;;
22117 *)
22118 if test yes = "$GXX"; then
22119 if test no = "$with_gnu_ld"; then
22120 case $host_cpu in
22121 hppa*64*)
22122 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22123 ;;
22124 ia64*)
22125 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22126 ;;
22127 *)
22128 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'
22129 ;;
22130 esac
22131 fi
22132 else
22133 # FIXME: insert proper C++ library support
22134 ld_shlibs_CXX=no
22135 fi
22136 ;;
22137 esac
22138 ;;
22139
22140 interix[3-9]*)
22141 hardcode_direct_CXX=no
22142 hardcode_shlibpath_var_CXX=no
22143 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
22144 export_dynamic_flag_spec_CXX='$wl-E'
22145 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22146 # Instead, shared libraries are loaded at an image base (0x10000000 by
22147 # default) and relocated if they conflict, which is a slow very memory
22148 # consuming and fragmenting process. To avoid this, we pick a random,
22149 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22150 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22151 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'
22152 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'
22153 ;;
22154 irix5* | irix6*)
22155 case $cc_basename in
22156 CC*)
22157 # SGI C++
22158 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'
22159
22160 # Archives containing C++ object files must be created using
22161 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22162 # necessary to make sure instantiated templates are included
22163 # in the archive.
22164 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
22165 ;;
22166 *)
22167 if test yes = "$GXX"; then
22168 if test no = "$with_gnu_ld"; then
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"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
22170 else
22171 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'
22172 fi
22173 fi
22174 link_all_deplibs_CXX=yes
22175 ;;
22176 esac
22177 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
22178 hardcode_libdir_separator_CXX=:
22179 inherit_rpath_CXX=yes
22180 ;;
22181
22182 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
22183 case $cc_basename in
22184 KCC*)
22185 # Kuck and Associates, Inc. (KAI) C++ Compiler
22186
22187 # KCC will only create a shared library if the output file
22188 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22189 # to its proper name (with version) after linking.
22190 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'
22191 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'
22192 # Commands to make compiler produce verbose output that lists
22193 # what "hidden" libraries, object files and flags are used when
22194 # linking a shared library.
22195 #
22196 # There doesn't appear to be a way to prevent this compiler from
22197 # explicitly linking system object files so we need to strip them
22198 # from the output so that they don't get included in the library
22199 # dependencies.
22200 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"'
22201
22202 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
22203 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
22204
22205 # Archives containing C++ object files must be created using
22206 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22207 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
22208 ;;
22209 icpc* | ecpc* )
22210 # Intel C++
22211 with_gnu_ld=yes
22212 # version 8.0 and above of icpc choke on multiply defined symbols
22213 # if we add $predep_objects and $postdep_objects, however 7.1 and
22214 # earlier do not add the objects themselves.
22215 case `$CC -V 2>&1` in
22216 *"Version 7."*)
22217 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
22218 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'
22219 ;;
22220 *) # Version 8.0 or newer
22221 tmp_idyn=
22222 case $host_cpu in
22223 ia64*) tmp_idyn=' -i_dynamic';;
22224 esac
22225 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
22226 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'
22227 ;;
22228 esac
22229 archive_cmds_need_lc_CXX=no
22230 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
22231 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
22232 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
22233 ;;
22234 pgCC* | pgcpp*)
22235 # Portland Group C++ compiler
22236 case `$CC -V` in
22237 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
22238 prelink_cmds_CXX='tpldir=Template.dir~
22239 rm -rf $tpldir~
22240 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22241 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22242 old_archive_cmds_CXX='tpldir=Template.dir~
22243 rm -rf $tpldir~
22244 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22245 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22246 $RANLIB $oldlib'
22247 archive_cmds_CXX='tpldir=Template.dir~
22248 rm -rf $tpldir~
22249 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22250 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
22251 archive_expsym_cmds_CXX='tpldir=Template.dir~
22252 rm -rf $tpldir~
22253 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22254 $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'
22255 ;;
22256 *) # Version 6 and above use weak symbols
22257 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
22258 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'
22259 ;;
22260 esac
22261
22262 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
22263 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
22264 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'
22265 ;;
22266 cxx*)
22267 # Compaq C++
22268 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
22269 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'
22270
22271 runpath_var=LD_RUN_PATH
22272 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22273 hardcode_libdir_separator_CXX=:
22274
22275 # Commands to make compiler produce verbose output that lists
22276 # what "hidden" libraries, object files and flags are used when
22277 # linking a shared library.
22278 #
22279 # There doesn't appear to be a way to prevent this compiler from
22280 # explicitly linking system object files so we need to strip them
22281 # from the output so that they don't get included in the library
22282 # dependencies.
22283 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'
22284 ;;
22285 xl* | mpixl* | bgxl*)
22286 # IBM XL 8.0 on PPC, with GNU ld
22287 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
22288 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
22289 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
22290 if test yes = "$supports_anon_versioning"; then
22291 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
22292 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22293 echo "local: *; };" >> $output_objdir/$libname.ver~
22294 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
22295 fi
22296 ;;
22297 *)
22298 case `$CC -V 2>&1 | $SED 5q` in
22299 *Sun\ C*)
22300 # Sun C++ 5.9
22301 no_undefined_flag_CXX=' -zdefs'
22302 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22303 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'
22304 hardcode_libdir_flag_spec_CXX='-R$libdir'
22305 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'
22306 compiler_needs_object_CXX=yes
22307
22308 # Not sure whether something based on
22309 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22310 # would be better.
22311 output_verbose_link_cmd='func_echo_all'
22312
22313 # Archives containing C++ object files must be created using
22314 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22315 # necessary to make sure instantiated templates are included
22316 # in the archive.
22317 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
22318 ;;
22319 esac
22320 ;;
22321 esac
22322 ;;
22323
22324 lynxos*)
22325 # FIXME: insert proper C++ library support
22326 ld_shlibs_CXX=no
22327 ;;
22328
22329 m88k*)
22330 # FIXME: insert proper C++ library support
22331 ld_shlibs_CXX=no
22332 ;;
22333
22334 mvs*)
22335 case $cc_basename in
22336 cxx*)
22337 # FIXME: insert proper C++ library support
22338 ld_shlibs_CXX=no
22339 ;;
22340 *)
22341 # FIXME: insert proper C++ library support
22342 ld_shlibs_CXX=no
22343 ;;
22344 esac
22345 ;;
22346
22347 *-mlibc)
22348 ld_shlibs_CXX=yes
22349 ;;
22350
22351 netbsd*)
22352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22353 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
22354 wlarc=
22355 hardcode_libdir_flag_spec_CXX='-R$libdir'
22356 hardcode_direct_CXX=yes
22357 hardcode_shlibpath_var_CXX=no
22358 fi
22359 # Workaround some broken pre-1.5 toolchains
22360 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
22361 ;;
22362
22363 *nto* | *qnx*)
22364 ld_shlibs_CXX=yes
22365 ;;
22366
22367 openbsd*)
22368 if test -f /usr/libexec/ld.so; then
22369 hardcode_direct_CXX=yes
22370 hardcode_shlibpath_var_CXX=no
22371 hardcode_direct_absolute_CXX=yes
22372 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22373 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
22374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
22375 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
22376 export_dynamic_flag_spec_CXX='$wl-E'
22377 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
22378 fi
22379 output_verbose_link_cmd=func_echo_all
22380 else
22381 ld_shlibs_CXX=no
22382 fi
22383 ;;
22384
22385 osf3* | osf4* | osf5*)
22386 case $cc_basename in
22387 KCC*)
22388 # Kuck and Associates, Inc. (KAI) C++ Compiler
22389
22390 # KCC will only create a shared library if the output file
22391 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22392 # to its proper name (with version) after linking.
22393 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'
22394
22395 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
22396 hardcode_libdir_separator_CXX=:
22397
22398 # Archives containing C++ object files must be created using
22399 # the KAI C++ compiler.
22400 case $host in
22401 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
22402 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
22403 esac
22404 ;;
22405 RCC*)
22406 # Rational C++ 2.4.1
22407 # FIXME: insert proper C++ library support
22408 ld_shlibs_CXX=no
22409 ;;
22410 cxx*)
22411 case $host in
22412 osf3*)
22413 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
22414 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'
22415 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
22416 ;;
22417 *)
22418 allow_undefined_flag_CXX=' -expect_unresolved \*'
22419 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'
22420 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
22421 echo "-hidden">> $lib.exp~
22422 $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~
22423 $RM $lib.exp'
22424 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22425 ;;
22426 esac
22427
22428 hardcode_libdir_separator_CXX=:
22429
22430 # Commands to make compiler produce verbose output that lists
22431 # what "hidden" libraries, object files and flags are used when
22432 # linking a shared library.
22433 #
22434 # There doesn't appear to be a way to prevent this compiler from
22435 # explicitly linking system object files so we need to strip them
22436 # from the output so that they don't get included in the library
22437 # dependencies.
22438 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"'
22439 ;;
22440 *)
22441 if test yes,no = "$GXX,$with_gnu_ld"; then
22442 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
22443 case $host in
22444 osf3*)
22445 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'
22446 ;;
22447 *)
22448 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'
22449 ;;
22450 esac
22451
22452 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
22453 hardcode_libdir_separator_CXX=:
22454
22455 # Commands to make compiler produce verbose output that lists
22456 # what "hidden" libraries, object files and flags are used when
22457 # linking a shared library.
22458 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
22459
22460 else
22461 # FIXME: insert proper C++ library support
22462 ld_shlibs_CXX=no
22463 fi
22464 ;;
22465 esac
22466 ;;
22467
22468 psos*)
22469 # FIXME: insert proper C++ library support
22470 ld_shlibs_CXX=no
22471 ;;
22472
22473 serenity*)
22474 ;;
22475
22476 sunos4*)
22477 case $cc_basename in
22478 CC*)
22479 # Sun C++ 4.x
22480 # FIXME: insert proper C++ library support
22481 ld_shlibs_CXX=no
22482 ;;
22483 lcc*)
22484 # Lucid
22485 # FIXME: insert proper C++ library support
22486 ld_shlibs_CXX=no
22487 ;;
22488 *)
22489 # FIXME: insert proper C++ library support
22490 ld_shlibs_CXX=no
22491 ;;
22492 esac
22493 ;;
22494
22495 solaris*)
22496 case $cc_basename in
22497 CC* | sunCC*)
22498 # Sun C++ 4.2, 5.x and Centerline C++
22499 archive_cmds_need_lc_CXX=yes
22500 no_undefined_flag_CXX=' -zdefs'
22501 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22502 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22503 $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'
22504
22505 hardcode_libdir_flag_spec_CXX='-R$libdir'
22506 hardcode_shlibpath_var_CXX=no
22507 case $host_os in
22508 solaris2.[0-5] | solaris2.[0-5].*) ;;
22509 *)
22510 # The compiler driver will combine and reorder linker options,
22511 # but understands '-z linker_flag'.
22512 # Supported since Solaris 2.6 (maybe 2.5.1?)
22513 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
22514 ;;
22515 esac
22516 link_all_deplibs_CXX=yes
22517
22518 output_verbose_link_cmd='func_echo_all'
22519
22520 # Archives containing C++ object files must be created using
22521 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22522 # necessary to make sure instantiated templates are included
22523 # in the archive.
22524 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
22525 ;;
22526 gcx*)
22527 # Green Hills C++ Compiler
22528 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
22529
22530 # The C++ compiler must be used to create the archive.
22531 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
22532 ;;
22533 *)
22534 # GNU C++ compiler with Solaris linker
22535 if test yes,no = "$GXX,$with_gnu_ld"; then
22536 no_undefined_flag_CXX=' $wl-z ${wl}defs'
22537 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
22538 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
22539 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22540 $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'
22541
22542 # Commands to make compiler produce verbose output that lists
22543 # what "hidden" libraries, object files and flags are used when
22544 # linking a shared library.
22545 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
22546 else
22547 # g++ 2.7 appears to require '-G' NOT '-shared' on this
22548 # platform.
22549 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
22550 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22551 $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'
22552
22553 # Commands to make compiler produce verbose output that lists
22554 # what "hidden" libraries, object files and flags are used when
22555 # linking a shared library.
22556 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
22557 fi
22558
22559 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
22560 case $host_os in
22561 solaris2.[0-5] | solaris2.[0-5].*) ;;
22562 *)
22563 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
22564 ;;
22565 esac
22566 fi
22567 ;;
22568 esac
22569 ;;
22570
22571 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22572 no_undefined_flag_CXX='$wl-z,text'
22573 archive_cmds_need_lc_CXX=no
22574 hardcode_shlibpath_var_CXX=no
22575 runpath_var='LD_RUN_PATH'
22576
22577 case $cc_basename in
22578 CC*)
22579 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22580 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22581 ;;
22582 *)
22583 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22584 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22585 ;;
22586 esac
22587 ;;
22588
22589 sysv5* | sco3.2v5* | sco5v6*)
22590 # Note: We CANNOT use -z defs as we might desire, because we do not
22591 # link with -lc, and that would cause any symbols used from libc to
22592 # always be unresolved, which means just about no library would
22593 # ever link correctly. If we're not using GNU ld we use -z text
22594 # though, which does catch some bad symbols but isn't as heavy-handed
22595 # as -z defs.
22596 no_undefined_flag_CXX='$wl-z,text'
22597 allow_undefined_flag_CXX='$wl-z,nodefs'
22598 archive_cmds_need_lc_CXX=no
22599 hardcode_shlibpath_var_CXX=no
22600 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
22601 hardcode_libdir_separator_CXX=':'
22602 link_all_deplibs_CXX=yes
22603 export_dynamic_flag_spec_CXX='$wl-Bexport'
22604 runpath_var='LD_RUN_PATH'
22605
22606 case $cc_basename in
22607 CC*)
22608 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22609 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22610 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
22611 '"$old_archive_cmds_CXX"
22612 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
22613 '"$reload_cmds_CXX"
22614 ;;
22615 *)
22616 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22617 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22618 ;;
22619 esac
22620 ;;
22621
22622 tandem*)
22623 case $cc_basename in
22624 NCC*)
22625 # NonStop-UX NCC 3.20
22626 # FIXME: insert proper C++ library support
22627 ld_shlibs_CXX=no
22628 ;;
22629 *)
22630 # FIXME: insert proper C++ library support
22631 ld_shlibs_CXX=no
22632 ;;
22633 esac
22634 ;;
22635
22636 vxworks*)
22637 # FIXME: insert proper C++ library support
22638 ld_shlibs_CXX=no
22639 ;;
22640
22641 *)
22642 # FIXME: insert proper C++ library support
22643 ld_shlibs_CXX=no
22644 ;;
22645 esac
22646
22647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22648 printf "%s\n" "$ld_shlibs_CXX" >&6; }
22649 test no = "$ld_shlibs_CXX" && can_build_shared=no
22650
22651 GCC_CXX=$GXX
22652 LD_CXX=$LD
22653
22654 ## CAVEAT EMPTOR:
22655 ## There is no encapsulation within the following macros, do not change
22656 ## the running order or otherwise move them around unless you know exactly
22657 ## what you are doing...
22658 # Dependencies to place before and after the object being linked:
22659 predep_objects_CXX=
22660 postdep_objects_CXX=
22661 predeps_CXX=
22662 postdeps_CXX=
22663 compiler_lib_search_path_CXX=
22664
22665 cat > conftest.$ac_ext <<_LT_EOF
22666 class Foo
22667 {
22668 public:
22669 Foo (void) { a = 0; }
22670 private:
22671 int a;
22672 };
22673 _LT_EOF
22674
22675
22676 _lt_libdeps_save_CFLAGS=$CFLAGS
22677 case "$CC $CFLAGS " in #(
22678 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
22679 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
22680 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
22681 esac
22682
22683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22684 (eval $ac_compile) 2>&5
22685 ac_status=$?
22686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22687 test $ac_status = 0; }; then
22688 # Parse the compiler output and extract the necessary
22689 # objects, libraries and library flags.
22690
22691 # Sentinel used to keep track of whether or not we are before
22692 # the conftest object file.
22693 pre_test_object_deps_done=no
22694
22695 for p in `eval "$output_verbose_link_cmd"`; do
22696 case $prev$p in
22697
22698 -L* | -R* | -l*)
22699 # Some compilers place space between "-{L,R,l}" and the path.
22700 # Remove the space.
22701 if test x-L = x"$p" ||
22702 test x-R = x"$p" ||
22703 test x-l = x"$p"; then
22704 prev=$p
22705 continue
22706 fi
22707
22708 # Expand the sysroot to ease extracting the directories later.
22709 if test -z "$prev"; then
22710 case $p in
22711 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
22712 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
22713 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
22714 esac
22715 fi
22716 case $p in
22717 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
22718 esac
22719 if test no = "$pre_test_object_deps_done"; then
22720 case $prev in
22721 -L | -R)
22722 # Internal compiler library paths should come after those
22723 # provided the user. The postdeps already come after the
22724 # user supplied libs so there is no need to process them.
22725 if test -z "$compiler_lib_search_path_CXX"; then
22726 compiler_lib_search_path_CXX=$prev$p
22727 else
22728 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
22729 fi
22730 ;;
22731 # The "-l" case would never come before the object being
22732 # linked, so don't bother handling this case.
22733 esac
22734 else
22735 if test -z "$postdeps_CXX"; then
22736 postdeps_CXX=$prev$p
22737 else
22738 postdeps_CXX="${postdeps_CXX} $prev$p"
22739 fi
22740 fi
22741 prev=
22742 ;;
22743
22744 *.lto.$objext) ;; # Ignore GCC LTO objects
22745 *.$objext)
22746 # This assumes that the test object file only shows up
22747 # once in the compiler output.
22748 if test "$p" = "conftest.$objext"; then
22749 pre_test_object_deps_done=yes
22750 continue
22751 fi
22752
22753 if test no = "$pre_test_object_deps_done"; then
22754 if test -z "$predep_objects_CXX"; then
22755 predep_objects_CXX=$p
22756 else
22757 predep_objects_CXX="$predep_objects_CXX $p"
22758 fi
22759 else
22760 if test -z "$postdep_objects_CXX"; then
22761 postdep_objects_CXX=$p
22762 else
22763 postdep_objects_CXX="$postdep_objects_CXX $p"
22764 fi
22765 fi
22766 ;;
22767
22768 *) ;; # Ignore the rest.
22769
22770 esac
22771 done
22772
22773 # Clean up.
22774 rm -f a.out a.exe
22775 else
22776 echo "libtool.m4: error: problem compiling CXX test program"
22777 fi
22778
22779 $RM -f confest.$objext
22780 CFLAGS=$_lt_libdeps_save_CFLAGS
22781
22782 # PORTME: override above test on systems where it is broken
22783 case $host_os in
22784 interix[3-9]*)
22785 # Interix 3.5 installs completely hosed .la files for C++, so rather than
22786 # hack all around it, let's just trust "g++" to DTRT.
22787 predep_objects_CXX=
22788 postdep_objects_CXX=
22789 postdeps_CXX=
22790 ;;
22791 esac
22792
22793
22794 case " $postdeps_CXX " in
22795 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
22796 esac
22797 compiler_lib_search_dirs_CXX=
22798 if test -n "${compiler_lib_search_path_CXX}"; then
22799 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
22800 fi
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
22831
22832 lt_prog_compiler_wl_CXX=
22833 lt_prog_compiler_pic_CXX=
22834 lt_prog_compiler_static_CXX=
22835
22836
22837 # C++ specific cases for pic, static, wl, etc.
22838 if test yes = "$GXX"; then
22839 lt_prog_compiler_wl_CXX='-Wl,'
22840 lt_prog_compiler_static_CXX='-static'
22841
22842 case $host_os in
22843 aix*)
22844 # All AIX code is PIC.
22845 if test ia64 = "$host_cpu"; then
22846 # AIX 5 now supports IA64 processor
22847 lt_prog_compiler_static_CXX='-Bstatic'
22848 fi
22849 lt_prog_compiler_pic_CXX='-fPIC'
22850 ;;
22851
22852 amigaos*)
22853 case $host_cpu in
22854 powerpc)
22855 # see comment about AmigaOS4 .so support
22856 lt_prog_compiler_pic_CXX='-fPIC'
22857 ;;
22858 m68k)
22859 # FIXME: we need at least 68020 code to build shared libraries, but
22860 # adding the '-m68020' flag to GCC prevents building anything better,
22861 # like '-m68040'.
22862 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
22863 ;;
22864 esac
22865 ;;
22866
22867 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22868 # PIC is the default for these OSes.
22869 ;;
22870 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
22871 # This hack is so that the source file can tell whether it is being
22872 # built for inclusion in a dll (and should export symbols for example).
22873 # Although the cygwin gcc ignores -fPIC, still need this for old-style
22874 # (--disable-auto-import) libraries
22875 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
22876 case $host_os in
22877 os2*)
22878 lt_prog_compiler_static_CXX='$wl-static'
22879 ;;
22880 esac
22881 ;;
22882 darwin* | rhapsody*)
22883 # PIC is the default on this platform
22884 # Common symbols not allowed in MH_DYLIB files
22885 lt_prog_compiler_pic_CXX='-fno-common'
22886 ;;
22887 *djgpp*)
22888 # DJGPP does not support shared libraries at all
22889 lt_prog_compiler_pic_CXX=
22890 ;;
22891 haiku*)
22892 # PIC is the default for Haiku.
22893 # The "-static" flag exists, but is broken.
22894 lt_prog_compiler_static_CXX=
22895 ;;
22896 interix[3-9]*)
22897 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22898 # Instead, we relocate shared libraries at runtime.
22899 ;;
22900 sysv4*MP*)
22901 if test -d /usr/nec; then
22902 lt_prog_compiler_pic_CXX=-Kconform_pic
22903 fi
22904 ;;
22905 hpux*)
22906 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
22907 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
22908 # sets the default TLS model and affects inlining.
22909 case $host_cpu in
22910 hppa*64*)
22911 ;;
22912 *)
22913 lt_prog_compiler_pic_CXX='-fPIC'
22914 ;;
22915 esac
22916 ;;
22917 *qnx* | *nto*)
22918 # QNX uses GNU C++, but need to define -shared option too, otherwise
22919 # it will coredump.
22920 lt_prog_compiler_pic_CXX='-fPIC -shared'
22921 ;;
22922 *)
22923 lt_prog_compiler_pic_CXX='-fPIC'
22924 ;;
22925 esac
22926 else
22927 case $host_os in
22928 aix[4-9]*)
22929 # All AIX code is PIC.
22930 if test ia64 = "$host_cpu"; then
22931 # AIX 5 now supports IA64 processor
22932 lt_prog_compiler_static_CXX='-Bstatic'
22933 else
22934 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
22935 fi
22936 ;;
22937 chorus*)
22938 case $cc_basename in
22939 cxch68*)
22940 # Green Hills C++ Compiler
22941 # _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"
22942 ;;
22943 esac
22944 ;;
22945 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
22946 # This hack is so that the source file can tell whether it is being
22947 # built for inclusion in a dll (and should export symbols for example).
22948 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
22949 ;;
22950 dgux*)
22951 case $cc_basename in
22952 ec++*)
22953 lt_prog_compiler_pic_CXX='-KPIC'
22954 ;;
22955 ghcx*)
22956 # Green Hills C++ Compiler
22957 lt_prog_compiler_pic_CXX='-pic'
22958 ;;
22959 *)
22960 ;;
22961 esac
22962 ;;
22963 freebsd* | dragonfly* | midnightbsd*)
22964 # FreeBSD uses GNU C++
22965 ;;
22966 hpux9* | hpux10* | hpux11*)
22967 case $cc_basename in
22968 CC*)
22969 lt_prog_compiler_wl_CXX='-Wl,'
22970 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
22971 if test ia64 != "$host_cpu"; then
22972 lt_prog_compiler_pic_CXX='+Z'
22973 fi
22974 ;;
22975 aCC*)
22976 lt_prog_compiler_wl_CXX='-Wl,'
22977 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
22978 case $host_cpu in
22979 hppa*64*|ia64*)
22980 # +Z the default
22981 ;;
22982 *)
22983 lt_prog_compiler_pic_CXX='+Z'
22984 ;;
22985 esac
22986 ;;
22987 *)
22988 ;;
22989 esac
22990 ;;
22991 interix*)
22992 # This is c89, which is MS Visual C++ (no shared libs)
22993 # Anyone wants to do a port?
22994 ;;
22995 irix5* | irix6* | nonstopux*)
22996 case $cc_basename in
22997 CC*)
22998 lt_prog_compiler_wl_CXX='-Wl,'
22999 lt_prog_compiler_static_CXX='-non_shared'
23000 # CC pic flag -KPIC is the default.
23001 ;;
23002 *)
23003 ;;
23004 esac
23005 ;;
23006 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
23007 case $cc_basename in
23008 KCC*)
23009 # KAI C++ Compiler
23010 lt_prog_compiler_wl_CXX='--backend -Wl,'
23011 lt_prog_compiler_pic_CXX='-fPIC'
23012 ;;
23013 ecpc* )
23014 # old Intel C++ for x86_64, which still supported -KPIC.
23015 lt_prog_compiler_wl_CXX='-Wl,'
23016 lt_prog_compiler_pic_CXX='-KPIC'
23017 lt_prog_compiler_static_CXX='-static'
23018 ;;
23019 icpc* )
23020 # Intel C++, used to be incompatible with GCC.
23021 # ICC 10 doesn't accept -KPIC any more.
23022 lt_prog_compiler_wl_CXX='-Wl,'
23023 lt_prog_compiler_pic_CXX='-fPIC'
23024 lt_prog_compiler_static_CXX='-static'
23025 ;;
23026 pgCC* | pgcpp*)
23027 # Portland Group C++ compiler
23028 lt_prog_compiler_wl_CXX='-Wl,'
23029 lt_prog_compiler_pic_CXX='-fpic'
23030 lt_prog_compiler_static_CXX='-Bstatic'
23031 ;;
23032 cxx*)
23033 # Compaq C++
23034 # Make sure the PIC flag is empty. It appears that all Alpha
23035 # Linux and Compaq Tru64 Unix objects are PIC.
23036 lt_prog_compiler_pic_CXX=
23037 lt_prog_compiler_static_CXX='-non_shared'
23038 ;;
23039 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
23040 # IBM XL 8.0, 9.0 on PPC and BlueGene
23041 lt_prog_compiler_wl_CXX='-Wl,'
23042 lt_prog_compiler_pic_CXX='-qpic'
23043 lt_prog_compiler_static_CXX='-qstaticlink'
23044 ;;
23045 *)
23046 case `$CC -V 2>&1 | $SED 5q` in
23047 *Sun\ C*)
23048 # Sun C++ 5.9
23049 lt_prog_compiler_pic_CXX='-KPIC'
23050 lt_prog_compiler_static_CXX='-Bstatic'
23051 lt_prog_compiler_wl_CXX='-Qoption ld '
23052 ;;
23053 esac
23054 ;;
23055 esac
23056 ;;
23057 lynxos*)
23058 ;;
23059 m88k*)
23060 ;;
23061 mvs*)
23062 case $cc_basename in
23063 cxx*)
23064 lt_prog_compiler_pic_CXX='-W c,exportall'
23065 ;;
23066 *)
23067 ;;
23068 esac
23069 ;;
23070 netbsd* | netbsdelf*-gnu)
23071 ;;
23072 *-mlibc)
23073 ;;
23074 *qnx* | *nto*)
23075 # QNX uses GNU C++, but need to define -shared option too, otherwise
23076 # it will coredump.
23077 lt_prog_compiler_pic_CXX='-fPIC -shared'
23078 ;;
23079 osf3* | osf4* | osf5*)
23080 case $cc_basename in
23081 KCC*)
23082 lt_prog_compiler_wl_CXX='--backend -Wl,'
23083 ;;
23084 RCC*)
23085 # Rational C++ 2.4.1
23086 lt_prog_compiler_pic_CXX='-pic'
23087 ;;
23088 cxx*)
23089 # Digital/Compaq C++
23090 lt_prog_compiler_wl_CXX='-Wl,'
23091 # Make sure the PIC flag is empty. It appears that all Alpha
23092 # Linux and Compaq Tru64 Unix objects are PIC.
23093 lt_prog_compiler_pic_CXX=
23094 lt_prog_compiler_static_CXX='-non_shared'
23095 ;;
23096 *)
23097 ;;
23098 esac
23099 ;;
23100 psos*)
23101 ;;
23102 serenity*)
23103 ;;
23104 solaris*)
23105 case $cc_basename in
23106 CC* | sunCC*)
23107 # Sun C++ 4.2, 5.x and Centerline C++
23108 lt_prog_compiler_pic_CXX='-KPIC'
23109 lt_prog_compiler_static_CXX='-Bstatic'
23110 lt_prog_compiler_wl_CXX='-Qoption ld '
23111 ;;
23112 gcx*)
23113 # Green Hills C++ Compiler
23114 lt_prog_compiler_pic_CXX='-PIC'
23115 ;;
23116 *)
23117 ;;
23118 esac
23119 ;;
23120 sunos4*)
23121 case $cc_basename in
23122 CC*)
23123 # Sun C++ 4.x
23124 lt_prog_compiler_pic_CXX='-pic'
23125 lt_prog_compiler_static_CXX='-Bstatic'
23126 ;;
23127 lcc*)
23128 # Lucid
23129 lt_prog_compiler_pic_CXX='-pic'
23130 ;;
23131 *)
23132 ;;
23133 esac
23134 ;;
23135 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23136 case $cc_basename in
23137 CC*)
23138 lt_prog_compiler_wl_CXX='-Wl,'
23139 lt_prog_compiler_pic_CXX='-KPIC'
23140 lt_prog_compiler_static_CXX='-Bstatic'
23141 ;;
23142 esac
23143 ;;
23144 tandem*)
23145 case $cc_basename in
23146 NCC*)
23147 # NonStop-UX NCC 3.20
23148 lt_prog_compiler_pic_CXX='-KPIC'
23149 ;;
23150 *)
23151 ;;
23152 esac
23153 ;;
23154 vxworks*)
23155 ;;
23156 *)
23157 lt_prog_compiler_can_build_shared_CXX=no
23158 ;;
23159 esac
23160 fi
23161
23162 case $host_os in
23163 # For platforms that do not support PIC, -DPIC is meaningless:
23164 *djgpp*)
23165 lt_prog_compiler_pic_CXX=
23166 ;;
23167 *)
23168 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
23169 ;;
23170 esac
23171
23172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23173 printf %s "checking for $compiler option to produce PIC... " >&6; }
23174 if test ${lt_cv_prog_compiler_pic_CXX+y}
23175 then :
23176 printf %s "(cached) " >&6
23177 else case e in #(
23178 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
23179 esac
23180 fi
23181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
23182 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
23183 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
23184
23185 #
23186 # Check to make sure the PIC flag actually works.
23187 #
23188 if test -n "$lt_prog_compiler_pic_CXX"; then
23189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23190 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
23191 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
23192 then :
23193 printf %s "(cached) " >&6
23194 else case e in #(
23195 e) lt_cv_prog_compiler_pic_works_CXX=no
23196 ac_outfile=conftest.$ac_objext
23197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23198 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
23199 # Insert the option either (1) after the last *FLAGS variable, or
23200 # (2) before a word containing "conftest.", or (3) at the end.
23201 # Note that $ac_compile itself does not contain backslashes and begins
23202 # with a dollar sign (not a hyphen), so the echo should work correctly.
23203 # The option is referenced via a variable to avoid confusing sed.
23204 lt_compile=`echo "$ac_compile" | $SED \
23205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23207 -e 's:$: $lt_compiler_flag:'`
23208 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23209 (eval "$lt_compile" 2>conftest.err)
23210 ac_status=$?
23211 cat conftest.err >&5
23212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 if (exit $ac_status) && test -s "$ac_outfile"; then
23214 # The compiler can only warn and ignore the option if not recognized
23215 # So say no if there are warnings other than the usual output.
23216 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
23217 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23218 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23219 lt_cv_prog_compiler_pic_works_CXX=yes
23220 fi
23221 fi
23222 $RM conftest*
23223 ;;
23224 esac
23225 fi
23226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23227 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
23228
23229 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
23230 case $lt_prog_compiler_pic_CXX in
23231 "" | " "*) ;;
23232 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
23233 esac
23234 else
23235 lt_prog_compiler_pic_CXX=
23236 lt_prog_compiler_can_build_shared_CXX=no
23237 fi
23238
23239 fi
23240
23241
23242
23243
23244
23245 #
23246 # Check to make sure the static flag actually works.
23247 #
23248 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
23249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23250 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23251 if test ${lt_cv_prog_compiler_static_works_CXX+y}
23252 then :
23253 printf %s "(cached) " >&6
23254 else case e in #(
23255 e) lt_cv_prog_compiler_static_works_CXX=no
23256 save_LDFLAGS=$LDFLAGS
23257 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23258 echo "$lt_simple_link_test_code" > conftest.$ac_ext
23259 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23260 # The linker can only warn and ignore the option if not recognized
23261 # So say no if there are warnings
23262 if test -s conftest.err; then
23263 # Append any errors to the config.log.
23264 cat conftest.err 1>&5
23265 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
23266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23267 if diff conftest.exp conftest.er2 >/dev/null; then
23268 lt_cv_prog_compiler_static_works_CXX=yes
23269 fi
23270 else
23271 lt_cv_prog_compiler_static_works_CXX=yes
23272 fi
23273 fi
23274 $RM -r conftest*
23275 LDFLAGS=$save_LDFLAGS
23276 ;;
23277 esac
23278 fi
23279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23280 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
23281
23282 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
23283 :
23284 else
23285 lt_prog_compiler_static_CXX=
23286 fi
23287
23288
23289
23290
23291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23292 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23293 if test ${lt_cv_prog_compiler_c_o_CXX+y}
23294 then :
23295 printf %s "(cached) " >&6
23296 else case e in #(
23297 e) lt_cv_prog_compiler_c_o_CXX=no
23298 $RM -r conftest 2>/dev/null
23299 mkdir conftest
23300 cd conftest
23301 mkdir out
23302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23303
23304 lt_compiler_flag="-o out/conftest2.$ac_objext"
23305 # Insert the option either (1) after the last *FLAGS variable, or
23306 # (2) before a word containing "conftest.", or (3) at the end.
23307 # Note that $ac_compile itself does not contain backslashes and begins
23308 # with a dollar sign (not a hyphen), so the echo should work correctly.
23309 lt_compile=`echo "$ac_compile" | $SED \
23310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23312 -e 's:$: $lt_compiler_flag:'`
23313 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23314 (eval "$lt_compile" 2>out/conftest.err)
23315 ac_status=$?
23316 cat out/conftest.err >&5
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23319 then
23320 # The compiler can only warn and ignore the option if not recognized
23321 # So say no if there are warnings
23322 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23323 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23324 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23325 lt_cv_prog_compiler_c_o_CXX=yes
23326 fi
23327 fi
23328 chmod u+w . 2>&5
23329 $RM conftest*
23330 # SGI C++ compiler will create directory out/ii_files/ for
23331 # template instantiation
23332 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23333 $RM out/* && rmdir out
23334 cd ..
23335 $RM -r conftest
23336 $RM conftest*
23337 ;;
23338 esac
23339 fi
23340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23341 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23342
23343
23344
23345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23346 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23347 if test ${lt_cv_prog_compiler_c_o_CXX+y}
23348 then :
23349 printf %s "(cached) " >&6
23350 else case e in #(
23351 e) lt_cv_prog_compiler_c_o_CXX=no
23352 $RM -r conftest 2>/dev/null
23353 mkdir conftest
23354 cd conftest
23355 mkdir out
23356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23357
23358 lt_compiler_flag="-o out/conftest2.$ac_objext"
23359 # Insert the option either (1) after the last *FLAGS variable, or
23360 # (2) before a word containing "conftest.", or (3) at the end.
23361 # Note that $ac_compile itself does not contain backslashes and begins
23362 # with a dollar sign (not a hyphen), so the echo should work correctly.
23363 lt_compile=`echo "$ac_compile" | $SED \
23364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23366 -e 's:$: $lt_compiler_flag:'`
23367 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23368 (eval "$lt_compile" 2>out/conftest.err)
23369 ac_status=$?
23370 cat out/conftest.err >&5
23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23373 then
23374 # The compiler can only warn and ignore the option if not recognized
23375 # So say no if there are warnings
23376 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23377 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23378 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23379 lt_cv_prog_compiler_c_o_CXX=yes
23380 fi
23381 fi
23382 chmod u+w . 2>&5
23383 $RM conftest*
23384 # SGI C++ compiler will create directory out/ii_files/ for
23385 # template instantiation
23386 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23387 $RM out/* && rmdir out
23388 cd ..
23389 $RM -r conftest
23390 $RM conftest*
23391 ;;
23392 esac
23393 fi
23394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23395 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23396
23397
23398
23399
23400 hard_links=nottested
23401 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
23402 # do not overwrite the value of need_locks provided by the user
23403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
23404 printf %s "checking if we can lock with hard links... " >&6; }
23405 hard_links=yes
23406 $RM conftest*
23407 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23408 touch conftest.a
23409 ln conftest.a conftest.b 2>&5 || hard_links=no
23410 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
23412 printf "%s\n" "$hard_links" >&6; }
23413 if test no = "$hard_links"; then
23414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
23415 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
23416 need_locks=warn
23417 fi
23418 else
23419 need_locks=no
23420 fi
23421
23422
23423
23424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23425 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
23426
23427 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23428 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
23429 case $host_os in
23430 aix[4-9]*)
23431 # If we're using GNU nm, then we don't want the "-C" option.
23432 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
23433 # Without the "-l" option, or with the "-B" option, AIX nm treats
23434 # weak defined symbols like other global defined symbols, whereas
23435 # GNU nm marks them as "W".
23436 # While the 'weak' keyword is ignored in the Export File, we need
23437 # it in the Import File for the 'aix-soname' feature, so we have
23438 # to replace the "-B" option with "-P" for AIX nm.
23439 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
23440 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'
23441 else
23442 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'
23443 fi
23444 ;;
23445 pw32*)
23446 export_symbols_cmds_CXX=$ltdll_cmds
23447 ;;
23448 cygwin* | mingw* | windows* | cegcc*)
23449 case $cc_basename in
23450 cl* | icl*)
23451 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
23452 ;;
23453 *)
23454 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'
23455 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
23456 ;;
23457 esac
23458 ;;
23459 *)
23460 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23461 ;;
23462 esac
23463
23464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23465 printf "%s\n" "$ld_shlibs_CXX" >&6; }
23466 test no = "$ld_shlibs_CXX" && can_build_shared=no
23467
23468 with_gnu_ld_CXX=$with_gnu_ld
23469
23470
23471
23472
23473
23474
23475 #
23476 # Do we need to explicitly link libc?
23477 #
23478 case "x$archive_cmds_need_lc_CXX" in
23479 x|xyes)
23480 # Assume -lc should be added
23481 archive_cmds_need_lc_CXX=yes
23482
23483 if test yes,yes = "$GCC,$enable_shared"; then
23484 case $archive_cmds_CXX in
23485 *'~'*)
23486 # FIXME: we may have to deal with multi-command sequences.
23487 ;;
23488 '$CC '*)
23489 # Test whether the compiler implicitly links with -lc since on some
23490 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23491 # to ld, don't add -lc before -lgcc.
23492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
23493 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
23494 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
23495 then :
23496 printf %s "(cached) " >&6
23497 else case e in #(
23498 e) $RM conftest*
23499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23500
23501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23502 (eval $ac_compile) 2>&5
23503 ac_status=$?
23504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23505 test $ac_status = 0; } 2>conftest.err; then
23506 soname=conftest
23507 lib=conftest
23508 libobjs=conftest.$ac_objext
23509 deplibs=
23510 wl=$lt_prog_compiler_wl_CXX
23511 pic_flag=$lt_prog_compiler_pic_CXX
23512 compiler_flags=-v
23513 linker_flags=-v
23514 verstring=
23515 output_objdir=.
23516 libname=conftest
23517 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
23518 allow_undefined_flag_CXX=
23519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
23520 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
23521 ac_status=$?
23522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23523 test $ac_status = 0; }
23524 then
23525 lt_cv_archive_cmds_need_lc_CXX=no
23526 else
23527 lt_cv_archive_cmds_need_lc_CXX=yes
23528 fi
23529 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
23530 else
23531 cat conftest.err 1>&5
23532 fi
23533 $RM conftest*
23534 ;;
23535 esac
23536 fi
23537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
23538 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
23539 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
23540 ;;
23541 esac
23542 fi
23543 ;;
23544 esac
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
23606
23607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
23608 printf %s "checking dynamic linker characteristics... " >&6; }
23609
23610 library_names_spec=
23611 libname_spec='lib$name'
23612 soname_spec=
23613 shrext_cmds=.so
23614 postinstall_cmds=
23615 postuninstall_cmds=
23616 finish_cmds=
23617 finish_eval=
23618 shlibpath_var=
23619 shlibpath_overrides_runpath=unknown
23620 version_type=none
23621 dynamic_linker="$host_os ld.so"
23622 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23623 need_lib_prefix=unknown
23624 hardcode_into_libs=no
23625
23626 # when you set need_version to no, make sure it does not cause -set_version
23627 # flags to be left without arguments
23628 need_version=unknown
23629
23630
23631
23632 case $host_os in
23633 aix3*)
23634 version_type=linux # correct to gnu/linux during the next big refactor
23635 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
23636 shlibpath_var=LIBPATH
23637
23638 # AIX 3 has no versioning support, so we append a major version to the name.
23639 soname_spec='$libname$release$shared_ext$major'
23640 ;;
23641
23642 aix[4-9]*)
23643 version_type=linux # correct to gnu/linux during the next big refactor
23644 need_lib_prefix=no
23645 need_version=no
23646 hardcode_into_libs=yes
23647 if test ia64 = "$host_cpu"; then
23648 # AIX 5 supports IA64
23649 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
23650 shlibpath_var=LD_LIBRARY_PATH
23651 else
23652 # With GCC up to 2.95.x, collect2 would create an import file
23653 # for dependence libraries. The import file would start with
23654 # the line '#! .'. This would cause the generated library to
23655 # depend on '.', always an invalid library. This was fixed in
23656 # development snapshots of GCC prior to 3.0.
23657 case $host_os in
23658 aix4 | aix4.[01] | aix4.[01].*)
23659 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23660 echo ' yes '
23661 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
23662 :
23663 else
23664 can_build_shared=no
23665 fi
23666 ;;
23667 esac
23668 # Using Import Files as archive members, it is possible to support
23669 # filename-based versioning of shared library archives on AIX. While
23670 # this would work for both with and without runtime linking, it will
23671 # prevent static linking of such archives. So we do filename-based
23672 # shared library versioning with .so extension only, which is used
23673 # when both runtime linking and shared linking is enabled.
23674 # Unfortunately, runtime linking may impact performance, so we do
23675 # not want this to be the default eventually. Also, we use the
23676 # versioned .so libs for executables only if there is the -brtl
23677 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
23678 # To allow for filename-based versioning support, we need to create
23679 # libNAME.so.V as an archive file, containing:
23680 # *) an Import File, referring to the versioned filename of the
23681 # archive as well as the shared archive member, telling the
23682 # bitwidth (32 or 64) of that shared object, and providing the
23683 # list of exported symbols of that shared object, eventually
23684 # decorated with the 'weak' keyword
23685 # *) the shared object with the F_LOADONLY flag set, to really avoid
23686 # it being seen by the linker.
23687 # At run time we better use the real file rather than another symlink,
23688 # but for link time we create the symlink libNAME.so -> libNAME.so.V
23689
23690 case $with_aix_soname,$aix_use_runtimelinking in
23691 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
23692 # soname into executable. Probably we can add versioning support to
23693 # collect2, so additional links can be useful in future.
23694 aix,yes) # traditional libtool
23695 dynamic_linker='AIX unversionable lib.so'
23696 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23697 # instead of lib<name>.a to let people know that these are not
23698 # typical AIX shared libraries.
23699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23700 ;;
23701 aix,no) # traditional AIX only
23702 dynamic_linker='AIX lib.a(lib.so.V)'
23703 # We preserve .a as extension for shared libraries through AIX4.2
23704 # and later when we are not doing run time linking.
23705 library_names_spec='$libname$release.a $libname.a'
23706 soname_spec='$libname$release$shared_ext$major'
23707 ;;
23708 svr4,*) # full svr4 only
23709 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
23710 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
23711 # We do not specify a path in Import Files, so LIBPATH fires.
23712 shlibpath_overrides_runpath=yes
23713 ;;
23714 *,yes) # both, prefer svr4
23715 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
23716 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
23717 # unpreferred sharedlib libNAME.a needs extra handling
23718 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"'
23719 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"'
23720 # We do not specify a path in Import Files, so LIBPATH fires.
23721 shlibpath_overrides_runpath=yes
23722 ;;
23723 *,no) # both, prefer aix
23724 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
23725 library_names_spec='$libname$release.a $libname.a'
23726 soname_spec='$libname$release$shared_ext$major'
23727 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
23728 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)'
23729 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"'
23730 ;;
23731 esac
23732 shlibpath_var=LIBPATH
23733 fi
23734 ;;
23735
23736 amigaos*)
23737 case $host_cpu in
23738 powerpc)
23739 # Since July 2007 AmigaOS4 officially supports .so libraries.
23740 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
23741 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23742 ;;
23743 m68k)
23744 library_names_spec='$libname.ixlibrary $libname.a'
23745 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23746 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'
23747 ;;
23748 esac
23749 ;;
23750
23751 beos*)
23752 library_names_spec='$libname$shared_ext'
23753 dynamic_linker="$host_os ld.so"
23754 shlibpath_var=LIBRARY_PATH
23755 ;;
23756
23757 bsdi[45]*)
23758 version_type=linux # correct to gnu/linux during the next big refactor
23759 need_version=no
23760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23761 soname_spec='$libname$release$shared_ext$major'
23762 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23763 shlibpath_var=LD_LIBRARY_PATH
23764 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23765 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23766 # the default ld.so.conf also contains /usr/contrib/lib and
23767 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23768 # libtool to hard-code these into programs
23769 ;;
23770
23771 cygwin* | mingw* | windows* | pw32* | cegcc*)
23772 version_type=windows
23773 shrext_cmds=.dll
23774 need_version=no
23775 need_lib_prefix=no
23776
23777 case $GCC,$cc_basename in
23778 yes,*)
23779 # gcc
23780 library_names_spec='$libname.dll.a'
23781 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23782 # If user builds GCC with multilib enabled,
23783 # it should just install on $(libdir)
23784 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
23785 if test xyes = x"$multilib"; then
23786 postinstall_cmds='base_file=`basename \$file`~
23787 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23788 dldir=$destdir/`dirname \$dlpath`~
23789 $install_prog $dir/$dlname $destdir/$dlname~
23790 chmod a+x $destdir/$dlname~
23791 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
23792 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
23793 fi'
23794 else
23795 postinstall_cmds='base_file=`basename \$file`~
23796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23797 dldir=$destdir/`dirname \$dlpath`~
23798 test -d \$dldir || mkdir -p \$dldir~
23799 $install_prog $dir/$dlname \$dldir/$dlname~
23800 chmod a+x \$dldir/$dlname~
23801 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
23802 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
23803 fi'
23804 fi
23805 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23806 dlpath=$dir/\$dldll~
23807 $RM \$dlpath'
23808 shlibpath_overrides_runpath=yes
23809
23810 case $host_os in
23811 cygwin*)
23812 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23813 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23814
23815 ;;
23816 mingw* | windows* | cegcc*)
23817 # MinGW DLLs use traditional 'lib' prefix
23818 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23819 ;;
23820 pw32*)
23821 # pw32 DLLs use 'pw' prefix rather than 'lib'
23822 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23823 ;;
23824 esac
23825 dynamic_linker='Win32 ld.exe'
23826 ;;
23827
23828 *,cl* | *,icl*)
23829 # Native MSVC or ICC
23830 libname_spec='$name'
23831 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
23832 library_names_spec='$libname.dll.lib'
23833
23834 case $build_os in
23835 mingw* | windows*)
23836 sys_lib_search_path_spec=
23837 lt_save_ifs=$IFS
23838 IFS=';'
23839 for lt_path in $LIB
23840 do
23841 IFS=$lt_save_ifs
23842 # Let DOS variable expansion print the short 8.3 style file name.
23843 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
23844 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
23845 done
23846 IFS=$lt_save_ifs
23847 # Convert to MSYS style.
23848 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
23849 ;;
23850 cygwin*)
23851 # Convert to unix form, then to dos form, then back to unix form
23852 # but this time dos style (no spaces!) so that the unix form looks
23853 # like /cygdrive/c/PROGRA~1:/cygdr...
23854 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
23855 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
23856 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23857 ;;
23858 *)
23859 sys_lib_search_path_spec=$LIB
23860 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
23861 # It is most probably a Windows format PATH.
23862 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23863 else
23864 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23865 fi
23866 # FIXME: find the short name or the path components, as spaces are
23867 # common. (e.g. "Program Files" -> "PROGRA~1")
23868 ;;
23869 esac
23870
23871 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23872 postinstall_cmds='base_file=`basename \$file`~
23873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23874 dldir=$destdir/`dirname \$dlpath`~
23875 test -d \$dldir || mkdir -p \$dldir~
23876 $install_prog $dir/$dlname \$dldir/$dlname'
23877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23878 dlpath=$dir/\$dldll~
23879 $RM \$dlpath'
23880 shlibpath_overrides_runpath=yes
23881 dynamic_linker='Win32 link.exe'
23882 ;;
23883
23884 *)
23885 # Assume MSVC and ICC wrapper
23886 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
23887 dynamic_linker='Win32 ld.exe'
23888 ;;
23889 esac
23890 # FIXME: first we should search . and the directory the executable is in
23891 shlibpath_var=PATH
23892 ;;
23893
23894 darwin* | rhapsody*)
23895 dynamic_linker="$host_os dyld"
23896 version_type=darwin
23897 need_lib_prefix=no
23898 need_version=no
23899 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
23900 soname_spec='$libname$release$major$shared_ext'
23901 shlibpath_overrides_runpath=yes
23902 shlibpath_var=DYLD_LIBRARY_PATH
23903 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23904
23905 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23906 ;;
23907
23908 dgux*)
23909 version_type=linux # correct to gnu/linux during the next big refactor
23910 need_lib_prefix=no
23911 need_version=no
23912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23913 soname_spec='$libname$release$shared_ext$major'
23914 shlibpath_var=LD_LIBRARY_PATH
23915 ;;
23916
23917 freebsd* | dragonfly* | midnightbsd*)
23918 # DragonFly does not have aout. When/if they implement a new
23919 # versioning mechanism, adjust this.
23920 if test -x /usr/bin/objformat; then
23921 objformat=`/usr/bin/objformat`
23922 else
23923 case $host_os in
23924 freebsd[23].*) objformat=aout ;;
23925 *) objformat=elf ;;
23926 esac
23927 fi
23928 version_type=freebsd-$objformat
23929 case $version_type in
23930 freebsd-elf*)
23931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23932 soname_spec='$libname$release$shared_ext$major'
23933 need_version=no
23934 need_lib_prefix=no
23935 ;;
23936 freebsd-*)
23937 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
23938 need_version=yes
23939 ;;
23940 esac
23941 case $host_cpu in
23942 powerpc64)
23943 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
23944 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
23945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23946 /* end confdefs.h. */
23947 int test_pointer_size[sizeof (void *) - 5];
23948
23949 _ACEOF
23950 if ac_fn_cxx_try_compile "$LINENO"
23951 then :
23952 shlibpath_var=LD_LIBRARY_PATH
23953 else case e in #(
23954 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
23955 esac
23956 fi
23957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23958 ;;
23959 *)
23960 shlibpath_var=LD_LIBRARY_PATH
23961 ;;
23962 esac
23963 case $host_os in
23964 freebsd2.*)
23965 shlibpath_overrides_runpath=yes
23966 ;;
23967 freebsd3.[01]* | freebsdelf3.[01]*)
23968 shlibpath_overrides_runpath=yes
23969 hardcode_into_libs=yes
23970 ;;
23971 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23972 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23973 shlibpath_overrides_runpath=no
23974 hardcode_into_libs=yes
23975 ;;
23976 *) # from 4.6 on, and DragonFly
23977 shlibpath_overrides_runpath=yes
23978 hardcode_into_libs=yes
23979 ;;
23980 esac
23981 ;;
23982
23983 haiku*)
23984 version_type=linux # correct to gnu/linux during the next big refactor
23985 need_lib_prefix=no
23986 need_version=no
23987 dynamic_linker="$host_os runtime_loader"
23988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23989 soname_spec='$libname$release$shared_ext$major'
23990 shlibpath_var=LIBRARY_PATH
23991 shlibpath_overrides_runpath=no
23992 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
23993 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
23994 hardcode_into_libs=no
23995 ;;
23996
23997 hpux9* | hpux10* | hpux11*)
23998 # Give a soname corresponding to the major version so that dld.sl refuses to
23999 # link against other versions.
24000 version_type=sunos
24001 need_lib_prefix=no
24002 need_version=no
24003 case $host_cpu in
24004 ia64*)
24005 shrext_cmds='.so'
24006 hardcode_into_libs=yes
24007 dynamic_linker="$host_os dld.so"
24008 shlibpath_var=LD_LIBRARY_PATH
24009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24011 soname_spec='$libname$release$shared_ext$major'
24012 if test 32 = "$HPUX_IA64_MODE"; then
24013 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24014 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
24015 else
24016 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24017 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
24018 fi
24019 ;;
24020 hppa*64*)
24021 shrext_cmds='.sl'
24022 hardcode_into_libs=yes
24023 dynamic_linker="$host_os dld.sl"
24024 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24027 soname_spec='$libname$release$shared_ext$major'
24028 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24030 ;;
24031 *)
24032 shrext_cmds='.sl'
24033 dynamic_linker="$host_os dld.sl"
24034 shlibpath_var=SHLIB_PATH
24035 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24037 soname_spec='$libname$release$shared_ext$major'
24038 ;;
24039 esac
24040 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24041 postinstall_cmds='chmod 555 $lib'
24042 # or fails outright, so override atomically:
24043 install_override_mode=555
24044 ;;
24045
24046 interix[3-9]*)
24047 version_type=linux # correct to gnu/linux during the next big refactor
24048 need_lib_prefix=no
24049 need_version=no
24050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24051 soname_spec='$libname$release$shared_ext$major'
24052 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24053 shlibpath_var=LD_LIBRARY_PATH
24054 shlibpath_overrides_runpath=no
24055 hardcode_into_libs=yes
24056 ;;
24057
24058 irix5* | irix6* | nonstopux*)
24059 case $host_os in
24060 nonstopux*) version_type=nonstopux ;;
24061 *)
24062 if test yes = "$lt_cv_prog_gnu_ld"; then
24063 version_type=linux # correct to gnu/linux during the next big refactor
24064 else
24065 version_type=irix
24066 fi ;;
24067 esac
24068 need_lib_prefix=no
24069 need_version=no
24070 soname_spec='$libname$release$shared_ext$major'
24071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
24072 case $host_os in
24073 irix5* | nonstopux*)
24074 libsuff= shlibsuff=
24075 ;;
24076 *)
24077 case $LD in # libtool.m4 will add one of these switches to LD
24078 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24079 libsuff= shlibsuff= libmagic=32-bit;;
24080 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24081 libsuff=32 shlibsuff=N32 libmagic=N32;;
24082 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24083 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24084 *) libsuff= shlibsuff= libmagic=never-match;;
24085 esac
24086 ;;
24087 esac
24088 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24089 shlibpath_overrides_runpath=no
24090 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
24091 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
24092 hardcode_into_libs=yes
24093 ;;
24094
24095 # No shared lib support for Linux oldld, aout, or coff.
24096 linux*oldld* | linux*aout* | linux*coff*)
24097 dynamic_linker=no
24098 ;;
24099
24100 linux*android*)
24101 version_type=none # Android doesn't support versioned libraries.
24102 need_lib_prefix=no
24103 need_version=no
24104 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
24105 soname_spec='$libname$release$shared_ext'
24106 finish_cmds=
24107 shlibpath_var=LD_LIBRARY_PATH
24108 shlibpath_overrides_runpath=yes
24109
24110 # This implies no fast_install, which is unacceptable.
24111 # Some rework will be needed to allow for fast_install
24112 # before this can be enabled.
24113 hardcode_into_libs=yes
24114
24115 dynamic_linker='Android linker'
24116 # -rpath works at least for libraries that are not overridden by
24117 # libraries installed in system locations.
24118 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
24119 ;;
24120
24121 # This must be glibc/ELF.
24122 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
24123 version_type=linux # correct to gnu/linux during the next big refactor
24124 need_lib_prefix=no
24125 need_version=no
24126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24127 soname_spec='$libname$release$shared_ext$major'
24128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24129 shlibpath_var=LD_LIBRARY_PATH
24130 shlibpath_overrides_runpath=no
24131
24132 # Some binutils ld are patched to set DT_RUNPATH
24133 if test ${lt_cv_shlibpath_overrides_runpath+y}
24134 then :
24135 printf %s "(cached) " >&6
24136 else case e in #(
24137 e) lt_cv_shlibpath_overrides_runpath=no
24138 save_LDFLAGS=$LDFLAGS
24139 save_libdir=$libdir
24140 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24141 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24143 /* end confdefs.h. */
24144
24145 int
24146 main (void)
24147 {
24148
24149 ;
24150 return 0;
24151 }
24152 _ACEOF
24153 if ac_fn_cxx_try_link "$LINENO"
24154 then :
24155 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
24156 then :
24157 lt_cv_shlibpath_overrides_runpath=yes
24158 fi
24159 fi
24160 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24161 conftest$ac_exeext conftest.$ac_ext
24162 LDFLAGS=$save_LDFLAGS
24163 libdir=$save_libdir
24164 ;;
24165 esac
24166 fi
24167
24168 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24169
24170 # This implies no fast_install, which is unacceptable.
24171 # Some rework will be needed to allow for fast_install
24172 # before this can be enabled.
24173 hardcode_into_libs=yes
24174
24175 # Add ABI-specific directories to the system library path.
24176 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
24177
24178 # Ideally, we could use ldconfig to report *all* directories which are
24179 # searched for libraries, however this is still not possible. Aside from not
24180 # being certain /sbin/ldconfig is available, command
24181 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
24182 # even though it is searched at run-time. Try to do the best guess by
24183 # appending ld.so.conf contents (and includes) to the search path.
24184 if test -f /etc/ld.so.conf; then
24185 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' ' '`
24186 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
24187 fi
24188
24189 # We used to test for /lib/ld.so.1 and disable shared libraries on
24190 # powerpc, because MkLinux only supported shared libraries with the
24191 # GNU dynamic linker. Since this was broken with cross compilers,
24192 # most powerpc-linux boxes support dynamic linking these days and
24193 # people can always --disable-shared, the test was removed, and we
24194 # assume the GNU/Linux dynamic linker is in use.
24195 dynamic_linker='GNU/Linux ld.so'
24196 ;;
24197
24198 netbsdelf*-gnu)
24199 version_type=linux
24200 need_lib_prefix=no
24201 need_version=no
24202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24203 soname_spec='$libname$release$shared_ext$major'
24204 shlibpath_var=LD_LIBRARY_PATH
24205 shlibpath_overrides_runpath=no
24206 hardcode_into_libs=yes
24207 dynamic_linker='NetBSD ld.elf_so'
24208 ;;
24209
24210 netbsd*)
24211 version_type=sunos
24212 need_lib_prefix=no
24213 need_version=no
24214 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24215 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
24216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24217 dynamic_linker='NetBSD (a.out) ld.so'
24218 else
24219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24220 soname_spec='$libname$release$shared_ext$major'
24221 dynamic_linker='NetBSD ld.elf_so'
24222 fi
24223 shlibpath_var=LD_LIBRARY_PATH
24224 shlibpath_overrides_runpath=yes
24225 hardcode_into_libs=yes
24226 ;;
24227
24228 *-mlibc)
24229 version_type=linux # correct to gnu/linux during the next big refactor
24230 need_lib_prefix=no
24231 need_version=no
24232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24233 soname_spec='$libname$release$shared_ext$major'
24234 dynamic_linker='mlibc ld.so'
24235 shlibpath_var=LD_LIBRARY_PATH
24236 shlibpath_overrides_runpath=no
24237 hardcode_into_libs=yes
24238 ;;
24239
24240 newsos6)
24241 version_type=linux # correct to gnu/linux during the next big refactor
24242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24243 shlibpath_var=LD_LIBRARY_PATH
24244 shlibpath_overrides_runpath=yes
24245 ;;
24246
24247 *nto* | *qnx*)
24248 version_type=qnx
24249 need_lib_prefix=no
24250 need_version=no
24251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24252 soname_spec='$libname$release$shared_ext$major'
24253 shlibpath_var=LD_LIBRARY_PATH
24254 shlibpath_overrides_runpath=no
24255 hardcode_into_libs=yes
24256 dynamic_linker='ldqnx.so'
24257 ;;
24258
24259 openbsd*)
24260 version_type=sunos
24261 sys_lib_dlsearch_path_spec=/usr/lib
24262 need_lib_prefix=no
24263 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
24264 need_version=no
24265 else
24266 need_version=yes
24267 fi
24268 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
24269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24270 shlibpath_var=LD_LIBRARY_PATH
24271 shlibpath_overrides_runpath=yes
24272 ;;
24273
24274 os2*)
24275 libname_spec='$name'
24276 version_type=windows
24277 shrext_cmds=.dll
24278 need_version=no
24279 need_lib_prefix=no
24280 # OS/2 can only load a DLL with a base name of 8 characters or less.
24281 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
24282 v=$($ECHO $release$versuffix | tr -d .-);
24283 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
24284 $ECHO $n$v`$shared_ext'
24285 library_names_spec='${libname}_dll.$libext'
24286 dynamic_linker='OS/2 ld.exe'
24287 shlibpath_var=BEGINLIBPATH
24288 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24290 postinstall_cmds='base_file=`basename \$file`~
24291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
24292 dldir=$destdir/`dirname \$dlpath`~
24293 test -d \$dldir || mkdir -p \$dldir~
24294 $install_prog $dir/$dlname \$dldir/$dlname~
24295 chmod a+x \$dldir/$dlname~
24296 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24297 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24298 fi'
24299 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
24300 dlpath=$dir/\$dldll~
24301 $RM \$dlpath'
24302 ;;
24303
24304 osf3* | osf4* | osf5*)
24305 version_type=osf
24306 need_lib_prefix=no
24307 need_version=no
24308 soname_spec='$libname$release$shared_ext$major'
24309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24310 shlibpath_var=LD_LIBRARY_PATH
24311 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24313 ;;
24314
24315 rdos*)
24316 dynamic_linker=no
24317 ;;
24318
24319 serenity*)
24320 version_type=linux # correct to gnu/linux during the next big refactor
24321 need_lib_prefix=no
24322 need_version=no
24323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24324 soname_spec='$libname$release$shared_ext$major'
24325 shlibpath_var=LD_LIBRARY_PATH
24326 shlibpath_overrides_runpath=no
24327 dynamic_linker='SerenityOS LibELF'
24328 ;;
24329
24330 solaris*)
24331 version_type=linux # correct to gnu/linux during the next big refactor
24332 need_lib_prefix=no
24333 need_version=no
24334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24335 soname_spec='$libname$release$shared_ext$major'
24336 shlibpath_var=LD_LIBRARY_PATH
24337 shlibpath_overrides_runpath=yes
24338 hardcode_into_libs=yes
24339 # ldd complains unless libraries are executable
24340 postinstall_cmds='chmod +x $lib'
24341 ;;
24342
24343 sunos4*)
24344 version_type=sunos
24345 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
24346 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24347 shlibpath_var=LD_LIBRARY_PATH
24348 shlibpath_overrides_runpath=yes
24349 if test yes = "$with_gnu_ld"; then
24350 need_lib_prefix=no
24351 fi
24352 need_version=yes
24353 ;;
24354
24355 sysv4 | sysv4.3*)
24356 version_type=linux # correct to gnu/linux during the next big refactor
24357 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24358 soname_spec='$libname$release$shared_ext$major'
24359 shlibpath_var=LD_LIBRARY_PATH
24360 case $host_vendor in
24361 sni)
24362 shlibpath_overrides_runpath=no
24363 need_lib_prefix=no
24364 runpath_var=LD_RUN_PATH
24365 ;;
24366 siemens)
24367 need_lib_prefix=no
24368 ;;
24369 motorola)
24370 need_lib_prefix=no
24371 need_version=no
24372 shlibpath_overrides_runpath=no
24373 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24374 ;;
24375 esac
24376 ;;
24377
24378 sysv4*MP*)
24379 if test -d /usr/nec; then
24380 version_type=linux # correct to gnu/linux during the next big refactor
24381 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
24382 soname_spec='$libname$shared_ext.$major'
24383 shlibpath_var=LD_LIBRARY_PATH
24384 fi
24385 ;;
24386
24387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24388 version_type=sco
24389 need_lib_prefix=no
24390 need_version=no
24391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
24392 soname_spec='$libname$release$shared_ext$major'
24393 shlibpath_var=LD_LIBRARY_PATH
24394 shlibpath_overrides_runpath=yes
24395 hardcode_into_libs=yes
24396 if test yes = "$with_gnu_ld"; then
24397 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24398 else
24399 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24400 case $host_os in
24401 sco3.2v5*)
24402 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24403 ;;
24404 esac
24405 fi
24406 sys_lib_dlsearch_path_spec='/usr/lib'
24407 ;;
24408
24409 tpf*)
24410 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24411 version_type=linux # correct to gnu/linux during the next big refactor
24412 need_lib_prefix=no
24413 need_version=no
24414 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24415 shlibpath_var=LD_LIBRARY_PATH
24416 shlibpath_overrides_runpath=no
24417 hardcode_into_libs=yes
24418 ;;
24419
24420 uts4*)
24421 version_type=linux # correct to gnu/linux during the next big refactor
24422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
24423 soname_spec='$libname$release$shared_ext$major'
24424 shlibpath_var=LD_LIBRARY_PATH
24425 ;;
24426
24427 emscripten*)
24428 version_type=none
24429 need_lib_prefix=no
24430 need_version=no
24431 library_names_spec='$libname$release$shared_ext'
24432 soname_spec='$libname$release$shared_ext'
24433 finish_cmds=
24434 dynamic_linker="Emscripten linker"
24435 lt_prog_compiler_wl_CXX=
24436 lt_prog_compiler_pic_CXX=
24437 lt_prog_compiler_static_CXX=
24438
24439
24440 # C++ specific cases for pic, static, wl, etc.
24441 if test yes = "$GXX"; then
24442 lt_prog_compiler_wl_CXX='-Wl,'
24443 lt_prog_compiler_static_CXX='-static'
24444
24445 case $host_os in
24446 aix*)
24447 # All AIX code is PIC.
24448 if test ia64 = "$host_cpu"; then
24449 # AIX 5 now supports IA64 processor
24450 lt_prog_compiler_static_CXX='-Bstatic'
24451 fi
24452 lt_prog_compiler_pic_CXX='-fPIC'
24453 ;;
24454
24455 amigaos*)
24456 case $host_cpu in
24457 powerpc)
24458 # see comment about AmigaOS4 .so support
24459 lt_prog_compiler_pic_CXX='-fPIC'
24460 ;;
24461 m68k)
24462 # FIXME: we need at least 68020 code to build shared libraries, but
24463 # adding the '-m68020' flag to GCC prevents building anything better,
24464 # like '-m68040'.
24465 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
24466 ;;
24467 esac
24468 ;;
24469
24470 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24471 # PIC is the default for these OSes.
24472 ;;
24473 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
24474 # This hack is so that the source file can tell whether it is being
24475 # built for inclusion in a dll (and should export symbols for example).
24476 # Although the cygwin gcc ignores -fPIC, still need this for old-style
24477 # (--disable-auto-import) libraries
24478 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
24479 case $host_os in
24480 os2*)
24481 lt_prog_compiler_static_CXX='$wl-static'
24482 ;;
24483 esac
24484 ;;
24485 darwin* | rhapsody*)
24486 # PIC is the default on this platform
24487 # Common symbols not allowed in MH_DYLIB files
24488 lt_prog_compiler_pic_CXX='-fno-common'
24489 ;;
24490 *djgpp*)
24491 # DJGPP does not support shared libraries at all
24492 lt_prog_compiler_pic_CXX=
24493 ;;
24494 haiku*)
24495 # PIC is the default for Haiku.
24496 # The "-static" flag exists, but is broken.
24497 lt_prog_compiler_static_CXX=
24498 ;;
24499 interix[3-9]*)
24500 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24501 # Instead, we relocate shared libraries at runtime.
24502 ;;
24503 sysv4*MP*)
24504 if test -d /usr/nec; then
24505 lt_prog_compiler_pic_CXX=-Kconform_pic
24506 fi
24507 ;;
24508 hpux*)
24509 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
24510 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
24511 # sets the default TLS model and affects inlining.
24512 case $host_cpu in
24513 hppa*64*)
24514 ;;
24515 *)
24516 lt_prog_compiler_pic_CXX='-fPIC'
24517 ;;
24518 esac
24519 ;;
24520 *qnx* | *nto*)
24521 # QNX uses GNU C++, but need to define -shared option too, otherwise
24522 # it will coredump.
24523 lt_prog_compiler_pic_CXX='-fPIC -shared'
24524 ;;
24525 *)
24526 lt_prog_compiler_pic_CXX='-fPIC'
24527 ;;
24528 esac
24529 else
24530 case $host_os in
24531 aix[4-9]*)
24532 # All AIX code is PIC.
24533 if test ia64 = "$host_cpu"; then
24534 # AIX 5 now supports IA64 processor
24535 lt_prog_compiler_static_CXX='-Bstatic'
24536 else
24537 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
24538 fi
24539 ;;
24540 chorus*)
24541 case $cc_basename in
24542 cxch68*)
24543 # Green Hills C++ Compiler
24544 # _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"
24545 ;;
24546 esac
24547 ;;
24548 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
24549 # This hack is so that the source file can tell whether it is being
24550 # built for inclusion in a dll (and should export symbols for example).
24551 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
24552 ;;
24553 dgux*)
24554 case $cc_basename in
24555 ec++*)
24556 lt_prog_compiler_pic_CXX='-KPIC'
24557 ;;
24558 ghcx*)
24559 # Green Hills C++ Compiler
24560 lt_prog_compiler_pic_CXX='-pic'
24561 ;;
24562 *)
24563 ;;
24564 esac
24565 ;;
24566 freebsd* | dragonfly* | midnightbsd*)
24567 # FreeBSD uses GNU C++
24568 ;;
24569 hpux9* | hpux10* | hpux11*)
24570 case $cc_basename in
24571 CC*)
24572 lt_prog_compiler_wl_CXX='-Wl,'
24573 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
24574 if test ia64 != "$host_cpu"; then
24575 lt_prog_compiler_pic_CXX='+Z'
24576 fi
24577 ;;
24578 aCC*)
24579 lt_prog_compiler_wl_CXX='-Wl,'
24580 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
24581 case $host_cpu in
24582 hppa*64*|ia64*)
24583 # +Z the default
24584 ;;
24585 *)
24586 lt_prog_compiler_pic_CXX='+Z'
24587 ;;
24588 esac
24589 ;;
24590 *)
24591 ;;
24592 esac
24593 ;;
24594 interix*)
24595 # This is c89, which is MS Visual C++ (no shared libs)
24596 # Anyone wants to do a port?
24597 ;;
24598 irix5* | irix6* | nonstopux*)
24599 case $cc_basename in
24600 CC*)
24601 lt_prog_compiler_wl_CXX='-Wl,'
24602 lt_prog_compiler_static_CXX='-non_shared'
24603 # CC pic flag -KPIC is the default.
24604 ;;
24605 *)
24606 ;;
24607 esac
24608 ;;
24609 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
24610 case $cc_basename in
24611 KCC*)
24612 # KAI C++ Compiler
24613 lt_prog_compiler_wl_CXX='--backend -Wl,'
24614 lt_prog_compiler_pic_CXX='-fPIC'
24615 ;;
24616 ecpc* )
24617 # old Intel C++ for x86_64, which still supported -KPIC.
24618 lt_prog_compiler_wl_CXX='-Wl,'
24619 lt_prog_compiler_pic_CXX='-KPIC'
24620 lt_prog_compiler_static_CXX='-static'
24621 ;;
24622 icpc* )
24623 # Intel C++, used to be incompatible with GCC.
24624 # ICC 10 doesn't accept -KPIC any more.
24625 lt_prog_compiler_wl_CXX='-Wl,'
24626 lt_prog_compiler_pic_CXX='-fPIC'
24627 lt_prog_compiler_static_CXX='-static'
24628 ;;
24629 pgCC* | pgcpp*)
24630 # Portland Group C++ compiler
24631 lt_prog_compiler_wl_CXX='-Wl,'
24632 lt_prog_compiler_pic_CXX='-fpic'
24633 lt_prog_compiler_static_CXX='-Bstatic'
24634 ;;
24635 cxx*)
24636 # Compaq C++
24637 # Make sure the PIC flag is empty. It appears that all Alpha
24638 # Linux and Compaq Tru64 Unix objects are PIC.
24639 lt_prog_compiler_pic_CXX=
24640 lt_prog_compiler_static_CXX='-non_shared'
24641 ;;
24642 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
24643 # IBM XL 8.0, 9.0 on PPC and BlueGene
24644 lt_prog_compiler_wl_CXX='-Wl,'
24645 lt_prog_compiler_pic_CXX='-qpic'
24646 lt_prog_compiler_static_CXX='-qstaticlink'
24647 ;;
24648 *)
24649 case `$CC -V 2>&1 | $SED 5q` in
24650 *Sun\ C*)
24651 # Sun C++ 5.9
24652 lt_prog_compiler_pic_CXX='-KPIC'
24653 lt_prog_compiler_static_CXX='-Bstatic'
24654 lt_prog_compiler_wl_CXX='-Qoption ld '
24655 ;;
24656 esac
24657 ;;
24658 esac
24659 ;;
24660 lynxos*)
24661 ;;
24662 m88k*)
24663 ;;
24664 mvs*)
24665 case $cc_basename in
24666 cxx*)
24667 lt_prog_compiler_pic_CXX='-W c,exportall'
24668 ;;
24669 *)
24670 ;;
24671 esac
24672 ;;
24673 netbsd* | netbsdelf*-gnu)
24674 ;;
24675 *-mlibc)
24676 ;;
24677 *qnx* | *nto*)
24678 # QNX uses GNU C++, but need to define -shared option too, otherwise
24679 # it will coredump.
24680 lt_prog_compiler_pic_CXX='-fPIC -shared'
24681 ;;
24682 osf3* | osf4* | osf5*)
24683 case $cc_basename in
24684 KCC*)
24685 lt_prog_compiler_wl_CXX='--backend -Wl,'
24686 ;;
24687 RCC*)
24688 # Rational C++ 2.4.1
24689 lt_prog_compiler_pic_CXX='-pic'
24690 ;;
24691 cxx*)
24692 # Digital/Compaq C++
24693 lt_prog_compiler_wl_CXX='-Wl,'
24694 # Make sure the PIC flag is empty. It appears that all Alpha
24695 # Linux and Compaq Tru64 Unix objects are PIC.
24696 lt_prog_compiler_pic_CXX=
24697 lt_prog_compiler_static_CXX='-non_shared'
24698 ;;
24699 *)
24700 ;;
24701 esac
24702 ;;
24703 psos*)
24704 ;;
24705 serenity*)
24706 ;;
24707 solaris*)
24708 case $cc_basename in
24709 CC* | sunCC*)
24710 # Sun C++ 4.2, 5.x and Centerline C++
24711 lt_prog_compiler_pic_CXX='-KPIC'
24712 lt_prog_compiler_static_CXX='-Bstatic'
24713 lt_prog_compiler_wl_CXX='-Qoption ld '
24714 ;;
24715 gcx*)
24716 # Green Hills C++ Compiler
24717 lt_prog_compiler_pic_CXX='-PIC'
24718 ;;
24719 *)
24720 ;;
24721 esac
24722 ;;
24723 sunos4*)
24724 case $cc_basename in
24725 CC*)
24726 # Sun C++ 4.x
24727 lt_prog_compiler_pic_CXX='-pic'
24728 lt_prog_compiler_static_CXX='-Bstatic'
24729 ;;
24730 lcc*)
24731 # Lucid
24732 lt_prog_compiler_pic_CXX='-pic'
24733 ;;
24734 *)
24735 ;;
24736 esac
24737 ;;
24738 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24739 case $cc_basename in
24740 CC*)
24741 lt_prog_compiler_wl_CXX='-Wl,'
24742 lt_prog_compiler_pic_CXX='-KPIC'
24743 lt_prog_compiler_static_CXX='-Bstatic'
24744 ;;
24745 esac
24746 ;;
24747 tandem*)
24748 case $cc_basename in
24749 NCC*)
24750 # NonStop-UX NCC 3.20
24751 lt_prog_compiler_pic_CXX='-KPIC'
24752 ;;
24753 *)
24754 ;;
24755 esac
24756 ;;
24757 vxworks*)
24758 ;;
24759 *)
24760 lt_prog_compiler_can_build_shared_CXX=no
24761 ;;
24762 esac
24763 fi
24764
24765 case $host_os in
24766 # For platforms that do not support PIC, -DPIC is meaningless:
24767 *djgpp*)
24768 lt_prog_compiler_pic_CXX=
24769 ;;
24770 *)
24771 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
24772 ;;
24773 esac
24774
24775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
24776 printf %s "checking for $compiler option to produce PIC... " >&6; }
24777 if test ${lt_cv_prog_compiler_pic_CXX+y}
24778 then :
24779 printf %s "(cached) " >&6
24780 else case e in #(
24781 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
24782 esac
24783 fi
24784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
24785 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
24786 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
24787
24788 #
24789 # Check to make sure the PIC flag actually works.
24790 #
24791 if test -n "$lt_prog_compiler_pic_CXX"; then
24792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
24793 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
24794 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
24795 then :
24796 printf %s "(cached) " >&6
24797 else case e in #(
24798 e) lt_cv_prog_compiler_pic_works_CXX=no
24799 ac_outfile=conftest.$ac_objext
24800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24801 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
24802 # Insert the option either (1) after the last *FLAGS variable, or
24803 # (2) before a word containing "conftest.", or (3) at the end.
24804 # Note that $ac_compile itself does not contain backslashes and begins
24805 # with a dollar sign (not a hyphen), so the echo should work correctly.
24806 # The option is referenced via a variable to avoid confusing sed.
24807 lt_compile=`echo "$ac_compile" | $SED \
24808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24810 -e 's:$: $lt_compiler_flag:'`
24811 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
24812 (eval "$lt_compile" 2>conftest.err)
24813 ac_status=$?
24814 cat conftest.err >&5
24815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816 if (exit $ac_status) && test -s "$ac_outfile"; then
24817 # The compiler can only warn and ignore the option if not recognized
24818 # So say no if there are warnings other than the usual output.
24819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
24820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24821 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24822 lt_cv_prog_compiler_pic_works_CXX=yes
24823 fi
24824 fi
24825 $RM conftest*
24826 ;;
24827 esac
24828 fi
24829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
24830 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
24831
24832 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
24833 case $lt_prog_compiler_pic_CXX in
24834 "" | " "*) ;;
24835 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
24836 esac
24837 else
24838 lt_prog_compiler_pic_CXX=
24839 lt_prog_compiler_can_build_shared_CXX=no
24840 fi
24841
24842 fi
24843
24844
24845
24846
24847
24848 #
24849 # Check to make sure the static flag actually works.
24850 #
24851 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
24852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24853 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
24854 if test ${lt_cv_prog_compiler_static_works_CXX+y}
24855 then :
24856 printf %s "(cached) " >&6
24857 else case e in #(
24858 e) lt_cv_prog_compiler_static_works_CXX=no
24859 save_LDFLAGS=$LDFLAGS
24860 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24861 echo "$lt_simple_link_test_code" > conftest.$ac_ext
24862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24863 # The linker can only warn and ignore the option if not recognized
24864 # So say no if there are warnings
24865 if test -s conftest.err; then
24866 # Append any errors to the config.log.
24867 cat conftest.err 1>&5
24868 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
24869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24870 if diff conftest.exp conftest.er2 >/dev/null; then
24871 lt_cv_prog_compiler_static_works_CXX=yes
24872 fi
24873 else
24874 lt_cv_prog_compiler_static_works_CXX=yes
24875 fi
24876 fi
24877 $RM -r conftest*
24878 LDFLAGS=$save_LDFLAGS
24879 ;;
24880 esac
24881 fi
24882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
24883 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
24884
24885 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
24886 :
24887 else
24888 lt_prog_compiler_static_CXX=
24889 fi
24890
24891
24892
24893 ='-fPIC'
24894 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
24895 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'
24896 archive_cmds_need_lc_CXX=no
24897 no_undefined_flag_CXX=
24898 ;;
24899
24900 *)
24901 dynamic_linker=no
24902 ;;
24903 esac
24904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24905 printf "%s\n" "$dynamic_linker" >&6; }
24906 test no = "$dynamic_linker" && can_build_shared=no
24907
24908 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24909 if test yes = "$GCC"; then
24910 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24911 fi
24912
24913 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
24914 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
24915 fi
24916
24917 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
24918 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
24919 fi
24920
24921 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
24922 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
24923
24924 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
24925 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
24926
24927 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
24928 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
24968
24969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24970 printf %s "checking how to hardcode library paths into programs... " >&6; }
24971 hardcode_action_CXX=
24972 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24973 test -n "$runpath_var_CXX" ||
24974 test yes = "$hardcode_automatic_CXX"; then
24975
24976 # We can hardcode non-existent directories.
24977 if test no != "$hardcode_direct_CXX" &&
24978 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24979 # have to relink, otherwise we might link with an installed library
24980 # when we should be linking with a yet-to-be-installed one
24981 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
24982 test no != "$hardcode_minus_L_CXX"; then
24983 # Linking always hardcodes the temporary library directory.
24984 hardcode_action_CXX=relink
24985 else
24986 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24987 hardcode_action_CXX=immediate
24988 fi
24989 else
24990 # We cannot hardcode anything, or else we can only hardcode existing
24991 # directories.
24992 hardcode_action_CXX=unsupported
24993 fi
24994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
24995 printf "%s\n" "$hardcode_action_CXX" >&6; }
24996
24997 if test relink = "$hardcode_action_CXX" ||
24998 test yes = "$inherit_rpath_CXX"; then
24999 # Fast installation is not supported
25000 enable_fast_install=no
25001 elif test yes = "$shlibpath_overrides_runpath" ||
25002 test no = "$enable_shared"; then
25003 # Fast installation is not necessary
25004 enable_fast_install=needless
25005 fi
25006
25007
25008
25009
25010
25011
25012
25013 fi # test -n "$compiler"
25014
25015 CC=$lt_save_CC
25016 CFLAGS=$lt_save_CFLAGS
25017 LDCXX=$LD
25018 LD=$lt_save_LD
25019 GCC=$lt_save_GCC
25020 with_gnu_ld=$lt_save_with_gnu_ld
25021 lt_cv_path_LDCXX=$lt_cv_path_LD
25022 lt_cv_path_LD=$lt_save_path_LD
25023 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
25024 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
25025 fi # test yes != "$_lt_caught_CXX_error"
25026
25027 ac_ext=c
25028 ac_cpp='$CPP $CPPFLAGS'
25029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25032
25033
25034
25035
25036
25037
25038
25039
25040
25041
25042
25043
25044
25045
25046
25047 ac_config_commands="$ac_config_commands libtool"
25048
25049
25050
25051
25052 # Only expand once:
25053
25054
25055
25056
25057
25058 # Check to see if building shared libraries
25059 libtool_build_shared_libs='no'
25060 if test "$enable_shared" = 'yes'; then
25061 libtool_build_shared_libs='yes'
25062 fi
25063
25064 # Check to see if building static libraries
25065 libtool_build_static_libs='no'
25066 if test "$enable_static" = 'yes'; then
25067 libtool_build_static_libs='yes'
25068 fi
25069
25070 if test "${libtool_build_shared_libs}" = 'yes'; then
25071 WITH_SHARED_LIBS_TRUE=
25072 WITH_SHARED_LIBS_FALSE='#'
25073 else
25074 WITH_SHARED_LIBS_TRUE='#'
25075 WITH_SHARED_LIBS_FALSE=
25076 fi
25077
25078 #
25079 # Enable support for building loadable modules
25080 #
25081 build_modules='no'
25082
25083 # Check whether --with-modules was given.
25084 if test ${with_modules+y}
25085 then :
25086 withval=$with_modules; with_modules=$withval
25087 else case e in #(
25088 e) with_modules='no' ;;
25089 esac
25090 fi
25091
25092
25093 # Only allow building loadable modules if we are building shared libraries
25094 if test "$with_modules" != 'no' ; then
25095 if test "$libtool_build_shared_libs" = 'no'; then
25096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
25097 printf "%s\n" "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
25098 build_modules='no'
25099 else
25100 build_modules='yes'
25101 fi
25102 fi
25103 if test "$build_modules" != 'no' ; then
25104
25105 printf "%s\n" "#define BUILD_MODULES 1" >>confdefs.h
25106
25107 MAGICK_FEATURES="Modules $MAGICK_FEATURES"
25108 fi
25109 if test "$build_modules" != 'no'; then
25110 WITH_MODULES_TRUE=
25111 WITH_MODULES_FALSE='#'
25112 else
25113 WITH_MODULES_TRUE='#'
25114 WITH_MODULES_FALSE=
25115 fi
25116
25117
25118 # Enable build using delegate libraries built in subdirectories rather than installed
25119 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf uhdr wmf xml zlib zip)
25120 # Check whether --enable-delegate-build was given.
25121 if test ${enable_delegate_build+y}
25122 then :
25123 enableval=$enable_delegate_build; enable_delegate_build=$enableval
25124 else case e in #(
25125 e) enable_delegate_build='no' ;;
25126 esac
25127 fi
25128
25129
25130 # Check whether --enable-deprecated was given.
25131 if test ${enable_deprecated+y}
25132 then :
25133 enableval=$enable_deprecated; enable_deprecated=$enableval
25134 else case e in #(
25135 e) enable_deprecated='no' ;;
25136 esac
25137 fi
25138
25139
25140 if test "$enable_deprecated" = 'yes'; then
25141
25142 printf "%s\n" "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
25143
25144 else
25145 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
25146 fi
25147
25148 # Build a version of ImageMagick which operates uninstalled.
25149 # Used to build distributions located via MAGICK_HOME / executable path
25150 # Check whether --enable-installed was given.
25151 if test ${enable_installed+y}
25152 then :
25153 enableval=$enable_installed; enable_installed=$enableval
25154 else case e in #(
25155 e) enable_installed='yes' ;;
25156 esac
25157 fi
25158
25159
25160 if test "$enable_installed" = 'yes'; then
25161
25162 printf "%s\n" "#define INSTALLED_SUPPORT 1" >>confdefs.h
25163
25164 else
25165 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
25166 fi
25167
25168 # Build a zero-configuration version of ImageMagick.
25169 # Check whether --enable-zero-configuration was given.
25170 if test ${enable_zero_configuration+y}
25171 then :
25172 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
25173 else case e in #(
25174 e) enable_zero_configuration='no' ;;
25175 esac
25176 fi
25177
25178
25179 if test "$enable_zero_configuration" = 'yes'; then
25180
25181 printf "%s\n" "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
25182
25183 MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES"
25184 fi
25185 if test "$enable_zero_configuration" = yes; then
25186 MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_TRUE=
25187 MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_FALSE='#'
25188 else
25189 MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_TRUE='#'
25190 MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_FALSE=
25191 fi
25192
25193
25194 #
25195 # Build a high dynamic range version of ImageMagick.
25196 #
25197 # Check whether --enable-hdri was given.
25198 if test ${enable_hdri+y}
25199 then :
25200 enableval=$enable_hdri; enable_hdri=$enableval
25201 else case e in #(
25202 e) enable_hdri='yes' ;;
25203 esac
25204 fi
25205
25206
25207 MAGICK_HDRI=""
25208 if test "$enable_hdri" = 'yes'; then
25209 MAGICK_HDRI="HDRI"
25210 magick_hdri_enable='1';
25211 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
25212 else
25213 magick_hdri_enable='0'
25214 fi
25215 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
25216 CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
25217 CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
25218
25219 #
25220 # Support the distributed pixel cache.
25221 #
25222 # Check whether --enable-dpc was given.
25223 if test ${enable_dpc+y}
25224 then :
25225 enableval=$enable_dpc; enable_dpc=$enableval
25226 else case e in #(
25227 e) enable_dpc='yes' ;;
25228 esac
25229 fi
25230
25231
25232 if test "$enable_dpc" = 'yes'; then
25233
25234 printf "%s\n" "#define DPC_SUPPORT 1" >>confdefs.h
25235
25236 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
25237 fi
25238
25239 # Enable pipes (|) in filenames.
25240 # Check whether --enable-pipes was given.
25241 if test ${enable_pipes+y}
25242 then :
25243 enableval=$enable_pipes; enable_pipes=$enableval
25244 else case e in #(
25245 e) enable_pipes='no' ;;
25246 esac
25247 fi
25248
25249
25250 if test "$enable_pipes" = 'yes'; then
25251
25252 printf "%s\n" "#define PIPES_SUPPORT 1" >>confdefs.h
25253
25254 MAGICK_FEATURES="Pipes $MAGICK_FEATURES"
25255 fi
25256
25257 # Don't emit "rebuild rules" for configure, Makefile.ins, etc.
25258
25259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25260 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25261 # Check whether --enable-maintainer-mode was given.
25262 if test ${enable_maintainer_mode+y}
25263 then :
25264 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25265 else case e in #(
25266 e) USE_MAINTAINER_MODE=no ;;
25267 esac
25268 fi
25269
25270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
25271 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
25272 if test $USE_MAINTAINER_MODE = yes; then
25273 MAINTAINER_MODE_TRUE=
25274 MAINTAINER_MODE_FALSE='#'
25275 else
25276 MAINTAINER_MODE_TRUE='#'
25277 MAINTAINER_MODE_FALSE=
25278 fi
25279
25280 MAINT=$MAINTAINER_MODE_TRUE
25281
25282
25283
25284 # Enable hugepages support
25285 # Check whether --enable-hugepages was given.
25286 if test ${enable_hugepages+y}
25287 then :
25288 enableval=$enable_hugepages; enable_hugepages=$enableval
25289 else case e in #(
25290 e) enable_hugepages='no' ;;
25291 esac
25292 fi
25293
25294
25295 # Enable ccmalloc memory debugging support
25296 # Check whether --enable-ccmalloc was given.
25297 if test ${enable_ccmalloc+y}
25298 then :
25299 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
25300 else case e in #(
25301 e) enable_ccmalloc='no' ;;
25302 esac
25303 fi
25304
25305
25306 # Enable Electric Fence memory debugging support
25307 # Check whether --enable-efence was given.
25308 if test ${enable_efence+y}
25309 then :
25310 enableval=$enable_efence; enable_efence=$enableval
25311 else case e in #(
25312 e) enable_efence='no' ;;
25313 esac
25314 fi
25315
25316
25317 # Enable prof-based profiling support
25318 # Check whether --enable-prof was given.
25319 if test ${enable_prof+y}
25320 then :
25321 enableval=$enable_prof; enable_prof=$enableval
25322 else case e in #(
25323 e) enable_prof='no' ;;
25324 esac
25325 fi
25326
25327
25328 # Enable gprof-based profiling support
25329 # Check whether --enable-gprof was given.
25330 if test ${enable_gprof+y}
25331 then :
25332 enableval=$enable_gprof; enable_gprof=$enableval
25333 else case e in #(
25334 e) enable_gprof='no' ;;
25335 esac
25336 fi
25337
25338
25339 # Enable gcov-based profiling support
25340 # Check whether --enable-gcov was given.
25341 if test ${enable_gcov+y}
25342 then :
25343 enableval=$enable_gcov; enable_gcov=$enableval
25344 else case e in #(
25345 e) enable_gcov='no' ;;
25346 esac
25347 fi
25348
25349
25350 enable_profiling='no'
25351 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
25352 enable_profiling='yes'
25353 if test "$libtool_build_shared_libs" = 'yes'; then
25354 echo "Warning: Can not profile code using shared libraries"
25355 fi
25356 fi
25357
25358 # Magick API method prefix
25359
25360 # Check whether --with-method-prefix was given.
25361 if test ${with_method_prefix+y}
25362 then :
25363 withval=$with_method_prefix; with_method_prefix=$withval
25364 else case e in #(
25365 e) with_method_prefix='no' ;;
25366 esac
25367 fi
25368
25369
25370 if test "$with_method_prefix" != 'no'; then
25371
25372 printf "%s\n" "#define NAMESPACE_PREFIX $with_method_prefix" >>confdefs.h
25373
25374
25375 printf "%s\n" "#define NAMESPACE_PREFIX_TAG $with_method_prefix" >>confdefs.h
25376
25377 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
25378 fi
25379
25380 # Enable legacy support (default no)
25381 # Check whether --enable-legacy-support was given.
25382 if test ${enable_legacy_support+y}
25383 then :
25384 enableval=$enable_legacy_support; with_legacy_support=$enableval
25385 else case e in #(
25386 e) with_legacy_support='no' ;;
25387 esac
25388 fi
25389
25390 if test "$with_legacy_support" != 'no'; then
25391 LEGACY_SUPPORT_TRUE=
25392 LEGACY_SUPPORT_FALSE='#'
25393 else
25394 LEGACY_SUPPORT_TRUE='#'
25395 LEGACY_SUPPORT_FALSE=
25396 fi
25397
25398
25399 # Enable building command line utilities (default yes)
25400
25401 # Check whether --with-utilities was given.
25402 if test ${with_utilities+y}
25403 then :
25404 withval=$with_utilities; with_utilities=$withval
25405 else case e in #(
25406 e) with_utilities='yes' ;;
25407 esac
25408 fi
25409
25410 if test "$with_utilities" = 'yes'; then
25411 WITH_UTILITIES_TRUE=
25412 WITH_UTILITIES_FALSE='#'
25413 else
25414 WITH_UTILITIES_TRUE='#'
25415 WITH_UTILITIES_FALSE=
25416 fi
25417
25418
25419 # Number of bits in a Quantum
25420
25421 # Check whether --with-quantum-depth was given.
25422 if test ${with_quantum_depth+y}
25423 then :
25424 withval=$with_quantum_depth; with_quantum_depth=$withval
25425 else case e in #(
25426 e) with_quantum_depth=16 ;;
25427 esac
25428 fi
25429
25430
25431 if test "$with_quantum_depth" != '8'; then
25432 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
25433 fi
25434
25435 case "${with_quantum_depth}" in
25436 8 ) ;;
25437 16 ) ;;
25438 32 ) ;;
25439 64 ) ;;
25440 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
25441 esac
25442 QUANTUM_DEPTH="$with_quantum_depth"
25443
25444 printf "%s\n" "#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH" >>confdefs.h
25445
25446 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
25447 CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
25448 CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
25449
25450 # define a lib suffix for abi purpose
25451 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
25452 if test "$enable_hdri" = 'yes'; then
25453 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
25454 fi
25455
25456
25457 # Set pixel cache threshold
25458
25459 # Check whether --with-cache was given.
25460 if test ${with_cache+y}
25461 then :
25462 withval=$with_cache; with_cache=$withval
25463 else case e in #(
25464 e) with_cache='' ;;
25465 esac
25466 fi
25467
25468
25469 if test "$with_cache" != ''; then
25470
25471 printf "%s\n" "#define PixelCacheThreshold \"$with_cache\"" >>confdefs.h
25472
25473 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
25474 fi
25475
25476 # Set security policy
25477 security_policy="open"
25478 # MAGICK_SECURITY_POLICY
25479
25480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of security policy to enforce" >&5
25481 printf %s "checking which variant of security policy to enforce... " >&6; }
25482
25483 # Check whether --with-security-policy was given.
25484 if test ${with_security_policy+y}
25485 then :
25486 withval=$with_security_policy; case $withval in
25487 open|limited|secure|websafe)
25488 security_policy=$withval
25489 ;;
25490 *)
25491 as_fn_error $? "Unknown argument to --with-security-policy" "$LINENO" 5
25492 ;;
25493 esac
25494 magick_cv_with_security_policy=$security_policy
25495 else case e in #(
25496 e) if test ${magick_cv_with_security_policy+y}
25497 then :
25498 printf %s "(cached) " >&6
25499 else case e in #(
25500 e) magick_cv_with_security_policy=open ;;
25501 esac
25502 fi
25503
25504 MAGICK_SECURITY_POLICY=$magick_cv_with_security_policy ;;
25505 esac
25506 fi
25507
25508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $security_policy" >&5
25509 printf "%s\n" "$security_policy" >&6; }
25510
25511
25512
25513 # Disable/Enable support for full delegate paths
25514
25515 # Check whether --with-frozenpaths was given.
25516 if test ${with_frozenpaths+y}
25517 then :
25518 withval=$with_frozenpaths; with_frozenpaths=$withval
25519 else case e in #(
25520 e) with_frozenpaths='no' ;;
25521 esac
25522 fi
25523
25524
25525 # Enable build/install of Magick++
25526
25527 # Check whether --with-magick-plus-plus was given.
25528 if test ${with_magick_plus_plus+y}
25529 then :
25530 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
25531 else case e in #(
25532 e) with_magick_plus_plus='yes' ;;
25533 esac
25534 fi
25535
25536
25537 # Encode the this name into the shared library.
25538
25539 # Check whether --with-package-release-name was given.
25540 if test ${with_package_release_name+y}
25541 then :
25542 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
25543 fi
25544
25545
25546
25547 # Disable build/install of PerlMagick.
25548
25549 # Check whether --with-perl was given.
25550 if test ${with_perl+y}
25551 then :
25552 withval=$with_perl; with_perl=$withval
25553 else case e in #(
25554 e) with_perl='no' ;;
25555 esac
25556 fi
25557
25558
25559 # Options to pass when configuring PerlMagick
25560
25561 # Check whether --with-perl-options was given.
25562 if test ${with_perl_options+y}
25563 then :
25564 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
25565 fi
25566
25567
25568
25569 # Enable jemalloc, object-caching memory allocation library.
25570
25571 # Check whether --with-jemalloc was given.
25572 if test ${with_jemalloc+y}
25573 then :
25574 withval=$with_jemalloc; with_jemalloc=$withval
25575 else case e in #(
25576 e) with_jemalloc='no' ;;
25577 esac
25578 fi
25579
25580 if test "$with_jemalloc" != 'yes' ; then
25581 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
25582 fi
25583
25584 # Enable use of MTMalloc library.
25585
25586 # Check whether --with-mtmalloc was given.
25587 if test ${with_mtmalloc+y}
25588 then :
25589 withval=$with_mtmalloc; with_mtmalloc=$withval
25590 else case e in #(
25591 e) with_mtmalloc='no' ;;
25592 esac
25593 fi
25594
25595 if test "$with_mtmalloc" != 'no' ; then
25596 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-mtmalloc=$with_mtmalloc "
25597 fi
25598
25599 # Enable use of TCMalloc library.
25600
25601 # Check whether --with-tcmalloc was given.
25602 if test ${with_tcmalloc+y}
25603 then :
25604 withval=$with_tcmalloc; with_tcmalloc=$withval
25605 else case e in #(
25606 e) with_tcmalloc='no' ;;
25607 esac
25608 fi
25609
25610 if test "$with_tcmalloc" != 'no' ; then
25611 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tcmalloc=$with_tcmalloc "
25612 fi
25613
25614 # Enable umem, object-caching memory allocation library.
25615
25616 # Check whether --with-umem was given.
25617 if test ${with_umem+y}
25618 then :
25619 withval=$with_umem; with_umem=$withval
25620 else case e in #(
25621 e) with_umem='no' ;;
25622 esac
25623 fi
25624
25625 if test "$with_umem" != 'yes' ; then
25626 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
25627 fi
25628
25629 #
25630 # Specify path to shared libstdc++ if not in normal location
25631 #
25632
25633 # Check whether --with-libstdc was given.
25634 if test ${with_libstdc+y}
25635 then :
25636 withval=$with_libstdc; with_libstdc=$withval
25637 else case e in #(
25638 e) with_libstdc='' ;;
25639 esac
25640 fi
25641
25642
25643 if test "$with_libstdc" != ''; then
25644 if test -d "$with_libstdc"; then
25645 LIBSTDCLDFLAGS="-L$with_libstdc"
25646 fi
25647 fi
25648
25649
25650 ########
25651 #
25652 # Set defines required to build DLLs and modules using MinGW
25653 #
25654 ########
25655 # These options are set for multi-thread DLL module build
25656 # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
25657 # module: _DLL
25658 # executable/Magick++: _DLL _MAGICKMOD_
25659 MODULE_EXTRA_CPPFLAGS=''
25660 LIBRARY_EXTRA_CPPFLAGS=''
25661 if test "${native_win32_build}" = 'yes'; then
25662 if test "${libtool_build_shared_libs}" = 'yes'; then
25663 CPPFLAGS="$CPPFLAGS -D_DLL"
25664 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
25665 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
25666 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
25667 if test "$build_modules" = 'yes'; then
25668 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
25669 else
25670 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
25671 fi
25672 else
25673 CPPFLAGS="$CPPFLAGS -D_LIB"
25674 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
25675 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
25676 fi
25677 if test "$with_threads" = 'yes'; then
25678 CPPFLAGS="$CPPFLAGS -D_MT"
25679 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
25680 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
25681 fi
25682 fi
25683
25684
25685
25686 # Check standard headers
25687
25688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
25689 printf %s "checking whether to enable assertions... " >&6; }
25690 # Check whether --enable-assert was given.
25691 if test ${enable_assert+y}
25692 then :
25693 enableval=$enable_assert; ac_enable_assert=$enableval
25694 if test "x$enableval" = xno
25695 then :
25696
25697 printf "%s\n" "#define NDEBUG 1" >>confdefs.h
25698
25699 elif test "x$enableval" != xyes
25700 then :
25701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
25702 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
25703 ac_enable_assert=yes
25704 fi
25705 else case e in #(
25706 e) ac_enable_assert=yes ;;
25707 esac
25708 fi
25709
25710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
25711 printf "%s\n" "$ac_enable_assert" >&6; }
25712
25713 ac_header_dirent=no
25714 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25715 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
25716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25717 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
25718 if eval test \${$as_ac_Header+y}
25719 then :
25720 printf %s "(cached) " >&6
25721 else case e in #(
25722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25723 /* end confdefs.h. */
25724 #include <sys/types.h>
25725 #include <$ac_hdr>
25726
25727 int
25728 main (void)
25729 {
25730 if ((DIR *) 0)
25731 return 0;
25732 ;
25733 return 0;
25734 }
25735 _ACEOF
25736 if ac_fn_c_try_compile "$LINENO"
25737 then :
25738 eval "$as_ac_Header=yes"
25739 else case e in #(
25740 e) eval "$as_ac_Header=no" ;;
25741 esac
25742 fi
25743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25744 esac
25745 fi
25746 eval ac_res=\$$as_ac_Header
25747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25748 printf "%s\n" "$ac_res" >&6; }
25749 if eval test \"x\$"$as_ac_Header"\" = x"yes"
25750 then :
25751 cat >>confdefs.h <<_ACEOF
25752 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
25753 _ACEOF
25754
25755 ac_header_dirent=$ac_hdr; break
25756 fi
25757
25758 done
25759 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25760 if test $ac_header_dirent = dirent.h; then
25761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25762 printf %s "checking for library containing opendir... " >&6; }
25763 if test ${ac_cv_search_opendir+y}
25764 then :
25765 printf %s "(cached) " >&6
25766 else case e in #(
25767 e) ac_func_search_save_LIBS=$LIBS
25768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25769 /* end confdefs.h. */
25770
25771 /* Override any GCC internal prototype to avoid an error.
25772 Use char because int might match the return type of a GCC
25773 builtin and then its argument prototype would still apply.
25774 The 'extern "C"' is for builds by C++ compilers;
25775 although this is not generally supported in C code supporting it here
25776 has little cost and some practical benefit (sr 110532). */
25777 #ifdef __cplusplus
25778 extern "C"
25779 #endif
25780 char opendir (void);
25781 int
25782 main (void)
25783 {
25784 return opendir ();
25785 ;
25786 return 0;
25787 }
25788 _ACEOF
25789 for ac_lib in '' dir
25790 do
25791 if test -z "$ac_lib"; then
25792 ac_res="none required"
25793 else
25794 ac_res=-l$ac_lib
25795 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25796 fi
25797 if ac_fn_c_try_link "$LINENO"
25798 then :
25799 ac_cv_search_opendir=$ac_res
25800 fi
25801 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25802 conftest$ac_exeext
25803 if test ${ac_cv_search_opendir+y}
25804 then :
25805 break
25806 fi
25807 done
25808 if test ${ac_cv_search_opendir+y}
25809 then :
25810
25811 else case e in #(
25812 e) ac_cv_search_opendir=no ;;
25813 esac
25814 fi
25815 rm conftest.$ac_ext
25816 LIBS=$ac_func_search_save_LIBS ;;
25817 esac
25818 fi
25819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25820 printf "%s\n" "$ac_cv_search_opendir" >&6; }
25821 ac_res=$ac_cv_search_opendir
25822 if test "$ac_res" != no
25823 then :
25824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25825
25826 fi
25827
25828 else
25829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25830 printf %s "checking for library containing opendir... " >&6; }
25831 if test ${ac_cv_search_opendir+y}
25832 then :
25833 printf %s "(cached) " >&6
25834 else case e in #(
25835 e) ac_func_search_save_LIBS=$LIBS
25836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25837 /* end confdefs.h. */
25838
25839 /* Override any GCC internal prototype to avoid an error.
25840 Use char because int might match the return type of a GCC
25841 builtin and then its argument prototype would still apply.
25842 The 'extern "C"' is for builds by C++ compilers;
25843 although this is not generally supported in C code supporting it here
25844 has little cost and some practical benefit (sr 110532). */
25845 #ifdef __cplusplus
25846 extern "C"
25847 #endif
25848 char opendir (void);
25849 int
25850 main (void)
25851 {
25852 return opendir ();
25853 ;
25854 return 0;
25855 }
25856 _ACEOF
25857 for ac_lib in '' x
25858 do
25859 if test -z "$ac_lib"; then
25860 ac_res="none required"
25861 else
25862 ac_res=-l$ac_lib
25863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25864 fi
25865 if ac_fn_c_try_link "$LINENO"
25866 then :
25867 ac_cv_search_opendir=$ac_res
25868 fi
25869 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25870 conftest$ac_exeext
25871 if test ${ac_cv_search_opendir+y}
25872 then :
25873 break
25874 fi
25875 done
25876 if test ${ac_cv_search_opendir+y}
25877 then :
25878
25879 else case e in #(
25880 e) ac_cv_search_opendir=no ;;
25881 esac
25882 fi
25883 rm conftest.$ac_ext
25884 LIBS=$ac_func_search_save_LIBS ;;
25885 esac
25886 fi
25887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25888 printf "%s\n" "$ac_cv_search_opendir" >&6; }
25889 ac_res=$ac_cv_search_opendir
25890 if test "$ac_res" != no
25891 then :
25892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25893
25894 fi
25895
25896 fi
25897
25898
25899 # Check additional headers
25900 ac_fn_c_check_header_compile "$LINENO" "arm/limits.h" "ac_cv_header_arm_limits_h" "$ac_includes_default"
25901 if test "x$ac_cv_header_arm_limits_h" = xyes
25902 then :
25903 printf "%s\n" "#define HAVE_ARM_LIMITS_H 1" >>confdefs.h
25904
25905 fi
25906 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
25907 if test "x$ac_cv_header_arpa_inet_h" = xyes
25908 then :
25909 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
25910
25911 fi
25912 ac_fn_c_check_header_compile "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
25913 if test "x$ac_cv_header_complex_h" = xyes
25914 then :
25915 printf "%s\n" "#define HAVE_COMPLEX_H 1" >>confdefs.h
25916
25917 fi
25918 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
25919 if test "x$ac_cv_header_errno_h" = xyes
25920 then :
25921 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
25922
25923 fi
25924 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
25925 if test "x$ac_cv_header_fcntl_h" = xyes
25926 then :
25927 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
25928
25929 fi
25930 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
25931 if test "x$ac_cv_header_float_h" = xyes
25932 then :
25933 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
25934
25935 fi
25936 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
25937 if test "x$ac_cv_header_inttypes_h" = xyes
25938 then :
25939 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
25940
25941 fi
25942 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
25943 if test "x$ac_cv_header_limits_h" = xyes
25944 then :
25945 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
25946
25947 fi
25948 ac_fn_c_check_header_compile "$LINENO" "linux/unistd.h" "ac_cv_header_linux_unistd_h" "$ac_includes_default"
25949 if test "x$ac_cv_header_linux_unistd_h" = xyes
25950 then :
25951 printf "%s\n" "#define HAVE_LINUX_UNISTD_H 1" >>confdefs.h
25952
25953 fi
25954 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
25955 if test "x$ac_cv_header_locale_h" = xyes
25956 then :
25957 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
25958
25959 fi
25960 ac_fn_c_check_header_compile "$LINENO" "machine/param.h" "ac_cv_header_machine_param_h" "$ac_includes_default"
25961 if test "x$ac_cv_header_machine_param_h" = xyes
25962 then :
25963 printf "%s\n" "#define HAVE_MACHINE_PARAM_H 1" >>confdefs.h
25964
25965 fi
25966 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
25967 if test "x$ac_cv_header_mach_o_dyld_h" = xyes
25968 then :
25969 printf "%s\n" "#define HAVE_MACH_O_DYLD_H 1" >>confdefs.h
25970
25971 fi
25972 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
25973 if test "x$ac_cv_header_malloc_h" = xyes
25974 then :
25975 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
25976
25977 fi
25978 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
25979 if test "x$ac_cv_header_netdb_h" = xyes
25980 then :
25981 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
25982
25983 fi
25984 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
25985 if test "x$ac_cv_header_netinet_in_h" = xyes
25986 then :
25987 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
25988
25989 fi
25990 ac_fn_c_check_header_compile "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
25991 if test "x$ac_cv_header_OS_h" = xyes
25992 then :
25993 printf "%s\n" "#define HAVE_OS_H 1" >>confdefs.h
25994
25995 fi
25996 ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default"
25997 if test "x$ac_cv_header_process_h" = xyes
25998 then :
25999 printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h
26000
26001 fi
26002 ac_fn_c_check_header_compile "$LINENO" "sun_prefetch.h" "ac_cv_header_sun_prefetch_h" "$ac_includes_default"
26003 if test "x$ac_cv_header_sun_prefetch_h" = xyes
26004 then :
26005 printf "%s\n" "#define HAVE_SUN_PREFETCH_H 1" >>confdefs.h
26006
26007 fi
26008 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
26009 if test "x$ac_cv_header_stdarg_h" = xyes
26010 then :
26011 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
26012
26013 fi
26014 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
26015 if test "x$ac_cv_header_stddef_h" = xyes
26016 then :
26017 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
26018
26019 fi
26020 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
26021 if test "x$ac_cv_header_stdint_h" = xyes
26022 then :
26023 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
26024
26025 fi
26026 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
26027 if test "x$ac_cv_header_strings_h" = xyes
26028 then :
26029 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
26030
26031 fi
26032 ac_fn_c_check_header_compile "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
26033 if test "x$ac_cv_header_sys_ipc_h" = xyes
26034 then :
26035 printf "%s\n" "#define HAVE_SYS_IPC_H 1" >>confdefs.h
26036
26037 fi
26038 ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
26039 if test "x$ac_cv_header_sys_loadavg_h" = xyes
26040 then :
26041 printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h
26042
26043 fi
26044 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
26045 if test "x$ac_cv_header_sys_mman_h" = xyes
26046 then :
26047 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
26048
26049 fi
26050 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
26051 if test "x$ac_cv_header_sys_resource_h" = xyes
26052 then :
26053 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
26054
26055 fi
26056 ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default"
26057 if test "x$ac_cv_header_sys_sendfile_h" = xyes
26058 then :
26059 printf "%s\n" "#define HAVE_SYS_SENDFILE_H 1" >>confdefs.h
26060
26061 fi
26062 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
26063 if test "x$ac_cv_header_sys_socket_h" = xyes
26064 then :
26065 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
26066
26067 fi
26068 ac_fn_c_check_header_compile "$LINENO" "sys/syslimits.h" "ac_cv_header_sys_syslimits_h" "$ac_includes_default"
26069 if test "x$ac_cv_header_sys_syslimits_h" = xyes
26070 then :
26071 printf "%s\n" "#define HAVE_SYS_SYSLIMITS_H 1" >>confdefs.h
26072
26073 fi
26074 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
26075 if test "x$ac_cv_header_sys_time_h" = xyes
26076 then :
26077 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
26078
26079 fi
26080 ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
26081 if test "x$ac_cv_header_sys_times_h" = xyes
26082 then :
26083 printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h
26084
26085 fi
26086 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
26087 if test "x$ac_cv_header_sys_uio_h" = xyes
26088 then :
26089 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
26090
26091 fi
26092 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
26093 if test "x$ac_cv_header_unistd_h" = xyes
26094 then :
26095 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
26096
26097 fi
26098 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
26099 if test "x$ac_cv_header_sys_wait_h" = xyes
26100 then :
26101 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26102
26103 fi
26104 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
26105 if test "x$ac_cv_header_utime_h" = xyes
26106 then :
26107 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
26108
26109 fi
26110 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
26111 if test "x$ac_cv_header_wchar_h" = xyes
26112 then :
26113 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
26114
26115 fi
26116 ac_fn_c_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
26117 if test "x$ac_cv_header_xlocale_h" = xyes
26118 then :
26119 printf "%s\n" "#define HAVE_XLOCALE_H 1" >>confdefs.h
26120
26121 fi
26122
26123
26124 ########
26125 #
26126 # Checks for typedefs, structures, and compiler characteristics.
26127 #
26128 ########
26129
26130 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
26131 if test "x$ac_cv_type__Bool" = xyes
26132 then :
26133
26134 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
26135
26136
26137 fi
26138
26139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
26140 printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
26141 if test ${ac_cv_header_stdbool_h+y}
26142 then :
26143 printf %s "(cached) " >&6
26144 else case e in #(
26145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26146 /* end confdefs.h. */
26147 #include <stdbool.h>
26148
26149 /* "true" and "false" should be usable in #if expressions and
26150 integer constant expressions, and "bool" should be a valid
26151 type name.
26152
26153 Although C99 requires bool, true, and false to be macros,
26154 C23 and C++11 overrule that, so do not test for that.
26155 Although C99 requires __bool_true_false_are_defined and
26156 _Bool, C23 says they are obsolescent, so do not require
26157 them. */
26158
26159 #if !true
26160 #error "'true' is not true"
26161 #endif
26162 #if true != 1
26163 #error "'true' is not equal to 1"
26164 #endif
26165 char b[true == 1 ? 1 : -1];
26166 char c[true];
26167
26168 #if false
26169 #error "'false' is not false"
26170 #endif
26171 #if false != 0
26172 #error "'false' is not equal to 0"
26173 #endif
26174 char d[false == 0 ? 1 : -1];
26175
26176 enum { e = false, f = true, g = false * true, h = true * 256 };
26177
26178 char i[(bool) 0.5 == true ? 1 : -1];
26179 char j[(bool) 0.0 == false ? 1 : -1];
26180 char k[sizeof (bool) > 0 ? 1 : -1];
26181
26182 struct sb { bool s: 1; bool t; } s;
26183 char l[sizeof s.t > 0 ? 1 : -1];
26184
26185 /* The following fails for
26186 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
26187 bool m[h];
26188 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
26189 char o[-1 - (bool) 0 < 0 ? 1 : -1];
26190 /* Catch a bug in an HP-UX C compiler. See
26191 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
26192 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
26193 */
26194 bool p = true;
26195 bool *pp = &p;
26196
26197 int
26198 main (void)
26199 {
26200
26201 bool ps = &s;
26202 *pp |= p;
26203 *pp |= ! p;
26204
26205 /* Refer to every declared value, so they cannot be
26206 discarded as unused. */
26207 return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
26208 + !l + !m + !n + !o + !p + !pp + !ps);
26209
26210 ;
26211 return 0;
26212 }
26213 _ACEOF
26214 if ac_fn_c_try_compile "$LINENO"
26215 then :
26216 ac_cv_header_stdbool_h=yes
26217 else case e in #(
26218 e) ac_cv_header_stdbool_h=no ;;
26219 esac
26220 fi
26221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26222 esac
26223 fi
26224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
26225 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
26226
26227 if test $ac_cv_header_stdbool_h = yes; then
26228
26229 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
26230
26231 fi
26232
26233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
26234 printf %s "checking for working volatile... " >&6; }
26235 if test ${ac_cv_c_volatile+y}
26236 then :
26237 printf %s "(cached) " >&6
26238 else case e in #(
26239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26240 /* end confdefs.h. */
26241
26242 int
26243 main (void)
26244 {
26245
26246 volatile int x;
26247 int * volatile y = (int *) 0;
26248 return !x && !y;
26249 ;
26250 return 0;
26251 }
26252 _ACEOF
26253 if ac_fn_c_try_compile "$LINENO"
26254 then :
26255 ac_cv_c_volatile=yes
26256 else case e in #(
26257 e) ac_cv_c_volatile=no ;;
26258 esac
26259 fi
26260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26261 esac
26262 fi
26263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
26264 printf "%s\n" "$ac_cv_c_volatile" >&6; }
26265 if test $ac_cv_c_volatile = no; then
26266
26267 printf "%s\n" "#define volatile /**/" >>confdefs.h
26268
26269 fi
26270
26271
26272 if test "$ac_prog_cc_stdc" != no; then
26273
26274 printf "%s\n" "#define HAVE_STRINGIZE 1" >>confdefs.h
26275
26276 fi
26277
26278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26279 printf %s "checking whether stat file-mode macros are broken... " >&6; }
26280 if test ${ac_cv_header_stat_broken+y}
26281 then :
26282 printf %s "(cached) " >&6
26283 else case e in #(
26284 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26285 /* end confdefs.h. */
26286 #include <sys/types.h>
26287 #include <sys/stat.h>
26288
26289 #if defined S_ISBLK && defined S_IFDIR
26290 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26291 #endif
26292
26293 #if defined S_ISBLK && defined S_IFCHR
26294 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26295 #endif
26296
26297 #if defined S_ISLNK && defined S_IFREG
26298 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26299 #endif
26300
26301 #if defined S_ISSOCK && defined S_IFREG
26302 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26303 #endif
26304
26305 _ACEOF
26306 if ac_fn_c_try_compile "$LINENO"
26307 then :
26308 ac_cv_header_stat_broken=no
26309 else case e in #(
26310 e) ac_cv_header_stat_broken=yes ;;
26311 esac
26312 fi
26313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26314 esac
26315 fi
26316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26317 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
26318 if test $ac_cv_header_stat_broken = yes; then
26319
26320 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26321
26322 fi
26323
26324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26325 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26326 if test ${ac_cv_struct_tm+y}
26327 then :
26328 printf %s "(cached) " >&6
26329 else case e in #(
26330 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26331 /* end confdefs.h. */
26332 #include <sys/types.h>
26333 #include <time.h>
26334
26335 int
26336 main (void)
26337 {
26338 struct tm tm;
26339 int *p = &tm.tm_sec;
26340 return !p;
26341 ;
26342 return 0;
26343 }
26344 _ACEOF
26345 if ac_fn_c_try_compile "$LINENO"
26346 then :
26347 ac_cv_struct_tm=time.h
26348 else case e in #(
26349 e) ac_cv_struct_tm=sys/time.h ;;
26350 esac
26351 fi
26352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26353 esac
26354 fi
26355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26356 printf "%s\n" "$ac_cv_struct_tm" >&6; }
26357 if test $ac_cv_struct_tm = sys/time.h; then
26358
26359 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
26360
26361 fi
26362
26363 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26364 #include <$ac_cv_struct_tm>
26365
26366 "
26367 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
26368 then :
26369
26370 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
26371
26372
26373 fi
26374
26375 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26376
26377 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
26378
26379 else
26380 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26381 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26382 if test "x$ac_cv_have_decl_tzname" = xyes
26383 then :
26384 ac_have_decl=1
26385 else case e in #(
26386 e) ac_have_decl=0 ;;
26387 esac
26388 fi
26389 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
26390
26391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26392 printf %s "checking for tzname... " >&6; }
26393 if test ${ac_cv_var_tzname+y}
26394 then :
26395 printf %s "(cached) " >&6
26396 else case e in #(
26397 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26398 /* end confdefs.h. */
26399 #include <time.h>
26400 #if !HAVE_DECL_TZNAME
26401 extern char *tzname[];
26402 #endif
26403
26404 int
26405 main (void)
26406 {
26407 return tzname[0][0];
26408 ;
26409 return 0;
26410 }
26411 _ACEOF
26412 if ac_fn_c_try_link "$LINENO"
26413 then :
26414 ac_cv_var_tzname=yes
26415 else case e in #(
26416 e) ac_cv_var_tzname=no ;;
26417 esac
26418 fi
26419 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26420 conftest$ac_exeext conftest.$ac_ext ;;
26421 esac
26422 fi
26423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26424 printf "%s\n" "$ac_cv_var_tzname" >&6; }
26425 if test $ac_cv_var_tzname = yes; then
26426
26427 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
26428
26429 fi
26430 fi
26431
26432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
26433 printf %s "checking whether #! works in shell scripts... " >&6; }
26434 if test ${ac_cv_sys_interpreter+y}
26435 then :
26436 printf %s "(cached) " >&6
26437 else case e in #(
26438 e) echo '#! /bin/cat
26439 exit 69
26440 ' >conftest
26441 chmod u+x conftest
26442 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
26443 if test $? -ne 69; then
26444 ac_cv_sys_interpreter=yes
26445 else
26446 ac_cv_sys_interpreter=no
26447 fi
26448 rm -f conftest ;;
26449 esac
26450 fi
26451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
26452 printf "%s\n" "$ac_cv_sys_interpreter" >&6; }
26453 interpval=$ac_cv_sys_interpreter
26454
26455
26456 #
26457 # Checks for language qualifiers and semantics.
26458 #
26459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
26460 printf %s "checking whether char is unsigned... " >&6; }
26461 if test ${ac_cv_c_char_unsigned+y}
26462 then :
26463 printf %s "(cached) " >&6
26464 else case e in #(
26465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26466 /* end confdefs.h. */
26467 $ac_includes_default
26468 int
26469 main (void)
26470 {
26471 static int test_array [1 - 2 * !(((char) -1) < 0)];
26472 test_array [0] = 0;
26473 return test_array [0];
26474
26475 ;
26476 return 0;
26477 }
26478 _ACEOF
26479 if ac_fn_c_try_compile "$LINENO"
26480 then :
26481 ac_cv_c_char_unsigned=no
26482 else case e in #(
26483 e) ac_cv_c_char_unsigned=yes ;;
26484 esac
26485 fi
26486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26487 esac
26488 fi
26489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
26490 printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
26491 if test $ac_cv_c_char_unsigned = yes; then
26492 printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
26493
26494 fi
26495
26496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26497 printf %s "checking for an ANSI C-conforming const... " >&6; }
26498 if test ${ac_cv_c_const+y}
26499 then :
26500 printf %s "(cached) " >&6
26501 else case e in #(
26502 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26503 /* end confdefs.h. */
26504
26505 int
26506 main (void)
26507 {
26508
26509 #ifndef __cplusplus
26510 /* Ultrix mips cc rejects this sort of thing. */
26511 typedef int charset[2];
26512 const charset cs = { 0, 0 };
26513 /* SunOS 4.1.1 cc rejects this. */
26514 char const *const *pcpcc;
26515 char **ppc;
26516 /* NEC SVR4.0.2 mips cc rejects this. */
26517 struct point {int x, y;};
26518 static struct point const zero = {0,0};
26519 /* IBM XL C 1.02.0.0 rejects this.
26520 It does not let you subtract one const X* pointer from another in
26521 an arm of an if-expression whose if-part is not a constant
26522 expression */
26523 const char *g = "string";
26524 pcpcc = &g + (g ? g-g : 0);
26525 /* HPUX 7.0 cc rejects these. */
26526 ++pcpcc;
26527 ppc = (char**) pcpcc;
26528 pcpcc = (char const *const *) ppc;
26529 { /* SCO 3.2v4 cc rejects this sort of thing. */
26530 char tx;
26531 char *t = &tx;
26532 char const *s = 0 ? (char *) 0 : (char const *) 0;
26533
26534 *t++ = 0;
26535 if (s) return 0;
26536 }
26537 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26538 int x[] = {25, 17};
26539 const int *foo = &x[0];
26540 ++foo;
26541 }
26542 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26543 typedef const int *iptr;
26544 iptr p = 0;
26545 ++p;
26546 }
26547 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
26548 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26549 struct s { int j; const int *ap[3]; } bx;
26550 struct s *b = &bx; b->j = 5;
26551 }
26552 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26553 const int foo = 10;
26554 if (!foo) return 0;
26555 }
26556 return !cs[0] && !zero.x;
26557 #endif
26558
26559 ;
26560 return 0;
26561 }
26562 _ACEOF
26563 if ac_fn_c_try_compile "$LINENO"
26564 then :
26565 ac_cv_c_const=yes
26566 else case e in #(
26567 e) ac_cv_c_const=no ;;
26568 esac
26569 fi
26570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26571 esac
26572 fi
26573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26574 printf "%s\n" "$ac_cv_c_const" >&6; }
26575 if test $ac_cv_c_const = no; then
26576
26577 printf "%s\n" "#define const /**/" >>confdefs.h
26578
26579 fi
26580
26581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
26582 printf %s "checking for inline... " >&6; }
26583 if test ${ac_cv_c_inline+y}
26584 then :
26585 printf %s "(cached) " >&6
26586 else case e in #(
26587 e) ac_cv_c_inline=no
26588 for ac_kw in inline __inline__ __inline; do
26589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26590 /* end confdefs.h. */
26591 #ifndef __cplusplus
26592 typedef int foo_t;
26593 static $ac_kw foo_t static_foo (void) {return 0; }
26594 $ac_kw foo_t foo (void) {return 0; }
26595 #endif
26596
26597 _ACEOF
26598 if ac_fn_c_try_compile "$LINENO"
26599 then :
26600 ac_cv_c_inline=$ac_kw
26601 fi
26602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26603 test "$ac_cv_c_inline" != no && break
26604 done
26605 ;;
26606 esac
26607 fi
26608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
26609 printf "%s\n" "$ac_cv_c_inline" >&6; }
26610
26611 case $ac_cv_c_inline in
26612 inline | yes) ;;
26613 *)
26614 case $ac_cv_c_inline in
26615 no) ac_val=;;
26616 *) ac_val=$ac_cv_c_inline;;
26617 esac
26618 cat >>confdefs.h <<_ACEOF
26619 #ifndef __cplusplus
26620 #define inline $ac_val
26621 #endif
26622 _ACEOF
26623 ;;
26624 esac
26625
26626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
26627 printf %s "checking for C/C++ restrict keyword... " >&6; }
26628 if test ${ac_cv_c_restrict+y}
26629 then :
26630 printf %s "(cached) " >&6
26631 else case e in #(
26632 e) ac_cv_c_restrict=no
26633 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
26634 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
26635 # Put 'restrict' last, because C++ lacks it.
26636 for ac_kw in __restrict__ __restrict _Restrict restrict; do
26637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26638 /* end confdefs.h. */
26639 typedef int *int_ptr;
26640 int foo (int_ptr $ac_kw ip) { return ip[0]; }
26641 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
26642 int bar (int ip[$ac_kw]) { return ip[0]; }
26643
26644 int
26645 main (void)
26646 {
26647 int s[1];
26648 int *$ac_kw t = s;
26649 t[0] = 0;
26650 return foo (t) + bar (t);
26651
26652 ;
26653 return 0;
26654 }
26655 _ACEOF
26656 if ac_fn_c_try_compile "$LINENO"
26657 then :
26658 ac_cv_c_restrict=$ac_kw
26659 fi
26660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26661 test "$ac_cv_c_restrict" != no && break
26662 done
26663 ;;
26664 esac
26665 fi
26666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
26667 printf "%s\n" "$ac_cv_c_restrict" >&6; }
26668
26669 case $ac_cv_c_restrict in
26670 restrict) ;;
26671 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
26672 ;;
26673 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
26674 ;;
26675 esac
26676
26677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
26678 printf %s "checking for working volatile... " >&6; }
26679 if test ${ac_cv_c_volatile+y}
26680 then :
26681 printf %s "(cached) " >&6
26682 else case e in #(
26683 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26684 /* end confdefs.h. */
26685
26686 int
26687 main (void)
26688 {
26689
26690 volatile int x;
26691 int * volatile y = (int *) 0;
26692 return !x && !y;
26693 ;
26694 return 0;
26695 }
26696 _ACEOF
26697 if ac_fn_c_try_compile "$LINENO"
26698 then :
26699 ac_cv_c_volatile=yes
26700 else case e in #(
26701 e) ac_cv_c_volatile=no ;;
26702 esac
26703 fi
26704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26705 esac
26706 fi
26707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
26708 printf "%s\n" "$ac_cv_c_volatile" >&6; }
26709 if test $ac_cv_c_volatile = no; then
26710
26711 printf "%s\n" "#define volatile /**/" >>confdefs.h
26712
26713 fi
26714
26715
26716 # If words are stored with the most significant byte first (like
26717 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
26718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26719 printf %s "checking whether byte ordering is bigendian... " >&6; }
26720 if test ${ac_cv_c_bigendian+y}
26721 then :
26722 printf %s "(cached) " >&6
26723 else case e in #(
26724 e) ac_cv_c_bigendian=unknown
26725 # See if we're dealing with a universal compiler.
26726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26727 /* end confdefs.h. */
26728 #ifndef __APPLE_CC__
26729 not a universal capable compiler
26730 #endif
26731 typedef int dummy;
26732
26733 _ACEOF
26734 if ac_fn_c_try_compile "$LINENO"
26735 then :
26736
26737 # Check for potential -arch flags. It is not universal unless
26738 # there are at least two -arch flags with different values.
26739 ac_arch=
26740 ac_prev=
26741 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26742 if test -n "$ac_prev"; then
26743 case $ac_word in
26744 i?86 | x86_64 | ppc | ppc64)
26745 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26746 ac_arch=$ac_word
26747 else
26748 ac_cv_c_bigendian=universal
26749 break
26750 fi
26751 ;;
26752 esac
26753 ac_prev=
26754 elif test "x$ac_word" = "x-arch"; then
26755 ac_prev=arch
26756 fi
26757 done
26758 fi
26759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26760 if test $ac_cv_c_bigendian = unknown; then
26761 # See if sys/param.h defines the BYTE_ORDER macro.
26762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26763 /* end confdefs.h. */
26764 #include <sys/types.h>
26765 #include <sys/param.h>
26766
26767 int
26768 main (void)
26769 {
26770 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
26771 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
26772 && LITTLE_ENDIAN)
26773 bogus endian macros
26774 #endif
26775
26776 ;
26777 return 0;
26778 }
26779 _ACEOF
26780 if ac_fn_c_try_compile "$LINENO"
26781 then :
26782 # It does; now see whether it defined to BIG_ENDIAN or not.
26783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26784 /* end confdefs.h. */
26785 #include <sys/types.h>
26786 #include <sys/param.h>
26787
26788 int
26789 main (void)
26790 {
26791 #if BYTE_ORDER != BIG_ENDIAN
26792 not big endian
26793 #endif
26794
26795 ;
26796 return 0;
26797 }
26798 _ACEOF
26799 if ac_fn_c_try_compile "$LINENO"
26800 then :
26801 ac_cv_c_bigendian=yes
26802 else case e in #(
26803 e) ac_cv_c_bigendian=no ;;
26804 esac
26805 fi
26806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26807 fi
26808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26809 fi
26810 if test $ac_cv_c_bigendian = unknown; then
26811 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26813 /* end confdefs.h. */
26814 #include <limits.h>
26815
26816 int
26817 main (void)
26818 {
26819 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26820 bogus endian macros
26821 #endif
26822
26823 ;
26824 return 0;
26825 }
26826 _ACEOF
26827 if ac_fn_c_try_compile "$LINENO"
26828 then :
26829 # It does; now see whether it defined to _BIG_ENDIAN or not.
26830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26831 /* end confdefs.h. */
26832 #include <limits.h>
26833
26834 int
26835 main (void)
26836 {
26837 #ifndef _BIG_ENDIAN
26838 not big endian
26839 #endif
26840
26841 ;
26842 return 0;
26843 }
26844 _ACEOF
26845 if ac_fn_c_try_compile "$LINENO"
26846 then :
26847 ac_cv_c_bigendian=yes
26848 else case e in #(
26849 e) ac_cv_c_bigendian=no ;;
26850 esac
26851 fi
26852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26853 fi
26854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26855 fi
26856 if test $ac_cv_c_bigendian = unknown; then
26857 # Compile a test program.
26858 if test "$cross_compiling" = yes
26859 then :
26860 # Try to guess by grepping values from an object file.
26861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26862 /* end confdefs.h. */
26863 unsigned short int ascii_mm[] =
26864 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26865 unsigned short int ascii_ii[] =
26866 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26867 int use_ascii (int i) {
26868 return ascii_mm[i] + ascii_ii[i];
26869 }
26870 unsigned short int ebcdic_ii[] =
26871 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26872 unsigned short int ebcdic_mm[] =
26873 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26874 int use_ebcdic (int i) {
26875 return ebcdic_mm[i] + ebcdic_ii[i];
26876 }
26877 int
26878 main (int argc, char **argv)
26879 {
26880 /* Intimidate the compiler so that it does not
26881 optimize the arrays away. */
26882 char *p = argv[0];
26883 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
26884 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
26885 return use_ascii (argc) == use_ebcdic (*p);
26886 }
26887 _ACEOF
26888 if ac_fn_c_try_link "$LINENO"
26889 then :
26890 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
26891 ac_cv_c_bigendian=yes
26892 fi
26893 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
26894 if test "$ac_cv_c_bigendian" = unknown; then
26895 ac_cv_c_bigendian=no
26896 else
26897 # finding both strings is unlikely to happen, but who knows?
26898 ac_cv_c_bigendian=unknown
26899 fi
26900 fi
26901 fi
26902 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26903 conftest$ac_exeext conftest.$ac_ext
26904 else case e in #(
26905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26906 /* end confdefs.h. */
26907 $ac_includes_default
26908 int
26909 main (void)
26910 {
26911
26912 /* Are we little or big endian? From Harbison&Steele. */
26913 union
26914 {
26915 long int l;
26916 char c[sizeof (long int)];
26917 } u;
26918 u.l = 1;
26919 return u.c[sizeof (long int) - 1] == 1;
26920
26921 ;
26922 return 0;
26923 }
26924 _ACEOF
26925 if ac_fn_c_try_run "$LINENO"
26926 then :
26927 ac_cv_c_bigendian=no
26928 else case e in #(
26929 e) ac_cv_c_bigendian=yes ;;
26930 esac
26931 fi
26932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26933 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26934 esac
26935 fi
26936
26937 fi ;;
26938 esac
26939 fi
26940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26941 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
26942 case $ac_cv_c_bigendian in #(
26943 yes)
26944 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
26945 ;; #(
26946 no)
26947 ;; #(
26948 universal)
26949
26950 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26951
26952 ;; #(
26953 *)
26954 as_fn_error $? "unknown endianness
26955 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26956 esac
26957
26958
26959 # Define to a suitable type, if standard headers do not define it.
26960 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
26961 case $ac_cv_c_int8_t in #(
26962 no|yes) ;; #(
26963 *)
26964
26965 printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
26966 ;;
26967 esac
26968
26969 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
26970 case $ac_cv_c_int16_t in #(
26971 no|yes) ;; #(
26972 *)
26973
26974 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
26975 ;;
26976 esac
26977
26978 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
26979 case $ac_cv_c_int32_t in #(
26980 no|yes) ;; #(
26981 *)
26982
26983 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
26984 ;;
26985 esac
26986
26987 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
26988 case $ac_cv_c_int64_t in #(
26989 no|yes) ;; #(
26990 *)
26991
26992 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
26993 ;;
26994 esac
26995
26996
26997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
26998 printf %s "checking for unsigned long long int... " >&6; }
26999 if test ${ac_cv_type_unsigned_long_long_int+y}
27000 then :
27001 printf %s "(cached) " >&6
27002 else case e in #(
27003 e) ac_cv_type_unsigned_long_long_int=yes
27004 case $ac_prog_cc_stdc in
27005 no | c89) ;;
27006 *)
27007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27008 /* end confdefs.h. */
27009
27010 /* For now, do not test the preprocessor; as of 2007 there are too many
27011 implementations with broken preprocessors. Perhaps this can
27012 be revisited in 2012. In the meantime, code should not expect
27013 #if to work with literals wider than 32 bits. */
27014 /* Test literals. */
27015 long long int ll = 9223372036854775807ll;
27016 long long int nll = -9223372036854775807LL;
27017 unsigned long long int ull = 18446744073709551615ULL;
27018 /* Test constant expressions. */
27019 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
27020 ? 1 : -1)];
27021 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
27022 ? 1 : -1)];
27023 int i = 63;
27024 int
27025 main (void)
27026 {
27027 /* Test availability of runtime routines for shift and division. */
27028 long long int llmax = 9223372036854775807ll;
27029 unsigned long long int ullmax = 18446744073709551615ull;
27030 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
27031 | (llmax / ll) | (llmax % ll)
27032 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
27033 | (ullmax / ull) | (ullmax % ull));
27034 ;
27035 return 0;
27036 }
27037
27038 _ACEOF
27039 if ac_fn_c_try_link "$LINENO"
27040 then :
27041
27042 else case e in #(
27043 e) ac_cv_type_unsigned_long_long_int=no ;;
27044 esac
27045 fi
27046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27047 conftest$ac_exeext conftest.$ac_ext;;
27048 esac ;;
27049 esac
27050 fi
27051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
27052 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
27053 if test $ac_cv_type_unsigned_long_long_int = yes; then
27054
27055 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
27056
27057 fi
27058
27059
27060
27061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
27062 printf %s "checking for long long int... " >&6; }
27063 if test ${ac_cv_type_long_long_int+y}
27064 then :
27065 printf %s "(cached) " >&6
27066 else case e in #(
27067 e) ac_cv_type_long_long_int=yes
27068 case $ac_prog_cc_stdc in
27069 no | c89) ;;
27070 *)
27071 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
27072 if test $ac_cv_type_long_long_int = yes; then
27073 if test "$cross_compiling" = yes
27074 then :
27075 :
27076 else case e in #(
27077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27078 /* end confdefs.h. */
27079 #include <limits.h>
27080 #ifndef LLONG_MAX
27081 # define HALF \\
27082 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
27083 # define LLONG_MAX (HALF - 1 + HALF)
27084 #endif
27085 int
27086 main (void)
27087 {
27088 long long int n = 1;
27089 int i;
27090 for (i = 0; ; i++)
27091 {
27092 long long int m = n << i;
27093 if (m >> i != n)
27094 return 1;
27095 if (LLONG_MAX / 2 < m)
27096 break;
27097 }
27098 return 0;
27099 ;
27100 return 0;
27101 }
27102 _ACEOF
27103 if ac_fn_c_try_run "$LINENO"
27104 then :
27105
27106 else case e in #(
27107 e) ac_cv_type_long_long_int=no ;;
27108 esac
27109 fi
27110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27111 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
27112 esac
27113 fi
27114
27115 fi;;
27116 esac ;;
27117 esac
27118 fi
27119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
27120 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
27121 if test $ac_cv_type_long_long_int = yes; then
27122
27123 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
27124
27125 fi
27126
27127
27128
27129 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
27130 if test "x$ac_cv_type_intmax_t" = xyes
27131 then :
27132
27133 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
27134
27135 else case e in #(
27136 e) test $ac_cv_type_long_long_int = yes \
27137 && ac_type='long long int' \
27138 || ac_type='long int'
27139
27140 printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
27141 ;;
27142 esac
27143 fi
27144
27145
27146
27147 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27148 if test "x$ac_cv_type_intptr_t" = xyes
27149 then :
27150
27151 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
27152
27153 else case e in #(
27154 e) for ac_type in 'int' 'long int' 'long long int'; do
27155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27156 /* end confdefs.h. */
27157 $ac_includes_default
27158 int
27159 main (void)
27160 {
27161 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27162 test_array [0] = 0;
27163 return test_array [0];
27164
27165 ;
27166 return 0;
27167 }
27168 _ACEOF
27169 if ac_fn_c_try_compile "$LINENO"
27170 then :
27171
27172 printf "%s\n" "#define intptr_t $ac_type" >>confdefs.h
27173
27174 ac_type=
27175 fi
27176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27177 test -z "$ac_type" && break
27178 done ;;
27179 esac
27180 fi
27181
27182
27183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
27184 printf %s "checking for mbstate_t... " >&6; }
27185 if test ${ac_cv_type_mbstate_t+y}
27186 then :
27187 printf %s "(cached) " >&6
27188 else case e in #(
27189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27190 /* end confdefs.h. */
27191 $ac_includes_default
27192 # include <wchar.h>
27193 int
27194 main (void)
27195 {
27196 mbstate_t x; return sizeof x;
27197 ;
27198 return 0;
27199 }
27200 _ACEOF
27201 if ac_fn_c_try_compile "$LINENO"
27202 then :
27203 ac_cv_type_mbstate_t=yes
27204 else case e in #(
27205 e) ac_cv_type_mbstate_t=no ;;
27206 esac
27207 fi
27208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
27209 esac
27210 fi
27211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
27212 printf "%s\n" "$ac_cv_type_mbstate_t" >&6; }
27213 if test $ac_cv_type_mbstate_t = yes; then
27214
27215 printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h
27216
27217 else
27218
27219 printf "%s\n" "#define mbstate_t int" >>confdefs.h
27220
27221 fi
27222 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27223 if test "x$ac_cv_type_mode_t" = xyes
27224 then :
27225
27226 else case e in #(
27227 e)
27228 printf "%s\n" "#define mode_t int" >>confdefs.h
27229 ;;
27230 esac
27231 fi
27232
27233 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27234 if test "x$ac_cv_type_off_t" = xyes
27235 then :
27236
27237 else case e in #(
27238 e)
27239 printf "%s\n" "#define off_t long int" >>confdefs.h
27240 ;;
27241 esac
27242 fi
27243
27244
27245 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
27246 "
27247 if test "x$ac_cv_type_pid_t" = xyes
27248 then :
27249
27250 else case e in #(
27251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27252 /* end confdefs.h. */
27253
27254 #if defined _WIN64 && !defined __CYGWIN__
27255 LLP64
27256 #endif
27257
27258 int
27259 main (void)
27260 {
27261
27262 ;
27263 return 0;
27264 }
27265
27266 _ACEOF
27267 if ac_fn_c_try_compile "$LINENO"
27268 then :
27269 ac_pid_type='int'
27270 else case e in #(
27271 e) ac_pid_type='__int64' ;;
27272 esac
27273 fi
27274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27275
27276 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
27277
27278 ;;
27279 esac
27280 fi
27281
27282
27283 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27284 if test "x$ac_cv_type_size_t" = xyes
27285 then :
27286
27287 else case e in #(
27288 e)
27289 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
27290 ;;
27291 esac
27292 fi
27293
27294 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27295 if test "x$ac_cv_type_ssize_t" = xyes
27296 then :
27297
27298 else case e in #(
27299 e)
27300 printf "%s\n" "#define ssize_t int" >>confdefs.h
27301 ;;
27302 esac
27303 fi
27304
27305 ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
27306 if test "x$ac_cv_type_uid_t" = xyes
27307 then :
27308
27309 else case e in #(
27310 e)
27311 printf "%s\n" "#define uid_t int" >>confdefs.h
27312 ;;
27313 esac
27314 fi
27315
27316 ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
27317 if test "x$ac_cv_type_gid_t" = xyes
27318 then :
27319
27320 else case e in #(
27321 e)
27322 printf "%s\n" "#define gid_t int" >>confdefs.h
27323 ;;
27324 esac
27325 fi
27326
27327 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
27328 case $ac_cv_c_uint8_t in #(
27329 no|yes) ;; #(
27330 *)
27331
27332 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
27333
27334
27335 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
27336 ;;
27337 esac
27338
27339 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
27340 case $ac_cv_c_uint16_t in #(
27341 no|yes) ;; #(
27342 *)
27343
27344
27345 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
27346 ;;
27347 esac
27348
27349 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
27350 case $ac_cv_c_uint32_t in #(
27351 no|yes) ;; #(
27352 *)
27353
27354 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
27355
27356
27357 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
27358 ;;
27359 esac
27360
27361 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
27362 case $ac_cv_c_uint64_t in #(
27363 no|yes) ;; #(
27364 *)
27365
27366 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
27367
27368
27369 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
27370 ;;
27371 esac
27372
27373
27374
27375 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
27376 if test "x$ac_cv_type_uintmax_t" = xyes
27377 then :
27378
27379 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
27380
27381 else case e in #(
27382 e) test $ac_cv_type_unsigned_long_long_int = yes \
27383 && ac_type='unsigned long long int' \
27384 || ac_type='unsigned long int'
27385
27386 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
27387 ;;
27388 esac
27389 fi
27390
27391
27392
27393 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27394 if test "x$ac_cv_type_uintptr_t" = xyes
27395 then :
27396
27397 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
27398
27399 else case e in #(
27400 e) for ac_type in 'unsigned int' 'unsigned long int' \
27401 'unsigned long long int'; do
27402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27403 /* end confdefs.h. */
27404 $ac_includes_default
27405 int
27406 main (void)
27407 {
27408 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27409 test_array [0] = 0;
27410 return test_array [0];
27411
27412 ;
27413 return 0;
27414 }
27415 _ACEOF
27416 if ac_fn_c_try_compile "$LINENO"
27417 then :
27418
27419 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
27420
27421 ac_type=
27422 fi
27423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27424 test -z "$ac_type" && break
27425 done ;;
27426 esac
27427 fi
27428
27429
27430
27431 # Float_t and double_t are intended to be the most efficient type.
27432 # The cast to long int works around a bug in the HP C Compiler
27433 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27434 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
27435 # This bug is HP SR number 8606223364.
27436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
27437 printf %s "checking size of float_t... " >&6; }
27438 if test ${ac_cv_sizeof_float_t+y}
27439 then :
27440 printf %s "(cached) " >&6
27441 else case e in #(
27442 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
27443 "
27444 then :
27445
27446 else case e in #(
27447 e) if test "$ac_cv_type_float_t" = yes; then
27448 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27449 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27450 as_fn_error 77 "cannot compute sizeof (float_t)
27451 See 'config.log' for more details" "$LINENO" 5; }
27452 else
27453 ac_cv_sizeof_float_t=0
27454 fi ;;
27455 esac
27456 fi
27457 ;;
27458 esac
27459 fi
27460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
27461 printf "%s\n" "$ac_cv_sizeof_float_t" >&6; }
27462
27463
27464
27465 printf "%s\n" "#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t" >>confdefs.h
27466
27467
27468 # The cast to long int works around a bug in the HP C Compiler
27469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27470 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
27471 # This bug is HP SR number 8606223364.
27472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
27473 printf %s "checking size of double_t... " >&6; }
27474 if test ${ac_cv_sizeof_double_t+y}
27475 then :
27476 printf %s "(cached) " >&6
27477 else case e in #(
27478 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
27479 "
27480 then :
27481
27482 else case e in #(
27483 e) if test "$ac_cv_type_double_t" = yes; then
27484 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27485 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27486 as_fn_error 77 "cannot compute sizeof (double_t)
27487 See 'config.log' for more details" "$LINENO" 5; }
27488 else
27489 ac_cv_sizeof_double_t=0
27490 fi ;;
27491 esac
27492 fi
27493 ;;
27494 esac
27495 fi
27496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
27497 printf "%s\n" "$ac_cv_sizeof_double_t" >&6; }
27498
27499
27500
27501 printf "%s\n" "#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t" >>confdefs.h
27502
27503
27504
27505 # Get size of float, double and long double for comparison.
27506 # The cast to long int works around a bug in the HP C Compiler
27507 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27508 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
27509 # This bug is HP SR number 8606223364.
27510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
27511 printf %s "checking size of float... " >&6; }
27512 if test ${ac_cv_sizeof_float+y}
27513 then :
27514 printf %s "(cached) " >&6
27515 else case e in #(
27516 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"
27517 then :
27518
27519 else case e in #(
27520 e) if test "$ac_cv_type_float" = yes; then
27521 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27522 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27523 as_fn_error 77 "cannot compute sizeof (float)
27524 See 'config.log' for more details" "$LINENO" 5; }
27525 else
27526 ac_cv_sizeof_float=0
27527 fi ;;
27528 esac
27529 fi
27530 ;;
27531 esac
27532 fi
27533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
27534 printf "%s\n" "$ac_cv_sizeof_float" >&6; }
27535
27536
27537
27538 printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h
27539
27540
27541 # The cast to long int works around a bug in the HP C Compiler
27542 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27543 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
27544 # This bug is HP SR number 8606223364.
27545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
27546 printf %s "checking size of double... " >&6; }
27547 if test ${ac_cv_sizeof_double+y}
27548 then :
27549 printf %s "(cached) " >&6
27550 else case e in #(
27551 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"
27552 then :
27553
27554 else case e in #(
27555 e) if test "$ac_cv_type_double" = yes; then
27556 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27557 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27558 as_fn_error 77 "cannot compute sizeof (double)
27559 See 'config.log' for more details" "$LINENO" 5; }
27560 else
27561 ac_cv_sizeof_double=0
27562 fi ;;
27563 esac
27564 fi
27565 ;;
27566 esac
27567 fi
27568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
27569 printf "%s\n" "$ac_cv_sizeof_double" >&6; }
27570
27571
27572
27573 printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h
27574
27575
27576 # The cast to long int works around a bug in the HP C Compiler
27577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27578 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
27579 # This bug is HP SR number 8606223364.
27580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
27581 printf %s "checking size of long double... " >&6; }
27582 if test ${ac_cv_sizeof_long_double+y}
27583 then :
27584 printf %s "(cached) " >&6
27585 else case e in #(
27586 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"
27587 then :
27588
27589 else case e in #(
27590 e) if test "$ac_cv_type_long_double" = yes; then
27591 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27592 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27593 as_fn_error 77 "cannot compute sizeof (long double)
27594 See 'config.log' for more details" "$LINENO" 5; }
27595 else
27596 ac_cv_sizeof_long_double=0
27597 fi ;;
27598 esac
27599 fi
27600 ;;
27601 esac
27602 fi
27603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
27604 printf "%s\n" "$ac_cv_sizeof_long_double" >&6; }
27605
27606
27607
27608 printf "%s\n" "#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double" >>confdefs.h
27609
27610
27611
27612 # Obtain size of a 'unsigned long long' and define as
27613 # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
27614 # supported then the value defined is zero.
27615 # The cast to long int works around a bug in the HP C Compiler
27616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27617 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
27618 # This bug is HP SR number 8606223364.
27619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
27620 printf %s "checking size of unsigned long long... " >&6; }
27621 if test ${ac_cv_sizeof_unsigned_long_long+y}
27622 then :
27623 printf %s "(cached) " >&6
27624 else case e in #(
27625 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"
27626 then :
27627
27628 else case e in #(
27629 e) if test "$ac_cv_type_unsigned_long_long" = yes; then
27630 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27631 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27632 as_fn_error 77 "cannot compute sizeof (unsigned long long)
27633 See 'config.log' for more details" "$LINENO" 5; }
27634 else
27635 ac_cv_sizeof_unsigned_long_long=0
27636 fi ;;
27637 esac
27638 fi
27639 ;;
27640 esac
27641 fi
27642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
27643 printf "%s\n" "$ac_cv_sizeof_unsigned_long_long" >&6; }
27644
27645
27646
27647 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long" >>confdefs.h
27648
27649
27650 # The cast to long int works around a bug in the HP C Compiler
27651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27652 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
27653 # This bug is HP SR number 8606223364.
27654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
27655 printf %s "checking size of size_t... " >&6; }
27656 if test ${ac_cv_sizeof_size_t+y}
27657 then :
27658 printf %s "(cached) " >&6
27659 else case e in #(
27660 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"
27661 then :
27662
27663 else case e in #(
27664 e) if test "$ac_cv_type_size_t" = yes; then
27665 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27666 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27667 as_fn_error 77 "cannot compute sizeof (size_t)
27668 See 'config.log' for more details" "$LINENO" 5; }
27669 else
27670 ac_cv_sizeof_size_t=0
27671 fi ;;
27672 esac
27673 fi
27674 ;;
27675 esac
27676 fi
27677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
27678 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
27679
27680
27681
27682 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
27683
27684
27685
27686 # The cast to long int works around a bug in the HP C Compiler
27687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27688 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
27689 # This bug is HP SR number 8606223364.
27690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
27691 printf %s "checking size of void *... " >&6; }
27692 if test ${ac_cv_sizeof_void_p+y}
27693 then :
27694 printf %s "(cached) " >&6
27695 else case e in #(
27696 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
27697 then :
27698
27699 else case e in #(
27700 e) if test "$ac_cv_type_void_p" = yes; then
27701 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27702 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27703 as_fn_error 77 "cannot compute sizeof (void *)
27704 See 'config.log' for more details" "$LINENO" 5; }
27705 else
27706 ac_cv_sizeof_void_p=0
27707 fi ;;
27708 esac
27709 fi
27710 ;;
27711 esac
27712 fi
27713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
27714 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
27715
27716
27717
27718 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
27719
27720
27721
27722 #
27723 # Check for __func__ support
27724 #
27725 ########
27726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
27727 printf %s "checking whether our compiler supports __func__... " >&6; }
27728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27729 /* end confdefs.h. */
27730
27731 int
27732 main (void)
27733 {
27734 { const char *func = __func__; return(func != 0 ? 0 : 1); }
27735 ;
27736 return 0;
27737 }
27738 _ACEOF
27739 if ac_fn_c_try_compile "$LINENO"
27740 then :
27741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27742 printf "%s\n" "yes" >&6; }
27743 else case e in #(
27744 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27745 printf "%s\n" "no" >&6; }
27746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
27747 printf %s "checking whether our compiler supports __FUNCTION__... " >&6; }
27748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27749 /* end confdefs.h. */
27750
27751 int
27752 main (void)
27753 {
27754 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
27755 ;
27756 return 0;
27757 }
27758 _ACEOF
27759 if ac_fn_c_try_compile "$LINENO"
27760 then :
27761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27762 printf "%s\n" "yes" >&6; }
27763
27764 printf "%s\n" "#define __func__ __FUNCTION__" >>confdefs.h
27765
27766 else case e in #(
27767 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27768 printf "%s\n" "no" >&6; }
27769
27770 printf "%s\n" "#define __func__ __FILE__" >>confdefs.h
27771 ;;
27772 esac
27773 fi
27774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
27775 esac
27776 fi
27777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27778
27779 ########
27780 #
27781 # Check for functions
27782 #
27783 ########
27784
27785 ac_func=
27786 for ac_item in $ac_func_c_list
27787 do
27788 if test $ac_func; then
27789 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
27790 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
27791 echo "#define $ac_item 1" >> confdefs.h
27792 fi
27793 ac_func=
27794 else
27795 ac_func=$ac_item
27796 fi
27797 done
27798
27799
27800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
27801 printf %s "checking for working mmap... " >&6; }
27802 if test ${ac_cv_func_mmap_fixed_mapped+y}
27803 then :
27804 printf %s "(cached) " >&6
27805 else case e in #(
27806 e) if test "$cross_compiling" = yes
27807 then :
27808 case "$host_os" in # ((
27809 # Guess yes on platforms where we know the result.
27810 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
27811 # If we don't know, assume the worst.
27812 *) ac_cv_func_mmap_fixed_mapped=no ;;
27813 esac
27814 else case e in #(
27815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27816 /* end confdefs.h. */
27817 $ac_includes_default
27818 /* malloc might have been renamed as rpl_malloc. */
27819 #undef malloc
27820
27821 /* Thanks to Mike Haertel and Jim Avera for this test.
27822 Here is a matrix of mmap possibilities:
27823 mmap private not fixed
27824 mmap private fixed at somewhere currently unmapped
27825 mmap private fixed at somewhere already mapped
27826 mmap shared not fixed
27827 mmap shared fixed at somewhere currently unmapped
27828 mmap shared fixed at somewhere already mapped
27829 For private mappings, we should verify that changes cannot be read()
27830 back from the file, nor mmap's back from the file at a different
27831 address. (There have been systems where private was not correctly
27832 implemented like the infamous i386 svr4.0, and systems where the
27833 VM page cache was not coherent with the file system buffer cache
27834 like early versions of FreeBSD and possibly contemporary NetBSD.)
27835 For shared mappings, we should conversely verify that changes get
27836 propagated back to all the places they're supposed to be. */
27837
27838 #include <fcntl.h>
27839 #include <sys/mman.h>
27840
27841 #ifndef getpagesize
27842 /* Prefer sysconf to the legacy getpagesize function, as getpagesize has
27843 been removed from POSIX and is limited to page sizes that fit in 'int'. */
27844 # ifdef _SC_PAGESIZE
27845 # define getpagesize() sysconf (_SC_PAGESIZE)
27846 # elif defined _SC_PAGE_SIZE
27847 # define getpagesize() sysconf (_SC_PAGE_SIZE)
27848 # elif HAVE_GETPAGESIZE
27849 int getpagesize ();
27850 # else
27851 # ifdef HAVE_SYS_PARAM_H
27852 # include <sys/param.h>
27853 # ifdef EXEC_PAGESIZE
27854 # define getpagesize() EXEC_PAGESIZE
27855 # else /* no EXEC_PAGESIZE */
27856 # ifdef NBPG
27857 # define getpagesize() NBPG * CLSIZE
27858 # ifndef CLSIZE
27859 # define CLSIZE 1
27860 # endif /* no CLSIZE */
27861 # else /* no NBPG */
27862 # ifdef NBPC
27863 # define getpagesize() NBPC
27864 # else /* no NBPC */
27865 # ifdef PAGESIZE
27866 # define getpagesize() PAGESIZE
27867 # endif /* PAGESIZE */
27868 # endif /* no NBPC */
27869 # endif /* no NBPG */
27870 # endif /* no EXEC_PAGESIZE */
27871 # else /* no HAVE_SYS_PARAM_H */
27872 # define getpagesize() 8192 /* punt totally */
27873 # endif /* no HAVE_SYS_PARAM_H */
27874 # endif
27875 #endif
27876
27877 int
27878 main (void)
27879 {
27880 char *data, *data2, *data3;
27881 const char *cdata2;
27882 long i, pagesize;
27883 int fd, fd2;
27884
27885 pagesize = getpagesize ();
27886
27887 /* First, make a file with some known garbage in it. */
27888 data = (char *) malloc (pagesize);
27889 if (!data)
27890 return 1;
27891 for (i = 0; i < pagesize; ++i)
27892 *(data + i) = rand ();
27893 umask (0);
27894 fd = creat ("conftest.mmap", 0600);
27895 if (fd < 0)
27896 return 2;
27897 if (write (fd, data, pagesize) != pagesize)
27898 return 3;
27899 close (fd);
27900
27901 /* Next, check that the tail of a page is zero-filled. File must have
27902 non-zero length, otherwise we risk SIGBUS for entire page. */
27903 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
27904 if (fd2 < 0)
27905 return 4;
27906 cdata2 = "";
27907 if (write (fd2, cdata2, 1) != 1)
27908 return 5;
27909 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
27910 if (data2 == MAP_FAILED)
27911 return 6;
27912 for (i = 0; i < pagesize; ++i)
27913 if (*(data2 + i))
27914 return 7;
27915 close (fd2);
27916 /* 'return 8;' not currently used. */
27917
27918 /* Next, try to mmap the file at a fixed address which already has
27919 something else allocated at it. If we can, also make sure that
27920 we see the same garbage. */
27921 fd = open ("conftest.mmap", O_RDWR);
27922 if (fd < 0)
27923 return 9;
27924 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
27925 MAP_PRIVATE | MAP_FIXED, fd, 0L))
27926 return 10;
27927 for (i = 0; i < pagesize; ++i)
27928 if (*(data + i) != *(data2 + i))
27929 return 11;
27930
27931 /* Finally, make sure that changes to the mapped area do not
27932 percolate back to the file as seen by read(). (This is a bug on
27933 some variants of i386 svr4.0.) */
27934 for (i = 0; i < pagesize; ++i)
27935 *(data2 + i) = *(data2 + i) + 1;
27936 data3 = (char *) malloc (pagesize);
27937 if (!data3)
27938 return 12;
27939 if (read (fd, data3, pagesize) != pagesize)
27940 return 13;
27941 for (i = 0; i < pagesize; ++i)
27942 if (*(data + i) != *(data3 + i))
27943 return 14;
27944 close (fd);
27945 free (data);
27946 free (data3);
27947 return 0;
27948 }
27949 _ACEOF
27950 if ac_fn_c_try_run "$LINENO"
27951 then :
27952 ac_cv_func_mmap_fixed_mapped=yes
27953 else case e in #(
27954 e) ac_cv_func_mmap_fixed_mapped=no ;;
27955 esac
27956 fi
27957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27958 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
27959 esac
27960 fi
27961 ;;
27962 esac
27963 fi
27964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
27965 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
27966 if test $ac_cv_func_mmap_fixed_mapped = yes; then
27967
27968 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
27969
27970 fi
27971 rm -f conftest.mmap conftest.txt
27972
27973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
27974 printf %s "checking for working strtod... " >&6; }
27975 if test ${ac_cv_func_strtod+y}
27976 then :
27977 printf %s "(cached) " >&6
27978 else case e in #(
27979 e) if test "$cross_compiling" = yes
27980 then :
27981 ac_cv_func_strtod=no
27982 else case e in #(
27983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27984 /* end confdefs.h. */
27985
27986 $ac_includes_default
27987 int
27988 main (void)
27989 {
27990 {
27991 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
27992 char *string = " +69";
27993 char *term;
27994 double value;
27995 value = strtod (string, &term);
27996 if (value != 69 || term != (string + 4))
27997 return 1;
27998 }
27999
28000 {
28001 /* Under Solaris 2.4, strtod returns the wrong value for the
28002 terminating character under some conditions. */
28003 char *string = "NaN";
28004 char *term;
28005 strtod (string, &term);
28006 if (term != string && *(term - 1) == 0)
28007 return 1;
28008 }
28009 return 0;
28010 }
28011
28012 _ACEOF
28013 if ac_fn_c_try_run "$LINENO"
28014 then :
28015 ac_cv_func_strtod=yes
28016 else case e in #(
28017 e) ac_cv_func_strtod=no ;;
28018 esac
28019 fi
28020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28021 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28022 esac
28023 fi
28024 ;;
28025 esac
28026 fi
28027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
28028 printf "%s\n" "$ac_cv_func_strtod" >&6; }
28029 if test $ac_cv_func_strtod = no; then
28030 case " $LIBOBJS " in
28031 *" strtod.$ac_objext "* ) ;;
28032 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
28033 ;;
28034 esac
28035
28036 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
28037 if test "x$ac_cv_func_pow" = xyes
28038 then :
28039
28040 fi
28041
28042 if test $ac_cv_func_pow = no; then
28043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
28044 printf %s "checking for pow in -lm... " >&6; }
28045 if test ${ac_cv_lib_m_pow+y}
28046 then :
28047 printf %s "(cached) " >&6
28048 else case e in #(
28049 e) ac_check_lib_save_LIBS=$LIBS
28050 LIBS="-lm $LIBS"
28051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28052 /* end confdefs.h. */
28053
28054 /* Override any GCC internal prototype to avoid an error.
28055 Use char because int might match the return type of a GCC
28056 builtin and then its argument prototype would still apply.
28057 The 'extern "C"' is for builds by C++ compilers;
28058 although this is not generally supported in C code supporting it here
28059 has little cost and some practical benefit (sr 110532). */
28060 #ifdef __cplusplus
28061 extern "C"
28062 #endif
28063 char pow (void);
28064 int
28065 main (void)
28066 {
28067 return pow ();
28068 ;
28069 return 0;
28070 }
28071 _ACEOF
28072 if ac_fn_c_try_link "$LINENO"
28073 then :
28074 ac_cv_lib_m_pow=yes
28075 else case e in #(
28076 e) ac_cv_lib_m_pow=no ;;
28077 esac
28078 fi
28079 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28080 conftest$ac_exeext conftest.$ac_ext
28081 LIBS=$ac_check_lib_save_LIBS ;;
28082 esac
28083 fi
28084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
28085 printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
28086 if test "x$ac_cv_lib_m_pow" = xyes
28087 then :
28088 POW_LIB=-lm
28089 else case e in #(
28090 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
28091 printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;} ;;
28092 esac
28093 fi
28094
28095 fi
28096
28097 fi
28098
28099 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
28100 if test "x$ac_cv_have_decl_strerror_r" = xyes
28101 then :
28102 ac_have_decl=1
28103 else case e in #(
28104 e) ac_have_decl=0 ;;
28105 esac
28106 fi
28107 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
28108
28109
28110 if test $ac_cv_have_decl_strerror_r = yes; then
28111 # For backward compatibility's sake, define HAVE_STRERROR_R.
28112 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
28113 # as AC_CHECK_DECLS_ONCE.)
28114
28115 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
28116
28117 fi
28118
28119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
28120 printf %s "checking whether strerror_r returns char *... " >&6; }
28121 if test ${ac_cv_func_strerror_r_char_p+y}
28122 then :
28123 printf %s "(cached) " >&6
28124 else case e in #(
28125 e)
28126 ac_cv_func_strerror_r_char_p=no
28127 if test $ac_cv_have_decl_strerror_r = yes; then
28128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28129 /* end confdefs.h. */
28130 #include <string.h>
28131 int
28132 main (void)
28133 {
28134
28135 char buf[100];
28136 char x = *strerror_r (0, buf, sizeof buf);
28137 char *p = strerror_r (0, buf, sizeof buf);
28138 return !p || x;
28139
28140 ;
28141 return 0;
28142 }
28143 _ACEOF
28144 if ac_fn_c_try_compile "$LINENO"
28145 then :
28146 ac_cv_func_strerror_r_char_p=yes
28147 fi
28148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28149
28150 fi
28151 ;;
28152 esac
28153 fi
28154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
28155 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
28156 if test $ac_cv_func_strerror_r_char_p = yes; then
28157
28158 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
28159
28160 fi
28161
28162
28163 #
28164 # Find math library
28165 #
28166 MATH_LIBS=''
28167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
28168 printf %s "checking for sqrt in -lm... " >&6; }
28169 if test ${ac_cv_lib_m_sqrt+y}
28170 then :
28171 printf %s "(cached) " >&6
28172 else case e in #(
28173 e) ac_check_lib_save_LIBS=$LIBS
28174 LIBS="-lm $LIBS"
28175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28176 /* end confdefs.h. */
28177
28178 /* Override any GCC internal prototype to avoid an error.
28179 Use char because int might match the return type of a GCC
28180 builtin and then its argument prototype would still apply.
28181 The 'extern "C"' is for builds by C++ compilers;
28182 although this is not generally supported in C code supporting it here
28183 has little cost and some practical benefit (sr 110532). */
28184 #ifdef __cplusplus
28185 extern "C"
28186 #endif
28187 char sqrt (void);
28188 int
28189 main (void)
28190 {
28191 return sqrt ();
28192 ;
28193 return 0;
28194 }
28195 _ACEOF
28196 if ac_fn_c_try_link "$LINENO"
28197 then :
28198 ac_cv_lib_m_sqrt=yes
28199 else case e in #(
28200 e) ac_cv_lib_m_sqrt=no ;;
28201 esac
28202 fi
28203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28204 conftest$ac_exeext conftest.$ac_ext
28205 LIBS=$ac_check_lib_save_LIBS ;;
28206 esac
28207 fi
28208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
28209 printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; }
28210 if test "x$ac_cv_lib_m_sqrt" = xyes
28211 then :
28212 MATH_LIBS="-lm"
28213 fi
28214
28215 LIBS="$MATH_LIBS $LIBS"
28216
28217
28218 #
28219 # Find socket library
28220 #
28221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
28222 printf %s "checking for library containing gethostbyname... " >&6; }
28223 if test ${ac_cv_search_gethostbyname+y}
28224 then :
28225 printf %s "(cached) " >&6
28226 else case e in #(
28227 e) ac_func_search_save_LIBS=$LIBS
28228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28229 /* end confdefs.h. */
28230
28231 /* Override any GCC internal prototype to avoid an error.
28232 Use char because int might match the return type of a GCC
28233 builtin and then its argument prototype would still apply.
28234 The 'extern "C"' is for builds by C++ compilers;
28235 although this is not generally supported in C code supporting it here
28236 has little cost and some practical benefit (sr 110532). */
28237 #ifdef __cplusplus
28238 extern "C"
28239 #endif
28240 char gethostbyname (void);
28241 int
28242 main (void)
28243 {
28244 return gethostbyname ();
28245 ;
28246 return 0;
28247 }
28248 _ACEOF
28249 for ac_lib in '' resolv nsl
28250 do
28251 if test -z "$ac_lib"; then
28252 ac_res="none required"
28253 else
28254 ac_res=-l$ac_lib
28255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28256 fi
28257 if ac_fn_c_try_link "$LINENO"
28258 then :
28259 ac_cv_search_gethostbyname=$ac_res
28260 fi
28261 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28262 conftest$ac_exeext
28263 if test ${ac_cv_search_gethostbyname+y}
28264 then :
28265 break
28266 fi
28267 done
28268 if test ${ac_cv_search_gethostbyname+y}
28269 then :
28270
28271 else case e in #(
28272 e) ac_cv_search_gethostbyname=no ;;
28273 esac
28274 fi
28275 rm conftest.$ac_ext
28276 LIBS=$ac_func_search_save_LIBS ;;
28277 esac
28278 fi
28279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
28280 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
28281 ac_res=$ac_cv_search_gethostbyname
28282 if test "$ac_res" != no
28283 then :
28284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28285
28286 fi
28287
28288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
28289 printf %s "checking for library containing socket... " >&6; }
28290 if test ${ac_cv_search_socket+y}
28291 then :
28292 printf %s "(cached) " >&6
28293 else case e in #(
28294 e) ac_func_search_save_LIBS=$LIBS
28295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28296 /* end confdefs.h. */
28297
28298 /* Override any GCC internal prototype to avoid an error.
28299 Use char because int might match the return type of a GCC
28300 builtin and then its argument prototype would still apply.
28301 The 'extern "C"' is for builds by C++ compilers;
28302 although this is not generally supported in C code supporting it here
28303 has little cost and some practical benefit (sr 110532). */
28304 #ifdef __cplusplus
28305 extern "C"
28306 #endif
28307 char socket (void);
28308 int
28309 main (void)
28310 {
28311 return socket ();
28312 ;
28313 return 0;
28314 }
28315 _ACEOF
28316 for ac_lib in '' socket
28317 do
28318 if test -z "$ac_lib"; then
28319 ac_res="none required"
28320 else
28321 ac_res=-l$ac_lib
28322 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28323 fi
28324 if ac_fn_c_try_link "$LINENO"
28325 then :
28326 ac_cv_search_socket=$ac_res
28327 fi
28328 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28329 conftest$ac_exeext
28330 if test ${ac_cv_search_socket+y}
28331 then :
28332 break
28333 fi
28334 done
28335 if test ${ac_cv_search_socket+y}
28336 then :
28337
28338 else case e in #(
28339 e) ac_cv_search_socket=no ;;
28340 esac
28341 fi
28342 rm conftest.$ac_ext
28343 LIBS=$ac_func_search_save_LIBS ;;
28344 esac
28345 fi
28346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
28347 printf "%s\n" "$ac_cv_search_socket" >&6; }
28348 ac_res=$ac_cv_search_socket
28349 if test "$ac_res" != no
28350 then :
28351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28352
28353
28354 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
28355
28356
28357 fi
28358
28359
28360 #
28361 # Check for clock_gettime().
28362 #
28363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
28364 printf %s "checking for library containing clock_gettime... " >&6; }
28365 if test ${ac_cv_search_clock_gettime+y}
28366 then :
28367 printf %s "(cached) " >&6
28368 else case e in #(
28369 e) ac_func_search_save_LIBS=$LIBS
28370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28371 /* end confdefs.h. */
28372
28373 /* Override any GCC internal prototype to avoid an error.
28374 Use char because int might match the return type of a GCC
28375 builtin and then its argument prototype would still apply.
28376 The 'extern "C"' is for builds by C++ compilers;
28377 although this is not generally supported in C code supporting it here
28378 has little cost and some practical benefit (sr 110532). */
28379 #ifdef __cplusplus
28380 extern "C"
28381 #endif
28382 char clock_gettime (void);
28383 int
28384 main (void)
28385 {
28386 return clock_gettime ();
28387 ;
28388 return 0;
28389 }
28390 _ACEOF
28391 for ac_lib in '' rt
28392 do
28393 if test -z "$ac_lib"; then
28394 ac_res="none required"
28395 else
28396 ac_res=-l$ac_lib
28397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28398 fi
28399 if ac_fn_c_try_link "$LINENO"
28400 then :
28401 ac_cv_search_clock_gettime=$ac_res
28402 fi
28403 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28404 conftest$ac_exeext
28405 if test ${ac_cv_search_clock_gettime+y}
28406 then :
28407 break
28408 fi
28409 done
28410 if test ${ac_cv_search_clock_gettime+y}
28411 then :
28412
28413 else case e in #(
28414 e) ac_cv_search_clock_gettime=no ;;
28415 esac
28416 fi
28417 rm conftest.$ac_ext
28418 LIBS=$ac_func_search_save_LIBS ;;
28419 esac
28420 fi
28421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
28422 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
28423 ac_res=$ac_cv_search_clock_gettime
28424 if test "$ac_res" != no
28425 then :
28426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28427
28428
28429 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
28430
28431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
28432 printf %s "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
28433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28434 /* end confdefs.h. */
28435
28436 #include <time.h>
28437 int
28438 main (void)
28439 {
28440 clockid_t clockType = CLOCK_REALTIME;
28441 ;
28442 return 0;
28443 }
28444 _ACEOF
28445 if ac_fn_c_try_compile "$LINENO"
28446 then :
28447
28448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28449 printf "%s\n" "yes" >&6; }
28450
28451 printf "%s\n" "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
28452
28453
28454 else case e in #(
28455 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28456 printf "%s\n" "no" >&6; }
28457 ;;
28458 esac
28459 fi
28460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28461
28462 else case e in #(
28463 e)
28464
28465 for ac_func in gettimeofday ftime
28466 do :
28467 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
28468 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28469 if eval test \"x\$"$as_ac_var"\" = x"yes"
28470 then :
28471 cat >>confdefs.h <<_ACEOF
28472 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
28473 _ACEOF
28474 break
28475 fi
28476
28477 done
28478
28479 ;;
28480 esac
28481 fi
28482
28483
28484 ########
28485 #
28486 # Check for function prototypes
28487 #
28488 ########
28489
28490 ac_fn_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
28491 #include <unistd.h>
28492 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28493 if test "x$ac_cv_have_decl_pread" = xyes
28494 then :
28495 ac_have_decl=1
28496 else case e in #(
28497 e) ac_have_decl=0 ;;
28498 esac
28499 fi
28500 printf "%s\n" "#define HAVE_DECL_PREAD $ac_have_decl" >>confdefs.h
28501 ac_fn_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
28502 #include <unistd.h>
28503 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28504 if test "x$ac_cv_have_decl_pwrite" = xyes
28505 then :
28506 ac_have_decl=1
28507 else case e in #(
28508 e) ac_have_decl=0 ;;
28509 esac
28510 fi
28511 printf "%s\n" "#define HAVE_DECL_PWRITE $ac_have_decl" >>confdefs.h
28512
28513
28514 ac_fn_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
28515 #include <strings.h>
28516 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28517 if test "x$ac_cv_have_decl_strlcpy" = xyes
28518 then :
28519 ac_have_decl=1
28520 else case e in #(
28521 e) ac_have_decl=0 ;;
28522 esac
28523 fi
28524 printf "%s\n" "#define HAVE_DECL_STRLCPY $ac_have_decl" >>confdefs.h
28525
28526
28527 ac_fn_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
28528 #include <stdio.h>
28529 #include <stdarg.h>
28530 " "$ac_c_undeclared_builtin_options" "CFLAGS"
28531 if test "x$ac_cv_have_decl_vsnprintf" = xyes
28532 then :
28533 ac_have_decl=1
28534 else case e in #(
28535 e) ac_have_decl=0 ;;
28536 esac
28537 fi
28538 printf "%s\n" "#define HAVE_DECL_VSNPRINTF $ac_have_decl" >>confdefs.h
28539
28540
28541 ########
28542 #
28543 # C++ Support Tests (For Magick++)
28544 #
28545 ########
28546 have_magick_plus_plus='no'
28547 if test "$with_magick_plus_plus" = 'yes'; then
28548 OLIBS="$LIBS"
28549 LIBS=''
28550 ac_ext=cpp
28551 ac_cpp='$CXXCPP $CPPFLAGS'
28552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28555
28556
28557 # Full set of headers used...
28558 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
28559 # functional iomanip iosfwd iostream iterator list string strstream utility
28560 ac_ext=cpp
28561 ac_cpp='$CXXCPP $CPPFLAGS'
28562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28565
28566 ac_ext=cpp
28567 ac_cpp='$CXXCPP $CPPFLAGS'
28568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28571 if test -z "$CXX"; then
28572 if test -n "$CCC"; then
28573 CXX=$CCC
28574 else
28575 if test -n "$ac_tool_prefix"; then
28576 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
28577 do
28578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
28580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28581 printf %s "checking for $ac_word... " >&6; }
28582 if test ${ac_cv_prog_CXX+y}
28583 then :
28584 printf %s "(cached) " >&6
28585 else case e in #(
28586 e) if test -n "$CXX"; then
28587 ac_cv_prog_CXX="$CXX" # Let the user override the test.
28588 else
28589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28590 for as_dir in $PATH
28591 do
28592 IFS=$as_save_IFS
28593 case $as_dir in #(((
28594 '') as_dir=./ ;;
28595 */) ;;
28596 *) as_dir=$as_dir/ ;;
28597 esac
28598 for ac_exec_ext in '' $ac_executable_extensions; do
28599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28600 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
28601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28602 break 2
28603 fi
28604 done
28605 done
28606 IFS=$as_save_IFS
28607
28608 fi ;;
28609 esac
28610 fi
28611 CXX=$ac_cv_prog_CXX
28612 if test -n "$CXX"; then
28613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
28614 printf "%s\n" "$CXX" >&6; }
28615 else
28616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28617 printf "%s\n" "no" >&6; }
28618 fi
28619
28620
28621 test -n "$CXX" && break
28622 done
28623 fi
28624 if test -z "$CXX"; then
28625 ac_ct_CXX=$CXX
28626 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
28627 do
28628 # Extract the first word of "$ac_prog", so it can be a program name with args.
28629 set dummy $ac_prog; ac_word=$2
28630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28631 printf %s "checking for $ac_word... " >&6; }
28632 if test ${ac_cv_prog_ac_ct_CXX+y}
28633 then :
28634 printf %s "(cached) " >&6
28635 else case e in #(
28636 e) if test -n "$ac_ct_CXX"; then
28637 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
28638 else
28639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28640 for as_dir in $PATH
28641 do
28642 IFS=$as_save_IFS
28643 case $as_dir in #(((
28644 '') as_dir=./ ;;
28645 */) ;;
28646 *) as_dir=$as_dir/ ;;
28647 esac
28648 for ac_exec_ext in '' $ac_executable_extensions; do
28649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28650 ac_cv_prog_ac_ct_CXX="$ac_prog"
28651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28652 break 2
28653 fi
28654 done
28655 done
28656 IFS=$as_save_IFS
28657
28658 fi ;;
28659 esac
28660 fi
28661 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
28662 if test -n "$ac_ct_CXX"; then
28663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
28664 printf "%s\n" "$ac_ct_CXX" >&6; }
28665 else
28666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28667 printf "%s\n" "no" >&6; }
28668 fi
28669
28670
28671 test -n "$ac_ct_CXX" && break
28672 done
28673
28674 if test "x$ac_ct_CXX" = x; then
28675 CXX="g++"
28676 else
28677 case $cross_compiling:$ac_tool_warned in
28678 yes:)
28679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28680 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28681 ac_tool_warned=yes ;;
28682 esac
28683 CXX=$ac_ct_CXX
28684 fi
28685 fi
28686
28687 fi
28688 fi
28689 # Provide some information about the compiler.
28690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
28691 set X $ac_compile
28692 ac_compiler=$2
28693 for ac_option in --version -v -V -qversion; do
28694 { { ac_try="$ac_compiler $ac_option >&5"
28695 case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28698 esac
28699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28700 printf "%s\n" "$ac_try_echo"; } >&5
28701 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
28702 ac_status=$?
28703 if test -s conftest.err; then
28704 sed '10a\
28705 ... rest of stderr output deleted ...
28706 10q' conftest.err >conftest.er1
28707 cat conftest.er1 >&5
28708 fi
28709 rm -f conftest.er1 conftest.err
28710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28711 test $ac_status = 0; }
28712 done
28713
28714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
28715 printf %s "checking whether the compiler supports GNU C++... " >&6; }
28716 if test ${ac_cv_cxx_compiler_gnu+y}
28717 then :
28718 printf %s "(cached) " >&6
28719 else case e in #(
28720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28721 /* end confdefs.h. */
28722
28723 int
28724 main (void)
28725 {
28726 #ifndef __GNUC__
28727 choke me
28728 #endif
28729
28730 ;
28731 return 0;
28732 }
28733 _ACEOF
28734 if ac_fn_cxx_try_compile "$LINENO"
28735 then :
28736 ac_compiler_gnu=yes
28737 else case e in #(
28738 e) ac_compiler_gnu=no ;;
28739 esac
28740 fi
28741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28742 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
28743 ;;
28744 esac
28745 fi
28746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
28747 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
28748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28749
28750 if test $ac_compiler_gnu = yes; then
28751 GXX=yes
28752 else
28753 GXX=
28754 fi
28755 ac_test_CXXFLAGS=${CXXFLAGS+y}
28756 ac_save_CXXFLAGS=$CXXFLAGS
28757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
28758 printf %s "checking whether $CXX accepts -g... " >&6; }
28759 if test ${ac_cv_prog_cxx_g+y}
28760 then :
28761 printf %s "(cached) " >&6
28762 else case e in #(
28763 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
28764 ac_cxx_werror_flag=yes
28765 ac_cv_prog_cxx_g=no
28766 CXXFLAGS="-g"
28767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28768 /* end confdefs.h. */
28769
28770 int
28771 main (void)
28772 {
28773
28774 ;
28775 return 0;
28776 }
28777 _ACEOF
28778 if ac_fn_cxx_try_compile "$LINENO"
28779 then :
28780 ac_cv_prog_cxx_g=yes
28781 else case e in #(
28782 e) CXXFLAGS=""
28783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28784 /* end confdefs.h. */
28785
28786 int
28787 main (void)
28788 {
28789
28790 ;
28791 return 0;
28792 }
28793 _ACEOF
28794 if ac_fn_cxx_try_compile "$LINENO"
28795 then :
28796
28797 else case e in #(
28798 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
28799 CXXFLAGS="-g"
28800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28801 /* end confdefs.h. */
28802
28803 int
28804 main (void)
28805 {
28806
28807 ;
28808 return 0;
28809 }
28810 _ACEOF
28811 if ac_fn_cxx_try_compile "$LINENO"
28812 then :
28813 ac_cv_prog_cxx_g=yes
28814 fi
28815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28816 esac
28817 fi
28818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28819 esac
28820 fi
28821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28822 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
28823 esac
28824 fi
28825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
28826 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
28827 if test $ac_test_CXXFLAGS; then
28828 CXXFLAGS=$ac_save_CXXFLAGS
28829 elif test $ac_cv_prog_cxx_g = yes; then
28830 if test "$GXX" = yes; then
28831 CXXFLAGS="-g -O2"
28832 else
28833 CXXFLAGS="-g"
28834 fi
28835 else
28836 if test "$GXX" = yes; then
28837 CXXFLAGS="-O2"
28838 else
28839 CXXFLAGS=
28840 fi
28841 fi
28842 ac_prog_cxx_stdcxx=no
28843 if test x$ac_prog_cxx_stdcxx = xno
28844 then :
28845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
28846 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
28847 if test ${ac_cv_prog_cxx_cxx11+y}
28848 then :
28849 printf %s "(cached) " >&6
28850 else case e in #(
28851 e) ac_cv_prog_cxx_cxx11=no
28852 ac_save_CXX=$CXX
28853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28854 /* end confdefs.h. */
28855 $ac_cxx_conftest_cxx11_program
28856 _ACEOF
28857 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
28858 do
28859 CXX="$ac_save_CXX $ac_arg"
28860 if ac_fn_cxx_try_compile "$LINENO"
28861 then :
28862 ac_cv_prog_cxx_cxx11=$ac_arg
28863 fi
28864 rm -f core conftest.err conftest.$ac_objext conftest.beam
28865 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
28866 done
28867 rm -f conftest.$ac_ext
28868 CXX=$ac_save_CXX ;;
28869 esac
28870 fi
28871
28872 if test "x$ac_cv_prog_cxx_cxx11" = xno
28873 then :
28874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
28875 printf "%s\n" "unsupported" >&6; }
28876 else case e in #(
28877 e) if test "x$ac_cv_prog_cxx_cxx11" = x
28878 then :
28879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
28880 printf "%s\n" "none needed" >&6; }
28881 else case e in #(
28882 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
28883 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
28884 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
28885 esac
28886 fi
28887 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
28888 ac_prog_cxx_stdcxx=cxx11 ;;
28889 esac
28890 fi
28891 fi
28892 if test x$ac_prog_cxx_stdcxx = xno
28893 then :
28894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
28895 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
28896 if test ${ac_cv_prog_cxx_cxx98+y}
28897 then :
28898 printf %s "(cached) " >&6
28899 else case e in #(
28900 e) ac_cv_prog_cxx_cxx98=no
28901 ac_save_CXX=$CXX
28902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28903 /* end confdefs.h. */
28904 $ac_cxx_conftest_cxx98_program
28905 _ACEOF
28906 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
28907 do
28908 CXX="$ac_save_CXX $ac_arg"
28909 if ac_fn_cxx_try_compile "$LINENO"
28910 then :
28911 ac_cv_prog_cxx_cxx98=$ac_arg
28912 fi
28913 rm -f core conftest.err conftest.$ac_objext conftest.beam
28914 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
28915 done
28916 rm -f conftest.$ac_ext
28917 CXX=$ac_save_CXX ;;
28918 esac
28919 fi
28920
28921 if test "x$ac_cv_prog_cxx_cxx98" = xno
28922 then :
28923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
28924 printf "%s\n" "unsupported" >&6; }
28925 else case e in #(
28926 e) if test "x$ac_cv_prog_cxx_cxx98" = x
28927 then :
28928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
28929 printf "%s\n" "none needed" >&6; }
28930 else case e in #(
28931 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
28932 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
28933 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
28934 esac
28935 fi
28936 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
28937 ac_prog_cxx_stdcxx=cxx98 ;;
28938 esac
28939 fi
28940 fi
28941
28942 ac_ext=cpp
28943 ac_cpp='$CXXCPP $CPPFLAGS'
28944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28947
28948 depcc="$CXX" am_compiler_list=
28949
28950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
28951 printf %s "checking dependency style of $depcc... " >&6; }
28952 if test ${am_cv_CXX_dependencies_compiler_type+y}
28953 then :
28954 printf %s "(cached) " >&6
28955 else case e in #(
28956 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
28957 # We make a subdir and do the tests there. Otherwise we can end up
28958 # making bogus files that we don't know about and never remove. For
28959 # instance it was reported that on HP-UX the gcc test will end up
28960 # making a dummy file named 'D' -- because '-MD' means "put the output
28961 # in D".
28962 rm -rf conftest.dir
28963 mkdir conftest.dir
28964 # Copy depcomp to subdir because otherwise we won't find it if we're
28965 # using a relative directory.
28966 cp "$am_depcomp" conftest.dir
28967 cd conftest.dir
28968 # We will build objects and dependencies in a subdirectory because
28969 # it helps to detect inapplicable dependency modes. For instance
28970 # both Tru64's cc and ICC support -MD to output dependencies as a
28971 # side effect of compilation, but ICC will put the dependencies in
28972 # the current directory while Tru64 will put them in the object
28973 # directory.
28974 mkdir sub
28975
28976 am_cv_CXX_dependencies_compiler_type=none
28977 if test "$am_compiler_list" = ""; then
28978 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
28979 fi
28980 am__universal=false
28981 case " $depcc " in #(
28982 *\ -arch\ *\ -arch\ *) am__universal=true ;;
28983 esac
28984
28985 for depmode in $am_compiler_list; do
28986 # Setup a source with many dependencies, because some compilers
28987 # like to wrap large dependency lists on column 80 (with \), and
28988 # we should not choose a depcomp mode which is confused by this.
28989 #
28990 # We need to recreate these files for each test, as the compiler may
28991 # overwrite some of them when testing with obscure command lines.
28992 # This happens at least with the AIX C compiler.
28993 : > sub/conftest.c
28994 for i in 1 2 3 4 5 6; do
28995 echo '#include "conftst'$i'.h"' >> sub/conftest.c
28996 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
28997 # Solaris 10 /bin/sh.
28998 echo '/* dummy */' > sub/conftst$i.h
28999 done
29000 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
29001
29002 # We check with '-c' and '-o' for the sake of the "dashmstdout"
29003 # mode. It turns out that the SunPro C++ compiler does not properly
29004 # handle '-M -o', and we need to detect this. Also, some Intel
29005 # versions had trouble with output in subdirs.
29006 am__obj=sub/conftest.${OBJEXT-o}
29007 am__minus_obj="-o $am__obj"
29008 case $depmode in
29009 gcc)
29010 # This depmode causes a compiler race in universal mode.
29011 test "$am__universal" = false || continue
29012 ;;
29013 nosideeffect)
29014 # After this tag, mechanisms are not by side-effect, so they'll
29015 # only be used when explicitly requested.
29016 if test "x$enable_dependency_tracking" = xyes; then
29017 continue
29018 else
29019 break
29020 fi
29021 ;;
29022 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
29023 # This compiler won't grok '-c -o', but also, the minuso test has
29024 # not run yet. These depmodes are late enough in the game, and
29025 # so weak that their functioning should not be impacted.
29026 am__obj=conftest.${OBJEXT-o}
29027 am__minus_obj=
29028 ;;
29029 none) break ;;
29030 esac
29031 if depmode=$depmode \
29032 source=sub/conftest.c object=$am__obj \
29033 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
29034 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
29035 >/dev/null 2>conftest.err &&
29036 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
29037 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
29038 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
29039 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
29040 # icc doesn't choke on unknown options, it will just issue warnings
29041 # or remarks (even with -Werror). So we grep stderr for any message
29042 # that says an option was ignored or not supported.
29043 # When given -MP, icc 7.0 and 7.1 complain thus:
29044 # icc: Command line warning: ignoring option '-M'; no argument required
29045 # The diagnosis changed in icc 8.0:
29046 # icc: Command line remark: option '-MP' not supported
29047 if (grep 'ignoring option' conftest.err ||
29048 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
29049 am_cv_CXX_dependencies_compiler_type=$depmode
29050 break
29051 fi
29052 fi
29053 done
29054
29055 cd ..
29056 rm -rf conftest.dir
29057 else
29058 am_cv_CXX_dependencies_compiler_type=none
29059 fi
29060 ;;
29061 esac
29062 fi
29063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
29064 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
29065 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
29066
29067 if
29068 test "x$enable_dependency_tracking" != xno \
29069 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
29070 am__fastdepCXX_TRUE=
29071 am__fastdepCXX_FALSE='#'
29072 else
29073 am__fastdepCXX_TRUE='#'
29074 am__fastdepCXX_FALSE=
29075 fi
29076
29077
29078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
29079 printf %s "checking whether the compiler recognizes bool as a built-in type... " >&6; }
29080 if test ${ax_cv_cxx_bool+y}
29081 then :
29082 printf %s "(cached) " >&6
29083 else case e in #(
29084 e) ac_ext=cpp
29085 ac_cpp='$CXXCPP $CPPFLAGS'
29086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29089
29090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29091 /* end confdefs.h. */
29092 int f(int x){return x;}
29093 int f(char x){return x == '\1' ? 1 : 0;}
29094 int f(bool x){return x ? 1 : 0;}
29095 int
29096 main (void)
29097 {
29098 bool b = true; return f(b);
29099 ;
29100 return 0;
29101 }
29102 _ACEOF
29103 if ac_fn_cxx_try_compile "$LINENO"
29104 then :
29105 ax_cv_cxx_bool=yes
29106 else case e in #(
29107 e) ax_cv_cxx_bool=no ;;
29108 esac
29109 fi
29110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29111 ac_ext=cpp
29112 ac_cpp='$CXXCPP $CPPFLAGS'
29113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29116
29117 ;;
29118 esac
29119 fi
29120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
29121 printf "%s\n" "$ax_cv_cxx_bool" >&6; }
29122 if test "X$ax_cv_cxx_bool" = Xyes
29123 then :
29124
29125 printf "%s\n" "#define HAVE_BOOL /**/" >>confdefs.h
29126
29127 fi
29128
29129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
29130 printf %s "checking whether the compiler implements namespaces... " >&6; }
29131 if test ${ax_cv_cxx_namespaces+y}
29132 then :
29133 printf %s "(cached) " >&6
29134 else case e in #(
29135 e) ac_ext=cpp
29136 ac_cpp='$CXXCPP $CPPFLAGS'
29137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29140
29141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29142 /* end confdefs.h. */
29143 namespace Outer { namespace Inner { int i = 0; }}
29144 using namespace Outer::Inner; int foo(void) { return i;}
29145 _ACEOF
29146 if ac_fn_cxx_try_compile "$LINENO"
29147 then :
29148 ax_cv_cxx_namespaces=yes
29149 else case e in #(
29150 e) ax_cv_cxx_namespaces=no ;;
29151 esac
29152 fi
29153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29154 ac_ext=cpp
29155 ac_cpp='$CXXCPP $CPPFLAGS'
29156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29159
29160 ;;
29161 esac
29162 fi
29163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
29164 printf "%s\n" "$ax_cv_cxx_namespaces" >&6; }
29165 if test "$ax_cv_cxx_namespaces" = yes; then
29166
29167 printf "%s\n" "#define HAVE_NAMESPACES /**/" >>confdefs.h
29168
29169 fi
29170
29171
29172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
29173 printf %s "checking if g++ supports namespace std... " >&6; }
29174 if test ${ax_cv_cxx_have_std_namespace+y}
29175 then :
29176 printf %s "(cached) " >&6
29177 else case e in #(
29178 e) ac_ext=cpp
29179 ac_cpp='$CXXCPP $CPPFLAGS'
29180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29183
29184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29185 /* end confdefs.h. */
29186 #include <iostream>
29187 std::istream& is = std::cin;
29188 int
29189 main (void)
29190 {
29191
29192 ;
29193 return 0;
29194 }
29195 _ACEOF
29196 if ac_fn_cxx_try_compile "$LINENO"
29197 then :
29198 ax_cv_cxx_have_std_namespace=yes
29199 else case e in #(
29200 e) ax_cv_cxx_have_std_namespace=no ;;
29201 esac
29202 fi
29203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29204 ac_ext=cpp
29205 ac_cpp='$CXXCPP $CPPFLAGS'
29206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29209
29210 ;;
29211 esac
29212 fi
29213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
29214 printf "%s\n" "$ax_cv_cxx_have_std_namespace" >&6; }
29215 if test "$ax_cv_cxx_have_std_namespace" = yes; then
29216
29217 printf "%s\n" "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
29218
29219 fi
29220
29221 # Check whether --enable-openmp was given.
29222 if test ${enable_openmp+y}
29223 then :
29224 enableval=$enable_openmp;
29225 fi
29226
29227 OPENMP_CXXFLAGS=
29228 if test "$enable_openmp" != no; then
29229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
29230 printf %s "checking for $CXX option to support OpenMP... " >&6; }
29231 if test ${ac_cv_prog_cxx_openmp+y}
29232 then :
29233 printf %s "(cached) " >&6
29234 else case e in #(
29235 e) ac_cv_prog_cxx_openmp='not found'
29236 for ac_option in '' -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
29237 -Popenmp --openmp; do
29238
29239 ac_save_CXXFLAGS=$CXXFLAGS
29240 CXXFLAGS="$CXXFLAGS $ac_option"
29241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29242 /* end confdefs.h. */
29243
29244 #ifndef _OPENMP
29245 #error "OpenMP not supported"
29246 #endif
29247 #include <omp.h>
29248 int main (void) { return omp_get_num_threads (); }
29249
29250 _ACEOF
29251 if ac_fn_cxx_try_compile "$LINENO"
29252 then :
29253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29254 /* end confdefs.h. */
29255
29256 #ifndef _OPENMP
29257 #error "OpenMP not supported"
29258 #endif
29259 #include <omp.h>
29260 int main (void) { return omp_get_num_threads (); }
29261
29262 _ACEOF
29263 if ac_fn_cxx_try_link "$LINENO"
29264 then :
29265 ac_cv_prog_cxx_openmp=$ac_option
29266 else case e in #(
29267 e) ac_cv_prog_cxx_openmp='unsupported' ;;
29268 esac
29269 fi
29270 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29271 conftest$ac_exeext conftest.$ac_ext
29272 fi
29273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29274 CXXFLAGS=$ac_save_CXXFLAGS
29275
29276 if test "$ac_cv_prog_cxx_openmp" != 'not found'; then
29277 break
29278 fi
29279 done
29280 if test "$ac_cv_prog_cxx_openmp" = 'not found'; then
29281 ac_cv_prog_cxx_openmp='unsupported'
29282 elif test "$ac_cv_prog_cxx_openmp" = ''; then
29283 ac_cv_prog_cxx_openmp='none needed'
29284 fi
29285 rm -f penmp mp ;;
29286 esac
29287 fi
29288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
29289 printf "%s\n" "$ac_cv_prog_cxx_openmp" >&6; }
29290 if test "$ac_cv_prog_cxx_openmp" != 'unsupported' && \
29291 test "$ac_cv_prog_cxx_openmp" != 'none needed'; then
29292 OPENMP_CXXFLAGS="$ac_cv_prog_cxx_openmp"
29293 fi
29294 fi
29295
29296
29297 ac_ext=c
29298 ac_cpp='$CPP $CPPFLAGS'
29299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29302
29303
29304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
29305 printf %s "checking whether C++ compiler is sufficient for Magick++... " >&6; }
29306 if \
29307 test $ax_cv_cxx_bool = 'yes' && \
29308 test $ax_cv_cxx_namespaces = 'yes' && \
29309 test $ax_cv_cxx_have_std_namespace = 'yes'; then
29310 have_magick_plus_plus='yes'
29311 else
29312 have_magick_plus_plus='no (failed tests)'
29313 fi
29314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
29315 printf "%s\n" "$have_magick_plus_plus" >&6; }
29316 LIBS="$OLIBS"
29317 fi
29318 if test "$have_magick_plus_plus" = 'yes'; then
29319 WITH_MAGICK_PLUS_PLUS_TRUE=
29320 WITH_MAGICK_PLUS_PLUS_FALSE='#'
29321 else
29322 WITH_MAGICK_PLUS_PLUS_TRUE='#'
29323 WITH_MAGICK_PLUS_PLUS_FALSE=
29324 fi
29325
29326
29327 # Only check for delegate libraries in subdirectories if requested.
29328 if test "$enable_delegate_build" != 'no'; then
29329 # Check for delegate sub-directories and add -I & -L options as required.
29330 # This presumes that delegates are installed as detailed in the ImageMagick
29331 # README. If delegates are installed in a standard location where the
29332 # compiler will automatically find them then these options should not be
29333 # required.
29334
29335 #
29336 # Most delegates have includes in the same directory as the library, but not all...
29337 #
29338 # Includes
29339 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
29340 if test -d "$builddir/$dir"; then
29341 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
29342 else
29343 if test -d "$srcdirfull/$dir"; then
29344 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
29345 fi
29346 fi
29347 done
29348
29349 # Libraries
29350 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
29351 if test -d "$builddir/$dir/.libs"; then
29352 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
29353 else
29354 if test -d "$srcdirfull/$dir/.libs"; then
29355 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
29356 fi
29357 fi
29358 if test -d "$builddir/$dir"; then
29359 LDFLAGS="$LDFLAGS -L$builddir/$dir"
29360 else
29361 if test -d "$srcdirfull/$dir"; then
29362 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
29363 fi
29364 fi
29365 done
29366 fi
29367
29368 # Assume that delegate headers reside under same directory as ImageMagick
29369 # installation prefix.
29370 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
29371
29372 #
29373 # Find the X11 RGB database
29374 #
29375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
29376 printf %s "checking for X11 configure files... " >&6; }
29377 if test ${im_cv_x_configure+y}
29378 then :
29379 printf %s "(cached) " >&6
29380 else case e in #(
29381 e) # Look for the header file in a standard set of common directories.
29382 # Check X11 before X11Rn because it is often a symlink to the current release.
29383 for ac_dir in \
29384 /lib/usr/lib/X11 \
29385 /usr/X11/lib \
29386 /usr/X11R4/lib \
29387 /usr/X11R5/lib \
29388 /usr/X11R6/lib \
29389 /usr/X11R7/lib \
29390 /usr/X386/lib \
29391 /usr/XFree86/lib/X11 \
29392 /usr/athena/lib \
29393 /usr/lib \
29394 /usr/lib/X11 \
29395 /usr/lib/X11R4 \
29396 /usr/lib/X11R5 \
29397 /usr/lib/X11R6 \
29398 /usr/lib/X11R7 \
29399 /usr/local/X11/lib \
29400 /usr/local/X11R4/lib \
29401 /usr/local/X11R5/lib \
29402 /usr/local/X11R6/lib \
29403 /usr/local/lib \
29404 /usr/local/lib/X11 \
29405 /usr/local/lib/X11R4 \
29406 /usr/local/lib/X11R5 \
29407 /usr/local/lib/X11R6 \
29408 /usr/local/lib/X11R7 \
29409 /usr/local/x11r5/lib \
29410 /usr/lpp/Xamples/lib \
29411 /usr/openwin/lib \
29412 /usr/openwin/share/lib \
29413 /usr/unsupported/lib \
29414 /usr/x386/lib \
29415 ; do
29416 if test -f "$ac_dir/X11/rgb.txt"; then
29417 im_cv_x_configure="$ac_dir/X11/"
29418 break
29419 elif test -f "$ac_dir/rgb.txt"; then
29420 im_cv_x_configure="$ac_dir/"
29421 break
29422 fi
29423
29424 done ;;
29425 esac
29426 fi
29427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
29428 printf "%s\n" "$im_cv_x_configure" >&6; }
29429 X11_CONFIGURE_PATH="$im_cv_x_configure"
29430 case "${build_os}" in
29431 mingw* )
29432 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
29433 ;;
29434 esac
29435
29436 printf "%s\n" "#define X11_CONFIGURE_PATH \"$X11ConfigurePath\"" >>confdefs.h
29437
29438
29439 #
29440 # Find OpenMP library
29441 #
29442 GOMP_LIBS=''
29443 if test "${OPENMP_ENABLED}" = 'yes'; then
29444 ac_fn_c_check_header_compile "$LINENO" "omp.h" "ac_cv_header_omp_h" "$ac_includes_default"
29445 if test "x$ac_cv_header_omp_h" = xyes
29446 then :
29447
29448 else case e in #(
29449 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OpenMP header file not found" >&5
29450 printf "%s\n" "OpenMP header file not found" >&6; } ;;
29451 esac
29452 fi
29453
29454 if test "${GCC}" = "yes"; then
29455 # Open64 (passes for GCC but uses different OpenMP implementation)
29456 if test "x$GOMP_LIBS" = x ; then
29457 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
29458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29459 /* end confdefs.h. */
29460 #include <omp.h>
29461 int
29462 main (void)
29463 {
29464
29465 omp_set_num_threads(1);
29466 ;
29467 return 0;
29468 }
29469 _ACEOF
29470 if ac_fn_c_try_compile "$LINENO"
29471 then :
29472 GOMP_LIBS="-lopenmp"
29473 fi
29474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29475 fi
29476 fi
29477 # Clang (passes for GCC but uses different OpenMP implementation)
29478 if test "x$GOMP_LIBS" = x ; then
29479 if $CC --version 2>&1 | grep clang > /dev/null ; then
29480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29481 /* end confdefs.h. */
29482 #include <omp.h>
29483 int
29484 main (void)
29485 {
29486
29487 omp_set_num_threads(1);
29488 ;
29489 return 0;
29490 }
29491 _ACEOF
29492 if ac_fn_c_try_compile "$LINENO"
29493 then :
29494 GOMP_LIBS="-lomp"
29495 fi
29496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29497 fi
29498 fi
29499 # GCC
29500 if test "x$GOMP_LIBS" = x ; then
29501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29502 /* end confdefs.h. */
29503 #include <omp.h>
29504 int
29505 main (void)
29506 {
29507
29508 omp_set_num_threads(1);
29509 ;
29510 return 0;
29511 }
29512 _ACEOF
29513 if ac_fn_c_try_compile "$LINENO"
29514 then :
29515 GOMP_LIBS="-lgomp"
29516 fi
29517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29518 fi
29519 else
29520 # Sun CC
29521 if test "x$GOMP_LIBS" = x ; then
29522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29523 /* end confdefs.h. */
29524 #include <omp.h>
29525 int
29526 main (void)
29527 {
29528
29529 omp_set_num_threads(1);
29530 ;
29531 return 0;
29532 }
29533 _ACEOF
29534 if ac_fn_c_try_compile "$LINENO"
29535 then :
29536 GOMP_LIBS="-lmtsk"
29537 fi
29538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29539 fi
29540 # AIX xlc
29541 if test "x$GOMP_LIBS" = x ; then
29542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29543 /* end confdefs.h. */
29544 #include <omp.h>
29545 int
29546 main (void)
29547 {
29548
29549 omp_set_num_threads(1);
29550 ;
29551 return 0;
29552 }
29553 _ACEOF
29554 if ac_fn_c_try_compile "$LINENO"
29555 then :
29556 GOMP_LIBS="-lxmlsmp"
29557 fi
29558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29559 fi
29560 # SGI IRIX 6.5 MIPSpro C/C++
29561 if test "x$GOMP_LIBS" = x ; then
29562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29563 /* end confdefs.h. */
29564 #include <omp.h>
29565 int
29566 main (void)
29567 {
29568
29569 omp_set_num_threads(1);
29570 ;
29571 return 0;
29572 }
29573 _ACEOF
29574 if ac_fn_c_try_compile "$LINENO"
29575 then :
29576 GOMP_LIBS="-lmp"
29577 fi
29578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29579 fi
29580 fi
29581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenMP library " >&5
29582 printf %s "checking for OpenMP library ... " >&6; }
29583 if test "x$GOMP_LIBS" = x ; then
29584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
29585 printf "%s\n" "not found!" >&6; }
29586 else
29587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${GOMP_LIBS}" >&5
29588 printf "%s\n" "${GOMP_LIBS}" >&6; }
29589 fi
29590 fi
29591
29592
29593 #
29594 # Check for jemalloc.
29595 #
29596 have_jemalloc='no'
29597 JEMALLOC_LIBS=''
29598 if test "$with_jemalloc" != 'no'; then
29599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support" >&5
29600 printf %s "checking for JEMALLOC support... " >&6; }
29601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
29602 printf "%s\n" "" >&6; }
29603 failed=0
29604 passed=0
29605 ac_fn_c_check_header_compile "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
29606 if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes
29607 then :
29608 passed=`expr $passed + 1`
29609 else case e in #(
29610 e) failed=`expr $failed + 1` ;;
29611 esac
29612 fi
29613
29614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
29615 printf %s "checking for malloc_stats_print in -ljemalloc... " >&6; }
29616 if test ${ac_cv_lib_jemalloc_malloc_stats_print+y}
29617 then :
29618 printf %s "(cached) " >&6
29619 else case e in #(
29620 e) ac_check_lib_save_LIBS=$LIBS
29621 LIBS="-ljemalloc $LIBS"
29622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29623 /* end confdefs.h. */
29624
29625 /* Override any GCC internal prototype to avoid an error.
29626 Use char because int might match the return type of a GCC
29627 builtin and then its argument prototype would still apply.
29628 The 'extern "C"' is for builds by C++ compilers;
29629 although this is not generally supported in C code supporting it here
29630 has little cost and some practical benefit (sr 110532). */
29631 #ifdef __cplusplus
29632 extern "C"
29633 #endif
29634 char malloc_stats_print (void);
29635 int
29636 main (void)
29637 {
29638 return malloc_stats_print ();
29639 ;
29640 return 0;
29641 }
29642 _ACEOF
29643 if ac_fn_c_try_link "$LINENO"
29644 then :
29645 ac_cv_lib_jemalloc_malloc_stats_print=yes
29646 else case e in #(
29647 e) ac_cv_lib_jemalloc_malloc_stats_print=no ;;
29648 esac
29649 fi
29650 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29651 conftest$ac_exeext conftest.$ac_ext
29652 LIBS=$ac_check_lib_save_LIBS ;;
29653 esac
29654 fi
29655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
29656 printf "%s\n" "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
29657 if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes
29658 then :
29659 passed=`expr $passed + 1`
29660 else case e in #(
29661 e) failed=`expr $failed + 1` ;;
29662 esac
29663 fi
29664
29665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
29666 printf %s "checking if jemalloc memory allocation library is complete... " >&6; }
29667 if test $passed -gt 0; then
29668 if test $failed -gt 0; then
29669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29670 printf "%s\n" "no -- some components failed test" >&6; }
29671 have_jemalloc='no (failed tests)'
29672 else
29673 JEMALLOC_LIBS='-ljemalloc'
29674 LIBS="$JEMALLOC_LIBS $LIBS"
29675
29676 printf "%s\n" "#define HAVE_JEMALLOC 1" >>confdefs.h
29677
29678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29679 printf "%s\n" "yes" >&6; }
29680 have_jemalloc='yes'
29681 fi
29682 else
29683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29684 printf "%s\n" "no" >&6; }
29685 fi
29686 fi
29687 if test "$have_jemalloc" = 'yes'; then
29688 HAVE_JEMALLOC_TRUE=
29689 HAVE_JEMALLOC_FALSE='#'
29690 else
29691 HAVE_JEMALLOC_TRUE='#'
29692 HAVE_JEMALLOC_FALSE=
29693 fi
29694
29695
29696
29697 #
29698 # Check for MTMalloc library
29699 #
29700 have_mtmalloc='no'
29701 MTMALLOC_LIBS=''
29702 OLIBS="$LIBS"
29703 if test "$have_threads" = 'yes' -a "$with_mtmalloc" != 'no'; then
29704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking mtmalloc library support" >&5
29705 printf %s "checking mtmalloc library support... " >&6; }
29706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
29707 printf "%s\n" "" >&6; }
29708 failed=0
29709 passed=0
29710
29711 ac_fn_c_check_header_compile "$LINENO" "mtmalloc.h" "ac_cv_header_mtmalloc_h" "$ac_includes_default"
29712 if test "x$ac_cv_header_mtmalloc_h" = xyes
29713 then :
29714 passed=`expr $passed + 1`
29715 else case e in #(
29716 e) failed=`expr $failed + 1` ;;
29717 esac
29718 fi
29719
29720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mallocctl in -lmtalloc" >&5
29721 printf %s "checking for mallocctl in -lmtalloc... " >&6; }
29722 if test ${ac_cv_lib_mtalloc_mallocctl+y}
29723 then :
29724 printf %s "(cached) " >&6
29725 else case e in #(
29726 e) ac_check_lib_save_LIBS=$LIBS
29727 LIBS="-lmtalloc $LIBS"
29728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29729 /* end confdefs.h. */
29730
29731 /* Override any GCC internal prototype to avoid an error.
29732 Use char because int might match the return type of a GCC
29733 builtin and then its argument prototype would still apply.
29734 The 'extern "C"' is for builds by C++ compilers;
29735 although this is not generally supported in C code supporting it here
29736 has little cost and some practical benefit (sr 110532). */
29737 #ifdef __cplusplus
29738 extern "C"
29739 #endif
29740 char mallocctl (void);
29741 int
29742 main (void)
29743 {
29744 return mallocctl ();
29745 ;
29746 return 0;
29747 }
29748 _ACEOF
29749 if ac_fn_c_try_link "$LINENO"
29750 then :
29751 ac_cv_lib_mtalloc_mallocctl=yes
29752 else case e in #(
29753 e) ac_cv_lib_mtalloc_mallocctl=no ;;
29754 esac
29755 fi
29756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29757 conftest$ac_exeext conftest.$ac_ext
29758 LIBS=$ac_check_lib_save_LIBS ;;
29759 esac
29760 fi
29761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtalloc_mallocctl" >&5
29762 printf "%s\n" "$ac_cv_lib_mtalloc_mallocctl" >&6; }
29763 if test "x$ac_cv_lib_mtalloc_mallocctl" = xyes
29764 then :
29765 passed=`expr $passed + 1`
29766 else case e in #(
29767 e) failed=`expr $failed + 1` ;;
29768 esac
29769 fi
29770
29771
29772 if test $passed -gt 0; then
29773 if test $failed -gt 0; then
29774 have_mtmalloc='no (some components failed test)'
29775 else
29776 MTMALLOC_LIBS=-lmtalloc
29777 LIBS="$MTMALLOC_LIBS $LIBS"
29778 CFLAGS="$CFLAGS -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free"
29779
29780 printf "%s\n" "#define HAVE_MTMALLOC 1" >>confdefs.h
29781
29782 have_mtmalloc='yes'
29783 fi
29784 fi
29785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if mtmalloc memory allocation library is complete" >&5
29786 printf %s "checking if mtmalloc memory allocation library is complete... " >&6; }
29787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mtmalloc" >&5
29788 printf "%s\n" "$have_mtmalloc" >&6; }
29789 fi
29790 if test "$have_mtmalloc" = 'yes'; then
29791 HAVE_MTMALLOC_TRUE=
29792 HAVE_MTMALLOC_FALSE='#'
29793 else
29794 HAVE_MTMALLOC_TRUE='#'
29795 HAVE_MTMALLOC_FALSE=
29796 fi
29797
29798
29799
29800 #
29801 # Check for TCMalloc library
29802 #
29803 have_tcmalloc='no'
29804 TCMALLOC_LIBS=''
29805 OLIBS="$LIBS"
29806 if test "$have_threads" = 'yes' -a "$with_tcmalloc" != 'no'; then
29807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking tcmalloc library support" >&5
29808 printf %s "checking tcmalloc library support... " >&6; }
29809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
29810 printf "%s\n" "" >&6; }
29811 failed=0
29812 passed=0
29813
29814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mallinfo in -ltcmalloc_minimal" >&5
29815 printf %s "checking for mallinfo in -ltcmalloc_minimal... " >&6; }
29816 if test ${ac_cv_lib_tcmalloc_minimal_mallinfo+y}
29817 then :
29818 printf %s "(cached) " >&6
29819 else case e in #(
29820 e) ac_check_lib_save_LIBS=$LIBS
29821 LIBS="-ltcmalloc_minimal $LIBS"
29822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29823 /* end confdefs.h. */
29824
29825 /* Override any GCC internal prototype to avoid an error.
29826 Use char because int might match the return type of a GCC
29827 builtin and then its argument prototype would still apply.
29828 The 'extern "C"' is for builds by C++ compilers;
29829 although this is not generally supported in C code supporting it here
29830 has little cost and some practical benefit (sr 110532). */
29831 #ifdef __cplusplus
29832 extern "C"
29833 #endif
29834 char mallinfo (void);
29835 int
29836 main (void)
29837 {
29838 return mallinfo ();
29839 ;
29840 return 0;
29841 }
29842 _ACEOF
29843 if ac_fn_c_try_link "$LINENO"
29844 then :
29845 ac_cv_lib_tcmalloc_minimal_mallinfo=yes
29846 else case e in #(
29847 e) ac_cv_lib_tcmalloc_minimal_mallinfo=no ;;
29848 esac
29849 fi
29850 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29851 conftest$ac_exeext conftest.$ac_ext
29852 LIBS=$ac_check_lib_save_LIBS ;;
29853 esac
29854 fi
29855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcmalloc_minimal_mallinfo" >&5
29856 printf "%s\n" "$ac_cv_lib_tcmalloc_minimal_mallinfo" >&6; }
29857 if test "x$ac_cv_lib_tcmalloc_minimal_mallinfo" = xyes
29858 then :
29859 passed=`expr $passed + 1`
29860 else case e in #(
29861 e) failed=`expr $failed + 1` ;;
29862 esac
29863 fi
29864
29865
29866 if test $passed -gt 0; then
29867 if test $failed -gt 0; then
29868 have_tcmalloc='no (some components failed test)'
29869 else
29870 TCMALLOC_LIBS=-ltcmalloc_minimal
29871 LIBS="$TCMALLOC_LIBS $LIBS"
29872 CFLAGS="$CFLAGS -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free"
29873
29874 printf "%s\n" "#define HAVE_TCMALLOC 1" >>confdefs.h
29875
29876 have_tcmalloc='yes'
29877 fi
29878 fi
29879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if tcmalloc memory allocation library is complete" >&5
29880 printf %s "checking if tcmalloc memory allocation library is complete... " >&6; }
29881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_tcmalloc" >&5
29882 printf "%s\n" "$have_tcmalloc" >&6; }
29883 fi
29884 if test "$have_tcmalloc" = 'yes'; then
29885 HAVE_TCMALLOC_TRUE=
29886 HAVE_TCMALLOC_FALSE='#'
29887 else
29888 HAVE_TCMALLOC_TRUE='#'
29889 HAVE_TCMALLOC_FALSE=
29890 fi
29891
29892
29893
29894 #
29895 # Check for umem.
29896 #
29897 have_umem='no'
29898 UMEM_LIBS=''
29899 if test "$with_umem" != 'no'; then
29900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UMEM support" >&5
29901 printf %s "checking for UMEM support... " >&6; }
29902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
29903 printf "%s\n" "" >&6; }
29904 failed=0
29905 passed=0
29906 ac_fn_c_check_header_compile "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
29907 if test "x$ac_cv_header_umem_h" = xyes
29908 then :
29909 passed=`expr $passed + 1`
29910 else case e in #(
29911 e) failed=`expr $failed + 1` ;;
29912 esac
29913 fi
29914
29915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
29916 printf %s "checking for umem_alloc in -lumem... " >&6; }
29917 if test ${ac_cv_lib_umem_umem_alloc+y}
29918 then :
29919 printf %s "(cached) " >&6
29920 else case e in #(
29921 e) ac_check_lib_save_LIBS=$LIBS
29922 LIBS="-lumem $LIBS"
29923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29924 /* end confdefs.h. */
29925
29926 /* Override any GCC internal prototype to avoid an error.
29927 Use char because int might match the return type of a GCC
29928 builtin and then its argument prototype would still apply.
29929 The 'extern "C"' is for builds by C++ compilers;
29930 although this is not generally supported in C code supporting it here
29931 has little cost and some practical benefit (sr 110532). */
29932 #ifdef __cplusplus
29933 extern "C"
29934 #endif
29935 char umem_alloc (void);
29936 int
29937 main (void)
29938 {
29939 return umem_alloc ();
29940 ;
29941 return 0;
29942 }
29943 _ACEOF
29944 if ac_fn_c_try_link "$LINENO"
29945 then :
29946 ac_cv_lib_umem_umem_alloc=yes
29947 else case e in #(
29948 e) ac_cv_lib_umem_umem_alloc=no ;;
29949 esac
29950 fi
29951 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29952 conftest$ac_exeext conftest.$ac_ext
29953 LIBS=$ac_check_lib_save_LIBS ;;
29954 esac
29955 fi
29956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
29957 printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
29958 if test "x$ac_cv_lib_umem_umem_alloc" = xyes
29959 then :
29960 passed=`expr $passed + 1`
29961 else case e in #(
29962 e) failed=`expr $failed + 1` ;;
29963 esac
29964 fi
29965
29966
29967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
29968 printf %s "checking for umem_free in -lumem... " >&6; }
29969 if test ${ac_cv_lib_umem_umem_free+y}
29970 then :
29971 printf %s "(cached) " >&6
29972 else case e in #(
29973 e) ac_check_lib_save_LIBS=$LIBS
29974 LIBS="-lumem $LIBS"
29975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29976 /* end confdefs.h. */
29977
29978 /* Override any GCC internal prototype to avoid an error.
29979 Use char because int might match the return type of a GCC
29980 builtin and then its argument prototype would still apply.
29981 The 'extern "C"' is for builds by C++ compilers;
29982 although this is not generally supported in C code supporting it here
29983 has little cost and some practical benefit (sr 110532). */
29984 #ifdef __cplusplus
29985 extern "C"
29986 #endif
29987 char umem_free (void);
29988 int
29989 main (void)
29990 {
29991 return umem_free ();
29992 ;
29993 return 0;
29994 }
29995 _ACEOF
29996 if ac_fn_c_try_link "$LINENO"
29997 then :
29998 ac_cv_lib_umem_umem_free=yes
29999 else case e in #(
30000 e) ac_cv_lib_umem_umem_free=no ;;
30001 esac
30002 fi
30003 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30004 conftest$ac_exeext conftest.$ac_ext
30005 LIBS=$ac_check_lib_save_LIBS ;;
30006 esac
30007 fi
30008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
30009 printf "%s\n" "$ac_cv_lib_umem_umem_free" >&6; }
30010 if test "x$ac_cv_lib_umem_umem_free" = xyes
30011 then :
30012 passed=`expr $passed + 1`
30013 else case e in #(
30014 e) failed=`expr $failed + 1` ;;
30015 esac
30016 fi
30017
30018
30019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
30020 printf %s "checking if umem memory allocation library is complete... " >&6; }
30021 if test $passed -gt 0; then
30022 if test $failed -gt 0; then
30023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30024 printf "%s\n" "no -- some components failed test" >&6; }
30025 have_umem='no (failed tests)'
30026 else
30027 UMEM_LIBS='-lumem'
30028 LIBS="$UMEM_LIBS $LIBS"
30029
30030 printf "%s\n" "#define HAVE_UMEM 1" >>confdefs.h
30031
30032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30033 printf "%s\n" "yes" >&6; }
30034 have_umem='yes'
30035 fi
30036 else
30037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30038 printf "%s\n" "no" >&6; }
30039 fi
30040 fi
30041 if test "$have_umem" = 'yes'; then
30042 HAVE_UMEM_TRUE=
30043 HAVE_UMEM_FALSE='#'
30044 else
30045 HAVE_UMEM_TRUE='#'
30046 HAVE_UMEM_FALSE=
30047 fi
30048
30049
30050
30051 #
30052 # Add support for ccmalloc memory debugging library if requested
30053 #
30054 have_ccmalloc='no'
30055 CCMALLOC_LIBS=''
30056 if test "$enable_ccmalloc" = 'yes'; then
30057 # Extract the first word of "ccmalloc", so it can be a program name with args.
30058 set dummy ccmalloc; ac_word=$2
30059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30060 printf %s "checking for $ac_word... " >&6; }
30061 if test ${ac_cv_path_CCMALLOCDelegate+y}
30062 then :
30063 printf %s "(cached) " >&6
30064 else case e in #(
30065 e) case $CCMALLOCDelegate in
30066 [\\/]* | ?:[\\/]*)
30067 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
30068 ;;
30069 *)
30070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30071 for as_dir in $PATH
30072 do
30073 IFS=$as_save_IFS
30074 case $as_dir in #(((
30075 '') as_dir=./ ;;
30076 */) ;;
30077 *) as_dir=$as_dir/ ;;
30078 esac
30079 for ac_exec_ext in '' $ac_executable_extensions; do
30080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30081 ac_cv_path_CCMALLOCDelegate="$as_dir$ac_word$ac_exec_ext"
30082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30083 break 2
30084 fi
30085 done
30086 done
30087 IFS=$as_save_IFS
30088
30089 ;;
30090 esac ;;
30091 esac
30092 fi
30093 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
30094 if test -n "$CCMALLOCDelegate"; then
30095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
30096 printf "%s\n" "$CCMALLOCDelegate" >&6; }
30097 else
30098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30099 printf "%s\n" "no" >&6; }
30100 fi
30101
30102
30103 if test -n "$CCMALLOCDelegate"; then
30104 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
30105 OLIBS="$LIBS"
30106 # Assume that gcc is used with ccmalloc.
30107 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
30108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
30109 printf %s "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
30110 if test ${ac_cv_lib_ccmalloc_ccmalloc_malloc+y}
30111 then :
30112 printf %s "(cached) " >&6
30113 else case e in #(
30114 e) ac_check_lib_save_LIBS=$LIBS
30115 LIBS="-lccmalloc -ldl $LIBS"
30116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30117 /* end confdefs.h. */
30118
30119 /* Override any GCC internal prototype to avoid an error.
30120 Use char because int might match the return type of a GCC
30121 builtin and then its argument prototype would still apply.
30122 The 'extern "C"' is for builds by C++ compilers;
30123 although this is not generally supported in C code supporting it here
30124 has little cost and some practical benefit (sr 110532). */
30125 #ifdef __cplusplus
30126 extern "C"
30127 #endif
30128 char ccmalloc_malloc (void);
30129 int
30130 main (void)
30131 {
30132 return ccmalloc_malloc ();
30133 ;
30134 return 0;
30135 }
30136 _ACEOF
30137 if ac_fn_c_try_link "$LINENO"
30138 then :
30139 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
30140 else case e in #(
30141 e) ac_cv_lib_ccmalloc_ccmalloc_malloc=no ;;
30142 esac
30143 fi
30144 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30145 conftest$ac_exeext conftest.$ac_ext
30146 LIBS=$ac_check_lib_save_LIBS ;;
30147 esac
30148 fi
30149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
30150 printf "%s\n" "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
30151 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes
30152 then :
30153 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
30154 fi
30155
30156 if test -n "$CCMALLOC_LIBS"; then
30157 LIBS="$OLIBS"
30158 LIBS="$LIBS $CCMALLOC_LIBS"
30159 have_ccmalloc='yes'
30160 else
30161 LIBS="$OLIBS"
30162 fi
30163 fi
30164 fi
30165
30166 #
30167 # Add support for 'huge pages' if requested
30168 #
30169 if test "x$enable_hugepages" != "xno"
30170 then :
30171
30172
30173 printf "%s\n" "#define HAVE_HUGEPAGES 1" >>confdefs.h
30174
30175
30176 fi
30177
30178 #
30179 # Add support for efence memory debugging library if requested
30180 #
30181 if test "$enable_efence" = 'yes'; then
30182 EFENCE_LIBS='-lefence'
30183 LIBS="$EFENCE_LIBS $LIBS"
30184 fi
30185
30186
30187 #
30188 # Check for BZLIB
30189 #
30190
30191
30192 # Check whether --with-bzlib was given.
30193 if test ${with_bzlib+y}
30194 then :
30195 withval=$with_bzlib; with_bzlib=$withval
30196 else case e in #(
30197 e) with_bzlib='yes' ;;
30198 esac
30199 fi
30200
30201
30202 if test "$with_bzlib" != 'yes'; then
30203 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
30204 fi
30205
30206 have_bzlib='no'
30207 if test "$with_bzlib" != 'no'; then
30208 BZLIB_LIBS=''
30209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZLIB support " >&5
30210 printf %s "checking for BZLIB support ... " >&6; }
30211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
30212 printf "%s\n" "" >&6; }
30213 failed=0
30214 passed=0
30215 found_libbz=0
30216
30217
30218 pkg_failed=no
30219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzip2 >= 1.0.0" >&5
30220 printf %s "checking for bzip2 >= 1.0.0... " >&6; }
30221
30222 if test -n "$BZLIB_CFLAGS"; then
30223 pkg_cv_BZLIB_CFLAGS="$BZLIB_CFLAGS"
30224 elif test -n "$PKG_CONFIG"; then
30225 if test -n "$PKG_CONFIG" && \
30226 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2 >= 1.0.0\""; } >&5
30227 ($PKG_CONFIG --exists --print-errors "bzip2 >= 1.0.0") 2>&5
30228 ac_status=$?
30229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30230 test $ac_status = 0; }; then
30231 pkg_cv_BZLIB_CFLAGS=`$PKG_CONFIG --cflags "bzip2 >= 1.0.0" 2>/dev/null`
30232 test "x$?" != "x0" && pkg_failed=yes
30233 else
30234 pkg_failed=yes
30235 fi
30236 else
30237 pkg_failed=untried
30238 fi
30239 if test -n "$BZLIB_LIBS"; then
30240 pkg_cv_BZLIB_LIBS="$BZLIB_LIBS"
30241 elif test -n "$PKG_CONFIG"; then
30242 if test -n "$PKG_CONFIG" && \
30243 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2 >= 1.0.0\""; } >&5
30244 ($PKG_CONFIG --exists --print-errors "bzip2 >= 1.0.0") 2>&5
30245 ac_status=$?
30246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30247 test $ac_status = 0; }; then
30248 pkg_cv_BZLIB_LIBS=`$PKG_CONFIG --libs "bzip2 >= 1.0.0" 2>/dev/null`
30249 test "x$?" != "x0" && pkg_failed=yes
30250 else
30251 pkg_failed=yes
30252 fi
30253 else
30254 pkg_failed=untried
30255 fi
30256
30257
30258
30259 if test $pkg_failed = yes; then
30260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30261 printf "%s\n" "no" >&6; }
30262
30263 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30264 _pkg_short_errors_supported=yes
30265 else
30266 _pkg_short_errors_supported=no
30267 fi
30268 if test $_pkg_short_errors_supported = yes; then
30269 BZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bzip2 >= 1.0.0" 2>&1`
30270 else
30271 BZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bzip2 >= 1.0.0" 2>&1`
30272 fi
30273 # Put the nasty error message in config.log where it belongs
30274 echo "$BZLIB_PKG_ERRORS" >&5
30275
30276 have_bzlib=no
30277 elif test $pkg_failed = untried; then
30278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30279 printf "%s\n" "no" >&6; }
30280 have_bzlib=no
30281 else
30282 BZLIB_CFLAGS=$pkg_cv_BZLIB_CFLAGS
30283 BZLIB_LIBS=$pkg_cv_BZLIB_LIBS
30284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30285 printf "%s\n" "yes" >&6; }
30286 have_bzlib=yes
30287 fi
30288 CFLAGS="$CFLAGS $BZLIB_CFLAGS"
30289 LIBS="$LIBS $BZLIB_LIBS"
30290
30291 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
30292 if test "x$ac_cv_header_bzlib_h" = xyes
30293 then :
30294 passed=`expr $passed + 1`
30295 else case e in #(
30296 e) failed=`expr $failed + 1` ;;
30297 esac
30298 fi
30299
30300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
30301 printf %s "checking for BZ2_bzDecompress in -lbz2... " >&6; }
30302 if test ${ac_cv_lib_bz2_BZ2_bzDecompress+y}
30303 then :
30304 printf %s "(cached) " >&6
30305 else case e in #(
30306 e) ac_check_lib_save_LIBS=$LIBS
30307 LIBS="-lbz2 $LIBS"
30308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30309 /* end confdefs.h. */
30310
30311 /* Override any GCC internal prototype to avoid an error.
30312 Use char because int might match the return type of a GCC
30313 builtin and then its argument prototype would still apply.
30314 The 'extern "C"' is for builds by C++ compilers;
30315 although this is not generally supported in C code supporting it here
30316 has little cost and some practical benefit (sr 110532). */
30317 #ifdef __cplusplus
30318 extern "C"
30319 #endif
30320 char BZ2_bzDecompress (void);
30321 int
30322 main (void)
30323 {
30324 return BZ2_bzDecompress ();
30325 ;
30326 return 0;
30327 }
30328 _ACEOF
30329 if ac_fn_c_try_link "$LINENO"
30330 then :
30331 ac_cv_lib_bz2_BZ2_bzDecompress=yes
30332 else case e in #(
30333 e) ac_cv_lib_bz2_BZ2_bzDecompress=no ;;
30334 esac
30335 fi
30336 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30337 conftest$ac_exeext conftest.$ac_ext
30338 LIBS=$ac_check_lib_save_LIBS ;;
30339 esac
30340 fi
30341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
30342 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
30343 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes
30344 then :
30345 found_libbz=`expr $found_libbz + 1`
30346 fi
30347
30348 if test "$native_win32_build" = 'yes'; then
30349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
30350 printf %s "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
30351 if test ${ac_cv_lib_bz2__imp__BZ2_decompress+y}
30352 then :
30353 printf %s "(cached) " >&6
30354 else case e in #(
30355 e) ac_check_lib_save_LIBS=$LIBS
30356 LIBS="-lbz2 $LIBS"
30357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30358 /* end confdefs.h. */
30359
30360 /* Override any GCC internal prototype to avoid an error.
30361 Use char because int might match the return type of a GCC
30362 builtin and then its argument prototype would still apply.
30363 The 'extern "C"' is for builds by C++ compilers;
30364 although this is not generally supported in C code supporting it here
30365 has little cost and some practical benefit (sr 110532). */
30366 #ifdef __cplusplus
30367 extern "C"
30368 #endif
30369 char _imp__BZ2_decompress (void);
30370 int
30371 main (void)
30372 {
30373 return _imp__BZ2_decompress ();
30374 ;
30375 return 0;
30376 }
30377 _ACEOF
30378 if ac_fn_c_try_link "$LINENO"
30379 then :
30380 ac_cv_lib_bz2__imp__BZ2_decompress=yes
30381 else case e in #(
30382 e) ac_cv_lib_bz2__imp__BZ2_decompress=no ;;
30383 esac
30384 fi
30385 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30386 conftest$ac_exeext conftest.$ac_ext
30387 LIBS=$ac_check_lib_save_LIBS ;;
30388 esac
30389 fi
30390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
30391 printf "%s\n" "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
30392 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes
30393 then :
30394 found_libbz=`expr $found_libbz + 1`
30395 fi
30396
30397 fi
30398 if test $found_libbz -gt 0; then
30399 passed=`expr $passed + 1`
30400 else
30401 failed=`expr $failed + 1`
30402 fi
30403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
30404 printf %s "checking if BZLIB package is complete... " >&6; }
30405 if test $passed -gt 0; then
30406 if test $failed -gt 0; then
30407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30408 printf "%s\n" "no -- some components failed test" >&6; }
30409 have_bzlib='no (failed tests)'
30410 else
30411 BZLIB_LIBS='-lbz2'
30412 LIBS="$BZLIB_LIBS $LIBS"
30413
30414 printf "%s\n" "#define BZLIB_DELEGATE 1" >>confdefs.h
30415
30416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30417 printf "%s\n" "yes" >&6; }
30418 have_bzlib='yes'
30419 fi
30420 else
30421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30422 printf "%s\n" "no" >&6; }
30423 fi
30424 fi
30425 if test "$have_bzlib" = 'yes'; then
30426 BZLIB_DELEGATE_TRUE=
30427 BZLIB_DELEGATE_FALSE='#'
30428 else
30429 BZLIB_DELEGATE_TRUE='#'
30430 BZLIB_DELEGATE_FALSE=
30431 fi
30432
30433
30434
30435
30436 #
30437 # Find the X11 include and library directories.
30438 #
30439 IPC_LIBS=''
30440 X11_LIBS=''
30441 XEXT_LIBS=''
30442 XT_LIBS=''
30443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
30444 printf %s "checking for X... " >&6; }
30445
30446
30447 # Check whether --with-x was given.
30448 if test ${with_x+y}
30449 then :
30450 withval=$with_x;
30451 fi
30452
30453 # $have_x is 'yes', 'no', 'disabled', or empty when we do not yet know.
30454 if test "x$with_x" = xno; then
30455 # The user explicitly disabled X.
30456 have_x=disabled
30457 else
30458 case $x_includes,$x_libraries in #(
30459 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
30460 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
30461 then :
30462 printf %s "(cached) " >&6
30463 else case e in #(
30464 e) # One or both of the vars are not set, and there is no cached value.
30465 ac_x_includes=no
30466 ac_x_libraries=no
30467 # Do we need to do anything special at all?
30468 ac_save_LIBS=$LIBS
30469 LIBS="-lX11 $LIBS"
30470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30471 /* end confdefs.h. */
30472 #include <X11/Xlib.h>
30473 int
30474 main (void)
30475 {
30476 XrmInitialize ()
30477 ;
30478 return 0;
30479 }
30480 _ACEOF
30481 if ac_fn_c_try_link "$LINENO"
30482 then :
30483 # We can compile and link X programs with no special options.
30484 ac_x_includes=
30485 ac_x_libraries=
30486 fi
30487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30488 conftest$ac_exeext conftest.$ac_ext
30489 LIBS="$ac_save_LIBS"
30490 # If that didn't work, only try xmkmf and file system searches
30491 # for native compilation.
30492 if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
30493 then :
30494 rm -f -r conftest.dir
30495 if mkdir conftest.dir; then
30496 cd conftest.dir
30497 cat >Imakefile <<'_ACEOF'
30498 incroot:
30499 @echo incroot='${INCROOT}'
30500 usrlibdir:
30501 @echo usrlibdir='${USRLIBDIR}'
30502 libdir:
30503 @echo libdir='${LIBDIR}'
30504 _ACEOF
30505 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30506 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
30507 for ac_var in incroot usrlibdir libdir; do
30508 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30509 done
30510 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30511 for ac_extension in a so sl dylib la dll; do
30512 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30513 test -f "$ac_im_libdir/libX11.$ac_extension"; then
30514 ac_im_usrlibdir=$ac_im_libdir; break
30515 fi
30516 done
30517 # Screen out bogus values from the imake configuration. They are
30518 # bogus both because they are the default anyway, and because
30519 # using them would break gcc on systems where it needs fixed includes.
30520 case $ac_im_incroot in
30521 /usr/include) ac_x_includes= ;;
30522 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30523 esac
30524 case $ac_im_usrlibdir in
30525 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
30526 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30527 esac
30528 fi
30529 cd ..
30530 rm -f -r conftest.dir
30531 fi
30532
30533 # Standard set of common directories for X headers.
30534 # Check X11 before X11Rn because it is often a symlink to the current release.
30535 ac_x_header_dirs='
30536 /usr/X11/include
30537 /usr/X11R7/include
30538 /usr/X11R6/include
30539 /usr/X11R5/include
30540 /usr/X11R4/include
30541
30542 /usr/include/X11
30543 /usr/include/X11R7
30544 /usr/include/X11R6
30545 /usr/include/X11R5
30546 /usr/include/X11R4
30547
30548 /usr/local/X11/include
30549 /usr/local/X11R7/include
30550 /usr/local/X11R6/include
30551 /usr/local/X11R5/include
30552 /usr/local/X11R4/include
30553
30554 /usr/local/include/X11
30555 /usr/local/include/X11R7
30556 /usr/local/include/X11R6
30557 /usr/local/include/X11R5
30558 /usr/local/include/X11R4
30559
30560 /opt/X11/include
30561
30562 /usr/X386/include
30563 /usr/x386/include
30564 /usr/XFree86/include/X11
30565
30566 /usr/include
30567 /usr/local/include
30568 /usr/unsupported/include
30569 /usr/athena/include
30570 /usr/local/x11r5/include
30571 /usr/lpp/Xamples/include
30572
30573 /usr/openwin/include
30574 /usr/openwin/share/include'
30575
30576 if test "$ac_x_includes" = no; then
30577 # Guess where to find include files, by looking for Xlib.h.
30578 # First, try using that file with no special directory specified.
30579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30580 /* end confdefs.h. */
30581 #include <X11/Xlib.h>
30582 _ACEOF
30583 if ac_fn_c_try_cpp "$LINENO"
30584 then :
30585 # We can compile using X headers with no special include directory.
30586 ac_x_includes=
30587 else case e in #(
30588 e) for ac_dir in $ac_x_header_dirs; do
30589 if test -r "$ac_dir/X11/Xlib.h"; then
30590 ac_x_includes=$ac_dir
30591 break
30592 fi
30593 done ;;
30594 esac
30595 fi
30596 rm -f conftest.err conftest.i conftest.$ac_ext
30597 fi # $ac_x_includes = no
30598
30599 if test "$ac_x_libraries" = no; then
30600 # Check for the libraries.
30601 # See if we find them without any special options.
30602 # Don't add to $LIBS permanently.
30603 ac_save_LIBS=$LIBS
30604 LIBS="-lX11 $LIBS"
30605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30606 /* end confdefs.h. */
30607 #include <X11/Xlib.h>
30608 int
30609 main (void)
30610 {
30611 XrmInitialize ()
30612 ;
30613 return 0;
30614 }
30615 _ACEOF
30616 if ac_fn_c_try_link "$LINENO"
30617 then :
30618 LIBS=$ac_save_LIBS
30619 # We can link X programs with no special library path.
30620 ac_x_libraries=
30621 else case e in #(
30622 e) LIBS=$ac_save_LIBS
30623 for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30624 do
30625 # Don't even attempt the hair of trying to link an X program!
30626 for ac_extension in a so sl dylib la dll; do
30627 if test -r "$ac_dir/libX11.$ac_extension"; then
30628 ac_x_libraries=$ac_dir
30629 break 2
30630 fi
30631 done
30632 done ;;
30633 esac
30634 fi
30635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30636 conftest$ac_exeext conftest.$ac_ext
30637 fi # $ac_x_libraries = no
30638
30639 fi
30640 # Record the results.
30641 case $ac_x_includes,$ac_x_libraries in #(
30642 no,* | *,no | *\'*) :
30643 # Didn't find X, or a directory has "'" in its name.
30644 ac_cv_have_x="have_x=no" ;; #(
30645 *) :
30646 # Record where we found X for the cache.
30647 ac_cv_have_x="have_x=yes\
30648 ac_x_includes='$ac_x_includes'\
30649 ac_x_libraries='$ac_x_libraries'" ;;
30650 esac ;;
30651 esac
30652 fi
30653 ;; #(
30654 *) have_x=yes;;
30655 esac
30656 eval "$ac_cv_have_x"
30657 fi # $with_x != no
30658
30659 if test "$have_x" != yes; then
30660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
30661 printf "%s\n" "$have_x" >&6; }
30662 no_x=yes
30663 else
30664 # If each of the values was on the command line, it overrides each guess.
30665 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30666 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30667 # Update the cache value to reflect the command line values.
30668 ac_cv_have_x="have_x=yes\
30669 ac_x_includes='$x_includes'\
30670 ac_x_libraries='$x_libraries'"
30671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
30672 printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
30673 fi
30674
30675 if test "$no_x" = yes; then
30676 # Not all programs may use this symbol, but it does not hurt to define it.
30677
30678 printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
30679
30680 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30681 else
30682 if test -n "$x_includes"; then
30683 X_CFLAGS="$X_CFLAGS -I$x_includes"
30684 fi
30685
30686 # It would also be nice to do this for all -L options, not just this one.
30687 if test -n "$x_libraries"; then
30688 X_LIBS="$X_LIBS -L$x_libraries"
30689 # For Solaris; some versions of Sun CC require a space after -R and
30690 # others require no space. Words are not sufficient . . . .
30691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
30692 printf %s "checking whether -R must be followed by a space... " >&6; }
30693 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30694 ac_xsave_c_werror_flag=$ac_c_werror_flag
30695 ac_c_werror_flag=yes
30696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30697 /* end confdefs.h. */
30698
30699 int
30700 main (void)
30701 {
30702
30703 ;
30704 return 0;
30705 }
30706 _ACEOF
30707 if ac_fn_c_try_link "$LINENO"
30708 then :
30709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30710 printf "%s\n" "no" >&6; }
30711 X_LIBS="$X_LIBS -R$x_libraries"
30712 else case e in #(
30713 e) LIBS="$ac_xsave_LIBS -R $x_libraries"
30714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30715 /* end confdefs.h. */
30716
30717 int
30718 main (void)
30719 {
30720
30721 ;
30722 return 0;
30723 }
30724 _ACEOF
30725 if ac_fn_c_try_link "$LINENO"
30726 then :
30727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30728 printf "%s\n" "yes" >&6; }
30729 X_LIBS="$X_LIBS -R $x_libraries"
30730 else case e in #(
30731 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
30732 printf "%s\n" "neither works" >&6; } ;;
30733 esac
30734 fi
30735 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30736 conftest$ac_exeext conftest.$ac_ext ;;
30737 esac
30738 fi
30739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30740 conftest$ac_exeext conftest.$ac_ext
30741 ac_c_werror_flag=$ac_xsave_c_werror_flag
30742 LIBS=$ac_xsave_LIBS
30743 fi
30744
30745 # Check for system-dependent libraries X programs must link with.
30746 # Do this before checking for the system-independent R6 libraries
30747 # (-lICE), since we may need -lsocket or whatever for X linking.
30748
30749 if test "$ISC" = yes; then
30750 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30751 else
30752 # Martyn Johnson says this is needed for Ultrix, if the X
30753 # libraries were built with DECnet support. And Karl Berry says
30754 # the Alpha needs dnet_stub (dnet does not exist).
30755 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30757 /* end confdefs.h. */
30758
30759 /* Override any GCC internal prototype to avoid an error.
30760 Use char because int might match the return type of a GCC
30761 builtin and then its argument prototype would still apply.
30762 The 'extern "C"' is for builds by C++ compilers;
30763 although this is not generally supported in C code supporting it here
30764 has little cost and some practical benefit (sr 110532). */
30765 #ifdef __cplusplus
30766 extern "C"
30767 #endif
30768 char XOpenDisplay (void);
30769 int
30770 main (void)
30771 {
30772 return XOpenDisplay ();
30773 ;
30774 return 0;
30775 }
30776 _ACEOF
30777 if ac_fn_c_try_link "$LINENO"
30778 then :
30779
30780 else case e in #(
30781 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
30782 printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
30783 if test ${ac_cv_lib_dnet_dnet_ntoa+y}
30784 then :
30785 printf %s "(cached) " >&6
30786 else case e in #(
30787 e) ac_check_lib_save_LIBS=$LIBS
30788 LIBS="-ldnet $LIBS"
30789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30790 /* end confdefs.h. */
30791
30792 /* Override any GCC internal prototype to avoid an error.
30793 Use char because int might match the return type of a GCC
30794 builtin and then its argument prototype would still apply.
30795 The 'extern "C"' is for builds by C++ compilers;
30796 although this is not generally supported in C code supporting it here
30797 has little cost and some practical benefit (sr 110532). */
30798 #ifdef __cplusplus
30799 extern "C"
30800 #endif
30801 char dnet_ntoa (void);
30802 int
30803 main (void)
30804 {
30805 return dnet_ntoa ();
30806 ;
30807 return 0;
30808 }
30809 _ACEOF
30810 if ac_fn_c_try_link "$LINENO"
30811 then :
30812 ac_cv_lib_dnet_dnet_ntoa=yes
30813 else case e in #(
30814 e) ac_cv_lib_dnet_dnet_ntoa=no ;;
30815 esac
30816 fi
30817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30818 conftest$ac_exeext conftest.$ac_ext
30819 LIBS=$ac_check_lib_save_LIBS ;;
30820 esac
30821 fi
30822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30823 printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30824 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
30825 then :
30826 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30827 fi
30828
30829 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
30831 printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
30832 if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
30833 then :
30834 printf %s "(cached) " >&6
30835 else case e in #(
30836 e) ac_check_lib_save_LIBS=$LIBS
30837 LIBS="-ldnet_stub $LIBS"
30838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30839 /* end confdefs.h. */
30840
30841 /* Override any GCC internal prototype to avoid an error.
30842 Use char because int might match the return type of a GCC
30843 builtin and then its argument prototype would still apply.
30844 The 'extern "C"' is for builds by C++ compilers;
30845 although this is not generally supported in C code supporting it here
30846 has little cost and some practical benefit (sr 110532). */
30847 #ifdef __cplusplus
30848 extern "C"
30849 #endif
30850 char dnet_ntoa (void);
30851 int
30852 main (void)
30853 {
30854 return dnet_ntoa ();
30855 ;
30856 return 0;
30857 }
30858 _ACEOF
30859 if ac_fn_c_try_link "$LINENO"
30860 then :
30861 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30862 else case e in #(
30863 e) ac_cv_lib_dnet_stub_dnet_ntoa=no ;;
30864 esac
30865 fi
30866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30867 conftest$ac_exeext conftest.$ac_ext
30868 LIBS=$ac_check_lib_save_LIBS ;;
30869 esac
30870 fi
30871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30872 printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30873 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
30874 then :
30875 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30876 fi
30877
30878 fi ;;
30879 esac
30880 fi
30881 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30882 conftest$ac_exeext conftest.$ac_ext
30883 LIBS="$ac_xsave_LIBS"
30884
30885 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
30886 # to get the SysV transport functions.
30887 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30888 # needs -lnsl.
30889 # The nsl library prevents programs from opening the X display
30890 # on Irix 5.2, according to T.E. Dickey.
30891 # The functions gethostbyname, getservbyname, and inet_addr are
30892 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30893 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
30894 if test "x$ac_cv_func_gethostbyname" = xyes
30895 then :
30896
30897 fi
30898
30899 if test $ac_cv_func_gethostbyname = no; then
30900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
30901 printf %s "checking for gethostbyname in -lnsl... " >&6; }
30902 if test ${ac_cv_lib_nsl_gethostbyname+y}
30903 then :
30904 printf %s "(cached) " >&6
30905 else case e in #(
30906 e) ac_check_lib_save_LIBS=$LIBS
30907 LIBS="-lnsl $LIBS"
30908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30909 /* end confdefs.h. */
30910
30911 /* Override any GCC internal prototype to avoid an error.
30912 Use char because int might match the return type of a GCC
30913 builtin and then its argument prototype would still apply.
30914 The 'extern "C"' is for builds by C++ compilers;
30915 although this is not generally supported in C code supporting it here
30916 has little cost and some practical benefit (sr 110532). */
30917 #ifdef __cplusplus
30918 extern "C"
30919 #endif
30920 char gethostbyname (void);
30921 int
30922 main (void)
30923 {
30924 return gethostbyname ();
30925 ;
30926 return 0;
30927 }
30928 _ACEOF
30929 if ac_fn_c_try_link "$LINENO"
30930 then :
30931 ac_cv_lib_nsl_gethostbyname=yes
30932 else case e in #(
30933 e) ac_cv_lib_nsl_gethostbyname=no ;;
30934 esac
30935 fi
30936 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30937 conftest$ac_exeext conftest.$ac_ext
30938 LIBS=$ac_check_lib_save_LIBS ;;
30939 esac
30940 fi
30941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
30942 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
30943 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
30944 then :
30945 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30946 fi
30947
30948 if test $ac_cv_lib_nsl_gethostbyname = no; then
30949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
30950 printf %s "checking for gethostbyname in -lbsd... " >&6; }
30951 if test ${ac_cv_lib_bsd_gethostbyname+y}
30952 then :
30953 printf %s "(cached) " >&6
30954 else case e in #(
30955 e) ac_check_lib_save_LIBS=$LIBS
30956 LIBS="-lbsd $LIBS"
30957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30958 /* end confdefs.h. */
30959
30960 /* Override any GCC internal prototype to avoid an error.
30961 Use char because int might match the return type of a GCC
30962 builtin and then its argument prototype would still apply.
30963 The 'extern "C"' is for builds by C++ compilers;
30964 although this is not generally supported in C code supporting it here
30965 has little cost and some practical benefit (sr 110532). */
30966 #ifdef __cplusplus
30967 extern "C"
30968 #endif
30969 char gethostbyname (void);
30970 int
30971 main (void)
30972 {
30973 return gethostbyname ();
30974 ;
30975 return 0;
30976 }
30977 _ACEOF
30978 if ac_fn_c_try_link "$LINENO"
30979 then :
30980 ac_cv_lib_bsd_gethostbyname=yes
30981 else case e in #(
30982 e) ac_cv_lib_bsd_gethostbyname=no ;;
30983 esac
30984 fi
30985 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30986 conftest$ac_exeext conftest.$ac_ext
30987 LIBS=$ac_check_lib_save_LIBS ;;
30988 esac
30989 fi
30990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
30991 printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
30992 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
30993 then :
30994 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30995 fi
30996
30997 fi
30998 fi
30999
31000 # [email protected] says without -lsocket,
31001 # socket/setsockopt and other routines are undefined under SCO ODT
31002 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
31003 # on later versions), says Simon Leinen: it contains gethostby*
31004 # variants that don't use the name server (or something). -lsocket
31005 # must be given before -lnsl if both are needed. We assume that
31006 # if connect needs -lnsl, so does gethostbyname.
31007 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
31008 if test "x$ac_cv_func_connect" = xyes
31009 then :
31010
31011 fi
31012
31013 if test $ac_cv_func_connect = no; then
31014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
31015 printf %s "checking for connect in -lsocket... " >&6; }
31016 if test ${ac_cv_lib_socket_connect+y}
31017 then :
31018 printf %s "(cached) " >&6
31019 else case e in #(
31020 e) ac_check_lib_save_LIBS=$LIBS
31021 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
31022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31023 /* end confdefs.h. */
31024
31025 /* Override any GCC internal prototype to avoid an error.
31026 Use char because int might match the return type of a GCC
31027 builtin and then its argument prototype would still apply.
31028 The 'extern "C"' is for builds by C++ compilers;
31029 although this is not generally supported in C code supporting it here
31030 has little cost and some practical benefit (sr 110532). */
31031 #ifdef __cplusplus
31032 extern "C"
31033 #endif
31034 char connect (void);
31035 int
31036 main (void)
31037 {
31038 return connect ();
31039 ;
31040 return 0;
31041 }
31042 _ACEOF
31043 if ac_fn_c_try_link "$LINENO"
31044 then :
31045 ac_cv_lib_socket_connect=yes
31046 else case e in #(
31047 e) ac_cv_lib_socket_connect=no ;;
31048 esac
31049 fi
31050 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31051 conftest$ac_exeext conftest.$ac_ext
31052 LIBS=$ac_check_lib_save_LIBS ;;
31053 esac
31054 fi
31055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
31056 printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
31057 if test "x$ac_cv_lib_socket_connect" = xyes
31058 then :
31059 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
31060 fi
31061
31062 fi
31063
31064 # Guillermo Gomez says -lposix is necessary on A/UX.
31065 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
31066 if test "x$ac_cv_func_remove" = xyes
31067 then :
31068
31069 fi
31070
31071 if test $ac_cv_func_remove = no; then
31072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
31073 printf %s "checking for remove in -lposix... " >&6; }
31074 if test ${ac_cv_lib_posix_remove+y}
31075 then :
31076 printf %s "(cached) " >&6
31077 else case e in #(
31078 e) ac_check_lib_save_LIBS=$LIBS
31079 LIBS="-lposix $LIBS"
31080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31081 /* end confdefs.h. */
31082
31083 /* Override any GCC internal prototype to avoid an error.
31084 Use char because int might match the return type of a GCC
31085 builtin and then its argument prototype would still apply.
31086 The 'extern "C"' is for builds by C++ compilers;
31087 although this is not generally supported in C code supporting it here
31088 has little cost and some practical benefit (sr 110532). */
31089 #ifdef __cplusplus
31090 extern "C"
31091 #endif
31092 char remove (void);
31093 int
31094 main (void)
31095 {
31096 return remove ();
31097 ;
31098 return 0;
31099 }
31100 _ACEOF
31101 if ac_fn_c_try_link "$LINENO"
31102 then :
31103 ac_cv_lib_posix_remove=yes
31104 else case e in #(
31105 e) ac_cv_lib_posix_remove=no ;;
31106 esac
31107 fi
31108 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31109 conftest$ac_exeext conftest.$ac_ext
31110 LIBS=$ac_check_lib_save_LIBS ;;
31111 esac
31112 fi
31113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
31114 printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
31115 if test "x$ac_cv_lib_posix_remove" = xyes
31116 then :
31117 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31118 fi
31119
31120 fi
31121
31122 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31123 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
31124 if test "x$ac_cv_func_shmat" = xyes
31125 then :
31126
31127 fi
31128
31129 if test $ac_cv_func_shmat = no; then
31130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
31131 printf %s "checking for shmat in -lipc... " >&6; }
31132 if test ${ac_cv_lib_ipc_shmat+y}
31133 then :
31134 printf %s "(cached) " >&6
31135 else case e in #(
31136 e) ac_check_lib_save_LIBS=$LIBS
31137 LIBS="-lipc $LIBS"
31138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31139 /* end confdefs.h. */
31140
31141 /* Override any GCC internal prototype to avoid an error.
31142 Use char because int might match the return type of a GCC
31143 builtin and then its argument prototype would still apply.
31144 The 'extern "C"' is for builds by C++ compilers;
31145 although this is not generally supported in C code supporting it here
31146 has little cost and some practical benefit (sr 110532). */
31147 #ifdef __cplusplus
31148 extern "C"
31149 #endif
31150 char shmat (void);
31151 int
31152 main (void)
31153 {
31154 return shmat ();
31155 ;
31156 return 0;
31157 }
31158 _ACEOF
31159 if ac_fn_c_try_link "$LINENO"
31160 then :
31161 ac_cv_lib_ipc_shmat=yes
31162 else case e in #(
31163 e) ac_cv_lib_ipc_shmat=no ;;
31164 esac
31165 fi
31166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31167 conftest$ac_exeext conftest.$ac_ext
31168 LIBS=$ac_check_lib_save_LIBS ;;
31169 esac
31170 fi
31171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
31172 printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
31173 if test "x$ac_cv_lib_ipc_shmat" = xyes
31174 then :
31175 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31176 fi
31177
31178 fi
31179 fi
31180
31181 # Check for libraries that X11R6 Xt/Xaw programs need.
31182 ac_save_LDFLAGS=$LDFLAGS
31183 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31184 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31185 # check for ICE first), but we must link in the order -lSM -lICE or
31186 # we get undefined symbols. So assume we have SM if we have ICE.
31187 # These have to be linked with before -lX11, unlike the other
31188 # libraries we check for below, so use a different variable.
31189 # John Interrante, Karl Berry
31190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
31191 printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
31192 if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
31193 then :
31194 printf %s "(cached) " >&6
31195 else case e in #(
31196 e) ac_check_lib_save_LIBS=$LIBS
31197 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31199 /* end confdefs.h. */
31200
31201 /* Override any GCC internal prototype to avoid an error.
31202 Use char because int might match the return type of a GCC
31203 builtin and then its argument prototype would still apply.
31204 The 'extern "C"' is for builds by C++ compilers;
31205 although this is not generally supported in C code supporting it here
31206 has little cost and some practical benefit (sr 110532). */
31207 #ifdef __cplusplus
31208 extern "C"
31209 #endif
31210 char IceConnectionNumber (void);
31211 int
31212 main (void)
31213 {
31214 return IceConnectionNumber ();
31215 ;
31216 return 0;
31217 }
31218 _ACEOF
31219 if ac_fn_c_try_link "$LINENO"
31220 then :
31221 ac_cv_lib_ICE_IceConnectionNumber=yes
31222 else case e in #(
31223 e) ac_cv_lib_ICE_IceConnectionNumber=no ;;
31224 esac
31225 fi
31226 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31227 conftest$ac_exeext conftest.$ac_ext
31228 LIBS=$ac_check_lib_save_LIBS ;;
31229 esac
31230 fi
31231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31232 printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31233 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
31234 then :
31235 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31236 fi
31237
31238 LDFLAGS=$ac_save_LDFLAGS
31239
31240 fi
31241
31242 if test "$no_x" != 'yes'; then
31243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31244 printf "%s\n" "-------------------------------------------------------------" >&6; }
31245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
31246 printf %s "checking for X11... " >&6; }
31247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
31248 printf "%s\n" "" >&6; }
31249 LDFLAGS="$LDFLAGS $X_LIBS"
31250 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
31251 LIBS="$X11_LIBS $LIBS"
31252 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
31253
31254
31255 printf "%s\n" "#define X11_DELEGATE 1" >>confdefs.h
31256
31257 #
31258 # Check for X11 shared memory extension
31259 #
31260 # shmctl is required to support the shared memory extension
31261 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
31262 if test "x$ac_cv_func_shmctl" = xyes
31263 then :
31264 have_shmctl='yes'
31265 fi
31266
31267 if test "$have_shmctl" != 'yes'; then
31268 PERSIST_LIBS=$LIBS
31269 LIBS="$LIBS -lcygipc"
31270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31271 /* end confdefs.h. */
31272
31273 /* Override any GCC internal prototype to avoid an error.
31274 Use char because int might match the return type of a GCC
31275 builtin and then its argument prototype would still apply.
31276 The 'extern "C"' is for builds by C++ compilers;
31277 although this is not generally supported in C code supporting it here
31278 has little cost and some practical benefit (sr 110532). */
31279 #ifdef __cplusplus
31280 extern "C"
31281 #endif
31282 char shmctl (void);
31283 int
31284 main (void)
31285 {
31286 return shmctl ();
31287 ;
31288 return 0;
31289 }
31290 _ACEOF
31291 if ac_fn_c_try_link "$LINENO"
31292 then :
31293 have_shmctl='yes'; IPC_LIBS='-lcygipc'
31294 fi
31295 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31296 conftest$ac_exeext conftest.$ac_ext
31297 LIBS=$PERSIST_LIBS
31298 fi
31299
31300 if test "$have_shmctl" = 'yes'; then
31301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
31302 printf %s "checking for XShmAttach in -lXext... " >&6; }
31303 if test ${ac_cv_lib_Xext_XShmAttach+y}
31304 then :
31305 printf %s "(cached) " >&6
31306 else case e in #(
31307 e) ac_check_lib_save_LIBS=$LIBS
31308 LIBS="-lXext $LIBS"
31309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31310 /* end confdefs.h. */
31311
31312 /* Override any GCC internal prototype to avoid an error.
31313 Use char because int might match the return type of a GCC
31314 builtin and then its argument prototype would still apply.
31315 The 'extern "C"' is for builds by C++ compilers;
31316 although this is not generally supported in C code supporting it here
31317 has little cost and some practical benefit (sr 110532). */
31318 #ifdef __cplusplus
31319 extern "C"
31320 #endif
31321 char XShmAttach (void);
31322 int
31323 main (void)
31324 {
31325 return XShmAttach ();
31326 ;
31327 return 0;
31328 }
31329 _ACEOF
31330 if ac_fn_c_try_link "$LINENO"
31331 then :
31332 ac_cv_lib_Xext_XShmAttach=yes
31333 else case e in #(
31334 e) ac_cv_lib_Xext_XShmAttach=no ;;
31335 esac
31336 fi
31337 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31338 conftest$ac_exeext conftest.$ac_ext
31339 LIBS=$ac_check_lib_save_LIBS ;;
31340 esac
31341 fi
31342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
31343 printf "%s\n" "$ac_cv_lib_Xext_XShmAttach" >&6; }
31344 if test "x$ac_cv_lib_Xext_XShmAttach" = xyes
31345 then :
31346 XEXT_LIBS='-lXext' ;
31347 printf "%s\n" "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
31348
31349 fi
31350
31351 fi
31352
31353 #
31354 # Check for X11 shape extension
31355 #
31356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
31357 printf %s "checking for XShapeCombineMask in -lXext... " >&6; }
31358 if test ${ac_cv_lib_Xext_XShapeCombineMask+y}
31359 then :
31360 printf %s "(cached) " >&6
31361 else case e in #(
31362 e) ac_check_lib_save_LIBS=$LIBS
31363 LIBS="-lXext $LIBS"
31364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31365 /* end confdefs.h. */
31366
31367 /* Override any GCC internal prototype to avoid an error.
31368 Use char because int might match the return type of a GCC
31369 builtin and then its argument prototype would still apply.
31370 The 'extern "C"' is for builds by C++ compilers;
31371 although this is not generally supported in C code supporting it here
31372 has little cost and some practical benefit (sr 110532). */
31373 #ifdef __cplusplus
31374 extern "C"
31375 #endif
31376 char XShapeCombineMask (void);
31377 int
31378 main (void)
31379 {
31380 return XShapeCombineMask ();
31381 ;
31382 return 0;
31383 }
31384 _ACEOF
31385 if ac_fn_c_try_link "$LINENO"
31386 then :
31387 ac_cv_lib_Xext_XShapeCombineMask=yes
31388 else case e in #(
31389 e) ac_cv_lib_Xext_XShapeCombineMask=no ;;
31390 esac
31391 fi
31392 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31393 conftest$ac_exeext conftest.$ac_ext
31394 LIBS=$ac_check_lib_save_LIBS ;;
31395 esac
31396 fi
31397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
31398 printf "%s\n" "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
31399 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes
31400 then :
31401 XEXT_LIBS='-lXext' ;
31402 printf "%s\n" "#define HAVE_SHAPE 1" >>confdefs.h
31403
31404 fi
31405
31406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
31407 printf %s "checking for XtSetEventDispatcher in -lXt... " >&6; }
31408 if test ${ac_cv_lib_Xt_XtSetEventDispatcher+y}
31409 then :
31410 printf %s "(cached) " >&6
31411 else case e in #(
31412 e) ac_check_lib_save_LIBS=$LIBS
31413 LIBS="-lXt $LIBS"
31414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31415 /* end confdefs.h. */
31416
31417 /* Override any GCC internal prototype to avoid an error.
31418 Use char because int might match the return type of a GCC
31419 builtin and then its argument prototype would still apply.
31420 The 'extern "C"' is for builds by C++ compilers;
31421 although this is not generally supported in C code supporting it here
31422 has little cost and some practical benefit (sr 110532). */
31423 #ifdef __cplusplus
31424 extern "C"
31425 #endif
31426 char XtSetEventDispatcher (void);
31427 int
31428 main (void)
31429 {
31430 return XtSetEventDispatcher ();
31431 ;
31432 return 0;
31433 }
31434 _ACEOF
31435 if ac_fn_c_try_link "$LINENO"
31436 then :
31437 ac_cv_lib_Xt_XtSetEventDispatcher=yes
31438 else case e in #(
31439 e) ac_cv_lib_Xt_XtSetEventDispatcher=no ;;
31440 esac
31441 fi
31442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31443 conftest$ac_exeext conftest.$ac_ext
31444 LIBS=$ac_check_lib_save_LIBS ;;
31445 esac
31446 fi
31447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
31448 printf "%s\n" "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
31449 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes
31450 then :
31451 XT_LIBS='-lXt'
31452 fi
31453
31454 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
31455 fi
31456 if test "$no_x" != 'yes'; then
31457 have_x='yes'
31458 else
31459 have_x='no'
31460 fi
31461 if test "$have_x" = 'yes'; then
31462 X11_DELEGATE_TRUE=
31463 X11_DELEGATE_FALSE='#'
31464 else
31465 X11_DELEGATE_TRUE='#'
31466 X11_DELEGATE_FALSE=
31467 fi
31468
31469
31470
31471
31472
31473 #
31474 # Check for ZIP
31475 #
31476
31477 # Check whether --with-zip was given.
31478 if test ${with_zip+y}
31479 then :
31480 withval=$with_zip; with_zip=$withval
31481 else case e in #(
31482 e) with_zip='yes' ;;
31483 esac
31484 fi
31485
31486
31487 if test "$with_zip" != 'yes'; then
31488 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zip=$with_zip "
31489 fi
31490
31491 have_zip='no'
31492 ZIP_CFLAGS=""
31493 ZIP_LIBS=""
31494 ZIP_PKG=""
31495 if test "x$with_zip" = "xyes"; then
31496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31497 printf "%s\n" "-------------------------------------------------------------" >&6; }
31498
31499 pkg_failed=no
31500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzip >= 1.0.0" >&5
31501 printf %s "checking for libzip >= 1.0.0... " >&6; }
31502
31503 if test -n "$ZIP_CFLAGS"; then
31504 pkg_cv_ZIP_CFLAGS="$ZIP_CFLAGS"
31505 elif test -n "$PKG_CONFIG"; then
31506 if test -n "$PKG_CONFIG" && \
31507 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip >= 1.0.0\""; } >&5
31508 ($PKG_CONFIG --exists --print-errors "libzip >= 1.0.0") 2>&5
31509 ac_status=$?
31510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31511 test $ac_status = 0; }; then
31512 pkg_cv_ZIP_CFLAGS=`$PKG_CONFIG --cflags "libzip >= 1.0.0" 2>/dev/null`
31513 test "x$?" != "x0" && pkg_failed=yes
31514 else
31515 pkg_failed=yes
31516 fi
31517 else
31518 pkg_failed=untried
31519 fi
31520 if test -n "$ZIP_LIBS"; then
31521 pkg_cv_ZIP_LIBS="$ZIP_LIBS"
31522 elif test -n "$PKG_CONFIG"; then
31523 if test -n "$PKG_CONFIG" && \
31524 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip >= 1.0.0\""; } >&5
31525 ($PKG_CONFIG --exists --print-errors "libzip >= 1.0.0") 2>&5
31526 ac_status=$?
31527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31528 test $ac_status = 0; }; then
31529 pkg_cv_ZIP_LIBS=`$PKG_CONFIG --libs "libzip >= 1.0.0" 2>/dev/null`
31530 test "x$?" != "x0" && pkg_failed=yes
31531 else
31532 pkg_failed=yes
31533 fi
31534 else
31535 pkg_failed=untried
31536 fi
31537
31538
31539
31540 if test $pkg_failed = yes; then
31541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31542 printf "%s\n" "no" >&6; }
31543
31544 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31545 _pkg_short_errors_supported=yes
31546 else
31547 _pkg_short_errors_supported=no
31548 fi
31549 if test $_pkg_short_errors_supported = yes; then
31550 ZIP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzip >= 1.0.0" 2>&1`
31551 else
31552 ZIP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzip >= 1.0.0" 2>&1`
31553 fi
31554 # Put the nasty error message in config.log where it belongs
31555 echo "$ZIP_PKG_ERRORS" >&5
31556
31557 have_zip=no
31558 elif test $pkg_failed = untried; then
31559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31560 printf "%s\n" "no" >&6; }
31561 have_zip=no
31562 else
31563 ZIP_CFLAGS=$pkg_cv_ZIP_CFLAGS
31564 ZIP_LIBS=$pkg_cv_ZIP_LIBS
31565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31566 printf "%s\n" "yes" >&6; }
31567 have_zip=yes
31568 fi
31569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
31570 printf "%s\n" "" >&6; }
31571 fi
31572
31573 if test "$have_zip" = 'yes'; then
31574
31575 printf "%s\n" "#define ZIP_DELEGATE 1" >>confdefs.h
31576
31577 CFLAGS="$ZIP_CFLAGS $CFLAGS"
31578 LIBS="$ZIP_LIBS $LIBS"
31579 fi
31580
31581 if test "$have_zip" = 'yes'; then
31582 ZIP_DELEGATE_TRUE=
31583 ZIP_DELEGATE_FALSE='#'
31584 else
31585 ZIP_DELEGATE_TRUE='#'
31586 ZIP_DELEGATE_FALSE=
31587 fi
31588
31589
31590
31591
31592
31593 #
31594 # Check for ZLIB
31595 #
31596
31597 # Check whether --with-zlib was given.
31598 if test ${with_zlib+y}
31599 then :
31600 withval=$with_zlib; with_zlib=$withval
31601 else case e in #(
31602 e) with_zlib='yes' ;;
31603 esac
31604 fi
31605
31606
31607 if test "$with_zlib" != 'yes'; then
31608 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
31609 fi
31610
31611 have_zlib='no'
31612 ZLIB_CFLAGS=""
31613 ZLIB_LIBS=""
31614 ZLIB_PKG=""
31615 if test "x$with_zlib" = "xyes"; then
31616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31617 printf "%s\n" "-------------------------------------------------------------" >&6; }
31618
31619 pkg_failed=no
31620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.0.0" >&5
31621 printf %s "checking for zlib >= 1.0.0... " >&6; }
31622
31623 if test -n "$ZLIB_CFLAGS"; then
31624 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
31625 elif test -n "$PKG_CONFIG"; then
31626 if test -n "$PKG_CONFIG" && \
31627 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
31628 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
31629 ac_status=$?
31630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31631 test $ac_status = 0; }; then
31632 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
31633 test "x$?" != "x0" && pkg_failed=yes
31634 else
31635 pkg_failed=yes
31636 fi
31637 else
31638 pkg_failed=untried
31639 fi
31640 if test -n "$ZLIB_LIBS"; then
31641 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
31642 elif test -n "$PKG_CONFIG"; then
31643 if test -n "$PKG_CONFIG" && \
31644 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
31645 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
31646 ac_status=$?
31647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31648 test $ac_status = 0; }; then
31649 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
31650 test "x$?" != "x0" && pkg_failed=yes
31651 else
31652 pkg_failed=yes
31653 fi
31654 else
31655 pkg_failed=untried
31656 fi
31657
31658
31659
31660 if test $pkg_failed = yes; then
31661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31662 printf "%s\n" "no" >&6; }
31663
31664 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31665 _pkg_short_errors_supported=yes
31666 else
31667 _pkg_short_errors_supported=no
31668 fi
31669 if test $_pkg_short_errors_supported = yes; then
31670 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
31671 else
31672 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
31673 fi
31674 # Put the nasty error message in config.log where it belongs
31675 echo "$ZLIB_PKG_ERRORS" >&5
31676
31677 have_zlib=no
31678 elif test $pkg_failed = untried; then
31679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31680 printf "%s\n" "no" >&6; }
31681 have_zlib=no
31682 else
31683 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
31684 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
31685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31686 printf "%s\n" "yes" >&6; }
31687 have_zlib=yes
31688 fi
31689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
31690 printf "%s\n" "" >&6; }
31691 fi
31692
31693 if test "$have_zlib" = 'yes'; then
31694
31695 printf "%s\n" "#define ZLIB_DELEGATE 1" >>confdefs.h
31696
31697 CFLAGS="$ZLIB_CFLAGS $CFLAGS"
31698 LIBS="$ZLIB_LIBS $LIBS"
31699 fi
31700
31701 if test "$have_zlib" = 'yes'; then
31702 ZLIB_DELEGATE_TRUE=
31703 ZLIB_DELEGATE_FALSE='#'
31704 else
31705 ZLIB_DELEGATE_TRUE='#'
31706 ZLIB_DELEGATE_FALSE=
31707 fi
31708
31709
31710
31711
31712
31713 #
31714 # Check for ZSTD
31715 #
31716
31717 # Check whether --with-zstd was given.
31718 if test ${with_zstd+y}
31719 then :
31720 withval=$with_zstd; with_zstd=$withval
31721 else case e in #(
31722 e) with_zstd='yes' ;;
31723 esac
31724 fi
31725
31726
31727 if test "$with_zstd" != 'yes'; then
31728 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zstd=$with_zstd "
31729 fi
31730
31731 have_zstd='no'
31732 ZSTD_CFLAGS=""
31733 ZSTD_LIBS=""
31734 ZSTD_PKG=""
31735 if test "x$with_zstd" = "xyes"; then
31736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31737 printf "%s\n" "-------------------------------------------------------------" >&6; }
31738
31739 pkg_failed=no
31740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.0.0" >&5
31741 printf %s "checking for libzstd >= 1.0.0... " >&6; }
31742
31743 if test -n "$LIBZSTD_CFLAGS"; then
31744 pkg_cv_LIBZSTD_CFLAGS="$LIBZSTD_CFLAGS"
31745 elif test -n "$PKG_CONFIG"; then
31746 if test -n "$PKG_CONFIG" && \
31747 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.0.0\""; } >&5
31748 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.0.0") 2>&5
31749 ac_status=$?
31750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31751 test $ac_status = 0; }; then
31752 pkg_cv_LIBZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.0.0" 2>/dev/null`
31753 test "x$?" != "x0" && pkg_failed=yes
31754 else
31755 pkg_failed=yes
31756 fi
31757 else
31758 pkg_failed=untried
31759 fi
31760 if test -n "$LIBZSTD_LIBS"; then
31761 pkg_cv_LIBZSTD_LIBS="$LIBZSTD_LIBS"
31762 elif test -n "$PKG_CONFIG"; then
31763 if test -n "$PKG_CONFIG" && \
31764 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.0.0\""; } >&5
31765 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.0.0") 2>&5
31766 ac_status=$?
31767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31768 test $ac_status = 0; }; then
31769 pkg_cv_LIBZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.0.0" 2>/dev/null`
31770 test "x$?" != "x0" && pkg_failed=yes
31771 else
31772 pkg_failed=yes
31773 fi
31774 else
31775 pkg_failed=untried
31776 fi
31777
31778
31779
31780 if test $pkg_failed = yes; then
31781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31782 printf "%s\n" "no" >&6; }
31783
31784 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31785 _pkg_short_errors_supported=yes
31786 else
31787 _pkg_short_errors_supported=no
31788 fi
31789 if test $_pkg_short_errors_supported = yes; then
31790 LIBZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.0.0" 2>&1`
31791 else
31792 LIBZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.0.0" 2>&1`
31793 fi
31794 # Put the nasty error message in config.log where it belongs
31795 echo "$LIBZSTD_PKG_ERRORS" >&5
31796
31797 have_zstd=no
31798 elif test $pkg_failed = untried; then
31799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31800 printf "%s\n" "no" >&6; }
31801 have_zstd=no
31802 else
31803 LIBZSTD_CFLAGS=$pkg_cv_LIBZSTD_CFLAGS
31804 LIBZSTD_LIBS=$pkg_cv_LIBZSTD_LIBS
31805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31806 printf "%s\n" "yes" >&6; }
31807 have_zstd=yes
31808 fi
31809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
31810 printf "%s\n" "" >&6; }
31811 fi
31812
31813 if test "$have_zstd" = 'yes'; then
31814
31815 printf "%s\n" "#define ZSTD_DELEGATE 1" >>confdefs.h
31816
31817 CFLAGS="$ZSTD_CFLAGS $CFLAGS"
31818 LIBS="$ZSTD_LIBS $LIBS"
31819 fi
31820
31821 if test "$have_zstd" = 'yes'; then
31822 ZSTD_DELEGATE_TRUE=
31823 ZSTD_DELEGATE_FALSE='#'
31824 else
31825 ZSTD_DELEGATE_TRUE='#'
31826 ZSTD_DELEGATE_FALSE=
31827 fi
31828
31829
31830
31831
31832
31833 # whether modules are built or not.
31834 if test "$build_modules" != 'no' || test "X$no_cl" != 'Xyes'; then
31835 with_ltdl='yes'
31836 else
31837 with_ltdl='no'
31838 fi
31839 have_ltdl='no'
31840 LTDL_LIBS=''
31841 if test "$with_ltdl" = 'yes'; then
31842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31843 printf "%s\n" "-------------------------------------------------------------" >&6; }
31844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
31845 printf %s "checking for libltdl... " >&6; }
31846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
31847 printf "%s\n" "" >&6; }
31848 failed=0
31849 passed=0
31850 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
31851 if test "x$ac_cv_header_ltdl_h" = xyes
31852 then :
31853 passed=`expr $passed + 1`
31854 else case e in #(
31855 e) failed=`expr $failed + 1` ;;
31856 esac
31857 fi
31858
31859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31860 /* end confdefs.h. */
31861
31862
31863 #include <ltdl.h>
31864
31865 int
31866 main (void)
31867 {
31868
31869 lt_dlinit();
31870
31871 ;
31872 return 0;
31873 }
31874
31875 _ACEOF
31876 if ac_fn_c_try_compile "$LINENO"
31877 then :
31878 passed=`expr $passed + 1`
31879 else case e in #(
31880 e) failed=`expr $failed + 1` ;;
31881 esac
31882 fi
31883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
31885 printf %s "checking if libltdl package is complete... " >&6; }
31886 if test $passed -gt 0 ; then
31887 if test $failed -gt 0 ; then
31888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31889 printf "%s\n" "no -- some components failed test" >&6; }
31890 have_ltdl='no (failed tests)'
31891 else
31892 LTDL_LIBS='-lltdl'
31893 LIBS="$LTDL_LIBS $LIBS"
31894
31895 printf "%s\n" "#define LTDL_DELEGATE 1" >>confdefs.h
31896
31897
31898 printf "%s\n" "#define LTDL_MODULE_EXT \"${shrext_cmds}\"" >>confdefs.h
31899
31900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31901 printf "%s\n" "yes" >&6; }
31902 have_ltdl='yes'
31903 fi
31904 else
31905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31906 printf "%s\n" "no" >&6; }
31907 fi
31908 if test "$have_ltdl" != 'yes' ; then
31909 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
31910 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
31911 as_fn_error 1 "libltdl is required for modules and OpenCL builds
31912 See 'config.log' for more details" "$LINENO" 5; }
31913 fi
31914 fi
31915 if test "$have_ltdl" != 'no'; then
31916 WITH_LTDL_TRUE=
31917 WITH_LTDL_FALSE='#'
31918 else
31919 WITH_LTDL_TRUE='#'
31920 WITH_LTDL_FALSE=
31921 fi
31922
31923
31924 #
31925 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
31926 #
31927 LIB_DL=''
31928 if test "$enable_profiling" = 'yes'; then
31929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
31930 printf %s "checking for dlopen in -ldl... " >&6; }
31931 if test ${ac_cv_lib_dl_dlopen+y}
31932 then :
31933 printf %s "(cached) " >&6
31934 else case e in #(
31935 e) ac_check_lib_save_LIBS=$LIBS
31936 LIBS="-ldl $LIBS"
31937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31938 /* end confdefs.h. */
31939
31940 /* Override any GCC internal prototype to avoid an error.
31941 Use char because int might match the return type of a GCC
31942 builtin and then its argument prototype would still apply.
31943 The 'extern "C"' is for builds by C++ compilers;
31944 although this is not generally supported in C code supporting it here
31945 has little cost and some practical benefit (sr 110532). */
31946 #ifdef __cplusplus
31947 extern "C"
31948 #endif
31949 char dlopen (void);
31950 int
31951 main (void)
31952 {
31953 return dlopen ();
31954 ;
31955 return 0;
31956 }
31957 _ACEOF
31958 if ac_fn_c_try_link "$LINENO"
31959 then :
31960 ac_cv_lib_dl_dlopen=yes
31961 else case e in #(
31962 e) ac_cv_lib_dl_dlopen=no ;;
31963 esac
31964 fi
31965 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31966 conftest$ac_exeext conftest.$ac_ext
31967 LIBS=$ac_check_lib_save_LIBS ;;
31968 esac
31969 fi
31970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
31971 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
31972 if test "x$ac_cv_lib_dl_dlopen" = xyes
31973 then :
31974 LIB_DL='-ldl'
31975 fi
31976
31977 LIBS="$LIB_DL $LIBS"
31978 fi
31979
31980
31981
31982 #
31983 # Set Apple font directory.
31984 #
31985
31986 # Check whether --with-apple-font-dir was given.
31987 if test ${with_apple_font_dir+y}
31988 then :
31989 withval=$with_apple_font_dir; with_apple_font_dir=$withval
31990 else case e in #(
31991 e) with_apple_font_dir='default' ;;
31992 esac
31993 fi
31994
31995
31996 if test "$with_apple_font_dir" != 'default'; then
31997 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
31998 fi
31999
32000
32001 #
32002 # Check for Autotrace delegate library.
32003 #
32004
32005 # Check whether --with-autotrace was given.
32006 if test ${with_autotrace+y}
32007 then :
32008 withval=$with_autotrace; with_autotrace=$withval
32009 else case e in #(
32010 e) with_autotrace='no' ;;
32011 esac
32012 fi
32013
32014
32015 if test "$with_autotrace" != 'yes'; then
32016 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
32017 fi
32018
32019 have_autotrace='no'
32020 AUTOTRACE_CFLAGS=""
32021 AUTOTRACE_LIBS=""
32022 AUTOTRACE_PKG=""
32023 if test "x$with_autotrace" = "xyes"; then
32024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32025 printf "%s\n" "-------------------------------------------------------------" >&6; }
32026
32027 pkg_failed=no
32028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for autotrace >= 0.31.2" >&5
32029 printf %s "checking for autotrace >= 0.31.2... " >&6; }
32030
32031 if test -n "$AUTOTRACE_CFLAGS"; then
32032 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
32033 elif test -n "$PKG_CONFIG"; then
32034 if test -n "$PKG_CONFIG" && \
32035 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.2\""; } >&5
32036 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.2") 2>&5
32037 ac_status=$?
32038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32039 test $ac_status = 0; }; then
32040 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.2" 2>/dev/null`
32041 test "x$?" != "x0" && pkg_failed=yes
32042 else
32043 pkg_failed=yes
32044 fi
32045 else
32046 pkg_failed=untried
32047 fi
32048 if test -n "$AUTOTRACE_LIBS"; then
32049 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
32050 elif test -n "$PKG_CONFIG"; then
32051 if test -n "$PKG_CONFIG" && \
32052 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.2\""; } >&5
32053 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.2") 2>&5
32054 ac_status=$?
32055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32056 test $ac_status = 0; }; then
32057 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.2" 2>/dev/null`
32058 test "x$?" != "x0" && pkg_failed=yes
32059 else
32060 pkg_failed=yes
32061 fi
32062 else
32063 pkg_failed=untried
32064 fi
32065
32066
32067
32068 if test $pkg_failed = yes; then
32069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32070 printf "%s\n" "no" >&6; }
32071
32072 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32073 _pkg_short_errors_supported=yes
32074 else
32075 _pkg_short_errors_supported=no
32076 fi
32077 if test $_pkg_short_errors_supported = yes; then
32078 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.2" 2>&1`
32079 else
32080 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.2" 2>&1`
32081 fi
32082 # Put the nasty error message in config.log where it belongs
32083 echo "$AUTOTRACE_PKG_ERRORS" >&5
32084
32085 have_autotrace=no
32086 elif test $pkg_failed = untried; then
32087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32088 printf "%s\n" "no" >&6; }
32089 have_autotrace=no
32090 else
32091 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
32092 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
32093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32094 printf "%s\n" "yes" >&6; }
32095 have_autotrace=yes
32096 fi
32097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
32098 printf "%s\n" "" >&6; }
32099 fi
32100
32101 if test "$have_autotrace" = 'yes'; then
32102
32103 printf "%s\n" "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
32104
32105 CFLAGS="$AUTOTRACE_CFLAGS $CFLAGS"
32106 fi
32107
32108 if test "$have_autotrace" = 'yes'; then
32109 AUTOTRACE_DELEGATE_TRUE=
32110 AUTOTRACE_DELEGATE_FALSE='#'
32111 else
32112 AUTOTRACE_DELEGATE_TRUE='#'
32113 AUTOTRACE_DELEGATE_FALSE=
32114 fi
32115
32116
32117
32118
32119
32120 #
32121 # Check for Display Postscript delegate library.
32122 #
32123
32124 # Check whether --with-dps was given.
32125 if test ${with_dps+y}
32126 then :
32127 withval=$with_dps; with_dps=$withval
32128 else case e in #(
32129 e) with_dps='no' ;;
32130 esac
32131 fi
32132
32133
32134 if test "$with_dps" != 'yes'; then
32135 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
32136 fi
32137
32138 have_dps='no'
32139 DPS_LIBS=''
32140 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
32141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32142 printf "%s\n" "-------------------------------------------------------------" >&6; }
32143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
32144 printf %s "checking for DPS... " >&6; }
32145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
32146 printf "%s\n" "" >&6; }
32147 failed=0
32148 passed=0
32149 PERSIST_CPPFLAGS="$CPPFLAGS"
32150 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
32151 ac_fn_c_check_header_compile "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
32152 if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes
32153 then :
32154 passed=`expr $passed + 1`
32155 else case e in #(
32156 e) failed=`expr $failed + 1` ;;
32157 esac
32158 fi
32159
32160 # DPS issues:
32161 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
32162 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
32163 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
32164 # ImageMagick itself doesn't use -lXt.
32165 have_libdps='no'
32166 LIBDPS_XT=''
32167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
32168 printf %s "checking for DPSInitialize in -ldps... " >&6; }
32169 if test ${ac_cv_lib_dps_DPSInitialize+y}
32170 then :
32171 printf %s "(cached) " >&6
32172 else case e in #(
32173 e) ac_check_lib_save_LIBS=$LIBS
32174 LIBS="-ldps $LIBS"
32175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32176 /* end confdefs.h. */
32177
32178 /* Override any GCC internal prototype to avoid an error.
32179 Use char because int might match the return type of a GCC
32180 builtin and then its argument prototype would still apply.
32181 The 'extern "C"' is for builds by C++ compilers;
32182 although this is not generally supported in C code supporting it here
32183 has little cost and some practical benefit (sr 110532). */
32184 #ifdef __cplusplus
32185 extern "C"
32186 #endif
32187 char DPSInitialize (void);
32188 int
32189 main (void)
32190 {
32191 return DPSInitialize ();
32192 ;
32193 return 0;
32194 }
32195 _ACEOF
32196 if ac_fn_c_try_link "$LINENO"
32197 then :
32198 ac_cv_lib_dps_DPSInitialize=yes
32199 else case e in #(
32200 e) ac_cv_lib_dps_DPSInitialize=no ;;
32201 esac
32202 fi
32203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32204 conftest$ac_exeext conftest.$ac_ext
32205 LIBS=$ac_check_lib_save_LIBS ;;
32206 esac
32207 fi
32208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
32209 printf "%s\n" "$ac_cv_lib_dps_DPSInitialize" >&6; }
32210 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes
32211 then :
32212 have_libdps='yes'
32213 else case e in #(
32214 e) have_libdps='no', ;;
32215 esac
32216 fi
32217
32218 if test "$have_libdps" != 'yes'; then
32219 # Unset cache variable so we can try again.
32220 unset ac_cv_lib_dps_DPSInitialize
32221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
32222 printf %s "checking for DPSInitialize in -ldps... " >&6; }
32223 if test ${ac_cv_lib_dps_DPSInitialize+y}
32224 then :
32225 printf %s "(cached) " >&6
32226 else case e in #(
32227 e) ac_check_lib_save_LIBS=$LIBS
32228 LIBS="-ldps $LIBS"
32229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32230 /* end confdefs.h. */
32231
32232 /* Override any GCC internal prototype to avoid an error.
32233 Use char because int might match the return type of a GCC
32234 builtin and then its argument prototype would still apply.
32235 The 'extern "C"' is for builds by C++ compilers;
32236 although this is not generally supported in C code supporting it here
32237 has little cost and some practical benefit (sr 110532). */
32238 #ifdef __cplusplus
32239 extern "C"
32240 #endif
32241 char DPSInitialize (void);
32242 int
32243 main (void)
32244 {
32245 return DPSInitialize ();
32246 ;
32247 return 0;
32248 }
32249 _ACEOF
32250 if ac_fn_c_try_link "$LINENO"
32251 then :
32252 ac_cv_lib_dps_DPSInitialize=yes
32253 else case e in #(
32254 e) ac_cv_lib_dps_DPSInitialize=no ;;
32255 esac
32256 fi
32257 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32258 conftest$ac_exeext conftest.$ac_ext
32259 LIBS=$ac_check_lib_save_LIBS ;;
32260 esac
32261 fi
32262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
32263 printf "%s\n" "$ac_cv_lib_dps_DPSInitialize" >&6; }
32264 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes
32265 then :
32266 have_libdps='yes'
32267 else case e in #(
32268 e) have_libdps='no',-lXt ;;
32269 esac
32270 fi
32271
32272 if test "$have_libdps" = 'yes'; then
32273 LIBDPS_XT='-lXt'
32274 fi
32275 fi
32276 if test "$have_libdps" = 'yes'; then
32277 passed=`expr $passed + 1`
32278 else
32279 failed=`expr $failed + 1`
32280 fi
32281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
32282 printf %s "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
32283 if test ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+y}
32284 then :
32285 printf %s "(cached) " >&6
32286 else case e in #(
32287 e) ac_check_lib_save_LIBS=$LIBS
32288 LIBS="-ldpstk $LIBS"
32289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32290 /* end confdefs.h. */
32291
32292 /* Override any GCC internal prototype to avoid an error.
32293 Use char because int might match the return type of a GCC
32294 builtin and then its argument prototype would still apply.
32295 The 'extern "C"' is for builds by C++ compilers;
32296 although this is not generally supported in C code supporting it here
32297 has little cost and some practical benefit (sr 110532). */
32298 #ifdef __cplusplus
32299 extern "C"
32300 #endif
32301 char XDPSPixelsPerPoint (void);
32302 int
32303 main (void)
32304 {
32305 return XDPSPixelsPerPoint ();
32306 ;
32307 return 0;
32308 }
32309 _ACEOF
32310 if ac_fn_c_try_link "$LINENO"
32311 then :
32312 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
32313 else case e in #(
32314 e) ac_cv_lib_dpstk_XDPSPixelsPerPoint=no ;;
32315 esac
32316 fi
32317 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32318 conftest$ac_exeext conftest.$ac_ext
32319 LIBS=$ac_check_lib_save_LIBS ;;
32320 esac
32321 fi
32322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
32323 printf "%s\n" "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
32324 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes
32325 then :
32326 passed=`expr $passed + 1`
32327 else case e in #(
32328 e) failed=`expr $failed + 1`,-ldps $LIBDPS_XT ;;
32329 esac
32330 fi
32331
32332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
32333 printf %s "checking if DPS package is complete... " >&6; }
32334 if test $passed -gt 0; then
32335 if test $failed -gt 0; then
32336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32337 printf "%s\n" "no -- some components failed test" >&6; }
32338 have_dps='no (failed tests)'
32339 CPPFLAGS="$PERSIST_CPPFLAGS"
32340 else
32341 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
32342 LIBS="$DPS_LIBS $LIBS"
32343
32344 printf "%s\n" "#define DPS_DELEGATE 1" >>confdefs.h
32345
32346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32347 printf "%s\n" "yes" >&6; }
32348 have_dps='yes'
32349 fi
32350 else
32351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32352 printf "%s\n" "no" >&6; }
32353 CPPFLAGS=$PERSIST_CPPFLAGS
32354 fi
32355 fi
32356 if test "$have_dps" = 'yes'; then
32357 DPS_DELEGATE_TRUE=
32358 DPS_DELEGATE_FALSE='#'
32359 else
32360 DPS_DELEGATE_TRUE='#'
32361 DPS_DELEGATE_FALSE=
32362 fi
32363
32364
32365
32366
32367 #
32368 # Set DejaVu font directory.
32369 #
32370
32371 # Check whether --with-dejavu-font-dir was given.
32372 if test ${with_dejavu_font_dir+y}
32373 then :
32374 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
32375 else case e in #(
32376 e) with_dejavu_font_dir='default' ;;
32377 esac
32378 fi
32379
32380
32381 if test "$with_dejavu_font_dir" != 'default'; then
32382 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
32383 fi
32384
32385
32386 #
32387 # Check for FFTW delegate library.
32388 #
32389
32390 # Check whether --with-fftw was given.
32391 if test ${with_fftw+y}
32392 then :
32393 withval=$with_fftw; with_fftw=$withval
32394 else case e in #(
32395 e) with_fftw='no' ;;
32396 esac
32397 fi
32398
32399
32400 if test "$with_fftw" != 'yes'; then
32401 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
32402 fi
32403
32404 have_fftw='no'
32405 FFTW_CFLAGS=""
32406 FFTW_LIBS=""
32407 FFTW_PKG=""
32408 if test "x$with_fftw" = "xyes"; then
32409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32410 printf "%s\n" "-------------------------------------------------------------" >&6; }
32411
32412 pkg_failed=no
32413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fftw3 >= 3.0.0" >&5
32414 printf %s "checking for fftw3 >= 3.0.0... " >&6; }
32415
32416 if test -n "$fftw3_CFLAGS"; then
32417 pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
32418 elif test -n "$PKG_CONFIG"; then
32419 if test -n "$PKG_CONFIG" && \
32420 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
32421 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
32422 ac_status=$?
32423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32424 test $ac_status = 0; }; then
32425 pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0" 2>/dev/null`
32426 test "x$?" != "x0" && pkg_failed=yes
32427 else
32428 pkg_failed=yes
32429 fi
32430 else
32431 pkg_failed=untried
32432 fi
32433 if test -n "$fftw3_LIBS"; then
32434 pkg_cv_fftw3_LIBS="$fftw3_LIBS"
32435 elif test -n "$PKG_CONFIG"; then
32436 if test -n "$PKG_CONFIG" && \
32437 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
32438 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
32439 ac_status=$?
32440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32441 test $ac_status = 0; }; then
32442 pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0" 2>/dev/null`
32443 test "x$?" != "x0" && pkg_failed=yes
32444 else
32445 pkg_failed=yes
32446 fi
32447 else
32448 pkg_failed=untried
32449 fi
32450
32451
32452
32453 if test $pkg_failed = yes; then
32454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32455 printf "%s\n" "no" >&6; }
32456
32457 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32458 _pkg_short_errors_supported=yes
32459 else
32460 _pkg_short_errors_supported=no
32461 fi
32462 if test $_pkg_short_errors_supported = yes; then
32463 fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
32464 else
32465 fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
32466 fi
32467 # Put the nasty error message in config.log where it belongs
32468 echo "$fftw3_PKG_ERRORS" >&5
32469
32470 have_fftw=no
32471 elif test $pkg_failed = untried; then
32472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32473 printf "%s\n" "no" >&6; }
32474 have_fftw=no
32475 else
32476 fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
32477 fftw3_LIBS=$pkg_cv_fftw3_LIBS
32478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32479 printf "%s\n" "yes" >&6; }
32480 have_fftw=yes
32481 fi
32482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
32483 printf "%s\n" "" >&6; }
32484 fi
32485
32486 if test "$have_fftw" = 'yes'; then
32487
32488 printf "%s\n" "#define FFTW_DELEGATE 1" >>confdefs.h
32489
32490 FFTW_CFLAGS="$fftw3_CFLAGS"
32491 FFTW_LIBS="$fftw3_LIBS"
32492 CFLAGS="$fftw3_CFLAGS $CFLAGS"
32493 fi
32494
32495 if test "$have_fftw" = 'yes'; then
32496 FFTW_DELEGATE_TRUE=
32497 FFTW_DELEGATE_FALSE='#'
32498 else
32499 FFTW_DELEGATE_TRUE='#'
32500 FFTW_DELEGATE_FALSE=
32501 fi
32502
32503
32504
32505
32506
32507 #
32508 # Check for FLIF delegate library.
32509 #
32510
32511 # Check whether --with-flif was given.
32512 if test ${with_flif+y}
32513 then :
32514 withval=$with_flif; with_flif=$withval
32515 else case e in #(
32516 e) with_flif='no' ;;
32517 esac
32518 fi
32519
32520
32521 if test "$with_flif" != 'yes'; then
32522 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-flif=$with_flif "
32523 fi
32524
32525 have_flif='no'
32526 FLIF_LIBS=''
32527 if test "$with_flif" != 'no'; then
32528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32529 printf "%s\n" "-------------------------------------------------------------" >&6; }
32530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FLIF" >&5
32531 printf %s "checking for FLIF... " >&6; }
32532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
32533 printf "%s\n" "" >&6; }
32534 failed=0
32535 passed=0
32536 ac_fn_c_check_header_compile "$LINENO" "flif.h" "ac_cv_header_flif_h" "$ac_includes_default"
32537 if test "x$ac_cv_header_flif_h" = xyes
32538 then :
32539 passed=`expr $passed + 1`
32540 else case e in #(
32541 e) failed=`expr $failed + 1` ;;
32542 esac
32543 fi
32544
32545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flif_create_decoder in -lflif" >&5
32546 printf %s "checking for flif_create_decoder in -lflif... " >&6; }
32547 if test ${ac_cv_lib_flif_flif_create_decoder+y}
32548 then :
32549 printf %s "(cached) " >&6
32550 else case e in #(
32551 e) ac_check_lib_save_LIBS=$LIBS
32552 LIBS="-lflif $LIBS"
32553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32554 /* end confdefs.h. */
32555
32556 /* Override any GCC internal prototype to avoid an error.
32557 Use char because int might match the return type of a GCC
32558 builtin and then its argument prototype would still apply.
32559 The 'extern "C"' is for builds by C++ compilers;
32560 although this is not generally supported in C code supporting it here
32561 has little cost and some practical benefit (sr 110532). */
32562 #ifdef __cplusplus
32563 extern "C"
32564 #endif
32565 char flif_create_decoder (void);
32566 int
32567 main (void)
32568 {
32569 return flif_create_decoder ();
32570 ;
32571 return 0;
32572 }
32573 _ACEOF
32574 if ac_fn_c_try_link "$LINENO"
32575 then :
32576 ac_cv_lib_flif_flif_create_decoder=yes
32577 else case e in #(
32578 e) ac_cv_lib_flif_flif_create_decoder=no ;;
32579 esac
32580 fi
32581 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32582 conftest$ac_exeext conftest.$ac_ext
32583 LIBS=$ac_check_lib_save_LIBS ;;
32584 esac
32585 fi
32586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_flif_flif_create_decoder" >&5
32587 printf "%s\n" "$ac_cv_lib_flif_flif_create_decoder" >&6; }
32588 if test "x$ac_cv_lib_flif_flif_create_decoder" = xyes
32589 then :
32590 passed=`expr $passed + 1`
32591 else case e in #(
32592 e) failed=`expr $failed + 1` ;;
32593 esac
32594 fi
32595
32596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if FLIF package is complete" >&5
32597 printf %s "checking if FLIF package is complete... " >&6; }
32598 if test $passed -gt 0; then
32599 if test $failed -gt 0; then
32600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32601 printf "%s\n" "no -- some components failed test" >&6; }
32602 have_flif='no (failed tests)'
32603 else
32604 FLIF_LIBS='-lflif'
32605 LIBS="$FLIF_LIBS $LIBS"
32606
32607 printf "%s\n" "#define FLIF_DELEGATE 1" >>confdefs.h
32608
32609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32610 printf "%s\n" "yes" >&6; }
32611 have_flif='yes'
32612 fi
32613 else
32614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32615 printf "%s\n" "no" >&6; }
32616 fi
32617 fi
32618 if test "$have_flif" = 'yes'; then
32619 FLIF_DELEGATE_TRUE=
32620 FLIF_DELEGATE_FALSE='#'
32621 else
32622 FLIF_DELEGATE_TRUE='#'
32623 FLIF_DELEGATE_FALSE=
32624 fi
32625
32626
32627
32628
32629 #
32630 # Check for FlashPIX delegate library.
32631 #
32632
32633 # Check whether --with-fpx was given.
32634 if test ${with_fpx+y}
32635 then :
32636 withval=$with_fpx; with_fpx=$withval
32637 else case e in #(
32638 e) with_fpx='no' ;;
32639 esac
32640 fi
32641
32642
32643 if test "$with_fpx" != 'yes'; then
32644 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
32645 fi
32646
32647 have_fpx='no'
32648 FPX_LIBS=''
32649 if test "$with_fpx" != 'no'; then
32650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32651 printf "%s\n" "-------------------------------------------------------------" >&6; }
32652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
32653 printf %s "checking for FlashPIX... " >&6; }
32654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
32655 printf "%s\n" "" >&6; }
32656 failed=0
32657 passed=0
32658 ac_ext=cpp
32659 ac_cpp='$CXXCPP $CPPFLAGS'
32660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32663
32664 ac_fn_cxx_check_header_compile "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
32665 if test "x$ac_cv_header_fpxlib_h" = xyes
32666 then :
32667 passed=`expr $passed + 1`
32668 else case e in #(
32669 e) failed=`expr $failed + 1` ;;
32670 esac
32671 fi
32672
32673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
32674 printf %s "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
32675 if test ${ac_cv_lib_fpx_FPX_OpenImageByFilename+y}
32676 then :
32677 printf %s "(cached) " >&6
32678 else case e in #(
32679 e) ac_check_lib_save_LIBS=$LIBS
32680 LIBS="-lfpx $LIBS"
32681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32682 /* end confdefs.h. */
32683
32684 namespace conftest {
32685 extern "C" int FPX_OpenImageByFilename ();
32686 }
32687 int
32688 main (void)
32689 {
32690 return conftest::FPX_OpenImageByFilename ();
32691 ;
32692 return 0;
32693 }
32694 _ACEOF
32695 if ac_fn_cxx_try_link "$LINENO"
32696 then :
32697 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
32698 else case e in #(
32699 e) ac_cv_lib_fpx_FPX_OpenImageByFilename=no ;;
32700 esac
32701 fi
32702 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32703 conftest$ac_exeext conftest.$ac_ext
32704 LIBS=$ac_check_lib_save_LIBS ;;
32705 esac
32706 fi
32707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
32708 printf "%s\n" "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
32709 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes
32710 then :
32711 passed=`expr $passed + 1`
32712 else case e in #(
32713 e) failed=`expr $failed + 1` ;;
32714 esac
32715 fi
32716
32717
32718 ac_ext=c
32719 ac_cpp='$CPP $CPPFLAGS'
32720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32723
32724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
32725 printf %s "checking if FlashPIX package is complete... " >&6; }
32726 if test $passed -gt 0; then
32727 if test $failed -gt 0; then
32728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32729 printf "%s\n" "no -- some components failed test" >&6; }
32730 have_fpx='no (failed tests)'
32731 else
32732 FPX_LIBS='-lfpx'
32733
32734 printf "%s\n" "#define FPX_DELEGATE 1" >>confdefs.h
32735
32736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32737 printf "%s\n" "yes" >&6; }
32738 have_fpx='yes'
32739 PERLMAINCC="$CXX"
32740 fi
32741 else
32742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32743 printf "%s\n" "no" >&6; }
32744 fi
32745 fi
32746 if test "$have_fpx" = 'yes'; then
32747 FPX_DELEGATE_TRUE=
32748 FPX_DELEGATE_FALSE='#'
32749 else
32750 FPX_DELEGATE_TRUE='#'
32751 FPX_DELEGATE_FALSE=
32752 fi
32753
32754
32755
32756
32757 #
32758 # Check for DJVU delegate library.
32759 #
32760
32761 # Check whether --with-djvu was given.
32762 if test ${with_djvu+y}
32763 then :
32764 withval=$with_djvu; with_djvu=$withval
32765 else case e in #(
32766 e) with_djvu='yes' ;;
32767 esac
32768 fi
32769
32770
32771 if test "$with_djvu" != 'yes'; then
32772 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
32773 fi
32774
32775 have_djvu='no'
32776 DJVU_CFLAGS=""
32777 DJVU_LIBS=""
32778 DJVU_PKG=""
32779 if test "x$with_djvu" = "xyes"; then
32780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32781 printf "%s\n" "-------------------------------------------------------------" >&6; }
32782
32783 pkg_failed=no
32784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ddjvuapi >= 3.5.0" >&5
32785 printf %s "checking for ddjvuapi >= 3.5.0... " >&6; }
32786
32787 if test -n "$ddjvuapi_CFLAGS"; then
32788 pkg_cv_ddjvuapi_CFLAGS="$ddjvuapi_CFLAGS"
32789 elif test -n "$PKG_CONFIG"; then
32790 if test -n "$PKG_CONFIG" && \
32791 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
32792 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
32793 ac_status=$?
32794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32795 test $ac_status = 0; }; then
32796 pkg_cv_ddjvuapi_CFLAGS=`$PKG_CONFIG --cflags "ddjvuapi >= 3.5.0" 2>/dev/null`
32797 test "x$?" != "x0" && pkg_failed=yes
32798 else
32799 pkg_failed=yes
32800 fi
32801 else
32802 pkg_failed=untried
32803 fi
32804 if test -n "$ddjvuapi_LIBS"; then
32805 pkg_cv_ddjvuapi_LIBS="$ddjvuapi_LIBS"
32806 elif test -n "$PKG_CONFIG"; then
32807 if test -n "$PKG_CONFIG" && \
32808 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
32809 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
32810 ac_status=$?
32811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32812 test $ac_status = 0; }; then
32813 pkg_cv_ddjvuapi_LIBS=`$PKG_CONFIG --libs "ddjvuapi >= 3.5.0" 2>/dev/null`
32814 test "x$?" != "x0" && pkg_failed=yes
32815 else
32816 pkg_failed=yes
32817 fi
32818 else
32819 pkg_failed=untried
32820 fi
32821
32822
32823
32824 if test $pkg_failed = yes; then
32825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32826 printf "%s\n" "no" >&6; }
32827
32828 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32829 _pkg_short_errors_supported=yes
32830 else
32831 _pkg_short_errors_supported=no
32832 fi
32833 if test $_pkg_short_errors_supported = yes; then
32834 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
32835 else
32836 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
32837 fi
32838 # Put the nasty error message in config.log where it belongs
32839 echo "$ddjvuapi_PKG_ERRORS" >&5
32840
32841 have_djvu=no
32842 elif test $pkg_failed = untried; then
32843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32844 printf "%s\n" "no" >&6; }
32845 have_djvu=no
32846 else
32847 ddjvuapi_CFLAGS=$pkg_cv_ddjvuapi_CFLAGS
32848 ddjvuapi_LIBS=$pkg_cv_ddjvuapi_LIBS
32849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32850 printf "%s\n" "yes" >&6; }
32851 have_djvu=yes
32852 fi
32853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
32854 printf "%s\n" "" >&6; }
32855 fi
32856
32857 if test "$have_djvu" = 'yes'; then
32858
32859 printf "%s\n" "#define DJVU_DELEGATE 1" >>confdefs.h
32860
32861 DJVU_CFLAGS="$ddjvuapi_CFLAGS"
32862 DJVU_LIBS="$ddjvuapi_LIBS"
32863 CFLAGS="$ddjvuapi_CFLAGS $CFLAGS"
32864 fi
32865
32866 if test "$have_djvu" = 'yes'; then
32867 DJVU_DELEGATE_TRUE=
32868 DJVU_DELEGATE_FALSE='#'
32869 else
32870 DJVU_DELEGATE_TRUE='#'
32871 DJVU_DELEGATE_FALSE=
32872 fi
32873
32874
32875
32876
32877
32878 #
32879 # Check for fontconfig delegate library.
32880 #
32881
32882 # Check whether --with-fontconfig was given.
32883 if test ${with_fontconfig+y}
32884 then :
32885 withval=$with_fontconfig; with_fontconfig=$withval
32886 else case e in #(
32887 e) with_fontconfig='yes' ;;
32888 esac
32889 fi
32890
32891
32892 if test "$with_fontconfig" != 'yes'; then
32893 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
32894 fi
32895
32896 have_fontconfig='no'
32897 FONTCONFIG_CFLAGS=""
32898 FONTCONFIG_LIBS=""
32899 FONTCONFIG_PKG=""
32900 if test "x$with_fontconfig" = "xyes"; then
32901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32902 printf "%s\n" "-------------------------------------------------------------" >&6; }
32903
32904 pkg_failed=no
32905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.1.0" >&5
32906 printf %s "checking for fontconfig >= 2.1.0... " >&6; }
32907
32908 if test -n "$FONTCONFIG_CFLAGS"; then
32909 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
32910 elif test -n "$PKG_CONFIG"; then
32911 if test -n "$PKG_CONFIG" && \
32912 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
32913 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
32914 ac_status=$?
32915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32916 test $ac_status = 0; }; then
32917 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
32918 test "x$?" != "x0" && pkg_failed=yes
32919 else
32920 pkg_failed=yes
32921 fi
32922 else
32923 pkg_failed=untried
32924 fi
32925 if test -n "$FONTCONFIG_LIBS"; then
32926 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
32927 elif test -n "$PKG_CONFIG"; then
32928 if test -n "$PKG_CONFIG" && \
32929 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
32930 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
32931 ac_status=$?
32932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32933 test $ac_status = 0; }; then
32934 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
32935 test "x$?" != "x0" && pkg_failed=yes
32936 else
32937 pkg_failed=yes
32938 fi
32939 else
32940 pkg_failed=untried
32941 fi
32942
32943
32944
32945 if test $pkg_failed = yes; then
32946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32947 printf "%s\n" "no" >&6; }
32948
32949 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32950 _pkg_short_errors_supported=yes
32951 else
32952 _pkg_short_errors_supported=no
32953 fi
32954 if test $_pkg_short_errors_supported = yes; then
32955 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
32956 else
32957 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
32958 fi
32959 # Put the nasty error message in config.log where it belongs
32960 echo "$FONTCONFIG_PKG_ERRORS" >&5
32961
32962 have_fontconfig=no
32963 elif test $pkg_failed = untried; then
32964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32965 printf "%s\n" "no" >&6; }
32966 have_fontconfig=no
32967 else
32968 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
32969 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
32970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32971 printf "%s\n" "yes" >&6; }
32972 have_fontconfig=yes
32973 fi
32974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
32975 printf "%s\n" "" >&6; }
32976 fi
32977
32978 if test "$have_fontconfig" = 'yes'; then
32979
32980 printf "%s\n" "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
32981
32982 CFLAGS="$FONTCONFIG_CFLAGS $CFLAGS"
32983 fi
32984
32985 if test "$have_fontconfig" = 'yes'; then
32986 FONTCONFIG_DELEGATE_TRUE=
32987 FONTCONFIG_DELEGATE_FALSE='#'
32988 else
32989 FONTCONFIG_DELEGATE_TRUE='#'
32990 FONTCONFIG_DELEGATE_FALSE=
32991 fi
32992
32993
32994
32995
32996
32997 #
32998 # Check for the Freetype delegate library.
32999 #
33000
33001 # Check whether --with-freetype was given.
33002 if test ${with_freetype+y}
33003 then :
33004 withval=$with_freetype; with_freetype=$withval
33005 else case e in #(
33006 e) with_freetype='yes' ;;
33007 esac
33008 fi
33009
33010
33011 if test "$with_freetype" != 'yes'; then
33012 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
33013 fi
33014
33015 have_freetype='no'
33016 FREETYPE_CFLAGS=""
33017 FREETYPE_LIBS=""
33018 FREETYPE_PKG=""
33019 if test "x$with_freetype" = "xyes"; then
33020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33021 printf "%s\n" "-------------------------------------------------------------" >&6; }
33022
33023 pkg_failed=no
33024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for freetype2 >= 2.8.0" >&5
33025 printf %s "checking for freetype2 >= 2.8.0... " >&6; }
33026
33027 if test -n "$FREETYPE_CFLAGS"; then
33028 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
33029 elif test -n "$PKG_CONFIG"; then
33030 if test -n "$PKG_CONFIG" && \
33031 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.8.0\""; } >&5
33032 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.8.0") 2>&5
33033 ac_status=$?
33034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33035 test $ac_status = 0; }; then
33036 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.8.0" 2>/dev/null`
33037 test "x$?" != "x0" && pkg_failed=yes
33038 else
33039 pkg_failed=yes
33040 fi
33041 else
33042 pkg_failed=untried
33043 fi
33044 if test -n "$FREETYPE_LIBS"; then
33045 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
33046 elif test -n "$PKG_CONFIG"; then
33047 if test -n "$PKG_CONFIG" && \
33048 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.8.0\""; } >&5
33049 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.8.0") 2>&5
33050 ac_status=$?
33051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33052 test $ac_status = 0; }; then
33053 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.8.0" 2>/dev/null`
33054 test "x$?" != "x0" && pkg_failed=yes
33055 else
33056 pkg_failed=yes
33057 fi
33058 else
33059 pkg_failed=untried
33060 fi
33061
33062
33063
33064 if test $pkg_failed = yes; then
33065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33066 printf "%s\n" "no" >&6; }
33067
33068 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33069 _pkg_short_errors_supported=yes
33070 else
33071 _pkg_short_errors_supported=no
33072 fi
33073 if test $_pkg_short_errors_supported = yes; then
33074 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 2.8.0" 2>&1`
33075 else
33076 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 2.8.0" 2>&1`
33077 fi
33078 # Put the nasty error message in config.log where it belongs
33079 echo "$FREETYPE_PKG_ERRORS" >&5
33080
33081 have_freetype=no
33082 elif test $pkg_failed = untried; then
33083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33084 printf "%s\n" "no" >&6; }
33085 have_freetype=no
33086 else
33087 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
33088 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
33089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33090 printf "%s\n" "yes" >&6; }
33091 have_freetype=yes
33092 fi
33093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
33094 printf "%s\n" "" >&6; }
33095 fi
33096
33097 if test "$have_freetype" = 'yes'; then
33098
33099 printf "%s\n" "#define FREETYPE_DELEGATE 1" >>confdefs.h
33100
33101 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
33102 MAGICKCORE_FREETYPE_DELEGATE=1
33103 else
33104 MAGICKCORE_FREETYPE_DELEGATE=0
33105 fi
33106
33107
33108
33109
33110
33111
33112 #
33113 # Check for the raqm delegate library.
33114 #
33115
33116 # Check whether --with-raqm was given.
33117 if test ${with_raqm+y}
33118 then :
33119 withval=$with_raqm; with_raqm=$withval
33120 else case e in #(
33121 e) with_raqm='yes' ;;
33122 esac
33123 fi
33124
33125
33126 if test "$with_raqm" != 'yes'; then
33127 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-raqm=$with_raqm "
33128 fi
33129
33130 have_raqm='no'
33131 RAQM_CFLAGS=""
33132 RAQM_LIBS=""
33133 RAQM_PKG=""
33134 if test "x$with_raqm" = "xyes"; then
33135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33136 printf "%s\n" "-------------------------------------------------------------" >&6; }
33137
33138 pkg_failed=no
33139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for raqm" >&5
33140 printf %s "checking for raqm... " >&6; }
33141
33142 if test -n "$RAQM_CFLAGS"; then
33143 pkg_cv_RAQM_CFLAGS="$RAQM_CFLAGS"
33144 elif test -n "$PKG_CONFIG"; then
33145 if test -n "$PKG_CONFIG" && \
33146 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5
33147 ($PKG_CONFIG --exists --print-errors "raqm") 2>&5
33148 ac_status=$?
33149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33150 test $ac_status = 0; }; then
33151 pkg_cv_RAQM_CFLAGS=`$PKG_CONFIG --cflags "raqm" 2>/dev/null`
33152 test "x$?" != "x0" && pkg_failed=yes
33153 else
33154 pkg_failed=yes
33155 fi
33156 else
33157 pkg_failed=untried
33158 fi
33159 if test -n "$RAQM_LIBS"; then
33160 pkg_cv_RAQM_LIBS="$RAQM_LIBS"
33161 elif test -n "$PKG_CONFIG"; then
33162 if test -n "$PKG_CONFIG" && \
33163 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5
33164 ($PKG_CONFIG --exists --print-errors "raqm") 2>&5
33165 ac_status=$?
33166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33167 test $ac_status = 0; }; then
33168 pkg_cv_RAQM_LIBS=`$PKG_CONFIG --libs "raqm" 2>/dev/null`
33169 test "x$?" != "x0" && pkg_failed=yes
33170 else
33171 pkg_failed=yes
33172 fi
33173 else
33174 pkg_failed=untried
33175 fi
33176
33177
33178
33179 if test $pkg_failed = yes; then
33180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33181 printf "%s\n" "no" >&6; }
33182
33183 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33184 _pkg_short_errors_supported=yes
33185 else
33186 _pkg_short_errors_supported=no
33187 fi
33188 if test $_pkg_short_errors_supported = yes; then
33189 RAQM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "raqm" 2>&1`
33190 else
33191 RAQM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "raqm" 2>&1`
33192 fi
33193 # Put the nasty error message in config.log where it belongs
33194 echo "$RAQM_PKG_ERRORS" >&5
33195
33196 have_raqm=no
33197 elif test $pkg_failed = untried; then
33198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33199 printf "%s\n" "no" >&6; }
33200 have_raqm=no
33201 else
33202 RAQM_CFLAGS=$pkg_cv_RAQM_CFLAGS
33203 RAQM_LIBS=$pkg_cv_RAQM_LIBS
33204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33205 printf "%s\n" "yes" >&6; }
33206 have_raqm=yes
33207 fi
33208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
33209 printf "%s\n" "" >&6; }
33210 fi
33211
33212 if test "$have_raqm" = 'yes'; then
33213
33214 printf "%s\n" "#define RAQM_DELEGATE 1" >>confdefs.h
33215
33216 CFLAGS="$RAQM_CFLAGS $CFLAGS"
33217 fi
33218
33219 if test "$have_raqm" = 'yes'; then
33220 RAQM_DELEGATE_TRUE=
33221 RAQM_DELEGATE_FALSE='#'
33222 else
33223 RAQM_DELEGATE_TRUE='#'
33224 RAQM_DELEGATE_FALSE=
33225 fi
33226
33227
33228
33229
33230
33231 #
33232 # Enable Windows gdi32 libraries
33233 #
33234
33235 # Check whether --with-gdi32 was given.
33236 if test ${with_gdi32+y}
33237 then :
33238 withval=$with_gdi32; with_gdi32=$withval
33239 else case e in #(
33240 e) with_gdi32='yes' ;;
33241 esac
33242 fi
33243
33244 if test "$with_gdi32" != 'yes' ; then
33245 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gdi32=$with_gdi32 "
33246 fi
33247
33248 #
33249 # Check for Windows gdi32 library.
33250 #
33251 have_gdi32='no'
33252 if test "$with_gdi32" != 'no'; then
33253 GDI32_LIBS=''
33254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Windows GDI32 support" >&5
33255 printf %s "checking for Windows GDI32 support... " >&6; }
33256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
33257 printf "%s\n" "" >&6; }
33258 failed=0
33259 passed=0
33260 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
33261 if test "x$ac_cv_header_windows_h" = xyes
33262 then :
33263 passed=`expr $passed + 1`
33264 else case e in #(
33265 e) failed=`expr $failed + 1` ;;
33266 esac
33267 fi
33268
33269 ac_fn_c_check_header_compile "$LINENO" "winuser.h" "ac_cv_header_winuser_h" "#include <windows.h>
33270 "
33271 if test "x$ac_cv_header_winuser_h" = xyes
33272 then :
33273 passed=`expr $passed + 1`
33274 else case e in #(
33275 e) failed=`expr $failed + 1` ;;
33276 esac
33277 fi
33278
33279 ac_fn_c_check_header_compile "$LINENO" "wingdi.h" "ac_cv_header_wingdi_h" "#include <windows.h>
33280 "
33281 if test "x$ac_cv_header_wingdi_h" = xyes
33282 then :
33283 passed=`expr $passed + 1`
33284 else case e in #(
33285 e) failed=`expr $failed + 1` ;;
33286 esac
33287 fi
33288
33289 if test "$cygwin_build" = yes -o "$native_win32_build" = yes; then
33290 passed=`expr $passed + 1`
33291 fi
33292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Windows GDI32 support is complete" >&5
33293 printf %s "checking if Windows GDI32 support is complete... " >&6; }
33294 if test $passed -gt 0; then
33295 if test $failed -gt 0; then
33296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
33297 printf "%s\n" "no -- some components failed test" >&6; }
33298 have_gdi32='no (failed tests)'
33299 else
33300 GDI32_LIBS='-lgdi32 -luser32'
33301 LIBS="$GDI32_LIBS $LIBS"
33302
33303 printf "%s\n" "#define WINGDI32_DELEGATE 1" >>confdefs.h
33304
33305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33306 printf "%s\n" "yes" >&6; }
33307 have_gdi32='yes'
33308 fi
33309 else
33310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33311 printf "%s\n" "no" >&6; }
33312 fi
33313 fi
33314 if test "$have_gdi32" = 'yes'; then
33315 WINGDI32_DELEGATE_TRUE=
33316 WINGDI32_DELEGATE_FALSE='#'
33317 else
33318 WINGDI32_DELEGATE_TRUE='#'
33319 WINGDI32_DELEGATE_FALSE=
33320 fi
33321
33322
33323
33324
33325
33326 #
33327 # Check for Ghostscript library or framework.
33328 #
33329 # Test for iapi.h & test for gsapi_new_instance in -lgs
33330 # or -framework Ghostscript
33331
33332
33333 # Check whether --with-gslib was given.
33334 if test ${with_gslib+y}
33335 then :
33336 withval=$with_gslib; with_gslib=$withval
33337 else case e in #(
33338 e) with_gslib='no' ;;
33339 esac
33340 fi
33341
33342
33343 gslib_framework='no'
33344 if test "$with_gslib" != 'yes'; then
33345 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
33346 fi
33347
33348 have_gslib='no'
33349 GS_LIBS=''
33350 if test "$with_gslib" != 'no'; then
33351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33352 printf "%s\n" "-------------------------------------------------------------" >&6; }
33353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
33354 printf %s "checking for Ghostscript... " >&6; }
33355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
33356 printf "%s\n" "" >&6; }
33357 framework=0
33358 failed=0
33359 passed=0
33360 ac_fn_c_check_header_compile "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
33361 if test "x$ac_cv_header_ghostscript_iapi_h" = xyes
33362 then :
33363 passed=`expr $passed + 1`
33364 else case e in #(
33365 e) failed=`expr $failed + 1` ;;
33366 esac
33367 fi
33368
33369 ac_fn_c_check_header_compile "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
33370 if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes
33371 then :
33372 passed=`expr $passed + 1`
33373 else case e in #(
33374 e) failed=`expr $failed + 1` ;;
33375 esac
33376 fi
33377
33378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
33379 printf %s "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
33380 if test ${ac_cv_framework_Ghostscript_gsapi_new_instance+y}
33381 then :
33382 printf %s "(cached) " >&6
33383 else case e in #(
33384 e) ac_check_framework_save_LIBS=$LIBS
33385 LIBS="-framework Ghostscript $LIBS"
33386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33387 /* end confdefs.h. */
33388
33389 /* Override any GCC internal prototype to avoid an error.
33390 Use char because int might match the return type of a GCC
33391 builtin and then its argument prototype would still apply.
33392 The 'extern "C"' is for builds by C++ compilers;
33393 although this is not generally supported in C code supporting it here
33394 has little cost and some practical benefit (sr 110532). */
33395 #ifdef __cplusplus
33396 extern "C"
33397 #endif
33398 char gsapi_new_instance (void);
33399 int
33400 main (void)
33401 {
33402 return gsapi_new_instance ();
33403 ;
33404 return 0;
33405 }
33406 _ACEOF
33407 if ac_fn_c_try_link "$LINENO"
33408 then :
33409 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
33410 else case e in #(
33411 e) ac_cv_framework_Ghostscript_gsapi_new_instance=no ;;
33412 esac
33413 fi
33414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33415 conftest$ac_exeext conftest.$ac_ext
33416 LIBS=$ac_check_framework_save_LIBS ;;
33417 esac
33418 fi
33419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
33420 printf "%s\n" "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
33421 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes
33422 then :
33423 framework=`expr $framework + 1`
33424 else case e in #(
33425 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
33426 printf %s "checking for gsapi_new_instance in -lgs... " >&6; }
33427 if test ${ac_cv_lib_gs_gsapi_new_instance+y}
33428 then :
33429 printf %s "(cached) " >&6
33430 else case e in #(
33431 e) ac_check_lib_save_LIBS=$LIBS
33432 LIBS="-lgs $LIBS"
33433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33434 /* end confdefs.h. */
33435
33436 /* Override any GCC internal prototype to avoid an error.
33437 Use char because int might match the return type of a GCC
33438 builtin and then its argument prototype would still apply.
33439 The 'extern "C"' is for builds by C++ compilers;
33440 although this is not generally supported in C code supporting it here
33441 has little cost and some practical benefit (sr 110532). */
33442 #ifdef __cplusplus
33443 extern "C"
33444 #endif
33445 char gsapi_new_instance (void);
33446 int
33447 main (void)
33448 {
33449 return gsapi_new_instance ();
33450 ;
33451 return 0;
33452 }
33453 _ACEOF
33454 if ac_fn_c_try_link "$LINENO"
33455 then :
33456 ac_cv_lib_gs_gsapi_new_instance=yes
33457 else case e in #(
33458 e) ac_cv_lib_gs_gsapi_new_instance=no ;;
33459 esac
33460 fi
33461 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33462 conftest$ac_exeext conftest.$ac_ext
33463 LIBS=$ac_check_lib_save_LIBS ;;
33464 esac
33465 fi
33466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
33467 printf "%s\n" "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
33468 if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes
33469 then :
33470 passed=`expr $passed + 1`
33471 else case e in #(
33472 e) failed=`expr $failed + 1` ;;
33473 esac
33474 fi
33475 ;;
33476 esac
33477 fi
33478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
33479 printf %s "checking if Ghostscript package is complete... " >&6; }
33480 if test $passed -gt 0; then
33481 if test $failed -gt 0; then
33482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
33483 printf "%s\n" "no -- some components failed test" >&6; }
33484 have_gslib='no (failed tests)'
33485 else
33486 if test $framework -gt 0; then
33487 GS_LIBS='-framework Ghostscript'
33488 gslib_framework='yes'
33489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
33490 printf "%s\n" "yes, using framework." >&6; }
33491 else
33492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
33493 printf "%s\n" "yes, using library." >&6; }
33494 GS_LIBS='-lgs'
33495 fi
33496 LIBS="$GS_LIBS $LIBS"
33497
33498 printf "%s\n" "#define GS_DELEGATE 1" >>confdefs.h
33499
33500 have_gslib='yes'
33501 fi
33502 else
33503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33504 printf "%s\n" "no" >&6; }
33505 fi
33506 fi
33507 if test "$have_gslib" = 'yes'; then
33508 GS_DELEGATE_TRUE=
33509 GS_DELEGATE_FALSE='#'
33510 else
33511 GS_DELEGATE_TRUE='#'
33512 GS_DELEGATE_FALSE=
33513 fi
33514
33515
33516
33517 # Set default font search path
33518
33519 # Check whether --with-fontpath was given.
33520 if test ${with_fontpath+y}
33521 then :
33522 withval=$with_fontpath; with_fontpath=$withval
33523 else case e in #(
33524 e) with_fontpath='' ;;
33525 esac
33526 fi
33527
33528
33529 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
33530 with_fontpath=''
33531 else
33532
33533 printf "%s\n" "#define MAGICK_FONT_PATH \"$with_fontpath\"" >>confdefs.h
33534
33535 fi
33536 if test "$with_fontpath" != ''; then
33537 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
33538 fi
33539
33540 # Set Ghostscript font directory
33541
33542 # Check whether --with-gs-font-dir was given.
33543 if test ${with_gs_font_dir+y}
33544 then :
33545 withval=$with_gs_font_dir; with_gs_font_dir=$withval
33546 else case e in #(
33547 e) with_gs_font_dir='default' ;;
33548 esac
33549 fi
33550
33551
33552 if test "$with_gs_font_dir" != 'default'; then
33553 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
33554 fi
33555
33556
33557 #
33558 # Check for GVC delegate library.
33559 #
33560
33561 # Check whether --with-gvc was given.
33562 if test ${with_gvc+y}
33563 then :
33564 withval=$with_gvc; with_gvc=$withval
33565 else case e in #(
33566 e) with_gvc='yes' ;;
33567 esac
33568 fi
33569
33570
33571 if test "$with_gvc" != 'yes'; then
33572 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
33573 fi
33574
33575 GVC_PKG=""
33576 if test "x$with_gvc" = "xyes"; then
33577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33578 printf "%s\n" "-------------------------------------------------------------" >&6; }
33579
33580 pkg_failed=no
33581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgvc >= 2.9.0" >&5
33582 printf %s "checking for libgvc >= 2.9.0... " >&6; }
33583
33584 if test -n "$GVC_CFLAGS"; then
33585 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
33586 elif test -n "$PKG_CONFIG"; then
33587 if test -n "$PKG_CONFIG" && \
33588 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
33589 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
33590 ac_status=$?
33591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33592 test $ac_status = 0; }; then
33593 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
33594 test "x$?" != "x0" && pkg_failed=yes
33595 else
33596 pkg_failed=yes
33597 fi
33598 else
33599 pkg_failed=untried
33600 fi
33601 if test -n "$GVC_LIBS"; then
33602 pkg_cv_GVC_LIBS="$GVC_LIBS"
33603 elif test -n "$PKG_CONFIG"; then
33604 if test -n "$PKG_CONFIG" && \
33605 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
33606 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
33607 ac_status=$?
33608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33609 test $ac_status = 0; }; then
33610 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
33611 test "x$?" != "x0" && pkg_failed=yes
33612 else
33613 pkg_failed=yes
33614 fi
33615 else
33616 pkg_failed=untried
33617 fi
33618
33619
33620
33621 if test $pkg_failed = yes; then
33622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33623 printf "%s\n" "no" >&6; }
33624
33625 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33626 _pkg_short_errors_supported=yes
33627 else
33628 _pkg_short_errors_supported=no
33629 fi
33630 if test $_pkg_short_errors_supported = yes; then
33631 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
33632 else
33633 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
33634 fi
33635 # Put the nasty error message in config.log where it belongs
33636 echo "$GVC_PKG_ERRORS" >&5
33637
33638 have_gvc=no
33639 elif test $pkg_failed = untried; then
33640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33641 printf "%s\n" "no" >&6; }
33642 have_gvc=no
33643 else
33644 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
33645 GVC_LIBS=$pkg_cv_GVC_LIBS
33646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33647 printf "%s\n" "yes" >&6; }
33648 have_gvc=yes
33649 fi
33650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
33651 printf "%s\n" "" >&6; }
33652 fi
33653
33654 if test "$have_gvc" = 'yes'; then
33655
33656 printf "%s\n" "#define GVC_DELEGATE 1" >>confdefs.h
33657
33658 CFLAGS="$GVC_CFLAGS $CFLAGS"
33659 fi
33660
33661 if test "$have_gvc" = 'yes'; then
33662 GVC_DELEGATE_TRUE=
33663 GVC_DELEGATE_FALSE='#'
33664 else
33665 GVC_DELEGATE_TRUE='#'
33666 GVC_DELEGATE_FALSE=
33667 fi
33668
33669
33670
33671
33672
33673 #
33674 # Check for DMR, digital media repository, delegate library.
33675 #
33676
33677 # Check whether --with-dmr was given.
33678 if test ${with_dmr+y}
33679 then :
33680 withval=$with_dmr; with_dmr=$withval
33681 else case e in #(
33682 e) with_dmr='yes' ;;
33683 esac
33684 fi
33685
33686
33687 if test "$with_dmr" != 'yes'; then
33688 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dmr=$with_dmr "
33689 fi
33690
33691 have_dmr='no'
33692 DMR_CFLAGS=""
33693 DMR_LIBS=""
33694 DMR_PKG=""
33695 if test "x$with_dmr" = "xyes"; then
33696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33697 printf "%s\n" "-------------------------------------------------------------" >&6; }
33698
33699 pkg_failed=no
33700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MagickCache >= 0.9.3" >&5
33701 printf %s "checking for MagickCache >= 0.9.3... " >&6; }
33702
33703 if test -n "$MagickCache_CFLAGS"; then
33704 pkg_cv_MagickCache_CFLAGS="$MagickCache_CFLAGS"
33705 elif test -n "$PKG_CONFIG"; then
33706 if test -n "$PKG_CONFIG" && \
33707 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"MagickCache >= 0.9.3\""; } >&5
33708 ($PKG_CONFIG --exists --print-errors "MagickCache >= 0.9.3") 2>&5
33709 ac_status=$?
33710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33711 test $ac_status = 0; }; then
33712 pkg_cv_MagickCache_CFLAGS=`$PKG_CONFIG --cflags "MagickCache >= 0.9.3" 2>/dev/null`
33713 test "x$?" != "x0" && pkg_failed=yes
33714 else
33715 pkg_failed=yes
33716 fi
33717 else
33718 pkg_failed=untried
33719 fi
33720 if test -n "$MagickCache_LIBS"; then
33721 pkg_cv_MagickCache_LIBS="$MagickCache_LIBS"
33722 elif test -n "$PKG_CONFIG"; then
33723 if test -n "$PKG_CONFIG" && \
33724 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"MagickCache >= 0.9.3\""; } >&5
33725 ($PKG_CONFIG --exists --print-errors "MagickCache >= 0.9.3") 2>&5
33726 ac_status=$?
33727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33728 test $ac_status = 0; }; then
33729 pkg_cv_MagickCache_LIBS=`$PKG_CONFIG --libs "MagickCache >= 0.9.3" 2>/dev/null`
33730 test "x$?" != "x0" && pkg_failed=yes
33731 else
33732 pkg_failed=yes
33733 fi
33734 else
33735 pkg_failed=untried
33736 fi
33737
33738
33739
33740 if test $pkg_failed = yes; then
33741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33742 printf "%s\n" "no" >&6; }
33743
33744 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33745 _pkg_short_errors_supported=yes
33746 else
33747 _pkg_short_errors_supported=no
33748 fi
33749 if test $_pkg_short_errors_supported = yes; then
33750 MagickCache_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "MagickCache >= 0.9.3" 2>&1`
33751 else
33752 MagickCache_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "MagickCache >= 0.9.3" 2>&1`
33753 fi
33754 # Put the nasty error message in config.log where it belongs
33755 echo "$MagickCache_PKG_ERRORS" >&5
33756
33757 have_dmr=no
33758 elif test $pkg_failed = untried; then
33759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33760 printf "%s\n" "no" >&6; }
33761 have_dmr=no
33762 else
33763 MagickCache_CFLAGS=$pkg_cv_MagickCache_CFLAGS
33764 MagickCache_LIBS=$pkg_cv_MagickCache_LIBS
33765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33766 printf "%s\n" "yes" >&6; }
33767 have_dmr=yes
33768 fi
33769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
33770 printf "%s\n" "" >&6; }
33771 fi
33772
33773 if test "$have_dmr" = 'yes'; then
33774
33775 printf "%s\n" "#define DMR_DELEGATE 1" >>confdefs.h
33776
33777 DMR_CFLAGS="$MagickCache_CFLAGS"
33778 DMR_LIBS="$MagickCache_LIBS"
33779 CFLAGS="$DMR_CFLAGS $CFLAGS"
33780 fi
33781
33782 if test "$have_dmr" = 'yes'; then
33783 DMR_DELEGATE_TRUE=
33784 DMR_DELEGATE_FALSE='#'
33785 else
33786 DMR_DELEGATE_TRUE='#'
33787 DMR_DELEGATE_FALSE=
33788 fi
33789
33790
33791
33792
33793
33794 #
33795 # Check for the HEIC delegate library.
33796 #
33797
33798 # Check whether --with-heic was given.
33799 if test ${with_heic+y}
33800 then :
33801 withval=$with_heic; with_heic=$withval
33802 else case e in #(
33803 e) with_heic='yes' ;;
33804 esac
33805 fi
33806
33807
33808 if test "$with_heic" != 'yes'; then
33809 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-heic=$with_heic "
33810 fi
33811
33812 have_heic='no'
33813 HEIF_CFLAGS=""
33814 HEIF_LIBS=""
33815 HEIF_PKG=""
33816 if test "x$with_heic" = "xyes"; then
33817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33818 printf "%s\n" "-------------------------------------------------------------" >&6; }
33819
33820 pkg_failed=no
33821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libheif >= 1.4.0" >&5
33822 printf %s "checking for libheif >= 1.4.0... " >&6; }
33823
33824 if test -n "$HEIF_CFLAGS"; then
33825 pkg_cv_HEIF_CFLAGS="$HEIF_CFLAGS"
33826 elif test -n "$PKG_CONFIG"; then
33827 if test -n "$PKG_CONFIG" && \
33828 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libheif >= 1.4.0\""; } >&5
33829 ($PKG_CONFIG --exists --print-errors "libheif >= 1.4.0") 2>&5
33830 ac_status=$?
33831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33832 test $ac_status = 0; }; then
33833 pkg_cv_HEIF_CFLAGS=`$PKG_CONFIG --cflags "libheif >= 1.4.0" 2>/dev/null`
33834 test "x$?" != "x0" && pkg_failed=yes
33835 else
33836 pkg_failed=yes
33837 fi
33838 else
33839 pkg_failed=untried
33840 fi
33841 if test -n "$HEIF_LIBS"; then
33842 pkg_cv_HEIF_LIBS="$HEIF_LIBS"
33843 elif test -n "$PKG_CONFIG"; then
33844 if test -n "$PKG_CONFIG" && \
33845 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libheif >= 1.4.0\""; } >&5
33846 ($PKG_CONFIG --exists --print-errors "libheif >= 1.4.0") 2>&5
33847 ac_status=$?
33848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33849 test $ac_status = 0; }; then
33850 pkg_cv_HEIF_LIBS=`$PKG_CONFIG --libs "libheif >= 1.4.0" 2>/dev/null`
33851 test "x$?" != "x0" && pkg_failed=yes
33852 else
33853 pkg_failed=yes
33854 fi
33855 else
33856 pkg_failed=untried
33857 fi
33858
33859
33860
33861 if test $pkg_failed = yes; then
33862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33863 printf "%s\n" "no" >&6; }
33864
33865 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33866 _pkg_short_errors_supported=yes
33867 else
33868 _pkg_short_errors_supported=no
33869 fi
33870 if test $_pkg_short_errors_supported = yes; then
33871 HEIF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libheif >= 1.4.0" 2>&1`
33872 else
33873 HEIF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libheif >= 1.4.0" 2>&1`
33874 fi
33875 # Put the nasty error message in config.log where it belongs
33876 echo "$HEIF_PKG_ERRORS" >&5
33877
33878 have_heic=no
33879 elif test $pkg_failed = untried; then
33880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33881 printf "%s\n" "no" >&6; }
33882 have_heic=no
33883 else
33884 HEIF_CFLAGS=$pkg_cv_HEIF_CFLAGS
33885 HEIF_LIBS=$pkg_cv_HEIF_LIBS
33886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33887 printf "%s\n" "yes" >&6; }
33888 have_heic=yes
33889 fi
33890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
33891 printf "%s\n" "" >&6; }
33892 fi
33893
33894 if test "$have_heic" = 'yes'; then
33895
33896 printf "%s\n" "#define HEIC_DELEGATE 1" >>confdefs.h
33897
33898 CFLAGS="$HEIF_CFLAGS $CFLAGS"
33899 fi
33900
33901 if test "$have_heic" = 'yes'; then
33902 HEIC_DELEGATE_TRUE=
33903 HEIC_DELEGATE_FALSE='#'
33904 else
33905 HEIC_DELEGATE_TRUE='#'
33906 HEIC_DELEGATE_FALSE=
33907 fi
33908
33909
33910
33911
33912
33913 #
33914 # Check for JBIG delegate library.
33915 #
33916
33917 # Check whether --with-jbig was given.
33918 if test ${with_jbig+y}
33919 then :
33920 withval=$with_jbig; with_jbig=$withval
33921 else case e in #(
33922 e) with_jbig='yes' ;;
33923 esac
33924 fi
33925
33926
33927 have_jbig='no'
33928 JBIG_LIBS=''
33929 if test "$with_jbig" != 'no'; then
33930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33931 printf "%s\n" "-------------------------------------------------------------" >&6; }
33932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
33933 printf %s "checking for JBIG... " >&6; }
33934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
33935 printf "%s\n" "" >&6; }
33936 failed=0
33937 passed=0
33938 ac_fn_c_check_header_compile "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
33939 if test "x$ac_cv_header_jbig_h" = xyes
33940 then :
33941 passed=`expr $passed + 1`
33942 else case e in #(
33943 e) failed=`expr $failed + 1` ;;
33944 esac
33945 fi
33946
33947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
33948 printf %s "checking for jbg_dec_init in -ljbig... " >&6; }
33949 if test ${ac_cv_lib_jbig_jbg_dec_init+y}
33950 then :
33951 printf %s "(cached) " >&6
33952 else case e in #(
33953 e) ac_check_lib_save_LIBS=$LIBS
33954 LIBS="-ljbig $LIBS"
33955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33956 /* end confdefs.h. */
33957
33958 /* Override any GCC internal prototype to avoid an error.
33959 Use char because int might match the return type of a GCC
33960 builtin and then its argument prototype would still apply.
33961 The 'extern "C"' is for builds by C++ compilers;
33962 although this is not generally supported in C code supporting it here
33963 has little cost and some practical benefit (sr 110532). */
33964 #ifdef __cplusplus
33965 extern "C"
33966 #endif
33967 char jbg_dec_init (void);
33968 int
33969 main (void)
33970 {
33971 return jbg_dec_init ();
33972 ;
33973 return 0;
33974 }
33975 _ACEOF
33976 if ac_fn_c_try_link "$LINENO"
33977 then :
33978 ac_cv_lib_jbig_jbg_dec_init=yes
33979 else case e in #(
33980 e) ac_cv_lib_jbig_jbg_dec_init=no ;;
33981 esac
33982 fi
33983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33984 conftest$ac_exeext conftest.$ac_ext
33985 LIBS=$ac_check_lib_save_LIBS ;;
33986 esac
33987 fi
33988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
33989 printf "%s\n" "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
33990 if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes
33991 then :
33992 passed=`expr $passed + 1`
33993 else case e in #(
33994 e) failed=`expr $failed + 1` ;;
33995 esac
33996 fi
33997
33998
33999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
34000 printf %s "checking if JBIG package is complete... " >&6; }
34001 if test $passed -gt 0; then
34002 if test $failed -gt 0; then
34003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
34004 printf "%s\n" "no -- some components failed test" >&6; }
34005 have_jbig='no (failed tests)'
34006 else
34007 JBIG_LIBS='-ljbig'
34008 LIBS="$JBIG_LIBS $LIBS"
34009
34010 printf "%s\n" "#define JBIG_DELEGATE 1" >>confdefs.h
34011
34012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34013 printf "%s\n" "yes" >&6; }
34014 have_jbig='yes'
34015 fi
34016 else
34017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34018 printf "%s\n" "no" >&6; }
34019 fi
34020 fi
34021 if test "$have_jbig" = 'yes'; then
34022 JBIG_DELEGATE_TRUE=
34023 JBIG_DELEGATE_FALSE='#'
34024 else
34025 JBIG_DELEGATE_TRUE='#'
34026 JBIG_DELEGATE_FALSE=
34027 fi
34028
34029
34030
34031
34032 #
34033 # Check for JPEG delegate library.
34034 #
34035
34036 # Check whether --with-jpeg was given.
34037 if test ${with_jpeg+y}
34038 then :
34039 withval=$with_jpeg; with_jpeg=$withval
34040 else case e in #(
34041 e) with_jpeg='yes' ;;
34042 esac
34043 fi
34044
34045
34046 if test "$with_jpeg" != 'yes'; then
34047 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
34048 fi
34049
34050 have_jpeg='no'
34051 JPEG_LIBS=''
34052 if test "$with_jpeg" != 'no'; then
34053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34054 printf "%s\n" "-------------------------------------------------------------" >&6; }
34055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
34056 printf %s "checking for JPEG... " >&6; }
34057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
34058 printf "%s\n" "" >&6; }
34059 failed=0
34060 passed=0
34061
34062
34063 pkg_failed=no
34064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libjpeg >= 2.0.0" >&5
34065 printf %s "checking for libjpeg >= 2.0.0... " >&6; }
34066
34067 if test -n "$JPEG_CFLAGS"; then
34068 pkg_cv_JPEG_CFLAGS="$JPEG_CFLAGS"
34069 elif test -n "$PKG_CONFIG"; then
34070 if test -n "$PKG_CONFIG" && \
34071 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjpeg >= 2.0.0\""; } >&5
34072 ($PKG_CONFIG --exists --print-errors "libjpeg >= 2.0.0") 2>&5
34073 ac_status=$?
34074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34075 test $ac_status = 0; }; then
34076 pkg_cv_JPEG_CFLAGS=`$PKG_CONFIG --cflags "libjpeg >= 2.0.0" 2>/dev/null`
34077 test "x$?" != "x0" && pkg_failed=yes
34078 else
34079 pkg_failed=yes
34080 fi
34081 else
34082 pkg_failed=untried
34083 fi
34084 if test -n "$JPEG_LIBS"; then
34085 pkg_cv_JPEG_LIBS="$JPEG_LIBS"
34086 elif test -n "$PKG_CONFIG"; then
34087 if test -n "$PKG_CONFIG" && \
34088 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjpeg >= 2.0.0\""; } >&5
34089 ($PKG_CONFIG --exists --print-errors "libjpeg >= 2.0.0") 2>&5
34090 ac_status=$?
34091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34092 test $ac_status = 0; }; then
34093 pkg_cv_JPEG_LIBS=`$PKG_CONFIG --libs "libjpeg >= 2.0.0" 2>/dev/null`
34094 test "x$?" != "x0" && pkg_failed=yes
34095 else
34096 pkg_failed=yes
34097 fi
34098 else
34099 pkg_failed=untried
34100 fi
34101
34102
34103
34104 if test $pkg_failed = yes; then
34105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34106 printf "%s\n" "no" >&6; }
34107
34108 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34109 _pkg_short_errors_supported=yes
34110 else
34111 _pkg_short_errors_supported=no
34112 fi
34113 if test $_pkg_short_errors_supported = yes; then
34114 JPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libjpeg >= 2.0.0" 2>&1`
34115 else
34116 JPEG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libjpeg >= 2.0.0" 2>&1`
34117 fi
34118 # Put the nasty error message in config.log where it belongs
34119 echo "$JPEG_PKG_ERRORS" >&5
34120
34121 have_jpeg=no
34122 elif test $pkg_failed = untried; then
34123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34124 printf "%s\n" "no" >&6; }
34125 have_jpeg=no
34126 else
34127 JPEG_CFLAGS=$pkg_cv_JPEG_CFLAGS
34128 JPEG_LIBS=$pkg_cv_JPEG_LIBS
34129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34130 printf "%s\n" "yes" >&6; }
34131 have_jpeg=yes
34132 fi
34133 CFLAGS="$CFLAGS $JPEG_CFLAGS"
34134 LIBS="$LIBS $JPEG_LIBS"
34135
34136 ac_fn_c_check_header_compile "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
34137 if test "x$ac_cv_header_jconfig_h" = xyes
34138 then :
34139 passed=`expr $passed + 1`
34140 else case e in #(
34141 e) failed=`expr $failed + 1` ;;
34142 esac
34143 fi
34144
34145 ac_fn_c_check_header_compile "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
34146 if test "x$ac_cv_header_jerror_h" = xyes
34147 then :
34148 passed=`expr $passed + 1`
34149 else case e in #(
34150 e) failed=`expr $failed + 1` ;;
34151 esac
34152 fi
34153
34154 ac_fn_c_check_header_compile "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
34155 if test "x$ac_cv_header_jmorecfg_h" = xyes
34156 then :
34157 passed=`expr $passed + 1`
34158 else case e in #(
34159 e) failed=`expr $failed + 1` ;;
34160 esac
34161 fi
34162
34163 ac_fn_c_check_header_compile "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
34164 if test "x$ac_cv_header_jpeglib_h" = xyes
34165 then :
34166 passed=`expr $passed + 1`
34167 else case e in #(
34168 e) failed=`expr $failed + 1` ;;
34169 esac
34170 fi
34171
34172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
34173 printf %s "checking for jpeg_read_header in -ljpeg... " >&6; }
34174 if test ${ac_cv_lib_jpeg_jpeg_read_header+y}
34175 then :
34176 printf %s "(cached) " >&6
34177 else case e in #(
34178 e) ac_check_lib_save_LIBS=$LIBS
34179 LIBS="-ljpeg $LIBS"
34180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34181 /* end confdefs.h. */
34182
34183 /* Override any GCC internal prototype to avoid an error.
34184 Use char because int might match the return type of a GCC
34185 builtin and then its argument prototype would still apply.
34186 The 'extern "C"' is for builds by C++ compilers;
34187 although this is not generally supported in C code supporting it here
34188 has little cost and some practical benefit (sr 110532). */
34189 #ifdef __cplusplus
34190 extern "C"
34191 #endif
34192 char jpeg_read_header (void);
34193 int
34194 main (void)
34195 {
34196 return jpeg_read_header ();
34197 ;
34198 return 0;
34199 }
34200 _ACEOF
34201 if ac_fn_c_try_link "$LINENO"
34202 then :
34203 ac_cv_lib_jpeg_jpeg_read_header=yes
34204 else case e in #(
34205 e) ac_cv_lib_jpeg_jpeg_read_header=no ;;
34206 esac
34207 fi
34208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34209 conftest$ac_exeext conftest.$ac_ext
34210 LIBS=$ac_check_lib_save_LIBS ;;
34211 esac
34212 fi
34213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
34214 printf "%s\n" "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
34215 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes
34216 then :
34217 passed=`expr $passed + 1`
34218 else case e in #(
34219 e) failed=`expr $failed + 1` ;;
34220 esac
34221 fi
34222
34223
34224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
34225 printf %s "checking if JPEG package is complete... " >&6; }
34226 if test $passed -gt 0; then
34227 if test $failed -gt 0; then
34228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
34229 printf "%s\n" "no -- some components failed test" >&6; }
34230 have_jpeg='no (failed tests)'
34231 else
34232 if test -z "$JPEG_LIBS"; then
34233 JPEG_LIBS='-ljpeg'
34234 fi
34235 LIBS="$JPEG_LIBS $LIBS"
34236
34237 printf "%s\n" "#define JPEG_DELEGATE 1" >>confdefs.h
34238
34239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34240 printf "%s\n" "yes" >&6; }
34241 have_jpeg='yes'
34242 fi
34243 ac_fn_c_check_func "$LINENO" "jpeg12_read_scanlines" "ac_cv_func_jpeg12_read_scanlines"
34244 if test "x$ac_cv_func_jpeg12_read_scanlines" = xyes
34245 then :
34246 printf "%s\n" "#define HAVE_JPEG12_READ_SCANLINES 1" >>confdefs.h
34247
34248 fi
34249 ac_fn_c_check_func "$LINENO" "jpeg12_write_scanlines" "ac_cv_func_jpeg12_write_scanlines"
34250 if test "x$ac_cv_func_jpeg12_write_scanlines" = xyes
34251 then :
34252 printf "%s\n" "#define HAVE_JPEG12_WRITE_SCANLINES 1" >>confdefs.h
34253
34254 fi
34255 ac_fn_c_check_func "$LINENO" "jpeg16_read_scanlines" "ac_cv_func_jpeg16_read_scanlines"
34256 if test "x$ac_cv_func_jpeg16_read_scanlines" = xyes
34257 then :
34258 printf "%s\n" "#define HAVE_JPEG16_READ_SCANLINES 1" >>confdefs.h
34259
34260 fi
34261 ac_fn_c_check_func "$LINENO" "jpeg16_write_scanlines" "ac_cv_func_jpeg16_write_scanlines"
34262 if test "x$ac_cv_func_jpeg16_write_scanlines" = xyes
34263 then :
34264 printf "%s\n" "#define HAVE_JPEG16_WRITE_SCANLINES 1" >>confdefs.h
34265
34266 fi
34267 ac_fn_c_check_func "$LINENO" "jpeg_enable_lossless" "ac_cv_func_jpeg_enable_lossless"
34268 if test "x$ac_cv_func_jpeg_enable_lossless" = xyes
34269 then :
34270 printf "%s\n" "#define HAVE_JPEG_ENABLE_LOSSLESS 1" >>confdefs.h
34271
34272 fi
34273 ac_fn_c_check_func "$LINENO" "jpeg_simple_lossless" "ac_cv_func_jpeg_simple_lossless"
34274 if test "x$ac_cv_func_jpeg_simple_lossless" = xyes
34275 then :
34276 printf "%s\n" "#define HAVE_JPEG_SIMPLE_LOSSLESS 1" >>confdefs.h
34277
34278 fi
34279
34280 else
34281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34282 printf "%s\n" "no" >&6; }
34283 fi
34284 fi
34285 if test "$have_jpeg" = 'yes'; then
34286 JPEG_DELEGATE_TRUE=
34287 JPEG_DELEGATE_FALSE='#'
34288 else
34289 JPEG_DELEGATE_TRUE='#'
34290 JPEG_DELEGATE_FALSE=
34291 fi
34292
34293
34294
34295
34296
34297 #
34298 # Check for JPEG-XL delegate library.
34299 #
34300
34301 # Check whether --with-jxl was given.
34302 if test ${with_jxl+y}
34303 then :
34304 withval=$with_jxl; with_jxl=$withval
34305 else case e in #(
34306 e) with_jxl='yes' ;;
34307 esac
34308 fi
34309
34310
34311 # Check for the JPEG-XL library.
34312 have_jxl='no'
34313 JXL_CFLAGS=''
34314 JXL_LIBS=''
34315 JXL_PKG=''
34316 if test "$with_jxl" != 'no'; then
34317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34318 printf "%s\n" "-------------------------------------------------------------" >&6; }
34319
34320 pkg_failed=no
34321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libjxl >= 0.7.0 libjxl_threads" >&5
34322 printf %s "checking for libjxl >= 0.7.0 libjxl_threads... " >&6; }
34323
34324 if test -n "$JXL_CFLAGS"; then
34325 pkg_cv_JXL_CFLAGS="$JXL_CFLAGS"
34326 elif test -n "$PKG_CONFIG"; then
34327 if test -n "$PKG_CONFIG" && \
34328 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjxl >= 0.7.0 libjxl_threads\""; } >&5
34329 ($PKG_CONFIG --exists --print-errors "libjxl >= 0.7.0 libjxl_threads") 2>&5
34330 ac_status=$?
34331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34332 test $ac_status = 0; }; then
34333 pkg_cv_JXL_CFLAGS=`$PKG_CONFIG --cflags "libjxl >= 0.7.0 libjxl_threads" 2>/dev/null`
34334 test "x$?" != "x0" && pkg_failed=yes
34335 else
34336 pkg_failed=yes
34337 fi
34338 else
34339 pkg_failed=untried
34340 fi
34341 if test -n "$JXL_LIBS"; then
34342 pkg_cv_JXL_LIBS="$JXL_LIBS"
34343 elif test -n "$PKG_CONFIG"; then
34344 if test -n "$PKG_CONFIG" && \
34345 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjxl >= 0.7.0 libjxl_threads\""; } >&5
34346 ($PKG_CONFIG --exists --print-errors "libjxl >= 0.7.0 libjxl_threads") 2>&5
34347 ac_status=$?
34348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34349 test $ac_status = 0; }; then
34350 pkg_cv_JXL_LIBS=`$PKG_CONFIG --libs "libjxl >= 0.7.0 libjxl_threads" 2>/dev/null`
34351 test "x$?" != "x0" && pkg_failed=yes
34352 else
34353 pkg_failed=yes
34354 fi
34355 else
34356 pkg_failed=untried
34357 fi
34358
34359
34360
34361 if test $pkg_failed = yes; then
34362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34363 printf "%s\n" "no" >&6; }
34364
34365 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34366 _pkg_short_errors_supported=yes
34367 else
34368 _pkg_short_errors_supported=no
34369 fi
34370 if test $_pkg_short_errors_supported = yes; then
34371 JXL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libjxl >= 0.7.0 libjxl_threads" 2>&1`
34372 else
34373 JXL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libjxl >= 0.7.0 libjxl_threads" 2>&1`
34374 fi
34375 # Put the nasty error message in config.log where it belongs
34376 echo "$JXL_PKG_ERRORS" >&5
34377
34378 have_jxl=no
34379 elif test $pkg_failed = untried; then
34380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34381 printf "%s\n" "no" >&6; }
34382 have_jxl=no
34383 else
34384 JXL_CFLAGS=$pkg_cv_JXL_CFLAGS
34385 JXL_LIBS=$pkg_cv_JXL_LIBS
34386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34387 printf "%s\n" "yes" >&6; }
34388 have_jxl=yes
34389 fi
34390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
34391 printf "%s\n" "" >&6; }
34392 fi
34393
34394 if test "$have_jxl" = 'yes'; then
34395
34396 printf "%s\n" "#define JXL_DELEGATE 1" >>confdefs.h
34397
34398 CFLAGS="$JXL_CFLAGS $CFLAGS"
34399 fi
34400
34401 if test "$have_jxl" = 'yes'; then
34402 JXL_DELEGATE_TRUE=
34403 JXL_DELEGATE_FALSE='#'
34404 else
34405 JXL_DELEGATE_TRUE='#'
34406 JXL_DELEGATE_FALSE=
34407 fi
34408
34409
34410
34411
34412
34413 #
34414 # Check for LCMS delegate library.
34415 #
34416
34417 # Check whether --with-lcms was given.
34418 if test ${with_lcms+y}
34419 then :
34420 withval=$with_lcms; with_lcms=$withval
34421 else case e in #(
34422 e) with_lcms='yes' ;;
34423 esac
34424 fi
34425
34426 if test "$with_lcms" != 'yes' ; then
34427 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
34428 fi
34429
34430 have_lcms='no'
34431 LCMS_CFLAGS=""
34432 LCMS_LIBS=""
34433 LCMS_PKG=""
34434 if test "x$with_lcms" = "xyes"; then
34435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34436 printf "%s\n" "-------------------------------------------------------------" >&6; }
34437
34438 pkg_failed=no
34439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lcms2 >= 2.0.0" >&5
34440 printf %s "checking for lcms2 >= 2.0.0... " >&6; }
34441
34442 if test -n "$LCMS2_CFLAGS"; then
34443 pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
34444 elif test -n "$PKG_CONFIG"; then
34445 if test -n "$PKG_CONFIG" && \
34446 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
34447 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
34448 ac_status=$?
34449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34450 test $ac_status = 0; }; then
34451 pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2 >= 2.0.0" 2>/dev/null`
34452 test "x$?" != "x0" && pkg_failed=yes
34453 else
34454 pkg_failed=yes
34455 fi
34456 else
34457 pkg_failed=untried
34458 fi
34459 if test -n "$LCMS2_LIBS"; then
34460 pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
34461 elif test -n "$PKG_CONFIG"; then
34462 if test -n "$PKG_CONFIG" && \
34463 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
34464 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
34465 ac_status=$?
34466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34467 test $ac_status = 0; }; then
34468 pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2 >= 2.0.0" 2>/dev/null`
34469 test "x$?" != "x0" && pkg_failed=yes
34470 else
34471 pkg_failed=yes
34472 fi
34473 else
34474 pkg_failed=untried
34475 fi
34476
34477
34478
34479 if test $pkg_failed = yes; then
34480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34481 printf "%s\n" "no" >&6; }
34482
34483 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34484 _pkg_short_errors_supported=yes
34485 else
34486 _pkg_short_errors_supported=no
34487 fi
34488 if test $_pkg_short_errors_supported = yes; then
34489 LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
34490 else
34491 LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
34492 fi
34493 # Put the nasty error message in config.log where it belongs
34494 echo "$LCMS2_PKG_ERRORS" >&5
34495
34496 have_lcms=no
34497 elif test $pkg_failed = untried; then
34498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34499 printf "%s\n" "no" >&6; }
34500 have_lcms=no
34501 else
34502 LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
34503 LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
34504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34505 printf "%s\n" "yes" >&6; }
34506 have_lcms=yes
34507 fi
34508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
34509 printf "%s\n" "" >&6; }
34510 fi
34511
34512 if test "$have_lcms" = 'yes'; then
34513
34514 printf "%s\n" "#define LCMS_DELEGATE 1" >>confdefs.h
34515
34516 LCMS_CFLAGS="$LCMS2_CFLAGS"
34517 LCMS_LIBS="$LCMS2_LIBS"
34518 CFLAGS="$LCMS2_CFLAGS $CFLAGS"
34519 ac_fn_c_check_header_compile "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
34520 if test "x$ac_cv_header_lcms2_lcms2_h" = xyes
34521 then :
34522 have_lcms_header='yes'
34523 fi
34524
34525 if test "$have_lcms_header" = 'yes'; then
34526
34527 printf "%s\n" "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
34528
34529 else
34530
34531 printf "%s\n" "#define HAVE_LCMS2_H 1" >>confdefs.h
34532
34533 fi
34534 fi
34535
34536 if test "$have_lcms" = 'yes'; then
34537 LCMS_DELEGATE_TRUE=
34538 LCMS_DELEGATE_FALSE='#'
34539 else
34540 LCMS_DELEGATE_TRUE='#'
34541 LCMS_DELEGATE_FALSE=
34542 fi
34543
34544
34545
34546
34547
34548 #
34549 # Check for the OpenJP2 delegate library.
34550 #
34551
34552 # Check whether --with-openjp2 was given.
34553 if test ${with_openjp2+y}
34554 then :
34555 withval=$with_openjp2; with_openjp2=$withval
34556 else case e in #(
34557 e) with_openjp2='yes' ;;
34558 esac
34559 fi
34560
34561
34562 if test "$with_openjp2" != 'yes'; then
34563 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
34564 fi
34565
34566 have_openjp2='no'
34567 LIBOPENJP2_CFLAGS=""
34568 LIBOPENJP2_LIBS=""
34569 LIBOPENJP2_PKG=""
34570 if test "$with_openjp2" != 'no'; then
34571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34572 printf "%s\n" "-------------------------------------------------------------" >&6; }
34573
34574 pkg_failed=no
34575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libopenjp2 >= 2.1.0" >&5
34576 printf %s "checking for libopenjp2 >= 2.1.0... " >&6; }
34577
34578 if test -n "$LIBOPENJP2_CFLAGS"; then
34579 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
34580 elif test -n "$PKG_CONFIG"; then
34581 if test -n "$PKG_CONFIG" && \
34582 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
34583 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
34584 ac_status=$?
34585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34586 test $ac_status = 0; }; then
34587 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
34588 test "x$?" != "x0" && pkg_failed=yes
34589 else
34590 pkg_failed=yes
34591 fi
34592 else
34593 pkg_failed=untried
34594 fi
34595 if test -n "$LIBOPENJP2_LIBS"; then
34596 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
34597 elif test -n "$PKG_CONFIG"; then
34598 if test -n "$PKG_CONFIG" && \
34599 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
34600 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
34601 ac_status=$?
34602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34603 test $ac_status = 0; }; then
34604 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
34605 test "x$?" != "x0" && pkg_failed=yes
34606 else
34607 pkg_failed=yes
34608 fi
34609 else
34610 pkg_failed=untried
34611 fi
34612
34613
34614
34615 if test $pkg_failed = yes; then
34616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34617 printf "%s\n" "no" >&6; }
34618
34619 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34620 _pkg_short_errors_supported=yes
34621 else
34622 _pkg_short_errors_supported=no
34623 fi
34624 if test $_pkg_short_errors_supported = yes; then
34625 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
34626 else
34627 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
34628 fi
34629 # Put the nasty error message in config.log where it belongs
34630 echo "$LIBOPENJP2_PKG_ERRORS" >&5
34631
34632 have_openjp2=no
34633 elif test $pkg_failed = untried; then
34634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34635 printf "%s\n" "no" >&6; }
34636 have_openjp2=no
34637 else
34638 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
34639 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
34640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34641 printf "%s\n" "yes" >&6; }
34642 have_openjp2=yes
34643 fi
34644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
34645 printf "%s\n" "" >&6; }
34646 fi
34647
34648 if test "$have_openjp2" = 'yes'; then
34649
34650 printf "%s\n" "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
34651
34652 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
34653 fi
34654
34655 if test "$have_openjp2" = 'yes'; then
34656 LIBOPENJP2_DELEGATE_TRUE=
34657 LIBOPENJP2_DELEGATE_FALSE='#'
34658 else
34659 LIBOPENJP2_DELEGATE_TRUE='#'
34660 LIBOPENJP2_DELEGATE_FALSE=
34661 fi
34662
34663
34664
34665
34666
34667
34668 #
34669 # Check for the LQR (Liquid Rescale) delegate library.
34670 #
34671
34672 # Check whether --with-lqr was given.
34673 if test ${with_lqr+y}
34674 then :
34675 withval=$with_lqr; with_lqr=$withval
34676 else case e in #(
34677 e) with_lqr='yes' ;;
34678 esac
34679 fi
34680
34681
34682 if test "$with_lqr" != 'yes'; then
34683 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
34684 fi
34685
34686 have_lqr='no'
34687 LQR_CFLAGS=""
34688 LQR_LIBS=""
34689 LQR_PKG=""
34690 if test "x$with_lqr" = "xyes"; then
34691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34692 printf "%s\n" "-------------------------------------------------------------" >&6; }
34693
34694 pkg_failed=no
34695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lqr-1 >= 0.1.0" >&5
34696 printf %s "checking for lqr-1 >= 0.1.0... " >&6; }
34697
34698 if test -n "$LQR_CFLAGS"; then
34699 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
34700 elif test -n "$PKG_CONFIG"; then
34701 if test -n "$PKG_CONFIG" && \
34702 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
34703 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
34704 ac_status=$?
34705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34706 test $ac_status = 0; }; then
34707 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
34708 test "x$?" != "x0" && pkg_failed=yes
34709 else
34710 pkg_failed=yes
34711 fi
34712 else
34713 pkg_failed=untried
34714 fi
34715 if test -n "$LQR_LIBS"; then
34716 pkg_cv_LQR_LIBS="$LQR_LIBS"
34717 elif test -n "$PKG_CONFIG"; then
34718 if test -n "$PKG_CONFIG" && \
34719 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
34720 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
34721 ac_status=$?
34722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34723 test $ac_status = 0; }; then
34724 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
34725 test "x$?" != "x0" && pkg_failed=yes
34726 else
34727 pkg_failed=yes
34728 fi
34729 else
34730 pkg_failed=untried
34731 fi
34732
34733
34734
34735 if test $pkg_failed = yes; then
34736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34737 printf "%s\n" "no" >&6; }
34738
34739 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34740 _pkg_short_errors_supported=yes
34741 else
34742 _pkg_short_errors_supported=no
34743 fi
34744 if test $_pkg_short_errors_supported = yes; then
34745 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
34746 else
34747 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
34748 fi
34749 # Put the nasty error message in config.log where it belongs
34750 echo "$LQR_PKG_ERRORS" >&5
34751
34752 have_lqr=no
34753 elif test $pkg_failed = untried; then
34754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34755 printf "%s\n" "no" >&6; }
34756 have_lqr=no
34757 else
34758 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
34759 LQR_LIBS=$pkg_cv_LQR_LIBS
34760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34761 printf "%s\n" "yes" >&6; }
34762 have_lqr=yes
34763 fi
34764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
34765 printf "%s\n" "" >&6; }
34766 fi
34767
34768 if test "$have_lqr" = 'yes'; then
34769
34770 printf "%s\n" "#define LQR_DELEGATE 1" >>confdefs.h
34771
34772 CFLAGS="$LQR_CFLAGS $CFLAGS"
34773 fi
34774
34775 if test "$have_lqr" = 'yes'; then
34776 LQR_DELEGATE_TRUE=
34777 LQR_DELEGATE_FALSE='#'
34778 else
34779 LQR_DELEGATE_TRUE='#'
34780 LQR_DELEGATE_FALSE=
34781 fi
34782
34783
34784
34785
34786
34787 # Disable LZMA (lzma library)
34788
34789 # Check whether --with-lzma was given.
34790 if test ${with_lzma+y}
34791 then :
34792 withval=$with_lzma; with_lzma=$withval
34793 else case e in #(
34794 e) with_lzma='yes' ;;
34795 esac
34796 fi
34797
34798 if test "$with_lzma" != 'yes' ; then
34799 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
34800 fi
34801
34802 LZMA_PKG=""
34803 if test "x$with_lzma" = "xyes"; then
34804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34805 printf "%s\n" "-------------------------------------------------------------" >&6; }
34806
34807 pkg_failed=no
34808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liblzma >= 2.9.0" >&5
34809 printf %s "checking for liblzma >= 2.9.0... " >&6; }
34810
34811 if test -n "$LZMA_CFLAGS"; then
34812 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
34813 elif test -n "$PKG_CONFIG"; then
34814 if test -n "$PKG_CONFIG" && \
34815 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
34816 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
34817 ac_status=$?
34818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34819 test $ac_status = 0; }; then
34820 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
34821 test "x$?" != "x0" && pkg_failed=yes
34822 else
34823 pkg_failed=yes
34824 fi
34825 else
34826 pkg_failed=untried
34827 fi
34828 if test -n "$LZMA_LIBS"; then
34829 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
34830 elif test -n "$PKG_CONFIG"; then
34831 if test -n "$PKG_CONFIG" && \
34832 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
34833 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
34834 ac_status=$?
34835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34836 test $ac_status = 0; }; then
34837 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
34838 test "x$?" != "x0" && pkg_failed=yes
34839 else
34840 pkg_failed=yes
34841 fi
34842 else
34843 pkg_failed=untried
34844 fi
34845
34846
34847
34848 if test $pkg_failed = yes; then
34849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34850 printf "%s\n" "no" >&6; }
34851
34852 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34853 _pkg_short_errors_supported=yes
34854 else
34855 _pkg_short_errors_supported=no
34856 fi
34857 if test $_pkg_short_errors_supported = yes; then
34858 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
34859 else
34860 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
34861 fi
34862 # Put the nasty error message in config.log where it belongs
34863 echo "$LZMA_PKG_ERRORS" >&5
34864
34865 have_lzma=no
34866 elif test $pkg_failed = untried; then
34867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34868 printf "%s\n" "no" >&6; }
34869 have_lzma=no
34870 else
34871 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
34872 LZMA_LIBS=$pkg_cv_LZMA_LIBS
34873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34874 printf "%s\n" "yes" >&6; }
34875 have_lzma=yes
34876 fi
34877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
34878 printf "%s\n" "" >&6; }
34879 else
34880 have_lzma=no
34881 fi
34882
34883 if test "$have_lzma" = 'yes'; then
34884
34885 printf "%s\n" "#define LZMA_DELEGATE 1" >>confdefs.h
34886
34887 CFLAGS="$LZMA_CFLAGS $CFLAGS"
34888 fi
34889
34890 if test "$have_lzma" = 'yes'; then
34891 LZMA_DELEGATE_TRUE=
34892 LZMA_DELEGATE_FALSE='#'
34893 else
34894 LZMA_DELEGATE_TRUE='#'
34895 LZMA_DELEGATE_FALSE=
34896 fi
34897
34898
34899
34900
34901
34902 #
34903 # Check for the OpenEXR delegate library.
34904 #
34905
34906 # Check whether --with-openexr was given.
34907 if test ${with_openexr+y}
34908 then :
34909 withval=$with_openexr; with_openexr=$withval
34910 else case e in #(
34911 e) with_openexr='yes' ;;
34912 esac
34913 fi
34914
34915
34916 if test "$with_openexr" != 'yes'; then
34917 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
34918 fi
34919
34920 have_openexr='no'
34921 OPENEXR_CFLAGS=""
34922 OPENEXR_LIBS=""
34923 OPENEXR_PKG=""
34924 if test "x$with_openexr" = "xyes"; then
34925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34926 printf "%s\n" "-------------------------------------------------------------" >&6; }
34927
34928 pkg_failed=no
34929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenEXR >= 1.0.6" >&5
34930 printf %s "checking for OpenEXR >= 1.0.6... " >&6; }
34931
34932 if test -n "$OPENEXR_CFLAGS"; then
34933 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
34934 elif test -n "$PKG_CONFIG"; then
34935 if test -n "$PKG_CONFIG" && \
34936 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
34937 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
34938 ac_status=$?
34939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34940 test $ac_status = 0; }; then
34941 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
34942 test "x$?" != "x0" && pkg_failed=yes
34943 else
34944 pkg_failed=yes
34945 fi
34946 else
34947 pkg_failed=untried
34948 fi
34949 if test -n "$OPENEXR_LIBS"; then
34950 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
34951 elif test -n "$PKG_CONFIG"; then
34952 if test -n "$PKG_CONFIG" && \
34953 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
34954 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
34955 ac_status=$?
34956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34957 test $ac_status = 0; }; then
34958 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
34959 test "x$?" != "x0" && pkg_failed=yes
34960 else
34961 pkg_failed=yes
34962 fi
34963 else
34964 pkg_failed=untried
34965 fi
34966
34967
34968
34969 if test $pkg_failed = yes; then
34970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34971 printf "%s\n" "no" >&6; }
34972
34973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34974 _pkg_short_errors_supported=yes
34975 else
34976 _pkg_short_errors_supported=no
34977 fi
34978 if test $_pkg_short_errors_supported = yes; then
34979 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
34980 else
34981 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
34982 fi
34983 # Put the nasty error message in config.log where it belongs
34984 echo "$OPENEXR_PKG_ERRORS" >&5
34985
34986 have_openexr=no
34987 elif test $pkg_failed = untried; then
34988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34989 printf "%s\n" "no" >&6; }
34990 have_openexr=no
34991 else
34992 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
34993 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
34994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34995 printf "%s\n" "yes" >&6; }
34996 have_openexr=yes
34997 fi
34998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
34999 printf "%s\n" "" >&6; }
35000 fi
35001
35002 if test "$have_openexr" = 'yes'; then
35003
35004 printf "%s\n" "#define OPENEXR_DELEGATE 1" >>confdefs.h
35005
35006 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
35007 fi
35008
35009 if test "$have_openexr" = 'yes'; then
35010 OPENEXR_DELEGATE_TRUE=
35011 OPENEXR_DELEGATE_FALSE='#'
35012 else
35013 OPENEXR_DELEGATE_TRUE='#'
35014 OPENEXR_DELEGATE_FALSE=
35015 fi
35016
35017
35018
35019
35020
35021 #
35022 # Check for PANGO delegate library.
35023 #
35024
35025 # Check whether --with-pango was given.
35026 if test ${with_pango+y}
35027 then :
35028 withval=$with_pango; with_pango=$withval
35029 else case e in #(
35030 e) with_pango='yes' ;;
35031 esac
35032 fi
35033
35034
35035 if test "$with_pango" != 'yes'; then
35036 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
35037 fi
35038
35039 have_pango='no'
35040 have_pangocairo='no'
35041 PANGO_CFLAGS=""
35042 PANGO_LIBS=""
35043 PANGO_PKG=""
35044 if test "x$with_pango" = "xyes"; then
35045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35046 printf "%s\n" "-------------------------------------------------------------" >&6; }
35047
35048 pkg_failed=no
35049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pangocairo >= 1.28.1" >&5
35050 printf %s "checking for pangocairo >= 1.28.1... " >&6; }
35051
35052 if test -n "$PANGO_CFLAGS"; then
35053 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
35054 elif test -n "$PKG_CONFIG"; then
35055 if test -n "$PKG_CONFIG" && \
35056 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
35057 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
35058 ac_status=$?
35059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35060 test $ac_status = 0; }; then
35061 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
35062 test "x$?" != "x0" && pkg_failed=yes
35063 else
35064 pkg_failed=yes
35065 fi
35066 else
35067 pkg_failed=untried
35068 fi
35069 if test -n "$PANGO_LIBS"; then
35070 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
35071 elif test -n "$PKG_CONFIG"; then
35072 if test -n "$PKG_CONFIG" && \
35073 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
35074 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
35075 ac_status=$?
35076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35077 test $ac_status = 0; }; then
35078 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
35079 test "x$?" != "x0" && pkg_failed=yes
35080 else
35081 pkg_failed=yes
35082 fi
35083 else
35084 pkg_failed=untried
35085 fi
35086
35087
35088
35089 if test $pkg_failed = yes; then
35090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35091 printf "%s\n" "no" >&6; }
35092
35093 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35094 _pkg_short_errors_supported=yes
35095 else
35096 _pkg_short_errors_supported=no
35097 fi
35098 if test $_pkg_short_errors_supported = yes; then
35099 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
35100 else
35101 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
35102 fi
35103 # Put the nasty error message in config.log where it belongs
35104 echo "$PANGO_PKG_ERRORS" >&5
35105
35106 have_pangocairo=no
35107 elif test $pkg_failed = untried; then
35108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35109 printf "%s\n" "no" >&6; }
35110 have_pangocairo=no
35111 else
35112 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
35113 PANGO_LIBS=$pkg_cv_PANGO_LIBS
35114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35115 printf "%s\n" "yes" >&6; }
35116 have_pangocairo=yes
35117 fi
35118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
35119 printf "%s\n" "" >&6; }
35120
35121 pkg_failed=no
35122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pango >= 1.28.1" >&5
35123 printf %s "checking for pango >= 1.28.1... " >&6; }
35124
35125 if test -n "$PANGO_CFLAGS"; then
35126 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
35127 elif test -n "$PKG_CONFIG"; then
35128 if test -n "$PKG_CONFIG" && \
35129 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
35130 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
35131 ac_status=$?
35132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35133 test $ac_status = 0; }; then
35134 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
35135 test "x$?" != "x0" && pkg_failed=yes
35136 else
35137 pkg_failed=yes
35138 fi
35139 else
35140 pkg_failed=untried
35141 fi
35142 if test -n "$PANGO_LIBS"; then
35143 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
35144 elif test -n "$PKG_CONFIG"; then
35145 if test -n "$PKG_CONFIG" && \
35146 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
35147 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
35148 ac_status=$?
35149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35150 test $ac_status = 0; }; then
35151 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
35152 test "x$?" != "x0" && pkg_failed=yes
35153 else
35154 pkg_failed=yes
35155 fi
35156 else
35157 pkg_failed=untried
35158 fi
35159
35160
35161
35162 if test $pkg_failed = yes; then
35163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35164 printf "%s\n" "no" >&6; }
35165
35166 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35167 _pkg_short_errors_supported=yes
35168 else
35169 _pkg_short_errors_supported=no
35170 fi
35171 if test $_pkg_short_errors_supported = yes; then
35172 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
35173 else
35174 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
35175 fi
35176 # Put the nasty error message in config.log where it belongs
35177 echo "$PANGO_PKG_ERRORS" >&5
35178
35179 have_pango=no
35180 elif test $pkg_failed = untried; then
35181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35182 printf "%s\n" "no" >&6; }
35183 have_pango=no
35184 else
35185 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
35186 PANGO_LIBS=$pkg_cv_PANGO_LIBS
35187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35188 printf "%s\n" "yes" >&6; }
35189 have_pango=yes
35190 fi
35191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
35192 printf "%s\n" "" >&6; }
35193 fi
35194
35195 if test "${have_pango}x${have_pangocairo}" = 'yesxyes'; then
35196
35197 printf "%s\n" "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
35198
35199 CFLAGS="$PANGO_CFLAGS $PANGOCAIRO_CFLAGS $CFLAGS"
35200 fi
35201
35202 if test "$have_pangocairo" = 'yes'; then
35203 PANGOCAIRO_DELEGATE_TRUE=
35204 PANGOCAIRO_DELEGATE_FALSE='#'
35205 else
35206 PANGOCAIRO_DELEGATE_TRUE='#'
35207 PANGOCAIRO_DELEGATE_FALSE=
35208 fi
35209
35210
35211
35212
35213
35214 #
35215 # Check for PNG delegate library.
35216 #
35217
35218 # Check whether --with-png was given.
35219 if test ${with_png+y}
35220 then :
35221 withval=$with_png; with_png=$withval
35222 else case e in #(
35223 e) with_png='yes' ;;
35224 esac
35225 fi
35226
35227
35228 if test "$with_png" != 'yes'; then
35229 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
35230 fi
35231
35232 have_png='no'
35233 PNG_CFLAGS=""
35234 PNG_LIBS=""
35235 PNG_PKG=""
35236 if test "x$with_png" = "xyes"; then
35237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35238 printf "%s\n" "-------------------------------------------------------------" >&6; }
35239
35240 pkg_failed=no
35241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpng >= 1.0.0" >&5
35242 printf %s "checking for libpng >= 1.0.0... " >&6; }
35243
35244 if test -n "$PNG_CFLAGS"; then
35245 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
35246 elif test -n "$PKG_CONFIG"; then
35247 if test -n "$PKG_CONFIG" && \
35248 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
35249 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
35250 ac_status=$?
35251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35252 test $ac_status = 0; }; then
35253 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0" 2>/dev/null`
35254 test "x$?" != "x0" && pkg_failed=yes
35255 else
35256 pkg_failed=yes
35257 fi
35258 else
35259 pkg_failed=untried
35260 fi
35261 if test -n "$PNG_LIBS"; then
35262 pkg_cv_PNG_LIBS="$PNG_LIBS"
35263 elif test -n "$PKG_CONFIG"; then
35264 if test -n "$PKG_CONFIG" && \
35265 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
35266 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
35267 ac_status=$?
35268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35269 test $ac_status = 0; }; then
35270 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0" 2>/dev/null`
35271 test "x$?" != "x0" && pkg_failed=yes
35272 else
35273 pkg_failed=yes
35274 fi
35275 else
35276 pkg_failed=untried
35277 fi
35278
35279
35280
35281 if test $pkg_failed = yes; then
35282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35283 printf "%s\n" "no" >&6; }
35284
35285 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35286 _pkg_short_errors_supported=yes
35287 else
35288 _pkg_short_errors_supported=no
35289 fi
35290 if test $_pkg_short_errors_supported = yes; then
35291 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
35292 else
35293 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
35294 fi
35295 # Put the nasty error message in config.log where it belongs
35296 echo "$PNG_PKG_ERRORS" >&5
35297
35298 have_png=no
35299 elif test $pkg_failed = untried; then
35300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35301 printf "%s\n" "no" >&6; }
35302 have_png=no
35303 else
35304 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
35305 PNG_LIBS=$pkg_cv_PNG_LIBS
35306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35307 printf "%s\n" "yes" >&6; }
35308 have_png=yes
35309 fi
35310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
35311 printf "%s\n" "" >&6; }
35312 fi
35313
35314 if test "$have_png" = 'yes'; then
35315
35316 printf "%s\n" "#define PNG_DELEGATE 1" >>confdefs.h
35317
35318 CFLAGS="$PNG_CFLAGS $CFLAGS"
35319 fi
35320
35321 if test "$have_png" = 'yes'; then
35322 PNG_DELEGATE_TRUE=
35323 PNG_DELEGATE_FALSE='#'
35324 else
35325 PNG_DELEGATE_TRUE='#'
35326 PNG_DELEGATE_FALSE=
35327 fi
35328
35329
35330
35331
35332
35333 #
35334 # Check for the Raw delegate library.
35335 #
35336
35337 # Check whether --with-raw was given.
35338 if test ${with_raw+y}
35339 then :
35340 withval=$with_raw; with_raw=$withval
35341 else case e in #(
35342 e) with_raw='yes' ;;
35343 esac
35344 fi
35345
35346
35347 if test "$with_raw" != 'yes'; then
35348 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-libraw=$with_raw "
35349 fi
35350
35351 have_raw='no'
35352 RAW_R_CFLAGS=""
35353 RAW_R_LIBS=""
35354 RAW_R_PKG=""
35355 if test "x$with_raw" = "xyes"; then
35356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35357 printf "%s\n" "-------------------------------------------------------------" >&6; }
35358
35359 pkg_failed=no
35360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libraw_r >= 0.14.8" >&5
35361 printf %s "checking for libraw_r >= 0.14.8... " >&6; }
35362
35363 if test -n "$RAW_R_CFLAGS"; then
35364 pkg_cv_RAW_R_CFLAGS="$RAW_R_CFLAGS"
35365 elif test -n "$PKG_CONFIG"; then
35366 if test -n "$PKG_CONFIG" && \
35367 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libraw_r >= 0.14.8\""; } >&5
35368 ($PKG_CONFIG --exists --print-errors "libraw_r >= 0.14.8") 2>&5
35369 ac_status=$?
35370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35371 test $ac_status = 0; }; then
35372 pkg_cv_RAW_R_CFLAGS=`$PKG_CONFIG --cflags "libraw_r >= 0.14.8" 2>/dev/null`
35373 test "x$?" != "x0" && pkg_failed=yes
35374 else
35375 pkg_failed=yes
35376 fi
35377 else
35378 pkg_failed=untried
35379 fi
35380 if test -n "$RAW_R_LIBS"; then
35381 pkg_cv_RAW_R_LIBS="$RAW_R_LIBS"
35382 elif test -n "$PKG_CONFIG"; then
35383 if test -n "$PKG_CONFIG" && \
35384 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libraw_r >= 0.14.8\""; } >&5
35385 ($PKG_CONFIG --exists --print-errors "libraw_r >= 0.14.8") 2>&5
35386 ac_status=$?
35387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35388 test $ac_status = 0; }; then
35389 pkg_cv_RAW_R_LIBS=`$PKG_CONFIG --libs "libraw_r >= 0.14.8" 2>/dev/null`
35390 test "x$?" != "x0" && pkg_failed=yes
35391 else
35392 pkg_failed=yes
35393 fi
35394 else
35395 pkg_failed=untried
35396 fi
35397
35398
35399
35400 if test $pkg_failed = yes; then
35401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35402 printf "%s\n" "no" >&6; }
35403
35404 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35405 _pkg_short_errors_supported=yes
35406 else
35407 _pkg_short_errors_supported=no
35408 fi
35409 if test $_pkg_short_errors_supported = yes; then
35410 RAW_R_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libraw_r >= 0.14.8" 2>&1`
35411 else
35412 RAW_R_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libraw_r >= 0.14.8" 2>&1`
35413 fi
35414 # Put the nasty error message in config.log where it belongs
35415 echo "$RAW_R_PKG_ERRORS" >&5
35416
35417 have_raw=no
35418 elif test $pkg_failed = untried; then
35419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35420 printf "%s\n" "no" >&6; }
35421 have_raw=no
35422 else
35423 RAW_R_CFLAGS=$pkg_cv_RAW_R_CFLAGS
35424 RAW_R_LIBS=$pkg_cv_RAW_R_LIBS
35425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35426 printf "%s\n" "yes" >&6; }
35427 have_raw=yes
35428 fi
35429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
35430 printf "%s\n" "" >&6; }
35431 fi
35432
35433 if test "$have_raw" = 'yes'; then
35434
35435 printf "%s\n" "#define RAW_R_DELEGATE 1" >>confdefs.h
35436
35437 CFLAGS="$RAW_R_CFLAGS $CFLAGS"
35438 fi
35439
35440 if test "$have_raw" = 'yes'; then
35441 RAW_R_DELEGATE_TRUE=
35442 RAW_R_DELEGATE_FALSE='#'
35443 else
35444 RAW_R_DELEGATE_TRUE='#'
35445 RAW_R_DELEGATE_FALSE=
35446 fi
35447
35448
35449
35450
35451
35452 #
35453 # Check for RSVG delegate library.
35454 #
35455
35456 # Check whether --with-rsvg was given.
35457 if test ${with_rsvg+y}
35458 then :
35459 withval=$with_rsvg; with_rsvg=$withval
35460 else case e in #(
35461 e) with_rsvg='no' ;;
35462 esac
35463 fi
35464
35465
35466 if test "$with_rsvg" != 'yes'; then
35467 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
35468 fi
35469
35470 have_rsvg='no'
35471 have_cairo='no'
35472 RSVG_CFLAGS=""
35473 RSVG_LIBS=""
35474 RSVG_PKG=""
35475 if test "x$with_rsvg" = "xyes"; then
35476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35477 printf "%s\n" "-------------------------------------------------------------" >&6; }
35478
35479 pkg_failed=no
35480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librsvg-2.0 >= 2.9.0" >&5
35481 printf %s "checking for librsvg-2.0 >= 2.9.0... " >&6; }
35482
35483 if test -n "$RSVG_CFLAGS"; then
35484 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
35485 elif test -n "$PKG_CONFIG"; then
35486 if test -n "$PKG_CONFIG" && \
35487 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
35488 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
35489 ac_status=$?
35490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35491 test $ac_status = 0; }; then
35492 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
35493 test "x$?" != "x0" && pkg_failed=yes
35494 else
35495 pkg_failed=yes
35496 fi
35497 else
35498 pkg_failed=untried
35499 fi
35500 if test -n "$RSVG_LIBS"; then
35501 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
35502 elif test -n "$PKG_CONFIG"; then
35503 if test -n "$PKG_CONFIG" && \
35504 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
35505 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
35506 ac_status=$?
35507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35508 test $ac_status = 0; }; then
35509 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
35510 test "x$?" != "x0" && pkg_failed=yes
35511 else
35512 pkg_failed=yes
35513 fi
35514 else
35515 pkg_failed=untried
35516 fi
35517
35518
35519
35520 if test $pkg_failed = yes; then
35521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35522 printf "%s\n" "no" >&6; }
35523
35524 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35525 _pkg_short_errors_supported=yes
35526 else
35527 _pkg_short_errors_supported=no
35528 fi
35529 if test $_pkg_short_errors_supported = yes; then
35530 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
35531 else
35532 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
35533 fi
35534 # Put the nasty error message in config.log where it belongs
35535 echo "$RSVG_PKG_ERRORS" >&5
35536
35537 have_rsvg=no
35538 elif test $pkg_failed = untried; then
35539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35540 printf "%s\n" "no" >&6; }
35541 have_rsvg=no
35542 else
35543 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
35544 RSVG_LIBS=$pkg_cv_RSVG_LIBS
35545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35546 printf "%s\n" "yes" >&6; }
35547 have_rsvg=yes
35548 fi
35549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
35550 printf "%s\n" "" >&6; }
35551
35552 pkg_failed=no
35553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cairo-svg" >&5
35554 printf %s "checking for cairo-svg... " >&6; }
35555
35556 if test -n "$CAIRO_SVG_CFLAGS"; then
35557 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
35558 elif test -n "$PKG_CONFIG"; then
35559 if test -n "$PKG_CONFIG" && \
35560 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
35561 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
35562 ac_status=$?
35563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35564 test $ac_status = 0; }; then
35565 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
35566 test "x$?" != "x0" && pkg_failed=yes
35567 else
35568 pkg_failed=yes
35569 fi
35570 else
35571 pkg_failed=untried
35572 fi
35573 if test -n "$CAIRO_SVG_LIBS"; then
35574 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
35575 elif test -n "$PKG_CONFIG"; then
35576 if test -n "$PKG_CONFIG" && \
35577 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
35578 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
35579 ac_status=$?
35580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35581 test $ac_status = 0; }; then
35582 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
35583 test "x$?" != "x0" && pkg_failed=yes
35584 else
35585 pkg_failed=yes
35586 fi
35587 else
35588 pkg_failed=untried
35589 fi
35590
35591
35592
35593 if test $pkg_failed = yes; then
35594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35595 printf "%s\n" "no" >&6; }
35596
35597 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35598 _pkg_short_errors_supported=yes
35599 else
35600 _pkg_short_errors_supported=no
35601 fi
35602 if test $_pkg_short_errors_supported = yes; then
35603 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1`
35604 else
35605 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1`
35606 fi
35607 # Put the nasty error message in config.log where it belongs
35608 echo "$CAIRO_SVG_PKG_ERRORS" >&5
35609
35610 have_cairo=no
35611 elif test $pkg_failed = untried; then
35612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35613 printf "%s\n" "no" >&6; }
35614 have_cairo=no
35615 else
35616 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
35617 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
35618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35619 printf "%s\n" "yes" >&6; }
35620 have_cairo=yes
35621 fi
35622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
35623 printf "%s\n" "" >&6; }
35624 fi
35625
35626 if test "$have_rsvg" = 'yes'; then
35627
35628 printf "%s\n" "#define RSVG_DELEGATE 1" >>confdefs.h
35629
35630 CFLAGS="$RSVG_CFLAGS $CFLAGS"
35631 fi
35632
35633 if test "$have_cairo" = 'yes'; then
35634
35635 printf "%s\n" "#define CAIRO_DELEGATE 1" >>confdefs.h
35636
35637 CFLAGS="$CAIRO_SVG_CFLAGS $CFLAGS"
35638 fi
35639
35640 if test "$have_rsvg" = 'yes'; then
35641 RSVG_DELEGATE_TRUE=
35642 RSVG_DELEGATE_FALSE='#'
35643 else
35644 RSVG_DELEGATE_TRUE='#'
35645 RSVG_DELEGATE_FALSE=
35646 fi
35647
35648 if test "$have_cairo" = 'yes'; then
35649 CAIRO_DELEGATE_TRUE=
35650 CAIRO_DELEGATE_FALSE='#'
35651 else
35652 CAIRO_DELEGATE_TRUE='#'
35653 CAIRO_DELEGATE_FALSE=
35654 fi
35655
35656
35657
35658
35659
35660 #
35661 # Check for TIFF delegate library.
35662 #
35663
35664 # Check whether --with-tiff was given.
35665 if test ${with_tiff+y}
35666 then :
35667 withval=$with_tiff; with_tiff=$withval
35668 else case e in #(
35669 e) with_tiff='yes' ;;
35670 esac
35671 fi
35672
35673
35674 if test "$with_tiff" != 'yes'; then
35675 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
35676 fi
35677
35678 have_tiff='no'
35679 TIFF_CFLAGS=""
35680 TIFF_LIBS=""
35681 TIFF_PKG=""
35682 if test "x$with_tiff" = "xyes"; then
35683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35684 printf "%s\n" "-------------------------------------------------------------" >&6; }
35685
35686 pkg_failed=no
35687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtiff-4 >= 4.0.0" >&5
35688 printf %s "checking for libtiff-4 >= 4.0.0... " >&6; }
35689
35690 if test -n "$TIFF_CFLAGS"; then
35691 pkg_cv_TIFF_CFLAGS="$TIFF_CFLAGS"
35692 elif test -n "$PKG_CONFIG"; then
35693 if test -n "$PKG_CONFIG" && \
35694 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtiff-4 >= 4.0.0\""; } >&5
35695 ($PKG_CONFIG --exists --print-errors "libtiff-4 >= 4.0.0") 2>&5
35696 ac_status=$?
35697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35698 test $ac_status = 0; }; then
35699 pkg_cv_TIFF_CFLAGS=`$PKG_CONFIG --cflags "libtiff-4 >= 4.0.0" 2>/dev/null`
35700 test "x$?" != "x0" && pkg_failed=yes
35701 else
35702 pkg_failed=yes
35703 fi
35704 else
35705 pkg_failed=untried
35706 fi
35707 if test -n "$TIFF_LIBS"; then
35708 pkg_cv_TIFF_LIBS="$TIFF_LIBS"
35709 elif test -n "$PKG_CONFIG"; then
35710 if test -n "$PKG_CONFIG" && \
35711 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtiff-4 >= 4.0.0\""; } >&5
35712 ($PKG_CONFIG --exists --print-errors "libtiff-4 >= 4.0.0") 2>&5
35713 ac_status=$?
35714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35715 test $ac_status = 0; }; then
35716 pkg_cv_TIFF_LIBS=`$PKG_CONFIG --libs "libtiff-4 >= 4.0.0" 2>/dev/null`
35717 test "x$?" != "x0" && pkg_failed=yes
35718 else
35719 pkg_failed=yes
35720 fi
35721 else
35722 pkg_failed=untried
35723 fi
35724
35725
35726
35727 if test $pkg_failed = yes; then
35728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35729 printf "%s\n" "no" >&6; }
35730
35731 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35732 _pkg_short_errors_supported=yes
35733 else
35734 _pkg_short_errors_supported=no
35735 fi
35736 if test $_pkg_short_errors_supported = yes; then
35737 TIFF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtiff-4 >= 4.0.0" 2>&1`
35738 else
35739 TIFF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtiff-4 >= 4.0.0" 2>&1`
35740 fi
35741 # Put the nasty error message in config.log where it belongs
35742 echo "$TIFF_PKG_ERRORS" >&5
35743
35744 have_tiff=no
35745 elif test $pkg_failed = untried; then
35746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35747 printf "%s\n" "no" >&6; }
35748 have_tiff=no
35749 else
35750 TIFF_CFLAGS=$pkg_cv_TIFF_CFLAGS
35751 TIFF_LIBS=$pkg_cv_TIFF_LIBS
35752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35753 printf "%s\n" "yes" >&6; }
35754 have_tiff=yes
35755 fi
35756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
35757 printf "%s\n" "" >&6; }
35758 fi
35759
35760 if test "$have_tiff" = 'yes'; then
35761
35762 printf "%s\n" "#define TIFF_DELEGATE 1" >>confdefs.h
35763
35764 CFLAGS="$TIFF_CFLAGS $CFLAGS"
35765 fi
35766
35767 if test "$have_tiff" = 'yes'; then
35768 TIFF_DELEGATE_TRUE=
35769 TIFF_DELEGATE_FALSE='#'
35770 else
35771 TIFF_DELEGATE_TRUE='#'
35772 TIFF_DELEGATE_FALSE=
35773 fi
35774
35775
35776
35777
35778
35779 #
35780 # Check for google libultrahdr delegate library
35781 #
35782
35783 # Check whether --with-uhdr was given.
35784 if test ${with_uhdr+y}
35785 then :
35786 withval=$with_uhdr; with_uhdr=$withval
35787 else case e in #(
35788 e) with_uhdr='no' ;;
35789 esac
35790 fi
35791
35792
35793 if test "$with_uhdr" != 'yes'; then
35794 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-uhdr=$with_uhdr "
35795 fi
35796
35797 have_uhdr='no'
35798 UHDR_CFLAGS=""
35799 UHDR_LIBS=""
35800 UHDR_PKG=""
35801 if test "$with_uhdr" != 'no'; then
35802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35803 printf "%s\n" "-------------------------------------------------------------" >&6; }
35804
35805 pkg_failed=no
35806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuhdr >= 1.3.0" >&5
35807 printf %s "checking for libuhdr >= 1.3.0... " >&6; }
35808
35809 if test -n "$UHDR_CFLAGS"; then
35810 pkg_cv_UHDR_CFLAGS="$UHDR_CFLAGS"
35811 elif test -n "$PKG_CONFIG"; then
35812 if test -n "$PKG_CONFIG" && \
35813 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuhdr >= 1.3.0\""; } >&5
35814 ($PKG_CONFIG --exists --print-errors "libuhdr >= 1.3.0") 2>&5
35815 ac_status=$?
35816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35817 test $ac_status = 0; }; then
35818 pkg_cv_UHDR_CFLAGS=`$PKG_CONFIG --cflags "libuhdr >= 1.3.0" 2>/dev/null`
35819 test "x$?" != "x0" && pkg_failed=yes
35820 else
35821 pkg_failed=yes
35822 fi
35823 else
35824 pkg_failed=untried
35825 fi
35826 if test -n "$UHDR_LIBS"; then
35827 pkg_cv_UHDR_LIBS="$UHDR_LIBS"
35828 elif test -n "$PKG_CONFIG"; then
35829 if test -n "$PKG_CONFIG" && \
35830 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuhdr >= 1.3.0\""; } >&5
35831 ($PKG_CONFIG --exists --print-errors "libuhdr >= 1.3.0") 2>&5
35832 ac_status=$?
35833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35834 test $ac_status = 0; }; then
35835 pkg_cv_UHDR_LIBS=`$PKG_CONFIG --libs "libuhdr >= 1.3.0" 2>/dev/null`
35836 test "x$?" != "x0" && pkg_failed=yes
35837 else
35838 pkg_failed=yes
35839 fi
35840 else
35841 pkg_failed=untried
35842 fi
35843
35844
35845
35846 if test $pkg_failed = yes; then
35847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35848 printf "%s\n" "no" >&6; }
35849
35850 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35851 _pkg_short_errors_supported=yes
35852 else
35853 _pkg_short_errors_supported=no
35854 fi
35855 if test $_pkg_short_errors_supported = yes; then
35856 UHDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuhdr >= 1.3.0" 2>&1`
35857 else
35858 UHDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuhdr >= 1.3.0" 2>&1`
35859 fi
35860 # Put the nasty error message in config.log where it belongs
35861 echo "$UHDR_PKG_ERRORS" >&5
35862
35863 have_uhdr=no
35864 elif test $pkg_failed = untried; then
35865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35866 printf "%s\n" "no" >&6; }
35867 have_uhdr=no
35868 else
35869 UHDR_CFLAGS=$pkg_cv_UHDR_CFLAGS
35870 UHDR_LIBS=$pkg_cv_UHDR_LIBS
35871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35872 printf "%s\n" "yes" >&6; }
35873 have_uhdr=yes
35874 fi
35875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
35876 printf "%s\n" "" >&6; }
35877 fi
35878
35879 if test "$have_uhdr" = 'yes'; then
35880
35881 printf "%s\n" "#define UHDR_DELEGATE 1" >>confdefs.h
35882
35883 CFLAGS="$UHDR_CFLAGS $CFLAGS"
35884 fi
35885
35886 if test "$have_uhdr" = 'yes'; then
35887 UHDR_DELEGATE_TRUE=
35888 UHDR_DELEGATE_FALSE='#'
35889 else
35890 UHDR_DELEGATE_TRUE='#'
35891 UHDR_DELEGATE_FALSE=
35892 fi
35893
35894
35895
35896
35897
35898 #
35899 # Set URW Base35 OTF font directory.
35900 #
35901
35902 # Check whether --with-urw-base35-font-dir was given.
35903 if test ${with_urw_base35_font_dir+y}
35904 then :
35905 withval=$with_urw_base35_font_dir; with_urw_base35_font_dir=$withval
35906 else case e in #(
35907 e) with_urw_base35_font_dir='default' ;;
35908 esac
35909 fi
35910
35911
35912 if test "$with_urw_base35_font_dir" != 'default'; then
35913 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-urw-base35-font-dir=$with_urw_base35_font_dir "
35914 fi
35915
35916
35917 #
35918 # Set URW Base35 Type1 font directory.
35919 #
35920
35921 # Check whether --with-urw-base35-type1-font-dir was given.
35922 if test ${with_urw_base35_type1_font_dir+y}
35923 then :
35924 withval=$with_urw_base35_type1_font_dir; with_urw_base35_type1_font_dir=$withval
35925 else case e in #(
35926 e) with_urw_base35_type1_font_dir='default' ;;
35927 esac
35928 fi
35929
35930
35931 if test "$with_urw_base35_type1_font_dir" != 'default'; then
35932 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-urw-base35-type1-font-dir=$with_urw_base35_type1_font_dir "
35933 fi
35934
35935
35936 #
35937 # Check for the WEBP delegate library.
35938 #
35939
35940 # Check whether --with-webp was given.
35941 if test ${with_webp+y}
35942 then :
35943 withval=$with_webp; with_webp=$withval
35944 else case e in #(
35945 e) with_webp='yes' ;;
35946 esac
35947 fi
35948
35949
35950 if test "$with_webp" != 'yes'; then
35951 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
35952 fi
35953
35954 have_webp='no'
35955 have_webpmux='no'
35956 WEBP_CFLAGS=""
35957 WEBP_LIBS=""
35958 WEBP_PKG=""
35959 WEBPMUX_CFLAGS=""
35960 WEBPMUX_LIBS=""
35961 WEBPMUX_PKG=""
35962 if test "x$with_webp" = "xyes"; then
35963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35964 printf "%s\n" "-------------------------------------------------------------" >&6; }
35965
35966 pkg_failed=no
35967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libwebp >= 0.4.1" >&5
35968 printf %s "checking for libwebp >= 0.4.1... " >&6; }
35969
35970 if test -n "$WEBP_CFLAGS"; then
35971 pkg_cv_WEBP_CFLAGS="$WEBP_CFLAGS"
35972 elif test -n "$PKG_CONFIG"; then
35973 if test -n "$PKG_CONFIG" && \
35974 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp >= 0.4.1\""; } >&5
35975 ($PKG_CONFIG --exists --print-errors "libwebp >= 0.4.1") 2>&5
35976 ac_status=$?
35977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35978 test $ac_status = 0; }; then
35979 pkg_cv_WEBP_CFLAGS=`$PKG_CONFIG --cflags "libwebp >= 0.4.1" 2>/dev/null`
35980 test "x$?" != "x0" && pkg_failed=yes
35981 else
35982 pkg_failed=yes
35983 fi
35984 else
35985 pkg_failed=untried
35986 fi
35987 if test -n "$WEBP_LIBS"; then
35988 pkg_cv_WEBP_LIBS="$WEBP_LIBS"
35989 elif test -n "$PKG_CONFIG"; then
35990 if test -n "$PKG_CONFIG" && \
35991 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp >= 0.4.1\""; } >&5
35992 ($PKG_CONFIG --exists --print-errors "libwebp >= 0.4.1") 2>&5
35993 ac_status=$?
35994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35995 test $ac_status = 0; }; then
35996 pkg_cv_WEBP_LIBS=`$PKG_CONFIG --libs "libwebp >= 0.4.1" 2>/dev/null`
35997 test "x$?" != "x0" && pkg_failed=yes
35998 else
35999 pkg_failed=yes
36000 fi
36001 else
36002 pkg_failed=untried
36003 fi
36004
36005
36006
36007 if test $pkg_failed = yes; then
36008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36009 printf "%s\n" "no" >&6; }
36010
36011 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36012 _pkg_short_errors_supported=yes
36013 else
36014 _pkg_short_errors_supported=no
36015 fi
36016 if test $_pkg_short_errors_supported = yes; then
36017 WEBP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwebp >= 0.4.1" 2>&1`
36018 else
36019 WEBP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwebp >= 0.4.1" 2>&1`
36020 fi
36021 # Put the nasty error message in config.log where it belongs
36022 echo "$WEBP_PKG_ERRORS" >&5
36023
36024 have_webp=no
36025 elif test $pkg_failed = untried; then
36026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36027 printf "%s\n" "no" >&6; }
36028 have_webp=no
36029 else
36030 WEBP_CFLAGS=$pkg_cv_WEBP_CFLAGS
36031 WEBP_LIBS=$pkg_cv_WEBP_LIBS
36032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36033 printf "%s\n" "yes" >&6; }
36034 have_webp=yes
36035 fi
36036
36037 pkg_failed=no
36038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" >&5
36039 printf %s "checking for libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0... " >&6; }
36040
36041 if test -n "$WEBPMUX_CFLAGS"; then
36042 pkg_cv_WEBPMUX_CFLAGS="$WEBPMUX_CFLAGS"
36043 elif test -n "$PKG_CONFIG"; then
36044 if test -n "$PKG_CONFIG" && \
36045 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0\""; } >&5
36046 ($PKG_CONFIG --exists --print-errors "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0") 2>&5
36047 ac_status=$?
36048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36049 test $ac_status = 0; }; then
36050 pkg_cv_WEBPMUX_CFLAGS=`$PKG_CONFIG --cflags "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" 2>/dev/null`
36051 test "x$?" != "x0" && pkg_failed=yes
36052 else
36053 pkg_failed=yes
36054 fi
36055 else
36056 pkg_failed=untried
36057 fi
36058 if test -n "$WEBPMUX_LIBS"; then
36059 pkg_cv_WEBPMUX_LIBS="$WEBPMUX_LIBS"
36060 elif test -n "$PKG_CONFIG"; then
36061 if test -n "$PKG_CONFIG" && \
36062 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0\""; } >&5
36063 ($PKG_CONFIG --exists --print-errors "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0") 2>&5
36064 ac_status=$?
36065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36066 test $ac_status = 0; }; then
36067 pkg_cv_WEBPMUX_LIBS=`$PKG_CONFIG --libs "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" 2>/dev/null`
36068 test "x$?" != "x0" && pkg_failed=yes
36069 else
36070 pkg_failed=yes
36071 fi
36072 else
36073 pkg_failed=untried
36074 fi
36075
36076
36077
36078 if test $pkg_failed = yes; then
36079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36080 printf "%s\n" "no" >&6; }
36081
36082 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36083 _pkg_short_errors_supported=yes
36084 else
36085 _pkg_short_errors_supported=no
36086 fi
36087 if test $_pkg_short_errors_supported = yes; then
36088 WEBPMUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" 2>&1`
36089 else
36090 WEBPMUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" 2>&1`
36091 fi
36092 # Put the nasty error message in config.log where it belongs
36093 echo "$WEBPMUX_PKG_ERRORS" >&5
36094
36095 have_webpmux=no
36096 elif test $pkg_failed = untried; then
36097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36098 printf "%s\n" "no" >&6; }
36099 have_webpmux=no
36100 else
36101 WEBPMUX_CFLAGS=$pkg_cv_WEBPMUX_CFLAGS
36102 WEBPMUX_LIBS=$pkg_cv_WEBPMUX_LIBS
36103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36104 printf "%s\n" "yes" >&6; }
36105 have_webpmux=yes
36106 fi
36107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
36108 printf "%s\n" "" >&6; }
36109 fi
36110
36111 if test "$have_webp" = 'yes'; then
36112
36113 printf "%s\n" "#define WEBP_DELEGATE 1" >>confdefs.h
36114
36115 CFLAGS="$WEBP_CFLAGS $CFLAGS"
36116 fi
36117
36118 if test "$have_webpmux" = 'yes'; then
36119
36120 printf "%s\n" "#define WEBPMUX_DELEGATE 1" >>confdefs.h
36121
36122 CFLAGS="$WEBPMUX_CFLAGS $CFLAGS"
36123 fi
36124
36125 if test "$have_webp" = 'yes'; then
36126 WEBP_DELEGATE_TRUE=
36127 WEBP_DELEGATE_FALSE='#'
36128 else
36129 WEBP_DELEGATE_TRUE='#'
36130 WEBP_DELEGATE_FALSE=
36131 fi
36132
36133 if test "$have_webpmux" = 'yes'; then
36134 WEBPMUX_DELEGATE_TRUE=
36135 WEBPMUX_DELEGATE_FALSE='#'
36136 else
36137 WEBPMUX_DELEGATE_TRUE='#'
36138 WEBPMUX_DELEGATE_FALSE=
36139 fi
36140
36141
36142
36143
36144
36145
36146
36147 #
36148 # Set Windows font directory.
36149 #
36150
36151 # Check whether --with-windows-font-dir was given.
36152 if test ${with_windows_font_dir+y}
36153 then :
36154 withval=$with_windows_font_dir; with_windows_font_dir=$withval
36155 else case e in #(
36156 e) with_windows_font_dir='default' ;;
36157 esac
36158 fi
36159
36160
36161 if test "$with_windows_font_dir" != 'default'; then
36162 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
36163 fi
36164
36165
36166 #
36167 # Check for WMF delegate library.
36168 #
36169
36170 # Check whether --with-wmf was given.
36171 if test ${with_wmf+y}
36172 then :
36173 withval=$with_wmf; with_wmf=$withval
36174 else case e in #(
36175 e) with_wmf=$build_modules ;;
36176 esac
36177 fi
36178
36179
36180 if test "$with_wmf" != 'yes'; then
36181 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
36182 fi
36183
36184 have_wmf='no'
36185 WMF_LIBS=''
36186 WMF_CFLAGS=''
36187 OLIBS="$LIBS"
36188 if test "$with_wmf" != 'no'; then
36189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WMF support" >&5
36190 printf %s "checking for WMF support... " >&6; }
36191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
36192 printf "%s\n" "" >&6; }
36193
36194 have_libwmflite='no'
36195 have_libwmf_ipa_h='no'
36196
36197 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
36198 "
36199 if test "x$ac_cv_header_libwmf_ipa_h" = xyes
36200 then :
36201 have_libwmf_ipa_h='yes'
36202 fi
36203
36204 if test "$have_libwmf_ipa_h" = 'yes'; then
36205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
36206 printf %s "checking for wmf_lite_create in -lwmflite... " >&6; }
36207 if test ${ac_cv_lib_wmflite_wmf_lite_create+y}
36208 then :
36209 printf %s "(cached) " >&6
36210 else case e in #(
36211 e) ac_check_lib_save_LIBS=$LIBS
36212 LIBS="-lwmflite $LIBS"
36213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36214 /* end confdefs.h. */
36215
36216 /* Override any GCC internal prototype to avoid an error.
36217 Use char because int might match the return type of a GCC
36218 builtin and then its argument prototype would still apply.
36219 The 'extern "C"' is for builds by C++ compilers;
36220 although this is not generally supported in C code supporting it here
36221 has little cost and some practical benefit (sr 110532). */
36222 #ifdef __cplusplus
36223 extern "C"
36224 #endif
36225 char wmf_lite_create (void);
36226 int
36227 main (void)
36228 {
36229 return wmf_lite_create ();
36230 ;
36231 return 0;
36232 }
36233 _ACEOF
36234 if ac_fn_c_try_link "$LINENO"
36235 then :
36236 ac_cv_lib_wmflite_wmf_lite_create=yes
36237 else case e in #(
36238 e) ac_cv_lib_wmflite_wmf_lite_create=no ;;
36239 esac
36240 fi
36241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36242 conftest$ac_exeext conftest.$ac_ext
36243 LIBS=$ac_check_lib_save_LIBS ;;
36244 esac
36245 fi
36246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
36247 printf "%s\n" "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
36248 if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes
36249 then :
36250 have_libwmflite='yes'
36251 fi
36252
36253 if test "$have_libwmflite" = 'yes'; then
36254
36255 printf "%s\n" "#define WMF_DELEGATE 1" >>confdefs.h
36256
36257 WMF_LIBS='-lwmflite'
36258 LIBS="$WMF_LIBS $LIBS"
36259 have_wmf='yes'
36260 else
36261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
36262 printf "%s\n" "no -- some components failed test" >&6; }
36263 have_wmf='no (failed tests)'
36264 have_wmflite='no (failed tests)'
36265 LIBS="$OLIBS"
36266 WMF_LIBS=''
36267 fi
36268 fi
36269 fi
36270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
36271 printf %s "checking if WMF package is complete... " >&6; }
36272 if test "$have_wmf" = 'yes'; then
36273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36274 printf "%s\n" "yes" >&6; }
36275 else
36276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36277 printf "%s\n" "no" >&6; }
36278 fi
36279 if test "$have_wmf" = 'yes'; then
36280 WMF_DELEGATE_TRUE=
36281 WMF_DELEGATE_FALSE='#'
36282 else
36283 WMF_DELEGATE_TRUE='#'
36284 WMF_DELEGATE_FALSE=
36285 fi
36286
36287
36288
36289
36290
36291 #
36292 # Check for XML delegate library.
36293 #
36294
36295 # Check whether --with-xml was given.
36296 if test ${with_xml+y}
36297 then :
36298 withval=$with_xml; with_xml=$withval
36299 else case e in #(
36300 e) with_xml='yes' ;;
36301 esac
36302 fi
36303
36304
36305 if test "$with_xml" != 'yes' ; then
36306 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
36307 fi
36308
36309 have_xml='no'
36310 XML_CFLAGS=""
36311 XML_LIBS=""
36312 XML_PKG=""
36313 if test "x$with_xml" = "xyes"; then
36314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36315 printf "%s\n" "-------------------------------------------------------------" >&6; }
36316
36317 pkg_failed=no
36318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.0.0" >&5
36319 printf %s "checking for libxml-2.0 >= 2.0.0... " >&6; }
36320
36321 if test -n "$XML_CFLAGS"; then
36322 pkg_cv_XML_CFLAGS="$XML_CFLAGS"
36323 elif test -n "$PKG_CONFIG"; then
36324 if test -n "$PKG_CONFIG" && \
36325 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
36326 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
36327 ac_status=$?
36328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36329 test $ac_status = 0; }; then
36330 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0.0" 2>/dev/null`
36331 test "x$?" != "x0" && pkg_failed=yes
36332 else
36333 pkg_failed=yes
36334 fi
36335 else
36336 pkg_failed=untried
36337 fi
36338 if test -n "$XML_LIBS"; then
36339 pkg_cv_XML_LIBS="$XML_LIBS"
36340 elif test -n "$PKG_CONFIG"; then
36341 if test -n "$PKG_CONFIG" && \
36342 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
36343 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
36344 ac_status=$?
36345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36346 test $ac_status = 0; }; then
36347 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0.0" 2>/dev/null`
36348 test "x$?" != "x0" && pkg_failed=yes
36349 else
36350 pkg_failed=yes
36351 fi
36352 else
36353 pkg_failed=untried
36354 fi
36355
36356
36357
36358 if test $pkg_failed = yes; then
36359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36360 printf "%s\n" "no" >&6; }
36361
36362 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36363 _pkg_short_errors_supported=yes
36364 else
36365 _pkg_short_errors_supported=no
36366 fi
36367 if test $_pkg_short_errors_supported = yes; then
36368 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
36369 else
36370 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
36371 fi
36372 # Put the nasty error message in config.log where it belongs
36373 echo "$XML_PKG_ERRORS" >&5
36374
36375 have_xml=no
36376 elif test $pkg_failed = untried; then
36377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36378 printf "%s\n" "no" >&6; }
36379 have_xml=no
36380 else
36381 XML_CFLAGS=$pkg_cv_XML_CFLAGS
36382 XML_LIBS=$pkg_cv_XML_LIBS
36383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36384 printf "%s\n" "yes" >&6; }
36385 have_xml=yes
36386 fi
36387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
36388 printf "%s\n" "" >&6; }
36389 fi
36390
36391 if test "$have_xml" = 'yes'; then
36392
36393 printf "%s\n" "#define XML_DELEGATE 1" >>confdefs.h
36394
36395 CFLAGS="$XML_CFLAGS $CFLAGS"
36396 fi
36397
36398 if test "$have_xml" = 'yes'; then
36399 XML_DELEGATE_TRUE=
36400 XML_DELEGATE_FALSE='#'
36401 else
36402 XML_DELEGATE_TRUE='#'
36403 XML_DELEGATE_FALSE=
36404 fi
36405
36406
36407
36408
36409
36410 # Check for functions
36411 #
36412 ac_fn_c_check_func "$LINENO" "acosh" "ac_cv_func_acosh"
36413 if test "x$ac_cv_func_acosh" = xyes
36414 then :
36415 printf "%s\n" "#define HAVE_ACOSH 1" >>confdefs.h
36416
36417 fi
36418 ac_fn_c_check_func "$LINENO" "_aligned_malloc" "ac_cv_func__aligned_malloc"
36419 if test "x$ac_cv_func__aligned_malloc" = xyes
36420 then :
36421 printf "%s\n" "#define HAVE__ALIGNED_MALLOC 1" >>confdefs.h
36422
36423 fi
36424 ac_fn_c_check_func "$LINENO" "aligned_malloc" "ac_cv_func_aligned_malloc"
36425 if test "x$ac_cv_func_aligned_malloc" = xyes
36426 then :
36427 printf "%s\n" "#define HAVE_ALIGNED_MALLOC 1" >>confdefs.h
36428
36429 fi
36430 ac_fn_c_check_func "$LINENO" "asinh" "ac_cv_func_asinh"
36431 if test "x$ac_cv_func_asinh" = xyes
36432 then :
36433 printf "%s\n" "#define HAVE_ASINH 1" >>confdefs.h
36434
36435 fi
36436 ac_fn_c_check_func "$LINENO" "atanh" "ac_cv_func_atanh"
36437 if test "x$ac_cv_func_atanh" = xyes
36438 then :
36439 printf "%s\n" "#define HAVE_ATANH 1" >>confdefs.h
36440
36441 fi
36442 ac_fn_c_check_func "$LINENO" "atoll" "ac_cv_func_atoll"
36443 if test "x$ac_cv_func_atoll" = xyes
36444 then :
36445 printf "%s\n" "#define HAVE_ATOLL 1" >>confdefs.h
36446
36447 fi
36448 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
36449 if test "x$ac_cv_func_atexit" = xyes
36450 then :
36451 printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
36452
36453 fi
36454 ac_fn_c_check_func "$LINENO" "cabs" "ac_cv_func_cabs"
36455 if test "x$ac_cv_func_cabs" = xyes
36456 then :
36457 printf "%s\n" "#define HAVE_CABS 1" >>confdefs.h
36458
36459 fi
36460 ac_fn_c_check_func "$LINENO" "carg" "ac_cv_func_carg"
36461 if test "x$ac_cv_func_carg" = xyes
36462 then :
36463 printf "%s\n" "#define HAVE_CARG 1" >>confdefs.h
36464
36465 fi
36466 ac_fn_c_check_func "$LINENO" "cimag" "ac_cv_func_cimag"
36467 if test "x$ac_cv_func_cimag" = xyes
36468 then :
36469 printf "%s\n" "#define HAVE_CIMAG 1" >>confdefs.h
36470
36471 fi
36472 ac_fn_c_check_func "$LINENO" "creal" "ac_cv_func_creal"
36473 if test "x$ac_cv_func_creal" = xyes
36474 then :
36475 printf "%s\n" "#define HAVE_CREAL 1" >>confdefs.h
36476
36477 fi
36478 ac_fn_c_check_func "$LINENO" "clock" "ac_cv_func_clock"
36479 if test "x$ac_cv_func_clock" = xyes
36480 then :
36481 printf "%s\n" "#define HAVE_CLOCK 1" >>confdefs.h
36482
36483 fi
36484 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
36485 if test "x$ac_cv_func_clock_getres" = xyes
36486 then :
36487 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
36488
36489 fi
36490 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
36491 if test "x$ac_cv_func_clock_gettime" = xyes
36492 then :
36493 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
36494
36495 fi
36496 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
36497 if test "x$ac_cv_func_ctime_r" = xyes
36498 then :
36499 printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h
36500
36501 fi
36502 ac_fn_c_check_func "$LINENO" "directio" "ac_cv_func_directio"
36503 if test "x$ac_cv_func_directio" = xyes
36504 then :
36505 printf "%s\n" "#define HAVE_DIRECTIO 1" >>confdefs.h
36506
36507 fi
36508 ac_fn_c_check_func "$LINENO" "erf" "ac_cv_func_erf"
36509 if test "x$ac_cv_func_erf" = xyes
36510 then :
36511 printf "%s\n" "#define HAVE_ERF 1" >>confdefs.h
36512
36513 fi
36514 ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
36515 if test "x$ac_cv_func__exit" = xyes
36516 then :
36517 printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
36518
36519 fi
36520 ac_fn_c_check_func "$LINENO" "execvp" "ac_cv_func_execvp"
36521 if test "x$ac_cv_func_execvp" = xyes
36522 then :
36523 printf "%s\n" "#define HAVE_EXECVP 1" >>confdefs.h
36524
36525 fi
36526 ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
36527 if test "x$ac_cv_func_fchmod" = xyes
36528 then :
36529 printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
36530
36531 fi
36532 ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
36533 if test "x$ac_cv_func_floor" = xyes
36534 then :
36535 printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
36536
36537 fi
36538 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
36539 if test "x$ac_cv_func_fork" = xyes
36540 then :
36541 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
36542
36543 fi
36544 ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
36545 if test "x$ac_cv_func_ftime" = xyes
36546 then :
36547 printf "%s\n" "#define HAVE_FTIME 1" >>confdefs.h
36548
36549 fi
36550 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
36551 if test "x$ac_cv_func_ftruncate" = xyes
36552 then :
36553 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
36554
36555 fi
36556 ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked"
36557 if test "x$ac_cv_func_getc_unlocked" = xyes
36558 then :
36559 printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
36560
36561 fi
36562 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
36563 if test "x$ac_cv_func_getcwd" = xyes
36564 then :
36565 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
36566
36567 fi
36568 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
36569 if test "x$ac_cv_func_getentropy" = xyes
36570 then :
36571 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
36572
36573 fi
36574 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
36575 if test "x$ac_cv_func_getexecname" = xyes
36576 then :
36577 printf "%s\n" "#define HAVE_GETEXECNAME 1" >>confdefs.h
36578
36579 fi
36580 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
36581 if test "x$ac_cv_func_getdtablesize" = xyes
36582 then :
36583 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
36584
36585 fi
36586 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
36587 if test "x$ac_cv_func_getloadavg" = xyes
36588 then :
36589 printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h
36590
36591 fi
36592 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
36593 if test "x$ac_cv_func_getpagesize" = xyes
36594 then :
36595 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
36596
36597 fi
36598 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
36599 if test "x$ac_cv_func_getpid" = xyes
36600 then :
36601 printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h
36602
36603 fi
36604 ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
36605 if test "x$ac_cv_func_getpwnam_r" = xyes
36606 then :
36607 printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h
36608
36609 fi
36610 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
36611 if test "x$ac_cv_func_getrlimit" = xyes
36612 then :
36613 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
36614
36615 fi
36616 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
36617 if test "x$ac_cv_func_getrusage" = xyes
36618 then :
36619 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
36620
36621 fi
36622 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
36623 if test "x$ac_cv_func_gettimeofday" = xyes
36624 then :
36625 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
36626
36627 fi
36628 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
36629 if test "x$ac_cv_func_gmtime_r" = xyes
36630 then :
36631 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
36632
36633 fi
36634 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
36635 if test "x$ac_cv_func_isnan" = xyes
36636 then :
36637 printf "%s\n" "#define HAVE_ISNAN 1" >>confdefs.h
36638
36639 fi
36640 ac_fn_c_check_func "$LINENO" "j0" "ac_cv_func_j0"
36641 if test "x$ac_cv_func_j0" = xyes
36642 then :
36643 printf "%s\n" "#define HAVE_J0 1" >>confdefs.h
36644
36645 fi
36646 ac_fn_c_check_func "$LINENO" "j1" "ac_cv_func_j1"
36647 if test "x$ac_cv_func_j1" = xyes
36648 then :
36649 printf "%s\n" "#define HAVE_J1 1" >>confdefs.h
36650
36651 fi
36652 ac_fn_c_check_func "$LINENO" "lltostr" "ac_cv_func_lltostr"
36653 if test "x$ac_cv_func_lltostr" = xyes
36654 then :
36655 printf "%s\n" "#define HAVE_LLTOSTR 1" >>confdefs.h
36656
36657 fi
36658 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
36659 if test "x$ac_cv_func_localtime_r" = xyes
36660 then :
36661 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
36662
36663 fi
36664 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
36665 if test "x$ac_cv_func_lstat" = xyes
36666 then :
36667 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
36668
36669 fi
36670 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
36671 if test "x$ac_cv_func_memmove" = xyes
36672 then :
36673 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
36674
36675 fi
36676 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
36677 if test "x$ac_cv_func_memset" = xyes
36678 then :
36679 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
36680
36681 fi
36682 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
36683 if test "x$ac_cv_func_mkdir" = xyes
36684 then :
36685 printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h
36686
36687 fi
36688 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
36689 if test "x$ac_cv_func_mkstemp" = xyes
36690 then :
36691 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
36692
36693 fi
36694 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
36695 if test "x$ac_cv_func_mmap" = xyes
36696 then :
36697 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
36698
36699 fi
36700 ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap"
36701 if test "x$ac_cv_func_munmap" = xyes
36702 then :
36703 printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h
36704
36705 fi
36706 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
36707 if test "x$ac_cv_func_nanosleep" = xyes
36708 then :
36709 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
36710
36711 fi
36712 ac_fn_c_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale"
36713 if test "x$ac_cv_func_newlocale" = xyes
36714 then :
36715 printf "%s\n" "#define HAVE_NEWLOCALE 1" >>confdefs.h
36716
36717 fi
36718 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
36719 if test "x$ac_cv_func__NSGetExecutablePath" = xyes
36720 then :
36721 printf "%s\n" "#define HAVE__NSGETEXECUTABLEPATH 1" >>confdefs.h
36722
36723 fi
36724 ac_fn_c_check_func "$LINENO" "pclose" "ac_cv_func_pclose"
36725 if test "x$ac_cv_func_pclose" = xyes
36726 then :
36727 printf "%s\n" "#define HAVE_PCLOSE 1" >>confdefs.h
36728
36729 fi
36730 ac_fn_c_check_func "$LINENO" "_pclose" "ac_cv_func__pclose"
36731 if test "x$ac_cv_func__pclose" = xyes
36732 then :
36733 printf "%s\n" "#define HAVE__PCLOSE 1" >>confdefs.h
36734
36735 fi
36736 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
36737 if test "x$ac_cv_func_poll" = xyes
36738 then :
36739 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
36740
36741 fi
36742 ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen"
36743 if test "x$ac_cv_func_popen" = xyes
36744 then :
36745 printf "%s\n" "#define HAVE_POPEN 1" >>confdefs.h
36746
36747 fi
36748 ac_fn_c_check_func "$LINENO" "_popen" "ac_cv_func__popen"
36749 if test "x$ac_cv_func__popen" = xyes
36750 then :
36751 printf "%s\n" "#define HAVE__POPEN 1" >>confdefs.h
36752
36753 fi
36754 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
36755 if test "x$ac_cv_func_posix_fadvise" = xyes
36756 then :
36757 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
36758
36759 fi
36760 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
36761 if test "x$ac_cv_func_posix_fallocate" = xyes
36762 then :
36763 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
36764
36765 fi
36766 ac_fn_c_check_func "$LINENO" "posix_madvise" "ac_cv_func_posix_madvise"
36767 if test "x$ac_cv_func_posix_madvise" = xyes
36768 then :
36769 printf "%s\n" "#define HAVE_POSIX_MADVISE 1" >>confdefs.h
36770
36771 fi
36772 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
36773 if test "x$ac_cv_func_posix_memalign" = xyes
36774 then :
36775 printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
36776
36777 fi
36778 ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
36779 if test "x$ac_cv_func_posix_spawnp" = xyes
36780 then :
36781 printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
36782
36783 fi
36784 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
36785 if test "x$ac_cv_func_pow" = xyes
36786 then :
36787 printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
36788
36789 fi
36790 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
36791 if test "x$ac_cv_func_pread" = xyes
36792 then :
36793 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
36794
36795 fi
36796 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
36797 if test "x$ac_cv_func_putenv" = xyes
36798 then :
36799 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
36800
36801 fi
36802 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
36803 if test "x$ac_cv_func_pwrite" = xyes
36804 then :
36805 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
36806
36807 fi
36808 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
36809 if test "x$ac_cv_func_qsort_r" = xyes
36810 then :
36811 printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h
36812
36813 fi
36814 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
36815 if test "x$ac_cv_func_raise" = xyes
36816 then :
36817 printf "%s\n" "#define HAVE_RAISE 1" >>confdefs.h
36818
36819 fi
36820 ac_fn_c_check_func "$LINENO" "rand_r" "ac_cv_func_rand_r"
36821 if test "x$ac_cv_func_rand_r" = xyes
36822 then :
36823 printf "%s\n" "#define HAVE_RAND_R 1" >>confdefs.h
36824
36825 fi
36826 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
36827 if test "x$ac_cv_func_readlink" = xyes
36828 then :
36829 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
36830
36831 fi
36832 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
36833 if test "x$ac_cv_func_realpath" = xyes
36834 then :
36835 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
36836
36837 fi
36838 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
36839 if test "x$ac_cv_func_select" = xyes
36840 then :
36841 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
36842
36843 fi
36844 ac_fn_c_check_func "$LINENO" "seekdir" "ac_cv_func_seekdir"
36845 if test "x$ac_cv_func_seekdir" = xyes
36846 then :
36847 printf "%s\n" "#define HAVE_SEEKDIR 1" >>confdefs.h
36848
36849 fi
36850 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
36851 if test "x$ac_cv_func_sendfile" = xyes
36852 then :
36853 printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h
36854
36855 fi
36856 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
36857 if test "x$ac_cv_func_setlocale" = xyes
36858 then :
36859 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
36860
36861 fi
36862 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
36863 if test "x$ac_cv_func_socket" = xyes
36864 then :
36865 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
36866
36867 fi
36868 ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
36869 if test "x$ac_cv_func_sqrt" = xyes
36870 then :
36871 printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
36872
36873 fi
36874 ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
36875 if test "x$ac_cv_func_setvbuf" = xyes
36876 then :
36877 printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
36878
36879 fi
36880 ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat"
36881 if test "x$ac_cv_func_stat" = xyes
36882 then :
36883 printf "%s\n" "#define HAVE_STAT 1" >>confdefs.h
36884
36885 fi
36886 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
36887 if test "x$ac_cv_func_strcasestr" = xyes
36888 then :
36889 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
36890
36891 fi
36892 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
36893 if test "x$ac_cv_func_strchr" = xyes
36894 then :
36895 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
36896
36897 fi
36898 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
36899 if test "x$ac_cv_func_strrchr" = xyes
36900 then :
36901 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
36902
36903 fi
36904 ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
36905 if test "x$ac_cv_func_strcspn" = xyes
36906 then :
36907 printf "%s\n" "#define HAVE_STRCSPN 1" >>confdefs.h
36908
36909 fi
36910 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
36911 if test "x$ac_cv_func_strdup" = xyes
36912 then :
36913 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
36914
36915 fi
36916 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
36917 if test "x$ac_cv_func_strpbrk" = xyes
36918 then :
36919 printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h
36920
36921 fi
36922 ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
36923 if test "x$ac_cv_func_strspn" = xyes
36924 then :
36925 printf "%s\n" "#define HAVE_STRSPN 1" >>confdefs.h
36926
36927 fi
36928 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
36929 if test "x$ac_cv_func_strstr" = xyes
36930 then :
36931 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
36932
36933 fi
36934 ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
36935 if test "x$ac_cv_func_strtod" = xyes
36936 then :
36937 printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
36938
36939 fi
36940 ac_fn_c_check_func "$LINENO" "strtod_l" "ac_cv_func_strtod_l"
36941 if test "x$ac_cv_func_strtod_l" = xyes
36942 then :
36943 printf "%s\n" "#define HAVE_STRTOD_L 1" >>confdefs.h
36944
36945 fi
36946 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
36947 if test "x$ac_cv_func_strtol" = xyes
36948 then :
36949 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
36950
36951 fi
36952 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
36953 if test "x$ac_cv_func_strtoul" = xyes
36954 then :
36955 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
36956
36957 fi
36958 ac_fn_c_check_func "$LINENO" "symlink" "ac_cv_func_symlink"
36959 if test "x$ac_cv_func_symlink" = xyes
36960 then :
36961 printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h
36962
36963 fi
36964 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
36965 if test "x$ac_cv_func_sysconf" = xyes
36966 then :
36967 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
36968
36969 fi
36970 ac_fn_c_check_func "$LINENO" "sigemptyset" "ac_cv_func_sigemptyset"
36971 if test "x$ac_cv_func_sigemptyset" = xyes
36972 then :
36973 printf "%s\n" "#define HAVE_SIGEMPTYSET 1" >>confdefs.h
36974
36975 fi
36976 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
36977 if test "x$ac_cv_func_sigaction" = xyes
36978 then :
36979 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
36980
36981 fi
36982 ac_fn_c_check_func "$LINENO" "spawnvp" "ac_cv_func_spawnvp"
36983 if test "x$ac_cv_func_spawnvp" = xyes
36984 then :
36985 printf "%s\n" "#define HAVE_SPAWNVP 1" >>confdefs.h
36986
36987 fi
36988 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
36989 if test "x$ac_cv_func_strerror" = xyes
36990 then :
36991 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
36992
36993 fi
36994 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
36995 if test "x$ac_cv_func_strlcat" = xyes
36996 then :
36997 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
36998
36999 fi
37000 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
37001 if test "x$ac_cv_func_strlcpy" = xyes
37002 then :
37003 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
37004
37005 fi
37006 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
37007 if test "x$ac_cv_func_strcasecmp" = xyes
37008 then :
37009 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
37010
37011 fi
37012 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
37013 if test "x$ac_cv_func_strncasecmp" = xyes
37014 then :
37015 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
37016
37017 fi
37018 ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
37019 if test "x$ac_cv_func_system" = xyes
37020 then :
37021 printf "%s\n" "#define HAVE_SYSTEM 1" >>confdefs.h
37022
37023 fi
37024 ac_fn_c_check_func "$LINENO" "telldir" "ac_cv_func_telldir"
37025 if test "x$ac_cv_func_telldir" = xyes
37026 then :
37027 printf "%s\n" "#define HAVE_TELLDIR 1" >>confdefs.h
37028
37029 fi
37030 ac_fn_c_check_func "$LINENO" "tempnam" "ac_cv_func_tempnam"
37031 if test "x$ac_cv_func_tempnam" = xyes
37032 then :
37033 printf "%s\n" "#define HAVE_TEMPNAM 1" >>confdefs.h
37034
37035 fi
37036 ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
37037 if test "x$ac_cv_func_times" = xyes
37038 then :
37039 printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h
37040
37041 fi
37042 ac_fn_c_check_func "$LINENO" "ulltostr" "ac_cv_func_ulltostr"
37043 if test "x$ac_cv_func_ulltostr" = xyes
37044 then :
37045 printf "%s\n" "#define HAVE_ULLTOSTR 1" >>confdefs.h
37046
37047 fi
37048 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
37049 if test "x$ac_cv_func_uselocale" = xyes
37050 then :
37051 printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h
37052
37053 fi
37054 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
37055 if test "x$ac_cv_func_usleep" = xyes
37056 then :
37057 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
37058
37059 fi
37060 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
37061 if test "x$ac_cv_func_utime" = xyes
37062 then :
37063 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
37064
37065 fi
37066 ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
37067 if test "x$ac_cv_func_utimensat" = xyes
37068 then :
37069 printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
37070
37071 fi
37072 ac_fn_c_check_func "$LINENO" "vfprintf" "ac_cv_func_vfprintf"
37073 if test "x$ac_cv_func_vfprintf" = xyes
37074 then :
37075 printf "%s\n" "#define HAVE_VFPRINTF 1" >>confdefs.h
37076
37077 fi
37078 ac_fn_c_check_func "$LINENO" "vfprintf_l" "ac_cv_func_vfprintf_l"
37079 if test "x$ac_cv_func_vfprintf_l" = xyes
37080 then :
37081 printf "%s\n" "#define HAVE_VFPRINTF_L 1" >>confdefs.h
37082
37083 fi
37084 ac_fn_c_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
37085 if test "x$ac_cv_func_vsprintf" = xyes
37086 then :
37087 printf "%s\n" "#define HAVE_VSPRINTF 1" >>confdefs.h
37088
37089 fi
37090 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
37091 if test "x$ac_cv_func_vsnprintf" = xyes
37092 then :
37093 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
37094
37095 fi
37096 ac_fn_c_check_func "$LINENO" "vsnprintf_l" "ac_cv_func_vsnprintf_l"
37097 if test "x$ac_cv_func_vsnprintf_l" = xyes
37098 then :
37099 printf "%s\n" "#define HAVE_VSNPRINTF_L 1" >>confdefs.h
37100
37101 fi
37102 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
37103 if test "x$ac_cv_func_waitpid" = xyes
37104 then :
37105 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
37106
37107 fi
37108 ac_fn_c_check_func "$LINENO" "_wfopen" "ac_cv_func__wfopen"
37109 if test "x$ac_cv_func__wfopen" = xyes
37110 then :
37111 printf "%s\n" "#define HAVE__WFOPEN 1" >>confdefs.h
37112
37113 fi
37114 ac_fn_c_check_func "$LINENO" "_wstat" "ac_cv_func__wstat"
37115 if test "x$ac_cv_func__wstat" = xyes
37116 then :
37117 printf "%s\n" "#define HAVE__WSTAT 1" >>confdefs.h
37118
37119 fi
37120
37121
37122 # Substitute compiler name to build/link PerlMagick
37123 #
37124
37125
37126 #
37127 # Configure install Paths
37128 #
37129
37130 # Path to ImageMagick header files
37131 INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
37132 INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
37133 DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
37134 case "${build_os}" in
37135 mingw* )
37136 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
37137 ;;
37138 esac
37139
37140 printf "%s\n" "#define INCLUDE_PATH \"$DEFINE_INCLUDE_PATH\"" >>confdefs.h
37141
37142
37143
37144 # Path to ImageMagick header files (arch part)
37145 INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
37146 DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
37147 case "${build_os}" in
37148 mingw* )
37149 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
37150 ;;
37151 esac
37152
37153 printf "%s\n" "#define INCLUDEARCH_PATH \"$DEFINE_INCLUDE_PATH\"" >>confdefs.h
37154
37155
37156
37157 # Subdirectory under lib to place ImageMagick lib files
37158 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_BASE_VERSION}"
37159
37160 printf "%s\n" "#define LIBRARY_RELATIVE_PATH \"$LIBRARY_RELATIVE_PATH\"" >>confdefs.h
37161
37162
37163 # Path to ImageMagick bin directory
37164 EXECUTABLE_PATH="${BIN_DIR}"
37165 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
37166 case "${build_os}" in
37167 mingw* )
37168 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
37169 ;;
37170 esac
37171
37172 printf "%s\n" "#define EXECUTABLE_PATH \"$DEFINE_EXECUTABLE_PATH\"" >>confdefs.h
37173
37174
37175
37176 # Path to ImageMagick lib
37177 LIBRARY_ABSOLUTE_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
37178 DEFINE_LIBRARY_ABSOLUTE_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
37179 case "${build_os}" in
37180 mingw* )
37181 DEFINE_LIBRARY_ABSOLUTE_PATH=`$WinPathScript "$DEFINE_LIBRARY_ABSOLUTE_PATH" 1`
37182 ;;
37183 esac
37184
37185 printf "%s\n" "#define LIBRARY_ABSOLUTE_PATH \"$DEFINE_LIBRARY_ABSOLUTE_PATH\"" >>confdefs.h
37186
37187
37188
37189 #
37190 # path to local binaries
37191 if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
37192 LIB_BIN_BASEDIRNAME="bin"
37193 fi
37194
37195 printf "%s\n" "#define LIB_BIN_BASEDIRNAME \"$LIB_BIN_BASEDIRNAME\"" >>confdefs.h
37196
37197
37198
37199 if test "x$LIB_BIN_DIR" = "x"; then
37200 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
37201 fi
37202
37203
37204 LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
37205
37206 LIB_BIN_DIR_PATH="${LIBRARY_ABSOLUTE_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
37207
37208
37209 #
37210 # path to modules lib
37211 if test "x$MODULES_BASEDIRNAME" = "x"; then
37212 MODULES_BASEDIRNAME="modules"
37213 fi
37214
37215 printf "%s\n" "#define MODULES_BASEDIRNAME \"$MODULES_BASEDIRNAME\"" >>confdefs.h
37216
37217
37218
37219 if test "x$MODULES_DIRNAME" = "x"; then
37220 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
37221 else
37222
37223 printf "%s\n" "#define MODULES_DIRNAME \"$MODULES_DIRNAME\"" >>confdefs.h
37224
37225 fi
37226
37227
37228 MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
37229
37230 MODULES_PATH="${LIBRARY_ABSOLUTE_PATH}/${MODULES_RELATIVE_PATH}"
37231
37232
37233 #
37234 # path to coders lib
37235 if test "x$CODER_DIRNAME" = "x"; then
37236 CODER_DIRNAME="coders"
37237 fi
37238
37239 printf "%s\n" "#define CODER_DIRNAME \"$CODER_DIRNAME\"" >>confdefs.h
37240
37241
37242
37243 CODER_RELATIVE_PATH="${CODER_DIRNAME}"
37244 CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
37245
37246
37247 #
37248 # Subdirectory under lib to place ImageMagick filter module files
37249 #
37250 # path to coders lib
37251 if test "x$FILTER_DIRNAME" = "x"; then
37252 FILTER_DIRNAME="filters"
37253 fi
37254
37255 printf "%s\n" "#define FILTER_DIRNAME \"$FILTER_DIRNAME\"" >>confdefs.h
37256
37257
37258
37259 FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
37260 FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
37261
37262
37263 #
37264 # Path to ImageMagick documentation files
37265 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
37266 DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
37267 DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
37268 case "${build_os}" in
37269 mingw* )
37270 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
37271 ;;
37272 esac
37273
37274 printf "%s\n" "#define DOCUMENTATION_PATH \"$DEFINE_DOCUMENTATION_PATH\"" >>confdefs.h
37275
37276
37277
37278 #
37279 # Enable/Disable documentation
37280 # Check whether --enable-docs was given.
37281 if test ${enable_docs+y}
37282 then :
37283 enableval=$enable_docs; wantdocs=$enableval
37284 else case e in #(
37285 e) wantdocs=yes ;;
37286 esac
37287 fi
37288
37289 if test "$wantdocs" = "yes"; then
37290 INSTALL_DOC_TRUE=
37291 INSTALL_DOC_FALSE='#'
37292 else
37293 INSTALL_DOC_TRUE='#'
37294 INSTALL_DOC_FALSE=
37295 fi
37296
37297
37298 # Subdirectory to place architecture-dependent configuration files
37299 CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
37300
37301 printf "%s\n" "#define CONFIGURE_RELATIVE_PATH \"$CONFIGURE_RELATIVE_PATH\"" >>confdefs.h
37302
37303 CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
37304 DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
37305 case "${build_os}" in
37306 mingw* )
37307 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
37308 ;;
37309 esac
37310
37311 printf "%s\n" "#define CONFIGURE_PATH \"$DEFINE_CONFIGURE_PATH\"" >>confdefs.h
37312
37313
37314
37315 # Subdirectory to place architecture-independent configuration files
37316 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
37317
37318 printf "%s\n" "#define SHARE_RELATIVE_PATH \"$SHARE_RELATIVE_PATH\"" >>confdefs.h
37319
37320 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
37321 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
37322 case "${build_os}" in
37323 mingw* )
37324 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
37325 ;;
37326 esac
37327
37328 printf "%s\n" "#define SHARE_PATH \"$DEFINE_SHARE_PATH\"" >>confdefs.h
37329
37330
37331
37332 #
37333 # Subdirectory to place architecture-dependent configuration files.
37334 if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
37335 SHAREARCH_BASEDIRNAME="config"
37336 fi
37337
37338 printf "%s\n" "#define SHAREARCH_BASEDIRNAME \"$SHAREARCH_BASEDIRNAME\"" >>confdefs.h
37339
37340
37341
37342 if test "x$SHAREARCH_DIRNAME" = "x"; then
37343 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
37344 else
37345
37346 printf "%s\n" "#define SHAREARCH_DIRNAME \"$SHAREARCH_DIRNAME\"" >>confdefs.h
37347
37348 fi
37349
37350
37351 SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
37352
37353 SHAREARCH_PATH="${LIBRARY_ABSOLUTE_PATH}/${SHAREARCH_RELATIVE_PATH}"
37354
37355
37356 #
37357 # program_transform_name is formed for use in a Makefile, so create a
37358 # modified version for use in a shell script.
37359 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
37360
37361 # Default delegate definitions
37362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
37363 printf "%s\n" "-------------------------------------------------------------" >&6; }
37364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
37365 printf %s "checking for ImageMagick delegate programs... " >&6; }
37366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
37367 printf "%s\n" "" >&6; }
37368 BPGDecodeDelegateDefault='bpgdec'
37369 BPGEncodeDelegateDefault='bpgenc'
37370 BlenderDecodeDelegateDefault='blender'
37371 BrowseDelegateDefault='xdg-open'
37372 ClipboardDelegateDefault='xclip'
37373 DNGDecodeDelegateDefault='darktable-cli'
37374 DOCDecodeDelegateDefault='libreoffice'
37375 GVCDecodeDelegateDefault='dot'
37376 DVIDecodeDelegateDefault='dvips'
37377 EditorDelegateDefault='xterm'
37378 ConvertDelegateDefault=`echo magick | sed ${configure_transform_name}`
37379 DisplayDelegateDefault=`echo magick | sed ${configure_transform_name}`
37380 Fig2devDelegateDefault='fig2dev'
37381 MogrifyDelegateDefault=`echo magick | sed ${configure_transform_name}`
37382 HPGLDecodeDelegateDefault='hp2xx'
37383 HTMLDecodeDelegateDefault='html2ps'
37384 ILBMDecodeDelegateDefault='ilbmtoppm'
37385 ILBMEncodeDelegateDefault='ppmtoilbm'
37386 JXRDecodeDelegateDefault='JxrDecApp'
37387 JXREncodeDelegateDefault='JxrEncApp'
37388 LEPDelegateDefault='lepton'
37389 LPDelegateDefault='lp'
37390 LPRDelegateDefault='lpr'
37391 LaunchDelegateDefault='gimp'
37392 MKDIRDelegateDefault='mkdir'
37393 MrSIDDecodeDelegateDefault='mrsidgeodecode'
37394 MVDelegateDefault='mv'
37395 OpenDelegateDefault='open'
37396 PCLDelegateDefault='pcl6'
37397 if test "$native_win32_build" = 'yes'; then
37398 PSDelegateDefault='gswin32c'
37399 elif test "$gslib_framework" = 'yes'; then
37400 PSDelegateDefault='gsc'
37401 else
37402 PSDelegateDefault='gs'
37403 fi
37404 RMDelegateDefault='rm'
37405 RSVGDecodeDelegateDefault='rsvg-convert'
37406 SVGDecodeDelegateDefault='inkscape'
37407 TextEncodeDelegateDefault='tesseract'
37408 TraceEncodeDelegateDefault='potrace'
37409 VIDEODecodeDelegateDefault='ffmpeg'
37410 VIDEOEncodeDelegateDefault='ffmpeg'
37411 WebPDecodeDelegateDefault='dwebp'
37412 WebPEncodeDelegateDefault='cwebp'
37413 WWWDecodeDelegateDefault='curl'
37414 XPSDelegateDefault='gxps'
37415
37416 # Search for delegates
37417 # Extract the first word of ""$BPGDecodeDelegateDefault"", so it can be a program name with args.
37418 set dummy "$BPGDecodeDelegateDefault"; ac_word=$2
37419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37420 printf %s "checking for $ac_word... " >&6; }
37421 if test ${ac_cv_path_BPGDecodeDelegate+y}
37422 then :
37423 printf %s "(cached) " >&6
37424 else case e in #(
37425 e) case $BPGDecodeDelegate in
37426 [\\/]* | ?:[\\/]*)
37427 ac_cv_path_BPGDecodeDelegate="$BPGDecodeDelegate" # Let the user override the test with a path.
37428 ;;
37429 *)
37430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37431 for as_dir in $PATH
37432 do
37433 IFS=$as_save_IFS
37434 case $as_dir in #(((
37435 '') as_dir=./ ;;
37436 */) ;;
37437 *) as_dir=$as_dir/ ;;
37438 esac
37439 for ac_exec_ext in '' $ac_executable_extensions; do
37440 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37441 ac_cv_path_BPGDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
37442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37443 break 2
37444 fi
37445 done
37446 done
37447 IFS=$as_save_IFS
37448
37449 test -z "$ac_cv_path_BPGDecodeDelegate" && ac_cv_path_BPGDecodeDelegate=""$BPGDecodeDelegateDefault""
37450 ;;
37451 esac ;;
37452 esac
37453 fi
37454 BPGDecodeDelegate=$ac_cv_path_BPGDecodeDelegate
37455 if test -n "$BPGDecodeDelegate"; then
37456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BPGDecodeDelegate" >&5
37457 printf "%s\n" "$BPGDecodeDelegate" >&6; }
37458 else
37459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37460 printf "%s\n" "no" >&6; }
37461 fi
37462
37463
37464 # Extract the first word of ""$BPGEncodeDelegateDefault"", so it can be a program name with args.
37465 set dummy "$BPGEncodeDelegateDefault"; ac_word=$2
37466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37467 printf %s "checking for $ac_word... " >&6; }
37468 if test ${ac_cv_path_BPGEncodeDelegate+y}
37469 then :
37470 printf %s "(cached) " >&6
37471 else case e in #(
37472 e) case $BPGEncodeDelegate in
37473 [\\/]* | ?:[\\/]*)
37474 ac_cv_path_BPGEncodeDelegate="$BPGEncodeDelegate" # Let the user override the test with a path.
37475 ;;
37476 *)
37477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37478 for as_dir in $PATH
37479 do
37480 IFS=$as_save_IFS
37481 case $as_dir in #(((
37482 '') as_dir=./ ;;
37483 */) ;;
37484 *) as_dir=$as_dir/ ;;
37485 esac
37486 for ac_exec_ext in '' $ac_executable_extensions; do
37487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37488 ac_cv_path_BPGEncodeDelegate="$as_dir$ac_word$ac_exec_ext"
37489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37490 break 2
37491 fi
37492 done
37493 done
37494 IFS=$as_save_IFS
37495
37496 test -z "$ac_cv_path_BPGEncodeDelegate" && ac_cv_path_BPGEncodeDelegate=""$BPGEncodeDelegateDefault""
37497 ;;
37498 esac ;;
37499 esac
37500 fi
37501 BPGEncodeDelegate=$ac_cv_path_BPGEncodeDelegate
37502 if test -n "$BPGEncodeDelegate"; then
37503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BPGEncodeDelegate" >&5
37504 printf "%s\n" "$BPGEncodeDelegate" >&6; }
37505 else
37506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37507 printf "%s\n" "no" >&6; }
37508 fi
37509
37510
37511 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
37512 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
37513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37514 printf %s "checking for $ac_word... " >&6; }
37515 if test ${ac_cv_path_BlenderDecodeDelegate+y}
37516 then :
37517 printf %s "(cached) " >&6
37518 else case e in #(
37519 e) case $BlenderDecodeDelegate in
37520 [\\/]* | ?:[\\/]*)
37521 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
37522 ;;
37523 *)
37524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37525 for as_dir in $PATH
37526 do
37527 IFS=$as_save_IFS
37528 case $as_dir in #(((
37529 '') as_dir=./ ;;
37530 */) ;;
37531 *) as_dir=$as_dir/ ;;
37532 esac
37533 for ac_exec_ext in '' $ac_executable_extensions; do
37534 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37535 ac_cv_path_BlenderDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
37536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37537 break 2
37538 fi
37539 done
37540 done
37541 IFS=$as_save_IFS
37542
37543 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
37544 ;;
37545 esac ;;
37546 esac
37547 fi
37548 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
37549 if test -n "$BlenderDecodeDelegate"; then
37550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
37551 printf "%s\n" "$BlenderDecodeDelegate" >&6; }
37552 else
37553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37554 printf "%s\n" "no" >&6; }
37555 fi
37556
37557
37558 for ac_prog in "$BrowseDelegateDefault" brave-browser microsoft-edge google-chrome firefox konqueror lynx
37559 do
37560 # Extract the first word of "$ac_prog", so it can be a program name with args.
37561 set dummy $ac_prog; ac_word=$2
37562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37563 printf %s "checking for $ac_word... " >&6; }
37564 if test ${ac_cv_path_BrowseDelegate+y}
37565 then :
37566 printf %s "(cached) " >&6
37567 else case e in #(
37568 e) case $BrowseDelegate in
37569 [\\/]* | ?:[\\/]*)
37570 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
37571 ;;
37572 *)
37573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37574 for as_dir in $PATH
37575 do
37576 IFS=$as_save_IFS
37577 case $as_dir in #(((
37578 '') as_dir=./ ;;
37579 */) ;;
37580 *) as_dir=$as_dir/ ;;
37581 esac
37582 for ac_exec_ext in '' $ac_executable_extensions; do
37583 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37584 ac_cv_path_BrowseDelegate="$as_dir$ac_word$ac_exec_ext"
37585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37586 break 2
37587 fi
37588 done
37589 done
37590 IFS=$as_save_IFS
37591
37592 ;;
37593 esac ;;
37594 esac
37595 fi
37596 BrowseDelegate=$ac_cv_path_BrowseDelegate
37597 if test -n "$BrowseDelegate"; then
37598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
37599 printf "%s\n" "$BrowseDelegate" >&6; }
37600 else
37601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37602 printf "%s\n" "no" >&6; }
37603 fi
37604
37605
37606 test -n "$BrowseDelegate" && break
37607 done
37608 test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
37609
37610 for ac_prog in "$ClipboardDelegateDefault"
37611 do
37612 # Extract the first word of "$ac_prog", so it can be a program name with args.
37613 set dummy $ac_prog; ac_word=$2
37614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37615 printf %s "checking for $ac_word... " >&6; }
37616 if test ${ac_cv_path_ClipboardDelegate+y}
37617 then :
37618 printf %s "(cached) " >&6
37619 else case e in #(
37620 e) case $ClipboardDelegate in
37621 [\\/]* | ?:[\\/]*)
37622 ac_cv_path_ClipboardDelegate="$ClipboardDelegate" # Let the user override the test with a path.
37623 ;;
37624 *)
37625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37626 for as_dir in $PATH
37627 do
37628 IFS=$as_save_IFS
37629 case $as_dir in #(((
37630 '') as_dir=./ ;;
37631 */) ;;
37632 *) as_dir=$as_dir/ ;;
37633 esac
37634 for ac_exec_ext in '' $ac_executable_extensions; do
37635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37636 ac_cv_path_ClipboardDelegate="$as_dir$ac_word$ac_exec_ext"
37637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37638 break 2
37639 fi
37640 done
37641 done
37642 IFS=$as_save_IFS
37643
37644 ;;
37645 esac ;;
37646 esac
37647 fi
37648 ClipboardDelegate=$ac_cv_path_ClipboardDelegate
37649 if test -n "$ClipboardDelegate"; then
37650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ClipboardDelegate" >&5
37651 printf "%s\n" "$ClipboardDelegate" >&6; }
37652 else
37653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37654 printf "%s\n" "no" >&6; }
37655 fi
37656
37657
37658 test -n "$ClipboardDelegate" && break
37659 done
37660 test -n "$ClipboardDelegate" || ClipboardDelegate=""$ClipboardDelegateDefault""
37661
37662 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
37663 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
37664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37665 printf %s "checking for $ac_word... " >&6; }
37666 if test ${ac_cv_path_DNGDecodeDelegate+y}
37667 then :
37668 printf %s "(cached) " >&6
37669 else case e in #(
37670 e) case $DNGDecodeDelegate in
37671 [\\/]* | ?:[\\/]*)
37672 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
37673 ;;
37674 *)
37675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37676 for as_dir in $PATH
37677 do
37678 IFS=$as_save_IFS
37679 case $as_dir in #(((
37680 '') as_dir=./ ;;
37681 */) ;;
37682 *) as_dir=$as_dir/ ;;
37683 esac
37684 for ac_exec_ext in '' $ac_executable_extensions; do
37685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37686 ac_cv_path_DNGDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
37687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37688 break 2
37689 fi
37690 done
37691 done
37692 IFS=$as_save_IFS
37693
37694 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
37695 ;;
37696 esac ;;
37697 esac
37698 fi
37699 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
37700 if test -n "$DNGDecodeDelegate"; then
37701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
37702 printf "%s\n" "$DNGDecodeDelegate" >&6; }
37703 else
37704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37705 printf "%s\n" "no" >&6; }
37706 fi
37707
37708
37709 # Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
37710 set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
37711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37712 printf %s "checking for $ac_word... " >&6; }
37713 if test ${ac_cv_path_DOCDecodeDelegate+y}
37714 then :
37715 printf %s "(cached) " >&6
37716 else case e in #(
37717 e) case $DOCDecodeDelegate in
37718 [\\/]* | ?:[\\/]*)
37719 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
37720 ;;
37721 *)
37722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37723 for as_dir in $PATH
37724 do
37725 IFS=$as_save_IFS
37726 case $as_dir in #(((
37727 '') as_dir=./ ;;
37728 */) ;;
37729 *) as_dir=$as_dir/ ;;
37730 esac
37731 for ac_exec_ext in '' $ac_executable_extensions; do
37732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37733 ac_cv_path_DOCDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
37734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37735 break 2
37736 fi
37737 done
37738 done
37739 IFS=$as_save_IFS
37740
37741 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
37742 ;;
37743 esac ;;
37744 esac
37745 fi
37746 DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
37747 if test -n "$DOCDecodeDelegate"; then
37748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
37749 printf "%s\n" "$DOCDecodeDelegate" >&6; }
37750 else
37751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37752 printf "%s\n" "no" >&6; }
37753 fi
37754
37755
37756 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
37757 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
37758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37759 printf %s "checking for $ac_word... " >&6; }
37760 if test ${ac_cv_path_DVIDecodeDelegate+y}
37761 then :
37762 printf %s "(cached) " >&6
37763 else case e in #(
37764 e) case $DVIDecodeDelegate in
37765 [\\/]* | ?:[\\/]*)
37766 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
37767 ;;
37768 *)
37769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37770 for as_dir in $PATH
37771 do
37772 IFS=$as_save_IFS
37773 case $as_dir in #(((
37774 '') as_dir=./ ;;
37775 */) ;;
37776 *) as_dir=$as_dir/ ;;
37777 esac
37778 for ac_exec_ext in '' $ac_executable_extensions; do
37779 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37780 ac_cv_path_DVIDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
37781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37782 break 2
37783 fi
37784 done
37785 done
37786 IFS=$as_save_IFS
37787
37788 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
37789 ;;
37790 esac ;;
37791 esac
37792 fi
37793 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
37794 if test -n "$DVIDecodeDelegate"; then
37795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
37796 printf "%s\n" "$DVIDecodeDelegate" >&6; }
37797 else
37798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37799 printf "%s\n" "no" >&6; }
37800 fi
37801
37802
37803 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
37804 set dummy "$ConvertDelegateDefault"; ac_word=$2
37805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37806 printf %s "checking for $ac_word... " >&6; }
37807 if test ${ac_cv_path_ConvertDelegate+y}
37808 then :
37809 printf %s "(cached) " >&6
37810 else case e in #(
37811 e) case $ConvertDelegate in
37812 [\\/]* | ?:[\\/]*)
37813 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
37814 ;;
37815 *)
37816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37817 for as_dir in $PATH
37818 do
37819 IFS=$as_save_IFS
37820 case $as_dir in #(((
37821 '') as_dir=./ ;;
37822 */) ;;
37823 *) as_dir=$as_dir/ ;;
37824 esac
37825 for ac_exec_ext in '' $ac_executable_extensions; do
37826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37827 ac_cv_path_ConvertDelegate="$as_dir$ac_word$ac_exec_ext"
37828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37829 break 2
37830 fi
37831 done
37832 done
37833 IFS=$as_save_IFS
37834
37835 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
37836 ;;
37837 esac ;;
37838 esac
37839 fi
37840 ConvertDelegate=$ac_cv_path_ConvertDelegate
37841 if test -n "$ConvertDelegate"; then
37842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
37843 printf "%s\n" "$ConvertDelegate" >&6; }
37844 else
37845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37846 printf "%s\n" "no" >&6; }
37847 fi
37848
37849
37850 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
37851 set dummy "$DisplayDelegateDefault"; ac_word=$2
37852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37853 printf %s "checking for $ac_word... " >&6; }
37854 if test ${ac_cv_path_DisplayDelegate+y}
37855 then :
37856 printf %s "(cached) " >&6
37857 else case e in #(
37858 e) case $DisplayDelegate in
37859 [\\/]* | ?:[\\/]*)
37860 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
37861 ;;
37862 *)
37863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37864 for as_dir in $PATH
37865 do
37866 IFS=$as_save_IFS
37867 case $as_dir in #(((
37868 '') as_dir=./ ;;
37869 */) ;;
37870 *) as_dir=$as_dir/ ;;
37871 esac
37872 for ac_exec_ext in '' $ac_executable_extensions; do
37873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37874 ac_cv_path_DisplayDelegate="$as_dir$ac_word$ac_exec_ext"
37875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37876 break 2
37877 fi
37878 done
37879 done
37880 IFS=$as_save_IFS
37881
37882 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
37883 ;;
37884 esac ;;
37885 esac
37886 fi
37887 DisplayDelegate=$ac_cv_path_DisplayDelegate
37888 if test -n "$DisplayDelegate"; then
37889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
37890 printf "%s\n" "$DisplayDelegate" >&6; }
37891 else
37892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37893 printf "%s\n" "no" >&6; }
37894 fi
37895
37896
37897 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
37898 set dummy "$EditorDelegateDefault"; ac_word=$2
37899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37900 printf %s "checking for $ac_word... " >&6; }
37901 if test ${ac_cv_path_EditorDelegate+y}
37902 then :
37903 printf %s "(cached) " >&6
37904 else case e in #(
37905 e) case $EditorDelegate in
37906 [\\/]* | ?:[\\/]*)
37907 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
37908 ;;
37909 *)
37910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37911 for as_dir in $PATH
37912 do
37913 IFS=$as_save_IFS
37914 case $as_dir in #(((
37915 '') as_dir=./ ;;
37916 */) ;;
37917 *) as_dir=$as_dir/ ;;
37918 esac
37919 for ac_exec_ext in '' $ac_executable_extensions; do
37920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37921 ac_cv_path_EditorDelegate="$as_dir$ac_word$ac_exec_ext"
37922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37923 break 2
37924 fi
37925 done
37926 done
37927 IFS=$as_save_IFS
37928
37929 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
37930 ;;
37931 esac ;;
37932 esac
37933 fi
37934 EditorDelegate=$ac_cv_path_EditorDelegate
37935 if test -n "$EditorDelegate"; then
37936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
37937 printf "%s\n" "$EditorDelegate" >&6; }
37938 else
37939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37940 printf "%s\n" "no" >&6; }
37941 fi
37942
37943
37944 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
37945 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
37946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37947 printf %s "checking for $ac_word... " >&6; }
37948 if test ${ac_cv_path_GVCDecodeDelegate+y}
37949 then :
37950 printf %s "(cached) " >&6
37951 else case e in #(
37952 e) case $GVCDecodeDelegate in
37953 [\\/]* | ?:[\\/]*)
37954 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
37955 ;;
37956 *)
37957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37958 for as_dir in $PATH
37959 do
37960 IFS=$as_save_IFS
37961 case $as_dir in #(((
37962 '') as_dir=./ ;;
37963 */) ;;
37964 *) as_dir=$as_dir/ ;;
37965 esac
37966 for ac_exec_ext in '' $ac_executable_extensions; do
37967 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37968 ac_cv_path_GVCDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
37969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37970 break 2
37971 fi
37972 done
37973 done
37974 IFS=$as_save_IFS
37975
37976 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
37977 ;;
37978 esac ;;
37979 esac
37980 fi
37981 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
37982 if test -n "$GVCDecodeDelegate"; then
37983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
37984 printf "%s\n" "$GVCDecodeDelegate" >&6; }
37985 else
37986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37987 printf "%s\n" "no" >&6; }
37988 fi
37989
37990
37991 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
37992 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
37993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37994 printf %s "checking for $ac_word... " >&6; }
37995 if test ${ac_cv_path_HPGLDecodeDelegate+y}
37996 then :
37997 printf %s "(cached) " >&6
37998 else case e in #(
37999 e) case $HPGLDecodeDelegate in
38000 [\\/]* | ?:[\\/]*)
38001 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
38002 ;;
38003 *)
38004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38005 for as_dir in $PATH
38006 do
38007 IFS=$as_save_IFS
38008 case $as_dir in #(((
38009 '') as_dir=./ ;;
38010 */) ;;
38011 *) as_dir=$as_dir/ ;;
38012 esac
38013 for ac_exec_ext in '' $ac_executable_extensions; do
38014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38015 ac_cv_path_HPGLDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
38016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38017 break 2
38018 fi
38019 done
38020 done
38021 IFS=$as_save_IFS
38022
38023 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
38024 ;;
38025 esac ;;
38026 esac
38027 fi
38028 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
38029 if test -n "$HPGLDecodeDelegate"; then
38030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
38031 printf "%s\n" "$HPGLDecodeDelegate" >&6; }
38032 else
38033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38034 printf "%s\n" "no" >&6; }
38035 fi
38036
38037
38038 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
38039 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
38040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38041 printf %s "checking for $ac_word... " >&6; }
38042 if test ${ac_cv_path_HTMLDecodeDelegate+y}
38043 then :
38044 printf %s "(cached) " >&6
38045 else case e in #(
38046 e) case $HTMLDecodeDelegate in
38047 [\\/]* | ?:[\\/]*)
38048 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
38049 ;;
38050 *)
38051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38052 for as_dir in $PATH
38053 do
38054 IFS=$as_save_IFS
38055 case $as_dir in #(((
38056 '') as_dir=./ ;;
38057 */) ;;
38058 *) as_dir=$as_dir/ ;;
38059 esac
38060 for ac_exec_ext in '' $ac_executable_extensions; do
38061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38062 ac_cv_path_HTMLDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
38063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38064 break 2
38065 fi
38066 done
38067 done
38068 IFS=$as_save_IFS
38069
38070 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
38071 ;;
38072 esac ;;
38073 esac
38074 fi
38075 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
38076 if test -n "$HTMLDecodeDelegate"; then
38077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
38078 printf "%s\n" "$HTMLDecodeDelegate" >&6; }
38079 else
38080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38081 printf "%s\n" "no" >&6; }
38082 fi
38083
38084
38085 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
38086 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
38087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38088 printf %s "checking for $ac_word... " >&6; }
38089 if test ${ac_cv_path_ILBMDecodeDelegate+y}
38090 then :
38091 printf %s "(cached) " >&6
38092 else case e in #(
38093 e) case $ILBMDecodeDelegate in
38094 [\\/]* | ?:[\\/]*)
38095 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
38096 ;;
38097 *)
38098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38099 for as_dir in $PATH
38100 do
38101 IFS=$as_save_IFS
38102 case $as_dir in #(((
38103 '') as_dir=./ ;;
38104 */) ;;
38105 *) as_dir=$as_dir/ ;;
38106 esac
38107 for ac_exec_ext in '' $ac_executable_extensions; do
38108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38109 ac_cv_path_ILBMDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
38110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38111 break 2
38112 fi
38113 done
38114 done
38115 IFS=$as_save_IFS
38116
38117 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
38118 ;;
38119 esac ;;
38120 esac
38121 fi
38122 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
38123 if test -n "$ILBMDecodeDelegate"; then
38124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
38125 printf "%s\n" "$ILBMDecodeDelegate" >&6; }
38126 else
38127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38128 printf "%s\n" "no" >&6; }
38129 fi
38130
38131
38132 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
38133 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
38134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38135 printf %s "checking for $ac_word... " >&6; }
38136 if test ${ac_cv_path_ILBMEncodeDelegate+y}
38137 then :
38138 printf %s "(cached) " >&6
38139 else case e in #(
38140 e) case $ILBMEncodeDelegate in
38141 [\\/]* | ?:[\\/]*)
38142 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
38143 ;;
38144 *)
38145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38146 for as_dir in $PATH
38147 do
38148 IFS=$as_save_IFS
38149 case $as_dir in #(((
38150 '') as_dir=./ ;;
38151 */) ;;
38152 *) as_dir=$as_dir/ ;;
38153 esac
38154 for ac_exec_ext in '' $ac_executable_extensions; do
38155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38156 ac_cv_path_ILBMEncodeDelegate="$as_dir$ac_word$ac_exec_ext"
38157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38158 break 2
38159 fi
38160 done
38161 done
38162 IFS=$as_save_IFS
38163
38164 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
38165 ;;
38166 esac ;;
38167 esac
38168 fi
38169 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
38170 if test -n "$ILBMEncodeDelegate"; then
38171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
38172 printf "%s\n" "$ILBMEncodeDelegate" >&6; }
38173 else
38174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38175 printf "%s\n" "no" >&6; }
38176 fi
38177
38178
38179 # Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
38180 set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
38181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38182 printf %s "checking for $ac_word... " >&6; }
38183 if test ${ac_cv_path_JXRDecodeDelegate+y}
38184 then :
38185 printf %s "(cached) " >&6
38186 else case e in #(
38187 e) case $JXRDecodeDelegate in
38188 [\\/]* | ?:[\\/]*)
38189 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
38190 ;;
38191 *)
38192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38193 for as_dir in $PATH
38194 do
38195 IFS=$as_save_IFS
38196 case $as_dir in #(((
38197 '') as_dir=./ ;;
38198 */) ;;
38199 *) as_dir=$as_dir/ ;;
38200 esac
38201 for ac_exec_ext in '' $ac_executable_extensions; do
38202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38203 ac_cv_path_JXRDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
38204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38205 break 2
38206 fi
38207 done
38208 done
38209 IFS=$as_save_IFS
38210
38211 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
38212 ;;
38213 esac ;;
38214 esac
38215 fi
38216 JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
38217 if test -n "$JXRDecodeDelegate"; then
38218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
38219 printf "%s\n" "$JXRDecodeDelegate" >&6; }
38220 else
38221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38222 printf "%s\n" "no" >&6; }
38223 fi
38224
38225
38226 # Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
38227 set dummy "$JXREncodeDelegateDefault"; ac_word=$2
38228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38229 printf %s "checking for $ac_word... " >&6; }
38230 if test ${ac_cv_path_JXREncodeDelegate+y}
38231 then :
38232 printf %s "(cached) " >&6
38233 else case e in #(
38234 e) case $JXREncodeDelegate in
38235 [\\/]* | ?:[\\/]*)
38236 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
38237 ;;
38238 *)
38239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38240 for as_dir in $PATH
38241 do
38242 IFS=$as_save_IFS
38243 case $as_dir in #(((
38244 '') as_dir=./ ;;
38245 */) ;;
38246 *) as_dir=$as_dir/ ;;
38247 esac
38248 for ac_exec_ext in '' $ac_executable_extensions; do
38249 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38250 ac_cv_path_JXREncodeDelegate="$as_dir$ac_word$ac_exec_ext"
38251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38252 break 2
38253 fi
38254 done
38255 done
38256 IFS=$as_save_IFS
38257
38258 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
38259 ;;
38260 esac ;;
38261 esac
38262 fi
38263 JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
38264 if test -n "$JXREncodeDelegate"; then
38265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
38266 printf "%s\n" "$JXREncodeDelegate" >&6; }
38267 else
38268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38269 printf "%s\n" "no" >&6; }
38270 fi
38271
38272
38273 # Extract the first word of ""$LEPDelegateDefault"", so it can be a program name with args.
38274 set dummy "$LEPDelegateDefault"; ac_word=$2
38275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38276 printf %s "checking for $ac_word... " >&6; }
38277 if test ${ac_cv_path_LEPDelegate+y}
38278 then :
38279 printf %s "(cached) " >&6
38280 else case e in #(
38281 e) case $LEPDelegate in
38282 [\\/]* | ?:[\\/]*)
38283 ac_cv_path_LEPDelegate="$LEPDelegate" # Let the user override the test with a path.
38284 ;;
38285 *)
38286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38287 for as_dir in $PATH
38288 do
38289 IFS=$as_save_IFS
38290 case $as_dir in #(((
38291 '') as_dir=./ ;;
38292 */) ;;
38293 *) as_dir=$as_dir/ ;;
38294 esac
38295 for ac_exec_ext in '' $ac_executable_extensions; do
38296 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38297 ac_cv_path_LEPDelegate="$as_dir$ac_word$ac_exec_ext"
38298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38299 break 2
38300 fi
38301 done
38302 done
38303 IFS=$as_save_IFS
38304
38305 test -z "$ac_cv_path_LEPDelegate" && ac_cv_path_LEPDelegate=""$LEPDelegateDefault""
38306 ;;
38307 esac ;;
38308 esac
38309 fi
38310 LEPDelegate=$ac_cv_path_LEPDelegate
38311 if test -n "$LEPDelegate"; then
38312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEPDelegate" >&5
38313 printf "%s\n" "$LEPDelegate" >&6; }
38314 else
38315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38316 printf "%s\n" "no" >&6; }
38317 fi
38318
38319
38320 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
38321 set dummy "$LPDelegateDefault"; ac_word=$2
38322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38323 printf %s "checking for $ac_word... " >&6; }
38324 if test ${ac_cv_path_LPDelegate+y}
38325 then :
38326 printf %s "(cached) " >&6
38327 else case e in #(
38328 e) case $LPDelegate in
38329 [\\/]* | ?:[\\/]*)
38330 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
38331 ;;
38332 *)
38333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38334 for as_dir in $PATH
38335 do
38336 IFS=$as_save_IFS
38337 case $as_dir in #(((
38338 '') as_dir=./ ;;
38339 */) ;;
38340 *) as_dir=$as_dir/ ;;
38341 esac
38342 for ac_exec_ext in '' $ac_executable_extensions; do
38343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38344 ac_cv_path_LPDelegate="$as_dir$ac_word$ac_exec_ext"
38345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38346 break 2
38347 fi
38348 done
38349 done
38350 IFS=$as_save_IFS
38351
38352 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
38353 ;;
38354 esac ;;
38355 esac
38356 fi
38357 LPDelegate=$ac_cv_path_LPDelegate
38358 if test -n "$LPDelegate"; then
38359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
38360 printf "%s\n" "$LPDelegate" >&6; }
38361 else
38362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38363 printf "%s\n" "no" >&6; }
38364 fi
38365
38366
38367 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
38368 set dummy "$LPRDelegateDefault"; ac_word=$2
38369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38370 printf %s "checking for $ac_word... " >&6; }
38371 if test ${ac_cv_path_LPRDelegate+y}
38372 then :
38373 printf %s "(cached) " >&6
38374 else case e in #(
38375 e) case $LPRDelegate in
38376 [\\/]* | ?:[\\/]*)
38377 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
38378 ;;
38379 *)
38380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38381 for as_dir in $PATH
38382 do
38383 IFS=$as_save_IFS
38384 case $as_dir in #(((
38385 '') as_dir=./ ;;
38386 */) ;;
38387 *) as_dir=$as_dir/ ;;
38388 esac
38389 for ac_exec_ext in '' $ac_executable_extensions; do
38390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38391 ac_cv_path_LPRDelegate="$as_dir$ac_word$ac_exec_ext"
38392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38393 break 2
38394 fi
38395 done
38396 done
38397 IFS=$as_save_IFS
38398
38399 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
38400 ;;
38401 esac ;;
38402 esac
38403 fi
38404 LPRDelegate=$ac_cv_path_LPRDelegate
38405 if test -n "$LPRDelegate"; then
38406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
38407 printf "%s\n" "$LPRDelegate" >&6; }
38408 else
38409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38410 printf "%s\n" "no" >&6; }
38411 fi
38412
38413
38414 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
38415 set dummy "$LaunchDelegateDefault"; ac_word=$2
38416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38417 printf %s "checking for $ac_word... " >&6; }
38418 if test ${ac_cv_path_LaunchDelegate+y}
38419 then :
38420 printf %s "(cached) " >&6
38421 else case e in #(
38422 e) case $LaunchDelegate in
38423 [\\/]* | ?:[\\/]*)
38424 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
38425 ;;
38426 *)
38427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38428 for as_dir in $PATH
38429 do
38430 IFS=$as_save_IFS
38431 case $as_dir in #(((
38432 '') as_dir=./ ;;
38433 */) ;;
38434 *) as_dir=$as_dir/ ;;
38435 esac
38436 for ac_exec_ext in '' $ac_executable_extensions; do
38437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38438 ac_cv_path_LaunchDelegate="$as_dir$ac_word$ac_exec_ext"
38439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38440 break 2
38441 fi
38442 done
38443 done
38444 IFS=$as_save_IFS
38445
38446 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
38447 ;;
38448 esac ;;
38449 esac
38450 fi
38451 LaunchDelegate=$ac_cv_path_LaunchDelegate
38452 if test -n "$LaunchDelegate"; then
38453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
38454 printf "%s\n" "$LaunchDelegate" >&6; }
38455 else
38456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38457 printf "%s\n" "no" >&6; }
38458 fi
38459
38460
38461 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
38462 set dummy "$MogrifyDelegateDefault"; ac_word=$2
38463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38464 printf %s "checking for $ac_word... " >&6; }
38465 if test ${ac_cv_path_MogrifyDelegate+y}
38466 then :
38467 printf %s "(cached) " >&6
38468 else case e in #(
38469 e) case $MogrifyDelegate in
38470 [\\/]* | ?:[\\/]*)
38471 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
38472 ;;
38473 *)
38474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38475 for as_dir in $PATH
38476 do
38477 IFS=$as_save_IFS
38478 case $as_dir in #(((
38479 '') as_dir=./ ;;
38480 */) ;;
38481 *) as_dir=$as_dir/ ;;
38482 esac
38483 for ac_exec_ext in '' $ac_executable_extensions; do
38484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38485 ac_cv_path_MogrifyDelegate="$as_dir$ac_word$ac_exec_ext"
38486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38487 break 2
38488 fi
38489 done
38490 done
38491 IFS=$as_save_IFS
38492
38493 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
38494 ;;
38495 esac ;;
38496 esac
38497 fi
38498 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
38499 if test -n "$MogrifyDelegate"; then
38500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
38501 printf "%s\n" "$MogrifyDelegate" >&6; }
38502 else
38503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38504 printf "%s\n" "no" >&6; }
38505 fi
38506
38507
38508 # Extract the first word of ""$VIDEODecodeDelegateDefault"", so it can be a program name with args.
38509 set dummy "$VIDEODecodeDelegateDefault"; ac_word=$2
38510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38511 printf %s "checking for $ac_word... " >&6; }
38512 if test ${ac_cv_path_VIDEODecodeDelegate+y}
38513 then :
38514 printf %s "(cached) " >&6
38515 else case e in #(
38516 e) case $VIDEODecodeDelegate in
38517 [\\/]* | ?:[\\/]*)
38518 ac_cv_path_VIDEODecodeDelegate="$VIDEODecodeDelegate" # Let the user override the test with a path.
38519 ;;
38520 *)
38521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38522 for as_dir in $PATH
38523 do
38524 IFS=$as_save_IFS
38525 case $as_dir in #(((
38526 '') as_dir=./ ;;
38527 */) ;;
38528 *) as_dir=$as_dir/ ;;
38529 esac
38530 for ac_exec_ext in '' $ac_executable_extensions; do
38531 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38532 ac_cv_path_VIDEODecodeDelegate="$as_dir$ac_word$ac_exec_ext"
38533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38534 break 2
38535 fi
38536 done
38537 done
38538 IFS=$as_save_IFS
38539
38540 test -z "$ac_cv_path_VIDEODecodeDelegate" && ac_cv_path_VIDEODecodeDelegate=""$VIDEODecodeDelegateDefault""
38541 ;;
38542 esac ;;
38543 esac
38544 fi
38545 VIDEODecodeDelegate=$ac_cv_path_VIDEODecodeDelegate
38546 if test -n "$VIDEODecodeDelegate"; then
38547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VIDEODecodeDelegate" >&5
38548 printf "%s\n" "$VIDEODecodeDelegate" >&6; }
38549 else
38550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38551 printf "%s\n" "no" >&6; }
38552 fi
38553
38554
38555 # Extract the first word of ""$VIDEOEncodeDelegateDefault"", so it can be a program name with args.
38556 set dummy "$VIDEOEncodeDelegateDefault"; ac_word=$2
38557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38558 printf %s "checking for $ac_word... " >&6; }
38559 if test ${ac_cv_path_VIDEOEncodeDelegate+y}
38560 then :
38561 printf %s "(cached) " >&6
38562 else case e in #(
38563 e) case $VIDEOEncodeDelegate in
38564 [\\/]* | ?:[\\/]*)
38565 ac_cv_path_VIDEOEncodeDelegate="$VIDEOEncodeDelegate" # Let the user override the test with a path.
38566 ;;
38567 *)
38568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38569 for as_dir in $PATH
38570 do
38571 IFS=$as_save_IFS
38572 case $as_dir in #(((
38573 '') as_dir=./ ;;
38574 */) ;;
38575 *) as_dir=$as_dir/ ;;
38576 esac
38577 for ac_exec_ext in '' $ac_executable_extensions; do
38578 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38579 ac_cv_path_VIDEOEncodeDelegate="$as_dir$ac_word$ac_exec_ext"
38580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38581 break 2
38582 fi
38583 done
38584 done
38585 IFS=$as_save_IFS
38586
38587 test -z "$ac_cv_path_VIDEOEncodeDelegate" && ac_cv_path_VIDEOEncodeDelegate=""$VIDEOEncodeDelegateDefault""
38588 ;;
38589 esac ;;
38590 esac
38591 fi
38592 VIDEOEncodeDelegate=$ac_cv_path_VIDEOEncodeDelegate
38593 if test -n "$VIDEOEncodeDelegate"; then
38594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VIDEOEncodeDelegate" >&5
38595 printf "%s\n" "$VIDEOEncodeDelegate" >&6; }
38596 else
38597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38598 printf "%s\n" "no" >&6; }
38599 fi
38600
38601
38602 # Extract the first word of ""$MKDIRDelegateDefault"", so it can be a program name with args.
38603 set dummy "$MKDIRDelegateDefault"; ac_word=$2
38604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38605 printf %s "checking for $ac_word... " >&6; }
38606 if test ${ac_cv_path_MKDIRDelegate+y}
38607 then :
38608 printf %s "(cached) " >&6
38609 else case e in #(
38610 e) case $MKDIRDelegate in
38611 [\\/]* | ?:[\\/]*)
38612 ac_cv_path_MKDIRDelegate="$MKDIRDelegate" # Let the user override the test with a path.
38613 ;;
38614 *)
38615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38616 for as_dir in $PATH
38617 do
38618 IFS=$as_save_IFS
38619 case $as_dir in #(((
38620 '') as_dir=./ ;;
38621 */) ;;
38622 *) as_dir=$as_dir/ ;;
38623 esac
38624 for ac_exec_ext in '' $ac_executable_extensions; do
38625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38626 ac_cv_path_MKDIRDelegate="$as_dir$ac_word$ac_exec_ext"
38627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38628 break 2
38629 fi
38630 done
38631 done
38632 IFS=$as_save_IFS
38633
38634 test -z "$ac_cv_path_MKDIRDelegate" && ac_cv_path_MKDIRDelegate=""$MKDIRDelegateDefault""
38635 ;;
38636 esac ;;
38637 esac
38638 fi
38639 MKDIRDelegate=$ac_cv_path_MKDIRDelegate
38640 if test -n "$MKDIRDelegate"; then
38641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIRDelegate" >&5
38642 printf "%s\n" "$MKDIRDelegate" >&6; }
38643 else
38644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38645 printf "%s\n" "no" >&6; }
38646 fi
38647
38648
38649 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
38650 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
38651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38652 printf %s "checking for $ac_word... " >&6; }
38653 if test ${ac_cv_path_MrSIDDecodeDelegate+y}
38654 then :
38655 printf %s "(cached) " >&6
38656 else case e in #(
38657 e) case $MrSIDDecodeDelegate in
38658 [\\/]* | ?:[\\/]*)
38659 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
38660 ;;
38661 *)
38662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38663 for as_dir in $PATH
38664 do
38665 IFS=$as_save_IFS
38666 case $as_dir in #(((
38667 '') as_dir=./ ;;
38668 */) ;;
38669 *) as_dir=$as_dir/ ;;
38670 esac
38671 for ac_exec_ext in '' $ac_executable_extensions; do
38672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38673 ac_cv_path_MrSIDDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
38674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38675 break 2
38676 fi
38677 done
38678 done
38679 IFS=$as_save_IFS
38680
38681 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
38682 ;;
38683 esac ;;
38684 esac
38685 fi
38686 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
38687 if test -n "$MrSIDDecodeDelegate"; then
38688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
38689 printf "%s\n" "$MrSIDDecodeDelegate" >&6; }
38690 else
38691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38692 printf "%s\n" "no" >&6; }
38693 fi
38694
38695
38696 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
38697 set dummy "$MVDelegateDefault"; ac_word=$2
38698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38699 printf %s "checking for $ac_word... " >&6; }
38700 if test ${ac_cv_path_MVDelegate+y}
38701 then :
38702 printf %s "(cached) " >&6
38703 else case e in #(
38704 e) case $MVDelegate in
38705 [\\/]* | ?:[\\/]*)
38706 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
38707 ;;
38708 *)
38709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38710 for as_dir in $PATH
38711 do
38712 IFS=$as_save_IFS
38713 case $as_dir in #(((
38714 '') as_dir=./ ;;
38715 */) ;;
38716 *) as_dir=$as_dir/ ;;
38717 esac
38718 for ac_exec_ext in '' $ac_executable_extensions; do
38719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38720 ac_cv_path_MVDelegate="$as_dir$ac_word$ac_exec_ext"
38721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38722 break 2
38723 fi
38724 done
38725 done
38726 IFS=$as_save_IFS
38727
38728 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
38729 ;;
38730 esac ;;
38731 esac
38732 fi
38733 MVDelegate=$ac_cv_path_MVDelegate
38734 if test -n "$MVDelegate"; then
38735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
38736 printf "%s\n" "$MVDelegate" >&6; }
38737 else
38738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38739 printf "%s\n" "no" >&6; }
38740 fi
38741
38742
38743 # Extract the first word of ""$OpenDelegateDefault"", so it can be a program name with args.
38744 set dummy "$OpenDelegateDefault"; ac_word=$2
38745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38746 printf %s "checking for $ac_word... " >&6; }
38747 if test ${ac_cv_path_OpenDelegate+y}
38748 then :
38749 printf %s "(cached) " >&6
38750 else case e in #(
38751 e) case $OpenDelegate in
38752 [\\/]* | ?:[\\/]*)
38753 ac_cv_path_OpenDelegate="$OpenDelegate" # Let the user override the test with a path.
38754 ;;
38755 *)
38756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38757 for as_dir in $PATH
38758 do
38759 IFS=$as_save_IFS
38760 case $as_dir in #(((
38761 '') as_dir=./ ;;
38762 */) ;;
38763 *) as_dir=$as_dir/ ;;
38764 esac
38765 for ac_exec_ext in '' $ac_executable_extensions; do
38766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38767 ac_cv_path_OpenDelegate="$as_dir$ac_word$ac_exec_ext"
38768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38769 break 2
38770 fi
38771 done
38772 done
38773 IFS=$as_save_IFS
38774
38775 test -z "$ac_cv_path_OpenDelegate" && ac_cv_path_OpenDelegate=""$OpenDelegateDefault""
38776 ;;
38777 esac ;;
38778 esac
38779 fi
38780 OpenDelegate=$ac_cv_path_OpenDelegate
38781 if test -n "$OpenDelegate"; then
38782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OpenDelegate" >&5
38783 printf "%s\n" "$OpenDelegate" >&6; }
38784 else
38785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38786 printf "%s\n" "no" >&6; }
38787 fi
38788
38789
38790 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
38791 set dummy "$PCLDelegateDefault"; ac_word=$2
38792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38793 printf %s "checking for $ac_word... " >&6; }
38794 if test ${ac_cv_path_PCLDelegate+y}
38795 then :
38796 printf %s "(cached) " >&6
38797 else case e in #(
38798 e) case $PCLDelegate in
38799 [\\/]* | ?:[\\/]*)
38800 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
38801 ;;
38802 *)
38803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38804 for as_dir in $PATH
38805 do
38806 IFS=$as_save_IFS
38807 case $as_dir in #(((
38808 '') as_dir=./ ;;
38809 */) ;;
38810 *) as_dir=$as_dir/ ;;
38811 esac
38812 for ac_exec_ext in '' $ac_executable_extensions; do
38813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38814 ac_cv_path_PCLDelegate="$as_dir$ac_word$ac_exec_ext"
38815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38816 break 2
38817 fi
38818 done
38819 done
38820 IFS=$as_save_IFS
38821
38822 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
38823 ;;
38824 esac ;;
38825 esac
38826 fi
38827 PCLDelegate=$ac_cv_path_PCLDelegate
38828 if test -n "$PCLDelegate"; then
38829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
38830 printf "%s\n" "$PCLDelegate" >&6; }
38831 else
38832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38833 printf "%s\n" "no" >&6; }
38834 fi
38835
38836
38837 for ac_prog in gsx gsc "$PSDelegateDefault"
38838 do
38839 # Extract the first word of "$ac_prog", so it can be a program name with args.
38840 set dummy $ac_prog; ac_word=$2
38841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38842 printf %s "checking for $ac_word... " >&6; }
38843 if test ${ac_cv_path_PSDelegate+y}
38844 then :
38845 printf %s "(cached) " >&6
38846 else case e in #(
38847 e) case $PSDelegate in
38848 [\\/]* | ?:[\\/]*)
38849 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
38850 ;;
38851 *)
38852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38853 for as_dir in $PATH
38854 do
38855 IFS=$as_save_IFS
38856 case $as_dir in #(((
38857 '') as_dir=./ ;;
38858 */) ;;
38859 *) as_dir=$as_dir/ ;;
38860 esac
38861 for ac_exec_ext in '' $ac_executable_extensions; do
38862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38863 ac_cv_path_PSDelegate="$as_dir$ac_word$ac_exec_ext"
38864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38865 break 2
38866 fi
38867 done
38868 done
38869 IFS=$as_save_IFS
38870
38871 ;;
38872 esac ;;
38873 esac
38874 fi
38875 PSDelegate=$ac_cv_path_PSDelegate
38876 if test -n "$PSDelegate"; then
38877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
38878 printf "%s\n" "$PSDelegate" >&6; }
38879 else
38880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38881 printf "%s\n" "no" >&6; }
38882 fi
38883
38884
38885 test -n "$PSDelegate" && break
38886 done
38887 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
38888
38889 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
38890 set dummy "$RMDelegateDefault"; ac_word=$2
38891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38892 printf %s "checking for $ac_word... " >&6; }
38893 if test ${ac_cv_path_RMDelegate+y}
38894 then :
38895 printf %s "(cached) " >&6
38896 else case e in #(
38897 e) case $RMDelegate in
38898 [\\/]* | ?:[\\/]*)
38899 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
38900 ;;
38901 *)
38902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38903 for as_dir in $PATH
38904 do
38905 IFS=$as_save_IFS
38906 case $as_dir in #(((
38907 '') as_dir=./ ;;
38908 */) ;;
38909 *) as_dir=$as_dir/ ;;
38910 esac
38911 for ac_exec_ext in '' $ac_executable_extensions; do
38912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38913 ac_cv_path_RMDelegate="$as_dir$ac_word$ac_exec_ext"
38914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38915 break 2
38916 fi
38917 done
38918 done
38919 IFS=$as_save_IFS
38920
38921 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
38922 ;;
38923 esac ;;
38924 esac
38925 fi
38926 RMDelegate=$ac_cv_path_RMDelegate
38927 if test -n "$RMDelegate"; then
38928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
38929 printf "%s\n" "$RMDelegate" >&6; }
38930 else
38931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38932 printf "%s\n" "no" >&6; }
38933 fi
38934
38935
38936 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
38937 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
38938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38939 printf %s "checking for $ac_word... " >&6; }
38940 if test ${ac_cv_path_RSVGDecodeDelegate+y}
38941 then :
38942 printf %s "(cached) " >&6
38943 else case e in #(
38944 e) case $RSVGDecodeDelegate in
38945 [\\/]* | ?:[\\/]*)
38946 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
38947 ;;
38948 *)
38949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38950 for as_dir in $PATH
38951 do
38952 IFS=$as_save_IFS
38953 case $as_dir in #(((
38954 '') as_dir=./ ;;
38955 */) ;;
38956 *) as_dir=$as_dir/ ;;
38957 esac
38958 for ac_exec_ext in '' $ac_executable_extensions; do
38959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
38960 ac_cv_path_RSVGDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
38961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
38962 break 2
38963 fi
38964 done
38965 done
38966 IFS=$as_save_IFS
38967
38968 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
38969 ;;
38970 esac ;;
38971 esac
38972 fi
38973 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
38974 if test -n "$RSVGDecodeDelegate"; then
38975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
38976 printf "%s\n" "$RSVGDecodeDelegate" >&6; }
38977 else
38978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38979 printf "%s\n" "no" >&6; }
38980 fi
38981
38982
38983 # Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
38984 set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
38985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38986 printf %s "checking for $ac_word... " >&6; }
38987 if test ${ac_cv_path_SVGDecodeDelegate+y}
38988 then :
38989 printf %s "(cached) " >&6
38990 else case e in #(
38991 e) case $SVGDecodeDelegate in
38992 [\\/]* | ?:[\\/]*)
38993 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
38994 ;;
38995 *)
38996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38997 for as_dir in $PATH
38998 do
38999 IFS=$as_save_IFS
39000 case $as_dir in #(((
39001 '') as_dir=./ ;;
39002 */) ;;
39003 *) as_dir=$as_dir/ ;;
39004 esac
39005 for ac_exec_ext in '' $ac_executable_extensions; do
39006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39007 ac_cv_path_SVGDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
39008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39009 break 2
39010 fi
39011 done
39012 done
39013 IFS=$as_save_IFS
39014
39015 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
39016 ;;
39017 esac ;;
39018 esac
39019 fi
39020 SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
39021 if test -n "$SVGDecodeDelegate"; then
39022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
39023 printf "%s\n" "$SVGDecodeDelegate" >&6; }
39024 else
39025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39026 printf "%s\n" "no" >&6; }
39027 fi
39028
39029
39030 # Extract the first word of ""$TextEncodeDelegateDefault"", so it can be a program name with args.
39031 set dummy "$TextEncodeDelegateDefault"; ac_word=$2
39032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39033 printf %s "checking for $ac_word... " >&6; }
39034 if test ${ac_cv_path_TextEncodeDelegate+y}
39035 then :
39036 printf %s "(cached) " >&6
39037 else case e in #(
39038 e) case $TextEncodeDelegate in
39039 [\\/]* | ?:[\\/]*)
39040 ac_cv_path_TextEncodeDelegate="$TextEncodeDelegate" # Let the user override the test with a path.
39041 ;;
39042 *)
39043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39044 for as_dir in $PATH
39045 do
39046 IFS=$as_save_IFS
39047 case $as_dir in #(((
39048 '') as_dir=./ ;;
39049 */) ;;
39050 *) as_dir=$as_dir/ ;;
39051 esac
39052 for ac_exec_ext in '' $ac_executable_extensions; do
39053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39054 ac_cv_path_TextEncodeDelegate="$as_dir$ac_word$ac_exec_ext"
39055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39056 break 2
39057 fi
39058 done
39059 done
39060 IFS=$as_save_IFS
39061
39062 test -z "$ac_cv_path_TextEncodeDelegate" && ac_cv_path_TextEncodeDelegate=""$TextEncodeDelegateDefault""
39063 ;;
39064 esac ;;
39065 esac
39066 fi
39067 TextEncodeDelegate=$ac_cv_path_TextEncodeDelegate
39068 if test -n "$TextEncodeDelegate"; then
39069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TextEncodeDelegate" >&5
39070 printf "%s\n" "$TextEncodeDelegate" >&6; }
39071 else
39072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39073 printf "%s\n" "no" >&6; }
39074 fi
39075
39076
39077 # Extract the first word of ""$TraceEncodeDelegateDefault"", so it can be a program name with args.
39078 set dummy "$TraceEncodeDelegateDefault"; ac_word=$2
39079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39080 printf %s "checking for $ac_word... " >&6; }
39081 if test ${ac_cv_path_TraceEncodeDelegate+y}
39082 then :
39083 printf %s "(cached) " >&6
39084 else case e in #(
39085 e) case $TraceEncodeDelegate in
39086 [\\/]* | ?:[\\/]*)
39087 ac_cv_path_TraceEncodeDelegate="$TraceEncodeDelegate" # Let the user override the test with a path.
39088 ;;
39089 *)
39090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39091 for as_dir in $PATH
39092 do
39093 IFS=$as_save_IFS
39094 case $as_dir in #(((
39095 '') as_dir=./ ;;
39096 */) ;;
39097 *) as_dir=$as_dir/ ;;
39098 esac
39099 for ac_exec_ext in '' $ac_executable_extensions; do
39100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39101 ac_cv_path_TraceEncodeDelegate="$as_dir$ac_word$ac_exec_ext"
39102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39103 break 2
39104 fi
39105 done
39106 done
39107 IFS=$as_save_IFS
39108
39109 test -z "$ac_cv_path_TraceEncodeDelegate" && ac_cv_path_TraceEncodeDelegate=""$TraceEncodeDelegateDefault""
39110 ;;
39111 esac ;;
39112 esac
39113 fi
39114 TraceEncodeDelegate=$ac_cv_path_TraceEncodeDelegate
39115 if test -n "$TraceEncodeDelegate"; then
39116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TraceEncodeDelegate" >&5
39117 printf "%s\n" "$TraceEncodeDelegate" >&6; }
39118 else
39119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39120 printf "%s\n" "no" >&6; }
39121 fi
39122
39123
39124 # Extract the first word of ""$Fig2devDelegateDefault"", so it can be a program name with args.
39125 set dummy "$Fig2devDelegateDefault"; ac_word=$2
39126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39127 printf %s "checking for $ac_word... " >&6; }
39128 if test ${ac_cv_path_Fig2devDelegate+y}
39129 then :
39130 printf %s "(cached) " >&6
39131 else case e in #(
39132 e) case $Fig2devDelegate in
39133 [\\/]* | ?:[\\/]*)
39134 ac_cv_path_Fig2devDelegate="$Fig2devDelegate" # Let the user override the test with a path.
39135 ;;
39136 *)
39137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39138 for as_dir in $PATH
39139 do
39140 IFS=$as_save_IFS
39141 case $as_dir in #(((
39142 '') as_dir=./ ;;
39143 */) ;;
39144 *) as_dir=$as_dir/ ;;
39145 esac
39146 for ac_exec_ext in '' $ac_executable_extensions; do
39147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39148 ac_cv_path_Fig2devDelegate="$as_dir$ac_word$ac_exec_ext"
39149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39150 break 2
39151 fi
39152 done
39153 done
39154 IFS=$as_save_IFS
39155
39156 test -z "$ac_cv_path_Fig2devDelegate" && ac_cv_path_Fig2devDelegate=""$Fig2devDelegateDefault""
39157 ;;
39158 esac ;;
39159 esac
39160 fi
39161 Fig2devDelegate=$ac_cv_path_Fig2devDelegate
39162 if test -n "$Fig2devDelegate"; then
39163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $Fig2devDelegate" >&5
39164 printf "%s\n" "$Fig2devDelegate" >&6; }
39165 else
39166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39167 printf "%s\n" "no" >&6; }
39168 fi
39169
39170
39171 # Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
39172 set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
39173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39174 printf %s "checking for $ac_word... " >&6; }
39175 if test ${ac_cv_path_WebPDecodeDelegate+y}
39176 then :
39177 printf %s "(cached) " >&6
39178 else case e in #(
39179 e) case $WebPDecodeDelegate in
39180 [\\/]* | ?:[\\/]*)
39181 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
39182 ;;
39183 *)
39184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39185 for as_dir in $PATH
39186 do
39187 IFS=$as_save_IFS
39188 case $as_dir in #(((
39189 '') as_dir=./ ;;
39190 */) ;;
39191 *) as_dir=$as_dir/ ;;
39192 esac
39193 for ac_exec_ext in '' $ac_executable_extensions; do
39194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39195 ac_cv_path_WebPDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
39196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39197 break 2
39198 fi
39199 done
39200 done
39201 IFS=$as_save_IFS
39202
39203 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
39204 ;;
39205 esac ;;
39206 esac
39207 fi
39208 WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
39209 if test -n "$WebPDecodeDelegate"; then
39210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
39211 printf "%s\n" "$WebPDecodeDelegate" >&6; }
39212 else
39213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39214 printf "%s\n" "no" >&6; }
39215 fi
39216
39217
39218 # Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
39219 set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
39220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39221 printf %s "checking for $ac_word... " >&6; }
39222 if test ${ac_cv_path_WebPEncodeDelegate+y}
39223 then :
39224 printf %s "(cached) " >&6
39225 else case e in #(
39226 e) case $WebPEncodeDelegate in
39227 [\\/]* | ?:[\\/]*)
39228 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
39229 ;;
39230 *)
39231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39232 for as_dir in $PATH
39233 do
39234 IFS=$as_save_IFS
39235 case $as_dir in #(((
39236 '') as_dir=./ ;;
39237 */) ;;
39238 *) as_dir=$as_dir/ ;;
39239 esac
39240 for ac_exec_ext in '' $ac_executable_extensions; do
39241 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39242 ac_cv_path_WebPEncodeDelegate="$as_dir$ac_word$ac_exec_ext"
39243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39244 break 2
39245 fi
39246 done
39247 done
39248 IFS=$as_save_IFS
39249
39250 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
39251 ;;
39252 esac ;;
39253 esac
39254 fi
39255 WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
39256 if test -n "$WebPEncodeDelegate"; then
39257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
39258 printf "%s\n" "$WebPEncodeDelegate" >&6; }
39259 else
39260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39261 printf "%s\n" "no" >&6; }
39262 fi
39263
39264
39265 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
39266 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
39267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39268 printf %s "checking for $ac_word... " >&6; }
39269 if test ${ac_cv_path_WWWDecodeDelegate+y}
39270 then :
39271 printf %s "(cached) " >&6
39272 else case e in #(
39273 e) case $WWWDecodeDelegate in
39274 [\\/]* | ?:[\\/]*)
39275 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
39276 ;;
39277 *)
39278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39279 for as_dir in $PATH
39280 do
39281 IFS=$as_save_IFS
39282 case $as_dir in #(((
39283 '') as_dir=./ ;;
39284 */) ;;
39285 *) as_dir=$as_dir/ ;;
39286 esac
39287 for ac_exec_ext in '' $ac_executable_extensions; do
39288 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39289 ac_cv_path_WWWDecodeDelegate="$as_dir$ac_word$ac_exec_ext"
39290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39291 break 2
39292 fi
39293 done
39294 done
39295 IFS=$as_save_IFS
39296
39297 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDelegateDefault""
39298 ;;
39299 esac ;;
39300 esac
39301 fi
39302 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
39303 if test -n "$WWWDecodeDelegate"; then
39304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
39305 printf "%s\n" "$WWWDecodeDelegate" >&6; }
39306 else
39307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39308 printf "%s\n" "no" >&6; }
39309 fi
39310
39311
39312 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
39313 set dummy "$XPSDelegateDefault"; ac_word=$2
39314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39315 printf %s "checking for $ac_word... " >&6; }
39316 if test ${ac_cv_path_XPSDelegate+y}
39317 then :
39318 printf %s "(cached) " >&6
39319 else case e in #(
39320 e) case $XPSDelegate in
39321 [\\/]* | ?:[\\/]*)
39322 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
39323 ;;
39324 *)
39325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39326 for as_dir in $PATH
39327 do
39328 IFS=$as_save_IFS
39329 case $as_dir in #(((
39330 '') as_dir=./ ;;
39331 */) ;;
39332 *) as_dir=$as_dir/ ;;
39333 esac
39334 for ac_exec_ext in '' $ac_executable_extensions; do
39335 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39336 ac_cv_path_XPSDelegate="$as_dir$ac_word$ac_exec_ext"
39337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39338 break 2
39339 fi
39340 done
39341 done
39342 IFS=$as_save_IFS
39343
39344 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
39345 ;;
39346 esac ;;
39347 esac
39348 fi
39349 XPSDelegate=$ac_cv_path_XPSDelegate
39350 if test -n "$XPSDelegate"; then
39351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
39352 printf "%s\n" "$XPSDelegate" >&6; }
39353 else
39354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39355 printf "%s\n" "no" >&6; }
39356 fi
39357
39358
39359
39360 # Prefer lpr to lp; lp needs options tacked on.
39361 if test "$LPRDelegate" != no; then
39362 PrintDelegate="$LPRDelegate"
39363 else
39364 PrintDelegate="$LPDelegate -c -s"
39365 fi
39366
39367
39368 # Installed ImageMagick utility paths
39369 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
39370 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
39371 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
39372
39373 # Set delegate booleans
39374 have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
39375 have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
39376 have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
39377 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
39378 have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
39379 have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
39380 have_video='no'; if test "$VIDEODecodeDelegate" != "$VIDEODecodeDelegateDefault" ; then have_video='yes'; fi
39381 have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
39382
39383 #
39384 # Test for font directories
39385 #
39386 type_include_files=''
39387
39388 # Apple fonts.
39389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
39390 printf %s "checking for Apple fonts directory... " >&6; }
39391 apple_font_dir=''
39392 if test "${with_apple_font_dir}" != 'default'; then
39393 apple_font_dir="${with_apple_font_dir}/"
39394 else
39395 for font_dir in '/Library/Fonts/'; do
39396 if test -f "${font_dir}Arial.ttf"; then
39397 apple_font_dir="${font_dir}"
39398 break 1
39399 fi
39400 done
39401 fi
39402 if test "${apple_font_dir}x" != 'x'; then
39403 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
39404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
39405 printf "%s\n" "$apple_font_dir" >&6; }
39406 else
39407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
39408 printf "%s\n" "not found!" >&6; };
39409 fi
39410
39411
39412 # Dejavu fonts.
39413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
39414 printf %s "checking for Dejavu fonts directory... " >&6; }
39415 dejavu_font_dir=''
39416 if test "${with_dejavu_font_dir}" != 'default'; then
39417 dejavu_font_dir="${with_dejavu_font_dir}/"
39418 else
39419 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
39420 if test -f "${font_dir}DejaVuSerif.ttf"; then
39421 dejavu_font_dir="${font_dir}"
39422 break 1
39423 fi
39424 done
39425 fi
39426 if test "${dejavu_font_dir}x" != 'x'; then
39427 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
39428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
39429 printf "%s\n" "$dejavu_font_dir" >&6; }
39430 else
39431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
39432 printf "%s\n" "not found!" >&6; };
39433 fi
39434
39435
39436 # Ghostscript
39437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
39438 printf %s "checking for Ghostscript fonts directory... " >&6; }
39439 ghostscript_font_dir=''
39440 if test "${with_gs_font_dir}" != 'default'; then
39441 ghostscript_font_dir="${with_gs_font_dir}/"
39442 else
39443 if test "${native_win32_build}" = 'yes'; then
39444 # Native Windows Build
39445 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
39446 if test -f "${font_dir}a010013l.pfb"; then
39447 ghostscript_font_dir="$font_dir"
39448 break 1
39449 fi
39450 done
39451 if test "${PSDelegate}" != 'gswin32c'; then
39452 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
39453 fi
39454 else
39455 # Linux / macOS / Unix Build
39456 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
39457 if test -f "${font_dir}a010013l.pfb"; then
39458 ghostscript_font_dir="${font_dir}"
39459 break 1
39460 fi
39461 done
39462 if test "${ghostscript_font_dir}x" = 'x'; then
39463 if test "$PSDelegate" != 'gs'; then
39464 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
39465 fi
39466 fi
39467 fi
39468 fi
39469 if test "${ghostscript_font_dir}x" != 'x'; then
39470 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
39471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
39472 printf "%s\n" "$ghostscript_font_dir" >&6; }
39473 else
39474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
39475 printf "%s\n" "not found!" >&6; };
39476 fi
39477
39478 case "${build_os}" in
39479 mingw* )
39480 PSDelegate=`$WinPathScript "$PSDelegate" 1`
39481 ;;
39482 esac
39483
39484 # URW-base35 OTF fonts.
39485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for URW-base35 OTF fonts directory" >&5
39486 printf %s "checking for URW-base35 OTF fonts directory... " >&6; }
39487 urw_base35_font_dir=''
39488 if test "${with_urw_base35_font_dir}" != 'default'; then
39489 urw_base35_font_dir="${with_urw_base35_font_dir}/"
39490 else
39491 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
39492 if test -f "${font_dir}URWGothic-Book.otf"; then
39493 urw_base35_font_dir="${font_dir}"
39494 break 1
39495 fi
39496 done
39497 fi
39498 if test "${urw_base35_font_dir}x" != 'x'; then
39499 type_include_files="${type_include_files} "'<include file="type-urw-base35.xml" />'
39500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $urw_base35_font_dir" >&5
39501 printf "%s\n" "$urw_base35_font_dir" >&6; }
39502 else
39503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
39504 printf "%s\n" "not found!" >&6; };
39505 fi
39506
39507
39508 # URW-base35 Type1 fonts.
39509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for URW-base35 Type1 fonts directory" >&5
39510 printf %s "checking for URW-base35 Type1 fonts directory... " >&6; }
39511 urw_base35_type1_font_dir=''
39512 if test "${with_urw_base35_type1_font_dir}" != 'default'; then
39513 urw_base35_type1_font_dir="${with_urw_base35_type1_font_dir}/"
39514 else
39515 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
39516 if test -f "${font_dir}URWGothic-Book.t1"; then
39517 urw_base35_type1_font_dir="${font_dir}"
39518 break 1
39519 fi
39520 done
39521 fi
39522 if test "${urw_base35_type1_font_dir}x" != 'x'; then
39523 type_include_files="${type_include_files} "'<include file="type-urw-base35-type1.xml" />'
39524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $urw_base35_type1_font_dir" >&5
39525 printf "%s\n" "$urw_base35_type1_font_dir" >&6; }
39526 else
39527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
39528 printf "%s\n" "not found!" >&6; };
39529 fi
39530
39531
39532 # Windows fonts.
39533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
39534 printf %s "checking for Windows fonts directory... " >&6; }
39535 windows_font_dir=''
39536 if test "${with_windows_font_dir}" != 'default'; then
39537 windows_font_dir="${with_windows_font_dir}/"
39538 else
39539 for font_dir in '/usr/share/wine/fonts/' '/usr/share/fonts/msttcore/' '/usr/share/fonts/microsoft/' '/usr/share/fonts/truetype/msttcorefonts/'; do
39540 if test -f "${font_dir}arial.ttf"; then
39541 windows_font_dir="${font_dir}"
39542 break 1
39543 fi
39544 done
39545 fi
39546 if test "${windows_font_dir}x" != 'x'; then
39547 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
39548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
39549 printf "%s\n" "$windows_font_dir" >&6; }
39550 else
39551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
39552 printf "%s\n" "not found!" >&6; };
39553 fi
39554
39555
39556
39557
39558 # Permit enciphering and deciphering image pixels.
39559 # Check whether --enable-cipher was given.
39560 if test ${enable_cipher+y}
39561 then :
39562 enableval=$enable_cipher; enable_cipher=$enableval
39563 else case e in #(
39564 e) enable_cipher='yes' ;;
39565 esac
39566 fi
39567
39568
39569 if test "$enable_cipher" = 'yes'; then
39570
39571 printf "%s\n" "#define CIPHER_SUPPORT 1" >>confdefs.h
39572
39573 MAGICK_FEATURES="Cipher $MAGICK_FEATURES"
39574 fi
39575
39576 #
39577 # Check for extended channel masks.
39578 #
39579 # Check whether --enable-64bit_channel_masks was given.
39580 if test ${enable_64bit_channel_masks+y}
39581 then :
39582 enableval=$enable_64bit_channel_masks; enable_64bit_channel_masks=$enableval
39583 else case e in #(
39584 e) enable_64bit_channel_masks='no' ;;
39585 esac
39586 fi
39587
39588
39589 # Check whether --enable-force_cpp was given.
39590 if test ${enable_force_cpp+y}
39591 then :
39592 enableval=$enable_force_cpp; enable_force_cpp=$enableval
39593 else case e in #(
39594 e) enable_force_cpp='no' ;;
39595 esac
39596 fi
39597
39598
39599 magick_channel_mask_depth='32';
39600 if test "$enable_64bit_channel_masks" = 'yes'; then
39601 if test "$enable_force_cpp" = 'yes'; then
39602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -x c++ option" >&5
39603 printf %s "checking whether the compiler supports -x c++ option... " >&6; }
39604 old_CC="$CC"
39605 old_CFLAGS="$CFLAGS"
39606 cpp_CC=''
39607 for option in $CC; do
39608 case "$option" in
39609 -std=c*|-std=gnu*)
39610 ;;
39611 *)
39612 cpp_CC="$cpp_CC $option"
39613 ;;
39614 esac
39615 done
39616 CC="$cpp_CC"
39617 CFLAGS="$CFLAGS -x c++"
39618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39619 /* end confdefs.h. */
39620
39621
39622 enum Days : int { Monday = 1 };
39623
39624 int
39625 main (void)
39626 {
39627
39628
39629 ;
39630 return 0;
39631 }
39632
39633 _ACEOF
39634 if ac_fn_c_try_compile "$LINENO"
39635 then :
39636
39637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39638 printf "%s\n" "yes" >&6; }
39639 magick_channel_mask_depth='64';
39640
39641 else case e in #(
39642 e)
39643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39644 printf "%s\n" "no" >&6; }
39645 ;;
39646 esac
39647 fi
39648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39649 if test "$magick_channel_mask_depth" != '64'; then
39650 CC="$old_CC"
39651 CFLAGS="$old_CFLAGS"
39652 fi
39653 else
39654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports enum type modifiers" >&5
39655 printf %s "checking whether the compiler supports enum type modifiers... " >&6; }
39656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39657 /* end confdefs.h. */
39658
39659
39660 enum Days : int { Monday = 1 };
39661
39662 int
39663 main (void)
39664 {
39665
39666
39667 ;
39668 return 0;
39669 }
39670
39671 _ACEOF
39672 if ac_fn_c_try_compile "$LINENO"
39673 then :
39674
39675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39676 printf "%s\n" "yes" >&6; }
39677 magick_channel_mask_depth='64';
39678
39679 else case e in #(
39680 e)
39681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39682 printf "%s\n" "no" >&6; }
39683 ;;
39684 esac
39685 fi
39686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39687 fi
39688 fi
39689 if test "$magick_channel_mask_depth" = '64'; then
39690 MAGICK_FEATURES="Channel-masks(64-bit) $MAGICK_FEATURES"
39691 else
39692 MAGICK_FEATURES="Channel-masks(32-bit) $MAGICK_FEATURES"
39693 fi
39694
39695 printf "%s\n" "#define CHANNEL_MASK_DEPTH $magick_channel_mask_depth" >>confdefs.h
39696
39697 CHANNEL_MASK_DEPTH=$magick_channel_mask_depth
39698 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_CHANNEL_MASK_DEPTH=$magick_channel_mask_depth"
39699 CFLAGS="$CFLAGS -DMAGICKCORE_CHANNEL_MASK_DEPTH=$magick_channel_mask_depth"
39700 CPPFLAGS="$CPPFLAGS -DMAGICKCORE_CHANNEL_MASK_DEPTH=$magick_channel_mask_depth"
39701
39702 #
39703 # Handle case where user doesn't want frozen paths
39704 #
39705 if test "$with_frozenpaths" != 'yes'; then
39706 # Re-set delegate definitions to default (no paths)
39707 BPGDecodeDelegate="$BPGDecodeDelegateDefault"
39708 BPGEncodeDelegate="$BPGEncodeDelegateDefault"
39709 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
39710 BrowseDelegate="$BrowseDelegateDefault"
39711 ClipboardDelegate="$ClipboardDelegateDefault"
39712 ConvertDelegate="$ConvertDelegateDefault"
39713 DisplayDelegate="$DisplayDelegateDefault"
39714 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
39715 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
39716 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
39717 EditorDelegate="$EditorDelegateDefault"
39718 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
39719 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
39720 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
39721 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
39722 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
39723 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
39724 JXREncodeDelegate="$JXREncodeDelegateDefault"
39725 LEPDelegate="$LEPDelegateDefault"
39726 LPDelegate="$LPDelegateDefault"
39727 LaunchDelegate="$LaunchDelegateDefault"
39728 MogrifyDelegate="$MogrifyDelegateDefault"
39729 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
39730 OpenDelegate="$OpenDelegateDefault"
39731 PCLDelegate="$PCLDelegateDefault"
39732 PSDelegate="$PSDelegateDefault"
39733 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
39734 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
39735 ShowImageDelegate="$ShowImageDelegateDefault"
39736 TextEncodeDelegate="$TextEncodeDelegateDefault"
39737 TraceEncodeDelegate="$TraceEncodeDelegateDefault"
39738 Fig2devDelegate="$Fig2devDelegateDefault"
39739 VIDEODecodeDelegate="$VIDEODecodeDelegateDefault"
39740 VIDEOEncodeDelegate="$VIDEOEncodeDelegateDefault"
39741 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
39742 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
39743 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
39744 XPSDelegate="$XPSDelegateDefault"
39745 fi
39746
39747 # Delegate substitutions
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
39782 #
39783 # RPM support.
39784 #
39785 RPM=''
39786 for ac_prog in gnutar gtar tar
39787 do
39788 # Extract the first word of "$ac_prog", so it can be a program name with args.
39789 set dummy $ac_prog; ac_word=$2
39790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39791 printf %s "checking for $ac_word... " >&6; }
39792 if test ${ac_cv_prog_TAR+y}
39793 then :
39794 printf %s "(cached) " >&6
39795 else case e in #(
39796 e) if test -n "$TAR"; then
39797 ac_cv_prog_TAR="$TAR" # Let the user override the test.
39798 else
39799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39800 for as_dir in $PATH
39801 do
39802 IFS=$as_save_IFS
39803 case $as_dir in #(((
39804 '') as_dir=./ ;;
39805 */) ;;
39806 *) as_dir=$as_dir/ ;;
39807 esac
39808 for ac_exec_ext in '' $ac_executable_extensions; do
39809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39810 ac_cv_prog_TAR="$ac_prog"
39811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39812 break 2
39813 fi
39814 done
39815 done
39816 IFS=$as_save_IFS
39817
39818 fi ;;
39819 esac
39820 fi
39821 TAR=$ac_cv_prog_TAR
39822 if test -n "$TAR"; then
39823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
39824 printf "%s\n" "$TAR" >&6; }
39825 else
39826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39827 printf "%s\n" "no" >&6; }
39828 fi
39829
39830
39831 test -n "$TAR" && break
39832 done
39833
39834 for ac_prog in perl
39835 do
39836 # Extract the first word of "$ac_prog", so it can be a program name with args.
39837 set dummy $ac_prog; ac_word=$2
39838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39839 printf %s "checking for $ac_word... " >&6; }
39840 if test ${ac_cv_prog_PERL+y}
39841 then :
39842 printf %s "(cached) " >&6
39843 else case e in #(
39844 e) if test -n "$PERL"; then
39845 ac_cv_prog_PERL="$PERL" # Let the user override the test.
39846 else
39847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39848 for as_dir in $PATH
39849 do
39850 IFS=$as_save_IFS
39851 case $as_dir in #(((
39852 '') as_dir=./ ;;
39853 */) ;;
39854 *) as_dir=$as_dir/ ;;
39855 esac
39856 for ac_exec_ext in '' $ac_executable_extensions; do
39857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39858 ac_cv_prog_PERL="$ac_prog"
39859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39860 break 2
39861 fi
39862 done
39863 done
39864 IFS=$as_save_IFS
39865
39866 fi ;;
39867 esac
39868 fi
39869 PERL=$ac_cv_prog_PERL
39870 if test -n "$PERL"; then
39871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
39872 printf "%s\n" "$PERL" >&6; }
39873 else
39874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39875 printf "%s\n" "no" >&6; }
39876 fi
39877
39878
39879 test -n "$PERL" && break
39880 done
39881
39882 for ac_prog in rpmbuild rpm
39883 do
39884 # Extract the first word of "$ac_prog", so it can be a program name with args.
39885 set dummy $ac_prog; ac_word=$2
39886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39887 printf %s "checking for $ac_word... " >&6; }
39888 if test ${ac_cv_prog_RPM+y}
39889 then :
39890 printf %s "(cached) " >&6
39891 else case e in #(
39892 e) if test -n "$RPM"; then
39893 ac_cv_prog_RPM="$RPM" # Let the user override the test.
39894 else
39895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39896 for as_dir in $PATH
39897 do
39898 IFS=$as_save_IFS
39899 case $as_dir in #(((
39900 '') as_dir=./ ;;
39901 */) ;;
39902 *) as_dir=$as_dir/ ;;
39903 esac
39904 for ac_exec_ext in '' $ac_executable_extensions; do
39905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39906 ac_cv_prog_RPM="$ac_prog"
39907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39908 break 2
39909 fi
39910 done
39911 done
39912 IFS=$as_save_IFS
39913
39914 fi ;;
39915 esac
39916 fi
39917 RPM=$ac_cv_prog_RPM
39918 if test -n "$RPM"; then
39919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
39920 printf "%s\n" "$RPM" >&6; }
39921 else
39922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39923 printf "%s\n" "no" >&6; }
39924 fi
39925
39926
39927 test -n "$RPM" && break
39928 done
39929
39930
39931 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
39932
39933
39934 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
39935
39936
39937 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
39938
39939
39940 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
39941
39942
39943 if test "x$RPM" != "x"; then
39944 RPM_DELEGATE_TRUE=
39945 RPM_DELEGATE_FALSE='#'
39946 else
39947 RPM_DELEGATE_TRUE='#'
39948 RPM_DELEGATE_FALSE=
39949 fi
39950
39951
39952 #
39953 # 7ZIP support (http://p7zip.sourceforge.net/)
39954 #
39955 P7ZIP=''
39956 for ac_prog in 7za
39957 do
39958 # Extract the first word of "$ac_prog", so it can be a program name with args.
39959 set dummy $ac_prog; ac_word=$2
39960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39961 printf %s "checking for $ac_word... " >&6; }
39962 if test ${ac_cv_prog_P7ZIP+y}
39963 then :
39964 printf %s "(cached) " >&6
39965 else case e in #(
39966 e) if test -n "$P7ZIP"; then
39967 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
39968 else
39969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39970 for as_dir in $PATH
39971 do
39972 IFS=$as_save_IFS
39973 case $as_dir in #(((
39974 '') as_dir=./ ;;
39975 */) ;;
39976 *) as_dir=$as_dir/ ;;
39977 esac
39978 for ac_exec_ext in '' $ac_executable_extensions; do
39979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
39980 ac_cv_prog_P7ZIP="$ac_prog"
39981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39982 break 2
39983 fi
39984 done
39985 done
39986 IFS=$as_save_IFS
39987
39988 fi ;;
39989 esac
39990 fi
39991 P7ZIP=$ac_cv_prog_P7ZIP
39992 if test -n "$P7ZIP"; then
39993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
39994 printf "%s\n" "$P7ZIP" >&6; }
39995 else
39996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39997 printf "%s\n" "no" >&6; }
39998 fi
39999
40000
40001 test -n "$P7ZIP" && break
40002 done
40003
40004
40005 if test "x$P7ZIP" != "x"; then
40006 P7ZIP_DELEGATE_TRUE=
40007 P7ZIP_DELEGATE_FALSE='#'
40008 else
40009 P7ZIP_DELEGATE_TRUE='#'
40010 P7ZIP_DELEGATE_FALSE=
40011 fi
40012
40013
40014 #
40015 # ZIP support (http://www.info-zip.org/Zip.html)
40016 #
40017 ZIP=''
40018 for ac_prog in zip
40019 do
40020 # Extract the first word of "$ac_prog", so it can be a program name with args.
40021 set dummy $ac_prog; ac_word=$2
40022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40023 printf %s "checking for $ac_word... " >&6; }
40024 if test ${ac_cv_prog_ZIP+y}
40025 then :
40026 printf %s "(cached) " >&6
40027 else case e in #(
40028 e) if test -n "$ZIP"; then
40029 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
40030 else
40031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40032 for as_dir in $PATH
40033 do
40034 IFS=$as_save_IFS
40035 case $as_dir in #(((
40036 '') as_dir=./ ;;
40037 */) ;;
40038 *) as_dir=$as_dir/ ;;
40039 esac
40040 for ac_exec_ext in '' $ac_executable_extensions; do
40041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
40042 ac_cv_prog_ZIP="$ac_prog"
40043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
40044 break 2
40045 fi
40046 done
40047 done
40048 IFS=$as_save_IFS
40049
40050 fi ;;
40051 esac
40052 fi
40053 ZIP=$ac_cv_prog_ZIP
40054 if test -n "$ZIP"; then
40055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
40056 printf "%s\n" "$ZIP" >&6; }
40057 else
40058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40059 printf "%s\n" "no" >&6; }
40060 fi
40061
40062
40063 test -n "$ZIP" && break
40064 done
40065
40066
40067 if test "x$ZIP" != "x"; then
40068 ZIP_DELEGATE_TRUE=
40069 ZIP_DELEGATE_FALSE='#'
40070 else
40071 ZIP_DELEGATE_TRUE='#'
40072 ZIP_DELEGATE_FALSE=
40073 fi
40074
40075
40076 #
40077 # GhostPCL related configuration.
40078 #
40079 PCLColorDevice=png16malpha
40080 PCLCMYKDevice=pamcmyk32
40081 PCLMonoDevice=pbmraw
40082 if test -z "$PCLVersion"; then
40083 PCLVersion='unknown'
40084 fi
40085 if test $have_pcl = 'yes'; then
40086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
40087 printf "%s\n" "-------------------------------------------------------------" >&6; }
40088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
40089 printf %s "checking for PCL... " >&6; }
40090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
40091 printf "%s\n" "" >&6; }
40092 # PCLColorDevice
40093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
40094 printf %s "checking for pcl color device... " >&6; }
40095 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40096 :
40097 else
40098 PCLColorDevice=ppmraw
40099 fi
40100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
40101 printf "%s\n" "$PCLColorDevice" >&6; }
40102
40103 # PCLCMYKDevice
40104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
40105 printf %s "checking for pcl CMYK device... " >&6; }
40106 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40107 :
40108 else
40109 PCLCMYKDevice=$PCLColorDevice
40110 fi
40111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
40112 printf "%s\n" "$PCLCMYKDevice" >&6; }
40113
40114 # PCLMonoDevice
40115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
40116 printf %s "checking for pcl mono device... " >&6; }
40117 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40118 :
40119 else
40120 PCLMonoDevice=$PCLColorDevice
40121 fi
40122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
40123 printf "%s\n" "$PCLMonoDevice" >&6; }
40124 fi
40125
40126
40127
40128
40129
40130
40131 #
40132 # GhostXPS related configuration.
40133 #
40134 XPSColorDevice=png16malpha
40135 XPSCMYKDevice=pamcmyk32
40136 XPSMonoDevice=pbmraw
40137 if test -z "$XPSVersion"; then
40138 XPSVersion='unknown'
40139 fi
40140 if test $have_xps = 'yes'; then
40141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
40142 printf "%s\n" "-------------------------------------------------------------" >&6; }
40143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
40144 printf %s "checking for XPS... " >&6; }
40145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
40146 printf "%s\n" "" >&6; }
40147 # XPSColorDevice
40148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
40149 printf %s "checking for xps color device... " >&6; }
40150 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40151 :
40152 else
40153 XPSColorDevice=ppmraw
40154 fi
40155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
40156 printf "%s\n" "$XPSColorDevice" >&6; }
40157
40158 # XPSCMYKDevice
40159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
40160 printf %s "checking for xps CMYK device... " >&6; }
40161 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40162 :
40163 else
40164 XPSCMYKDevice=$XPSColorDevice
40165 fi
40166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
40167 printf "%s\n" "$XPSCMYKDevice" >&6; }
40168
40169 # XPSMonoDevice
40170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
40171 printf %s "checking for xps mono device... " >&6; }
40172 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40173 :
40174 else
40175 XPSMonoDevice=$XPSColorDevice
40176 fi
40177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
40178 printf "%s\n" "$XPSMonoDevice" >&6; }
40179 fi
40180
40181
40182
40183
40184
40185
40186 #
40187 # Ghostscript related configuration.
40188 #
40189 GSAlphaDevice=png16malpha
40190 GSColorDevice=png16m
40191 GSCMYKDevice=pamcmyk32
40192 GSMonoDevice=pbmraw
40193 GSPDFDevice=pdfwrite
40194 GSPSDevice=ps2write
40195 GSEPSDevice=eps2write
40196 GSVersion='unknown'
40197 if test $have_gs = 'yes'; then
40198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
40199 printf "%s\n" "-------------------------------------------------------------" >&6; }
40200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
40201 printf %s "checking for Ghostscript... " >&6; }
40202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
40203 printf "%s\n" "" >&6; }
40204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
40205 printf %s "checking for Ghostscript version... " >&6; }
40206 if GSVersion=`$PSDelegate --version`; then
40207 :
40208 else
40209 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
40210 fi
40211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
40212 printf "%s\n" "$GSVersion" >&6; }
40213
40214 # GSColorDevice
40215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
40216 printf %s "checking for gs color device... " >&6; }
40217 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40218 :
40219 else
40220 GSColorDevice=ppmraw
40221 fi
40222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
40223 printf "%s\n" "$GSColorDevice" >&6; }
40224
40225 # GSAlphaDevice
40226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
40227 printf %s "checking for gs alpha device... " >&6; }
40228 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40229 :
40230 elif $PSDelegate -q -dBATCH -sDEVICE=pngalpha -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40231 GSAlphaDevice=pngalpha
40232 else
40233 GSAlphaDevice=$GSColorDevice
40234 fi
40235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
40236 printf "%s\n" "$GSAlphaDevice" >&6; }
40237
40238 # GSCMYKDevice
40239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
40240 printf %s "checking for gs CMYK device... " >&6; }
40241 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40242 :
40243 else
40244 GSCMYKDevice=pam
40245 fi
40246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
40247 printf "%s\n" "$GSCMYKDevice" >&6; }
40248
40249 # GSMonoDevice
40250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
40251 printf %s "checking for gs mono device... " >&6; }
40252 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40253 :
40254 else
40255 GSMonoDevice=$GSColorDevice
40256 fi
40257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
40258 printf "%s\n" "$GSMonoDevice" >&6; }
40259
40260 # GSPDFDevice
40261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
40262 printf %s "checking for gs PDF writing device... " >&6; }
40263 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40264 :
40265 else
40266 GSPDFDevice=nodevice
40267 fi
40268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
40269 printf "%s\n" "$GSPDFDevice" >&6; }
40270
40271 # GSPSDevice
40272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
40273 printf %s "checking for gs PS writing device... " >&6; }
40274 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40275 :
40276 else
40277 GSPSDevice=pswrite
40278 fi
40279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
40280 printf "%s\n" "$GSPSDevice" >&6; }
40281
40282 # GSEPSDevice
40283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
40284 printf %s "checking for gs EPS writing device... " >&6; }
40285 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
40286 :
40287 else
40288 GSEPSDevice=epswrite
40289 fi
40290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
40291 printf "%s\n" "$GSEPSDevice" >&6; }
40292 fi
40293
40294
40295
40296
40297
40298
40299
40300
40301
40302
40303 #
40304 # PerlMagick-related configuration
40305 #
40306
40307 # Look for PERL if PerlMagick requested
40308 # If name/path of desired PERL interpreter is specified, look for that one first
40309 have_perl='no'
40310 if test "$with_perl" != 'no'; then
40311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
40312 printf "%s\n" "-------------------------------------------------------------" >&6; }
40313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
40314 printf %s "checking for Perl... " >&6; }
40315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
40316 printf "%s\n" "" >&6; }
40317 if test "$with_perl" != 'yes'; then
40318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
40319 printf %s "checking for perl... " >&6; }
40320 if test ${ac_cv_path_PERL+y}
40321 then :
40322 printf %s "(cached) " >&6
40323 else case e in #(
40324 e) ac_cv_path_PERL="$with_perl" ;;
40325 esac
40326 fi
40327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
40328 printf "%s\n" "$ac_cv_path_PERL" >&6; };
40329 PERL=$ac_cv_path_PERL
40330 have_perl="$ac_cv_path_PERL"
40331 else
40332 for ac_prog in perl perl5
40333 do
40334 # Extract the first word of "$ac_prog", so it can be a program name with args.
40335 set dummy $ac_prog; ac_word=$2
40336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40337 printf %s "checking for $ac_word... " >&6; }
40338 if test ${ac_cv_path_PERL+y}
40339 then :
40340 printf %s "(cached) " >&6
40341 else case e in #(
40342 e) case $PERL in
40343 [\\/]* | ?:[\\/]*)
40344 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40345 ;;
40346 *)
40347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40348 for as_dir in $PATH
40349 do
40350 IFS=$as_save_IFS
40351 case $as_dir in #(((
40352 '') as_dir=./ ;;
40353 */) ;;
40354 *) as_dir=$as_dir/ ;;
40355 esac
40356 for ac_exec_ext in '' $ac_executable_extensions; do
40357 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
40358 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
40359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
40360 break 2
40361 fi
40362 done
40363 done
40364 IFS=$as_save_IFS
40365
40366 ;;
40367 esac ;;
40368 esac
40369 fi
40370 PERL=$ac_cv_path_PERL
40371 if test -n "$PERL"; then
40372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40373 printf "%s\n" "$PERL" >&6; }
40374 else
40375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40376 printf "%s\n" "no" >&6; }
40377 fi
40378
40379
40380 test -n "$PERL" && break
40381 done
40382 if test "$ac_cv_path_PERL"; then
40383 have_perl="$ac_cv_path_PERL"
40384 fi
40385 fi
40386 fi
40387
40388 if test "$with_perl" != 'yes' ; then
40389 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
40390 fi
40391
40392 PERL_SUPPORTS_DESTDIR='no'
40393
40394 with_perl_static='no'
40395 with_perl_dynamic='no'
40396 if test "$have_perl" != 'no'; then
40397 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
40398 with_perl_static='yes'
40399 fi
40400 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
40401 with_perl_dynamic='yes'
40402 fi
40403 # Is PERL's MakeMaker new enough to support DESTDIR?
40404
40405
40406
40407
40408 if test -n "$PERL"
40409 then :
40410
40411 ax_perl_version="5.8.1"
40412
40413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
40414 printf %s "checking for perl version... " >&6; }
40415
40416 perl_version=`$PERL --version 2>&1 \
40417 | $SED -n -e '/This is perl/b inspect
40418 b
40419 : inspect
40420 s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
40421
40422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
40423 printf "%s\n" "$perl_version" >&6; }
40424
40425 PERL_VERSION=$perl_version
40426
40427
40428
40429
40430
40431 # Used to indicate true or false condition
40432 ax_compare_version=false
40433
40434 # Convert the two version strings to be compared into a format that
40435 # allows a simple string comparison. The end result is that a version
40436 # string of the form 1.12.5-r617 will be converted to the form
40437 # 0001001200050617. In other words, each number is zero padded to four
40438 # digits, and non digits are removed.
40439
40440 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
40441 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
40442 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
40443 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
40444 -e 's/[^0-9]//g'`
40445
40446
40447 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
40448 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
40449 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
40450 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
40451 -e 's/[^0-9]//g'`
40452
40453
40454 ax_compare_version=`echo "x$ax_compare_version_A
40455 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
40456
40457
40458
40459 if test "$ax_compare_version" = "true" ; then
40460
40461 :
40462 PERL_SUPPORTS_DESTDIR='yes'
40463
40464 else
40465 :
40466 PERL_SUPPORTS_DESTDIR='no'
40467
40468 fi
40469
40470
40471 else case e in #(
40472 e)
40473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
40474 printf "%s\n" "$as_me: WARNING: could not find the perl interpreter" >&2;}
40475 PERL_SUPPORTS_DESTDIR='no'
40476 ;;
40477 esac
40478 fi
40479
40480 fi
40481 if test "$have_perl" != 'no'; then
40482 WITH_PERL_TRUE=
40483 WITH_PERL_FALSE='#'
40484 else
40485 WITH_PERL_TRUE='#'
40486 WITH_PERL_FALSE=
40487 fi
40488
40489 if test $with_perl_static = 'yes'; then
40490 WITH_PERL_STATIC_TRUE=
40491 WITH_PERL_STATIC_FALSE='#'
40492 else
40493 WITH_PERL_STATIC_TRUE='#'
40494 WITH_PERL_STATIC_FALSE=
40495 fi
40496
40497 if test $with_perl_dynamic = 'yes'; then
40498 WITH_PERL_DYNAMIC_TRUE=
40499 WITH_PERL_DYNAMIC_FALSE='#'
40500 else
40501 WITH_PERL_DYNAMIC_TRUE='#'
40502 WITH_PERL_DYNAMIC_FALSE=
40503 fi
40504
40505
40506
40507 # Determine path to pick up MagickCore library from for use with building PerlMagick
40508 MAGICKCORE_PATH="${LIB_DIR}"
40509 if test $with_perl_static = 'yes'; then
40510 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
40511 libtool_objdir=$objdir
40512
40513 # Linker search path to library, followed by -lMagickCore
40514 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
40515 fi
40516
40517
40518 # Create a simple string containing format names for all delegate libraries.
40519 MAGICK_DELEGATES=''
40520 if test "$have_autotrace" = 'yes' ; then
40521 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
40522 fi
40523 if test "$have_bzlib" = 'yes' ; then
40524 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
40525 fi
40526 if test "$have_cairo" = 'yes' ; then
40527 MAGICK_DELEGATES="$MAGICK_DELEGATES cairo"
40528 fi
40529 if test "$have_dmr" = 'yes' ; then
40530 MAGICK_DELEGATES="$MAGICK_DELEGATES dmr"
40531 fi
40532 if test "$have_djvu" = 'yes' ; then
40533 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
40534 fi
40535 if test "$have_dps" = 'yes' ; then
40536 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
40537 fi
40538 if test "$have_fftw" = 'yes' ; then
40539 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
40540 fi
40541 if test "$have_flif" = 'yes' ; then
40542 MAGICK_DELEGATES="$MAGICK_DELEGATES flif"
40543 fi
40544 if test "$have_fpx" = 'yes' ; then
40545 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
40546 fi
40547 if test "$have_fontconfig" = 'yes' ; then
40548 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
40549 fi
40550 if test "$have_freetype" = 'yes' ; then
40551 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
40552 fi
40553 if test "$have_gslib" = 'yes' ; then
40554 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
40555 fi
40556 if test "$have_heic" = 'yes' ; then
40557 MAGICK_DELEGATES="$MAGICK_DELEGATES heic"
40558 fi
40559 if test "$have_jbig" = 'yes' ; then
40560 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
40561 fi
40562 if test "$have_png$have_jpeg" = 'yesyes' ; then
40563 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
40564 fi
40565 if test "$have_openjp2" = 'yes' ; then
40566 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
40567 fi
40568 if test "$have_jpeg" = 'yes' ; then
40569 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
40570 fi
40571 if test "$have_jxl" = 'yes' ; then
40572 MAGICK_DELEGATES="$MAGICK_DELEGATES jxl"
40573 fi
40574 if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
40575 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
40576 fi
40577 if test "$have_lqr" = 'yes' ; then
40578 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
40579 fi
40580 if test "$have_lzma" = 'yes' ; then
40581 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
40582 fi
40583 if test "$have_openexr" = 'yes' ; then
40584 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
40585 fi
40586 if test "$have_pangocairo" = 'yes' ; then
40587 MAGICK_DELEGATES="$MAGICK_DELEGATES pangocairo"
40588 fi
40589 if test "$have_pcl" = 'yes' ; then
40590 MAGICK_DELEGATES="$MAGICK_DELEGATES pcl"
40591 fi
40592 if test "$have_png" = 'yes' ; then
40593 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
40594 fi
40595 have_ps='no'
40596 if test "$have_dps" = 'yes' || \
40597 test "$have_gs" = 'yes' || \
40598 test "${native_win32_build}" = 'yes' ; then
40599 have_ps='yes'
40600 fi
40601 if test "$have_ps" = 'yes' ; then
40602 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
40603 fi
40604 if test "$have_raqm" = 'yes' ; then
40605 MAGICK_DELEGATES="$MAGICK_DELEGATES raqm"
40606 fi
40607 if test "$have_raw" = 'yes' ; then
40608 MAGICK_DELEGATES="$MAGICK_DELEGATES raw"
40609 fi
40610 if test "$have_ra_ppm" = 'yes' ; then
40611 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
40612 fi
40613 if test "$have_rsvg" = 'yes' ; then
40614 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
40615 fi
40616 if test "$have_tiff" = 'yes' ; then
40617 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
40618 fi
40619 if test "$have_ttf" = 'yes' ; then
40620 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
40621 fi
40622 if test "$have_uhdr" = 'yes' ; then
40623 MAGICK_DELEGATES="$MAGICK_DELEGATES uhdr"
40624 fi
40625 if test "$have_video" = 'yes' ; then
40626 MAGICK_DELEGATES="$MAGICK_DELEGATES video"
40627 fi
40628 if test "$have_webp" = 'yes' ; then
40629 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
40630 fi
40631 if test "$have_wmf" = 'yes' ; then
40632 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
40633 fi
40634 if test "$have_x" = 'yes' ; then
40635 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
40636 fi
40637 if test "$have_xml" = 'yes' ; then
40638 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
40639 fi
40640 if test "$have_zip" = 'yes' ; then
40641 MAGICK_DELEGATES="$MAGICK_DELEGATES zip"
40642 fi
40643 if test "$have_zlib" = 'yes' ; then
40644 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
40645 fi
40646 if test "$have_zstd" = 'yes' ; then
40647 MAGICK_DELEGATES="$MAGICK_DELEGATES zstd"
40648 fi
40649
40650 # Remove extraneous spaces from output variables (aesthetic)
40651 MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
40652 MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
40653
40654
40655
40656 #
40657 # Handle special compiler flags
40658 #
40659
40660 # Add '-p' if prof source profiling support enabled
40661 if test "$enable_prof" = 'yes'; then
40662 CFLAGS="-p $CFLAGS"
40663 CXXFLAGS="-p $CXXFLAGS"
40664 LDFLAGS="-p $LDFLAGS"
40665 fi
40666
40667 # Add '-pg' if gprof source profiling support enabled
40668 if test "$enable_gprof" = 'yes'; then
40669 CFLAGS="-pg $CFLAGS"
40670 CXXFLAGS="-pg $CXXFLAGS"
40671 LDFLAGS="-pg $LDFLAGS"
40672 fi
40673
40674 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
40675 # This is a gcc-specific feature
40676 if test "$enable_gcov" = 'yes'; then
40677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
40678 printf %s "checking for _gcov_init in -lgcov... " >&6; }
40679 if test ${ac_cv_lib_gcov__gcov_init+y}
40680 then :
40681 printf %s "(cached) " >&6
40682 else case e in #(
40683 e) ac_check_lib_save_LIBS=$LIBS
40684 LIBS="-lgcov $LIBS"
40685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40686 /* end confdefs.h. */
40687
40688 /* Override any GCC internal prototype to avoid an error.
40689 Use char because int might match the return type of a GCC
40690 builtin and then its argument prototype would still apply.
40691 The 'extern "C"' is for builds by C++ compilers;
40692 although this is not generally supported in C code supporting it here
40693 has little cost and some practical benefit (sr 110532). */
40694 #ifdef __cplusplus
40695 extern "C"
40696 #endif
40697 char _gcov_init (void);
40698 int
40699 main (void)
40700 {
40701 return _gcov_init ();
40702 ;
40703 return 0;
40704 }
40705 _ACEOF
40706 if ac_fn_c_try_link "$LINENO"
40707 then :
40708 ac_cv_lib_gcov__gcov_init=yes
40709 else case e in #(
40710 e) ac_cv_lib_gcov__gcov_init=no ;;
40711 esac
40712 fi
40713 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40714 conftest$ac_exeext conftest.$ac_ext
40715 LIBS=$ac_check_lib_save_LIBS ;;
40716 esac
40717 fi
40718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
40719 printf "%s\n" "$ac_cv_lib_gcov__gcov_init" >&6; }
40720 if test "x$ac_cv_lib_gcov__gcov_init" = xyes
40721 then :
40722 printf "%s\n" "#define HAVE_LIBGCOV 1" >>confdefs.h
40723
40724 LIBS="-lgcov $LIBS"
40725
40726 fi
40727
40728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
40729 printf %s "checking for __gcov_init in -lgcov... " >&6; }
40730 if test ${ac_cv_lib_gcov___gcov_init+y}
40731 then :
40732 printf %s "(cached) " >&6
40733 else case e in #(
40734 e) ac_check_lib_save_LIBS=$LIBS
40735 LIBS="-lgcov $LIBS"
40736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40737 /* end confdefs.h. */
40738
40739 /* Override any GCC internal prototype to avoid an error.
40740 Use char because int might match the return type of a GCC
40741 builtin and then its argument prototype would still apply.
40742 The 'extern "C"' is for builds by C++ compilers;
40743 although this is not generally supported in C code supporting it here
40744 has little cost and some practical benefit (sr 110532). */
40745 #ifdef __cplusplus
40746 extern "C"
40747 #endif
40748 char __gcov_init (void);
40749 int
40750 main (void)
40751 {
40752 return __gcov_init ();
40753 ;
40754 return 0;
40755 }
40756 _ACEOF
40757 if ac_fn_c_try_link "$LINENO"
40758 then :
40759 ac_cv_lib_gcov___gcov_init=yes
40760 else case e in #(
40761 e) ac_cv_lib_gcov___gcov_init=no ;;
40762 esac
40763 fi
40764 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40765 conftest$ac_exeext conftest.$ac_ext
40766 LIBS=$ac_check_lib_save_LIBS ;;
40767 esac
40768 fi
40769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
40770 printf "%s\n" "$ac_cv_lib_gcov___gcov_init" >&6; }
40771 if test "x$ac_cv_lib_gcov___gcov_init" = xyes
40772 then :
40773 printf "%s\n" "#define HAVE_LIBGCOV 1" >>confdefs.h
40774
40775 LIBS="-lgcov $LIBS"
40776
40777 fi
40778
40779 case "$target_os" in
40780 darwin*)
40781 OSX_GCOV_LDFLAG="-Wl,-single_module"
40782 ;;
40783 *)
40784 OSX_GCOV_LDFLAG=""
40785 ;;
40786 esac
40787
40788 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
40789 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
40790 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
40791 fi
40792
40793 #
40794 # Build library dependency list for libMagickCore
40795 #
40796
40797 if test "$build_modules" != 'no'; then
40798 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"
40799 else
40800 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"
40801 fi
40802 MAGICK_EXTRA_DEP_LIBS="$GOMP_LIBS"
40803
40804
40805
40806 # Pass only user-provided LIBS as "global" libraries
40807 LIBS=$USER_LIBS
40808
40809 #AC_SUBST([CPPFLAGS])
40810
40811 #AC_SUBST([LDFLAGS])
40812 #AC_SUBST([X_PRE_LIBS])
40813 #AC_SUBST([X_LIBS])
40814 #AC_SUBST([X_EXTRA_LIBS])
40815
40816 CC=`echo $CC | sed -e 's/ */ /g'`
40817 CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
40818 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
40819 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
40820 LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
40821 LIBS=`echo $LIBS | sed -e 's/ */ /g'`
40822
40823 MAGICK_CFLAGS=$CFLAGS
40824 MAGICK_CXXFLAGS="$CXXFLAGS"
40825 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
40826 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
40827 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
40828 MAGICK_LIBS="$MAGICK_DEP_LIBS $MAGICK_EXTRA_DEP_LIBS"
40829 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
40830 MAGICK_EXTRA_DEP_LIBS=`echo $MAGICK_EXTRA_DEP_LIBS | sed -e 's/ */ /g'`
40831
40832
40833
40834
40835
40836
40837
40838
40839 # Set configured scripts to executable.
40840 ac_config_commands="$ac_config_commands default"
40841
40842 ac_config_commands="$ac_config_commands magick.sh.in"
40843
40844 ac_config_commands="$ac_config_commands MagickCore-config.in"
40845
40846 ac_config_commands="$ac_config_commands MagickWand-config.in"
40847
40848 ac_config_commands="$ac_config_commands Magick++-config.in"
40849
40850 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
40851
40852
40853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
40854 printf "%s\n" "-------------------------------------------------------------" >&6; }
40855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
40856 printf "%s\n" "Update ImageMagick configuration" >&6; }
40857
40858 rm -f magick-version
40859
40860 result_dejavu_font_dir='none'
40861 if test "${dejavu_font_dir}x" != 'x'; then
40862 result_dejavu_font_dir=$dejavu_font_dir
40863 fi
40864
40865 result_ghostscript_font_dir='none'
40866 if test "${ghostscript_font_dir}x" != 'x'; then
40867 result_ghostscript_font_dir=$ghostscript_font_dir
40868 fi
40869
40870 result_urw_base35_font_dir='none'
40871 if test "${urw_base35_font_dir}x" != 'x'; then
40872 result_urw_base35_font_dir=$urw_base35_font_dir
40873 fi
40874
40875 result_urw_base35_type1_font_dir='none'
40876 if test "${urw_base35_type1_font_dir}x" != 'x'; then
40877 result_urw_base35_type1_font_dir=$urw_base35_type1_font_dir
40878 fi
40879
40880 result_windows_font_dir='none'
40881 if test "${windows_font_dir}x" != 'x'; then
40882 result_windows_font_dir=${windows_font_dir}
40883 fi
40884
40885 # ==============================================================================
40886 # Generate build environment
40887 # ==============================================================================
40888 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"
40889
40890 cat >confcache <<\_ACEOF
40891 # This file is a shell script that caches the results of configure
40892 # tests run on this system so they can be shared between configure
40893 # scripts and configure runs, see configure's option --config-cache.
40894 # It is not useful on other systems. If it contains results you don't
40895 # want to keep, you may remove or edit it.
40896 #
40897 # config.status only pays attention to the cache file if you give it
40898 # the --recheck option to rerun configure.
40899 #
40900 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
40901 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
40902 # following values.
40903
40904 _ACEOF
40905
40906 # The following way of writing the cache mishandles newlines in values,
40907 # but we know of no workaround that is simple, portable, and efficient.
40908 # So, we kill variables containing newlines.
40909 # Ultrix sh set writes to stderr and can't be redirected directly,
40910 # and sets the high bit in the cache file unless we assign to the vars.
40911 (
40912 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40913 eval ac_val=\$$ac_var
40914 case $ac_val in #(
40915 *${as_nl}*)
40916 case $ac_var in #(
40917 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
40918 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
40919 esac
40920 case $ac_var in #(
40921 _ | IFS | as_nl) ;; #(
40922 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
40923 *) { eval $ac_var=; unset $ac_var;} ;;
40924 esac ;;
40925 esac
40926 done
40927
40928 (set) 2>&1 |
40929 case $as_nl`(ac_space=' '; set) 2>&1` in #(
40930 *${as_nl}ac_space=\ *)
40931 # 'set' does not quote correctly, so add quotes: double-quote
40932 # substitution turns \\\\ into \\, and sed turns \\ into \.
40933 sed -n \
40934 "s/'/'\\\\''/g;
40935 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40936 ;; #(
40937 *)
40938 # 'set' quotes correctly as required by POSIX, so do not add quotes.
40939 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40940 ;;
40941 esac |
40942 sort
40943 ) |
40944 sed '
40945 /^ac_cv_env_/b end
40946 t clear
40947 :clear
40948 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
40949 t end
40950 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40951 :end' >>confcache
40952 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
40953 if test -w "$cache_file"; then
40954 if test "x$cache_file" != "x/dev/null"; then
40955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
40956 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
40957 if test ! -f "$cache_file" || test -h "$cache_file"; then
40958 cat confcache >"$cache_file"
40959 else
40960 case $cache_file in #(
40961 */* | ?:*)
40962 mv -f confcache "$cache_file"$$ &&
40963 mv -f "$cache_file"$$ "$cache_file" ;; #(
40964 *)
40965 mv -f confcache "$cache_file" ;;
40966 esac
40967 fi
40968 fi
40969 else
40970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
40971 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
40972 fi
40973 fi
40974 rm -f confcache
40975
40976 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40977 # Let make expand exec_prefix.
40978 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40979
40980 DEFS=-DHAVE_CONFIG_H
40981
40982 ac_libobjs=
40983 ac_ltlibobjs=
40984 U=
40985 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40986 # 1. Remove the extension, and $U if already installed.
40987 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
40988 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
40989 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
40990 # will be set to the directory where LIBOBJS objects are built.
40991 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
40992 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
40993 done
40994 LIBOBJS=$ac_libobjs
40995
40996 LTLIBOBJS=$ac_ltlibobjs
40997
40998
40999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41000 printf %s "checking that generated files are newer than configure... " >&6; }
41001 if test -n "$am_sleep_pid"; then
41002 # Hide warnings about reused PIDs.
41003 wait $am_sleep_pid 2>/dev/null
41004 fi
41005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
41006 printf "%s\n" "done" >&6; }
41007 case $enable_silent_rules in # (((
41008 yes) AM_DEFAULT_VERBOSITY=0;;
41009 no) AM_DEFAULT_VERBOSITY=1;;
41010 esac
41011 if test $am_cv_make_support_nested_variables = yes; then
41012 AM_V='$(V)'
41013 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
41014 else
41015 AM_V=$AM_DEFAULT_VERBOSITY
41016 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
41017 fi
41018
41019 if test -n "$EXEEXT"; then
41020 am__EXEEXT_TRUE=
41021 am__EXEEXT_FALSE='#'
41022 else
41023 am__EXEEXT_TRUE='#'
41024 am__EXEEXT_FALSE=
41025 fi
41026
41027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41028 printf %s "checking that generated files are newer than configure... " >&6; }
41029 if test -n "$am_sleep_pid"; then
41030 # Hide warnings about reused PIDs.
41031 wait $am_sleep_pid 2>/dev/null
41032 fi
41033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
41034 printf "%s\n" "done" >&6; }
41035 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41036 as_fn_error $? "conditional \"AMDEP\" was never defined.
41037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41038 fi
41039 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41040 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41042 fi
41043 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41044 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41046 fi
41047 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
41048 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
41049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41050 fi
41051 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
41052 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
41053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41054 fi
41055 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
41056 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
41057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41058 fi
41059 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
41060 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
41061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41062 fi
41063 # Check whether --enable-year2038 was given.
41064 if test ${enable_year2038+y}
41065 then :
41066 enableval=$enable_year2038;
41067 fi
41068
41069 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
41070 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
41071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41072 fi
41073 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
41074 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
41075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41076 fi
41077 if test -z "${MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_TRUE}" && test -z "${MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_FALSE}"; then
41078 as_fn_error $? "conditional \"MAGICKCORE_ZERO_CONFIGURATION_SUPPORT\" was never defined.
41079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41080 fi
41081 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41082 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41084 fi
41085 if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
41086 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
41087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41088 fi
41089 if test -z "${WITH_UTILITIES_TRUE}" && test -z "${WITH_UTILITIES_FALSE}"; then
41090 as_fn_error $? "conditional \"WITH_UTILITIES\" was never defined.
41091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41092 fi
41093
41094 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
41095 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
41096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41097 fi
41098 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
41099 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
41100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41101 fi
41102 if test -z "${HAVE_JEMALLOC_TRUE}" && test -z "${HAVE_JEMALLOC_FALSE}"; then
41103 as_fn_error $? "conditional \"HAVE_JEMALLOC\" was never defined.
41104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41105 fi
41106 if test -z "${HAVE_MTMALLOC_TRUE}" && test -z "${HAVE_MTMALLOC_FALSE}"; then
41107 as_fn_error $? "conditional \"HAVE_MTMALLOC\" was never defined.
41108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41109 fi
41110 if test -z "${HAVE_TCMALLOC_TRUE}" && test -z "${HAVE_TCMALLOC_FALSE}"; then
41111 as_fn_error $? "conditional \"HAVE_TCMALLOC\" was never defined.
41112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41113 fi
41114 if test -z "${HAVE_UMEM_TRUE}" && test -z "${HAVE_UMEM_FALSE}"; then
41115 as_fn_error $? "conditional \"HAVE_UMEM\" was never defined.
41116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41117 fi
41118 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
41119 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
41120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41121 fi
41122 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
41123 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
41124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41125 fi
41126 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
41127 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
41128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41129 fi
41130 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
41131 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
41132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41133 fi
41134 if test -z "${ZSTD_DELEGATE_TRUE}" && test -z "${ZSTD_DELEGATE_FALSE}"; then
41135 as_fn_error $? "conditional \"ZSTD_DELEGATE\" was never defined.
41136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41137 fi
41138 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
41139 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
41140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41141 fi
41142 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
41143 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
41144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41145 fi
41146 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
41147 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
41148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41149 fi
41150 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
41151 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
41152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41153 fi
41154 if test -z "${FLIF_DELEGATE_TRUE}" && test -z "${FLIF_DELEGATE_FALSE}"; then
41155 as_fn_error $? "conditional \"FLIF_DELEGATE\" was never defined.
41156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41157 fi
41158 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
41159 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
41160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41161 fi
41162 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
41163 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
41164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41165 fi
41166 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
41167 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
41168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41169 fi
41170 if test -z "${RAQM_DELEGATE_TRUE}" && test -z "${RAQM_DELEGATE_FALSE}"; then
41171 as_fn_error $? "conditional \"RAQM_DELEGATE\" was never defined.
41172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41173 fi
41174 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
41175 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
41176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41177 fi
41178 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
41179 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
41180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41181 fi
41182 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
41183 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
41184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41185 fi
41186 if test -z "${DMR_DELEGATE_TRUE}" && test -z "${DMR_DELEGATE_FALSE}"; then
41187 as_fn_error $? "conditional \"DMR_DELEGATE\" was never defined.
41188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41189 fi
41190 if test -z "${HEIC_DELEGATE_TRUE}" && test -z "${HEIC_DELEGATE_FALSE}"; then
41191 as_fn_error $? "conditional \"HEIC_DELEGATE\" was never defined.
41192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41193 fi
41194 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
41195 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
41196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41197 fi
41198 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
41199 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
41200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41201 fi
41202 if test -z "${JXL_DELEGATE_TRUE}" && test -z "${JXL_DELEGATE_FALSE}"; then
41203 as_fn_error $? "conditional \"JXL_DELEGATE\" was never defined.
41204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41205 fi
41206 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
41207 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
41208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41209 fi
41210 if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
41211 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
41212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41213 fi
41214 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
41215 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
41216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41217 fi
41218 if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
41219 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
41220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41221 fi
41222 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
41223 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
41224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41225 fi
41226 if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
41227 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
41228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41229 fi
41230 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
41231 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
41232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41233 fi
41234 if test -z "${RAW_R_DELEGATE_TRUE}" && test -z "${RAW_R_DELEGATE_FALSE}"; then
41235 as_fn_error $? "conditional \"RAW_R_DELEGATE\" was never defined.
41236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41237 fi
41238 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
41239 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
41240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41241 fi
41242 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
41243 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
41244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41245 fi
41246 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
41247 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
41248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41249 fi
41250 if test -z "${UHDR_DELEGATE_TRUE}" && test -z "${UHDR_DELEGATE_FALSE}"; then
41251 as_fn_error $? "conditional \"UHDR_DELEGATE\" was never defined.
41252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41253 fi
41254 if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
41255 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
41256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41257 fi
41258 if test -z "${WEBPMUX_DELEGATE_TRUE}" && test -z "${WEBPMUX_DELEGATE_FALSE}"; then
41259 as_fn_error $? "conditional \"WEBPMUX_DELEGATE\" was never defined.
41260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41261 fi
41262 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
41263 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
41264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41265 fi
41266 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
41267 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
41268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41269 fi
41270 if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
41271 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
41272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41273 fi
41274 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
41275 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
41276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41277 fi
41278 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
41279 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
41280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41281 fi
41282 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
41283 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
41284 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41285 fi
41286 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
41287 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
41288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41289 fi
41290 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
41291 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
41292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41293 fi
41294 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
41295 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
41296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41297 fi
41298
41299 : "${CONFIG_STATUS=./config.status}"
41300 ac_write_fail=0
41301 ac_clean_files_save=$ac_clean_files
41302 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41304 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
41305 as_write_fail=0
41306 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41307 #! $SHELL
41308 # Generated by $as_me.
41309 # Run this file to recreate the current configuration.
41310 # Compiler output produced by configure, useful for debugging
41311 # configure, is in config.log if it exists.
41312
41313 debug=false
41314 ac_cs_recheck=false
41315 ac_cs_silent=false
41316
41317 SHELL=\${CONFIG_SHELL-$SHELL}
41318 export SHELL
41319 _ASEOF
41320 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41321 ## -------------------- ##
41322 ## M4sh Initialization. ##
41323 ## -------------------- ##
41324
41325 # Be more Bourne compatible
41326 DUALCASE=1; export DUALCASE # for MKS sh
41327 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
41328 then :
41329 emulate sh
41330 NULLCMD=:
41331 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41332 # is contrary to our usage. Disable this feature.
41333 alias -g '${1+"$@"}'='"$@"'
41334 setopt NO_GLOB_SUBST
41335 else case e in #(
41336 e) case `(set -o) 2>/dev/null` in #(
41337 *posix*) :
41338 set -o posix ;; #(
41339 *) :
41340 ;;
41341 esac ;;
41342 esac
41343 fi
41344
41345
41346
41347 # Reset variables that may have inherited troublesome values from
41348 # the environment.
41349
41350 # IFS needs to be set, to space, tab, and newline, in precisely that order.
41351 # (If _AS_PATH_WALK were called with IFS unset, it would have the
41352 # side effect of setting IFS to empty, thus disabling word splitting.)
41353 # Quoting is to prevent editors from complaining about space-tab.
41354 as_nl='
41355 '
41356 export as_nl
41357 IFS=" "" $as_nl"
41358
41359 PS1='$ '
41360 PS2='> '
41361 PS4='+ '
41362
41363 # Ensure predictable behavior from utilities with locale-dependent output.
41364 LC_ALL=C
41365 export LC_ALL
41366 LANGUAGE=C
41367 export LANGUAGE
41368
41369 # We cannot yet rely on "unset" to work, but we need these variables
41370 # to be unset--not just set to an empty or harmless value--now, to
41371 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
41372 # also avoids known problems related to "unset" and subshell syntax
41373 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
41374 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
41375 do eval test \${$as_var+y} \
41376 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41377 done
41378
41379 # Ensure that fds 0, 1, and 2 are open.
41380 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
41381 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
41382 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
41383
41384 # The user is always right.
41385 if ${PATH_SEPARATOR+false} :; then
41386 PATH_SEPARATOR=:
41387 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
41388 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
41389 PATH_SEPARATOR=';'
41390 }
41391 fi
41392
41393
41394 # Find who we are. Look in the path if we contain no directory separator.
41395 as_myself=
41396 case $0 in #((
41397 *[\\/]* ) as_myself=$0 ;;
41398 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41399 for as_dir in $PATH
41400 do
41401 IFS=$as_save_IFS
41402 case $as_dir in #(((
41403 '') as_dir=./ ;;
41404 */) ;;
41405 *) as_dir=$as_dir/ ;;
41406 esac
41407 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
41408 done
41409 IFS=$as_save_IFS
41410
41411 ;;
41412 esac
41413 # We did not find ourselves, most probably we were run as 'sh COMMAND'
41414 # in which case we are not to be found in the path.
41415 if test "x$as_myself" = x; then
41416 as_myself=$0
41417 fi
41418 if test ! -f "$as_myself"; then
41419 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41420 exit 1
41421 fi
41422
41423
41424
41425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
41426 # ----------------------------------------
41427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41429 # script with STATUS, using 1 if that was 0.
41430 as_fn_error ()
41431 {
41432 as_status=$1; test $as_status -eq 0 && as_status=1
41433 if test "$4"; then
41434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41436 fi
41437 printf "%s\n" "$as_me: error: $2" >&2
41438 as_fn_exit $as_status
41439 } # as_fn_error
41440
41441
41442 # as_fn_set_status STATUS
41443 # -----------------------
41444 # Set $? to STATUS, without forking.
41445 as_fn_set_status ()
41446 {
41447 return $1
41448 } # as_fn_set_status
41449
41450 # as_fn_exit STATUS
41451 # -----------------
41452 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41453 as_fn_exit ()
41454 {
41455 set +e
41456 as_fn_set_status $1
41457 exit $1
41458 } # as_fn_exit
41459
41460 # as_fn_unset VAR
41461 # ---------------
41462 # Portably unset VAR.
41463 as_fn_unset ()
41464 {
41465 { eval $1=; unset $1;}
41466 }
41467 as_unset=as_fn_unset
41468
41469 # as_fn_append VAR VALUE
41470 # ----------------------
41471 # Append the text in VALUE to the end of the definition contained in VAR. Take
41472 # advantage of any shell optimizations that allow amortized linear growth over
41473 # repeated appends, instead of the typical quadratic growth present in naive
41474 # implementations.
41475 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
41476 then :
41477 eval 'as_fn_append ()
41478 {
41479 eval $1+=\$2
41480 }'
41481 else case e in #(
41482 e) as_fn_append ()
41483 {
41484 eval $1=\$$1\$2
41485 } ;;
41486 esac
41487 fi # as_fn_append
41488
41489 # as_fn_arith ARG...
41490 # ------------------
41491 # Perform arithmetic evaluation on the ARGs, and store the result in the
41492 # global $as_val. Take advantage of shells that can avoid forks. The arguments
41493 # must be portable across $(()) and expr.
41494 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
41495 then :
41496 eval 'as_fn_arith ()
41497 {
41498 as_val=$(( $* ))
41499 }'
41500 else case e in #(
41501 e) as_fn_arith ()
41502 {
41503 as_val=`expr "$@" || test $? -eq 1`
41504 } ;;
41505 esac
41506 fi # as_fn_arith
41507
41508
41509 if expr a : '\(a\)' >/dev/null 2>&1 &&
41510 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41511 as_expr=expr
41512 else
41513 as_expr=false
41514 fi
41515
41516 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41517 as_basename=basename
41518 else
41519 as_basename=false
41520 fi
41521
41522 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41523 as_dirname=dirname
41524 else
41525 as_dirname=false
41526 fi
41527
41528 as_me=`$as_basename -- "$0" ||
41529 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41530 X"$0" : 'X\(//\)$' \| \
41531 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41532 printf "%s\n" X/"$0" |
41533 sed '/^.*\/\([^/][^/]*\)\/*$/{
41534 s//\1/
41535 q
41536 }
41537 /^X\/\(\/\/\)$/{
41538 s//\1/
41539 q
41540 }
41541 /^X\/\(\/\).*/{
41542 s//\1/
41543 q
41544 }
41545 s/.*/./; q'`
41546
41547 # Avoid depending upon Character Ranges.
41548 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41549 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41550 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41551 as_cr_digits='0123456789'
41552 as_cr_alnum=$as_cr_Letters$as_cr_digits
41553
41554
41555 # Determine whether it's possible to make 'echo' print without a newline.
41556 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
41557 # for compatibility with existing Makefiles.
41558 ECHO_C= ECHO_N= ECHO_T=
41559 case `echo -n x` in #(((((
41560 -n*)
41561 case `echo 'xy\c'` in
41562 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41563 xy) ECHO_C='\c';;
41564 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
41565 ECHO_T=' ';;
41566 esac;;
41567 *)
41568 ECHO_N='-n';;
41569 esac
41570
41571 # For backward compatibility with old third-party macros, we provide
41572 # the shell variables $as_echo and $as_echo_n. New code should use
41573 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
41574 as_echo='printf %s\n'
41575 as_echo_n='printf %s'
41576
41577 rm -f conf$$ conf$$.exe conf$$.file
41578 if test -d conf$$.dir; then
41579 rm -f conf$$.dir/conf$$.file
41580 else
41581 rm -f conf$$.dir
41582 mkdir conf$$.dir 2>/dev/null
41583 fi
41584 if (echo >conf$$.file) 2>/dev/null; then
41585 if ln -s conf$$.file conf$$ 2>/dev/null; then
41586 as_ln_s='ln -s'
41587 # ... but there are two gotchas:
41588 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
41589 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
41590 # In both cases, we have to default to 'cp -pR'.
41591 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41592 as_ln_s='cp -pR'
41593 elif ln conf$$.file conf$$ 2>/dev/null; then
41594 as_ln_s=ln
41595 else
41596 as_ln_s='cp -pR'
41597 fi
41598 else
41599 as_ln_s='cp -pR'
41600 fi
41601 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41602 rmdir conf$$.dir 2>/dev/null
41603
41604
41605 # as_fn_mkdir_p
41606 # -------------
41607 # Create "$as_dir" as a directory, including parents if necessary.
41608 as_fn_mkdir_p ()
41609 {
41610
41611 case $as_dir in #(
41612 -*) as_dir=./$as_dir;;
41613 esac
41614 test -d "$as_dir" || eval $as_mkdir_p || {
41615 as_dirs=
41616 while :; do
41617 case $as_dir in #(
41618 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41619 *) as_qdir=$as_dir;;
41620 esac
41621 as_dirs="'$as_qdir' $as_dirs"
41622 as_dir=`$as_dirname -- "$as_dir" ||
41623 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41624 X"$as_dir" : 'X\(//\)[^/]' \| \
41625 X"$as_dir" : 'X\(//\)$' \| \
41626 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41627 printf "%s\n" X"$as_dir" |
41628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41629 s//\1/
41630 q
41631 }
41632 /^X\(\/\/\)[^/].*/{
41633 s//\1/
41634 q
41635 }
41636 /^X\(\/\/\)$/{
41637 s//\1/
41638 q
41639 }
41640 /^X\(\/\).*/{
41641 s//\1/
41642 q
41643 }
41644 s/.*/./; q'`
41645 test -d "$as_dir" && break
41646 done
41647 test -z "$as_dirs" || eval "mkdir $as_dirs"
41648 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
41649
41650
41651 } # as_fn_mkdir_p
41652 if mkdir -p . 2>/dev/null; then
41653 as_mkdir_p='mkdir -p "$as_dir"'
41654 else
41655 test -d ./-p && rmdir ./-p
41656 as_mkdir_p=false
41657 fi
41658
41659
41660 # as_fn_executable_p FILE
41661 # -----------------------
41662 # Test if FILE is an executable regular file.
41663 as_fn_executable_p ()
41664 {
41665 test -f "$1" && test -x "$1"
41666 } # as_fn_executable_p
41667 as_test_x='test -x'
41668 as_executable_p=as_fn_executable_p
41669
41670 # Sed expression to map a string onto a valid CPP name.
41671 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
41672 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
41673
41674 # Sed expression to map a string onto a valid variable name.
41675 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
41676 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
41677
41678
41679 exec 6>&1
41680 ## ----------------------------------- ##
41681 ## Main body of $CONFIG_STATUS script. ##
41682 ## ----------------------------------- ##
41683 _ASEOF
41684 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
41685
41686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41687 # Save the log message, to keep $0 and so on meaningful, and to
41688 # report actual input values of CONFIG_FILES etc. instead of their
41689 # values after options handling.
41690 ac_log="
41691 This file was extended by ImageMagick $as_me 7.1.2-25, which was
41692 generated by GNU Autoconf 2.72. Invocation command line was
41693
41694 CONFIG_FILES = $CONFIG_FILES
41695 CONFIG_HEADERS = $CONFIG_HEADERS
41696 CONFIG_LINKS = $CONFIG_LINKS
41697 CONFIG_COMMANDS = $CONFIG_COMMANDS
41698 $ $0 $@
41699
41700 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41701 "
41702
41703 _ACEOF
41704
41705 case $ac_config_files in *"
41706 "*) set x $ac_config_files; shift; ac_config_files=$*;;
41707 esac
41708
41709 case $ac_config_headers in *"
41710 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
41711 esac
41712
41713
41714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41715 # Files that config.status was made for.
41716 config_files="$ac_config_files"
41717 config_headers="$ac_config_headers"
41718 config_commands="$ac_config_commands"
41719
41720 _ACEOF
41721
41722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41723 ac_cs_usage="\
41724 '$as_me' instantiates files and other configuration actions
41725 from templates according to the current configuration. Unless the files
41726 and actions are specified as TAGs, all are instantiated by default.
41727
41728 Usage: $0 [OPTION]... [TAG]...
41729
41730 -h, --help print this help, then exit
41731 -V, --version print version number and configuration settings, then exit
41732 --config print configuration, then exit
41733 -q, --quiet, --silent
41734 do not print progress messages
41735 -d, --debug don't remove temporary files
41736 --recheck update $as_me by reconfiguring in the same conditions
41737 --file=FILE[:TEMPLATE]
41738 instantiate the configuration file FILE
41739 --header=FILE[:TEMPLATE]
41740 instantiate the configuration header FILE
41741
41742 Configuration files:
41743 $config_files
41744
41745 Configuration headers:
41746 $config_headers
41747
41748 Configuration commands:
41749 $config_commands
41750
41751 Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>.
41752 ImageMagick home page: <https://imagemagick.org>."
41753
41754 _ACEOF
41755 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
41756 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
41757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41758 ac_cs_config='$ac_cs_config_escaped'
41759 ac_cs_version="\\
41760 ImageMagick config.status 7.1.2-25
41761 configured by $0, generated by GNU Autoconf 2.72,
41762 with options \\"\$ac_cs_config\\"
41763
41764 Copyright (C) 2023 Free Software Foundation, Inc.
41765 This config.status script is free software; the Free Software Foundation
41766 gives unlimited permission to copy, distribute and modify it."
41767
41768 ac_pwd='$ac_pwd'
41769 srcdir='$srcdir'
41770 INSTALL='$INSTALL'
41771 MKDIR_P='$MKDIR_P'
41772 AWK='$AWK'
41773 test -n "\$AWK" || AWK=awk
41774 _ACEOF
41775
41776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41777 # The default lists apply if the user does not specify any file.
41778 ac_need_defaults=:
41779 while test $# != 0
41780 do
41781 case $1 in
41782 --*=?*)
41783 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41784 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41785 ac_shift=:
41786 ;;
41787 --*=)
41788 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41789 ac_optarg=
41790 ac_shift=:
41791 ;;
41792 *)
41793 ac_option=$1
41794 ac_optarg=$2
41795 ac_shift=shift
41796 ;;
41797 esac
41798
41799 case $ac_option in
41800 # Handling of the options.
41801 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41802 ac_cs_recheck=: ;;
41803 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41804 printf "%s\n" "$ac_cs_version"; exit ;;
41805 --config | --confi | --conf | --con | --co | --c )
41806 printf "%s\n" "$ac_cs_config"; exit ;;
41807 --debug | --debu | --deb | --de | --d | -d )
41808 debug=: ;;
41809 --file | --fil | --fi | --f )
41810 $ac_shift
41811 case $ac_optarg in
41812 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41813 '') as_fn_error $? "missing file argument" ;;
41814 esac
41815 as_fn_append CONFIG_FILES " '$ac_optarg'"
41816 ac_need_defaults=false;;
41817 --header | --heade | --head | --hea )
41818 $ac_shift
41819 case $ac_optarg in
41820 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41821 esac
41822 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
41823 ac_need_defaults=false;;
41824 --he | --h)
41825 # Conflict between --help and --header
41826 as_fn_error $? "ambiguous option: '$1'
41827 Try '$0 --help' for more information.";;
41828 --help | --hel | -h )
41829 printf "%s\n" "$ac_cs_usage"; exit ;;
41830 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41831 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41832 ac_cs_silent=: ;;
41833
41834 # This is an error.
41835 -*) as_fn_error $? "unrecognized option: '$1'
41836 Try '$0 --help' for more information." ;;
41837
41838 *) as_fn_append ac_config_targets " $1"
41839 ac_need_defaults=false ;;
41840
41841 esac
41842 shift
41843 done
41844
41845 ac_configure_extra_args=
41846
41847 if $ac_cs_silent; then
41848 exec 6>/dev/null
41849 ac_configure_extra_args="$ac_configure_extra_args --silent"
41850 fi
41851
41852 _ACEOF
41853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41854 if \$ac_cs_recheck; then
41855 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41856 shift
41857 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
41858 CONFIG_SHELL='$SHELL'
41859 export CONFIG_SHELL
41860 exec "\$@"
41861 fi
41862
41863 _ACEOF
41864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41865 exec 5>>config.log
41866 {
41867 echo
41868 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41869 ## Running $as_me. ##
41870 _ASBOX
41871 printf "%s\n" "$ac_log"
41872 } >&5
41873
41874 _ACEOF
41875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41876 #
41877 # INIT-COMMANDS
41878 #
41879 PACKAGE="$PACKAGE"
41880 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
41881
41882
41883 # The HP-UX ksh and POSIX shell print the target directory to stdout
41884 # if CDPATH is set.
41885 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41886
41887 sed_quote_subst='$sed_quote_subst'
41888 double_quote_subst='$double_quote_subst'
41889 delay_variable_subst='$delay_variable_subst'
41890 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41891 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41892 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41893 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41894 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41895 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41896 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41897 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41898 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41899 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41900 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
41901 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41902 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41903 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41904 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41905 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41906 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41907 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
41908 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41909 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41910 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41911 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41912 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41913 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41914 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41915 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41916 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41917 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41918 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41919 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41920 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41921 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41922 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41923 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41924 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41925 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41926 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41927 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
41928 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41929 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41930 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41931 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41932 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41933 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41934 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
41935 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41936 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41937 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41938 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41939 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41940 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41941 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41942 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41943 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41944 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41945 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41946 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41947 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41948 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41949 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
41950 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41951 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"`'
41952 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
41953 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41954 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41955 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
41956 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41957 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41958 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41959 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41960 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41961 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41962 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41963 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41964 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41965 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41966 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41967 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41968 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41969 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41970 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41971 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41972 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41973 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41974 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41975 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41976 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41977 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41978 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41979 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41980 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41981 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41982 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41983 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41984 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41985 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41986 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41987 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41988 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41989 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41990 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41991 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41992 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41993 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41994 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41995 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41996 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41997 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41998 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41999 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
42000 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
42001 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42002 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42003 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42004 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42005 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42006 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42007 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42008 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42009 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42010 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42011 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42012 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42013 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42014 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42015 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42016 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42017 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42018 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42019 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42020 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42021 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42022 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42023 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42024 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42025 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42026 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42027 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42028 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
42029 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
42030 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
42031 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
42032 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
42033 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
42034 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
42035 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
42036 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42037 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42038 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
42039 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
42040 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
42041 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
42042 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
42043 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
42044 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
42045 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
42046 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
42047 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
42048 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
42049 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
42050 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42051 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42052 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42053 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42054 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42055 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42056 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
42057 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
42058 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
42059 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
42060 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
42061 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
42062 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
42063 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
42064 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
42065 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
42066 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
42067 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
42068 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
42069 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42070 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
42071 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
42072 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42073 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
42074 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
42075 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
42076 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
42077 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
42078 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
42079 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
42080 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
42081 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
42082
42083 LTCC='$LTCC'
42084 LTCFLAGS='$LTCFLAGS'
42085 compiler='$compiler_DEFAULT'
42086
42087 # A function that is used when there is no print builtin or printf.
42088 func_fallback_echo ()
42089 {
42090 eval 'cat <<_LTECHO_EOF
42091 \$1
42092 _LTECHO_EOF'
42093 }
42094
42095 # Quote evaled strings.
42096 for var in SED \
42097 GREP \
42098 EGREP \
42099 FGREP \
42100 SHELL \
42101 ECHO \
42102 LD \
42103 AS \
42104 DLLTOOL \
42105 OBJDUMP \
42106 PATH_SEPARATOR \
42107 NM \
42108 LN_S \
42109 lt_SP2NL \
42110 lt_NL2SP \
42111 reload_flag \
42112 FILECMD \
42113 deplibs_check_method \
42114 file_magic_cmd \
42115 file_magic_glob \
42116 want_nocaseglob \
42117 sharedlib_from_linklib_cmd \
42118 AR \
42119 archiver_list_spec \
42120 STRIP \
42121 RANLIB \
42122 CC \
42123 CFLAGS \
42124 compiler \
42125 lt_cv_sys_global_symbol_pipe \
42126 lt_cv_sys_global_symbol_to_cdecl \
42127 lt_cv_sys_global_symbol_to_import \
42128 lt_cv_sys_global_symbol_to_c_name_address \
42129 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42130 lt_cv_nm_interface \
42131 nm_file_list_spec \
42132 lt_cv_truncate_bin \
42133 lt_prog_compiler_no_builtin_flag \
42134 lt_prog_compiler_pic \
42135 lt_prog_compiler_wl \
42136 lt_prog_compiler_static \
42137 lt_cv_prog_compiler_c_o \
42138 need_locks \
42139 MANIFEST_TOOL \
42140 DSYMUTIL \
42141 NMEDIT \
42142 LIPO \
42143 OTOOL \
42144 OTOOL64 \
42145 shrext_cmds \
42146 export_dynamic_flag_spec \
42147 whole_archive_flag_spec \
42148 compiler_needs_object \
42149 with_gnu_ld \
42150 allow_undefined_flag \
42151 no_undefined_flag \
42152 hardcode_libdir_flag_spec \
42153 hardcode_libdir_separator \
42154 exclude_expsyms \
42155 include_expsyms \
42156 file_list_spec \
42157 variables_saved_for_relink \
42158 libname_spec \
42159 library_names_spec \
42160 soname_spec \
42161 install_override_mode \
42162 finish_eval \
42163 old_striplib \
42164 striplib \
42165 compiler_lib_search_dirs \
42166 predep_objects \
42167 postdep_objects \
42168 predeps \
42169 postdeps \
42170 compiler_lib_search_path \
42171 LD_CXX \
42172 reload_flag_CXX \
42173 compiler_CXX \
42174 lt_prog_compiler_no_builtin_flag_CXX \
42175 lt_prog_compiler_pic_CXX \
42176 lt_prog_compiler_wl_CXX \
42177 lt_prog_compiler_static_CXX \
42178 lt_cv_prog_compiler_c_o_CXX \
42179 export_dynamic_flag_spec_CXX \
42180 whole_archive_flag_spec_CXX \
42181 compiler_needs_object_CXX \
42182 with_gnu_ld_CXX \
42183 allow_undefined_flag_CXX \
42184 no_undefined_flag_CXX \
42185 hardcode_libdir_flag_spec_CXX \
42186 hardcode_libdir_separator_CXX \
42187 exclude_expsyms_CXX \
42188 include_expsyms_CXX \
42189 file_list_spec_CXX \
42190 compiler_lib_search_dirs_CXX \
42191 predep_objects_CXX \
42192 postdep_objects_CXX \
42193 predeps_CXX \
42194 postdeps_CXX \
42195 compiler_lib_search_path_CXX; do
42196 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42197 *[\\\\\\\`\\"\\\$]*)
42198 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42199 ;;
42200 *)
42201 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42202 ;;
42203 esac
42204 done
42205
42206 # Double-quote double-evaled strings.
42207 for var in reload_cmds \
42208 old_postinstall_cmds \
42209 old_postuninstall_cmds \
42210 old_archive_cmds \
42211 extract_expsyms_cmds \
42212 old_archive_from_new_cmds \
42213 old_archive_from_expsyms_cmds \
42214 archive_cmds \
42215 archive_expsym_cmds \
42216 module_cmds \
42217 module_expsym_cmds \
42218 export_symbols_cmds \
42219 prelink_cmds \
42220 postlink_cmds \
42221 postinstall_cmds \
42222 postuninstall_cmds \
42223 finish_cmds \
42224 sys_lib_search_path_spec \
42225 configure_time_dlsearch_path \
42226 configure_time_lt_sys_library_path \
42227 reload_cmds_CXX \
42228 old_archive_cmds_CXX \
42229 old_archive_from_new_cmds_CXX \
42230 old_archive_from_expsyms_cmds_CXX \
42231 archive_cmds_CXX \
42232 archive_expsym_cmds_CXX \
42233 module_cmds_CXX \
42234 module_expsym_cmds_CXX \
42235 export_symbols_cmds_CXX \
42236 prelink_cmds_CXX \
42237 postlink_cmds_CXX; do
42238 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42239 *[\\\\\\\`\\"\\\$]*)
42240 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42241 ;;
42242 *)
42243 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42244 ;;
42245 esac
42246 done
42247
42248 ac_aux_dir='$ac_aux_dir'
42249
42250 # See if we are running on zsh, and set the options that allow our
42251 # commands through without removal of \ escapes INIT.
42252 if test -n "\${ZSH_VERSION+set}"; then
42253 setopt NO_GLOB_SUBST
42254 fi
42255
42256
42257 PACKAGE='$PACKAGE'
42258 VERSION='$VERSION'
42259 RM='$RM'
42260 ofile='$ofile'
42261
42262
42263
42264
42265
42266
42267 _ACEOF
42268
42269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42270
42271 # Handling of arguments.
42272 for ac_config_target in $ac_config_targets
42273 do
42274 case $ac_config_target in
42275 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
42276 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
42277 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42278 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42279 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42280 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
42281 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
42282 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
42283 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
42284 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
42285 "app-image/AppRun") CONFIG_FILES="$CONFIG_FILES app-image/AppRun" ;;
42286 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
42287 "config/policy.xml") CONFIG_FILES="$CONFIG_FILES config/policy.xml:config/policy-"$magick_cv_with_security_policy".xml" ;;
42288 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
42289 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
42290 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
42291 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
42292 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
42293 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
42294 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
42295 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
42296 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
42297 "config/type-urw-base35.xml") CONFIG_FILES="$CONFIG_FILES config/type-urw-base35.xml" ;;
42298 "config/type-urw-base35-type1.xml") CONFIG_FILES="$CONFIG_FILES config/type-urw-base35-type1.xml" ;;
42299 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
42300 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
42301 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
42302 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
42303 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
42304 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
42305 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
42306 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
42307 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
42308 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42309 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
42310 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
42311 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
42312 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
42313 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
42314 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
42315 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
42316 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
42317 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
42318 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
42319 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
42320 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
42321 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
42322 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
42323 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
42324 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
42325 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
42326 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
42327 "utilities/magick.1") CONFIG_FILES="$CONFIG_FILES utilities/magick.1" ;;
42328 "utilities/magick-script.1") CONFIG_FILES="$CONFIG_FILES utilities/magick-script.1" ;;
42329 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
42330 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
42331 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
42332 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
42333 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
42334
42335 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
42336 esac
42337 done
42338
42339
42340 # If the user did not use the arguments to specify the items to instantiate,
42341 # then the envvar interface is used. Set only those that are not.
42342 # We use the long form for the default assignment because of an extremely
42343 # bizarre bug on SunOS 4.1.3.
42344 if $ac_need_defaults; then
42345 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
42346 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
42347 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
42348 fi
42349
42350 # Have a temporary directory for convenience. Make it in the build tree
42351 # simply because there is no reason against having it here, and in addition,
42352 # creating and moving files from /tmp can sometimes cause problems.
42353 # Hook for its removal unless debugging.
42354 # Note that there is a small window in which the directory will not be cleaned:
42355 # after its creation but before its name has been assigned to '$tmp'.
42356 $debug ||
42357 {
42358 tmp= ac_tmp=
42359 trap 'exit_status=$?
42360 : "${ac_tmp:=$tmp}"
42361 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42362 ' 0
42363 trap 'as_fn_exit 1' 1 2 13 15
42364 }
42365 # Create a (secure) tmp directory for tmp files.
42366
42367 {
42368 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42369 test -d "$tmp"
42370 } ||
42371 {
42372 tmp=./conf$$-$RANDOM
42373 (umask 077 && mkdir "$tmp")
42374 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42375 ac_tmp=$tmp
42376
42377 # Set up the scripts for CONFIG_FILES section.
42378 # No need to generate them if there are no CONFIG_FILES.
42379 # This happens for instance with './config.status config.h'.
42380 if test -n "$CONFIG_FILES"; then
42381
42382
42383 ac_cr=`echo X | tr X '\015'`
42384 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42385 # But we know of no other shell where ac_cr would be empty at this
42386 # point, so we can use a bashism as a fallback.
42387 if test "x$ac_cr" = x; then
42388 eval ac_cr=\$\'\\r\'
42389 fi
42390 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42391 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42392 ac_cs_awk_cr='\\r'
42393 else
42394 ac_cs_awk_cr=$ac_cr
42395 fi
42396
42397 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42398 _ACEOF
42399
42400
42401 {
42402 echo "cat >conf$$subs.awk <<_ACEOF" &&
42403 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42404 echo "_ACEOF"
42405 } >conf$$subs.sh ||
42406 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42407 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42408 ac_delim='%!_!# '
42409 for ac_last_try in false false false false false :; do
42410 . ./conf$$subs.sh ||
42411 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42412
42413 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42414 if test $ac_delim_n = $ac_delim_num; then
42415 break
42416 elif $ac_last_try; then
42417 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42418 else
42419 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42420 fi
42421 done
42422 rm -f conf$$subs.sh
42423
42424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42425 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42426 _ACEOF
42427 sed -n '
42428 h
42429 s/^/S["/; s/!.*/"]=/
42430 p
42431 g
42432 s/^[^!]*!//
42433 :repl
42434 t repl
42435 s/'"$ac_delim"'$//
42436 t delim
42437 :nl
42438 h
42439 s/\(.\{148\}\)..*/\1/
42440 t more1
42441 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42442 p
42443 n
42444 b repl
42445 :more1
42446 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42447 p
42448 g
42449 s/.\{148\}//
42450 t nl
42451 :delim
42452 h
42453 s/\(.\{148\}\)..*/\1/
42454 t more2
42455 s/["\\]/\\&/g; s/^/"/; s/$/"/
42456 p
42457 b
42458 :more2
42459 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42460 p
42461 g
42462 s/.\{148\}//
42463 t delim
42464 ' <conf$$subs.awk | sed '
42465 /^[^""]/{
42466 N
42467 s/\n//
42468 }
42469 ' >>$CONFIG_STATUS || ac_write_fail=1
42470 rm -f conf$$subs.awk
42471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42472 _ACAWK
42473 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42474 for (key in S) S_is_set[key] = 1
42475 FS = ""
42476
42477 }
42478 {
42479 line = $ 0
42480 nfields = split(line, field, "@")
42481 substed = 0
42482 len = length(field[1])
42483 for (i = 2; i < nfields; i++) {
42484 key = field[i]
42485 keylen = length(key)
42486 if (S_is_set[key]) {
42487 value = S[key]
42488 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42489 len += length(value) + length(field[++i])
42490 substed = 1
42491 } else
42492 len += 1 + keylen
42493 }
42494
42495 print line
42496 }
42497
42498 _ACAWK
42499 _ACEOF
42500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42501 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42502 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42503 else
42504 cat
42505 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42506 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42507 _ACEOF
42508
42509 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42510 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42511 # trailing colons and then remove the whole line if VPATH becomes empty
42512 # (actually we leave an empty line to preserve line numbers).
42513 if test "x$srcdir" = x.; then
42514 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42515 h
42516 s///
42517 s/^/:/
42518 s/[ ]*$/:/
42519 s/:\$(srcdir):/:/g
42520 s/:\${srcdir}:/:/g
42521 s/:@srcdir@:/:/g
42522 s/^:*//
42523 s/:*$//
42524 x
42525 s/\(=[ ]*\).*/\1/
42526 G
42527 s/\n//
42528 s/^[^=]*=[ ]*$//
42529 }'
42530 fi
42531
42532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42533 fi # test -n "$CONFIG_FILES"
42534
42535 # Set up the scripts for CONFIG_HEADERS section.
42536 # No need to generate them if there are no CONFIG_HEADERS.
42537 # This happens for instance with './config.status Makefile'.
42538 if test -n "$CONFIG_HEADERS"; then
42539 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42540 BEGIN {
42541 _ACEOF
42542
42543 # Transform confdefs.h into an awk script 'defines.awk', embedded as
42544 # here-document in config.status, that substitutes the proper values into
42545 # config.h.in to produce config.h.
42546
42547 # Create a delimiter string that does not exist in confdefs.h, to ease
42548 # handling of long lines.
42549 ac_delim='%!_!# '
42550 for ac_last_try in false false :; do
42551 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42552 if test -z "$ac_tt"; then
42553 break
42554 elif $ac_last_try; then
42555 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42556 else
42557 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42558 fi
42559 done
42560
42561 # For the awk script, D is an array of macro values keyed by name,
42562 # likewise P contains macro parameters if any. Preserve backslash
42563 # newline sequences.
42564
42565 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42566 sed -n '
42567 s/.\{148\}/&'"$ac_delim"'/g
42568 t rset
42569 :rset
42570 s/^[ ]*#[ ]*define[ ][ ]*/ /
42571 t def
42572 d
42573 :def
42574 s/\\$//
42575 t bsnl
42576 s/["\\]/\\&/g
42577 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42578 D["\1"]=" \3"/p
42579 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
42580 d
42581 :bsnl
42582 s/["\\]/\\&/g
42583 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42584 D["\1"]=" \3\\\\\\n"\\/p
42585 t cont
42586 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42587 t cont
42588 d
42589 :cont
42590 n
42591 s/.\{148\}/&'"$ac_delim"'/g
42592 t clear
42593 :clear
42594 s/\\$//
42595 t bsnlc
42596 s/["\\]/\\&/g; s/^/"/; s/$/"/p
42597 d
42598 :bsnlc
42599 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42600 b cont
42601 ' <confdefs.h | sed '
42602 s/'"$ac_delim"'/"\\\
42603 "/g' >>$CONFIG_STATUS || ac_write_fail=1
42604
42605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42606 for (key in D) D_is_set[key] = 1
42607 FS = ""
42608 }
42609 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42610 line = \$ 0
42611 split(line, arg, " ")
42612 if (arg[1] == "#") {
42613 defundef = arg[2]
42614 mac1 = arg[3]
42615 } else {
42616 defundef = substr(arg[1], 2)
42617 mac1 = arg[2]
42618 }
42619 split(mac1, mac2, "(") #)
42620 macro = mac2[1]
42621 prefix = substr(line, 1, index(line, defundef) - 1)
42622 if (D_is_set[macro]) {
42623 # Preserve the white space surrounding the "#".
42624 print prefix "define", macro P[macro] D[macro]
42625 next
42626 } else {
42627 # Replace #undef with comments. This is necessary, for example,
42628 # in the case of _POSIX_SOURCE, which is predefined and required
42629 # on some systems where configure will not decide to define it.
42630 if (defundef == "undef") {
42631 print "/*", prefix defundef, macro, "*/"
42632 next
42633 }
42634 }
42635 }
42636 { print }
42637 _ACAWK
42638 _ACEOF
42639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42640 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42641 fi # test -n "$CONFIG_HEADERS"
42642
42643
42644 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42645 shift
42646 for ac_tag
42647 do
42648 case $ac_tag in
42649 :[FHLC]) ac_mode=$ac_tag; continue;;
42650 esac
42651 case $ac_mode$ac_tag in
42652 :[FHL]*:*);;
42653 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
42654 :[FH]-) ac_tag=-:-;;
42655 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42656 esac
42657 ac_save_IFS=$IFS
42658 IFS=:
42659 set x $ac_tag
42660 IFS=$ac_save_IFS
42661 shift
42662 ac_file=$1
42663 shift
42664
42665 case $ac_mode in
42666 :L) ac_source=$1;;
42667 :[FH])
42668 ac_file_inputs=
42669 for ac_f
42670 do
42671 case $ac_f in
42672 -) ac_f="$ac_tmp/stdin";;
42673 *) # Look for the file first in the build tree, then in the source tree
42674 # (if the path is not absolute). The absolute path cannot be DOS-style,
42675 # because $ac_f cannot contain ':'.
42676 test -f "$ac_f" ||
42677 case $ac_f in
42678 [\\/$]*) false;;
42679 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42680 esac ||
42681 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
42682 esac
42683 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42684 as_fn_append ac_file_inputs " '$ac_f'"
42685 done
42686
42687 # Let's still pretend it is 'configure' which instantiates (i.e., don't
42688 # use $as_me), people would be surprised to read:
42689 # /* config.h. Generated by config.status. */
42690 configure_input='Generated from '`
42691 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42692 `' by configure.'
42693 if test x"$ac_file" != x-; then
42694 configure_input="$ac_file. $configure_input"
42695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42696 printf "%s\n" "$as_me: creating $ac_file" >&6;}
42697 fi
42698 # Neutralize special characters interpreted by sed in replacement strings.
42699 case $configure_input in #(
42700 *\&* | *\|* | *\\* )
42701 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
42702 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42703 *) ac_sed_conf_input=$configure_input;;
42704 esac
42705
42706 case $ac_tag in
42707 *:-:* | *:-) cat >"$ac_tmp/stdin" \
42708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42709 esac
42710 ;;
42711 esac
42712
42713 ac_dir=`$as_dirname -- "$ac_file" ||
42714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42715 X"$ac_file" : 'X\(//\)[^/]' \| \
42716 X"$ac_file" : 'X\(//\)$' \| \
42717 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42718 printf "%s\n" X"$ac_file" |
42719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42720 s//\1/
42721 q
42722 }
42723 /^X\(\/\/\)[^/].*/{
42724 s//\1/
42725 q
42726 }
42727 /^X\(\/\/\)$/{
42728 s//\1/
42729 q
42730 }
42731 /^X\(\/\).*/{
42732 s//\1/
42733 q
42734 }
42735 s/.*/./; q'`
42736 as_dir="$ac_dir"; as_fn_mkdir_p
42737 ac_builddir=.
42738
42739 case "$ac_dir" in
42740 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42741 *)
42742 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
42743 # A ".." for each directory in $ac_dir_suffix.
42744 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42745 case $ac_top_builddir_sub in
42746 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42747 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42748 esac ;;
42749 esac
42750 ac_abs_top_builddir=$ac_pwd
42751 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42752 # for backward compatibility:
42753 ac_top_builddir=$ac_top_build_prefix
42754
42755 case $srcdir in
42756 .) # We are building in place.
42757 ac_srcdir=.
42758 ac_top_srcdir=$ac_top_builddir_sub
42759 ac_abs_top_srcdir=$ac_pwd ;;
42760 [\\/]* | ?:[\\/]* ) # Absolute name.
42761 ac_srcdir=$srcdir$ac_dir_suffix;
42762 ac_top_srcdir=$srcdir
42763 ac_abs_top_srcdir=$srcdir ;;
42764 *) # Relative name.
42765 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42766 ac_top_srcdir=$ac_top_build_prefix$srcdir
42767 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42768 esac
42769 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42770
42771
42772 case $ac_mode in
42773 :F)
42774 #
42775 # CONFIG_FILE
42776 #
42777
42778 case $INSTALL in
42779 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42780 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42781 esac
42782 ac_MKDIR_P=$MKDIR_P
42783 case $MKDIR_P in
42784 [\\/$]* | ?:[\\/]* ) ;;
42785 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
42786 esac
42787 _ACEOF
42788
42789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42790 # If the template does not know about datarootdir, expand it.
42791 # FIXME: This hack should be removed a few years after 2.60.
42792 ac_datarootdir_hack=; ac_datarootdir_seen=
42793 ac_sed_dataroot='
42794 /datarootdir/ {
42795 p
42796 q
42797 }
42798 /@datadir@/p
42799 /@docdir@/p
42800 /@infodir@/p
42801 /@localedir@/p
42802 /@mandir@/p'
42803 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42804 *datarootdir*) ac_datarootdir_seen=yes;;
42805 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42807 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42808 _ACEOF
42809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42810 ac_datarootdir_hack='
42811 s&@datadir@&$datadir&g
42812 s&@docdir@&$docdir&g
42813 s&@infodir@&$infodir&g
42814 s&@localedir@&$localedir&g
42815 s&@mandir@&$mandir&g
42816 s&\\\${datarootdir}&$datarootdir&g' ;;
42817 esac
42818 _ACEOF
42819
42820 # Neutralize VPATH when '$srcdir' = '.'.
42821 # Shell code in configure.ac might set extrasub.
42822 # FIXME: do we really want to maintain this feature?
42823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42824 ac_sed_extra="$ac_vpsub
42825 $extrasub
42826 _ACEOF
42827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42828 :t
42829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42830 s|@configure_input@|$ac_sed_conf_input|;t t
42831 s&@top_builddir@&$ac_top_builddir_sub&;t t
42832 s&@top_build_prefix@&$ac_top_build_prefix&;t t
42833 s&@srcdir@&$ac_srcdir&;t t
42834 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42835 s&@top_srcdir@&$ac_top_srcdir&;t t
42836 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42837 s&@builddir@&$ac_builddir&;t t
42838 s&@abs_builddir@&$ac_abs_builddir&;t t
42839 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42840 s&@INSTALL@&$ac_INSTALL&;t t
42841 s&@MKDIR_P@&$ac_MKDIR_P&;t t
42842 $ac_datarootdir_hack
42843 "
42844 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
42845 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42846
42847 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42848 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
42849 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
42850 "$ac_tmp/out"`; test -z "$ac_out"; } &&
42851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
42852 which seems to be undefined. Please make sure it is defined" >&5
42853 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
42854 which seems to be undefined. Please make sure it is defined" >&2;}
42855
42856 rm -f "$ac_tmp/stdin"
42857 case $ac_file in
42858 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42859 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42860 esac \
42861 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42862 ;;
42863 :H)
42864 #
42865 # CONFIG_HEADER
42866 #
42867 if test x"$ac_file" != x-; then
42868 {
42869 printf "%s\n" "/* $configure_input */" >&1 \
42870 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42871 } >"$ac_tmp/config.h" \
42872 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42873 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42875 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
42876 else
42877 rm -f "$ac_file"
42878 mv "$ac_tmp/config.h" "$ac_file" \
42879 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42880 fi
42881 else
42882 printf "%s\n" "/* $configure_input */" >&1 \
42883 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42884 || as_fn_error $? "could not create -" "$LINENO" 5
42885 fi
42886 # Compute "$ac_file"'s index in $config_headers.
42887 _am_arg="$ac_file"
42888 _am_stamp_count=1
42889 for _am_header in $config_headers :; do
42890 case $_am_header in
42891 $_am_arg | $_am_arg:* )
42892 break ;;
42893 * )
42894 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42895 esac
42896 done
42897 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42898 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42899 X"$_am_arg" : 'X\(//\)[^/]' \| \
42900 X"$_am_arg" : 'X\(//\)$' \| \
42901 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42902 printf "%s\n" X"$_am_arg" |
42903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42904 s//\1/
42905 q
42906 }
42907 /^X\(\/\/\)[^/].*/{
42908 s//\1/
42909 q
42910 }
42911 /^X\(\/\/\)$/{
42912 s//\1/
42913 q
42914 }
42915 /^X\(\/\).*/{
42916 s//\1/
42917 q
42918 }
42919 s/.*/./; q'`/stamp-h$_am_stamp_count
42920 ;;
42921
42922 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42923 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
42924 ;;
42925 esac
42926
42927
42928 case $ac_file$ac_mode in
42929 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
42930 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
42931 ac_prefix_conf_PKG=`echo MagickCore`
42932 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
42933 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
42934 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
42935 if test ".$ac_prefix_conf_INP" = "."; then
42936 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
42937 case "$ac_file" in
42938 *.h) ac_prefix_conf_INP=$ac_file ;;
42939 *)
42940 esac
42941 test ".$ac_prefix_conf_INP" != "." && break
42942 done
42943 fi
42944 if test ".$ac_prefix_conf_INP" = "."; then
42945 case "$ac_prefix_conf_OUT" in
42946 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
42947 ;;
42948 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
42949 ;;
42950 *) ac_prefix_conf_INP=config.h
42951 ;;
42952 esac
42953 fi
42954 if test -z "$ac_prefix_conf_PKG" ; then
42955 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
42956 else
42957 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
42958 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
42959 fi fi
42960 { 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
42961 printf "%s\n" "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
42962 if test -f $ac_prefix_conf_INP ; then
42963 printf "%s\n" "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
42964 printf "%s\n" "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
42965 printf "%s\n" "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
42966 printf "%s\n" "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
42967 printf "%s\n" "#endif/" >> conftest.prefix
42968 printf "%s\n" "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
42969 printf "%s\n" "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
42970 printf "%s\n" "#endif/" >> conftest.prefix
42971 # now executing _script on _DEF input to create _OUT output file
42972 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
42973 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
42974 echo ' ' >>$tmp/pconfig.h
42975 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
42976
42977 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
42978 echo ' ' >>$tmp/pconfig.h
42979 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
42980 echo "#endif" >>$tmp/pconfig.h
42981 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
42982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
42983 printf "%s\n" "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
42984 else
42985 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
42986 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42987 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
42988 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
42989 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
42990 printf "%s\n" X"$ac_prefix_conf_OUT" |
42991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42992 s//\1/
42993 q
42994 }
42995 /^X\(\/\/\)[^/].*/{
42996 s//\1/
42997 q
42998 }
42999 /^X\(\/\/\)$/{
43000 s//\1/
43001 q
43002 }
43003 /^X\(\/\).*/{
43004 s//\1/
43005 q
43006 }
43007 s/.*/./; q'`
43008 as_dir="$ac_dir"; as_fn_mkdir_p
43009 rm -f "$ac_prefix_conf_OUT"
43010 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
43011 fi
43012 else
43013 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
43014 fi
43015 rm -f conftest.*
43016 fi
43017 ;;
43018 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43019 # Older Autoconf quotes --file arguments for eval, but not when files
43020 # are listed without --file. Let's play safe and only enable the eval
43021 # if we detect the quoting.
43022 # TODO: see whether this extra hack can be removed once we start
43023 # requiring Autoconf 2.70 or later.
43024 case $CONFIG_FILES in #(
43025 *\'*) :
43026 eval set x "$CONFIG_FILES" ;; #(
43027 *) :
43028 set x $CONFIG_FILES ;; #(
43029 *) :
43030 ;;
43031 esac
43032 shift
43033 # Used to flag and report bootstrapping failures.
43034 am_rc=0
43035 for am_mf
43036 do
43037 # Strip MF so we end up with the name of the file.
43038 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
43039 # Check whether this is an Automake generated Makefile which includes
43040 # dependency-tracking related rules and includes.
43041 # Grep'ing the whole file directly is not great: AIX grep has a line
43042 # limit of 2048, but all sed's we know have understand at least 4000.
43043 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
43044 || continue
43045 am_dirpart=`$as_dirname -- "$am_mf" ||
43046 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43047 X"$am_mf" : 'X\(//\)[^/]' \| \
43048 X"$am_mf" : 'X\(//\)$' \| \
43049 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
43050 printf "%s\n" X"$am_mf" |
43051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43052 s//\1/
43053 q
43054 }
43055 /^X\(\/\/\)[^/].*/{
43056 s//\1/
43057 q
43058 }
43059 /^X\(\/\/\)$/{
43060 s//\1/
43061 q
43062 }
43063 /^X\(\/\).*/{
43064 s//\1/
43065 q
43066 }
43067 s/.*/./; q'`
43068 am_filepart=`$as_basename -- "$am_mf" ||
43069 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
43070 X"$am_mf" : 'X\(//\)$' \| \
43071 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
43072 printf "%s\n" X/"$am_mf" |
43073 sed '/^.*\/\([^/][^/]*\)\/*$/{
43074 s//\1/
43075 q
43076 }
43077 /^X\/\(\/\/\)$/{
43078 s//\1/
43079 q
43080 }
43081 /^X\/\(\/\).*/{
43082 s//\1/
43083 q
43084 }
43085 s/.*/./; q'`
43086 { echo "$as_me:$LINENO: cd "$am_dirpart" \
43087 && sed -e '/# am--include-marker/d' "$am_filepart" \
43088 | $MAKE -f - am--depfiles" >&5
43089 (cd "$am_dirpart" \
43090 && sed -e '/# am--include-marker/d' "$am_filepart" \
43091 | $MAKE -f - am--depfiles) >&5 2>&5
43092 ac_status=$?
43093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43094 (exit $ac_status); } || am_rc=$?
43095 done
43096 if test $am_rc -ne 0; then
43097 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
43098 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
43099 as_fn_error $? "Something went wrong bootstrapping makefile fragments
43100 for automatic dependency tracking. If GNU make was not used, consider
43101 re-running the configure script with MAKE=\"gmake\" (or whatever is
43102 necessary). You can also try re-running configure with the
43103 '--disable-dependency-tracking' option to at least be able to build
43104 the package (albeit without support for automatic dependency tracking).
43105 See 'config.log' for more details" "$LINENO" 5; }
43106 fi
43107 { am_dirpart=; unset am_dirpart;}
43108 { am_filepart=; unset am_filepart;}
43109 { am_mf=; unset am_mf;}
43110 { am_rc=; unset am_rc;}
43111 rm -f conftest-deps.mk
43112 }
43113 ;;
43114 "libtool":C)
43115
43116 # See if we are running on zsh, and set the options that allow our
43117 # commands through without removal of \ escapes.
43118 if test -n "${ZSH_VERSION+set}"; then
43119 setopt NO_GLOB_SUBST
43120 fi
43121
43122 cfgfile=${ofile}T
43123 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43124 $RM "$cfgfile"
43125
43126 cat <<_LT_EOF >> "$cfgfile"
43127 #! $SHELL
43128 # Generated automatically by $as_me ($PACKAGE) $VERSION
43129 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43130
43131 # Provide generalized library-building support services.
43132 # Written by Gordon Matzigkeit, 1996
43133
43134 # Copyright (C) 2024 Free Software Foundation, Inc.
43135 # This is free software; see the source for copying conditions. There is NO
43136 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43137
43138 # GNU Libtool is free software; you can redistribute it and/or modify
43139 # it under the terms of the GNU General Public License as published by
43140 # the Free Software Foundation; either version 2 of the License, or
43141 # (at your option) any later version.
43142 #
43143 # As a special exception to the GNU General Public License, if you
43144 # distribute this file as part of a program or library that is built
43145 # using GNU Libtool, you may include this file under the same
43146 # distribution terms that you use for the rest of that program.
43147 #
43148 # GNU Libtool is distributed in the hope that it will be useful, but
43149 # WITHOUT ANY WARRANTY; without even the implied warranty of
43150 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43151 # GNU General Public License for more details.
43152 #
43153 # You should have received a copy of the GNU General Public License
43154 # along with this program. If not, see <http://www.gnu.org/licenses/>.
43155
43156
43157 # The names of the tagged configurations supported by this script.
43158 available_tags='CXX '
43159
43160 # Configured defaults for sys_lib_dlsearch_path munging.
43161 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43162
43163 # ### BEGIN LIBTOOL CONFIG
43164
43165 # A sed program that does not truncate output.
43166 SED=$lt_SED
43167
43168 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43169 Xsed="\$SED -e 1s/^X//"
43170
43171 # A grep program that handles long lines.
43172 GREP=$lt_GREP
43173
43174 # An ERE matcher.
43175 EGREP=$lt_EGREP
43176
43177 # A literal string matcher.
43178 FGREP=$lt_FGREP
43179
43180 # Shell to use when invoking shell scripts.
43181 SHELL=$lt_SHELL
43182
43183 # An echo program that protects backslashes.
43184 ECHO=$lt_ECHO
43185
43186 # Which release of libtool.m4 was used?
43187 macro_version=$macro_version
43188 macro_revision=$macro_revision
43189
43190 # Assembler program.
43191 AS=$lt_AS
43192
43193 # DLL creation program.
43194 DLLTOOL=$lt_DLLTOOL
43195
43196 # Object dumper program.
43197 OBJDUMP=$lt_OBJDUMP
43198
43199 # Whether or not to build shared libraries.
43200 build_libtool_libs=$enable_shared
43201
43202 # Whether or not to build static libraries.
43203 build_old_libs=$enable_static
43204
43205 # What type of objects to build.
43206 pic_mode=$pic_mode
43207
43208 # Whether or not to optimize for fast installation.
43209 fast_install=$enable_fast_install
43210
43211 # Shared archive member basename,for filename based shared library versioning on AIX.
43212 shared_archive_member_spec=$shared_archive_member_spec
43213
43214 # The PATH separator for the build system.
43215 PATH_SEPARATOR=$lt_PATH_SEPARATOR
43216
43217 # The host system.
43218 host_alias=$host_alias
43219 host=$host
43220 host_os=$host_os
43221
43222 # The build system.
43223 build_alias=$build_alias
43224 build=$build
43225 build_os=$build_os
43226
43227 # A BSD- or MS-compatible name lister.
43228 NM=$lt_NM
43229
43230 # Whether we need soft or hard links.
43231 LN_S=$lt_LN_S
43232
43233 # What is the maximum length of a command?
43234 max_cmd_len=$max_cmd_len
43235
43236 # Object file suffix (normally "o").
43237 objext=$ac_objext
43238
43239 # Executable file suffix (normally "").
43240 exeext=$exeext
43241
43242 # whether the shell understands "unset".
43243 lt_unset=$lt_unset
43244
43245 # turn spaces into newlines.
43246 SP2NL=$lt_lt_SP2NL
43247
43248 # turn newlines into spaces.
43249 NL2SP=$lt_lt_NL2SP
43250
43251 # convert \$build file names to \$host format.
43252 to_host_file_cmd=$lt_cv_to_host_file_cmd
43253
43254 # convert \$build files to toolchain format.
43255 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43256
43257 # A file(cmd) program that detects file types.
43258 FILECMD=$lt_FILECMD
43259
43260 # Method to check whether dependent libraries are shared objects.
43261 deplibs_check_method=$lt_deplibs_check_method
43262
43263 # Command to use when deplibs_check_method = "file_magic".
43264 file_magic_cmd=$lt_file_magic_cmd
43265
43266 # How to find potential files when deplibs_check_method = "file_magic".
43267 file_magic_glob=$lt_file_magic_glob
43268
43269 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43270 want_nocaseglob=$lt_want_nocaseglob
43271
43272 # Command to associate shared and link libraries.
43273 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43274
43275 # The archiver.
43276 AR=$lt_AR
43277
43278 # Flags to create an archive (by configure).
43279 lt_ar_flags=$lt_ar_flags
43280
43281 # Flags to create an archive.
43282 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
43283
43284 # How to feed a file listing to the archiver.
43285 archiver_list_spec=$lt_archiver_list_spec
43286
43287 # A symbol stripping program.
43288 STRIP=$lt_STRIP
43289
43290 # Commands used to install an old-style archive.
43291 RANLIB=$lt_RANLIB
43292 old_postinstall_cmds=$lt_old_postinstall_cmds
43293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43294
43295 # Whether to use a lock for old archive extraction.
43296 lock_old_archive_extraction=$lock_old_archive_extraction
43297
43298 # A C compiler.
43299 LTCC=$lt_CC
43300
43301 # LTCC compiler flags.
43302 LTCFLAGS=$lt_CFLAGS
43303
43304 # Take the output of nm and produce a listing of raw symbols and C names.
43305 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43306
43307 # Transform the output of nm in a proper C declaration.
43308 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43309
43310 # Transform the output of nm into a list of symbols to manually relocate.
43311 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43312
43313 # Transform the output of nm in a C name address pair.
43314 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43315
43316 # Transform the output of nm in a C name address pair when lib prefix is needed.
43317 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43318
43319 # The name lister interface.
43320 nm_interface=$lt_lt_cv_nm_interface
43321
43322 # Specify filename containing input files for \$NM.
43323 nm_file_list_spec=$lt_nm_file_list_spec
43324
43325 # The root where to search for dependent libraries,and where our libraries should be installed.
43326 lt_sysroot=$lt_sysroot
43327
43328 # Command to truncate a binary pipe.
43329 lt_truncate_bin=$lt_lt_cv_truncate_bin
43330
43331 # The name of the directory that contains temporary libtool files.
43332 objdir=$objdir
43333
43334 # Used to examine libraries when file_magic_cmd begins with "file".
43335 MAGIC_CMD=$MAGIC_CMD
43336
43337 # Must we lock files when doing compilation?
43338 need_locks=$lt_need_locks
43339
43340 # Manifest tool.
43341 MANIFEST_TOOL=$lt_MANIFEST_TOOL
43342
43343 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43344 DSYMUTIL=$lt_DSYMUTIL
43345
43346 # Tool to change global to local symbols on Mac OS X.
43347 NMEDIT=$lt_NMEDIT
43348
43349 # Tool to manipulate fat objects and archives on Mac OS X.
43350 LIPO=$lt_LIPO
43351
43352 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43353 OTOOL=$lt_OTOOL
43354
43355 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43356 OTOOL64=$lt_OTOOL64
43357
43358 # Old archive suffix (normally "a").
43359 libext=$libext
43360
43361 # Shared library suffix (normally ".so").
43362 shrext_cmds=$lt_shrext_cmds
43363
43364 # The commands to extract the exported symbol list from a shared archive.
43365 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43366
43367 # Variables whose values should be saved in libtool wrapper scripts and
43368 # restored at link time.
43369 variables_saved_for_relink=$lt_variables_saved_for_relink
43370
43371 # Do we need the "lib" prefix for modules?
43372 need_lib_prefix=$need_lib_prefix
43373
43374 # Do we need a version for libraries?
43375 need_version=$need_version
43376
43377 # Library versioning type.
43378 version_type=$version_type
43379
43380 # Shared library runtime path variable.
43381 runpath_var=$runpath_var
43382
43383 # Shared library path variable.
43384 shlibpath_var=$shlibpath_var
43385
43386 # Is shlibpath searched before the hard-coded library search path?
43387 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43388
43389 # Format of library name prefix.
43390 libname_spec=$lt_libname_spec
43391
43392 # List of archive names. First name is the real one, the rest are links.
43393 # The last name is the one that the linker finds with -lNAME
43394 library_names_spec=$lt_library_names_spec
43395
43396 # The coded name of the library, if different from the real name.
43397 soname_spec=$lt_soname_spec
43398
43399 # Permission mode override for installation of shared libraries.
43400 install_override_mode=$lt_install_override_mode
43401
43402 # Command to use after installation of a shared archive.
43403 postinstall_cmds=$lt_postinstall_cmds
43404
43405 # Command to use after uninstallation of a shared archive.
43406 postuninstall_cmds=$lt_postuninstall_cmds
43407
43408 # Commands used to finish a libtool library installation in a directory.
43409 finish_cmds=$lt_finish_cmds
43410
43411 # As "finish_cmds", except a single script fragment to be evaled but
43412 # not shown.
43413 finish_eval=$lt_finish_eval
43414
43415 # Whether we should hardcode library paths into libraries.
43416 hardcode_into_libs=$hardcode_into_libs
43417
43418 # Compile-time system search path for libraries.
43419 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43420
43421 # Detected run-time system search path for libraries.
43422 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43423
43424 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43425 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43426
43427 # Whether dlopen is supported.
43428 dlopen_support=$enable_dlopen
43429
43430 # Whether dlopen of programs is supported.
43431 dlopen_self=$enable_dlopen_self
43432
43433 # Whether dlopen of statically linked programs is supported.
43434 dlopen_self_static=$enable_dlopen_self_static
43435
43436 # Commands to strip libraries.
43437 old_striplib=$lt_old_striplib
43438 striplib=$lt_striplib
43439
43440
43441 # The linker used to build libraries.
43442 LD=$lt_LD
43443
43444 # How to create reloadable object files.
43445 reload_flag=$lt_reload_flag
43446 reload_cmds=$lt_reload_cmds
43447
43448 # Commands used to build an old-style archive.
43449 old_archive_cmds=$lt_old_archive_cmds
43450
43451 # A language specific compiler.
43452 CC=$lt_compiler
43453
43454 # Is the compiler the GNU compiler?
43455 with_gcc=$GCC
43456
43457 # Compiler flag to turn off builtin functions.
43458 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43459
43460 # Additional compiler flags for building library objects.
43461 pic_flag=$lt_lt_prog_compiler_pic
43462
43463 # How to pass a linker flag through the compiler.
43464 wl=$lt_lt_prog_compiler_wl
43465
43466 # Compiler flag to prevent dynamic linking.
43467 link_static_flag=$lt_lt_prog_compiler_static
43468
43469 # Does compiler simultaneously support -c and -o options?
43470 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43471
43472 # Whether or not to add -lc for building shared libraries.
43473 build_libtool_need_lc=$archive_cmds_need_lc
43474
43475 # Whether or not to disallow shared libs when runtime libs are static.
43476 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43477
43478 # Compiler flag to allow reflexive dlopens.
43479 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43480
43481 # Compiler flag to generate shared objects directly from archives.
43482 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43483
43484 # Whether the compiler copes with passing no objects directly.
43485 compiler_needs_object=$lt_compiler_needs_object
43486
43487 # Create an old-style archive from a shared archive.
43488 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43489
43490 # Create a temporary old-style archive to link instead of a shared archive.
43491 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43492
43493 # Commands used to build a shared archive.
43494 archive_cmds=$lt_archive_cmds
43495 archive_expsym_cmds=$lt_archive_expsym_cmds
43496
43497 # Commands used to build a loadable module if different from building
43498 # a shared archive.
43499 module_cmds=$lt_module_cmds
43500 module_expsym_cmds=$lt_module_expsym_cmds
43501
43502 # Whether we are building with GNU ld or not.
43503 with_gnu_ld=$lt_with_gnu_ld
43504
43505 # Flag that allows shared libraries with undefined symbols to be built.
43506 allow_undefined_flag=$lt_allow_undefined_flag
43507
43508 # Flag that enforces no undefined symbols.
43509 no_undefined_flag=$lt_no_undefined_flag
43510
43511 # Flag to hardcode \$libdir into a binary during linking.
43512 # This must work even if \$libdir does not exist
43513 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43514
43515 # Whether we need a single "-rpath" flag with a separated argument.
43516 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43517
43518 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43519 # DIR into the resulting binary.
43520 hardcode_direct=$hardcode_direct
43521
43522 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43523 # DIR into the resulting binary and the resulting library dependency is
43524 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
43525 # library is relocated.
43526 hardcode_direct_absolute=$hardcode_direct_absolute
43527
43528 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43529 # into the resulting binary.
43530 hardcode_minus_L=$hardcode_minus_L
43531
43532 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43533 # into the resulting binary.
43534 hardcode_shlibpath_var=$hardcode_shlibpath_var
43535
43536 # Set to "yes" if building a shared library automatically hardcodes DIR
43537 # into the library and all subsequent libraries and executables linked
43538 # against it.
43539 hardcode_automatic=$hardcode_automatic
43540
43541 # Set to yes if linker adds runtime paths of dependent libraries
43542 # to runtime path list.
43543 inherit_rpath=$inherit_rpath
43544
43545 # Whether libtool must link a program against all its dependency libraries.
43546 link_all_deplibs=$link_all_deplibs
43547
43548 # Set to "yes" if exported symbols are required.
43549 always_export_symbols=$always_export_symbols
43550
43551 # The commands to list exported symbols.
43552 export_symbols_cmds=$lt_export_symbols_cmds
43553
43554 # Symbols that should not be listed in the preloaded symbols.
43555 exclude_expsyms=$lt_exclude_expsyms
43556
43557 # Symbols that must always be exported.
43558 include_expsyms=$lt_include_expsyms
43559
43560 # Commands necessary for linking programs (against libraries) with templates.
43561 prelink_cmds=$lt_prelink_cmds
43562
43563 # Commands necessary for finishing linking programs.
43564 postlink_cmds=$lt_postlink_cmds
43565
43566 # Specify filename containing input files.
43567 file_list_spec=$lt_file_list_spec
43568
43569 # How to hardcode a shared library path into an executable.
43570 hardcode_action=$hardcode_action
43571
43572 # The directories searched by this compiler when creating a shared library.
43573 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
43574
43575 # Dependencies to place before and after the objects being linked to
43576 # create a shared library.
43577 predep_objects=$lt_predep_objects
43578 postdep_objects=$lt_postdep_objects
43579 predeps=$lt_predeps
43580 postdeps=$lt_postdeps
43581
43582 # The library search path used internally by the compiler when linking
43583 # a shared library.
43584 compiler_lib_search_path=$lt_compiler_lib_search_path
43585
43586 # ### END LIBTOOL CONFIG
43587
43588 _LT_EOF
43589
43590 cat <<'_LT_EOF' >> "$cfgfile"
43591
43592 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43593
43594 # func_munge_path_list VARIABLE PATH
43595 # -----------------------------------
43596 # VARIABLE is name of variable containing _space_ separated list of
43597 # directories to be munged by the contents of PATH, which is string
43598 # having a format:
43599 # "DIR[:DIR]:"
43600 # string "DIR[ DIR]" will be prepended to VARIABLE
43601 # ":DIR[:DIR]"
43602 # string "DIR[ DIR]" will be appended to VARIABLE
43603 # "DIRP[:DIRP]::[DIRA:]DIRA"
43604 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43605 # "DIRA[ DIRA]" will be appended to VARIABLE
43606 # "DIR[:DIR]"
43607 # VARIABLE will be replaced by "DIR[ DIR]"
43608 func_munge_path_list ()
43609 {
43610 case x$2 in
43611 x)
43612 ;;
43613 *:)
43614 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43615 ;;
43616 x:*)
43617 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43618 ;;
43619 *::*)
43620 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43621 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43622 ;;
43623 *)
43624 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43625 ;;
43626 esac
43627 }
43628
43629
43630 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43631 func_cc_basename ()
43632 {
43633 for cc_temp in $*""; do
43634 case $cc_temp in
43635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43637 \-*) ;;
43638 *) break;;
43639 esac
43640 done
43641 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43642 }
43643
43644
43645 # ### END FUNCTIONS SHARED WITH CONFIGURE
43646
43647 _LT_EOF
43648
43649 case $host_os in
43650 aix3*)
43651 cat <<\_LT_EOF >> "$cfgfile"
43652 # AIX sometimes has problems with the GCC collect2 program. For some
43653 # reason, if we set the COLLECT_NAMES environment variable, the problems
43654 # vanish in a puff of smoke.
43655 if test set != "${COLLECT_NAMES+set}"; then
43656 COLLECT_NAMES=
43657 export COLLECT_NAMES
43658 fi
43659 _LT_EOF
43660 ;;
43661 esac
43662
43663
43664
43665 ltmain=$ac_aux_dir/ltmain.sh
43666
43667
43668 # We use sed instead of cat because bash on DJGPP gets confused if
43669 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43670 # text mode, it properly converts lines to CR/LF. This bash problem
43671 # is reportedly fixed, but why not run on old versions too?
43672 $SED '$q' "$ltmain" >> "$cfgfile" \
43673 || (rm -f "$cfgfile"; exit 1)
43674
43675 mv -f "$cfgfile" "$ofile" ||
43676 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43677 chmod +x "$ofile"
43678
43679
43680 cat <<_LT_EOF >> "$ofile"
43681
43682 # ### BEGIN LIBTOOL TAG CONFIG: CXX
43683
43684 # The linker used to build libraries.
43685 LD=$lt_LD_CXX
43686
43687 # How to create reloadable object files.
43688 reload_flag=$lt_reload_flag_CXX
43689 reload_cmds=$lt_reload_cmds_CXX
43690
43691 # Commands used to build an old-style archive.
43692 old_archive_cmds=$lt_old_archive_cmds_CXX
43693
43694 # A language specific compiler.
43695 CC=$lt_compiler_CXX
43696
43697 # Is the compiler the GNU compiler?
43698 with_gcc=$GCC_CXX
43699
43700 # Compiler flag to turn off builtin functions.
43701 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
43702
43703 # Additional compiler flags for building library objects.
43704 pic_flag=$lt_lt_prog_compiler_pic_CXX
43705
43706 # How to pass a linker flag through the compiler.
43707 wl=$lt_lt_prog_compiler_wl_CXX
43708
43709 # Compiler flag to prevent dynamic linking.
43710 link_static_flag=$lt_lt_prog_compiler_static_CXX
43711
43712 # Does compiler simultaneously support -c and -o options?
43713 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
43714
43715 # Whether or not to add -lc for building shared libraries.
43716 build_libtool_need_lc=$archive_cmds_need_lc_CXX
43717
43718 # Whether or not to disallow shared libs when runtime libs are static.
43719 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
43720
43721 # Compiler flag to allow reflexive dlopens.
43722 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
43723
43724 # Compiler flag to generate shared objects directly from archives.
43725 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
43726
43727 # Whether the compiler copes with passing no objects directly.
43728 compiler_needs_object=$lt_compiler_needs_object_CXX
43729
43730 # Create an old-style archive from a shared archive.
43731 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
43732
43733 # Create a temporary old-style archive to link instead of a shared archive.
43734 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
43735
43736 # Commands used to build a shared archive.
43737 archive_cmds=$lt_archive_cmds_CXX
43738 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43739
43740 # Commands used to build a loadable module if different from building
43741 # a shared archive.
43742 module_cmds=$lt_module_cmds_CXX
43743 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43744
43745 # Whether we are building with GNU ld or not.
43746 with_gnu_ld=$lt_with_gnu_ld_CXX
43747
43748 # Flag that allows shared libraries with undefined symbols to be built.
43749 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43750
43751 # Flag that enforces no undefined symbols.
43752 no_undefined_flag=$lt_no_undefined_flag_CXX
43753
43754 # Flag to hardcode \$libdir into a binary during linking.
43755 # This must work even if \$libdir does not exist
43756 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
43757
43758 # Whether we need a single "-rpath" flag with a separated argument.
43759 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
43760
43761 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43762 # DIR into the resulting binary.
43763 hardcode_direct=$hardcode_direct_CXX
43764
43765 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43766 # DIR into the resulting binary and the resulting library dependency is
43767 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
43768 # library is relocated.
43769 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
43770
43771 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43772 # into the resulting binary.
43773 hardcode_minus_L=$hardcode_minus_L_CXX
43774
43775 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43776 # into the resulting binary.
43777 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
43778
43779 # Set to "yes" if building a shared library automatically hardcodes DIR
43780 # into the library and all subsequent libraries and executables linked
43781 # against it.
43782 hardcode_automatic=$hardcode_automatic_CXX
43783
43784 # Set to yes if linker adds runtime paths of dependent libraries
43785 # to runtime path list.
43786 inherit_rpath=$inherit_rpath_CXX
43787
43788 # Whether libtool must link a program against all its dependency libraries.
43789 link_all_deplibs=$link_all_deplibs_CXX
43790
43791 # Set to "yes" if exported symbols are required.
43792 always_export_symbols=$always_export_symbols_CXX
43793
43794 # The commands to list exported symbols.
43795 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43796
43797 # Symbols that should not be listed in the preloaded symbols.
43798 exclude_expsyms=$lt_exclude_expsyms_CXX
43799
43800 # Symbols that must always be exported.
43801 include_expsyms=$lt_include_expsyms_CXX
43802
43803 # Commands necessary for linking programs (against libraries) with templates.
43804 prelink_cmds=$lt_prelink_cmds_CXX
43805
43806 # Commands necessary for finishing linking programs.
43807 postlink_cmds=$lt_postlink_cmds_CXX
43808
43809 # Specify filename containing input files.
43810 file_list_spec=$lt_file_list_spec_CXX
43811
43812 # How to hardcode a shared library path into an executable.
43813 hardcode_action=$hardcode_action_CXX
43814
43815 # The directories searched by this compiler when creating a shared library.
43816 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43817
43818 # Dependencies to place before and after the objects being linked to
43819 # create a shared library.
43820 predep_objects=$lt_predep_objects_CXX
43821 postdep_objects=$lt_postdep_objects_CXX
43822 predeps=$lt_predeps_CXX
43823 postdeps=$lt_postdeps_CXX
43824
43825 # The library search path used internally by the compiler when linking
43826 # a shared library.
43827 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43828
43829 # ### END LIBTOOL TAG CONFIG: CXX
43830 _LT_EOF
43831
43832 ;;
43833 "magick.sh.in":C) chmod +x magick.sh ;;
43834 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
43835 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
43836 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
43837 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
43838
43839 esac
43840 done # for ac_tag
43841
43842
43843 as_fn_exit 0
43844 _ACEOF
43845 ac_clean_files=$ac_clean_files_save
43846
43847 test $ac_write_fail = 0 ||
43848 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43849
43850
43851 # configure is writing to config.log, and then calls config.status.
43852 # config.status does its own redirection, appending to config.log.
43853 # Unfortunately, on DOS this fails, as config.log is still kept open
43854 # by configure, so config.status won't be able to write to it; its
43855 # output is simply discarded. So we exec the FD to /dev/null,
43856 # effectively closing config.log, so it can be properly (re)opened and
43857 # appended to by config.status. When coming back to configure, we
43858 # need to make the FD available again.
43859 if test "$no_create" != yes; then
43860 ac_cs_success=:
43861 ac_config_status_args=
43862 test "$silent" = yes &&
43863 ac_config_status_args="$ac_config_status_args --quiet"
43864 exec 5>/dev/null
43865 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43866 exec 5>>config.log
43867 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43868 # would make configure fail if this is the last instruction.
43869 $ac_cs_success || as_fn_exit 1
43870 fi
43871 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
43872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43873 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
43874 fi
43875
43876
43877 # ==============================================================================
43878 # ImageMagick Configuration
43879 # ==============================================================================
43880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
43881 ==============================================================================
43882 ${PACKAGE_NAME} ${PACKAGE_VERSION} is configured as follows. Verify that this configuration
43883 matches your expectations.
43884
43885 Host system type: $host
43886 Build system type: $build
43887
43888 Option Value
43889 ------------------------------------------------------------------------------
43890 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
43891 Static libraries --enable-static=$enable_static $libtool_build_static_libs
43892 Build utilities --with-utilities=$with_utilities $with_utilities
43893 Module support --with-modules=$build_modules $build_modules
43894 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
43895 OpenMP --enable-openmp=$enable_openmp ${OPENMP_ENABLED}
43896 Security policy --with-security-policy=$security_policy $security_policy
43897 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
43898 Channel mask depth --enable-64bit-channel-masks=$enable_64bit_channel_masks $magick_channel_mask_depth
43899 High Dynamic Range Imagery
43900 --enable-hdri=$enable_hdri $enable_hdri
43901
43902 Install documentation: $wantdocs
43903
43904 Memory allocation library:
43905 JEMalloc --with-jemalloc=$with_jemalloc $have_jemalloc
43906 MTMalloc --with-mtmalloc=$with_mtmalloc $have_mtmalloc
43907 TCMalloc --with-tcmalloc=$with_tcmalloc $have_tcmalloc
43908 UMem --with-umem=$with_umem $have_umem
43909
43910 Delegate library configuration:
43911 BZLIB --with-bzlib=$with_bzlib $have_bzlib
43912 Autotrace --with-autotrace=$with_autotrace $have_autotrace
43913 DJVU --with-djvu=$with_djvu $have_djvu
43914 DPS --with-dps=$with_dps $have_dps
43915 FFTW --with-fftw=$with_fftw $have_fftw
43916 FLIF --with-flif=$with_flif $have_flif
43917 FlashPIX --with-fpx=$with_fpx $have_fpx
43918 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
43919 FreeType --with-freetype=$with_freetype $have_freetype
43920 Ghostscript lib --with-gslib=$with_gslib $have_gslib
43921 Graphviz --with-gvc=$with_gvc $have_gvc
43922 HEIC --with-heic=$with_heic $have_heic
43923 JBIG --with-jbig=$with_jbig $have_jbig
43924 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
43925 JPEG XL --with-jxl=$with_jxl $have_jxl
43926 DMR --with-dmr=$with_dmr $have_dmr
43927 LCMS --with-lcms=$with_lcms $have_lcms
43928 LQR --with-lqr=$with_lqr $have_lqr
43929 LTDL --with-ltdl=$with_ltdl $have_ltdl
43930 LZMA --with-lzma=$with_lzma $have_lzma
43931 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
43932 OpenEXR --with-openexr=$with_openexr $have_openexr
43933 OpenJP2 --with-openjp2=$with_openjp2 $have_openjp2
43934 PANGO --with-pango=$with_pango $have_pangocairo
43935 PERL --with-perl=$with_perl $have_perl
43936 PNG --with-png=$with_png $have_png
43937 RAQM --with-raqm=$with_raqm $have_raqm
43938 RAW --with-raw=$with_raw $have_raw
43939 RSVG --with-rsvg=$with_rsvg $have_rsvg
43940 TIFF --with-tiff=$with_tiff $have_tiff
43941 UHDR --with-uhdr=$with_uhdr $have_uhdr
43942 WEBP --with-webp=$with_webp $have_webp
43943 WMF --with-wmf=$with_wmf $have_wmf
43944 X11 --with-x=$with_x $have_x
43945 XML --with-xml=$with_xml $have_xml
43946 ZIP --with-zip=$with_zip $have_zip
43947 ZLIB --with-zlib=$with_zlib $have_zlib
43948 ZSTD --with-zstd=$with_zstd $have_zstd
43949
43950 Delegate program configuration:
43951 GhostPCL None $PCLDelegate ($PCLVersion)
43952 GhostXPS None $XPSDelegate ($XPSVersion)
43953 Ghostscript None $PSDelegate ($GSVersion)
43954
43955 Font configuration:
43956 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
43957 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
43958 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
43959 URW OTF fonts --with-urw-base35-font-dir=$with_urw_base35_font_dir $result_urw_base35_font_dir
43960 URW Type1 fonts --with-urw-base35-type1-font-dir=$with_urw_base35_type1_font_dir $result_urw_base35_type1_font_dir
43961 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
43962
43963 X11 configuration:
43964 X_CFLAGS = $X_CFLAGS
43965 X_PRE_LIBS = $X_PRE_LIBS
43966 X_LIBS = $X_LIBS
43967 X_EXTRA_LIBS = $X_EXTRA_LIBS
43968
43969 Options used to compile and link:
43970 PREFIX = $PREFIX_DIR
43971 EXEC-PREFIX = $EXEC_PREFIX_DIR
43972 VERSION = $PACKAGE_VERSION
43973 CC = $CC
43974 CFLAGS = $CFLAGS
43975 CPPFLAGS = $CPPFLAGS
43976 PCFLAGS = $PCFLAGS
43977 DEFS = $DEFS
43978 LDFLAGS = $LDFLAGS
43979 LIBS = $MAGICK_DEP_LIBS $MAGICK_EXTRA_DEP_LIBS
43980 CXX = $CXX
43981 CXXFLAGS = $CXXFLAGS
43982 FEATURES = $MAGICK_FEATURES
43983 DELEGATES = $MAGICK_DELEGATES
43984 ==============================================================================
43985 " >&5
43986 printf "%s\n" "$as_me:
43987 ==============================================================================
43988 ${PACKAGE_NAME} ${PACKAGE_VERSION} is configured as follows. Verify that this configuration
43989 matches your expectations.
43990
43991 Host system type: $host
43992 Build system type: $build
43993
43994 Option Value
43995 ------------------------------------------------------------------------------
43996 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
43997 Static libraries --enable-static=$enable_static $libtool_build_static_libs
43998 Build utilities --with-utilities=$with_utilities $with_utilities
43999 Module support --with-modules=$build_modules $build_modules
44000 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
44001 OpenMP --enable-openmp=$enable_openmp ${OPENMP_ENABLED}
44002 Security policy --with-security-policy=$security_policy $security_policy
44003 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
44004 Channel mask depth --enable-64bit-channel-masks=$enable_64bit_channel_masks $magick_channel_mask_depth
44005 High Dynamic Range Imagery
44006 --enable-hdri=$enable_hdri $enable_hdri
44007
44008 Install documentation: $wantdocs
44009
44010 Memory allocation library:
44011 JEMalloc --with-jemalloc=$with_jemalloc $have_jemalloc
44012 MTMalloc --with-mtmalloc=$with_mtmalloc $have_mtmalloc
44013 TCMalloc --with-tcmalloc=$with_tcmalloc $have_tcmalloc
44014 UMem --with-umem=$with_umem $have_umem
44015
44016 Delegate library configuration:
44017 BZLIB --with-bzlib=$with_bzlib $have_bzlib
44018 Autotrace --with-autotrace=$with_autotrace $have_autotrace
44019 DJVU --with-djvu=$with_djvu $have_djvu
44020 DPS --with-dps=$with_dps $have_dps
44021 FFTW --with-fftw=$with_fftw $have_fftw
44022 FLIF --with-flif=$with_flif $have_flif
44023 FlashPIX --with-fpx=$with_fpx $have_fpx
44024 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
44025 FreeType --with-freetype=$with_freetype $have_freetype
44026 Ghostscript lib --with-gslib=$with_gslib $have_gslib
44027 Graphviz --with-gvc=$with_gvc $have_gvc
44028 HEIC --with-heic=$with_heic $have_heic
44029 JBIG --with-jbig=$with_jbig $have_jbig
44030 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
44031 JPEG XL --with-jxl=$with_jxl $have_jxl
44032 DMR --with-dmr=$with_dmr $have_dmr
44033 LCMS --with-lcms=$with_lcms $have_lcms
44034 LQR --with-lqr=$with_lqr $have_lqr
44035 LTDL --with-ltdl=$with_ltdl $have_ltdl
44036 LZMA --with-lzma=$with_lzma $have_lzma
44037 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
44038 OpenEXR --with-openexr=$with_openexr $have_openexr
44039 OpenJP2 --with-openjp2=$with_openjp2 $have_openjp2
44040 PANGO --with-pango=$with_pango $have_pangocairo
44041 PERL --with-perl=$with_perl $have_perl
44042 PNG --with-png=$with_png $have_png
44043 RAQM --with-raqm=$with_raqm $have_raqm
44044 RAW --with-raw=$with_raw $have_raw
44045 RSVG --with-rsvg=$with_rsvg $have_rsvg
44046 TIFF --with-tiff=$with_tiff $have_tiff
44047 UHDR --with-uhdr=$with_uhdr $have_uhdr
44048 WEBP --with-webp=$with_webp $have_webp
44049 WMF --with-wmf=$with_wmf $have_wmf
44050 X11 --with-x=$with_x $have_x
44051 XML --with-xml=$with_xml $have_xml
44052 ZIP --with-zip=$with_zip $have_zip
44053 ZLIB --with-zlib=$with_zlib $have_zlib
44054 ZSTD --with-zstd=$with_zstd $have_zstd
44055
44056 Delegate program configuration:
44057 GhostPCL None $PCLDelegate ($PCLVersion)
44058 GhostXPS None $XPSDelegate ($XPSVersion)
44059 Ghostscript None $PSDelegate ($GSVersion)
44060
44061 Font configuration:
44062 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
44063 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
44064 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
44065 URW OTF fonts --with-urw-base35-font-dir=$with_urw_base35_font_dir $result_urw_base35_font_dir
44066 URW Type1 fonts --with-urw-base35-type1-font-dir=$with_urw_base35_type1_font_dir $result_urw_base35_type1_font_dir
44067 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
44068
44069 X11 configuration:
44070 X_CFLAGS = $X_CFLAGS
44071 X_PRE_LIBS = $X_PRE_LIBS
44072 X_LIBS = $X_LIBS
44073 X_EXTRA_LIBS = $X_EXTRA_LIBS
44074
44075 Options used to compile and link:
44076 PREFIX = $PREFIX_DIR
44077 EXEC-PREFIX = $EXEC_PREFIX_DIR
44078 VERSION = $PACKAGE_VERSION
44079 CC = $CC
44080 CFLAGS = $CFLAGS
44081 CPPFLAGS = $CPPFLAGS
44082 PCFLAGS = $PCFLAGS
44083 DEFS = $DEFS
44084 LDFLAGS = $LDFLAGS
44085 LIBS = $MAGICK_DEP_LIBS $MAGICK_EXTRA_DEP_LIBS
44086 CXX = $CXX
44087 CXXFLAGS = $CXXFLAGS
44088 FEATURES = $MAGICK_FEATURES
44089 DELEGATES = $MAGICK_DELEGATES
44090 ==============================================================================
44091 " >&6;}
44092