blob: f0006780dff687f22f14d35ea08a61d574c13a71 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
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.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
cristyfa161182012-12-19 15:45:28 +0000647MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +0000648MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +0000649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
cristy3ed852e2009-09-05 21:47:34 +0000687windows_font_dir
cristy5a3dc992014-12-05 19:50:04 +0000688ghostscript_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy5a3dc992014-12-05 19:50:04 +0000690apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000691PrintDelegate
692ZipDelegate
693XPSDelegate
694WWWDecodeDelegate
695WMFDecodeDelegate
cristy86e86092013-08-04 17:43:57 +0000696WebPEncodeDelegate
697WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000698UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000699TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000700SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000701SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000702RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000703RMDelegate
704RLEEncodeDelegate
705PSDelegate
706POVDelegate
707PGPDecodeDelegate
708PCLDelegate
709MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000710MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000711MPEGEncodeDelegate
712MPEGDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000713MogrifyDelegate
cristy3ed852e2009-09-05 21:47:34 +0000714MANDelegate
715LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000716LPRDelegate
717LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000718JXREncodeDelegate
719JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000720ILBMEncodeDelegate
721ILBMDecodeDelegate
722HTMLDecodeDelegate
723HPGLDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000724GVCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000725GnuplotDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000726EditorDelegate
727EchoDelegate
cristy66f238e2014-05-16 12:21:48 +0000728DisplayDelegate
729ConvertDelegate
cristy3ed852e2009-09-05 21:47:34 +0000730DVIDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000731DOCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000732DNGDecodeDelegate
733CatDelegate
cristy3ed852e2009-09-05 21:47:34 +0000734BrowseDelegate
735BZIPDelegate
736BlenderDecodeDelegate
cristy16b412d2014-12-15 11:09:48 +0000737BGPEncodeDelegate
738BGPDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000739AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000740SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000741SHAREARCH_RELATIVE_PATH
742SHAREARCH_DIRNAME
743SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000744SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000745CONFIGURE_PATH
cristydd17feb2014-03-05 02:06:32 +0000746INSTALL_DOC_FALSE
747INSTALL_DOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000748DOCUMENTATION_PATH
749FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000750FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000751CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000752CODER_DIRNAME
753MODULES_PATH
754MODULES_RELATIVE_PATH
755MODULES_DIRNAME
756MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000757LIB_BIN_DIR_PATH
758LIB_BIN_DIR_RELATIVE_PATH
759LIB_BIN_DIR
760LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000761LIBRARY_PATH
762EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000763INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000764INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000765PERLMAINCC
766XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000767XML_DELEGATE_FALSE
768XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000769xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000770WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000771WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772WMF_DELEGATE_FALSE
773WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000774WEBP_LIBS
775WEBP_DELEGATE_FALSE
776WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000777TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778TIFF_DELEGATE_FALSE
779TIFF_DELEGATE_TRUE
780CAIRO_DELEGATE_FALSE
781CAIRO_DELEGATE_TRUE
782RSVG_DELEGATE_FALSE
783RSVG_DELEGATE_TRUE
784CAIRO_SVG_LIBS
785CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000786RSVG_LIBS
787RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000788PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000789PNG_DELEGATE_FALSE
790PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000791PANGOCAIRO_DELEGATE_FALSE
792PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000793PANGO_DELEGATE_FALSE
794PANGO_DELEGATE_TRUE
795PANGO_LIBS
796PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000797OPENEXR_DELEGATE_FALSE
798OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799OPENEXR_LIBS
800OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000801LZMA_DELEGATE_FALSE
802LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000803LZMA_LIBS
804LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000805LQR_DELEGATE_FALSE
806LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807LQR_LIBS
808LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000809LIBOPENJP2_DELEGATE_FALSE
810LIBOPENJP2_DELEGATE_TRUE
811LIBOPENJP2_LIBS
812LIBOPENJP2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000813LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814LCMS_DELEGATE_FALSE
815LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000816JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817JPEG_DELEGATE_FALSE
818JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000819JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000820JBIG_DELEGATE_FALSE
821JBIG_DELEGATE_TRUE
822GVC_DELEGATE_FALSE
823GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824GVC_LIBS
825GVC_CFLAGS
826GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000827GS_DELEGATE_FALSE
828GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000829FREETYPE_DELEGATE_FALSE
830FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000831FREETYPE_LIBS
832FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000833FONTCONFIG_DELEGATE_FALSE
834FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000835FONTCONFIG_LIBS
836FONTCONFIG_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000837DJVU_LIBS
838DJVU_DELEGATE_FALSE
839DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841FPX_DELEGATE_FALSE
842FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000844FFTW_DELEGATE_FALSE
845FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000846DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000847DPS_DELEGATE_FALSE
848DPS_DELEGATE_TRUE
849AUTOTRACE_DELEGATE_FALSE
850AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000851AUTOTRACE_LIBS
852AUTOTRACE_CFLAGS
853LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000854WITH_LTDL_FALSE
855WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857ZLIB_DELEGATE_FALSE
858ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000859XEXT_LIBS
860X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000861X11_DELEGATE_FALSE
862X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000863X_EXTRA_LIBS
864X_LIBS
865X_PRE_LIBS
866X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000867XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000868BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000869BZLIB_DELEGATE_FALSE
870BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000871CCMALLOCDelegate
872UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000873HasUMEM_FALSE
874HasUMEM_TRUE
cristy3b0097d2014-11-04 15:34:47 +0000875JEMALLOC_LIBS
876HasJEMALLOC_FALSE
877HasJEMALLOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000878GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000879WITH_MAGICK_PLUS_PLUS_FALSE
880WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000881OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000882MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000883POW_LIB
884LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000885UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000886UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000887UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000888UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000889UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000890UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000891INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000892INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000893UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000894UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000895INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000896INT32_T
897UINT16_T
898INT16_T
899UINT8_T
900INT8_T
901LIBRARY_EXTRA_CPPFLAGS
902MODULE_EXTRA_CPPFLAGS
903LIBSTDCLDFLAGS
904PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000905MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000906MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000907QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000908LEGACY_SUPPORT_FALSE
909LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000910MAINT
911MAINTAINER_MODE_FALSE
912MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000913MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000914WITH_MODULES_FALSE
915WITH_MODULES_TRUE
916WITH_SHARED_LIBS_FALSE
917WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000918LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000919CXXCPP
920OTOOL64
921OTOOL
922LIPO
923NMEDIT
924DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000925MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000926RANLIB
cristy73bd4a52010-10-05 11:24:23 +0000927NM
928ac_ct_DUMPBIN
929DUMPBIN
930LIBTOOL
931OBJDUMP
932DLLTOOL
933AS
cristy3ed852e2009-09-05 21:47:34 +0000934LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000935CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000936CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000937OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000938THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000939PTHREAD_CFLAGS
940PTHREAD_LIBS
941PTHREAD_CC
942ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000943pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000944SHAREARCH_DIR
945INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000946WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000947USING_CL_FALSE
948USING_CL_TRUE
949CYGWIN_BUILD_FALSE
950CYGWIN_BUILD_TRUE
951WIN32_NATIVE_BUILD_FALSE
952WIN32_NATIVE_BUILD_TRUE
953WINGDI32_DELEGATE_FALSE
954WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000955GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000956HAVE_LD_VERSION_SCRIPT_FALSE
957HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000958PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000959PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000960LN_S
cristy3ed852e2009-09-05 21:47:34 +0000961LD
cristy73bd4a52010-10-05 11:24:23 +0000962FGREP
963SED
964am__fastdepCXX_FALSE
965am__fastdepCXX_TRUE
966CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000967ac_ct_CXX
968CXXFLAGS
969CXX
cristy9e007fe2015-01-03 16:05:07 +0000970ac_ct_AR
971AR
cristya0b81c32010-01-22 02:54:33 +0000972EGREP
973GREP
974CPP
cristy73bd4a52010-10-05 11:24:23 +0000975am__fastdepCC_FALSE
976am__fastdepCC_TRUE
977CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000978am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000979AMDEPBACKSLASH
980AMDEP_FALSE
981AMDEP_TRUE
982am__quote
983am__include
984DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000985OBJEXT
986EXEEXT
987ac_ct_CC
988CPPFLAGS
989LDFLAGS
990CFLAGS
991CC
992DIRSEP
993MAGICK_FILTER_MODULE_PATH
994MAGICK_CONFIGURE_BUILD_PATH
995MAGICK_CONFIGURE_SRC_PATH
996MAGICK_CODER_MODULE_PATH
997MAN_DIR
998INFO_DIR
999PERSISTINCLUDE_DIR
1000INCLUDE_DIR
1001LIB_DIR
1002LOCALSTATE_DIR
1003SHAREDSTATE_DIR
1004SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001005DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001006DATA_DIR
1007LIBEXEC_DIR
1008SBIN_DIR
1009BIN_DIR
1010EXEC_PREFIX_DIR
1011PREFIX_DIR
1012CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001013MAGICKPP_LIB_VERSION_TEXT
1014MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001015MAGICK_LIB_VERSION_NUMBER
1016MAGICK_LIB_VERSION_TEXT
1017MAGICK_LIB_VERSION
cristy9af1cbf2014-12-28 22:03:09 +00001018PACKAGE_VERSION_ADDENDUM
1019PACKAGE_RELEASE_DATE
1020PACKAGE_LIB_VERSION_NUMBER
1021PACKAGE_LIB_VERSION
1022PACKAGE_CHANGE_DATE
1023PACKAGE_RELEASE
1024PACKAGE_PERL_VERSION
1025MAGICKPP_LIBRARY_VERSION_INFO
1026MAGICKPP_LIBRARY_CURRENT_MIN
1027MAGICKPP_LIBRARY_AGE
1028MAGICKPP_LIBRARY_REVISION
1029MAGICKPP_LIBRARY_CURRENT
1030MAGICK_LIBRARY_VERSION_INFO
1031MAGICK_LIBRARY_CURRENT_MIN
1032MAGICK_LIBRARY_AGE
1033MAGICK_LIBRARY_REVISION
1034MAGICK_LIBRARY_CURRENT
1035MAGICK_SVN_REVISION
1036MAGICK_VERSION
1037MAGICK_PATCHLEVEL_VERSION
1038MAGICK_MICRO_VERSION
1039MAGICK_MINOR_VERSION
1040MAGICK_MAJOR_VERSION
1041MAGICK_TARGET_OS
1042MAGICK_TARGET_VENDOR
1043MAGICK_TARGET_CPU
1044CONFIGURE_ARGS
1045DISTCHECK_CONFIG_FLAGS
cristy73bd4a52010-10-05 11:24:23 +00001046AM_BACKSLASH
1047AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001048AM_DEFAULT_V
1049AM_V
cristy73bd4a52010-10-05 11:24:23 +00001050am__untar
1051am__tar
1052AMTAR
1053am__leading_dot
1054SET_MAKE
1055AWK
1056mkdir_p
1057MKDIR_P
1058INSTALL_STRIP_PROGRAM
1059STRIP
1060install_sh
1061MAKEINFO
1062AUTOHEADER
1063AUTOMAKE
1064AUTOCONF
1065ACLOCAL
1066VERSION
1067PACKAGE
1068CYGPATH_W
1069am__isrc
1070INSTALL_DATA
1071INSTALL_SCRIPT
1072INSTALL_PROGRAM
cristy3ed852e2009-09-05 21:47:34 +00001073target_os
1074target_vendor
1075target_cpu
1076target
1077host_os
1078host_vendor
1079host_cpu
1080host
1081build_os
1082build_vendor
1083build_cpu
1084build
cristy3ed852e2009-09-05 21:47:34 +00001085target_alias
1086host_alias
1087build_alias
1088LIBS
1089ECHO_T
1090ECHO_N
1091ECHO_C
1092DEFS
1093mandir
1094localedir
1095libdir
1096psdir
1097pdfdir
1098dvidir
1099htmldir
1100infodir
1101docdir
1102oldincludedir
1103includedir
1104localstatedir
1105sharedstatedir
1106sysconfdir
1107datadir
1108datarootdir
1109libexecdir
1110sbindir
1111bindir
1112program_transform_name
1113prefix
1114exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001115PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001116PACKAGE_BUGREPORT
1117PACKAGE_STRING
1118PACKAGE_VERSION
1119PACKAGE_TARNAME
1120PACKAGE_NAME
1121PATH_SEPARATOR
1122SHELL'
1123ac_subst_files=''
1124ac_user_opts='
1125enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001126enable_silent_rules
cristy187791c2015-05-03 22:17:00 +00001127enable_reproducible_build
cristy73bd4a52010-10-05 11:24:23 +00001128enable_dependency_tracking
1129with_gnu_ld
1130with_dmalloc
cristya0459972013-11-03 18:09:35 +00001131with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001132enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001133enable_bounds_checking
1134enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001135with_includearch_dir
1136with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001137with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001138with_threads
1139enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001140enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001141enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001142enable_shared
1143enable_static
1144with_pic
1145enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001146with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001147enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001148with_modules
1149enable_delegate_build
1150enable_deprecated
1151enable_installed
1152enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001153enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001154enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001155enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001156enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001157enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001158enable_ccmalloc
1159enable_efence
1160enable_prof
1161enable_gprof
1162enable_gcov
1163with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001164enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001165with_quantum_depth
1166with_cache
1167with_frozenpaths
1168with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001169with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001170with_perl
1171with_perl_options
cristy3b0097d2014-11-04 15:34:47 +00001172with_jemalloc
cristy3ed852e2009-09-05 21:47:34 +00001173with_umem
1174with_libstdc
1175with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001176with_x
cristy3ed852e2009-09-05 21:47:34 +00001177with_zlib
cristy5a3dc992014-12-05 19:50:04 +00001178with_apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001179with_autotrace
1180with_dps
cristy430a7312010-01-21 20:44:04 +00001181with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001182with_fftw
1183with_fpx
cristy853d9902014-08-21 18:50:43 +00001184with_djvu
cristy3ed852e2009-09-05 21:47:34 +00001185with_fontconfig
1186with_freetype
1187with_gslib
1188with_fontpath
1189with_gs_font_dir
1190with_gvc
1191with_jbig
1192with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001193with_lcms
cristy71203402010-06-18 13:12:03 +00001194with_lcms2
cristy99db3872014-01-01 15:11:34 +00001195with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001196with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001197with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001198with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001199with_pango
cristy3ed852e2009-09-05 21:47:34 +00001200with_png
1201with_rsvg
1202with_tiff
cristyb1860752011-03-14 00:27:46 +00001203with_webp
cristy3ed852e2009-09-05 21:47:34 +00001204with_windows_font_dir
1205with_wmf
1206with_xml
cristydd17feb2014-03-05 02:06:32 +00001207enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001208'
1209 ac_precious_vars='build_alias
1210host_alias
1211target_alias
1212CC
1213CFLAGS
1214LDFLAGS
1215LIBS
1216CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001217CPP
cristy3ed852e2009-09-05 21:47:34 +00001218CXX
1219CXXFLAGS
1220CCC
cristy73bd4a52010-10-05 11:24:23 +00001221PKG_CONFIG
1222CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001223XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001224AUTOTRACE_CFLAGS
1225AUTOTRACE_LIBS
1226FONTCONFIG_CFLAGS
1227FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001228FREETYPE_CFLAGS
1229FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001230GVC_CFLAGS
1231GVC_LIBS
cristy99db3872014-01-01 15:11:34 +00001232LIBOPENJP2_CFLAGS
1233LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001234LQR_CFLAGS
1235LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001236LZMA_CFLAGS
1237LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001238OPENEXR_CFLAGS
1239OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001240PANGO_CFLAGS
1241PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001242RSVG_CFLAGS
1243RSVG_LIBS
1244CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001245CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001246
1247
1248# Initialize some variables set by options.
1249ac_init_help=
1250ac_init_version=false
1251ac_unrecognized_opts=
1252ac_unrecognized_sep=
1253# The variables have the same names as the options, with
1254# dashes changed to underlines.
1255cache_file=/dev/null
1256exec_prefix=NONE
1257no_create=
1258no_recursion=
1259prefix=NONE
1260program_prefix=NONE
1261program_suffix=NONE
1262program_transform_name=s,x,x,
1263silent=
1264site=
1265srcdir=
1266verbose=
1267x_includes=NONE
1268x_libraries=NONE
1269
1270# Installation directory options.
1271# These are left unexpanded so users can "make install exec_prefix=/foo"
1272# and all the variables that are supposed to be based on exec_prefix
1273# by default will actually change.
1274# Use braces instead of parens because sh, perl, etc. also accept them.
1275# (The list follows the same order as the GNU Coding Standards.)
1276bindir='${exec_prefix}/bin'
1277sbindir='${exec_prefix}/sbin'
1278libexecdir='${exec_prefix}/libexec'
1279datarootdir='${prefix}/share'
1280datadir='${datarootdir}'
1281sysconfdir='${prefix}/etc'
1282sharedstatedir='${prefix}/com'
1283localstatedir='${prefix}/var'
1284includedir='${prefix}/include'
1285oldincludedir='/usr/include'
1286docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1287infodir='${datarootdir}/info'
1288htmldir='${docdir}'
1289dvidir='${docdir}'
1290pdfdir='${docdir}'
1291psdir='${docdir}'
1292libdir='${exec_prefix}/lib'
1293localedir='${datarootdir}/locale'
1294mandir='${datarootdir}/man'
1295
1296ac_prev=
1297ac_dashdash=
1298for ac_option
1299do
1300 # If the previous option needs an argument, assign it.
1301 if test -n "$ac_prev"; then
1302 eval $ac_prev=\$ac_option
1303 ac_prev=
1304 continue
1305 fi
1306
1307 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001308 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1309 *=) ac_optarg= ;;
1310 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001311 esac
1312
1313 # Accept the important Cygnus configure options, so we can diagnose typos.
1314
1315 case $ac_dashdash$ac_option in
1316 --)
1317 ac_dashdash=yes ;;
1318
1319 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1320 ac_prev=bindir ;;
1321 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1322 bindir=$ac_optarg ;;
1323
1324 -build | --build | --buil | --bui | --bu)
1325 ac_prev=build_alias ;;
1326 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1327 build_alias=$ac_optarg ;;
1328
1329 -cache-file | --cache-file | --cache-fil | --cache-fi \
1330 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1331 ac_prev=cache_file ;;
1332 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1333 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1334 cache_file=$ac_optarg ;;
1335
1336 --config-cache | -C)
1337 cache_file=config.cache ;;
1338
1339 -datadir | --datadir | --datadi | --datad)
1340 ac_prev=datadir ;;
1341 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1342 datadir=$ac_optarg ;;
1343
1344 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1345 | --dataroo | --dataro | --datar)
1346 ac_prev=datarootdir ;;
1347 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1348 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1349 datarootdir=$ac_optarg ;;
1350
1351 -disable-* | --disable-*)
1352 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1353 # Reject names that are not valid shell variable names.
1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001355 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1359 *"
1360"enable_$ac_useropt"
1361"*) ;;
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1364 esac
1365 eval enable_$ac_useropt=no ;;
1366
1367 -docdir | --docdir | --docdi | --doc | --do)
1368 ac_prev=docdir ;;
1369 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1370 docdir=$ac_optarg ;;
1371
1372 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1373 ac_prev=dvidir ;;
1374 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1375 dvidir=$ac_optarg ;;
1376
1377 -enable-* | --enable-*)
1378 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1379 # Reject names that are not valid shell variable names.
1380 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001381 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001382 ac_useropt_orig=$ac_useropt
1383 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1384 case $ac_user_opts in
1385 *"
1386"enable_$ac_useropt"
1387"*) ;;
1388 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1389 ac_unrecognized_sep=', ';;
1390 esac
1391 eval enable_$ac_useropt=\$ac_optarg ;;
1392
1393 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1394 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1395 | --exec | --exe | --ex)
1396 ac_prev=exec_prefix ;;
1397 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1398 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1399 | --exec=* | --exe=* | --ex=*)
1400 exec_prefix=$ac_optarg ;;
1401
1402 -gas | --gas | --ga | --g)
1403 # Obsolete; use --with-gas.
1404 with_gas=yes ;;
1405
1406 -help | --help | --hel | --he | -h)
1407 ac_init_help=long ;;
1408 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1409 ac_init_help=recursive ;;
1410 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1411 ac_init_help=short ;;
1412
1413 -host | --host | --hos | --ho)
1414 ac_prev=host_alias ;;
1415 -host=* | --host=* | --hos=* | --ho=*)
1416 host_alias=$ac_optarg ;;
1417
1418 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1419 ac_prev=htmldir ;;
1420 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1421 | --ht=*)
1422 htmldir=$ac_optarg ;;
1423
1424 -includedir | --includedir | --includedi | --included | --include \
1425 | --includ | --inclu | --incl | --inc)
1426 ac_prev=includedir ;;
1427 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1428 | --includ=* | --inclu=* | --incl=* | --inc=*)
1429 includedir=$ac_optarg ;;
1430
1431 -infodir | --infodir | --infodi | --infod | --info | --inf)
1432 ac_prev=infodir ;;
1433 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1434 infodir=$ac_optarg ;;
1435
1436 -libdir | --libdir | --libdi | --libd)
1437 ac_prev=libdir ;;
1438 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1439 libdir=$ac_optarg ;;
1440
1441 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1442 | --libexe | --libex | --libe)
1443 ac_prev=libexecdir ;;
1444 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1445 | --libexe=* | --libex=* | --libe=*)
1446 libexecdir=$ac_optarg ;;
1447
1448 -localedir | --localedir | --localedi | --localed | --locale)
1449 ac_prev=localedir ;;
1450 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1451 localedir=$ac_optarg ;;
1452
1453 -localstatedir | --localstatedir | --localstatedi | --localstated \
1454 | --localstate | --localstat | --localsta | --localst | --locals)
1455 ac_prev=localstatedir ;;
1456 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1457 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1458 localstatedir=$ac_optarg ;;
1459
1460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1461 ac_prev=mandir ;;
1462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1463 mandir=$ac_optarg ;;
1464
1465 -nfp | --nfp | --nf)
1466 # Obsolete; use --without-fp.
1467 with_fp=no ;;
1468
1469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1470 | --no-cr | --no-c | -n)
1471 no_create=yes ;;
1472
1473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1475 no_recursion=yes ;;
1476
1477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1479 | --oldin | --oldi | --old | --ol | --o)
1480 ac_prev=oldincludedir ;;
1481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1484 oldincludedir=$ac_optarg ;;
1485
1486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1487 ac_prev=prefix ;;
1488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1489 prefix=$ac_optarg ;;
1490
1491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1492 | --program-pre | --program-pr | --program-p)
1493 ac_prev=program_prefix ;;
1494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1496 program_prefix=$ac_optarg ;;
1497
1498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1499 | --program-suf | --program-su | --program-s)
1500 ac_prev=program_suffix ;;
1501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1503 program_suffix=$ac_optarg ;;
1504
1505 -program-transform-name | --program-transform-name \
1506 | --program-transform-nam | --program-transform-na \
1507 | --program-transform-n | --program-transform- \
1508 | --program-transform | --program-transfor \
1509 | --program-transfo | --program-transf \
1510 | --program-trans | --program-tran \
1511 | --progr-tra | --program-tr | --program-t)
1512 ac_prev=program_transform_name ;;
1513 -program-transform-name=* | --program-transform-name=* \
1514 | --program-transform-nam=* | --program-transform-na=* \
1515 | --program-transform-n=* | --program-transform-=* \
1516 | --program-transform=* | --program-transfor=* \
1517 | --program-transfo=* | --program-transf=* \
1518 | --program-trans=* | --program-tran=* \
1519 | --progr-tra=* | --program-tr=* | --program-t=*)
1520 program_transform_name=$ac_optarg ;;
1521
1522 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1523 ac_prev=pdfdir ;;
1524 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1525 pdfdir=$ac_optarg ;;
1526
1527 -psdir | --psdir | --psdi | --psd | --ps)
1528 ac_prev=psdir ;;
1529 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1530 psdir=$ac_optarg ;;
1531
1532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1533 | -silent | --silent | --silen | --sile | --sil)
1534 silent=yes ;;
1535
1536 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1537 ac_prev=sbindir ;;
1538 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1539 | --sbi=* | --sb=*)
1540 sbindir=$ac_optarg ;;
1541
1542 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1543 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1544 | --sharedst | --shareds | --shared | --share | --shar \
1545 | --sha | --sh)
1546 ac_prev=sharedstatedir ;;
1547 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1548 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1549 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1550 | --sha=* | --sh=*)
1551 sharedstatedir=$ac_optarg ;;
1552
1553 -site | --site | --sit)
1554 ac_prev=site ;;
1555 -site=* | --site=* | --sit=*)
1556 site=$ac_optarg ;;
1557
1558 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1559 ac_prev=srcdir ;;
1560 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1561 srcdir=$ac_optarg ;;
1562
1563 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1564 | --syscon | --sysco | --sysc | --sys | --sy)
1565 ac_prev=sysconfdir ;;
1566 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1567 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1568 sysconfdir=$ac_optarg ;;
1569
1570 -target | --target | --targe | --targ | --tar | --ta | --t)
1571 ac_prev=target_alias ;;
1572 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1573 target_alias=$ac_optarg ;;
1574
1575 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1576 verbose=yes ;;
1577
1578 -version | --version | --versio | --versi | --vers | -V)
1579 ac_init_version=: ;;
1580
1581 -with-* | --with-*)
1582 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1583 # Reject names that are not valid shell variable names.
1584 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001585 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001586 ac_useropt_orig=$ac_useropt
1587 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1588 case $ac_user_opts in
1589 *"
1590"with_$ac_useropt"
1591"*) ;;
1592 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1593 ac_unrecognized_sep=', ';;
1594 esac
1595 eval with_$ac_useropt=\$ac_optarg ;;
1596
1597 -without-* | --without-*)
1598 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1599 # Reject names that are not valid shell variable names.
1600 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001601 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001602 ac_useropt_orig=$ac_useropt
1603 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1604 case $ac_user_opts in
1605 *"
1606"with_$ac_useropt"
1607"*) ;;
1608 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1609 ac_unrecognized_sep=', ';;
1610 esac
1611 eval with_$ac_useropt=no ;;
1612
1613 --x)
1614 # Obsolete; use --with-x.
1615 with_x=yes ;;
1616
1617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1618 | --x-incl | --x-inc | --x-in | --x-i)
1619 ac_prev=x_includes ;;
1620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1622 x_includes=$ac_optarg ;;
1623
1624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1626 ac_prev=x_libraries ;;
1627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1629 x_libraries=$ac_optarg ;;
1630
cristy98dddb52010-11-04 00:30:15 +00001631 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1632Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001633 ;;
1634
1635 *=*)
1636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1637 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001638 case $ac_envvar in #(
1639 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001640 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001641 esac
cristy3ed852e2009-09-05 21:47:34 +00001642 eval $ac_envvar=\$ac_optarg
1643 export $ac_envvar ;;
1644
1645 *)
1646 # FIXME: should be removed in autoconf 3.0.
1647 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1649 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001650 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001651 ;;
1652
1653 esac
1654done
1655
1656if test -n "$ac_prev"; then
1657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001658 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001659fi
1660
1661if test -n "$ac_unrecognized_opts"; then
1662 case $enable_option_checking in
1663 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001664 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001665 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1666 esac
1667fi
1668
1669# Check all directory arguments for consistency.
1670for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1671 datadir sysconfdir sharedstatedir localstatedir includedir \
1672 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1673 libdir localedir mandir
1674do
1675 eval ac_val=\$$ac_var
1676 # Remove trailing slashes.
1677 case $ac_val in
1678 */ )
1679 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1680 eval $ac_var=\$ac_val;;
1681 esac
1682 # Be sure to have absolute directory names.
1683 case $ac_val in
1684 [\\/$]* | ?:[\\/]* ) continue;;
1685 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1686 esac
cristy98dddb52010-11-04 00:30:15 +00001687 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001688done
1689
1690# There might be people who depend on the old broken behavior: `$host'
1691# used to hold the argument of --host etc.
1692# FIXME: To remove some day.
1693build=$build_alias
1694host=$host_alias
1695target=$target_alias
1696
1697# FIXME: To remove some day.
1698if test "x$host_alias" != x; then
1699 if test "x$build_alias" = x; then
1700 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001701 elif test "x$build_alias" != "x$host_alias"; then
1702 cross_compiling=yes
1703 fi
1704fi
1705
1706ac_tool_prefix=
1707test -n "$host_alias" && ac_tool_prefix=$host_alias-
1708
1709test "$silent" = yes && exec 6>/dev/null
1710
1711
1712ac_pwd=`pwd` && test -n "$ac_pwd" &&
1713ac_ls_di=`ls -di .` &&
1714ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001715 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001716test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001717 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001718
1719
1720# Find the source files, if location was not specified.
1721if test -z "$srcdir"; then
1722 ac_srcdir_defaulted=yes
1723 # Try the directory containing this script, then the parent directory.
1724 ac_confdir=`$as_dirname -- "$as_myself" ||
1725$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1726 X"$as_myself" : 'X\(//\)[^/]' \| \
1727 X"$as_myself" : 'X\(//\)$' \| \
1728 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1729$as_echo X"$as_myself" |
1730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1731 s//\1/
1732 q
1733 }
1734 /^X\(\/\/\)[^/].*/{
1735 s//\1/
1736 q
1737 }
1738 /^X\(\/\/\)$/{
1739 s//\1/
1740 q
1741 }
1742 /^X\(\/\).*/{
1743 s//\1/
1744 q
1745 }
1746 s/.*/./; q'`
1747 srcdir=$ac_confdir
1748 if test ! -r "$srcdir/$ac_unique_file"; then
1749 srcdir=..
1750 fi
1751else
1752 ac_srcdir_defaulted=no
1753fi
1754if test ! -r "$srcdir/$ac_unique_file"; then
1755 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001756 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001757fi
1758ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1759ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001760 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001761 pwd)`
1762# When building in place, set srcdir=.
1763if test "$ac_abs_confdir" = "$ac_pwd"; then
1764 srcdir=.
1765fi
1766# Remove unnecessary trailing slashes from srcdir.
1767# Double slashes in file names in object file debugging info
1768# mess up M-x gdb in Emacs.
1769case $srcdir in
1770*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1771esac
1772for ac_var in $ac_precious_vars; do
1773 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1774 eval ac_env_${ac_var}_value=\$${ac_var}
1775 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1776 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1777done
1778
1779#
1780# Report the --help message.
1781#
1782if test "$ac_init_help" = "long"; then
1783 # Omit some internal or obsolete options to make the list less imposing.
1784 # This message is too long to be a string in the A/UX 3.1 sh.
1785 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001786\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001787
1788Usage: $0 [OPTION]... [VAR=VALUE]...
1789
1790To assign environment variables (e.g., CC, CFLAGS...), specify them as
1791VAR=VALUE. See below for descriptions of some of the useful variables.
1792
1793Defaults for the options are specified in brackets.
1794
1795Configuration:
1796 -h, --help display this help and exit
1797 --help=short display options specific to this package
1798 --help=recursive display the short help of all the included packages
1799 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001800 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001801 --cache-file=FILE cache test results in FILE [disabled]
1802 -C, --config-cache alias for \`--cache-file=config.cache'
1803 -n, --no-create do not create output files
1804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1805
1806Installation directories:
1807 --prefix=PREFIX install architecture-independent files in PREFIX
1808 [$ac_default_prefix]
1809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1810 [PREFIX]
1811
1812By default, \`make install' will install all the files in
1813\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1814an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1815for instance \`--prefix=\$HOME'.
1816
1817For better control, use the options below.
1818
1819Fine tuning of the installation directories:
1820 --bindir=DIR user executables [EPREFIX/bin]
1821 --sbindir=DIR system admin executables [EPREFIX/sbin]
1822 --libexecdir=DIR program executables [EPREFIX/libexec]
1823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1826 --libdir=DIR object code libraries [EPREFIX/lib]
1827 --includedir=DIR C header files [PREFIX/include]
1828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1829 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1830 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1831 --infodir=DIR info documentation [DATAROOTDIR/info]
1832 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1833 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001834 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001835 --htmldir=DIR html documentation [DOCDIR]
1836 --dvidir=DIR dvi documentation [DOCDIR]
1837 --pdfdir=DIR pdf documentation [DOCDIR]
1838 --psdir=DIR ps documentation [DOCDIR]
1839_ACEOF
1840
1841 cat <<\_ACEOF
1842
cristy73bd4a52010-10-05 11:24:23 +00001843Program names:
1844 --program-prefix=PREFIX prepend PREFIX to installed program names
1845 --program-suffix=SUFFIX append SUFFIX to installed program names
1846 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1847
cristy3ed852e2009-09-05 21:47:34 +00001848X features:
1849 --x-includes=DIR X include files are in DIR
1850 --x-libraries=DIR X library files are in DIR
1851
1852System types:
1853 --build=BUILD configure for building on BUILD [guessed]
1854 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1855 --target=TARGET configure for building compilers for TARGET [HOST]
1856_ACEOF
1857fi
1858
1859if test -n "$ac_init_help"; then
1860 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001861 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001862 esac
1863 cat <<\_ACEOF
1864
1865Optional Features:
1866 --disable-option-checking ignore unrecognized --enable/--with options
1867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001869 --enable-silent-rules less verbose build output (undo: "make V=1")
1870 --disable-silent-rules verbose build output (undo: "make V=0")
cristy187791c2015-05-03 22:17:00 +00001871 --enable-reproducible-build
1872 enable reproducible build
cristyc0890a62012-07-19 00:18:20 +00001873 --enable-dependency-tracking
1874 do not reject slow dependency extractors
1875 --disable-dependency-tracking
1876 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001877 --enable-ld-version-script
1878 enable linker version script (default is enabled
1879 when possible)
cristya3824692012-03-30 17:22:07 +00001880 --enable-bounds-checking
1881 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001882 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001883 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001884 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001885 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001886 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001887 --enable-shared[=PKGS] build shared libraries [default=yes]
1888 --enable-static[=PKGS] build static libraries [default=yes]
1889 --enable-fast-install[=PKGS]
1890 optimize for fast installation [default=yes]
1891 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001892 --enable-delegate-build look for delegate libraries in build directory
1893 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001894 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001895 --disable-installed Formally install ImageMagick under PREFIX
1896 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001897 --enable-zero-configuration
1898 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001899 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001900 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001901 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001902 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001903 --enable-maintainer-mode
1904 enable make rules and dependencies not useful (and
1905 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001906 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001907 --enable-ccmalloc enable 'ccmalloc' memory debug support
1908 --enable-efence enable 'efence' memory debug support
1909 --enable-prof enable 'prof' profiling support
1910 --enable-gprof enable 'gprof' profiling support
1911 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001912 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001913 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001914 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001915
1916Optional Packages:
1917 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1918 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001919 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001920 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001921 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1922 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001923 --includearch-dir=DIR ARCH specific include directory
1924 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001925 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001926 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001927 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001928 both]
cristyda16f162011-02-19 23:52:17 +00001929 --with-sysroot=DIR Search for dependent libraries within DIR
1930 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001931 --with-modules enable building dynamically loadable modules
1932 --with-method-prefix=PREFIX
1933 prefix MagickCore API methods
1934 --with-quantum-depth=DEPTH
1935 number of bits in a pixel quantum (default 16)
1936 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1937 memory)
1938 --with-frozenpaths freeze delegate paths
1939 --without-magick-plus-plus
1940 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001941 --with-package-release-name=NAME
1942 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001943 --with-perl enable build/install of PerlMagick
1944 --with-perl-options=OPTIONS
1945 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001946 PerlMagick build file
cristy3b0097d2014-11-04 15:34:47 +00001947 --with-jemalloc enable jemalloc memory allocation library support
cristy3ed852e2009-09-05 21:47:34 +00001948 --with-umem enable umem memory allocation library support
1949 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1950 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001951 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001952 --without-zlib disable ZLIB support
cristy5a3dc992014-12-05 19:50:04 +00001953 --with-apple-font-dir=DIR
1954 Apple font directory
cristy3ed852e2009-09-05 21:47:34 +00001955 --with-autotrace enable autotrace support
1956 --without-dps disable Display Postscript support
cristy430a7312010-01-21 20:44:04 +00001957 --with-dejavu-font-dir=DIR
1958 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001959 --without-fftw disable FFTW support
1960 --without-fpx disable FlashPIX support
cristy853d9902014-08-21 18:50:43 +00001961 --without-djvu disable DjVu support
cristy3ed852e2009-09-05 21:47:34 +00001962 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001963 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001964 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001965 --with-fontpath=DIR prepend to default font search path
1966 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001967 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001968 --without-jbig disable JBIG support
1969 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001970 --without-lcms disable lcms (v1.1X) support
1971 --without-lcms2 disable lcms (v2.X) support
cristy99db3872014-01-01 15:11:34 +00001972 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001973 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001974 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001975 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001976 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001977 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001978 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001979 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001980 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001981 --with-windows-font-dir=DIR
cristy5a3dc992014-12-05 19:50:04 +00001982 Windows font directory
cristyde3fc5d2012-02-12 15:40:47 +00001983 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001984 --without-xml disable XML support
1985
1986Some influential environment variables:
1987 CC C compiler command
1988 CFLAGS C compiler flags
1989 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1990 nonstandard directory <lib dir>
1991 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001992 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001993 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001994 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001995 CXX C++ compiler command
1996 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001997 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001998 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001999 XMKMF Path to xmkmf, Makefile generator for X Window System
2000 AUTOTRACE_CFLAGS
2001 C compiler flags for AUTOTRACE, overriding pkg-config
2002 AUTOTRACE_LIBS
2003 linker flags for AUTOTRACE, overriding pkg-config
2004 FONTCONFIG_CFLAGS
2005 C compiler flags for FONTCONFIG, overriding pkg-config
2006 FONTCONFIG_LIBS
2007 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00002008 FREETYPE_CFLAGS
2009 C compiler flags for FREETYPE, overriding pkg-config
2010 FREETYPE_LIBS
2011 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002012 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2013 GVC_LIBS linker flags for GVC, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002014 LIBOPENJP2_CFLAGS
2015 C compiler flags for LIBOPENJP2, overriding pkg-config
2016 LIBOPENJP2_LIBS
2017 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002018 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2019 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002020 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2021 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002022 OPENEXR_CFLAGS
2023 C compiler flags for OPENEXR, overriding pkg-config
2024 OPENEXR_LIBS
2025 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002026 PANGO_CFLAGS
2027 C compiler flags for PANGO, overriding pkg-config
2028 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002029 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2030 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2031 CAIRO_SVG_CFLAGS
2032 C compiler flags for CAIRO_SVG, overriding pkg-config
2033 CAIRO_SVG_LIBS
2034 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002035
2036Use these variables to override the choices made by `configure' or to help
2037it to find libraries and programs with nonstandard names/locations.
2038
2039Report bugs to <http://www.imagemagick.org>.
2040_ACEOF
2041ac_status=$?
2042fi
2043
2044if test "$ac_init_help" = "recursive"; then
2045 # If there are subdirs, report their specific --help.
2046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2047 test -d "$ac_dir" ||
2048 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2049 continue
2050 ac_builddir=.
2051
2052case "$ac_dir" in
2053.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2054*)
2055 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2056 # A ".." for each directory in $ac_dir_suffix.
2057 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2058 case $ac_top_builddir_sub in
2059 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2060 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2061 esac ;;
2062esac
2063ac_abs_top_builddir=$ac_pwd
2064ac_abs_builddir=$ac_pwd$ac_dir_suffix
2065# for backward compatibility:
2066ac_top_builddir=$ac_top_build_prefix
2067
2068case $srcdir in
2069 .) # We are building in place.
2070 ac_srcdir=.
2071 ac_top_srcdir=$ac_top_builddir_sub
2072 ac_abs_top_srcdir=$ac_pwd ;;
2073 [\\/]* | ?:[\\/]* ) # Absolute name.
2074 ac_srcdir=$srcdir$ac_dir_suffix;
2075 ac_top_srcdir=$srcdir
2076 ac_abs_top_srcdir=$srcdir ;;
2077 *) # Relative name.
2078 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2079 ac_top_srcdir=$ac_top_build_prefix$srcdir
2080 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2081esac
2082ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2083
2084 cd "$ac_dir" || { ac_status=$?; continue; }
2085 # Check for guested configure.
2086 if test -f "$ac_srcdir/configure.gnu"; then
2087 echo &&
2088 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2089 elif test -f "$ac_srcdir/configure"; then
2090 echo &&
2091 $SHELL "$ac_srcdir/configure" --help=recursive
2092 else
2093 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2094 fi || ac_status=$?
2095 cd "$ac_pwd" || { ac_status=$?; break; }
2096 done
2097fi
2098
2099test -n "$ac_init_help" && exit $ac_status
2100if $ac_init_version; then
2101 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002102ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002103generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002104
cristy14fefe52012-05-21 00:59:18 +00002105Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002106This configure script is free software; the Free Software Foundation
2107gives unlimited permission to copy, distribute and modify it.
2108_ACEOF
2109 exit
2110fi
cristy8b350f62009-11-15 23:12:43 +00002111
2112## ------------------------ ##
2113## Autoconf initialization. ##
2114## ------------------------ ##
2115
2116# ac_fn_c_try_compile LINENO
2117# --------------------------
2118# Try to compile conftest.$ac_ext, and return whether this succeeded.
2119ac_fn_c_try_compile ()
2120{
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 rm -f conftest.$ac_objext
2123 if { { ac_try="$ac_compile"
2124case "(($ac_try" in
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2127esac
2128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129$as_echo "$ac_try_echo"; } >&5
2130 (eval "$ac_compile") 2>conftest.err
2131 ac_status=$?
2132 if test -s conftest.err; then
2133 grep -v '^ *+' conftest.err >conftest.er1
2134 cat conftest.er1 >&5
2135 mv -f conftest.er1 conftest.err
2136 fi
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138 test $ac_status = 0; } && {
2139 test -z "$ac_c_werror_flag" ||
2140 test ! -s conftest.err
2141 } && test -s conftest.$ac_objext; then :
2142 ac_retval=0
2143else
2144 $as_echo "$as_me: failed program was:" >&5
2145sed 's/^/| /' conftest.$ac_ext >&5
2146
2147 ac_retval=1
2148fi
cristyda16f162011-02-19 23:52:17 +00002149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002150 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002151
2152} # ac_fn_c_try_compile
2153
cristy95646052009-11-28 23:05:30 +00002154# ac_fn_c_try_cpp LINENO
2155# ----------------------
2156# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2157ac_fn_c_try_cpp ()
2158{
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 if { { ac_try="$ac_cpp conftest.$ac_ext"
2161case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164esac
2165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166$as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2168 ac_status=$?
2169 if test -s conftest.err; then
2170 grep -v '^ *+' conftest.err >conftest.er1
2171 cat conftest.er1 >&5
2172 mv -f conftest.er1 conftest.err
2173 fi
2174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002175 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2177 test ! -s conftest.err
2178 }; then :
2179 ac_retval=0
2180else
2181 $as_echo "$as_me: failed program was:" >&5
2182sed 's/^/| /' conftest.$ac_ext >&5
2183
2184 ac_retval=1
2185fi
cristyda16f162011-02-19 23:52:17 +00002186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002187 as_fn_set_status $ac_retval
2188
2189} # ac_fn_c_try_cpp
2190
cristy8b350f62009-11-15 23:12:43 +00002191# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2192# -------------------------------------------------------
2193# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2194# the include files in INCLUDES and setting the cache variable VAR
2195# accordingly.
2196ac_fn_c_check_header_mongrel ()
2197{
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002199 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2201$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002202if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002203 $as_echo_n "(cached) " >&6
2204fi
2205eval ac_res=\$$3
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207$as_echo "$ac_res" >&6; }
2208else
2209 # Is the header compilable?
2210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2211$as_echo_n "checking $2 usability... " >&6; }
2212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213/* end confdefs.h. */
2214$4
2215#include <$2>
2216_ACEOF
2217if ac_fn_c_try_compile "$LINENO"; then :
2218 ac_header_compiler=yes
2219else
2220 ac_header_compiler=no
2221fi
2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2224$as_echo "$ac_header_compiler" >&6; }
2225
2226# Is the header present?
2227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2228$as_echo_n "checking $2 presence... " >&6; }
2229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230/* end confdefs.h. */
2231#include <$2>
2232_ACEOF
2233if ac_fn_c_try_cpp "$LINENO"; then :
2234 ac_header_preproc=yes
2235else
2236 ac_header_preproc=no
2237fi
cristyda16f162011-02-19 23:52:17 +00002238rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2240$as_echo "$ac_header_preproc" >&6; }
2241
2242# So? What about this header?
2243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2244 yes:no: )
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2246$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2248$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2249 ;;
2250 no:yes:* )
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2252$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2254$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2256$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2258$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2260$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002261( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002262## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002263## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002264 ) | sed "s/^/$as_me: WARNING: /" >&2
2265 ;;
2266esac
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2268$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002269if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002270 $as_echo_n "(cached) " >&6
2271else
2272 eval "$3=\$ac_header_compiler"
2273fi
2274eval ac_res=\$$3
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276$as_echo "$ac_res" >&6; }
2277fi
cristyda16f162011-02-19 23:52:17 +00002278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002279
2280} # ac_fn_c_check_header_mongrel
2281
2282# ac_fn_c_try_run LINENO
2283# ----------------------
2284# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2285# that executables *can* be run.
2286ac_fn_c_try_run ()
2287{
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 if { { ac_try="$ac_link"
2290case "(($ac_try" in
2291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292 *) ac_try_echo=$ac_try;;
2293esac
2294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2295$as_echo "$ac_try_echo"; } >&5
2296 (eval "$ac_link") 2>&5
2297 ac_status=$?
2298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2299 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2300 { { case "(($ac_try" in
2301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302 *) ac_try_echo=$ac_try;;
2303esac
2304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2305$as_echo "$ac_try_echo"; } >&5
2306 (eval "$ac_try") 2>&5
2307 ac_status=$?
2308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2309 test $ac_status = 0; }; }; then :
2310 ac_retval=0
2311else
2312 $as_echo "$as_me: program exited with status $ac_status" >&5
2313 $as_echo "$as_me: failed program was:" >&5
2314sed 's/^/| /' conftest.$ac_ext >&5
2315
2316 ac_retval=$ac_status
2317fi
2318 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002319 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002320 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002321
2322} # ac_fn_c_try_run
2323
2324# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2325# -------------------------------------------------------
2326# Tests whether HEADER exists and can be compiled using the include files in
2327# INCLUDES, setting the cache variable VAR accordingly.
2328ac_fn_c_check_header_compile ()
2329{
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2332$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002333if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002334 $as_echo_n "(cached) " >&6
2335else
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337/* end confdefs.h. */
2338$4
2339#include <$2>
2340_ACEOF
2341if ac_fn_c_try_compile "$LINENO"; then :
2342 eval "$3=yes"
2343else
2344 eval "$3=no"
2345fi
2346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347fi
2348eval ac_res=\$$3
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002352
2353} # ac_fn_c_check_header_compile
2354
cristya0b81c32010-01-22 02:54:33 +00002355# ac_fn_cxx_try_compile LINENO
2356# ----------------------------
2357# Try to compile conftest.$ac_ext, and return whether this succeeded.
2358ac_fn_cxx_try_compile ()
2359{
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 rm -f conftest.$ac_objext
2362 if { { ac_try="$ac_compile"
2363case "(($ac_try" in
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2366esac
2367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2368$as_echo "$ac_try_echo"; } >&5
2369 (eval "$ac_compile") 2>conftest.err
2370 ac_status=$?
2371 if test -s conftest.err; then
2372 grep -v '^ *+' conftest.err >conftest.er1
2373 cat conftest.er1 >&5
2374 mv -f conftest.er1 conftest.err
2375 fi
2376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2377 test $ac_status = 0; } && {
2378 test -z "$ac_cxx_werror_flag" ||
2379 test ! -s conftest.err
2380 } && test -s conftest.$ac_objext; then :
2381 ac_retval=0
2382else
2383 $as_echo "$as_me: failed program was:" >&5
2384sed 's/^/| /' conftest.$ac_ext >&5
2385
2386 ac_retval=1
2387fi
cristyda16f162011-02-19 23:52:17 +00002388 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002389 as_fn_set_status $ac_retval
2390
2391} # ac_fn_cxx_try_compile
2392
cristyd95b7a52013-10-23 13:12:53 +00002393# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2394# --------------------------------------------
2395# Tries to find the compile-time value of EXPR in a program that includes
2396# INCLUDES, setting VAR accordingly. Returns whether the value could be
2397# computed
2398ac_fn_c_compute_int ()
2399{
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 if test "$cross_compiling" = yes; then
2402 # Depending upon the size, compute the lo and hi bounds.
2403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404/* end confdefs.h. */
2405$4
2406int
2407main ()
2408{
2409static int test_array [1 - 2 * !(($2) >= 0)];
2410test_array [0] = 0;
2411return test_array [0];
2412
2413 ;
2414 return 0;
2415}
2416_ACEOF
2417if ac_fn_c_try_compile "$LINENO"; then :
2418 ac_lo=0 ac_mid=0
2419 while :; do
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421/* end confdefs.h. */
2422$4
2423int
2424main ()
2425{
2426static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2427test_array [0] = 0;
2428return test_array [0];
2429
2430 ;
2431 return 0;
2432}
2433_ACEOF
2434if ac_fn_c_try_compile "$LINENO"; then :
2435 ac_hi=$ac_mid; break
2436else
2437 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2438 if test $ac_lo -le $ac_mid; then
2439 ac_lo= ac_hi=
2440 break
2441 fi
2442 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2443fi
2444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445 done
2446else
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448/* end confdefs.h. */
2449$4
2450int
2451main ()
2452{
2453static int test_array [1 - 2 * !(($2) < 0)];
2454test_array [0] = 0;
2455return test_array [0];
2456
2457 ;
2458 return 0;
2459}
2460_ACEOF
2461if ac_fn_c_try_compile "$LINENO"; then :
2462 ac_hi=-1 ac_mid=-1
2463 while :; do
2464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465/* end confdefs.h. */
2466$4
2467int
2468main ()
2469{
2470static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2471test_array [0] = 0;
2472return test_array [0];
2473
2474 ;
2475 return 0;
2476}
2477_ACEOF
2478if ac_fn_c_try_compile "$LINENO"; then :
2479 ac_lo=$ac_mid; break
2480else
2481 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2482 if test $ac_mid -le $ac_hi; then
2483 ac_lo= ac_hi=
2484 break
2485 fi
2486 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2487fi
2488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489 done
2490else
2491 ac_lo= ac_hi=
2492fi
2493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494fi
2495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2496# Binary search between lo and hi bounds.
2497while test "x$ac_lo" != "x$ac_hi"; do
2498 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500/* end confdefs.h. */
2501$4
2502int
2503main ()
2504{
2505static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2506test_array [0] = 0;
2507return test_array [0];
2508
2509 ;
2510 return 0;
2511}
2512_ACEOF
2513if ac_fn_c_try_compile "$LINENO"; then :
2514 ac_hi=$ac_mid
2515else
2516 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2517fi
2518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519done
2520case $ac_lo in #((
2521?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2522'') ac_retval=1 ;;
2523esac
2524 else
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526/* end confdefs.h. */
2527$4
2528static long int longval () { return $2; }
2529static unsigned long int ulongval () { return $2; }
2530#include <stdio.h>
2531#include <stdlib.h>
2532int
2533main ()
2534{
2535
2536 FILE *f = fopen ("conftest.val", "w");
2537 if (! f)
2538 return 1;
2539 if (($2) < 0)
2540 {
2541 long int i = longval ();
2542 if (i != ($2))
2543 return 1;
2544 fprintf (f, "%ld", i);
2545 }
2546 else
2547 {
2548 unsigned long int i = ulongval ();
2549 if (i != ($2))
2550 return 1;
2551 fprintf (f, "%lu", i);
2552 }
2553 /* Do not output a trailing newline, as this causes \r\n confusion
2554 on some platforms. */
2555 return ferror (f) || fclose (f) != 0;
2556
2557 ;
2558 return 0;
2559}
2560_ACEOF
2561if ac_fn_c_try_run "$LINENO"; then :
2562 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2563else
2564 ac_retval=1
2565fi
2566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2567 conftest.$ac_objext conftest.beam conftest.$ac_ext
2568rm -f conftest.val
2569
2570 fi
2571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2572 as_fn_set_status $ac_retval
2573
2574} # ac_fn_c_compute_int
2575
cristy8b350f62009-11-15 23:12:43 +00002576# ac_fn_c_try_link LINENO
2577# -----------------------
2578# Try to link conftest.$ac_ext, and return whether this succeeded.
2579ac_fn_c_try_link ()
2580{
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 rm -f conftest.$ac_objext conftest$ac_exeext
2583 if { { ac_try="$ac_link"
2584case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587esac
2588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2589$as_echo "$ac_try_echo"; } >&5
2590 (eval "$ac_link") 2>conftest.err
2591 ac_status=$?
2592 if test -s conftest.err; then
2593 grep -v '^ *+' conftest.err >conftest.er1
2594 cat conftest.er1 >&5
2595 mv -f conftest.er1 conftest.err
2596 fi
2597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2598 test $ac_status = 0; } && {
2599 test -z "$ac_c_werror_flag" ||
2600 test ! -s conftest.err
2601 } && test -s conftest$ac_exeext && {
2602 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002603 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002604 }; then :
2605 ac_retval=0
2606else
2607 $as_echo "$as_me: failed program was:" >&5
2608sed 's/^/| /' conftest.$ac_ext >&5
2609
2610 ac_retval=1
2611fi
2612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2614 # interfere with the next link command; also delete a directory that is
2615 # left behind by Apple's compiler. We do this before executing the actions.
2616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002618 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002619
2620} # ac_fn_c_try_link
2621
cristy73bd4a52010-10-05 11:24:23 +00002622# ac_fn_c_check_func LINENO FUNC VAR
2623# ----------------------------------
2624# Tests whether FUNC exists, setting the cache variable VAR accordingly
2625ac_fn_c_check_func ()
2626{
2627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2629$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002630if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002631 $as_echo_n "(cached) " >&6
2632else
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634/* end confdefs.h. */
2635/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2637#define $2 innocuous_$2
2638
2639/* System header to define __stub macros and hopefully few prototypes,
2640 which can conflict with char $2 (); below.
2641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2642 <limits.h> exists even on freestanding compilers. */
2643
2644#ifdef __STDC__
2645# include <limits.h>
2646#else
2647# include <assert.h>
2648#endif
2649
2650#undef $2
2651
2652/* Override any GCC internal prototype to avoid an error.
2653 Use char because int might match the return type of a GCC
2654 builtin and then its argument prototype would still apply. */
2655#ifdef __cplusplus
2656extern "C"
2657#endif
2658char $2 ();
2659/* The GNU C library defines this for functions which it implements
2660 to always fail with ENOSYS. Some functions are actually named
2661 something starting with __ and the normal name is an alias. */
2662#if defined __stub_$2 || defined __stub___$2
2663choke me
2664#endif
2665
2666int
2667main ()
2668{
2669return $2 ();
2670 ;
2671 return 0;
2672}
2673_ACEOF
2674if ac_fn_c_try_link "$LINENO"; then :
2675 eval "$3=yes"
2676else
2677 eval "$3=no"
2678fi
2679rm -f core conftest.err conftest.$ac_objext \
2680 conftest$ac_exeext conftest.$ac_ext
2681fi
2682eval ac_res=\$$3
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2684$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002686
2687} # ac_fn_c_check_func
2688
2689# ac_fn_cxx_try_cpp LINENO
2690# ------------------------
2691# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2692ac_fn_cxx_try_cpp ()
2693{
2694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2695 if { { ac_try="$ac_cpp conftest.$ac_ext"
2696case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699esac
2700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701$as_echo "$ac_try_echo"; } >&5
2702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2703 ac_status=$?
2704 if test -s conftest.err; then
2705 grep -v '^ *+' conftest.err >conftest.er1
2706 cat conftest.er1 >&5
2707 mv -f conftest.er1 conftest.err
2708 fi
2709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002710 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002711 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2712 test ! -s conftest.err
2713 }; then :
2714 ac_retval=0
2715else
2716 $as_echo "$as_me: failed program was:" >&5
2717sed 's/^/| /' conftest.$ac_ext >&5
2718
2719 ac_retval=1
2720fi
cristyda16f162011-02-19 23:52:17 +00002721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002722 as_fn_set_status $ac_retval
2723
2724} # ac_fn_cxx_try_cpp
2725
2726# ac_fn_cxx_try_link LINENO
2727# -------------------------
2728# Try to link conftest.$ac_ext, and return whether this succeeded.
2729ac_fn_cxx_try_link ()
2730{
2731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732 rm -f conftest.$ac_objext conftest$ac_exeext
2733 if { { ac_try="$ac_link"
2734case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737esac
2738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2739$as_echo "$ac_try_echo"; } >&5
2740 (eval "$ac_link") 2>conftest.err
2741 ac_status=$?
2742 if test -s conftest.err; then
2743 grep -v '^ *+' conftest.err >conftest.er1
2744 cat conftest.er1 >&5
2745 mv -f conftest.er1 conftest.err
2746 fi
2747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748 test $ac_status = 0; } && {
2749 test -z "$ac_cxx_werror_flag" ||
2750 test ! -s conftest.err
2751 } && test -s conftest$ac_exeext && {
2752 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002753 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002754 }; then :
2755 ac_retval=0
2756else
2757 $as_echo "$as_me: failed program was:" >&5
2758sed 's/^/| /' conftest.$ac_ext >&5
2759
2760 ac_retval=1
2761fi
2762 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2763 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2764 # interfere with the next link command; also delete a directory that is
2765 # left behind by Apple's compiler. We do this before executing the actions.
2766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002768 as_fn_set_status $ac_retval
2769
2770} # ac_fn_cxx_try_link
2771
cristy8b350f62009-11-15 23:12:43 +00002772# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2773# -------------------------------------------
2774# Tests whether TYPE exists after having included INCLUDES, setting cache
2775# variable VAR accordingly.
2776ac_fn_c_check_type ()
2777{
2778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2780$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002781if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002782 $as_echo_n "(cached) " >&6
2783else
2784 eval "$3=no"
2785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786/* end confdefs.h. */
2787$4
2788int
2789main ()
2790{
2791if (sizeof ($2))
2792 return 0;
2793 ;
2794 return 0;
2795}
2796_ACEOF
2797if ac_fn_c_try_compile "$LINENO"; then :
2798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799/* end confdefs.h. */
2800$4
2801int
2802main ()
2803{
2804if (sizeof (($2)))
2805 return 0;
2806 ;
2807 return 0;
2808}
2809_ACEOF
2810if ac_fn_c_try_compile "$LINENO"; then :
2811
2812else
2813 eval "$3=yes"
2814fi
2815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2816fi
2817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2818fi
2819eval ac_res=\$$3
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2821$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002823
2824} # ac_fn_c_check_type
2825
cristy92703d82010-04-26 00:18:18 +00002826# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2827# ----------------------------------------------------
2828# Tries to find if the field MEMBER exists in type AGGR, after including
2829# INCLUDES, setting cache variable VAR accordingly.
2830ac_fn_c_check_member ()
2831{
2832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2834$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002835if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002836 $as_echo_n "(cached) " >&6
2837else
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839/* end confdefs.h. */
2840$5
2841int
2842main ()
2843{
2844static $2 ac_aggr;
2845if (ac_aggr.$3)
2846return 0;
2847 ;
2848 return 0;
2849}
2850_ACEOF
2851if ac_fn_c_try_compile "$LINENO"; then :
2852 eval "$4=yes"
2853else
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855/* end confdefs.h. */
2856$5
2857int
2858main ()
2859{
2860static $2 ac_aggr;
2861if (sizeof ac_aggr.$3)
2862return 0;
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867if ac_fn_c_try_compile "$LINENO"; then :
2868 eval "$4=yes"
2869else
2870 eval "$4=no"
2871fi
2872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873fi
2874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2875fi
2876eval ac_res=\$$4
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2878$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002880
2881} # ac_fn_c_check_member
2882
cristy5eef09f2012-10-16 12:08:28 +00002883# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2884# ---------------------------------------------
2885# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2886# accordingly.
2887ac_fn_c_check_decl ()
2888{
2889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2890 as_decl_name=`echo $2|sed 's/ *(.*//'`
2891 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2893$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2894if eval \${$3+:} false; then :
2895 $as_echo_n "(cached) " >&6
2896else
2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2898/* end confdefs.h. */
2899$4
2900int
2901main ()
2902{
2903#ifndef $as_decl_name
2904#ifdef __cplusplus
2905 (void) $as_decl_use;
2906#else
2907 (void) $as_decl_name;
2908#endif
2909#endif
2910
2911 ;
2912 return 0;
2913}
2914_ACEOF
2915if ac_fn_c_try_compile "$LINENO"; then :
2916 eval "$3=yes"
2917else
2918 eval "$3=no"
2919fi
2920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2921fi
2922eval ac_res=\$$3
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2924$as_echo "$ac_res" >&6; }
2925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2926
2927} # ac_fn_c_check_decl
2928
cristy501c8042011-05-26 17:46:28 +00002929# ac_fn_c_find_intX_t LINENO BITS VAR
2930# -----------------------------------
2931# Finds a signed integer type with width BITS, setting cache variable VAR
2932# accordingly.
2933ac_fn_c_find_intX_t ()
2934{
2935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2937$as_echo_n "checking for int$2_t... " >&6; }
2938if eval \${$3+:} false; then :
2939 $as_echo_n "(cached) " >&6
2940else
2941 eval "$3=no"
2942 # Order is important - never check a type that is potentially smaller
2943 # than half of the expected target width.
2944 for ac_type in int$2_t 'int' 'long int' \
2945 'long long int' 'short int' 'signed char'; do
2946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947/* end confdefs.h. */
2948$ac_includes_default
2949 enum { N = $2 / 2 - 1 };
2950int
2951main ()
2952{
2953static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002954test_array [0] = 0;
2955return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002956
2957 ;
2958 return 0;
2959}
2960_ACEOF
2961if ac_fn_c_try_compile "$LINENO"; then :
2962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2963/* end confdefs.h. */
2964$ac_includes_default
2965 enum { N = $2 / 2 - 1 };
2966int
2967main ()
2968{
2969static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2970 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002971test_array [0] = 0;
2972return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002973
2974 ;
2975 return 0;
2976}
2977_ACEOF
2978if ac_fn_c_try_compile "$LINENO"; then :
2979
2980else
2981 case $ac_type in #(
2982 int$2_t) :
2983 eval "$3=yes" ;; #(
2984 *) :
2985 eval "$3=\$ac_type" ;;
2986esac
2987fi
2988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989fi
2990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2991 if eval test \"x\$"$3"\" = x"no"; then :
2992
2993else
2994 break
2995fi
2996 done
2997fi
2998eval ac_res=\$$3
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3000$as_echo "$ac_res" >&6; }
3001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3002
3003} # ac_fn_c_find_intX_t
3004
3005# ac_fn_c_find_uintX_t LINENO BITS VAR
3006# ------------------------------------
3007# Finds an unsigned integer type with width BITS, setting cache variable VAR
3008# accordingly.
3009ac_fn_c_find_uintX_t ()
3010{
3011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3013$as_echo_n "checking for uint$2_t... " >&6; }
3014if eval \${$3+:} false; then :
3015 $as_echo_n "(cached) " >&6
3016else
3017 eval "$3=no"
3018 # Order is important - never check a type that is potentially smaller
3019 # than half of the expected target width.
3020 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3021 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023/* end confdefs.h. */
3024$ac_includes_default
3025int
3026main ()
3027{
3028static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003029test_array [0] = 0;
3030return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003031
3032 ;
3033 return 0;
3034}
3035_ACEOF
3036if ac_fn_c_try_compile "$LINENO"; then :
3037 case $ac_type in #(
3038 uint$2_t) :
3039 eval "$3=yes" ;; #(
3040 *) :
3041 eval "$3=\$ac_type" ;;
3042esac
3043fi
3044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3045 if eval test \"x\$"$3"\" = x"no"; then :
3046
3047else
3048 break
3049fi
3050 done
3051fi
3052eval ac_res=\$$3
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3054$as_echo "$ac_res" >&6; }
3055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3056
3057} # ac_fn_c_find_uintX_t
3058
cristy8b350f62009-11-15 23:12:43 +00003059# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3060# ---------------------------------------------------------
3061# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3062# the include files in INCLUDES and setting the cache variable VAR
3063# accordingly.
3064ac_fn_cxx_check_header_mongrel ()
3065{
3066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003067 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3069$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003070if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003071 $as_echo_n "(cached) " >&6
3072fi
3073eval ac_res=\$$3
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3075$as_echo "$ac_res" >&6; }
3076else
3077 # Is the header compilable?
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3079$as_echo_n "checking $2 usability... " >&6; }
3080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081/* end confdefs.h. */
3082$4
3083#include <$2>
3084_ACEOF
3085if ac_fn_cxx_try_compile "$LINENO"; then :
3086 ac_header_compiler=yes
3087else
3088 ac_header_compiler=no
3089fi
3090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3092$as_echo "$ac_header_compiler" >&6; }
3093
3094# Is the header present?
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3096$as_echo_n "checking $2 presence... " >&6; }
3097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098/* end confdefs.h. */
3099#include <$2>
3100_ACEOF
3101if ac_fn_cxx_try_cpp "$LINENO"; then :
3102 ac_header_preproc=yes
3103else
3104 ac_header_preproc=no
3105fi
cristyda16f162011-02-19 23:52:17 +00003106rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3108$as_echo "$ac_header_preproc" >&6; }
3109
3110# So? What about this header?
3111case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3112 yes:no: )
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3114$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3116$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3117 ;;
3118 no:yes:* )
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3120$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3122$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3124$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3126$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3128$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003129( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003130## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003131## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003132 ) | sed "s/^/$as_me: WARNING: /" >&2
3133 ;;
3134esac
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3136$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003137if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003138 $as_echo_n "(cached) " >&6
3139else
3140 eval "$3=\$ac_header_compiler"
3141fi
3142eval ac_res=\$$3
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3144$as_echo "$ac_res" >&6; }
3145fi
cristyda16f162011-02-19 23:52:17 +00003146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003147
3148} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003149cat >config.log <<_ACEOF
3150This file contains any messages produced by compilers while
3151running configure, to aid debugging if configure makes a mistake.
3152
cristy29eb34e2011-10-16 00:46:08 +00003153It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003154generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003155
3156 $ $0 $@
3157
3158_ACEOF
3159exec 5>>config.log
3160{
3161cat <<_ASUNAME
3162## --------- ##
3163## Platform. ##
3164## --------- ##
3165
3166hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3167uname -m = `(uname -m) 2>/dev/null || echo unknown`
3168uname -r = `(uname -r) 2>/dev/null || echo unknown`
3169uname -s = `(uname -s) 2>/dev/null || echo unknown`
3170uname -v = `(uname -v) 2>/dev/null || echo unknown`
3171
3172/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3173/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3174
3175/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3176/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3177/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3178/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3179/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3180/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3181/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3182
3183_ASUNAME
3184
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003190 $as_echo "PATH: $as_dir"
3191 done
cristy3ed852e2009-09-05 21:47:34 +00003192IFS=$as_save_IFS
3193
3194} >&5
3195
3196cat >&5 <<_ACEOF
3197
3198
3199## ----------- ##
3200## Core tests. ##
3201## ----------- ##
3202
3203_ACEOF
3204
3205
3206# Keep a trace of the command line.
3207# Strip out --no-create and --no-recursion so they do not pile up.
3208# Strip out --silent because we don't want to record it for future runs.
3209# Also quote any args containing shell meta-characters.
3210# Make two passes to allow for proper duplicate-argument suppression.
3211ac_configure_args=
3212ac_configure_args0=
3213ac_configure_args1=
3214ac_must_keep_next=false
3215for ac_pass in 1 2
3216do
3217 for ac_arg
3218 do
3219 case $ac_arg in
3220 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3222 | -silent | --silent | --silen | --sile | --sil)
3223 continue ;;
3224 *\'*)
3225 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3226 esac
3227 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003228 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003229 2)
cristy8b350f62009-11-15 23:12:43 +00003230 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003231 if test $ac_must_keep_next = true; then
3232 ac_must_keep_next=false # Got value, back to normal.
3233 else
3234 case $ac_arg in
3235 *=* | --config-cache | -C | -disable-* | --disable-* \
3236 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3237 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3238 | -with-* | --with-* | -without-* | --without-* | --x)
3239 case "$ac_configure_args0 " in
3240 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3241 esac
3242 ;;
3243 -* ) ac_must_keep_next=true ;;
3244 esac
3245 fi
cristy8b350f62009-11-15 23:12:43 +00003246 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003247 ;;
3248 esac
3249 done
3250done
cristy8b350f62009-11-15 23:12:43 +00003251{ ac_configure_args0=; unset ac_configure_args0;}
3252{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003253
3254# When interrupted or exit'd, cleanup temporary files, and complete
3255# config.log. We remove comments because anyway the quotes in there
3256# would cause problems or look ugly.
3257# WARNING: Use '\'' to represent an apostrophe within the trap.
3258# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3259trap 'exit_status=$?
3260 # Save into config.log some information that might help in debugging.
3261 {
3262 echo
3263
cristy98dddb52010-11-04 00:30:15 +00003264 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003265## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003266## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003267 echo
3268 # The following way of writing the cache mishandles newlines in values,
3269(
3270 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3271 eval ac_val=\$$ac_var
3272 case $ac_val in #(
3273 *${as_nl}*)
3274 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003275 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003276$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3277 esac
3278 case $ac_var in #(
3279 _ | IFS | as_nl) ;; #(
3280 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003281 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003282 esac ;;
3283 esac
3284 done
3285 (set) 2>&1 |
3286 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3287 *${as_nl}ac_space=\ *)
3288 sed -n \
3289 "s/'\''/'\''\\\\'\'''\''/g;
3290 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3291 ;; #(
3292 *)
3293 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3294 ;;
3295 esac |
3296 sort
3297)
3298 echo
3299
cristy98dddb52010-11-04 00:30:15 +00003300 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003301## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003302## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003303 echo
3304 for ac_var in $ac_subst_vars
3305 do
3306 eval ac_val=\$$ac_var
3307 case $ac_val in
3308 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3309 esac
3310 $as_echo "$ac_var='\''$ac_val'\''"
3311 done | sort
3312 echo
3313
3314 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003315 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003316## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003317## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003318 echo
3319 for ac_var in $ac_subst_files
3320 do
3321 eval ac_val=\$$ac_var
3322 case $ac_val in
3323 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3324 esac
3325 $as_echo "$ac_var='\''$ac_val'\''"
3326 done | sort
3327 echo
3328 fi
3329
3330 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003331 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003332## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003333## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003334 echo
3335 cat confdefs.h
3336 echo
3337 fi
3338 test "$ac_signal" != 0 &&
3339 $as_echo "$as_me: caught signal $ac_signal"
3340 $as_echo "$as_me: exit $exit_status"
3341 } >&5
3342 rm -f core *.core core.conftest.* &&
3343 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3344 exit $exit_status
3345' 0
3346for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003347 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003348done
3349ac_signal=0
3350
3351# confdefs.h avoids OS command line length limits that DEFS can exceed.
3352rm -f -r conftest* confdefs.h
3353
cristy8b350f62009-11-15 23:12:43 +00003354$as_echo "/* confdefs.h */" > confdefs.h
3355
cristy3ed852e2009-09-05 21:47:34 +00003356# Predefined preprocessor variables.
3357
3358cat >>confdefs.h <<_ACEOF
3359#define PACKAGE_NAME "$PACKAGE_NAME"
3360_ACEOF
3361
cristy3ed852e2009-09-05 21:47:34 +00003362cat >>confdefs.h <<_ACEOF
3363#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3364_ACEOF
3365
cristy3ed852e2009-09-05 21:47:34 +00003366cat >>confdefs.h <<_ACEOF
3367#define PACKAGE_VERSION "$PACKAGE_VERSION"
3368_ACEOF
3369
cristy3ed852e2009-09-05 21:47:34 +00003370cat >>confdefs.h <<_ACEOF
3371#define PACKAGE_STRING "$PACKAGE_STRING"
3372_ACEOF
3373
cristy3ed852e2009-09-05 21:47:34 +00003374cat >>confdefs.h <<_ACEOF
3375#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3376_ACEOF
3377
cristy8b350f62009-11-15 23:12:43 +00003378cat >>confdefs.h <<_ACEOF
3379#define PACKAGE_URL "$PACKAGE_URL"
3380_ACEOF
3381
cristy3ed852e2009-09-05 21:47:34 +00003382
3383# Let the site file select an alternate cache file if it wants to.
3384# Prefer an explicitly selected file to automatically selected ones.
3385ac_site_file1=NONE
3386ac_site_file2=NONE
3387if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003388 # We do not want a PATH search for config.site.
3389 case $CONFIG_SITE in #((
3390 -*) ac_site_file1=./$CONFIG_SITE;;
3391 */*) ac_site_file1=$CONFIG_SITE;;
3392 *) ac_site_file1=./$CONFIG_SITE;;
3393 esac
cristy3ed852e2009-09-05 21:47:34 +00003394elif test "x$prefix" != xNONE; then
3395 ac_site_file1=$prefix/share/config.site
3396 ac_site_file2=$prefix/etc/config.site
3397else
3398 ac_site_file1=$ac_default_prefix/share/config.site
3399 ac_site_file2=$ac_default_prefix/etc/config.site
3400fi
3401for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3402do
3403 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003404 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003405 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003406$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3407 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003408 . "$ac_site_file" \
3409 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411as_fn_error $? "failed to load site script $ac_site_file
3412See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003413 fi
3414done
3415
3416if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003417 # Some versions of bash will fail to source /dev/null (special files
3418 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3419 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003420 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003421$as_echo "$as_me: loading cache $cache_file" >&6;}
3422 case $cache_file in
3423 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3424 *) . "./$cache_file";;
3425 esac
3426 fi
3427else
cristy8b350f62009-11-15 23:12:43 +00003428 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003429$as_echo "$as_me: creating cache $cache_file" >&6;}
3430 >$cache_file
3431fi
3432
cristycd4c5312009-11-22 01:19:08 +00003433as_fn_append ac_header_list " stdlib.h"
3434as_fn_append ac_header_list " unistd.h"
3435as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003436# Check that the precious variables saved in the cache have kept the same
3437# value.
3438ac_cache_corrupted=false
3439for ac_var in $ac_precious_vars; do
3440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3441 eval ac_new_set=\$ac_env_${ac_var}_set
3442 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3443 eval ac_new_val=\$ac_env_${ac_var}_value
3444 case $ac_old_set,$ac_new_set in
3445 set,)
cristy8b350f62009-11-15 23:12:43 +00003446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003447$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3448 ac_cache_corrupted=: ;;
3449 ,set)
cristy8b350f62009-11-15 23:12:43 +00003450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003451$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3452 ac_cache_corrupted=: ;;
3453 ,);;
3454 *)
3455 if test "x$ac_old_val" != "x$ac_new_val"; then
3456 # differences in whitespace do not lead to failure.
3457 ac_old_val_w=`echo x $ac_old_val`
3458 ac_new_val_w=`echo x $ac_new_val`
3459 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003461$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3462 ac_cache_corrupted=:
3463 else
cristy8b350f62009-11-15 23:12:43 +00003464 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003465$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3466 eval $ac_var=\$ac_old_val
3467 fi
cristy8b350f62009-11-15 23:12:43 +00003468 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003469$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003470 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003471$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3472 fi;;
3473 esac
3474 # Pass precious variables to config.status.
3475 if test "$ac_new_set" = set; then
3476 case $ac_new_val in
3477 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3478 *) ac_arg=$ac_var=$ac_new_val ;;
3479 esac
3480 case " $ac_configure_args " in
3481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003482 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003483 esac
3484 fi
3485done
3486if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003490$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003491 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003492fi
cristy8b350f62009-11-15 23:12:43 +00003493## -------------------- ##
3494## Main body of script. ##
3495## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003496
3497ac_ext=c
3498ac_cpp='$CPP $CPPFLAGS'
3499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502
3503
3504
3505ac_aux_dir=
3506for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003507 if test -f "$ac_dir/install-sh"; then
3508 ac_aux_dir=$ac_dir
3509 ac_install_sh="$ac_aux_dir/install-sh -c"
3510 break
3511 elif test -f "$ac_dir/install.sh"; then
3512 ac_aux_dir=$ac_dir
3513 ac_install_sh="$ac_aux_dir/install.sh -c"
3514 break
3515 elif test -f "$ac_dir/shtool"; then
3516 ac_aux_dir=$ac_dir
3517 ac_install_sh="$ac_aux_dir/shtool install -c"
3518 break
3519 fi
cristy3ed852e2009-09-05 21:47:34 +00003520done
3521if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003522 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003523fi
3524
3525# These three variables are undocumented and unsupported,
3526# and are intended to be withdrawn in a future Autoconf release.
3527# They can cause serious problems if a builder's source tree is in a directory
3528# whose full name contains unusual characters.
3529ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3530ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3531ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3532
3533
3534
3535
3536ac_config_headers="$ac_config_headers config/config.h"
3537
cristy24fc1fe2010-10-23 21:13:01 +00003538
cristy01ff9f32012-12-01 18:15:29 +00003539ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003540
cristy3ed852e2009-09-05 21:47:34 +00003541# Make sure we can run config.sub.
3542$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003543 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003544
cristy8b350f62009-11-15 23:12:43 +00003545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003546$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003547if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003548 $as_echo_n "(cached) " >&6
3549else
3550 ac_build_alias=$build_alias
3551test "x$ac_build_alias" = x &&
3552 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3553test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003554 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003555ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003556 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003557
3558fi
cristy8b350f62009-11-15 23:12:43 +00003559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003560$as_echo "$ac_cv_build" >&6; }
3561case $ac_cv_build in
3562*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003563*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003564esac
3565build=$ac_cv_build
3566ac_save_IFS=$IFS; IFS='-'
3567set x $ac_cv_build
3568shift
3569build_cpu=$1
3570build_vendor=$2
3571shift; shift
3572# Remember, the first character of IFS is used to create $*,
3573# except with old shells:
3574build_os=$*
3575IFS=$ac_save_IFS
3576case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3577
3578
cristy8b350f62009-11-15 23:12:43 +00003579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003580$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003581if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003582 $as_echo_n "(cached) " >&6
3583else
3584 if test "x$host_alias" = x; then
3585 ac_cv_host=$ac_cv_build
3586else
3587 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003588 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003589fi
3590
3591fi
cristy8b350f62009-11-15 23:12:43 +00003592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003593$as_echo "$ac_cv_host" >&6; }
3594case $ac_cv_host in
3595*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003596*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003597esac
3598host=$ac_cv_host
3599ac_save_IFS=$IFS; IFS='-'
3600set x $ac_cv_host
3601shift
3602host_cpu=$1
3603host_vendor=$2
3604shift; shift
3605# Remember, the first character of IFS is used to create $*,
3606# except with old shells:
3607host_os=$*
3608IFS=$ac_save_IFS
3609case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3610
3611
cristy8b350f62009-11-15 23:12:43 +00003612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003613$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003614if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003615 $as_echo_n "(cached) " >&6
3616else
3617 if test "x$target_alias" = x; then
3618 ac_cv_target=$ac_cv_host
3619else
3620 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003621 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003622fi
3623
3624fi
cristy8b350f62009-11-15 23:12:43 +00003625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003626$as_echo "$ac_cv_target" >&6; }
3627case $ac_cv_target in
3628*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003629*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003630esac
3631target=$ac_cv_target
3632ac_save_IFS=$IFS; IFS='-'
3633set x $ac_cv_target
3634shift
3635target_cpu=$1
3636target_vendor=$2
3637shift; shift
3638# Remember, the first character of IFS is used to create $*,
3639# except with old shells:
3640target_os=$*
3641IFS=$ac_save_IFS
3642case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3643
3644
3645# The aliases save the names the user supplied, while $host etc.
3646# will get canonicalized.
3647test -n "$target_alias" &&
3648 test "$program_prefix$program_suffix$program_transform_name" = \
3649 NONENONEs,x,x, &&
3650 program_prefix=${target_alias}-
3651
cristy837d6dc2010-02-27 01:16:57 +00003652
cristya5bda012013-11-03 18:05:38 +00003653am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003654
3655# Find a good install program. We prefer a C program (faster),
3656# so one script is as good as another. But avoid the broken or
3657# incompatible versions:
3658# SysV /etc/install, /usr/sbin/install
3659# SunOS /usr/etc/install
3660# IRIX /sbin/install
3661# AIX /bin/install
3662# AmigaOS /C/install, which installs bootblocks on floppy discs
3663# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3664# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3665# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3666# OS/2's system install, which has a completely different semantic
3667# ./install, which can be erroneously created by make from ./install.sh.
3668# Reject install programs that cannot install multiple files.
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3670$as_echo_n "checking for a BSD-compatible install... " >&6; }
3671if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003672if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003673 $as_echo_n "(cached) " >&6
3674else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 # Account for people who put trailing slashes in PATH elements.
3681case $as_dir/ in #((
3682 ./ | .// | /[cC]/* | \
3683 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3684 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3685 /usr/ucb/* ) ;;
3686 *)
3687 # OSF1 and SCO ODT 3.0 have their own names for install.
3688 # Don't use installbsd from OSF since it installs stuff as root
3689 # by default.
3690 for ac_prog in ginstall scoinst install; do
3691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003692 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003693 if test $ac_prog = install &&
3694 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3695 # AIX install. It has an incompatible calling convention.
3696 :
3697 elif test $ac_prog = install &&
3698 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3699 # program-specific install script used by HP pwplus--don't use.
3700 :
3701 else
3702 rm -rf conftest.one conftest.two conftest.dir
3703 echo one > conftest.one
3704 echo two > conftest.two
3705 mkdir conftest.dir
3706 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3707 test -s conftest.one && test -s conftest.two &&
3708 test -s conftest.dir/conftest.one &&
3709 test -s conftest.dir/conftest.two
3710 then
3711 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3712 break 3
3713 fi
3714 fi
3715 fi
3716 done
3717 done
3718 ;;
3719esac
3720
3721 done
3722IFS=$as_save_IFS
3723
3724rm -rf conftest.one conftest.two conftest.dir
3725
3726fi
3727 if test "${ac_cv_path_install+set}" = set; then
3728 INSTALL=$ac_cv_path_install
3729 else
3730 # As a last resort, use the slow shell script. Don't cache a
3731 # value for INSTALL within a source directory, because that will
3732 # break other packages using the cache if that directory is
3733 # removed, or if the value is a relative name.
3734 INSTALL=$ac_install_sh
3735 fi
3736fi
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3738$as_echo "$INSTALL" >&6; }
3739
3740# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3741# It thinks the first close brace ends the variable substitution.
3742test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3743
3744test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3745
3746test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3747
cristy9af1cbf2014-12-28 22:03:09 +00003748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3749$as_echo_n "checking whether build environment is sane... " >&6; }
3750# Reject unsafe characters in $srcdir or the absolute working directory
3751# name. Accept space and tab only in the latter.
3752am_lf='
3753'
3754case `pwd` in
3755 *[\\\"\#\$\&\'\`$am_lf]*)
3756 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3757esac
3758case $srcdir in
3759 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3760 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3761esac
3762
3763# Do 'set' in a subshell so we don't clobber the current shell's
3764# arguments. Must try -L first in case configure is actually a
3765# symlink; some systems play weird games with the mod time of symlinks
3766# (eg FreeBSD returns the mod time of the symlink's containing
3767# directory).
3768if (
3769 am_has_slept=no
3770 for am_try in 1 2; do
3771 echo "timestamp, slept: $am_has_slept" > conftest.file
3772 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3773 if test "$*" = "X"; then
3774 # -L didn't work.
3775 set X `ls -t "$srcdir/configure" conftest.file`
3776 fi
3777 if test "$*" != "X $srcdir/configure conftest.file" \
3778 && test "$*" != "X conftest.file $srcdir/configure"; then
3779
3780 # If neither matched, then we have a broken ls. This can happen
3781 # if, for instance, CONFIG_SHELL is bash and it inherits a
3782 # broken ls alias from the environment. This has actually
3783 # happened. Such a system could not be considered "sane".
3784 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3785 alias in your environment" "$LINENO" 5
3786 fi
3787 if test "$2" = conftest.file || test $am_try -eq 2; then
3788 break
3789 fi
3790 # Just in case.
3791 sleep 1
3792 am_has_slept=yes
3793 done
3794 test "$2" = conftest.file
3795 )
3796then
3797 # Ok.
3798 :
3799else
3800 as_fn_error $? "newly created file is older than distributed files!
3801Check your system clock" "$LINENO" 5
3802fi
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3804$as_echo "yes" >&6; }
3805# If we didn't sleep, we still need to ensure time stamps of config.status and
3806# generated files are strictly newer.
3807am_sleep_pid=
3808if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3809 ( sleep 1 ) &
3810 am_sleep_pid=$!
3811fi
3812
3813rm -f conftest.file
3814
cristy73bd4a52010-10-05 11:24:23 +00003815test "$program_prefix" != NONE &&
3816 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3817# Use a double $ so make ignores it.
3818test "$program_suffix" != NONE &&
3819 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3820# Double any \ or $.
3821# By default was `s,x,x', remove it if useless.
3822ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3823program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3824
3825# expand $ac_aux_dir to an absolute path
3826am_aux_dir=`cd $ac_aux_dir && pwd`
3827
3828if test x"${MISSING+set}" != xset; then
3829 case $am_aux_dir in
3830 *\ * | *\ *)
3831 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3832 *)
3833 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3834 esac
3835fi
3836# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003837if eval "$MISSING --is-lightweight"; then
3838 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003839else
3840 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3842$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003843fi
3844
3845if test x"${install_sh}" != xset; then
3846 case $am_aux_dir in
3847 *\ * | *\ *)
3848 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3849 *)
3850 install_sh="\${SHELL} $am_aux_dir/install-sh"
3851 esac
3852fi
3853
cristyc0890a62012-07-19 00:18:20 +00003854# Installed binaries are usually stripped using 'strip' when the user
3855# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003856# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003857# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003858if test "$cross_compiling" != no; then
3859 if test -n "$ac_tool_prefix"; then
3860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3861set dummy ${ac_tool_prefix}strip; ac_word=$2
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003864if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003865 $as_echo_n "(cached) " >&6
3866else
3867 if test -n "$STRIP"; then
3868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3869else
3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871for as_dir in $PATH
3872do
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3880 fi
3881done
3882 done
3883IFS=$as_save_IFS
3884
3885fi
3886fi
3887STRIP=$ac_cv_prog_STRIP
3888if test -n "$STRIP"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3890$as_echo "$STRIP" >&6; }
3891else
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893$as_echo "no" >&6; }
3894fi
3895
3896
3897fi
3898if test -z "$ac_cv_prog_STRIP"; then
3899 ac_ct_STRIP=$STRIP
3900 # Extract the first word of "strip", so it can be a program name with args.
3901set dummy strip; ac_word=$2
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003904if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003905 $as_echo_n "(cached) " >&6
3906else
3907 if test -n "$ac_ct_STRIP"; then
3908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3909else
3910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911for as_dir in $PATH
3912do
3913 IFS=$as_save_IFS
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003917 ac_cv_prog_ac_ct_STRIP="strip"
3918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 break 2
3920 fi
3921done
3922 done
3923IFS=$as_save_IFS
3924
3925fi
3926fi
3927ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3928if test -n "$ac_ct_STRIP"; then
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3930$as_echo "$ac_ct_STRIP" >&6; }
3931else
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933$as_echo "no" >&6; }
3934fi
3935
3936 if test "x$ac_ct_STRIP" = x; then
3937 STRIP=":"
3938 else
3939 case $cross_compiling:$ac_tool_warned in
3940yes:)
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3943ac_tool_warned=yes ;;
3944esac
3945 STRIP=$ac_ct_STRIP
3946 fi
3947else
3948 STRIP="$ac_cv_prog_STRIP"
3949fi
3950
3951fi
3952INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3953
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3955$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3956if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003957 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003958 $as_echo_n "(cached) " >&6
3959else
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_prog in mkdir gmkdir; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003967 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003968 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3969 'mkdir (GNU coreutils) '* | \
3970 'mkdir (coreutils) '* | \
3971 'mkdir (fileutils) '4.1*)
3972 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3973 break 3;;
3974 esac
3975 done
3976 done
3977 done
3978IFS=$as_save_IFS
3979
3980fi
3981
3982 test -d ./--version && rmdir ./--version
3983 if test "${ac_cv_path_mkdir+set}" = set; then
3984 MKDIR_P="$ac_cv_path_mkdir -p"
3985 else
3986 # As a last resort, use the slow shell script. Don't cache a
3987 # value for MKDIR_P within a source directory, because that will
3988 # break other packages using the cache if that directory is
3989 # removed, or if the value is a relative name.
3990 MKDIR_P="$ac_install_sh -d"
3991 fi
3992fi
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3994$as_echo "$MKDIR_P" >&6; }
3995
cristy73bd4a52010-10-05 11:24:23 +00003996for ac_prog in gawk mawk nawk awk
3997do
3998 # Extract the first word of "$ac_prog", so it can be a program name with args.
3999set dummy $ac_prog; ac_word=$2
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004002if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004003 $as_echo_n "(cached) " >&6
4004else
4005 if test -n "$AWK"; then
4006 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4007else
4008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009for as_dir in $PATH
4010do
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004015 ac_cv_prog_AWK="$ac_prog"
4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 break 2
4018 fi
4019done
4020 done
4021IFS=$as_save_IFS
4022
4023fi
4024fi
4025AWK=$ac_cv_prog_AWK
4026if test -n "$AWK"; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4028$as_echo "$AWK" >&6; }
4029else
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031$as_echo "no" >&6; }
4032fi
4033
4034
4035 test -n "$AWK" && break
4036done
4037
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4039$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4040set x ${MAKE-make}
4041ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004042if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004043 $as_echo_n "(cached) " >&6
4044else
4045 cat >conftest.make <<\_ACEOF
4046SHELL = /bin/sh
4047all:
4048 @echo '@@@%%%=$(MAKE)=@@@%%%'
4049_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004050# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004051case `${MAKE-make} -f conftest.make 2>/dev/null` in
4052 *@@@%%%=?*=@@@%%%*)
4053 eval ac_cv_prog_make_${ac_make}_set=yes;;
4054 *)
4055 eval ac_cv_prog_make_${ac_make}_set=no;;
4056esac
4057rm -f conftest.make
4058fi
4059if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4061$as_echo "yes" >&6; }
4062 SET_MAKE=
4063else
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065$as_echo "no" >&6; }
4066 SET_MAKE="MAKE=${MAKE-make}"
4067fi
4068
4069rm -rf .tst 2>/dev/null
4070mkdir .tst 2>/dev/null
4071if test -d .tst; then
4072 am__leading_dot=.
4073else
4074 am__leading_dot=_
4075fi
4076rmdir .tst 2>/dev/null
4077
cristya448bd22011-10-14 12:38:13 +00004078# Check whether --enable-silent-rules was given.
4079if test "${enable_silent_rules+set}" = set; then :
4080 enableval=$enable_silent_rules;
4081fi
4082
cristyc0890a62012-07-19 00:18:20 +00004083case $enable_silent_rules in # (((
4084 yes) AM_DEFAULT_VERBOSITY=0;;
4085 no) AM_DEFAULT_VERBOSITY=1;;
4086 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004087esac
cristyc3fb77b2012-02-06 01:49:41 +00004088am_make=${MAKE-make}
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4090$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4091if ${am_cv_make_support_nested_variables+:} false; then :
4092 $as_echo_n "(cached) " >&6
4093else
4094 if $as_echo 'TRUE=$(BAR$(V))
4095BAR0=false
4096BAR1=true
4097V=1
4098am__doit:
4099 @$(TRUE)
4100.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4101 am_cv_make_support_nested_variables=yes
4102else
4103 am_cv_make_support_nested_variables=no
4104fi
4105fi
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4107$as_echo "$am_cv_make_support_nested_variables" >&6; }
4108if test $am_cv_make_support_nested_variables = yes; then
4109 AM_V='$(V)'
4110 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4111else
4112 AM_V=$AM_DEFAULT_VERBOSITY
4113 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4114fi
cristya448bd22011-10-14 12:38:13 +00004115AM_BACKSLASH='\'
4116
cristy73bd4a52010-10-05 11:24:23 +00004117if test "`cd $srcdir && pwd`" != "`pwd`"; then
4118 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4119 # is not polluted with repeated "-I."
4120 am__isrc=' -I$(srcdir)'
4121 # test to see if srcdir already configured
4122 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004123 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004124 fi
4125fi
4126
4127# test whether we have cygpath
4128if test -z "$CYGPATH_W"; then
4129 if (cygpath --version) >/dev/null 2>/dev/null; then
4130 CYGPATH_W='cygpath -w'
4131 else
4132 CYGPATH_W=echo
4133 fi
4134fi
4135
4136
4137# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004138 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004139 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004140
4141
cristya448bd22011-10-14 12:38:13 +00004142cat >>confdefs.h <<_ACEOF
4143#define PACKAGE "$PACKAGE"
4144_ACEOF
4145
4146
4147cat >>confdefs.h <<_ACEOF
4148#define VERSION "$VERSION"
4149_ACEOF
4150
cristy73bd4a52010-10-05 11:24:23 +00004151# Some tools Automake needs.
4152
4153ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4154
4155
4156AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4157
4158
4159AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4160
4161
4162AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4163
4164
4165MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4166
cristyc0890a62012-07-19 00:18:20 +00004167# For better backward compatibility. To be removed once Automake 1.9.x
4168# dies out for good. For more background, see:
4169# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4170# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4171mkdir_p='$(MKDIR_P)'
4172
cristy73bd4a52010-10-05 11:24:23 +00004173# We need awk for the "check" target. The system "awk" is bad on
4174# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004175# Always define AMTAR for backward compatibility. Yes, it's still used
4176# in the wild :-( We should find a proper way to deprecate it ...
4177AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004178
cristye69bdbe2013-05-03 21:40:44 +00004179
4180# We'll loop over all known methods to create a tar archive until one works.
4181_am_tools='gnutar pax cpio none'
4182
cristyc3fb77b2012-02-06 01:49:41 +00004183am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004184
4185
4186
4187
4188
cristy3ed852e2009-09-05 21:47:34 +00004189
cristya5bda012013-11-03 18:05:38 +00004190# POSIX will say in a future version that running "rm -f" with no argument
4191# is OK; and we want to be able to make that assumption in our Makefile
4192# recipes. So use an aggressive probe to check that the usage we want is
4193# actually supported "in the wild" to an acceptable degree.
4194# See automake bug#10828.
4195# To make any issue more visible, cause the running configure to be aborted
4196# by default if the 'rm' program in use doesn't match our expectations; the
4197# user can still override this though.
4198if rm -f && rm -fr && rm -rf; then : OK; else
4199 cat >&2 <<'END'
4200Oops!
4201
4202Your 'rm' program seems unable to run without file operands specified
4203on the command line, even when the '-f' option is present. This is contrary
4204to the behaviour of most rm programs out there, and not conforming with
4205the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4206
4207Please tell bug-automake@gnu.org about your system, including the value
4208of your $PATH and any error possibly output before this message. This
4209can help us improve future automake versions.
4210
4211END
4212 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4213 echo 'Configuration will proceed anyway, since you have set the' >&2
4214 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4215 echo >&2
4216 else
4217 cat >&2 <<'END'
4218Aborting the configuration process, to ensure you take notice of the issue.
4219
4220You can download and install GNU coreutils to get an 'rm' implementation
4221that behaves properly: <http://www.gnu.org/software/coreutils/>.
4222
4223If you want to complete the configuration process using your problematic
4224'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4225to "yes", and re-run configure.
4226
4227END
4228 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4229 fi
4230fi
cristy73bd4a52010-10-05 11:24:23 +00004231# Check whether --enable-silent-rules was given.
4232if test "${enable_silent_rules+set}" = set; then :
4233 enableval=$enable_silent_rules;
4234fi
4235
cristyc0890a62012-07-19 00:18:20 +00004236case $enable_silent_rules in # (((
4237 yes) AM_DEFAULT_VERBOSITY=0;;
4238 no) AM_DEFAULT_VERBOSITY=1;;
4239 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004240esac
cristyc3fb77b2012-02-06 01:49:41 +00004241am_make=${MAKE-make}
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4243$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4244if ${am_cv_make_support_nested_variables+:} false; then :
4245 $as_echo_n "(cached) " >&6
4246else
4247 if $as_echo 'TRUE=$(BAR$(V))
4248BAR0=false
4249BAR1=true
4250V=1
4251am__doit:
4252 @$(TRUE)
4253.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4254 am_cv_make_support_nested_variables=yes
4255else
4256 am_cv_make_support_nested_variables=no
4257fi
4258fi
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4260$as_echo "$am_cv_make_support_nested_variables" >&6; }
4261if test $am_cv_make_support_nested_variables = yes; then
4262 AM_V='$(V)'
4263 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4264else
4265 AM_V=$AM_DEFAULT_VERBOSITY
4266 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4267fi
cristy73bd4a52010-10-05 11:24:23 +00004268AM_BACKSLASH='\'
4269
cristy3ed852e2009-09-05 21:47:34 +00004270
cristy9af1cbf2014-12-28 22:03:09 +00004271#
4272# Save initial user-tunable values
4273#
4274USER_LIBS=$LIBS
4275for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
4276 eval isset=\${$var+set}
4277 if test "$isset" = 'set'; then
4278 eval val=$`echo $var`
4279 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4280 fi
4281done
4282
4283
4284CONFIGURE_ARGS="$0 ${ac_configure_args}"
4285
4286
cristy187791c2015-05-03 22:17:00 +00004287# Check whether --enable-reproducible-build was given.
4288if test "${enable_reproducible_build+set}" = set; then :
4289 enableval=$enable_reproducible_build; enable_reproducible_build=$enableval
4290else
4291 enable_reproducible_build='no'
4292fi
4293
4294
cristy9af1cbf2014-12-28 22:03:09 +00004295# Source file containing package/library versioning information.
4296. ${srcdir}/version.sh
4297
4298echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4299
4300MAGICK_TARGET_CPU=$host_cpu
4301
4302
4303cat >>confdefs.h <<_ACEOF
4304#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4305_ACEOF
4306
4307
4308MAGICK_TARGET_VENDOR=$host_vendor
4309
4310
4311cat >>confdefs.h <<_ACEOF
4312#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4313_ACEOF
4314
4315
4316MAGICK_TARGET_OS=$host_os
4317
4318
4319cat >>confdefs.h <<_ACEOF
4320#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4321_ACEOF
4322
4323
4324
4325# Substitute versioning
4326MAGICK_MAJOR_VERSION=7
4327
4328MAGICK_MINOR_VERSION=0
4329
4330MAGICK_MICRO_VERSION=0
4331
4332MAGICK_PATCHLEVEL_VERSION=0
4333
4334MAGICK_VERSION=7.0.0-0
4335
cristy708922a2015-05-17 02:33:56 +00004336MAGICK_SVN_REVISION=18557:18563M
cristy9af1cbf2014-12-28 22:03:09 +00004337
4338
4339# Substitute library versioning
4340MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4341
4342MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4343
4344
4345MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4346
4347MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4348
4349
cristy187791c2015-05-03 22:17:00 +00004350if test X$enable_reproducible_build = Xyes; then :
4351 PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE
4352elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then :
4353
4354fi
4355
cristy9af1cbf2014-12-28 22:03:09 +00004356
4357# Ensure that make can run correctly
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4359$as_echo_n "checking whether build environment is sane... " >&6; }
4360# Reject unsafe characters in $srcdir or the absolute working directory
4361# name. Accept space and tab only in the latter.
4362am_lf='
4363'
4364case `pwd` in
4365 *[\\\"\#\$\&\'\`$am_lf]*)
4366 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4367esac
4368case $srcdir in
4369 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4370 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4371esac
4372
4373# Do 'set' in a subshell so we don't clobber the current shell's
4374# arguments. Must try -L first in case configure is actually a
4375# symlink; some systems play weird games with the mod time of symlinks
4376# (eg FreeBSD returns the mod time of the symlink's containing
4377# directory).
4378if (
4379 am_has_slept=no
4380 for am_try in 1 2; do
4381 echo "timestamp, slept: $am_has_slept" > conftest.file
4382 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4383 if test "$*" = "X"; then
4384 # -L didn't work.
4385 set X `ls -t "$srcdir/configure" conftest.file`
4386 fi
4387 if test "$*" != "X $srcdir/configure conftest.file" \
4388 && test "$*" != "X conftest.file $srcdir/configure"; then
4389
4390 # If neither matched, then we have a broken ls. This can happen
4391 # if, for instance, CONFIG_SHELL is bash and it inherits a
4392 # broken ls alias from the environment. This has actually
4393 # happened. Such a system could not be considered "sane".
4394 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4395 alias in your environment" "$LINENO" 5
4396 fi
4397 if test "$2" = conftest.file || test $am_try -eq 2; then
4398 break
4399 fi
4400 # Just in case.
4401 sleep 1
4402 am_has_slept=yes
4403 done
4404 test "$2" = conftest.file
4405 )
4406then
4407 # Ok.
4408 :
4409else
4410 as_fn_error $? "newly created file is older than distributed files!
4411Check your system clock" "$LINENO" 5
4412fi
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4414$as_echo "yes" >&6; }
4415# If we didn't sleep, we still need to ensure time stamps of config.status and
4416# generated files are strictly newer.
4417am_sleep_pid=
4418if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4419 ( sleep 1 ) &
4420 am_sleep_pid=$!
4421fi
4422
4423rm -f conftest.file
4424
4425
cristyf279b692014-08-13 12:01:27 +00004426# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004427MAGICK_LIB_VERSION="0x"
4428if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4429 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4430fi
4431MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4432if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4433 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4434fi
4435MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4436if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4437 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4438fi
4439MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4440
4441
4442# Definition used to define MagickLibVersionText in version.h
4443MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4444
4445
4446# Definition used to define MagickLibVersionNumber in version.h
4447MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4448
4449
cristy5ed9c6e2013-07-14 21:20:31 +00004450MAGICKPP_LIB_VERSION="0x"
4451if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4452 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4453fi
4454MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4455if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4456 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4457fi
4458MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4459if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4460 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4461fi
4462MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4463
4464
4465# Definition used to define MagickLibVersionText in version.h
4466MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4467
4468
4469# Definition used to define MagickLibVersionNumber in version.h
4470MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4471
4472
4473
4474
cristy3ed852e2009-09-05 21:47:34 +00004475# Regenerate config.status if ChangeLog or version.sh is updated.
4476CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4477
4478
4479PERLMAINCC=$CC
4480
4481MAGICK_CFLAGS=''
4482MAGICK_CPPFLAGS=$CPPFLAGS_USER
4483MAGICK_PCFLAGS=$CPPFLAGS_USER
4484MAGICK_LDFLAGS=''
4485MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004486MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004487
4488#
4489# Evaluate shell variable equivalents to Makefile directory variables
4490#
4491if test "x$prefix" = xNONE; then
4492 prefix=$ac_default_prefix
4493fi
4494# Let make expand exec_prefix.
4495if test "x$exec_prefix" = xNONE; then
4496 exec_prefix='${prefix}'
4497fi
4498
4499#
4500eval "eval PREFIX_DIR=${prefix}"
4501
4502eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4503
4504eval "eval BIN_DIR=$bindir"
4505
4506eval "eval SBIN_DIR=$sbindir"
4507
4508eval "eval LIBEXEC_DIR=$libexecdir"
4509
4510eval "eval DATA_DIR=$datadir"
4511
cristy4e65ec22012-04-08 01:33:27 +00004512eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004513
cristy3ed852e2009-09-05 21:47:34 +00004514eval "eval SYSCONF_DIR=$sysconfdir"
4515
4516eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4517
4518eval "eval LOCALSTATE_DIR=$localstatedir"
4519
4520eval "eval LIB_DIR=$libdir"
4521
4522eval "eval INCLUDE_DIR=$includedir"
4523
4524eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4525
4526eval "eval INFO_DIR=$infodir"
4527
4528eval "eval MAN_DIR=$mandir"
4529
4530
4531# Get full paths to source and build directories
4532srcdirfull="`cd $srcdir && pwd`"
4533builddir="`pwd`"
4534
4535#
4536# Compute variables useful for running uninstalled software.
4537#
4538MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4539MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4540MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4541MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4542DIRSEP=':'
4543case "${build_os}" in
4544 mingw* )
4545 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4546 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4547 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4548 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4549 DIRSEP=';'
4550 ;;
4551esac
4552case "${host_os}" in
4553 mingw* )
4554 DIRSEP=';'
4555 ;;
4556esac
4557
4558
4559
4560
4561
4562
cristya0b81c32010-01-22 02:54:33 +00004563
4564#
4565# Enable OS features.
4566#
cristy73bd4a52010-10-05 11:24:23 +00004567DEPDIR="${am__leading_dot}deps"
4568
4569ac_config_commands="$ac_config_commands depfiles"
4570
4571
4572am_make=${MAKE-make}
4573cat > confinc << 'END'
4574am__doit:
4575 @echo this is the am__doit target
4576.PHONY: am__doit
4577END
4578# If we don't find an include directive, just comment out the code.
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4580$as_echo_n "checking for style of include used by $am_make... " >&6; }
4581am__include="#"
4582am__quote=
4583_am_result=none
4584# First try GNU make style include.
4585echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004586# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004587case `$am_make -s -f confmf 2> /dev/null` in #(
4588*the\ am__doit\ target*)
4589 am__include=include
4590 am__quote=
4591 _am_result=GNU
4592 ;;
4593esac
4594# Now try BSD make style include.
4595if test "$am__include" = "#"; then
4596 echo '.include "confinc"' > confmf
4597 case `$am_make -s -f confmf 2> /dev/null` in #(
4598 *the\ am__doit\ target*)
4599 am__include=.include
4600 am__quote="\""
4601 _am_result=BSD
4602 ;;
4603 esac
4604fi
4605
4606
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4608$as_echo "$_am_result" >&6; }
4609rm -f confinc confmf
4610
4611# Check whether --enable-dependency-tracking was given.
4612if test "${enable_dependency_tracking+set}" = set; then :
4613 enableval=$enable_dependency_tracking;
4614fi
4615
4616if test "x$enable_dependency_tracking" != xno; then
4617 am_depcomp="$ac_aux_dir/depcomp"
4618 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004619 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004620fi
4621 if test "x$enable_dependency_tracking" != xno; then
4622 AMDEP_TRUE=
4623 AMDEP_FALSE='#'
4624else
4625 AMDEP_TRUE='#'
4626 AMDEP_FALSE=
4627fi
4628
4629
cristy3ed852e2009-09-05 21:47:34 +00004630ac_ext=c
4631ac_cpp='$CPP $CPPFLAGS'
4632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634ac_compiler_gnu=$ac_cv_c_compiler_gnu
4635if test -n "$ac_tool_prefix"; then
4636 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4637set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004639$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004640if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004641 $as_echo_n "(cached) " >&6
4642else
4643 if test -n "$CC"; then
4644 ac_cv_prog_CC="$CC" # Let the user override the test.
4645else
4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004651 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004653 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004655 break 2
4656 fi
4657done
cristy8b350f62009-11-15 23:12:43 +00004658 done
cristy3ed852e2009-09-05 21:47:34 +00004659IFS=$as_save_IFS
4660
4661fi
4662fi
4663CC=$ac_cv_prog_CC
4664if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004666$as_echo "$CC" >&6; }
4667else
cristy8b350f62009-11-15 23:12:43 +00004668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004669$as_echo "no" >&6; }
4670fi
4671
4672
4673fi
4674if test -z "$ac_cv_prog_CC"; then
4675 ac_ct_CC=$CC
4676 # Extract the first word of "gcc", so it can be a program name with args.
4677set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004679$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004680if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004681 $as_echo_n "(cached) " >&6
4682else
4683 if test -n "$ac_ct_CC"; then
4684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4685else
4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004693 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004695 break 2
4696 fi
4697done
cristy8b350f62009-11-15 23:12:43 +00004698 done
cristy3ed852e2009-09-05 21:47:34 +00004699IFS=$as_save_IFS
4700
4701fi
4702fi
4703ac_ct_CC=$ac_cv_prog_ac_ct_CC
4704if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004706$as_echo "$ac_ct_CC" >&6; }
4707else
cristy8b350f62009-11-15 23:12:43 +00004708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004709$as_echo "no" >&6; }
4710fi
4711
4712 if test "x$ac_ct_CC" = x; then
4713 CC=""
4714 else
4715 case $cross_compiling:$ac_tool_warned in
4716yes:)
cristy8b350f62009-11-15 23:12:43 +00004717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4719ac_tool_warned=yes ;;
4720esac
4721 CC=$ac_ct_CC
4722 fi
4723else
4724 CC="$ac_cv_prog_CC"
4725fi
4726
4727if test -z "$CC"; then
4728 if test -n "$ac_tool_prefix"; then
4729 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4730set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004732$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004733if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004734 $as_echo_n "(cached) " >&6
4735else
4736 if test -n "$CC"; then
4737 ac_cv_prog_CC="$CC" # Let the user override the test.
4738else
4739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740for as_dir in $PATH
4741do
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004746 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004748 break 2
4749 fi
4750done
cristy8b350f62009-11-15 23:12:43 +00004751 done
cristy3ed852e2009-09-05 21:47:34 +00004752IFS=$as_save_IFS
4753
4754fi
4755fi
4756CC=$ac_cv_prog_CC
4757if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004759$as_echo "$CC" >&6; }
4760else
cristy8b350f62009-11-15 23:12:43 +00004761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004762$as_echo "no" >&6; }
4763fi
4764
4765
4766 fi
4767fi
4768if test -z "$CC"; then
4769 # Extract the first word of "cc", so it can be a program name with args.
4770set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004772$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004773if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004774 $as_echo_n "(cached) " >&6
4775else
4776 if test -n "$CC"; then
4777 ac_cv_prog_CC="$CC" # Let the user override the test.
4778else
4779 ac_prog_rejected=no
4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004785 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004787 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4788 ac_prog_rejected=yes
4789 continue
4790 fi
4791 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004793 break 2
4794 fi
4795done
cristy8b350f62009-11-15 23:12:43 +00004796 done
cristy3ed852e2009-09-05 21:47:34 +00004797IFS=$as_save_IFS
4798
4799if test $ac_prog_rejected = yes; then
4800 # We found a bogon in the path, so make sure we never use it.
4801 set dummy $ac_cv_prog_CC
4802 shift
4803 if test $# != 0; then
4804 # We chose a different compiler from the bogus one.
4805 # However, it has the same basename, so the bogon will be chosen
4806 # first if we set CC to just the basename; use the full file name.
4807 shift
4808 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4809 fi
4810fi
4811fi
4812fi
4813CC=$ac_cv_prog_CC
4814if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004816$as_echo "$CC" >&6; }
4817else
cristy8b350f62009-11-15 23:12:43 +00004818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004819$as_echo "no" >&6; }
4820fi
4821
4822
4823fi
4824if test -z "$CC"; then
4825 if test -n "$ac_tool_prefix"; then
4826 for ac_prog in cl.exe
4827 do
4828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4829set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004831$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004832if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004833 $as_echo_n "(cached) " >&6
4834else
4835 if test -n "$CC"; then
4836 ac_cv_prog_CC="$CC" # Let the user override the test.
4837else
4838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839for as_dir in $PATH
4840do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004843 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004845 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004847 break 2
4848 fi
4849done
cristy8b350f62009-11-15 23:12:43 +00004850 done
cristy3ed852e2009-09-05 21:47:34 +00004851IFS=$as_save_IFS
4852
4853fi
4854fi
4855CC=$ac_cv_prog_CC
4856if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004858$as_echo "$CC" >&6; }
4859else
cristy8b350f62009-11-15 23:12:43 +00004860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004861$as_echo "no" >&6; }
4862fi
4863
4864
4865 test -n "$CC" && break
4866 done
4867fi
4868if test -z "$CC"; then
4869 ac_ct_CC=$CC
4870 for ac_prog in cl.exe
4871do
4872 # Extract the first word of "$ac_prog", so it can be a program name with args.
4873set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004875$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004876if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004877 $as_echo_n "(cached) " >&6
4878else
4879 if test -n "$ac_ct_CC"; then
4880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4881else
4882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH
4884do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004887 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004889 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004891 break 2
4892 fi
4893done
cristy8b350f62009-11-15 23:12:43 +00004894 done
cristy3ed852e2009-09-05 21:47:34 +00004895IFS=$as_save_IFS
4896
4897fi
4898fi
4899ac_ct_CC=$ac_cv_prog_ac_ct_CC
4900if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004902$as_echo "$ac_ct_CC" >&6; }
4903else
cristy8b350f62009-11-15 23:12:43 +00004904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004905$as_echo "no" >&6; }
4906fi
4907
4908
4909 test -n "$ac_ct_CC" && break
4910done
4911
4912 if test "x$ac_ct_CC" = x; then
4913 CC=""
4914 else
4915 case $cross_compiling:$ac_tool_warned in
4916yes:)
cristy8b350f62009-11-15 23:12:43 +00004917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4919ac_tool_warned=yes ;;
4920esac
4921 CC=$ac_ct_CC
4922 fi
4923fi
4924
4925fi
4926
4927
cristy8b350f62009-11-15 23:12:43 +00004928test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004930as_fn_error $? "no acceptable C compiler found in \$PATH
4931See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004932
4933# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004934$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004935set X $ac_compile
4936ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004937for ac_option in --version -v -V -qversion; do
4938 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004939case "(($ac_try" in
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4942esac
cristy8b350f62009-11-15 23:12:43 +00004943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4944$as_echo "$ac_try_echo"; } >&5
4945 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004946 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004947 if test -s conftest.err; then
4948 sed '10a\
4949... rest of stderr output deleted ...
4950 10q' conftest.err >conftest.er1
4951 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004952 fi
cristycd4c5312009-11-22 01:19:08 +00004953 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4955 test $ac_status = 0; }
4956done
cristy3ed852e2009-09-05 21:47:34 +00004957
cristy8b350f62009-11-15 23:12:43 +00004958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004959/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004960
cristy3ed852e2009-09-05 21:47:34 +00004961int
4962main ()
4963{
4964
4965 ;
4966 return 0;
4967}
4968_ACEOF
4969ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004970ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004971# Try to create an executable without -o first, disregard a.out.
4972# It will help us diagnose broken compilers, and finding out an intuition
4973# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4975$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004976ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4977
4978# The possible output files:
4979ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4980
4981ac_rmfiles=
4982for ac_file in $ac_files
4983do
4984 case $ac_file in
4985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4986 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4987 esac
4988done
4989rm -f $ac_rmfiles
4990
cristy8b350f62009-11-15 23:12:43 +00004991if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004992case "(($ac_try" in
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4995esac
cristy8b350f62009-11-15 23:12:43 +00004996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4997$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004998 (eval "$ac_link_default") 2>&5
4999 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5001 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005002 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5003# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5004# in a Makefile. We should not override ac_cv_exeext if it was cached,
5005# so that the user can short-circuit this test for compilers unknown to
5006# Autoconf.
5007for ac_file in $ac_files ''
5008do
5009 test -f "$ac_file" || continue
5010 case $ac_file in
5011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5012 ;;
5013 [ab].out )
5014 # We found the default executable, but exeext='' is most
5015 # certainly right.
5016 break;;
5017 *.* )
cristy8b350f62009-11-15 23:12:43 +00005018 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00005019 then :; else
5020 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5021 fi
5022 # We set ac_cv_exeext here because the later test for it is not
5023 # safe: cross compilers may not add the suffix if given an `-o'
5024 # argument, so we may need to know it at that point already.
5025 # Even if this section looks crufty: it has the advantage of
5026 # actually working.
5027 break;;
5028 * )
5029 break;;
5030 esac
5031done
5032test "$ac_cv_exeext" = no && ac_cv_exeext=
5033
5034else
5035 ac_file=''
5036fi
cristy8b350f62009-11-15 23:12:43 +00005037if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00005038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039$as_echo "no" >&6; }
5040$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00005041sed 's/^/| /' conftest.$ac_ext >&5
5042
cristy8b350f62009-11-15 23:12:43 +00005043{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005045as_fn_error 77 "C compiler cannot create executables
5046See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005047else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5049$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005050fi
cristycd4c5312009-11-22 01:19:08 +00005051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5052$as_echo_n "checking for C compiler default output file name... " >&6; }
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5054$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005055ac_exeext=$ac_cv_exeext
5056
cristycd4c5312009-11-22 01:19:08 +00005057rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00005058ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00005060$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005061if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00005062case "(($ac_try" in
5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064 *) ac_try_echo=$ac_try;;
5065esac
cristy8b350f62009-11-15 23:12:43 +00005066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5067$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005068 (eval "$ac_link") 2>&5
5069 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5071 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005072 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5073# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5074# work properly (i.e., refer to `conftest.exe'), while it won't with
5075# `rm'.
5076for ac_file in conftest.exe conftest conftest.*; do
5077 test -f "$ac_file" || continue
5078 case $ac_file in
5079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5080 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5081 break;;
5082 * ) break;;
5083 esac
5084done
5085else
cristy8b350f62009-11-15 23:12:43 +00005086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005088as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5089See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005090fi
cristycd4c5312009-11-22 01:19:08 +00005091rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005093$as_echo "$ac_cv_exeext" >&6; }
5094
5095rm -f conftest.$ac_ext
5096EXEEXT=$ac_cv_exeext
5097ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099/* end confdefs.h. */
5100#include <stdio.h>
5101int
5102main ()
5103{
5104FILE *f = fopen ("conftest.out", "w");
5105 return ferror (f) || fclose (f) != 0;
5106
5107 ;
5108 return 0;
5109}
5110_ACEOF
5111ac_clean_files="$ac_clean_files conftest.out"
5112# Check that the compiler produces executables we can run. If not, either
5113# the compiler is broken, or we cross compile.
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5115$as_echo_n "checking whether we are cross compiling... " >&6; }
5116if test "$cross_compiling" != yes; then
5117 { { ac_try="$ac_link"
5118case "(($ac_try" in
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5121esac
5122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5123$as_echo "$ac_try_echo"; } >&5
5124 (eval "$ac_link") 2>&5
5125 ac_status=$?
5126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5127 test $ac_status = 0; }
5128 if { ac_try='./conftest$ac_cv_exeext'
5129 { { case "(($ac_try" in
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5132esac
5133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5134$as_echo "$ac_try_echo"; } >&5
5135 (eval "$ac_try") 2>&5
5136 ac_status=$?
5137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5138 test $ac_status = 0; }; }; then
5139 cross_compiling=no
5140 else
5141 if test "$cross_compiling" = maybe; then
5142 cross_compiling=yes
5143 else
5144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005146as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005147If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005148See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005149 fi
5150 fi
5151fi
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5153$as_echo "$cross_compiling" >&6; }
5154
5155rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5156ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005158$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005159if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005160 $as_echo_n "(cached) " >&6
5161else
cristy8b350f62009-11-15 23:12:43 +00005162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005163/* end confdefs.h. */
5164
5165int
5166main ()
5167{
5168
5169 ;
5170 return 0;
5171}
5172_ACEOF
5173rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005174if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005175case "(($ac_try" in
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5178esac
cristy8b350f62009-11-15 23:12:43 +00005179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5180$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005181 (eval "$ac_compile") 2>&5
5182 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5184 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005185 for ac_file in conftest.o conftest.obj conftest.*; do
5186 test -f "$ac_file" || continue;
5187 case $ac_file in
5188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5189 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5190 break;;
5191 esac
5192done
5193else
5194 $as_echo "$as_me: failed program was:" >&5
5195sed 's/^/| /' conftest.$ac_ext >&5
5196
cristy8b350f62009-11-15 23:12:43 +00005197{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005199as_fn_error $? "cannot compute suffix of object files: cannot compile
5200See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005201fi
cristy3ed852e2009-09-05 21:47:34 +00005202rm -f conftest.$ac_cv_objext conftest.$ac_ext
5203fi
cristy8b350f62009-11-15 23:12:43 +00005204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005205$as_echo "$ac_cv_objext" >&6; }
5206OBJEXT=$ac_cv_objext
5207ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005209$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005210if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005211 $as_echo_n "(cached) " >&6
5212else
cristy8b350f62009-11-15 23:12:43 +00005213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005214/* end confdefs.h. */
5215
5216int
5217main ()
5218{
5219#ifndef __GNUC__
5220 choke me
5221#endif
5222
5223 ;
5224 return 0;
5225}
5226_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005227if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005228 ac_compiler_gnu=yes
5229else
cristy8b350f62009-11-15 23:12:43 +00005230 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005231fi
cristy3ed852e2009-09-05 21:47:34 +00005232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233ac_cv_c_compiler_gnu=$ac_compiler_gnu
5234
5235fi
cristy8b350f62009-11-15 23:12:43 +00005236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005237$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5238if test $ac_compiler_gnu = yes; then
5239 GCC=yes
5240else
5241 GCC=
5242fi
5243ac_test_CFLAGS=${CFLAGS+set}
5244ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005246$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005247if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005248 $as_echo_n "(cached) " >&6
5249else
5250 ac_save_c_werror_flag=$ac_c_werror_flag
5251 ac_c_werror_flag=yes
5252 ac_cv_prog_cc_g=no
5253 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005255/* end confdefs.h. */
5256
5257int
5258main ()
5259{
5260
5261 ;
5262 return 0;
5263}
5264_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005265if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005266 ac_cv_prog_cc_g=yes
5267else
cristy8b350f62009-11-15 23:12:43 +00005268 CFLAGS=""
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005270/* end confdefs.h. */
5271
5272int
5273main ()
5274{
5275
5276 ;
5277 return 0;
5278}
5279_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005280if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005281
cristy8b350f62009-11-15 23:12:43 +00005282else
5283 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005284 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005286/* end confdefs.h. */
5287
5288int
5289main ()
5290{
5291
5292 ;
5293 return 0;
5294}
5295_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005296if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005297 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005298fi
cristy3ed852e2009-09-05 21:47:34 +00005299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300fi
cristy3ed852e2009-09-05 21:47:34 +00005301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302fi
cristy3ed852e2009-09-05 21:47:34 +00005303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304 ac_c_werror_flag=$ac_save_c_werror_flag
5305fi
cristy8b350f62009-11-15 23:12:43 +00005306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005307$as_echo "$ac_cv_prog_cc_g" >&6; }
5308if test "$ac_test_CFLAGS" = set; then
5309 CFLAGS=$ac_save_CFLAGS
5310elif test $ac_cv_prog_cc_g = yes; then
5311 if test "$GCC" = yes; then
5312 CFLAGS="-g -O2"
5313 else
5314 CFLAGS="-g"
5315 fi
5316else
5317 if test "$GCC" = yes; then
5318 CFLAGS="-O2"
5319 else
5320 CFLAGS=
5321 fi
5322fi
cristy8b350f62009-11-15 23:12:43 +00005323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005324$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005325if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005326 $as_echo_n "(cached) " >&6
5327else
5328 ac_cv_prog_cc_c89=no
5329ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005331/* end confdefs.h. */
5332#include <stdarg.h>
5333#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005334struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005335/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5336struct buf { int x; };
5337FILE * (*rcsopen) (struct buf *, struct stat *, int);
5338static char *e (p, i)
5339 char **p;
5340 int i;
5341{
5342 return p[i];
5343}
5344static char *f (char * (*g) (char **, int), char **p, ...)
5345{
5346 char *s;
5347 va_list v;
5348 va_start (v,p);
5349 s = g (p, va_arg (v,int));
5350 va_end (v);
5351 return s;
5352}
5353
5354/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5355 function prototypes and stuff, but not '\xHH' hex character constants.
5356 These don't provoke an error unfortunately, instead are silently treated
5357 as 'x'. The following induces an error, until -std is added to get
5358 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5359 array size at least. It's necessary to write '\x00'==0 to get something
5360 that's true only with -std. */
5361int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5362
5363/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5364 inside strings and character constants. */
5365#define FOO(x) 'x'
5366int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5367
5368int test (int i, double x);
5369struct s1 {int (*f) (int a);};
5370struct s2 {int (*f) (double a);};
5371int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5372int argc;
5373char **argv;
5374int
5375main ()
5376{
5377return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5378 ;
5379 return 0;
5380}
5381_ACEOF
5382for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5383 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5384do
5385 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005386 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005387 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005388fi
cristy3ed852e2009-09-05 21:47:34 +00005389rm -f core conftest.err conftest.$ac_objext
5390 test "x$ac_cv_prog_cc_c89" != "xno" && break
5391done
5392rm -f conftest.$ac_ext
5393CC=$ac_save_CC
5394
5395fi
5396# AC_CACHE_VAL
5397case "x$ac_cv_prog_cc_c89" in
5398 x)
cristy8b350f62009-11-15 23:12:43 +00005399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005400$as_echo "none needed" >&6; } ;;
5401 xno)
cristy8b350f62009-11-15 23:12:43 +00005402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005403$as_echo "unsupported" >&6; } ;;
5404 *)
5405 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005407$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5408esac
cristy8b350f62009-11-15 23:12:43 +00005409if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005410
cristy8b350f62009-11-15 23:12:43 +00005411fi
cristy3ed852e2009-09-05 21:47:34 +00005412
5413ac_ext=c
5414ac_cpp='$CPP $CPPFLAGS'
5415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005418
cristya5bda012013-11-03 18:05:38 +00005419ac_ext=c
5420ac_cpp='$CPP $CPPFLAGS'
5421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423ac_compiler_gnu=$ac_cv_c_compiler_gnu
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5425$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5426if ${am_cv_prog_cc_c_o+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428else
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430/* end confdefs.h. */
5431
5432int
5433main ()
5434{
5435
5436 ;
5437 return 0;
5438}
5439_ACEOF
5440 # Make sure it works both with $CC and with simple cc.
5441 # Following AC_PROG_CC_C_O, we do the test twice because some
5442 # compilers refuse to overwrite an existing .o file with -o,
5443 # though they will create one.
5444 am_cv_prog_cc_c_o=yes
5445 for am_i in 1 2; do
5446 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5447 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5448 ac_status=$?
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } \
5451 && test -f conftest2.$ac_objext; then
5452 : OK
5453 else
5454 am_cv_prog_cc_c_o=no
5455 break
5456 fi
5457 done
5458 rm -f core conftest*
5459 unset am_i
5460fi
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5462$as_echo "$am_cv_prog_cc_c_o" >&6; }
5463if test "$am_cv_prog_cc_c_o" != yes; then
5464 # Losing compiler, so override with the script.
5465 # FIXME: It is wrong to rewrite CC.
5466 # But if we don't then we get into trouble of one sort or another.
5467 # A longer-term fix would be to have automake use am__CC in this case,
5468 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5469 CC="$am_aux_dir/compile $CC"
5470fi
5471ac_ext=c
5472ac_cpp='$CPP $CPPFLAGS'
5473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476
5477
cristy73bd4a52010-10-05 11:24:23 +00005478depcc="$CC" am_compiler_list=
5479
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5481$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005482if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005483 $as_echo_n "(cached) " >&6
5484else
5485 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5486 # We make a subdir and do the tests there. Otherwise we can end up
5487 # making bogus files that we don't know about and never remove. For
5488 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005489 # making a dummy file named 'D' -- because '-MD' means "put the output
5490 # in D".
cristy7247bba2012-02-05 16:37:27 +00005491 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005492 mkdir conftest.dir
5493 # Copy depcomp to subdir because otherwise we won't find it if we're
5494 # using a relative directory.
5495 cp "$am_depcomp" conftest.dir
5496 cd conftest.dir
5497 # We will build objects and dependencies in a subdirectory because
5498 # it helps to detect inapplicable dependency modes. For instance
5499 # both Tru64's cc and ICC support -MD to output dependencies as a
5500 # side effect of compilation, but ICC will put the dependencies in
5501 # the current directory while Tru64 will put them in the object
5502 # directory.
5503 mkdir sub
5504
5505 am_cv_CC_dependencies_compiler_type=none
5506 if test "$am_compiler_list" = ""; then
5507 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5508 fi
5509 am__universal=false
5510 case " $depcc " in #(
5511 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5512 esac
5513
5514 for depmode in $am_compiler_list; do
5515 # Setup a source with many dependencies, because some compilers
5516 # like to wrap large dependency lists on column 80 (with \), and
5517 # we should not choose a depcomp mode which is confused by this.
5518 #
5519 # We need to recreate these files for each test, as the compiler may
5520 # overwrite some of them when testing with obscure command lines.
5521 # This happens at least with the AIX C compiler.
5522 : > sub/conftest.c
5523 for i in 1 2 3 4 5 6; do
5524 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005525 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5526 # Solaris 10 /bin/sh.
5527 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005528 done
5529 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5530
cristyc0890a62012-07-19 00:18:20 +00005531 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005532 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005533 # handle '-M -o', and we need to detect this. Also, some Intel
5534 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005535 am__obj=sub/conftest.${OBJEXT-o}
5536 am__minus_obj="-o $am__obj"
5537 case $depmode in
5538 gcc)
5539 # This depmode causes a compiler race in universal mode.
5540 test "$am__universal" = false || continue
5541 ;;
5542 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005543 # After this tag, mechanisms are not by side-effect, so they'll
5544 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005545 if test "x$enable_dependency_tracking" = xyes; then
5546 continue
5547 else
5548 break
5549 fi
5550 ;;
cristy7247bba2012-02-05 16:37:27 +00005551 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005552 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005553 # not run yet. These depmodes are late enough in the game, and
5554 # so weak that their functioning should not be impacted.
5555 am__obj=conftest.${OBJEXT-o}
5556 am__minus_obj=
5557 ;;
5558 none) break ;;
5559 esac
5560 if depmode=$depmode \
5561 source=sub/conftest.c object=$am__obj \
5562 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5563 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5564 >/dev/null 2>conftest.err &&
5565 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5566 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5567 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5568 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5569 # icc doesn't choke on unknown options, it will just issue warnings
5570 # or remarks (even with -Werror). So we grep stderr for any message
5571 # that says an option was ignored or not supported.
5572 # When given -MP, icc 7.0 and 7.1 complain thusly:
5573 # icc: Command line warning: ignoring option '-M'; no argument required
5574 # The diagnosis changed in icc 8.0:
5575 # icc: Command line remark: option '-MP' not supported
5576 if (grep 'ignoring option' conftest.err ||
5577 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5578 am_cv_CC_dependencies_compiler_type=$depmode
5579 break
5580 fi
5581 fi
5582 done
5583
5584 cd ..
5585 rm -rf conftest.dir
5586else
5587 am_cv_CC_dependencies_compiler_type=none
5588fi
5589
5590fi
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5592$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5593CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5594
5595 if
5596 test "x$enable_dependency_tracking" != xno \
5597 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5598 am__fastdepCC_TRUE=
5599 am__fastdepCC_FALSE='#'
5600else
5601 am__fastdepCC_TRUE='#'
5602 am__fastdepCC_FALSE=
5603fi
5604
5605
cristy3ed852e2009-09-05 21:47:34 +00005606
cristya0b81c32010-01-22 02:54:33 +00005607ac_ext=c
5608ac_cpp='$CPP $CPPFLAGS'
5609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5611ac_compiler_gnu=$ac_cv_c_compiler_gnu
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5613$as_echo_n "checking how to run the C preprocessor... " >&6; }
5614# On Suns, sometimes $CPP names a directory.
5615if test -n "$CPP" && test -d "$CPP"; then
5616 CPP=
5617fi
5618if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005619 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005620 $as_echo_n "(cached) " >&6
5621else
5622 # Double quotes because CPP needs to be expanded
5623 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5624 do
5625 ac_preproc_ok=false
5626for ac_c_preproc_warn_flag in '' yes
5627do
5628 # Use a header file that comes with gcc, so configuring glibc
5629 # with a fresh cross-compiler works.
5630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5631 # <limits.h> exists even on freestanding compilers.
5632 # On the NeXT, cc -E runs the code through the compiler's parser,
5633 # not just through cpp. "Syntax error" is here to catch this case.
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h. */
5636#ifdef __STDC__
5637# include <limits.h>
5638#else
5639# include <assert.h>
5640#endif
5641 Syntax error
5642_ACEOF
5643if ac_fn_c_try_cpp "$LINENO"; then :
5644
5645else
5646 # Broken: fails on valid input.
5647continue
5648fi
cristyda16f162011-02-19 23:52:17 +00005649rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005650
5651 # OK, works on sane cases. Now check whether nonexistent headers
5652 # can be detected and how.
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654/* end confdefs.h. */
5655#include <ac_nonexistent.h>
5656_ACEOF
5657if ac_fn_c_try_cpp "$LINENO"; then :
5658 # Broken: success on invalid input.
5659continue
5660else
5661 # Passes both tests.
5662ac_preproc_ok=:
5663break
5664fi
cristyda16f162011-02-19 23:52:17 +00005665rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005666
5667done
5668# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005669rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005670if $ac_preproc_ok; then :
5671 break
5672fi
5673
5674 done
5675 ac_cv_prog_CPP=$CPP
5676
5677fi
5678 CPP=$ac_cv_prog_CPP
5679else
5680 ac_cv_prog_CPP=$CPP
5681fi
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5683$as_echo "$CPP" >&6; }
5684ac_preproc_ok=false
5685for ac_c_preproc_warn_flag in '' yes
5686do
5687 # Use a header file that comes with gcc, so configuring glibc
5688 # with a fresh cross-compiler works.
5689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5690 # <limits.h> exists even on freestanding compilers.
5691 # On the NeXT, cc -E runs the code through the compiler's parser,
5692 # not just through cpp. "Syntax error" is here to catch this case.
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694/* end confdefs.h. */
5695#ifdef __STDC__
5696# include <limits.h>
5697#else
5698# include <assert.h>
5699#endif
5700 Syntax error
5701_ACEOF
5702if ac_fn_c_try_cpp "$LINENO"; then :
5703
5704else
5705 # Broken: fails on valid input.
5706continue
5707fi
cristyda16f162011-02-19 23:52:17 +00005708rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005709
5710 # OK, works on sane cases. Now check whether nonexistent headers
5711 # can be detected and how.
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713/* end confdefs.h. */
5714#include <ac_nonexistent.h>
5715_ACEOF
5716if ac_fn_c_try_cpp "$LINENO"; then :
5717 # Broken: success on invalid input.
5718continue
5719else
5720 # Passes both tests.
5721ac_preproc_ok=:
5722break
5723fi
cristyda16f162011-02-19 23:52:17 +00005724rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005725
5726done
5727# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005728rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005729if $ac_preproc_ok; then :
5730
5731else
5732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005734as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5735See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005736fi
5737
5738ac_ext=c
5739ac_cpp='$CPP $CPPFLAGS'
5740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742ac_compiler_gnu=$ac_cv_c_compiler_gnu
5743
5744
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5746$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005747if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005748 $as_echo_n "(cached) " >&6
5749else
5750 if test -z "$GREP"; then
5751 ac_path_GREP_found=false
5752 # Loop through the user's path and test for each of PROGNAME-LIST
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5755do
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
5758 for ac_prog in grep ggrep; do
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005761 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005762# Check for GNU ac_path_GREP and select it if it is found.
5763 # Check for GNU $ac_path_GREP
5764case `"$ac_path_GREP" --version 2>&1` in
5765*GNU*)
5766 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5767*)
5768 ac_count=0
5769 $as_echo_n 0123456789 >"conftest.in"
5770 while :
5771 do
5772 cat "conftest.in" "conftest.in" >"conftest.tmp"
5773 mv "conftest.tmp" "conftest.in"
5774 cp "conftest.in" "conftest.nl"
5775 $as_echo 'GREP' >> "conftest.nl"
5776 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5778 as_fn_arith $ac_count + 1 && ac_count=$as_val
5779 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5780 # Best one so far, save it but keep looking for a better one
5781 ac_cv_path_GREP="$ac_path_GREP"
5782 ac_path_GREP_max=$ac_count
5783 fi
5784 # 10*(2^10) chars as input seems more than enough
5785 test $ac_count -gt 10 && break
5786 done
5787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5788esac
5789
5790 $ac_path_GREP_found && break 3
5791 done
5792 done
5793 done
5794IFS=$as_save_IFS
5795 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005796 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005797 fi
5798else
5799 ac_cv_path_GREP=$GREP
5800fi
5801
5802fi
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5804$as_echo "$ac_cv_path_GREP" >&6; }
5805 GREP="$ac_cv_path_GREP"
5806
5807
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5809$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005810if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005811 $as_echo_n "(cached) " >&6
5812else
5813 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5814 then ac_cv_path_EGREP="$GREP -E"
5815 else
5816 if test -z "$EGREP"; then
5817 ac_path_EGREP_found=false
5818 # Loop through the user's path and test for each of PROGNAME-LIST
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5821do
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_prog in egrep; do
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005827 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005828# Check for GNU ac_path_EGREP and select it if it is found.
5829 # Check for GNU $ac_path_EGREP
5830case `"$ac_path_EGREP" --version 2>&1` in
5831*GNU*)
5832 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5833*)
5834 ac_count=0
5835 $as_echo_n 0123456789 >"conftest.in"
5836 while :
5837 do
5838 cat "conftest.in" "conftest.in" >"conftest.tmp"
5839 mv "conftest.tmp" "conftest.in"
5840 cp "conftest.in" "conftest.nl"
5841 $as_echo 'EGREP' >> "conftest.nl"
5842 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5843 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5844 as_fn_arith $ac_count + 1 && ac_count=$as_val
5845 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5846 # Best one so far, save it but keep looking for a better one
5847 ac_cv_path_EGREP="$ac_path_EGREP"
5848 ac_path_EGREP_max=$ac_count
5849 fi
5850 # 10*(2^10) chars as input seems more than enough
5851 test $ac_count -gt 10 && break
5852 done
5853 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5854esac
5855
5856 $ac_path_EGREP_found && break 3
5857 done
5858 done
5859 done
5860IFS=$as_save_IFS
5861 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005862 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005863 fi
5864else
5865 ac_cv_path_EGREP=$EGREP
5866fi
5867
5868 fi
5869fi
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5871$as_echo "$ac_cv_path_EGREP" >&6; }
5872 EGREP="$ac_cv_path_EGREP"
5873
5874
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5876$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005877if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005878 $as_echo_n "(cached) " >&6
5879else
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881/* end confdefs.h. */
5882#include <stdlib.h>
5883#include <stdarg.h>
5884#include <string.h>
5885#include <float.h>
5886
5887int
5888main ()
5889{
5890
5891 ;
5892 return 0;
5893}
5894_ACEOF
5895if ac_fn_c_try_compile "$LINENO"; then :
5896 ac_cv_header_stdc=yes
5897else
5898 ac_cv_header_stdc=no
5899fi
5900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901
5902if test $ac_cv_header_stdc = yes; then
5903 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905/* end confdefs.h. */
5906#include <string.h>
5907
5908_ACEOF
5909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5910 $EGREP "memchr" >/dev/null 2>&1; then :
5911
5912else
5913 ac_cv_header_stdc=no
5914fi
5915rm -f conftest*
5916
5917fi
5918
5919if test $ac_cv_header_stdc = yes; then
5920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922/* end confdefs.h. */
5923#include <stdlib.h>
5924
5925_ACEOF
5926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5927 $EGREP "free" >/dev/null 2>&1; then :
5928
5929else
5930 ac_cv_header_stdc=no
5931fi
5932rm -f conftest*
5933
5934fi
5935
5936if test $ac_cv_header_stdc = yes; then
5937 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5938 if test "$cross_compiling" = yes; then :
5939 :
5940else
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942/* end confdefs.h. */
5943#include <ctype.h>
5944#include <stdlib.h>
5945#if ((' ' & 0x0FF) == 0x020)
5946# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5947# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5948#else
5949# define ISLOWER(c) \
5950 (('a' <= (c) && (c) <= 'i') \
5951 || ('j' <= (c) && (c) <= 'r') \
5952 || ('s' <= (c) && (c) <= 'z'))
5953# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5954#endif
5955
5956#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5957int
5958main ()
5959{
5960 int i;
5961 for (i = 0; i < 256; i++)
5962 if (XOR (islower (i), ISLOWER (i))
5963 || toupper (i) != TOUPPER (i))
5964 return 2;
5965 return 0;
5966}
5967_ACEOF
5968if ac_fn_c_try_run "$LINENO"; then :
5969
5970else
5971 ac_cv_header_stdc=no
5972fi
5973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5974 conftest.$ac_objext conftest.beam conftest.$ac_ext
5975fi
5976
5977fi
5978fi
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5980$as_echo "$ac_cv_header_stdc" >&6; }
5981if test $ac_cv_header_stdc = yes; then
5982
5983$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5984
5985fi
5986
5987# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5988for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5989 inttypes.h stdint.h unistd.h
5990do :
5991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5992ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5993"
cristy98dddb52010-11-04 00:30:15 +00005994if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005995 cat >>confdefs.h <<_ACEOF
5996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5997_ACEOF
5998
5999fi
6000
6001done
6002
6003
6004
6005 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00006006if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00006007 MINIX=yes
6008else
6009 MINIX=
6010fi
6011
6012
6013 if test "$MINIX" = yes; then
6014
6015$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6016
6017
6018$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6019
6020
6021$as_echo "#define _MINIX 1" >>confdefs.h
6022
6023 fi
6024
6025
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6027$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006028if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006029 $as_echo_n "(cached) " >&6
6030else
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032/* end confdefs.h. */
6033
cristy14fefe52012-05-21 00:59:18 +00006034# define __EXTENSIONS__ 1
6035 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00006036int
6037main ()
6038{
6039
6040 ;
6041 return 0;
6042}
6043_ACEOF
6044if ac_fn_c_try_compile "$LINENO"; then :
6045 ac_cv_safe_to_define___extensions__=yes
6046else
6047 ac_cv_safe_to_define___extensions__=no
6048fi
6049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050fi
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6052$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6053 test $ac_cv_safe_to_define___extensions__ = yes &&
6054 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6055
6056 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6057
6058 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6059
6060 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6061
6062 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6063
6064
6065
cristy9af1cbf2014-12-28 22:03:09 +00006066# ==============================================================================
6067# Find required base packages
6068# ==============================================================================
cristy9e007fe2015-01-03 16:05:07 +00006069if test -n "$ac_tool_prefix"; then
6070 for ac_prog in ar lib "link -lib"
6071 do
6072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6073set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075$as_echo_n "checking for $ac_word... " >&6; }
6076if ${ac_cv_prog_AR+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078else
6079 if test -n "$AR"; then
6080 ac_cv_prog_AR="$AR" # Let the user override the test.
6081else
6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083for as_dir in $PATH
6084do
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6092 fi
6093done
6094 done
6095IFS=$as_save_IFS
6096
6097fi
6098fi
6099AR=$ac_cv_prog_AR
6100if test -n "$AR"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6102$as_echo "$AR" >&6; }
6103else
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105$as_echo "no" >&6; }
6106fi
6107
6108
6109 test -n "$AR" && break
6110 done
6111fi
6112if test -z "$AR"; then
6113 ac_ct_AR=$AR
6114 for ac_prog in ar lib "link -lib"
6115do
6116 # Extract the first word of "$ac_prog", so it can be a program name with args.
6117set dummy $ac_prog; ac_word=$2
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119$as_echo_n "checking for $ac_word... " >&6; }
6120if ${ac_cv_prog_ac_ct_AR+:} false; then :
6121 $as_echo_n "(cached) " >&6
6122else
6123 if test -n "$ac_ct_AR"; then
6124 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6125else
6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127for as_dir in $PATH
6128do
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133 ac_cv_prog_ac_ct_AR="$ac_prog"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6136 fi
6137done
6138 done
6139IFS=$as_save_IFS
6140
6141fi
6142fi
6143ac_ct_AR=$ac_cv_prog_ac_ct_AR
6144if test -n "$ac_ct_AR"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6146$as_echo "$ac_ct_AR" >&6; }
6147else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149$as_echo "no" >&6; }
6150fi
6151
6152
6153 test -n "$ac_ct_AR" && break
6154done
6155
6156 if test "x$ac_ct_AR" = x; then
6157 AR="false"
6158 else
6159 case $cross_compiling:$ac_tool_warned in
6160yes:)
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6163ac_tool_warned=yes ;;
6164esac
6165 AR=$ac_ct_AR
6166 fi
6167fi
6168
6169: ${AR=ar}
6170
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6172$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6173if ${am_cv_ar_interface+:} false; then :
6174 $as_echo_n "(cached) " >&6
6175else
6176 ac_ext=c
6177ac_cpp='$CPP $CPPFLAGS'
6178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180ac_compiler_gnu=$ac_cv_c_compiler_gnu
6181
6182 am_cv_ar_interface=ar
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184/* end confdefs.h. */
6185int some_variable = 0;
6186_ACEOF
6187if ac_fn_c_try_compile "$LINENO"; then :
6188 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6190 (eval $am_ar_try) 2>&5
6191 ac_status=$?
6192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6193 test $ac_status = 0; }
6194 if test "$ac_status" -eq 0; then
6195 am_cv_ar_interface=ar
6196 else
6197 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6199 (eval $am_ar_try) 2>&5
6200 ac_status=$?
6201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202 test $ac_status = 0; }
6203 if test "$ac_status" -eq 0; then
6204 am_cv_ar_interface=lib
6205 else
6206 am_cv_ar_interface=unknown
6207 fi
6208 fi
6209 rm -f conftest.lib libconftest.a
6210
6211fi
6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213 ac_ext=c
6214ac_cpp='$CPP $CPPFLAGS'
6215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217ac_compiler_gnu=$ac_cv_c_compiler_gnu
6218
6219fi
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6221$as_echo "$am_cv_ar_interface" >&6; }
6222
6223case $am_cv_ar_interface in
6224ar)
6225 ;;
6226lib)
6227 # Microsoft lib, so override with the ar-lib wrapper script.
6228 # FIXME: It is wrong to rewrite AR.
6229 # But if we don't then we get into trouble of one sort or another.
6230 # A longer-term fix would be to have automake use am__AR in this case,
6231 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6232 # similar.
6233 AR="$am_aux_dir/ar-lib $AR"
6234 ;;
6235unknown)
6236 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6237 ;;
6238esac
cristy9af1cbf2014-12-28 22:03:09 +00006239
cristya0b81c32010-01-22 02:54:33 +00006240ac_ext=c
6241ac_cpp='$CPP $CPPFLAGS'
6242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6244ac_compiler_gnu=$ac_cv_c_compiler_gnu
6245if test -n "$ac_tool_prefix"; then
6246 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6247set dummy ${ac_tool_prefix}gcc; ac_word=$2
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006250if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006251 $as_echo_n "(cached) " >&6
6252else
6253 if test -n "$CC"; then
6254 ac_cv_prog_CC="$CC" # Let the user override the test.
6255else
6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257for as_dir in $PATH
6258do
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006263 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
6266 fi
6267done
6268 done
6269IFS=$as_save_IFS
6270
6271fi
6272fi
6273CC=$ac_cv_prog_CC
6274if test -n "$CC"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6276$as_echo "$CC" >&6; }
6277else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279$as_echo "no" >&6; }
6280fi
6281
6282
6283fi
6284if test -z "$ac_cv_prog_CC"; then
6285 ac_ct_CC=$CC
6286 # Extract the first word of "gcc", so it can be a program name with args.
6287set dummy gcc; ac_word=$2
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006290if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006291 $as_echo_n "(cached) " >&6
6292else
6293 if test -n "$ac_ct_CC"; then
6294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6295else
6296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297for as_dir in $PATH
6298do
6299 IFS=$as_save_IFS
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006303 ac_cv_prog_ac_ct_CC="gcc"
6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 break 2
6306 fi
6307done
6308 done
6309IFS=$as_save_IFS
6310
6311fi
6312fi
6313ac_ct_CC=$ac_cv_prog_ac_ct_CC
6314if test -n "$ac_ct_CC"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6316$as_echo "$ac_ct_CC" >&6; }
6317else
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319$as_echo "no" >&6; }
6320fi
6321
6322 if test "x$ac_ct_CC" = x; then
6323 CC=""
6324 else
6325 case $cross_compiling:$ac_tool_warned in
6326yes:)
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6329ac_tool_warned=yes ;;
6330esac
6331 CC=$ac_ct_CC
6332 fi
6333else
6334 CC="$ac_cv_prog_CC"
6335fi
6336
6337if test -z "$CC"; then
6338 if test -n "$ac_tool_prefix"; then
6339 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6340set dummy ${ac_tool_prefix}cc; ac_word=$2
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006343if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006344 $as_echo_n "(cached) " >&6
6345else
6346 if test -n "$CC"; then
6347 ac_cv_prog_CC="$CC" # Let the user override the test.
6348else
6349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006356 ac_cv_prog_CC="${ac_tool_prefix}cc"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360done
6361 done
6362IFS=$as_save_IFS
6363
6364fi
6365fi
6366CC=$ac_cv_prog_CC
6367if test -n "$CC"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6369$as_echo "$CC" >&6; }
6370else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372$as_echo "no" >&6; }
6373fi
6374
6375
6376 fi
6377fi
6378if test -z "$CC"; then
6379 # Extract the first word of "cc", so it can be a program name with args.
6380set dummy cc; ac_word=$2
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006383if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006384 $as_echo_n "(cached) " >&6
6385else
6386 if test -n "$CC"; then
6387 ac_cv_prog_CC="$CC" # Let the user override the test.
6388else
6389 ac_prog_rejected=no
6390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391for as_dir in $PATH
6392do
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006397 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6398 ac_prog_rejected=yes
6399 continue
6400 fi
6401 ac_cv_prog_CC="cc"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6404 fi
6405done
6406 done
6407IFS=$as_save_IFS
6408
6409if test $ac_prog_rejected = yes; then
6410 # We found a bogon in the path, so make sure we never use it.
6411 set dummy $ac_cv_prog_CC
6412 shift
6413 if test $# != 0; then
6414 # We chose a different compiler from the bogus one.
6415 # However, it has the same basename, so the bogon will be chosen
6416 # first if we set CC to just the basename; use the full file name.
6417 shift
6418 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6419 fi
6420fi
6421fi
6422fi
6423CC=$ac_cv_prog_CC
6424if test -n "$CC"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6426$as_echo "$CC" >&6; }
6427else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429$as_echo "no" >&6; }
6430fi
6431
6432
6433fi
6434if test -z "$CC"; then
6435 if test -n "$ac_tool_prefix"; then
6436 for ac_prog in cl.exe
6437 do
6438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6439set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006442if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006443 $as_echo_n "(cached) " >&6
6444else
6445 if test -n "$CC"; then
6446 ac_cv_prog_CC="$CC" # Let the user override the test.
6447else
6448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449for as_dir in $PATH
6450do
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006455 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6458 fi
6459done
6460 done
6461IFS=$as_save_IFS
6462
6463fi
6464fi
6465CC=$ac_cv_prog_CC
6466if test -n "$CC"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6468$as_echo "$CC" >&6; }
6469else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471$as_echo "no" >&6; }
6472fi
6473
6474
6475 test -n "$CC" && break
6476 done
6477fi
6478if test -z "$CC"; then
6479 ac_ct_CC=$CC
6480 for ac_prog in cl.exe
6481do
6482 # Extract the first word of "$ac_prog", so it can be a program name with args.
6483set dummy $ac_prog; ac_word=$2
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006486if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006487 $as_echo_n "(cached) " >&6
6488else
6489 if test -n "$ac_ct_CC"; then
6490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6491else
6492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493for as_dir in $PATH
6494do
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006499 ac_cv_prog_ac_ct_CC="$ac_prog"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6502 fi
6503done
6504 done
6505IFS=$as_save_IFS
6506
6507fi
6508fi
6509ac_ct_CC=$ac_cv_prog_ac_ct_CC
6510if test -n "$ac_ct_CC"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6512$as_echo "$ac_ct_CC" >&6; }
6513else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515$as_echo "no" >&6; }
6516fi
6517
6518
6519 test -n "$ac_ct_CC" && break
6520done
6521
6522 if test "x$ac_ct_CC" = x; then
6523 CC=""
6524 else
6525 case $cross_compiling:$ac_tool_warned in
6526yes:)
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529ac_tool_warned=yes ;;
6530esac
6531 CC=$ac_ct_CC
6532 fi
6533fi
6534
6535fi
6536
6537
6538test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006540as_fn_error $? "no acceptable C compiler found in \$PATH
6541See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006542
6543# Provide some information about the compiler.
6544$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6545set X $ac_compile
6546ac_compiler=$2
6547for ac_option in --version -v -V -qversion; do
6548 { { ac_try="$ac_compiler $ac_option >&5"
6549case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6552esac
6553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6554$as_echo "$ac_try_echo"; } >&5
6555 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6556 ac_status=$?
6557 if test -s conftest.err; then
6558 sed '10a\
6559... rest of stderr output deleted ...
6560 10q' conftest.err >conftest.er1
6561 cat conftest.er1 >&5
6562 fi
6563 rm -f conftest.er1 conftest.err
6564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6565 test $ac_status = 0; }
6566done
6567
6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6569$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006570if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006571 $as_echo_n "(cached) " >&6
6572else
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574/* end confdefs.h. */
6575
6576int
6577main ()
6578{
6579#ifndef __GNUC__
6580 choke me
6581#endif
6582
6583 ;
6584 return 0;
6585}
6586_ACEOF
6587if ac_fn_c_try_compile "$LINENO"; then :
6588 ac_compiler_gnu=yes
6589else
6590 ac_compiler_gnu=no
6591fi
6592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593ac_cv_c_compiler_gnu=$ac_compiler_gnu
6594
6595fi
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6597$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6598if test $ac_compiler_gnu = yes; then
6599 GCC=yes
6600else
6601 GCC=
6602fi
6603ac_test_CFLAGS=${CFLAGS+set}
6604ac_save_CFLAGS=$CFLAGS
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6606$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006607if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006608 $as_echo_n "(cached) " >&6
6609else
6610 ac_save_c_werror_flag=$ac_c_werror_flag
6611 ac_c_werror_flag=yes
6612 ac_cv_prog_cc_g=no
6613 CFLAGS="-g"
6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615/* end confdefs.h. */
6616
6617int
6618main ()
6619{
6620
6621 ;
6622 return 0;
6623}
6624_ACEOF
6625if ac_fn_c_try_compile "$LINENO"; then :
6626 ac_cv_prog_cc_g=yes
6627else
6628 CFLAGS=""
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h. */
6631
6632int
6633main ()
6634{
6635
6636 ;
6637 return 0;
6638}
6639_ACEOF
6640if ac_fn_c_try_compile "$LINENO"; then :
6641
6642else
6643 ac_c_werror_flag=$ac_save_c_werror_flag
6644 CFLAGS="-g"
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646/* end confdefs.h. */
6647
6648int
6649main ()
6650{
6651
6652 ;
6653 return 0;
6654}
6655_ACEOF
6656if ac_fn_c_try_compile "$LINENO"; then :
6657 ac_cv_prog_cc_g=yes
6658fi
6659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660fi
6661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662fi
6663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 ac_c_werror_flag=$ac_save_c_werror_flag
6665fi
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6667$as_echo "$ac_cv_prog_cc_g" >&6; }
6668if test "$ac_test_CFLAGS" = set; then
6669 CFLAGS=$ac_save_CFLAGS
6670elif test $ac_cv_prog_cc_g = yes; then
6671 if test "$GCC" = yes; then
6672 CFLAGS="-g -O2"
6673 else
6674 CFLAGS="-g"
6675 fi
6676else
6677 if test "$GCC" = yes; then
6678 CFLAGS="-O2"
6679 else
6680 CFLAGS=
6681 fi
6682fi
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6684$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006685if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006686 $as_echo_n "(cached) " >&6
6687else
6688 ac_cv_prog_cc_c89=no
6689ac_save_CC=$CC
6690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h. */
6692#include <stdarg.h>
6693#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006694struct stat;
cristya0b81c32010-01-22 02:54:33 +00006695/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6696struct buf { int x; };
6697FILE * (*rcsopen) (struct buf *, struct stat *, int);
6698static char *e (p, i)
6699 char **p;
6700 int i;
6701{
6702 return p[i];
6703}
6704static char *f (char * (*g) (char **, int), char **p, ...)
6705{
6706 char *s;
6707 va_list v;
6708 va_start (v,p);
6709 s = g (p, va_arg (v,int));
6710 va_end (v);
6711 return s;
6712}
6713
6714/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6715 function prototypes and stuff, but not '\xHH' hex character constants.
6716 These don't provoke an error unfortunately, instead are silently treated
6717 as 'x'. The following induces an error, until -std is added to get
6718 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6719 array size at least. It's necessary to write '\x00'==0 to get something
6720 that's true only with -std. */
6721int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6722
6723/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6724 inside strings and character constants. */
6725#define FOO(x) 'x'
6726int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6727
6728int test (int i, double x);
6729struct s1 {int (*f) (int a);};
6730struct s2 {int (*f) (double a);};
6731int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6732int argc;
6733char **argv;
6734int
6735main ()
6736{
6737return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6738 ;
6739 return 0;
6740}
6741_ACEOF
6742for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6743 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6744do
6745 CC="$ac_save_CC $ac_arg"
6746 if ac_fn_c_try_compile "$LINENO"; then :
6747 ac_cv_prog_cc_c89=$ac_arg
6748fi
6749rm -f core conftest.err conftest.$ac_objext
6750 test "x$ac_cv_prog_cc_c89" != "xno" && break
6751done
6752rm -f conftest.$ac_ext
6753CC=$ac_save_CC
6754
6755fi
6756# AC_CACHE_VAL
6757case "x$ac_cv_prog_cc_c89" in
6758 x)
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6760$as_echo "none needed" >&6; } ;;
6761 xno)
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6763$as_echo "unsupported" >&6; } ;;
6764 *)
6765 CC="$CC $ac_cv_prog_cc_c89"
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6767$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6768esac
6769if test "x$ac_cv_prog_cc_c89" != xno; then :
6770
6771fi
6772
6773ac_ext=c
6774ac_cpp='$CPP $CPPFLAGS'
6775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777ac_compiler_gnu=$ac_cv_c_compiler_gnu
6778
cristya5bda012013-11-03 18:05:38 +00006779ac_ext=c
6780ac_cpp='$CPP $CPPFLAGS'
6781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783ac_compiler_gnu=$ac_cv_c_compiler_gnu
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6785$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6786if ${am_cv_prog_cc_c_o+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788else
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790/* end confdefs.h. */
6791
6792int
6793main ()
6794{
6795
6796 ;
6797 return 0;
6798}
6799_ACEOF
6800 # Make sure it works both with $CC and with simple cc.
6801 # Following AC_PROG_CC_C_O, we do the test twice because some
6802 # compilers refuse to overwrite an existing .o file with -o,
6803 # though they will create one.
6804 am_cv_prog_cc_c_o=yes
6805 for am_i in 1 2; do
6806 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6807 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } \
6811 && test -f conftest2.$ac_objext; then
6812 : OK
6813 else
6814 am_cv_prog_cc_c_o=no
6815 break
6816 fi
6817 done
6818 rm -f core conftest*
6819 unset am_i
6820fi
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6822$as_echo "$am_cv_prog_cc_c_o" >&6; }
6823if test "$am_cv_prog_cc_c_o" != yes; then
6824 # Losing compiler, so override with the script.
6825 # FIXME: It is wrong to rewrite CC.
6826 # But if we don't then we get into trouble of one sort or another.
6827 # A longer-term fix would be to have automake use am__CC in this case,
6828 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6829 CC="$am_aux_dir/compile $CC"
6830fi
6831ac_ext=c
6832ac_cpp='$CPP $CPPFLAGS'
6833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6835ac_compiler_gnu=$ac_cv_c_compiler_gnu
6836
6837
cristy73bd4a52010-10-05 11:24:23 +00006838depcc="$CC" am_compiler_list=
6839
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6841$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006842if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006843 $as_echo_n "(cached) " >&6
6844else
6845 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6846 # We make a subdir and do the tests there. Otherwise we can end up
6847 # making bogus files that we don't know about and never remove. For
6848 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006849 # making a dummy file named 'D' -- because '-MD' means "put the output
6850 # in D".
cristy7247bba2012-02-05 16:37:27 +00006851 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006852 mkdir conftest.dir
6853 # Copy depcomp to subdir because otherwise we won't find it if we're
6854 # using a relative directory.
6855 cp "$am_depcomp" conftest.dir
6856 cd conftest.dir
6857 # We will build objects and dependencies in a subdirectory because
6858 # it helps to detect inapplicable dependency modes. For instance
6859 # both Tru64's cc and ICC support -MD to output dependencies as a
6860 # side effect of compilation, but ICC will put the dependencies in
6861 # the current directory while Tru64 will put them in the object
6862 # directory.
6863 mkdir sub
6864
6865 am_cv_CC_dependencies_compiler_type=none
6866 if test "$am_compiler_list" = ""; then
6867 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6868 fi
6869 am__universal=false
6870 case " $depcc " in #(
6871 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6872 esac
6873
6874 for depmode in $am_compiler_list; do
6875 # Setup a source with many dependencies, because some compilers
6876 # like to wrap large dependency lists on column 80 (with \), and
6877 # we should not choose a depcomp mode which is confused by this.
6878 #
6879 # We need to recreate these files for each test, as the compiler may
6880 # overwrite some of them when testing with obscure command lines.
6881 # This happens at least with the AIX C compiler.
6882 : > sub/conftest.c
6883 for i in 1 2 3 4 5 6; do
6884 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006885 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6886 # Solaris 10 /bin/sh.
6887 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006888 done
6889 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6890
cristyc0890a62012-07-19 00:18:20 +00006891 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006892 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006893 # handle '-M -o', and we need to detect this. Also, some Intel
6894 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006895 am__obj=sub/conftest.${OBJEXT-o}
6896 am__minus_obj="-o $am__obj"
6897 case $depmode in
6898 gcc)
6899 # This depmode causes a compiler race in universal mode.
6900 test "$am__universal" = false || continue
6901 ;;
6902 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006903 # After this tag, mechanisms are not by side-effect, so they'll
6904 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006905 if test "x$enable_dependency_tracking" = xyes; then
6906 continue
6907 else
6908 break
6909 fi
6910 ;;
cristy7247bba2012-02-05 16:37:27 +00006911 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006912 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006913 # not run yet. These depmodes are late enough in the game, and
6914 # so weak that their functioning should not be impacted.
6915 am__obj=conftest.${OBJEXT-o}
6916 am__minus_obj=
6917 ;;
6918 none) break ;;
6919 esac
6920 if depmode=$depmode \
6921 source=sub/conftest.c object=$am__obj \
6922 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6923 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6924 >/dev/null 2>conftest.err &&
6925 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6926 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6927 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6928 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6929 # icc doesn't choke on unknown options, it will just issue warnings
6930 # or remarks (even with -Werror). So we grep stderr for any message
6931 # that says an option was ignored or not supported.
6932 # When given -MP, icc 7.0 and 7.1 complain thusly:
6933 # icc: Command line warning: ignoring option '-M'; no argument required
6934 # The diagnosis changed in icc 8.0:
6935 # icc: Command line remark: option '-MP' not supported
6936 if (grep 'ignoring option' conftest.err ||
6937 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6938 am_cv_CC_dependencies_compiler_type=$depmode
6939 break
6940 fi
6941 fi
6942 done
6943
6944 cd ..
6945 rm -rf conftest.dir
6946else
6947 am_cv_CC_dependencies_compiler_type=none
6948fi
6949
6950fi
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6952$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6953CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6954
6955 if
6956 test "x$enable_dependency_tracking" != xno \
6957 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6958 am__fastdepCC_TRUE=
6959 am__fastdepCC_FALSE='#'
6960else
6961 am__fastdepCC_TRUE='#'
6962 am__fastdepCC_FALSE=
6963fi
6964
6965
cristy95646052009-11-28 23:05:30 +00006966ac_ext=cpp
6967ac_cpp='$CXXCPP $CPPFLAGS'
6968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6971if test -z "$CXX"; then
6972 if test -n "$CCC"; then
6973 CXX=$CCC
6974 else
6975 if test -n "$ac_tool_prefix"; then
6976 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6977 do
6978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006982if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006983 $as_echo_n "(cached) " >&6
6984else
6985 if test -n "$CXX"; then
6986 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6987else
6988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006995 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999done
7000 done
7001IFS=$as_save_IFS
7002
7003fi
7004fi
7005CXX=$ac_cv_prog_CXX
7006if test -n "$CXX"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7008$as_echo "$CXX" >&6; }
7009else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011$as_echo "no" >&6; }
7012fi
7013
7014
7015 test -n "$CXX" && break
7016 done
7017fi
7018if test -z "$CXX"; then
7019 ac_ct_CXX=$CXX
7020 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7021do
7022 # Extract the first word of "$ac_prog", so it can be a program name with args.
7023set dummy $ac_prog; ac_word=$2
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007026if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007027 $as_echo_n "(cached) " >&6
7028else
7029 if test -n "$ac_ct_CXX"; then
7030 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7031else
7032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033for as_dir in $PATH
7034do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007039 ac_cv_prog_ac_ct_CXX="$ac_prog"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 break 2
7042 fi
7043done
7044 done
7045IFS=$as_save_IFS
7046
7047fi
7048fi
7049ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7050if test -n "$ac_ct_CXX"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7052$as_echo "$ac_ct_CXX" >&6; }
7053else
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055$as_echo "no" >&6; }
7056fi
7057
7058
7059 test -n "$ac_ct_CXX" && break
7060done
7061
7062 if test "x$ac_ct_CXX" = x; then
7063 CXX="g++"
7064 else
7065 case $cross_compiling:$ac_tool_warned in
7066yes:)
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7069ac_tool_warned=yes ;;
7070esac
7071 CXX=$ac_ct_CXX
7072 fi
7073fi
7074
7075 fi
7076fi
7077# Provide some information about the compiler.
7078$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7079set X $ac_compile
7080ac_compiler=$2
7081for ac_option in --version -v -V -qversion; do
7082 { { ac_try="$ac_compiler $ac_option >&5"
7083case "(($ac_try" in
7084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7085 *) ac_try_echo=$ac_try;;
7086esac
7087eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7088$as_echo "$ac_try_echo"; } >&5
7089 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7090 ac_status=$?
7091 if test -s conftest.err; then
7092 sed '10a\
7093... rest of stderr output deleted ...
7094 10q' conftest.err >conftest.er1
7095 cat conftest.er1 >&5
7096 fi
7097 rm -f conftest.er1 conftest.err
7098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7099 test $ac_status = 0; }
7100done
7101
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7103$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007104if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00007105 $as_echo_n "(cached) " >&6
7106else
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108/* end confdefs.h. */
7109
7110int
7111main ()
7112{
7113#ifndef __GNUC__
7114 choke me
7115#endif
7116
7117 ;
7118 return 0;
7119}
7120_ACEOF
7121if ac_fn_cxx_try_compile "$LINENO"; then :
7122 ac_compiler_gnu=yes
7123else
7124 ac_compiler_gnu=no
7125fi
7126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7128
7129fi
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7131$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7132if test $ac_compiler_gnu = yes; then
7133 GXX=yes
7134else
7135 GXX=
7136fi
7137ac_test_CXXFLAGS=${CXXFLAGS+set}
7138ac_save_CXXFLAGS=$CXXFLAGS
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7140$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007141if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00007142 $as_echo_n "(cached) " >&6
7143else
7144 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7145 ac_cxx_werror_flag=yes
7146 ac_cv_prog_cxx_g=no
7147 CXXFLAGS="-g"
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149/* end confdefs.h. */
7150
7151int
7152main ()
7153{
7154
7155 ;
7156 return 0;
7157}
7158_ACEOF
7159if ac_fn_cxx_try_compile "$LINENO"; then :
7160 ac_cv_prog_cxx_g=yes
7161else
7162 CXXFLAGS=""
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164/* end confdefs.h. */
7165
7166int
7167main ()
7168{
7169
7170 ;
7171 return 0;
7172}
7173_ACEOF
7174if ac_fn_cxx_try_compile "$LINENO"; then :
7175
7176else
7177 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7178 CXXFLAGS="-g"
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180/* end confdefs.h. */
7181
7182int
7183main ()
7184{
7185
7186 ;
7187 return 0;
7188}
7189_ACEOF
7190if ac_fn_cxx_try_compile "$LINENO"; then :
7191 ac_cv_prog_cxx_g=yes
7192fi
7193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194fi
7195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196fi
7197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7199fi
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7201$as_echo "$ac_cv_prog_cxx_g" >&6; }
7202if test "$ac_test_CXXFLAGS" = set; then
7203 CXXFLAGS=$ac_save_CXXFLAGS
7204elif test $ac_cv_prog_cxx_g = yes; then
7205 if test "$GXX" = yes; then
7206 CXXFLAGS="-g -O2"
7207 else
7208 CXXFLAGS="-g"
7209 fi
7210else
7211 if test "$GXX" = yes; then
7212 CXXFLAGS="-O2"
7213 else
7214 CXXFLAGS=
7215 fi
7216fi
7217ac_ext=c
7218ac_cpp='$CPP $CPPFLAGS'
7219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7221ac_compiler_gnu=$ac_cv_c_compiler_gnu
7222
cristy73bd4a52010-10-05 11:24:23 +00007223depcc="$CXX" am_compiler_list=
7224
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7226$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007227if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007228 $as_echo_n "(cached) " >&6
7229else
7230 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7231 # We make a subdir and do the tests there. Otherwise we can end up
7232 # making bogus files that we don't know about and never remove. For
7233 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00007234 # making a dummy file named 'D' -- because '-MD' means "put the output
7235 # in D".
cristy7247bba2012-02-05 16:37:27 +00007236 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00007237 mkdir conftest.dir
7238 # Copy depcomp to subdir because otherwise we won't find it if we're
7239 # using a relative directory.
7240 cp "$am_depcomp" conftest.dir
7241 cd conftest.dir
7242 # We will build objects and dependencies in a subdirectory because
7243 # it helps to detect inapplicable dependency modes. For instance
7244 # both Tru64's cc and ICC support -MD to output dependencies as a
7245 # side effect of compilation, but ICC will put the dependencies in
7246 # the current directory while Tru64 will put them in the object
7247 # directory.
7248 mkdir sub
7249
7250 am_cv_CXX_dependencies_compiler_type=none
7251 if test "$am_compiler_list" = ""; then
7252 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7253 fi
7254 am__universal=false
7255 case " $depcc " in #(
7256 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7257 esac
7258
7259 for depmode in $am_compiler_list; do
7260 # Setup a source with many dependencies, because some compilers
7261 # like to wrap large dependency lists on column 80 (with \), and
7262 # we should not choose a depcomp mode which is confused by this.
7263 #
7264 # We need to recreate these files for each test, as the compiler may
7265 # overwrite some of them when testing with obscure command lines.
7266 # This happens at least with the AIX C compiler.
7267 : > sub/conftest.c
7268 for i in 1 2 3 4 5 6; do
7269 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007270 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7271 # Solaris 10 /bin/sh.
7272 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007273 done
7274 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7275
cristyc0890a62012-07-19 00:18:20 +00007276 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007277 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007278 # handle '-M -o', and we need to detect this. Also, some Intel
7279 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007280 am__obj=sub/conftest.${OBJEXT-o}
7281 am__minus_obj="-o $am__obj"
7282 case $depmode in
7283 gcc)
7284 # This depmode causes a compiler race in universal mode.
7285 test "$am__universal" = false || continue
7286 ;;
7287 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007288 # After this tag, mechanisms are not by side-effect, so they'll
7289 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007290 if test "x$enable_dependency_tracking" = xyes; then
7291 continue
7292 else
7293 break
7294 fi
7295 ;;
cristy7247bba2012-02-05 16:37:27 +00007296 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007297 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007298 # not run yet. These depmodes are late enough in the game, and
7299 # so weak that their functioning should not be impacted.
7300 am__obj=conftest.${OBJEXT-o}
7301 am__minus_obj=
7302 ;;
7303 none) break ;;
7304 esac
7305 if depmode=$depmode \
7306 source=sub/conftest.c object=$am__obj \
7307 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7308 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7309 >/dev/null 2>conftest.err &&
7310 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7311 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7312 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7313 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7314 # icc doesn't choke on unknown options, it will just issue warnings
7315 # or remarks (even with -Werror). So we grep stderr for any message
7316 # that says an option was ignored or not supported.
7317 # When given -MP, icc 7.0 and 7.1 complain thusly:
7318 # icc: Command line warning: ignoring option '-M'; no argument required
7319 # The diagnosis changed in icc 8.0:
7320 # icc: Command line remark: option '-MP' not supported
7321 if (grep 'ignoring option' conftest.err ||
7322 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7323 am_cv_CXX_dependencies_compiler_type=$depmode
7324 break
7325 fi
7326 fi
7327 done
7328
7329 cd ..
7330 rm -rf conftest.dir
7331else
7332 am_cv_CXX_dependencies_compiler_type=none
7333fi
7334
7335fi
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7337$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7338CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7339
7340 if
7341 test "x$enable_dependency_tracking" != xno \
7342 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7343 am__fastdepCXX_TRUE=
7344 am__fastdepCXX_FALSE='#'
7345else
7346 am__fastdepCXX_TRUE='#'
7347 am__fastdepCXX_FALSE=
7348fi
7349
7350
cristy8b350f62009-11-15 23:12:43 +00007351 case $ac_cv_prog_cc_stdc in #(
7352 no) :
7353 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7354 *) :
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007356$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007357if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007358 $as_echo_n "(cached) " >&6
7359else
7360 ac_cv_prog_cc_c99=no
7361ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007363/* end confdefs.h. */
7364#include <stdarg.h>
7365#include <stdbool.h>
7366#include <stdlib.h>
7367#include <wchar.h>
7368#include <stdio.h>
7369
7370// Check varargs macros. These examples are taken from C99 6.10.3.5.
7371#define debug(...) fprintf (stderr, __VA_ARGS__)
7372#define showlist(...) puts (#__VA_ARGS__)
7373#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7374static void
7375test_varargs_macros (void)
7376{
7377 int x = 1234;
7378 int y = 5678;
7379 debug ("Flag");
7380 debug ("X = %d\n", x);
7381 showlist (The first, second, and third items.);
7382 report (x>y, "x is %d but y is %d", x, y);
7383}
7384
7385// Check long long types.
7386#define BIG64 18446744073709551615ull
7387#define BIG32 4294967295ul
7388#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7389#if !BIG_OK
7390 your preprocessor is broken;
7391#endif
7392#if BIG_OK
7393#else
7394 your preprocessor is broken;
7395#endif
7396static long long int bignum = -9223372036854775807LL;
7397static unsigned long long int ubignum = BIG64;
7398
7399struct incomplete_array
7400{
7401 int datasize;
7402 double data[];
7403};
7404
7405struct named_init {
7406 int number;
7407 const wchar_t *name;
7408 double average;
7409};
7410
7411typedef const char *ccp;
7412
7413static inline int
7414test_restrict (ccp restrict text)
7415{
7416 // See if C++-style comments work.
7417 // Iterate through items via the restricted pointer.
7418 // Also check for declarations in for loops.
7419 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7420 continue;
7421 return 0;
7422}
7423
7424// Check varargs and va_copy.
7425static void
7426test_varargs (const char *format, ...)
7427{
7428 va_list args;
7429 va_start (args, format);
7430 va_list args_copy;
7431 va_copy (args_copy, args);
7432
7433 const char *str;
7434 int number;
7435 float fnumber;
7436
7437 while (*format)
7438 {
7439 switch (*format++)
7440 {
7441 case 's': // string
7442 str = va_arg (args_copy, const char *);
7443 break;
7444 case 'd': // int
7445 number = va_arg (args_copy, int);
7446 break;
7447 case 'f': // float
7448 fnumber = va_arg (args_copy, double);
7449 break;
7450 default:
7451 break;
7452 }
7453 }
7454 va_end (args_copy);
7455 va_end (args);
7456}
7457
7458int
7459main ()
7460{
7461
7462 // Check bool.
7463 _Bool success = false;
7464
7465 // Check restrict.
7466 if (test_restrict ("String literal") == 0)
7467 success = true;
7468 char *restrict newvar = "Another string";
7469
7470 // Check varargs.
7471 test_varargs ("s, d' f .", "string", 65, 34.234);
7472 test_varargs_macros ();
7473
7474 // Check flexible array members.
7475 struct incomplete_array *ia =
7476 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7477 ia->datasize = 10;
7478 for (int i = 0; i < ia->datasize; ++i)
7479 ia->data[i] = i * 1.234;
7480
7481 // Check named initializers.
7482 struct named_init ni = {
7483 .number = 34,
7484 .name = L"Test wide string",
7485 .average = 543.34343,
7486 };
7487
7488 ni.number = 58;
7489
7490 int dynamic_array[ni.number];
7491 dynamic_array[ni.number - 1] = 543;
7492
7493 // work around unused variable warnings
7494 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7495 || dynamic_array[ni.number - 1] != 543);
7496
7497 ;
7498 return 0;
7499}
7500_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007501for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007502do
7503 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007504 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007505 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007506fi
cristy3ed852e2009-09-05 21:47:34 +00007507rm -f core conftest.err conftest.$ac_objext
7508 test "x$ac_cv_prog_cc_c99" != "xno" && break
7509done
7510rm -f conftest.$ac_ext
7511CC=$ac_save_CC
7512
7513fi
7514# AC_CACHE_VAL
7515case "x$ac_cv_prog_cc_c99" in
7516 x)
cristy8b350f62009-11-15 23:12:43 +00007517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007518$as_echo "none needed" >&6; } ;;
7519 xno)
cristy8b350f62009-11-15 23:12:43 +00007520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007521$as_echo "unsupported" >&6; } ;;
7522 *)
7523 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007525$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7526esac
cristy8b350f62009-11-15 23:12:43 +00007527if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007528 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7529else
cristy8b350f62009-11-15 23:12:43 +00007530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007531$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007532if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007533 $as_echo_n "(cached) " >&6
7534else
7535 ac_cv_prog_cc_c89=no
7536ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007538/* end confdefs.h. */
7539#include <stdarg.h>
7540#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007541struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007542/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7543struct buf { int x; };
7544FILE * (*rcsopen) (struct buf *, struct stat *, int);
7545static char *e (p, i)
7546 char **p;
7547 int i;
7548{
7549 return p[i];
7550}
7551static char *f (char * (*g) (char **, int), char **p, ...)
7552{
7553 char *s;
7554 va_list v;
7555 va_start (v,p);
7556 s = g (p, va_arg (v,int));
7557 va_end (v);
7558 return s;
7559}
7560
7561/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7562 function prototypes and stuff, but not '\xHH' hex character constants.
7563 These don't provoke an error unfortunately, instead are silently treated
7564 as 'x'. The following induces an error, until -std is added to get
7565 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7566 array size at least. It's necessary to write '\x00'==0 to get something
7567 that's true only with -std. */
7568int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7569
7570/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7571 inside strings and character constants. */
7572#define FOO(x) 'x'
7573int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7574
7575int test (int i, double x);
7576struct s1 {int (*f) (int a);};
7577struct s2 {int (*f) (double a);};
7578int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7579int argc;
7580char **argv;
7581int
7582main ()
7583{
7584return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7585 ;
7586 return 0;
7587}
7588_ACEOF
7589for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7590 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7591do
7592 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007593 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007594 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007595fi
cristy3ed852e2009-09-05 21:47:34 +00007596rm -f core conftest.err conftest.$ac_objext
7597 test "x$ac_cv_prog_cc_c89" != "xno" && break
7598done
7599rm -f conftest.$ac_ext
7600CC=$ac_save_CC
7601
7602fi
7603# AC_CACHE_VAL
7604case "x$ac_cv_prog_cc_c89" in
7605 x)
cristy8b350f62009-11-15 23:12:43 +00007606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007607$as_echo "none needed" >&6; } ;;
7608 xno)
cristy8b350f62009-11-15 23:12:43 +00007609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007610$as_echo "unsupported" >&6; } ;;
7611 *)
7612 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007614$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7615esac
cristy8b350f62009-11-15 23:12:43 +00007616if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007617 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7618else
7619 ac_cv_prog_cc_stdc=no
7620fi
7621
cristy3ed852e2009-09-05 21:47:34 +00007622fi
cristy3ed852e2009-09-05 21:47:34 +00007623 ;;
7624esac
cristy8b350f62009-11-15 23:12:43 +00007625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007626$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007627 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007628 $as_echo_n "(cached) " >&6
7629fi
7630
cristy8b350f62009-11-15 23:12:43 +00007631 case $ac_cv_prog_cc_stdc in #(
7632 no) :
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7634$as_echo "unsupported" >&6; } ;; #(
7635 '') :
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7637$as_echo "none needed" >&6; } ;; #(
7638 *) :
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007640$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7641esac
7642
cristy3ed852e2009-09-05 21:47:34 +00007643ac_ext=c
7644ac_cpp='$CPP $CPPFLAGS'
7645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7647ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007649$as_echo_n "checking how to run the C preprocessor... " >&6; }
7650# On Suns, sometimes $CPP names a directory.
7651if test -n "$CPP" && test -d "$CPP"; then
7652 CPP=
7653fi
7654if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007655 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007656 $as_echo_n "(cached) " >&6
7657else
7658 # Double quotes because CPP needs to be expanded
7659 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7660 do
7661 ac_preproc_ok=false
7662for ac_c_preproc_warn_flag in '' yes
7663do
7664 # Use a header file that comes with gcc, so configuring glibc
7665 # with a fresh cross-compiler works.
7666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7667 # <limits.h> exists even on freestanding compilers.
7668 # On the NeXT, cc -E runs the code through the compiler's parser,
7669 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007671/* end confdefs.h. */
7672#ifdef __STDC__
7673# include <limits.h>
7674#else
7675# include <assert.h>
7676#endif
7677 Syntax error
7678_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007679if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007680
cristy8b350f62009-11-15 23:12:43 +00007681else
cristy3ed852e2009-09-05 21:47:34 +00007682 # Broken: fails on valid input.
7683continue
7684fi
cristyda16f162011-02-19 23:52:17 +00007685rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007686
7687 # OK, works on sane cases. Now check whether nonexistent headers
7688 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007690/* end confdefs.h. */
7691#include <ac_nonexistent.h>
7692_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007693if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007694 # Broken: success on invalid input.
7695continue
7696else
cristy3ed852e2009-09-05 21:47:34 +00007697 # Passes both tests.
7698ac_preproc_ok=:
7699break
7700fi
cristyda16f162011-02-19 23:52:17 +00007701rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007702
7703done
7704# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007705rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007706if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007707 break
7708fi
7709
7710 done
7711 ac_cv_prog_CPP=$CPP
7712
7713fi
7714 CPP=$ac_cv_prog_CPP
7715else
7716 ac_cv_prog_CPP=$CPP
7717fi
cristy8b350f62009-11-15 23:12:43 +00007718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007719$as_echo "$CPP" >&6; }
7720ac_preproc_ok=false
7721for ac_c_preproc_warn_flag in '' yes
7722do
7723 # Use a header file that comes with gcc, so configuring glibc
7724 # with a fresh cross-compiler works.
7725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7726 # <limits.h> exists even on freestanding compilers.
7727 # On the NeXT, cc -E runs the code through the compiler's parser,
7728 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007730/* end confdefs.h. */
7731#ifdef __STDC__
7732# include <limits.h>
7733#else
7734# include <assert.h>
7735#endif
7736 Syntax error
7737_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007738if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007739
cristy8b350f62009-11-15 23:12:43 +00007740else
cristy3ed852e2009-09-05 21:47:34 +00007741 # Broken: fails on valid input.
7742continue
7743fi
cristyda16f162011-02-19 23:52:17 +00007744rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007745
7746 # OK, works on sane cases. Now check whether nonexistent headers
7747 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007749/* end confdefs.h. */
7750#include <ac_nonexistent.h>
7751_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007752if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007753 # Broken: success on invalid input.
7754continue
7755else
cristy3ed852e2009-09-05 21:47:34 +00007756 # Passes both tests.
7757ac_preproc_ok=:
7758break
7759fi
cristyda16f162011-02-19 23:52:17 +00007760rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007761
7762done
7763# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007764rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007765if $ac_preproc_ok; then :
7766
cristy3ed852e2009-09-05 21:47:34 +00007767else
cristy8b350f62009-11-15 23:12:43 +00007768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007770as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7771See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007772fi
7773
7774ac_ext=c
7775ac_cpp='$CPP $CPPFLAGS'
7776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7778ac_compiler_gnu=$ac_cv_c_compiler_gnu
7779
cristy73bd4a52010-10-05 11:24:23 +00007780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7781$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007782if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007783 $as_echo_n "(cached) " >&6
7784else
7785 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7786 for ac_i in 1 2 3 4 5 6 7; do
7787 ac_script="$ac_script$as_nl$ac_script"
7788 done
7789 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7790 { ac_script=; unset ac_script;}
7791 if test -z "$SED"; then
7792 ac_path_SED_found=false
7793 # Loop through the user's path and test for each of PROGNAME-LIST
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795for as_dir in $PATH
7796do
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_prog in sed gsed; do
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007802 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007803# Check for GNU ac_path_SED and select it if it is found.
7804 # Check for GNU $ac_path_SED
7805case `"$ac_path_SED" --version 2>&1` in
7806*GNU*)
7807 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7808*)
7809 ac_count=0
7810 $as_echo_n 0123456789 >"conftest.in"
7811 while :
7812 do
7813 cat "conftest.in" "conftest.in" >"conftest.tmp"
7814 mv "conftest.tmp" "conftest.in"
7815 cp "conftest.in" "conftest.nl"
7816 $as_echo '' >> "conftest.nl"
7817 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7819 as_fn_arith $ac_count + 1 && ac_count=$as_val
7820 if test $ac_count -gt ${ac_path_SED_max-0}; then
7821 # Best one so far, save it but keep looking for a better one
7822 ac_cv_path_SED="$ac_path_SED"
7823 ac_path_SED_max=$ac_count
7824 fi
7825 # 10*(2^10) chars as input seems more than enough
7826 test $ac_count -gt 10 && break
7827 done
7828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7829esac
7830
7831 $ac_path_SED_found && break 3
7832 done
7833 done
7834 done
7835IFS=$as_save_IFS
7836 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007837 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007838 fi
7839else
7840 ac_cv_path_SED=$SED
7841fi
7842
7843fi
7844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7845$as_echo "$ac_cv_path_SED" >&6; }
7846 SED="$ac_cv_path_SED"
7847 rm -f conftest.sed
7848
7849test -z "$SED" && SED=sed
7850Xsed="$SED -e 1s/^X//"
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7863$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007864if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007865 $as_echo_n "(cached) " >&6
7866else
7867 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7868 then ac_cv_path_FGREP="$GREP -F"
7869 else
7870 if test -z "$FGREP"; then
7871 ac_path_FGREP_found=false
7872 # Loop through the user's path and test for each of PROGNAME-LIST
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7875do
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_prog in fgrep; do
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007881 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007882# Check for GNU ac_path_FGREP and select it if it is found.
7883 # Check for GNU $ac_path_FGREP
7884case `"$ac_path_FGREP" --version 2>&1` in
7885*GNU*)
7886 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7887*)
7888 ac_count=0
7889 $as_echo_n 0123456789 >"conftest.in"
7890 while :
7891 do
7892 cat "conftest.in" "conftest.in" >"conftest.tmp"
7893 mv "conftest.tmp" "conftest.in"
7894 cp "conftest.in" "conftest.nl"
7895 $as_echo 'FGREP' >> "conftest.nl"
7896 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7898 as_fn_arith $ac_count + 1 && ac_count=$as_val
7899 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7900 # Best one so far, save it but keep looking for a better one
7901 ac_cv_path_FGREP="$ac_path_FGREP"
7902 ac_path_FGREP_max=$ac_count
7903 fi
7904 # 10*(2^10) chars as input seems more than enough
7905 test $ac_count -gt 10 && break
7906 done
7907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7908esac
7909
7910 $ac_path_FGREP_found && break 3
7911 done
7912 done
7913 done
7914IFS=$as_save_IFS
7915 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007916 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007917 fi
7918else
7919 ac_cv_path_FGREP=$FGREP
7920fi
7921
7922 fi
7923fi
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7925$as_echo "$ac_cv_path_FGREP" >&6; }
7926 FGREP="$ac_cv_path_FGREP"
7927
7928
7929test -z "$GREP" && GREP=grep
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
cristy0c60a692010-11-04 01:09:47 +00007947ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7948ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7949ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7950
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7952$as_echo_n "checking how to print strings... " >&6; }
7953# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007954if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007955 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7956 ECHO='print -r --'
7957elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7958 ECHO='printf %s\n'
7959else
7960 # Use this function as a fallback that always works.
7961 func_fallback_echo ()
7962 {
7963 eval 'cat <<_LTECHO_EOF
7964$1
7965_LTECHO_EOF'
7966 }
7967 ECHO='func_fallback_echo'
7968fi
7969
7970# func_echo_all arg...
7971# Invoke $ECHO with all args, space-separated.
7972func_echo_all ()
7973{
7974 $ECHO ""
7975}
7976
7977case "$ECHO" in
7978 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7979$as_echo "printf" >&6; } ;;
7980 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7981$as_echo "print -r" >&6; } ;;
7982 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7983$as_echo "cat" >&6; } ;;
7984esac
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
cristy73bd4a52010-10-05 11:24:23 +00007999
8000
8001# Check whether --with-gnu-ld was given.
8002if test "${with_gnu_ld+set}" = set; then :
8003 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8004else
8005 with_gnu_ld=no
8006fi
8007
8008ac_prog=ld
8009if test "$GCC" = yes; then
8010 # Check if gcc -print-prog-name=ld gives a path.
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8012$as_echo_n "checking for ld used by $CC... " >&6; }
8013 case $host in
8014 *-*-mingw*)
8015 # gcc leaves a trailing carriage return which upsets mingw
8016 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8017 *)
8018 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8019 esac
8020 case $ac_prog in
8021 # Accept absolute paths.
8022 [\\/]* | ?:[\\/]*)
8023 re_direlt='/[^/][^/]*/\.\./'
8024 # Canonicalize the pathname of ld
8025 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8026 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8027 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8028 done
8029 test -z "$LD" && LD="$ac_prog"
8030 ;;
8031 "")
8032 # If it fails, then pretend we aren't using GCC.
8033 ac_prog=ld
8034 ;;
8035 *)
8036 # If it is relative, then search for the first ld in PATH.
8037 with_gnu_ld=unknown
8038 ;;
8039 esac
8040elif test "$with_gnu_ld" = yes; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8042$as_echo_n "checking for GNU ld... " >&6; }
8043else
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8045$as_echo_n "checking for non-GNU ld... " >&6; }
8046fi
cristyda16f162011-02-19 23:52:17 +00008047if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008048 $as_echo_n "(cached) " >&6
8049else
8050 if test -z "$LD"; then
8051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8052 for ac_dir in $PATH; do
8053 IFS="$lt_save_ifs"
8054 test -z "$ac_dir" && ac_dir=.
8055 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8056 lt_cv_path_LD="$ac_dir/$ac_prog"
8057 # Check to see if the program is GNU ld. I'd rather use --version,
8058 # but apparently some variants of GNU ld only accept -v.
8059 # Break only if it was the GNU/non-GNU ld that we prefer.
8060 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8061 *GNU* | *'with BFD'*)
8062 test "$with_gnu_ld" != no && break
8063 ;;
8064 *)
8065 test "$with_gnu_ld" != yes && break
8066 ;;
8067 esac
8068 fi
8069 done
8070 IFS="$lt_save_ifs"
8071else
8072 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8073fi
8074fi
8075
8076LD="$lt_cv_path_LD"
8077if test -n "$LD"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8079$as_echo "$LD" >&6; }
8080else
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082$as_echo "no" >&6; }
8083fi
cristy98dddb52010-11-04 00:30:15 +00008084test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8086$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008087if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008088 $as_echo_n "(cached) " >&6
8089else
8090 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8091case `$LD -v 2>&1 </dev/null` in
8092*GNU* | *'with BFD'*)
8093 lt_cv_prog_gnu_ld=yes
8094 ;;
8095*)
8096 lt_cv_prog_gnu_ld=no
8097 ;;
8098esac
8099fi
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8101$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8102with_gnu_ld=$lt_cv_prog_gnu_ld
8103
8104
8105
8106
8107
8108
8109
8110
8111
cristy3ed852e2009-09-05 21:47:34 +00008112
cristy837d6dc2010-02-27 01:16:57 +00008113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8114$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008115if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00008116 $as_echo_n "(cached) " >&6
8117else
8118 ac_cv_prog_cc_c99=no
8119ac_save_CC=$CC
8120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121/* end confdefs.h. */
8122#include <stdarg.h>
8123#include <stdbool.h>
8124#include <stdlib.h>
8125#include <wchar.h>
8126#include <stdio.h>
8127
8128// Check varargs macros. These examples are taken from C99 6.10.3.5.
8129#define debug(...) fprintf (stderr, __VA_ARGS__)
8130#define showlist(...) puts (#__VA_ARGS__)
8131#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8132static void
8133test_varargs_macros (void)
8134{
8135 int x = 1234;
8136 int y = 5678;
8137 debug ("Flag");
8138 debug ("X = %d\n", x);
8139 showlist (The first, second, and third items.);
8140 report (x>y, "x is %d but y is %d", x, y);
8141}
8142
8143// Check long long types.
8144#define BIG64 18446744073709551615ull
8145#define BIG32 4294967295ul
8146#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8147#if !BIG_OK
8148 your preprocessor is broken;
8149#endif
8150#if BIG_OK
8151#else
8152 your preprocessor is broken;
8153#endif
8154static long long int bignum = -9223372036854775807LL;
8155static unsigned long long int ubignum = BIG64;
8156
8157struct incomplete_array
8158{
8159 int datasize;
8160 double data[];
8161};
8162
8163struct named_init {
8164 int number;
8165 const wchar_t *name;
8166 double average;
8167};
8168
8169typedef const char *ccp;
8170
8171static inline int
8172test_restrict (ccp restrict text)
8173{
8174 // See if C++-style comments work.
8175 // Iterate through items via the restricted pointer.
8176 // Also check for declarations in for loops.
8177 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8178 continue;
8179 return 0;
8180}
8181
8182// Check varargs and va_copy.
8183static void
8184test_varargs (const char *format, ...)
8185{
8186 va_list args;
8187 va_start (args, format);
8188 va_list args_copy;
8189 va_copy (args_copy, args);
8190
8191 const char *str;
8192 int number;
8193 float fnumber;
8194
8195 while (*format)
8196 {
8197 switch (*format++)
8198 {
8199 case 's': // string
8200 str = va_arg (args_copy, const char *);
8201 break;
8202 case 'd': // int
8203 number = va_arg (args_copy, int);
8204 break;
8205 case 'f': // float
8206 fnumber = va_arg (args_copy, double);
8207 break;
8208 default:
8209 break;
8210 }
8211 }
8212 va_end (args_copy);
8213 va_end (args);
8214}
8215
8216int
8217main ()
8218{
8219
8220 // Check bool.
8221 _Bool success = false;
8222
8223 // Check restrict.
8224 if (test_restrict ("String literal") == 0)
8225 success = true;
8226 char *restrict newvar = "Another string";
8227
8228 // Check varargs.
8229 test_varargs ("s, d' f .", "string", 65, 34.234);
8230 test_varargs_macros ();
8231
8232 // Check flexible array members.
8233 struct incomplete_array *ia =
8234 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8235 ia->datasize = 10;
8236 for (int i = 0; i < ia->datasize; ++i)
8237 ia->data[i] = i * 1.234;
8238
8239 // Check named initializers.
8240 struct named_init ni = {
8241 .number = 34,
8242 .name = L"Test wide string",
8243 .average = 543.34343,
8244 };
8245
8246 ni.number = 58;
8247
8248 int dynamic_array[ni.number];
8249 dynamic_array[ni.number - 1] = 543;
8250
8251 // work around unused variable warnings
8252 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8253 || dynamic_array[ni.number - 1] != 543);
8254
8255 ;
8256 return 0;
8257}
8258_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008259for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008260do
8261 CC="$ac_save_CC $ac_arg"
8262 if ac_fn_c_try_compile "$LINENO"; then :
8263 ac_cv_prog_cc_c99=$ac_arg
8264fi
8265rm -f core conftest.err conftest.$ac_objext
8266 test "x$ac_cv_prog_cc_c99" != "xno" && break
8267done
8268rm -f conftest.$ac_ext
8269CC=$ac_save_CC
8270
8271fi
8272# AC_CACHE_VAL
8273case "x$ac_cv_prog_cc_c99" in
8274 x)
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8276$as_echo "none needed" >&6; } ;;
8277 xno)
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8279$as_echo "unsupported" >&6; } ;;
8280 *)
8281 CC="$CC $ac_cv_prog_cc_c99"
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8283$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8284esac
8285if test "x$ac_cv_prog_cc_c99" != xno; then :
8286
8287fi
8288
8289
cristy73bd4a52010-10-05 11:24:23 +00008290
cristy17491be2014-06-24 01:10:53 +00008291ac_ext=c
8292ac_cpp='$CPP $CPPFLAGS'
8293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8295ac_compiler_gnu=$ac_cv_c_compiler_gnu
8296
cristy73bd4a52010-10-05 11:24:23 +00008297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8298$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008299if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008300 $as_echo_n "(cached) " >&6
8301else
8302 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008303ac_save_CFLAGS="$CFLAGS"
8304for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
cristy73bd4a52010-10-05 11:24:23 +00008305do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307/* end confdefs.h. */
8308
8309int
8310main ()
8311{
cristy24fc1fe2010-10-23 21:13:01 +00008312
cristy73bd4a52010-10-05 11:24:23 +00008313 ;
8314 return 0;
8315}
8316_ACEOF
8317if ac_fn_c_try_compile "$LINENO"; then :
8318 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8319fi
8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321done
cristy17491be2014-06-24 01:10:53 +00008322CFLAGS="$ac_save_CFLAGS"
8323
8324fi
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8326$as_echo "$ac_cv_cflags_warn_all" >&6; }
8327
8328
8329case ".$ac_cv_cflags_warn_all" in
8330 .ok|.ok,*) ;;
8331 .|.no|.no,*) ;;
8332 *) if ${CFLAGS+:} false; then :
8333 case " $CFLAGS " in
8334 *" $ac_cv_cflags_warn_all "*)
8335 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8336 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8337 ac_status=$?
8338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8339 test $ac_status = 0; }
8340 ;;
8341 *)
8342 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8343 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8344 ac_status=$?
8345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8346 test $ac_status = 0; }
8347 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8348 ;;
8349 esac
8350else
8351 CFLAGS="$ac_cv_cflags_warn_all"
8352fi
8353 ;;
8354esac
8355
8356ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008357ac_cpp='$CPP $CPPFLAGS'
8358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8360ac_compiler_gnu=$ac_cv_c_compiler_gnu
8361
8362
cristya0b81c32010-01-22 02:54:33 +00008363
8364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8365$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8366set x ${MAKE-make}
8367ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008368if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008369 $as_echo_n "(cached) " >&6
8370else
8371 cat >conftest.make <<\_ACEOF
8372SHELL = /bin/sh
8373all:
8374 @echo '@@@%%%=$(MAKE)=@@@%%%'
8375_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008376# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008377case `${MAKE-make} -f conftest.make 2>/dev/null` in
8378 *@@@%%%=?*=@@@%%%*)
8379 eval ac_cv_prog_make_${ac_make}_set=yes;;
8380 *)
8381 eval ac_cv_prog_make_${ac_make}_set=no;;
8382esac
8383rm -f conftest.make
8384fi
8385if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8387$as_echo "yes" >&6; }
8388 SET_MAKE=
8389else
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391$as_echo "no" >&6; }
8392 SET_MAKE="MAKE=${MAKE-make}"
8393fi
8394
cristy8b350f62009-11-15 23:12:43 +00008395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008396$as_echo_n "checking whether ln -s works... " >&6; }
8397LN_S=$as_ln_s
8398if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008400$as_echo "yes" >&6; }
8401else
cristy8b350f62009-11-15 23:12:43 +00008402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008403$as_echo "no, using $LN_S" >&6; }
8404fi
8405
cristy8d0ff762013-03-10 20:33:28 +00008406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8407$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8408if ${ac_cv_path_SED+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410else
8411 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8412 for ac_i in 1 2 3 4 5 6 7; do
8413 ac_script="$ac_script$as_nl$ac_script"
8414 done
8415 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8416 { ac_script=; unset ac_script;}
8417 if test -z "$SED"; then
8418 ac_path_SED_found=false
8419 # Loop through the user's path and test for each of PROGNAME-LIST
8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421for as_dir in $PATH
8422do
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
8425 for ac_prog in sed gsed; do
8426 for ac_exec_ext in '' $ac_executable_extensions; do
8427 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8428 as_fn_executable_p "$ac_path_SED" || continue
8429# Check for GNU ac_path_SED and select it if it is found.
8430 # Check for GNU $ac_path_SED
8431case `"$ac_path_SED" --version 2>&1` in
8432*GNU*)
8433 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8434*)
8435 ac_count=0
8436 $as_echo_n 0123456789 >"conftest.in"
8437 while :
8438 do
8439 cat "conftest.in" "conftest.in" >"conftest.tmp"
8440 mv "conftest.tmp" "conftest.in"
8441 cp "conftest.in" "conftest.nl"
8442 $as_echo '' >> "conftest.nl"
8443 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8445 as_fn_arith $ac_count + 1 && ac_count=$as_val
8446 if test $ac_count -gt ${ac_path_SED_max-0}; then
8447 # Best one so far, save it but keep looking for a better one
8448 ac_cv_path_SED="$ac_path_SED"
8449 ac_path_SED_max=$ac_count
8450 fi
8451 # 10*(2^10) chars as input seems more than enough
8452 test $ac_count -gt 10 && break
8453 done
8454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8455esac
8456
8457 $ac_path_SED_found && break 3
8458 done
8459 done
8460 done
8461IFS=$as_save_IFS
8462 if test -z "$ac_cv_path_SED"; then
8463 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8464 fi
8465else
8466 ac_cv_path_SED=$SED
8467fi
8468
8469fi
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8471$as_echo "$ac_cv_path_SED" >&6; }
8472 SED="$ac_cv_path_SED"
8473 rm -f conftest.sed
8474
cristybc556452012-08-17 19:44:03 +00008475for ac_prog in gawk mawk nawk awk
8476do
8477 # Extract the first word of "$ac_prog", so it can be a program name with args.
8478set dummy $ac_prog; ac_word=$2
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480$as_echo_n "checking for $ac_word... " >&6; }
8481if ${ac_cv_prog_AWK+:} false; then :
8482 $as_echo_n "(cached) " >&6
8483else
8484 if test -n "$AWK"; then
8485 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8486else
8487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488for as_dir in $PATH
8489do
8490 IFS=$as_save_IFS
8491 test -z "$as_dir" && as_dir=.
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8494 ac_cv_prog_AWK="$ac_prog"
8495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 break 2
8497 fi
8498done
8499 done
8500IFS=$as_save_IFS
8501
8502fi
8503fi
8504AWK=$ac_cv_prog_AWK
8505if test -n "$AWK"; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8507$as_echo "$AWK" >&6; }
8508else
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510$as_echo "no" >&6; }
8511fi
8512
8513
8514 test -n "$AWK" && break
8515done
8516
cristy73bd4a52010-10-05 11:24:23 +00008517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8518$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8519
8520# Check whether --with-dmalloc was given.
8521if test "${with_dmalloc+set}" = set; then :
8522 withval=$with_dmalloc; if test "$withval" = yes; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8524$as_echo "yes" >&6; }
8525
8526$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8527
8528 LIBS="$LIBS -ldmalloc"
8529 LDFLAGS="$LDFLAGS -g"
8530else
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532$as_echo "no" >&6; }
8533fi
8534else
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536$as_echo "no" >&6; }
8537fi
8538
8539
8540
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8542$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008543if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008544 $as_echo_n "(cached) " >&6
8545else
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547/* end confdefs.h. */
8548#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008549 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008550 static void
8551 foo(void) {
8552 exit(1);
8553 }
8554
8555int
8556main ()
8557{
8558
8559 ;
8560 return 0;
8561}
8562_ACEOF
8563if ac_fn_c_try_compile "$LINENO"; then :
8564 ax_cv___attribute__=yes
8565else
8566 ax_cv___attribute__=no
8567
8568fi
8569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8570
8571fi
8572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8573$as_echo "$ax_cv___attribute__" >&6; }
8574 if test "$ax_cv___attribute__" = "yes"; then
8575
8576$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8577
8578 fi
8579
8580
8581
cristya0459972013-11-03 18:09:35 +00008582
8583
cristy17491be2014-06-24 01:10:53 +00008584
cristya0459972013-11-03 18:09:35 +00008585# Check whether --with-gcc-arch was given.
8586if test "${with_gcc_arch+set}" = set; then :
8587 withval=$with_gcc_arch; ax_gcc_arch=$withval
8588else
cristy17491be2014-06-24 01:10:53 +00008589 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008590fi
8591
8592
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8594$as_echo_n "checking for gcc architecture flag... " >&6; }
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8596$as_echo "" >&6; }
8597if ${ax_cv_gcc_archflag+:} false; then :
8598 $as_echo_n "(cached) " >&6
8599else
8600
8601ax_cv_gcc_archflag="unknown"
8602
8603if test "$GCC" = yes; then
8604
8605if test "x$ax_gcc_arch" = xyes; then
8606ax_gcc_arch=""
8607if test "$cross_compiling" = no; then
8608case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008609 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008610
8611ac_ext=c
8612ac_cpp='$CPP $CPPFLAGS'
8613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8615ac_compiler_gnu=$ac_cv_c_compiler_gnu
8616
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8618$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8619if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8620 $as_echo_n "(cached) " >&6
8621else
8622 if test "$cross_compiling" = yes; then :
8623 ax_cv_gcc_x86_cpuid_0=unknown
8624else
8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626/* end confdefs.h. */
8627#include <stdio.h>
8628int
8629main ()
8630{
8631
8632 int op = 0, eax, ebx, ecx, edx;
8633 FILE *f;
8634 __asm__("cpuid"
8635 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8636 : "a" (op));
8637 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8638 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8639 fclose(f);
8640 return 0;
8641
8642 ;
8643 return 0;
8644}
8645_ACEOF
8646if ac_fn_c_try_run "$LINENO"; then :
8647 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8648else
8649 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8650fi
8651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8652 conftest.$ac_objext conftest.beam conftest.$ac_ext
8653fi
8654
8655fi
8656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8657$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8658ac_ext=c
8659ac_cpp='$CPP $CPPFLAGS'
8660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8662ac_compiler_gnu=$ac_cv_c_compiler_gnu
8663
8664
8665
8666ac_ext=c
8667ac_cpp='$CPP $CPPFLAGS'
8668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8670ac_compiler_gnu=$ac_cv_c_compiler_gnu
8671
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8673$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8674if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676else
8677 if test "$cross_compiling" = yes; then :
8678 ax_cv_gcc_x86_cpuid_1=unknown
8679else
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681/* end confdefs.h. */
8682#include <stdio.h>
8683int
8684main ()
8685{
8686
8687 int op = 1, eax, ebx, ecx, edx;
8688 FILE *f;
8689 __asm__("cpuid"
8690 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8691 : "a" (op));
8692 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8693 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8694 fclose(f);
8695 return 0;
8696
8697 ;
8698 return 0;
8699}
8700_ACEOF
8701if ac_fn_c_try_run "$LINENO"; then :
8702 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8703else
8704 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8705fi
8706rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8707 conftest.$ac_objext conftest.beam conftest.$ac_ext
8708fi
8709
8710fi
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8712$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8713ac_ext=c
8714ac_cpp='$CPP $CPPFLAGS'
8715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8717ac_compiler_gnu=$ac_cv_c_compiler_gnu
8718
8719
8720 case $ax_cv_gcc_x86_cpuid_0 in
8721 *:756e6547:*:*) # Intel
8722 case $ax_cv_gcc_x86_cpuid_1 in
8723 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8724 *5??:*:*:*) ax_gcc_arch=pentium ;;
cristya0459972013-11-03 18:09:35 +00008725 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8726 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8727 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8728 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008729 *[1-9a-f]?6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8730 *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8731 *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8732 *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8733 *6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8734 *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8735 *6f?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8736 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8737 *f3[347]:*:*:*|*f41347:*:*:*|*f6?:*:*:*)
cristya0459972013-11-03 18:09:35 +00008738 case $host_cpu in
8739 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8740 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8741 esac ;;
cristy17491be2014-06-24 01:10:53 +00008742 *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
cristya0459972013-11-03 18:09:35 +00008743 esac ;;
8744 *:68747541:*:*) # AMD
8745 case $ax_cv_gcc_x86_cpuid_1 in
8746 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8747 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8748 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8749 *60?:*:*:*) ax_gcc_arch=k7 ;;
8750 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8751 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8752 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8753 *6[68a]?:*:*:*)
8754
8755ac_ext=c
8756ac_cpp='$CPP $CPPFLAGS'
8757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8759ac_compiler_gnu=$ac_cv_c_compiler_gnu
8760
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8762$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8763if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8764 $as_echo_n "(cached) " >&6
8765else
8766 if test "$cross_compiling" = yes; then :
8767 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8768else
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770/* end confdefs.h. */
8771#include <stdio.h>
8772int
8773main ()
8774{
8775
8776 int op = 0x80000006, eax, ebx, ecx, edx;
8777 FILE *f;
8778 __asm__("cpuid"
8779 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8780 : "a" (op));
8781 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8782 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8783 fclose(f);
8784 return 0;
8785
8786 ;
8787 return 0;
8788}
8789_ACEOF
8790if ac_fn_c_try_run "$LINENO"; then :
8791 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8792else
8793 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8794fi
8795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8796 conftest.$ac_objext conftest.beam conftest.$ac_ext
8797fi
8798
8799fi
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8801$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8802ac_ext=c
8803ac_cpp='$CPP $CPPFLAGS'
8804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8806ac_compiler_gnu=$ac_cv_c_compiler_gnu
8807
8808 # L2 cache size
8809 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8810 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8811 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8812 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8813 esac ;;
cristy17491be2014-06-24 01:10:53 +00008814 *5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8815 *6??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8816 *[1-9a-f]??f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8817 *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8818 *f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8819 *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8820 *f??:*:*:*) ax_gcc_arch="k8" ;;
cristya0459972013-11-03 18:09:35 +00008821 esac ;;
8822 *:746e6543:*:*) # IDT
8823 case $ax_cv_gcc_x86_cpuid_1 in
8824 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8825 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8826 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8827 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8828 esac ;;
8829 esac
8830 if test x"$ax_gcc_arch" = x; then # fallback
8831 case $host_cpu in
8832 i586*) ax_gcc_arch=pentium ;;
8833 i686*) ax_gcc_arch=pentiumpro ;;
8834 esac
8835 fi
8836 ;;
8837
8838 sparc*)
8839 # Extract the first word of "prtdiag", so it can be a program name with args.
8840set dummy prtdiag; ac_word=$2
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8842$as_echo_n "checking for $ac_word... " >&6; }
8843if ${ac_cv_path_PRTDIAG+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845else
8846 case $PRTDIAG in
8847 [\\/]* | ?:[\\/]*)
8848 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8849 ;;
8850 *)
8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8853for as_dir in $as_dummy
8854do
8855 IFS=$as_save_IFS
8856 test -z "$as_dir" && as_dir=.
8857 for ac_exec_ext in '' $ac_executable_extensions; do
8858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8859 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8861 break 2
8862 fi
8863done
8864 done
8865IFS=$as_save_IFS
8866
8867 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8868 ;;
8869esac
8870fi
8871PRTDIAG=$ac_cv_path_PRTDIAG
8872if test -n "$PRTDIAG"; then
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8874$as_echo "$PRTDIAG" >&6; }
8875else
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8877$as_echo "no" >&6; }
8878fi
8879
8880
8881 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`
cristy17491be2014-06-24 01:10:53 +00008882 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008883 case $cputype in
8884 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8885 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8886 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8887 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8888 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8889 *cypress*) ax_gcc_arch=cypress ;;
8890 esac ;;
8891
8892 alphaev5) ax_gcc_arch=ev5 ;;
8893 alphaev56) ax_gcc_arch=ev56 ;;
8894 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8895 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8896 alphaev6) ax_gcc_arch=ev6 ;;
8897 alphaev67) ax_gcc_arch=ev67 ;;
8898 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8899 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8900 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8901 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8902
8903 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008904 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`
8905 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008906 case $cputype in
8907 *750*) ax_gcc_arch="750 G3" ;;
8908 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8909 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8910 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8911 *970*) ax_gcc_arch="970 G5 power4";;
8912 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8913 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8914 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8915 *) ax_gcc_arch=$cputype ;;
8916 esac
8917 ax_gcc_arch="$ax_gcc_arch powerpc"
8918 ;;
8919esac
8920fi # not cross-compiling
8921fi # guess arch
8922
8923if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8924for arch in $ax_gcc_arch; do
8925 if test "xno" = xyes; then # if we require portable code
8926 flags="-mtune=$arch"
8927 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8928 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8929 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8930 else
8931 flags="-march=$arch -mcpu=$arch -m$arch"
8932 fi
8933 for flag in $flags; do
8934 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8936$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8937if eval \${$as_CACHEVAR+:} false; then :
8938 $as_echo_n "(cached) " >&6
8939else
8940
8941 ax_check_save_flags=$CFLAGS
8942 CFLAGS="$CFLAGS $flag"
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944/* end confdefs.h. */
8945
8946int
8947main ()
8948{
8949
8950 ;
8951 return 0;
8952}
8953_ACEOF
8954if ac_fn_c_try_compile "$LINENO"; then :
8955 eval "$as_CACHEVAR=yes"
8956else
8957 eval "$as_CACHEVAR=no"
8958fi
8959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960 CFLAGS=$ax_check_save_flags
8961fi
8962eval ac_res=\$$as_CACHEVAR
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8964$as_echo "$ac_res" >&6; }
8965if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8966 ax_cv_gcc_archflag=$flag; break
8967else
8968 :
8969fi
8970
8971 done
8972 test "x$ax_cv_gcc_archflag" = xunknown || break
8973done
8974fi
8975
8976fi # $GCC=yes
8977
8978fi
8979
8980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8981$as_echo_n "checking for gcc architecture flag... " >&6; }
8982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8983$as_echo "$ax_cv_gcc_archflag" >&6; }
8984if test "x$ax_cv_gcc_archflag" = xunknown; then
8985 :
8986else
8987 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8988fi
8989
8990
8991
cristy73bd4a52010-10-05 11:24:23 +00008992if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8993 if test -n "$ac_tool_prefix"; then
8994 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8995set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008998if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008999 $as_echo_n "(cached) " >&6
9000else
9001 case $PKG_CONFIG in
9002 [\\/]* | ?:[\\/]*)
9003 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9004 ;;
9005 *)
9006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007for as_dir in $PATH
9008do
9009 IFS=$as_save_IFS
9010 test -z "$as_dir" && as_dir=.
9011 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009013 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9015 break 2
9016 fi
9017done
9018 done
9019IFS=$as_save_IFS
9020
9021 ;;
9022esac
9023fi
9024PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9025if test -n "$PKG_CONFIG"; then
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9027$as_echo "$PKG_CONFIG" >&6; }
9028else
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030$as_echo "no" >&6; }
9031fi
9032
9033
9034fi
9035if test -z "$ac_cv_path_PKG_CONFIG"; then
9036 ac_pt_PKG_CONFIG=$PKG_CONFIG
9037 # Extract the first word of "pkg-config", so it can be a program name with args.
9038set dummy pkg-config; ac_word=$2
9039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9040$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009041if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009042 $as_echo_n "(cached) " >&6
9043else
9044 case $ac_pt_PKG_CONFIG in
9045 [\\/]* | ?:[\\/]*)
9046 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9047 ;;
9048 *)
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050for as_dir in $PATH
9051do
9052 IFS=$as_save_IFS
9053 test -z "$as_dir" && as_dir=.
9054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009056 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9058 break 2
9059 fi
9060done
9061 done
9062IFS=$as_save_IFS
9063
9064 ;;
9065esac
9066fi
9067ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9068if test -n "$ac_pt_PKG_CONFIG"; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9070$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9071else
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073$as_echo "no" >&6; }
9074fi
9075
9076 if test "x$ac_pt_PKG_CONFIG" = x; then
9077 PKG_CONFIG=""
9078 else
9079 case $cross_compiling:$ac_tool_warned in
9080yes:)
9081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9083ac_tool_warned=yes ;;
9084esac
9085 PKG_CONFIG=$ac_pt_PKG_CONFIG
9086 fi
9087else
9088 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9089fi
9090
9091fi
9092if test -n "$PKG_CONFIG"; then
9093 _pkg_min_version=0.9.0
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9095$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9096 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9098$as_echo "yes" >&6; }
9099 else
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101$as_echo "no" >&6; }
9102 PKG_CONFIG=""
9103 fi
9104
9105fi
cristy3ed852e2009-09-05 21:47:34 +00009106
cristy9af1cbf2014-12-28 22:03:09 +00009107
9108
cristyd95b7a52013-10-23 13:12:53 +00009109# Test for 64-bit build.
9110# The cast to long int works around a bug in the HP C Compiler
9111# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9112# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9113# This bug is HP SR number 8606223364.
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9115$as_echo_n "checking size of size_t... " >&6; }
9116if ${ac_cv_sizeof_size_t+:} false; then :
9117 $as_echo_n "(cached) " >&6
9118else
9119 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
9120
9121else
9122 if test "$ac_cv_type_size_t" = yes; then
9123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9125as_fn_error 77 "cannot compute sizeof (size_t)
9126See \`config.log' for more details" "$LINENO" 5; }
9127 else
9128 ac_cv_sizeof_size_t=0
9129 fi
9130fi
9131
9132fi
9133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9134$as_echo "$ac_cv_sizeof_size_t" >&6; }
9135
9136
9137
9138cat >>confdefs.h <<_ACEOF
9139#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9140_ACEOF
9141
9142
9143
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9145$as_echo_n "checking for C compiler vendor... " >&6; }
9146if ${ax_cv_c_compiler_vendor+:} false; then :
9147 $as_echo_n "(cached) " >&6
9148else
9149 # note: don't check for gcc first since some other compilers define __GNUC__
9150 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
9151 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
9152 pathscale: __PATHCC__,__PATHSCALE__
9153 clang: __clang__
cristy17491be2014-06-24 01:10:53 +00009154 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00009155 gnu: __GNUC__
9156 sun: __SUNPRO_C,__SUNPRO_CC
9157 hp: __HP_cc,__HP_aCC
9158 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
9159 borland: __BORLANDC__,__TURBOC__
9160 comeau: __COMO__
9161 cray: _CRAYC
9162 kai: __KCC
9163 lcc: __LCC__
9164 sgi: __sgi,sgi
9165 microsoft: _MSC_VER
9166 metrowerks: __MWERKS__
9167 watcom: __WATCOMC__
9168 portland: __PGI
9169 unknown: UNKNOWN"
9170 for ventest in $vendors; do
9171 case $ventest in
9172 *:) vendor=$ventest; continue ;;
9173 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
9174 esac
9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176/* end confdefs.h. */
9177
9178int
9179main ()
9180{
9181
9182 #if !($vencpp)
9183 thisisanerror;
9184 #endif
9185
9186 ;
9187 return 0;
9188}
9189_ACEOF
9190if ac_fn_c_try_compile "$LINENO"; then :
9191 break
9192fi
9193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 done
9195 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9196
9197fi
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9199$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9200
cristyd95b7a52013-10-23 13:12:53 +00009201# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
9202# compiler.
9203if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00009204 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009205ac_cpp='$CPP $CPPFLAGS'
9206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9208ac_compiler_gnu=$ac_cv_c_compiler_gnu
9209
cristy17491be2014-06-24 01:10:53 +00009210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
9211$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
9212if ${ac_cv_cflags_warn_all+:} false; then :
9213 $as_echo_n "(cached) " >&6
9214else
9215 ac_cv_cflags_warn_all="no, unknown"
9216ac_save_CFLAGS="$CFLAGS"
9217for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
cristyd95b7a52013-10-23 13:12:53 +00009218do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220/* end confdefs.h. */
9221
9222int
9223main ()
9224{
9225
9226 ;
9227 return 0;
9228}
9229_ACEOF
9230if ac_fn_c_try_compile "$LINENO"; then :
9231 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9232fi
9233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9234done
cristy17491be2014-06-24 01:10:53 +00009235CFLAGS="$ac_save_CFLAGS"
9236
9237fi
9238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
9239$as_echo "$ac_cv_cflags_warn_all" >&6; }
9240
9241
9242case ".$ac_cv_cflags_warn_all" in
9243 .ok|.ok,*) ;;
9244 .|.no|.no,*) ;;
9245 *) if ${CFLAGS+:} false; then :
9246 case " $CFLAGS " in
9247 *" $ac_cv_cflags_warn_all "*)
9248 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
9249 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
9250 ac_status=$?
9251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9252 test $ac_status = 0; }
9253 ;;
9254 *)
9255 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
9256 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
9257 ac_status=$?
9258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9259 test $ac_status = 0; }
9260 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
9261 ;;
9262 esac
9263else
9264 CFLAGS="$ac_cv_cflags_warn_all"
9265fi
9266 ;;
9267esac
9268
9269ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009270ac_cpp='$CPP $CPPFLAGS'
9271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9273ac_compiler_gnu=$ac_cv_c_compiler_gnu
9274
9275
9276fi
cristyd95b7a52013-10-23 13:12:53 +00009277
9278if test "x$GCC" = "xyes"; then
9279 CFLAGS="$CFLAGS -fexceptions"
9280 touch local.exp
9281else
9282 cat > local.exp <<EOF
9283set CC_FOR_TARGET "$CC"
9284EOF
9285fi
9286
cristy9b86f202012-11-28 21:55:35 +00009287# Check for linker script support
9288
9289 # Check whether --enable-ld-version-script was given.
9290if test "${enable_ld_version_script+set}" = set; then :
9291 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9292fi
9293
9294 if test -z "$have_ld_version_script"; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9296$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9297 save_LDFLAGS="$LDFLAGS"
9298 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9299 cat > conftest.map <<EOF
9300foo
9301EOF
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303/* end confdefs.h. */
9304
9305int
9306main ()
9307{
9308
9309 ;
9310 return 0;
9311}
9312_ACEOF
9313if ac_fn_c_try_link "$LINENO"; then :
9314 accepts_syntax_errors=yes
9315else
9316 accepts_syntax_errors=no
9317fi
9318rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9320 if test "$accepts_syntax_errors" = no; then
9321 cat > conftest.map <<EOF
9322VERS_1 {
9323 global: sym;
9324};
9325
9326VERS_2 {
9327 global: sym;
9328} VERS_1;
9329EOF
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331/* end confdefs.h. */
9332
9333int
9334main ()
9335{
9336
9337 ;
9338 return 0;
9339}
9340_ACEOF
9341if ac_fn_c_try_link "$LINENO"; then :
9342 have_ld_version_script=yes
9343else
9344 have_ld_version_script=no
9345fi
9346rm -f core conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 else
9349 have_ld_version_script=no
9350 fi
9351 rm -f conftest.map
9352 LDFLAGS="$save_LDFLAGS"
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9354$as_echo "$have_ld_version_script" >&6; }
9355 fi
9356 if test "$have_ld_version_script" = "yes"; then
9357 HAVE_LD_VERSION_SCRIPT_TRUE=
9358 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9359else
9360 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9361 HAVE_LD_VERSION_SCRIPT_FALSE=
9362fi
9363
9364
9365
cristy3ed852e2009-09-05 21:47:34 +00009366#
cristy3ed852e2009-09-05 21:47:34 +00009367# Enable run-time checking.
9368#
9369# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009370if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009371 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9372else
9373 enable_bounds_checking='no'
9374fi
9375
9376
9377if test "$enable_bounds_checking" = yes; then
9378
cristy8b350f62009-11-15 23:12:43 +00009379$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009380
9381fi
9382
9383#
9384# Tests for Windows
9385#
9386
9387
9388
9389GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009390native_win32_build='no'
9391cygwin_build='no'
9392case "${host_os}" in
9393 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009394 cygwin_build='yes'
9395 GDI32_LIBS='-lgdi32'
9396 ;;
9397 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009398 native_win32_build='yes'
9399 GDI32_LIBS='-lgdi32'
9400 ;;
9401esac
9402if test "${GDI32_LIBS}x" != 'x'; then
9403
cristy8b350f62009-11-15 23:12:43 +00009404$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009405
9406fi
9407
cristy73bd4a52010-10-05 11:24:23 +00009408 if test "${GDI32_LIBS}x" != 'x' ; then
9409 WINGDI32_DELEGATE_TRUE=
9410 WINGDI32_DELEGATE_FALSE='#'
9411else
9412 WINGDI32_DELEGATE_TRUE='#'
9413 WINGDI32_DELEGATE_FALSE=
9414fi
9415
9416 if test "${native_win32_build}" = 'yes' ; then
9417 WIN32_NATIVE_BUILD_TRUE=
9418 WIN32_NATIVE_BUILD_FALSE='#'
9419else
9420 WIN32_NATIVE_BUILD_TRUE='#'
9421 WIN32_NATIVE_BUILD_FALSE=
9422fi
9423
9424 if test "${cygwin_build}" = 'yes' ; then
9425 CYGWIN_BUILD_TRUE=
9426 CYGWIN_BUILD_FALSE='#'
9427else
9428 CYGWIN_BUILD_TRUE='#'
9429 CYGWIN_BUILD_FALSE=
9430fi
9431
9432 if test "x${CC}" = 'xcl.exe' ; then
9433 USING_CL_TRUE=
9434 USING_CL_FALSE='#'
9435else
9436 USING_CL_TRUE='#'
9437 USING_CL_FALSE=
9438fi
9439
cristy3ed852e2009-09-05 21:47:34 +00009440
9441WinPathScript="${srcdirfull}/winpath.sh"
9442
9443
9444#
9445# Compiler flags tweaks
9446#
9447if test "${GCC}" != "yes"; then
9448 case "${host}" in
9449 *-*-hpux* )
9450 # aCC: HP ANSI C++ B3910B A.03.34
9451 CFLAGS="${CFLAGS} -Wp,-H30000"
9452 if test -n "${CXXFLAGS}"; then
9453 CXXFLAGS='-AA'
9454 else
9455 CXXFLAGS="${CXXFLAGS} -AA"
9456 fi
9457 ;;
9458 *-dec-osf5.* )
9459 # Compaq alphaev68-dec-osf5.1 compiler
9460 if test -n "${CXXFLAGS}"; then
9461 CXXFLAGS='-std strict_ansi -noimplicit_include'
9462 else
9463 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9464 fi
9465 esac
9466fi
9467
9468# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009470$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009471if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009472 $as_echo_n "(cached) " >&6
9473else
9474
9475im_cv_ld_lazyload='none'
9476case "${host}" in
9477 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9478 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9479 im_cv_ld_lazyload='-Wl,-zlazyload'
9480 fi
9481 ;;
9482esac
9483
9484fi
cristy8b350f62009-11-15 23:12:43 +00009485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009486$as_echo "$im_cv_ld_lazyload" >&6; }
9487if test "${im_cv_ld_lazyload}" != 'none' ; then
9488 if test -z "${LDFLAGS}" ; then
9489 LDFLAGS="${im_cv_ld_lazyload}"
9490 else
9491 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9492 fi
9493fi
9494
9495case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009496 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009497 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009498 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009499if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009500 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9501else
9502 build_osxuniversal=no
9503fi
9504
9505
cristyc37574e2013-02-16 01:04:55 +00009506 if test "${build_osxuniversal}" != no ; then
9507 if test "$enable_dependency_tracking" != no ; then
9508 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009509Please re-run configure with these options:
9510 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009511 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009512 fi
9513 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9514 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9515 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009516 fi
9517 ;;
9518esac
9519
cristy0151ae12011-10-28 16:32:29 +00009520#
9521# ARCH specific include directory
9522#
9523
cristy670aa3c2011-11-03 00:54:00 +00009524# Check whether --with-includearch-dir was given.
9525if test "${with_includearch_dir+set}" = set; then :
9526 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009527else
cristy670aa3c2011-11-03 00:54:00 +00009528 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009529fi
9530
9531
cristyd286fd72013-02-24 19:25:33 +00009532eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009533
cristy0151ae12011-10-28 16:32:29 +00009534
9535#
9536# ARCH specific configuration directory
9537#
9538
cristy670aa3c2011-11-03 00:54:00 +00009539# Check whether --with-sharearch-dir was given.
9540if test "${with_sharearch_dir+set}" = set; then :
9541 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009542else
cristy408ebcd2011-11-14 01:36:57 +00009543 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009544fi
9545
9546
cristy670aa3c2011-11-03 00:54:00 +00009547eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009548
cristy0151ae12011-10-28 16:32:29 +00009549
cristy2ec87cc2013-02-18 17:46:50 +00009550# Path to the pkgconfig folder
9551
9552# Check whether --with-pkgconfigdir was given.
9553if test "${with_pkgconfigdir+set}" = set; then :
9554 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9555else
9556 pkgconfigdir='${libdir}/pkgconfig'
9557fi
9558
9559
9560
cristy0151ae12011-10-28 16:32:29 +00009561#
cristy3ed852e2009-09-05 21:47:34 +00009562# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009563#
9564# Find Posix threads library
9565#
cristy3ed852e2009-09-05 21:47:34 +00009566
9567# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009568if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009569 withval=$with_threads; with_threads=$withval
9570else
9571 with_threads='yes'
9572fi
9573
9574
cristy1ae5c992013-07-30 14:55:07 +00009575THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009576have_threads=no
9577if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009578
9579
cristy73bd4a52010-10-05 11:24:23 +00009580ac_ext=c
9581ac_cpp='$CPP $CPPFLAGS'
9582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9584ac_compiler_gnu=$ac_cv_c_compiler_gnu
9585
9586ax_pthread_ok=no
9587
9588# We used to check for pthread.h first, but this fails if pthread.h
9589# requires special compiler flags (e.g. on True64 or Sequent).
9590# It gets checked for in the link test anyway.
9591
9592# First of all, check if the user has set any of the PTHREAD_LIBS,
9593# etcetera environment variables, and if threads linking works using
9594# them:
9595if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9596 save_CFLAGS="$CFLAGS"
9597 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9598 save_LIBS="$LIBS"
9599 LIBS="$PTHREAD_LIBS $LIBS"
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9601$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603/* end confdefs.h. */
9604
9605/* Override any GCC internal prototype to avoid an error.
9606 Use char because int might match the return type of a GCC
9607 builtin and then its argument prototype would still apply. */
9608#ifdef __cplusplus
9609extern "C"
9610#endif
9611char pthread_join ();
9612int
9613main ()
9614{
9615return pthread_join ();
9616 ;
9617 return 0;
9618}
9619_ACEOF
9620if ac_fn_c_try_link "$LINENO"; then :
9621 ax_pthread_ok=yes
9622fi
9623rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9626$as_echo "$ax_pthread_ok" >&6; }
9627 if test x"$ax_pthread_ok" = xno; then
9628 PTHREAD_LIBS=""
9629 PTHREAD_CFLAGS=""
9630 fi
9631 LIBS="$save_LIBS"
9632 CFLAGS="$save_CFLAGS"
9633fi
9634
9635# We must check for the threads library under a number of different
9636# names; the ordering is very important because some systems
9637# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9638# libraries is broken (non-POSIX).
9639
9640# Create a list of thread flags to try. Items starting with a "-" are
9641# C compiler flags, and other items are library names, except for "none"
9642# which indicates that we try without any flags at all, and "pthread-config"
9643# which is a program returning the flags for the Pth emulation library.
9644
cristy2ec87cc2013-02-18 17:46:50 +00009645ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009646
9647# The ordering *is* (sometimes) important. Some notes on the
9648# individual items follow:
9649
9650# pthreads: AIX (must check this before -lpthread)
9651# none: in case threads are in libc; should be tried before -Kthread and
9652# other compiler flags to prevent continual compiler warnings
9653# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9654# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9655# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9656# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9657# -pthreads: Solaris/gcc
9658# -mthreads: Mingw32/gcc, Lynx/gcc
9659# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9660# doesn't hurt to check since this sometimes defines pthreads too;
9661# also defines -D_REENTRANT)
9662# ... -mt is also the pthreads flag for HP/aCC
9663# pthread: Linux, etcetera
9664# --thread-safe: KAI C++
9665# pthread-config: use pthread-config program (for GNU Pth library)
9666
cristy2ec87cc2013-02-18 17:46:50 +00009667case ${host_os} in
9668 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009669
9670 # On Solaris (at least, for some versions), libc contains stubbed
9671 # (non-functional) versions of the pthreads routines, so link-based
9672 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9673 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9674 # a function called by this macro, so we could check for that, but
9675 # who knows whether they'll stub that too in a future libc.) So,
9676 # we'll just look for -pthreads and -lpthread first:
9677
9678 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9679 ;;
9680
cristy2ec87cc2013-02-18 17:46:50 +00009681 darwin*)
cristya316db12011-10-24 00:49:45 +00009682 ax_pthread_flags="-pthread $ax_pthread_flags"
9683 ;;
cristy73bd4a52010-10-05 11:24:23 +00009684esac
9685
cristy17491be2014-06-24 01:10:53 +00009686# Clang doesn't consider unrecognized options an error unless we specify
9687# -Werror. We throw in some extra Clang-specific options to ensure that
9688# this doesn't happen for GCC, which also accepts -Werror.
9689
9690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9691$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9692save_CFLAGS="$CFLAGS"
9693ax_pthread_extra_flags="-Werror"
9694CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696/* end confdefs.h. */
9697int foo(void);
9698int
9699main ()
9700{
9701foo()
9702 ;
9703 return 0;
9704}
9705_ACEOF
9706if ac_fn_c_try_compile "$LINENO"; then :
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9708$as_echo "yes" >&6; }
9709else
9710 ax_pthread_extra_flags=
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9712$as_echo "no" >&6; }
9713fi
9714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715CFLAGS="$save_CFLAGS"
9716
cristy73bd4a52010-10-05 11:24:23 +00009717if test x"$ax_pthread_ok" = xno; then
9718for flag in $ax_pthread_flags; do
9719
9720 case $flag in
9721 none)
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9723$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9724 ;;
9725
9726 -*)
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9728$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9729 PTHREAD_CFLAGS="$flag"
9730 ;;
9731
cristya316db12011-10-24 00:49:45 +00009732 pthread-config)
9733 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009734set dummy pthread-config; ac_word=$2
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009737if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009738 $as_echo_n "(cached) " >&6
9739else
9740 if test -n "$ax_pthread_config"; then
9741 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9742else
9743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744for as_dir in $PATH
9745do
9746 IFS=$as_save_IFS
9747 test -z "$as_dir" && as_dir=.
9748 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009750 ac_cv_prog_ax_pthread_config="yes"
9751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9752 break 2
9753 fi
9754done
9755 done
9756IFS=$as_save_IFS
9757
9758 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9759fi
9760fi
9761ax_pthread_config=$ac_cv_prog_ax_pthread_config
9762if test -n "$ax_pthread_config"; then
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9764$as_echo "$ax_pthread_config" >&6; }
9765else
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767$as_echo "no" >&6; }
9768fi
9769
9770
cristya316db12011-10-24 00:49:45 +00009771 if test x"$ax_pthread_config" = xno; then continue; fi
9772 PTHREAD_CFLAGS="`pthread-config --cflags`"
9773 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9774 ;;
cristy73bd4a52010-10-05 11:24:23 +00009775
9776 *)
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9778$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9779 PTHREAD_LIBS="-l$flag"
9780 ;;
9781 esac
9782
9783 save_LIBS="$LIBS"
9784 save_CFLAGS="$CFLAGS"
9785 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009786 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009787
9788 # Check for various functions. We must include pthread.h,
9789 # since some functions may be macros. (On the Sequent, we
9790 # need a special flag -Kthread to make this header compile.)
9791 # We check for pthread_join because it is in -lpthread on IRIX
9792 # while pthread_create is in libc. We check for pthread_attr_init
9793 # due to DEC craziness with -lpthreads. We check for
9794 # pthread_cleanup_push because it is one of the few pthread
9795 # functions on Solaris that doesn't have a non-functional libc stub.
9796 # We try pthread_create on general principles.
9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798/* end confdefs.h. */
9799#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009800 static void routine(void *a) { a = 0; }
9801 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009802int
9803main ()
9804{
9805pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009806 pthread_create(&th, 0, start_routine, 0);
9807 pthread_join(th, 0);
9808 pthread_attr_init(&attr);
9809 pthread_cleanup_push(routine, 0);
9810 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009811 ;
9812 return 0;
9813}
9814_ACEOF
9815if ac_fn_c_try_link "$LINENO"; then :
9816 ax_pthread_ok=yes
9817fi
9818rm -f core conftest.err conftest.$ac_objext \
9819 conftest$ac_exeext conftest.$ac_ext
9820
9821 LIBS="$save_LIBS"
9822 CFLAGS="$save_CFLAGS"
9823
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9825$as_echo "$ax_pthread_ok" >&6; }
9826 if test "x$ax_pthread_ok" = xyes; then
9827 break;
9828 fi
9829
9830 PTHREAD_LIBS=""
9831 PTHREAD_CFLAGS=""
9832done
9833fi
9834
9835# Various other checks:
9836if test "x$ax_pthread_ok" = xyes; then
9837 save_LIBS="$LIBS"
9838 LIBS="$PTHREAD_LIBS $LIBS"
9839 save_CFLAGS="$CFLAGS"
9840 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9841
9842 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009844$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009845 attr_name=unknown
9846 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009848/* end confdefs.h. */
9849#include <pthread.h>
9850int
9851main ()
9852{
cristya316db12011-10-24 00:49:45 +00009853int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009854 ;
9855 return 0;
9856}
9857_ACEOF
9858if ac_fn_c_try_link "$LINENO"; then :
9859 attr_name=$attr; break
9860fi
9861rm -f core conftest.err conftest.$ac_objext \
9862 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009863 done
cristy73bd4a52010-10-05 11:24:23 +00009864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9865$as_echo "$attr_name" >&6; }
9866 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9867
9868cat >>confdefs.h <<_ACEOF
9869#define PTHREAD_CREATE_JOINABLE $attr_name
9870_ACEOF
9871
9872 fi
9873
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9875$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9876 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009877 case ${host_os} in
9878 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9879 osf* | hpux*) flag="-D_REENTRANT";;
9880 solaris*)
9881 if test "$GCC" = "yes"; then
9882 flag="-D_REENTRANT"
9883 else
cristy17491be2014-06-24 01:10:53 +00009884 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009885 flag="-mt -D_REENTRANT"
9886 fi
9887 ;;
cristy73bd4a52010-10-05 11:24:23 +00009888 esac
cristy17491be2014-06-24 01:10:53 +00009889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9890$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009891 if test "x$flag" != xno; then
9892 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9893 fi
9894
cristya316db12011-10-24 00:49:45 +00009895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9896$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9897if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9898 $as_echo_n "(cached) " >&6
9899else
9900
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +00009903#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009904int
9905main ()
9906{
9907int i = PTHREAD_PRIO_INHERIT;
9908 ;
9909 return 0;
9910}
9911_ACEOF
9912if ac_fn_c_try_link "$LINENO"; then :
9913 ax_cv_PTHREAD_PRIO_INHERIT=yes
9914else
9915 ax_cv_PTHREAD_PRIO_INHERIT=no
9916fi
9917rm -f core conftest.err conftest.$ac_objext \
9918 conftest$ac_exeext conftest.$ac_ext
9919
9920fi
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9922$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9923 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9924
9925$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9926
9927fi
9928
cristy73bd4a52010-10-05 11:24:23 +00009929 LIBS="$save_LIBS"
9930 CFLAGS="$save_CFLAGS"
9931
cristy23493c42013-04-11 16:04:59 +00009932 # More AIX lossage: compile with *_r variant
9933 if test "x$GCC" != xyes; then
9934 case $host_os in
9935 aix*)
9936 case "x/$CC" in #(
9937 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9938 #handle absolute path differently from PATH based program lookup
9939 case "x$CC" in #(
9940 x/*) :
9941 if as_fn_executable_p ${CC}_r; then :
9942 PTHREAD_CC="${CC}_r"
9943fi ;; #(
9944 *) :
9945 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009946do
9947 # Extract the first word of "$ac_prog", so it can be a program name with args.
9948set dummy $ac_prog; ac_word=$2
9949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009951if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009952 $as_echo_n "(cached) " >&6
9953else
9954 if test -n "$PTHREAD_CC"; then
9955 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9956else
9957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958for as_dir in $PATH
9959do
9960 IFS=$as_save_IFS
9961 test -z "$as_dir" && as_dir=.
9962 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009964 ac_cv_prog_PTHREAD_CC="$ac_prog"
9965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9966 break 2
9967 fi
9968done
9969 done
9970IFS=$as_save_IFS
9971
9972fi
9973fi
9974PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9975if test -n "$PTHREAD_CC"; then
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9977$as_echo "$PTHREAD_CC" >&6; }
9978else
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980$as_echo "no" >&6; }
9981fi
9982
9983
9984 test -n "$PTHREAD_CC" && break
9985done
cristy23493c42013-04-11 16:04:59 +00009986test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9987 ;;
9988esac ;; #(
9989 *) :
9990 ;;
9991esac
9992 ;;
9993 esac
cristya316db12011-10-24 00:49:45 +00009994 fi
cristy73bd4a52010-10-05 11:24:23 +00009995fi
9996
cristy23493c42013-04-11 16:04:59 +00009997test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9998
cristy73bd4a52010-10-05 11:24:23 +00009999
10000
10001
10002
10003# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10004if test x"$ax_pthread_ok" = xyes; then
10005
10006$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10007
10008 :
10009else
10010 ax_pthread_ok=no
10011
10012fi
10013ac_ext=c
10014ac_cpp='$CPP $CPPFLAGS'
10015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10017ac_compiler_gnu=$ac_cv_c_compiler_gnu
10018
10019
cristy7acf8fb2010-09-23 19:58:53 +000010020 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000010021 have_threads=yes
10022 DEF_THREAD="$PTHREAD_CFLAGS"
10023 CFLAGS="$CFLAGS $DEF_THREAD"
10024 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +000010025 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000010026 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +000010027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
cristy3ed852e2009-09-05 21:47:34 +000010028$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
10029 CC="$PTHREAD_CC"
10030 fi
cristy55bf91c2010-09-24 00:29:41 +000010031
10032$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
10033
cristy3ed852e2009-09-05 21:47:34 +000010034 fi
10035fi
cristy1ae5c992013-07-30 14:55:07 +000010036LIBS="$LIBS $THREAD_LIBS"
10037
cristy3ed852e2009-09-05 21:47:34 +000010038
10039# Enable support for OpenMP
10040if test "$have_threads" != 'yes'; then
10041 ac_cv_prog_c_openmp=unsupported
10042fi
10043
10044 OPENMP_CFLAGS=
10045 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000010046if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010047 enableval=$enable_openmp;
10048fi
10049
10050 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +000010051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010052$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010053if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010054 $as_echo_n "(cached) " >&6
10055else
cristy8b350f62009-11-15 23:12:43 +000010056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010058
10059#ifndef _OPENMP
10060 choke me
10061#endif
10062#include <omp.h>
10063int main () { return omp_get_num_threads (); }
10064
10065_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010066if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010067 ac_cv_prog_c_openmp='none needed'
10068else
cristy8b350f62009-11-15 23:12:43 +000010069 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000010070 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
10071 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000010072 ac_save_CFLAGS=$CFLAGS
10073 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000010074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010076
10077#ifndef _OPENMP
10078 choke me
10079#endif
10080#include <omp.h>
10081int main () { return omp_get_num_threads (); }
10082
10083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010084if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010085 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000010086fi
cristy8b350f62009-11-15 23:12:43 +000010087rm -f core conftest.err conftest.$ac_objext \
10088 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010089 CFLAGS=$ac_save_CFLAGS
10090 if test "$ac_cv_prog_c_openmp" != unsupported; then
10091 break
10092 fi
10093 done
10094fi
cristy8b350f62009-11-15 23:12:43 +000010095rm -f core conftest.err conftest.$ac_objext \
10096 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010097fi
cristy8b350f62009-11-15 23:12:43 +000010098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010099$as_echo "$ac_cv_prog_c_openmp" >&6; }
10100 case $ac_cv_prog_c_openmp in #(
10101 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000010102 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000010103 *)
cristy8b350f62009-11-15 23:12:43 +000010104 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000010105 esac
10106 fi
10107
10108
10109CFLAGS="$OPENMP_CFLAGS $CFLAGS"
10110MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
10111
cristy391f1ce2010-09-09 17:23:28 +000010112if test "$enable_openmp" != no; then
10113 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
10114 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
10115 fi
10116fi
cristy3ed852e2009-09-05 21:47:34 +000010117
cristy736173a2009-09-20 21:18:22 +000010118# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +000010119
10120
cristy73bd4a52010-10-05 11:24:23 +000010121ac_ext=c
10122ac_cpp='$CPP $CPPFLAGS'
10123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10125ac_compiler_gnu=$ac_cv_c_compiler_gnu
10126
10127ax_pthread_ok=no
10128
10129# We used to check for pthread.h first, but this fails if pthread.h
10130# requires special compiler flags (e.g. on True64 or Sequent).
10131# It gets checked for in the link test anyway.
10132
10133# First of all, check if the user has set any of the PTHREAD_LIBS,
10134# etcetera environment variables, and if threads linking works using
10135# them:
10136if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
10137 save_CFLAGS="$CFLAGS"
10138 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10139 save_LIBS="$LIBS"
10140 LIBS="$PTHREAD_LIBS $LIBS"
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
10142$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144/* end confdefs.h. */
10145
10146/* Override any GCC internal prototype to avoid an error.
10147 Use char because int might match the return type of a GCC
10148 builtin and then its argument prototype would still apply. */
10149#ifdef __cplusplus
10150extern "C"
10151#endif
10152char pthread_join ();
10153int
10154main ()
10155{
10156return pthread_join ();
10157 ;
10158 return 0;
10159}
10160_ACEOF
10161if ac_fn_c_try_link "$LINENO"; then :
10162 ax_pthread_ok=yes
10163fi
10164rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10167$as_echo "$ax_pthread_ok" >&6; }
10168 if test x"$ax_pthread_ok" = xno; then
10169 PTHREAD_LIBS=""
10170 PTHREAD_CFLAGS=""
10171 fi
10172 LIBS="$save_LIBS"
10173 CFLAGS="$save_CFLAGS"
10174fi
10175
10176# We must check for the threads library under a number of different
10177# names; the ordering is very important because some systems
10178# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10179# libraries is broken (non-POSIX).
10180
10181# Create a list of thread flags to try. Items starting with a "-" are
10182# C compiler flags, and other items are library names, except for "none"
10183# which indicates that we try without any flags at all, and "pthread-config"
10184# which is a program returning the flags for the Pth emulation library.
10185
cristy2ec87cc2013-02-18 17:46:50 +000010186ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000010187
10188# The ordering *is* (sometimes) important. Some notes on the
10189# individual items follow:
10190
10191# pthreads: AIX (must check this before -lpthread)
10192# none: in case threads are in libc; should be tried before -Kthread and
10193# other compiler flags to prevent continual compiler warnings
10194# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10195# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10196# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10197# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10198# -pthreads: Solaris/gcc
10199# -mthreads: Mingw32/gcc, Lynx/gcc
10200# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10201# doesn't hurt to check since this sometimes defines pthreads too;
10202# also defines -D_REENTRANT)
10203# ... -mt is also the pthreads flag for HP/aCC
10204# pthread: Linux, etcetera
10205# --thread-safe: KAI C++
10206# pthread-config: use pthread-config program (for GNU Pth library)
10207
cristy2ec87cc2013-02-18 17:46:50 +000010208case ${host_os} in
10209 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000010210
10211 # On Solaris (at least, for some versions), libc contains stubbed
10212 # (non-functional) versions of the pthreads routines, so link-based
10213 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
10214 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10215 # a function called by this macro, so we could check for that, but
10216 # who knows whether they'll stub that too in a future libc.) So,
10217 # we'll just look for -pthreads and -lpthread first:
10218
10219 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
10220 ;;
10221
cristy2ec87cc2013-02-18 17:46:50 +000010222 darwin*)
cristya316db12011-10-24 00:49:45 +000010223 ax_pthread_flags="-pthread $ax_pthread_flags"
10224 ;;
cristy73bd4a52010-10-05 11:24:23 +000010225esac
10226
cristy17491be2014-06-24 01:10:53 +000010227# Clang doesn't consider unrecognized options an error unless we specify
10228# -Werror. We throw in some extra Clang-specific options to ensure that
10229# this doesn't happen for GCC, which also accepts -Werror.
10230
10231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
10232$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
10233save_CFLAGS="$CFLAGS"
10234ax_pthread_extra_flags="-Werror"
10235CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
10236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237/* end confdefs.h. */
10238int foo(void);
10239int
10240main ()
10241{
10242foo()
10243 ;
10244 return 0;
10245}
10246_ACEOF
10247if ac_fn_c_try_compile "$LINENO"; then :
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10249$as_echo "yes" >&6; }
10250else
10251 ax_pthread_extra_flags=
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253$as_echo "no" >&6; }
10254fi
10255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10256CFLAGS="$save_CFLAGS"
10257
cristy73bd4a52010-10-05 11:24:23 +000010258if test x"$ax_pthread_ok" = xno; then
10259for flag in $ax_pthread_flags; do
10260
10261 case $flag in
10262 none)
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10264$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10265 ;;
10266
10267 -*)
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10269$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10270 PTHREAD_CFLAGS="$flag"
10271 ;;
10272
cristya316db12011-10-24 00:49:45 +000010273 pthread-config)
10274 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010275set dummy pthread-config; ac_word=$2
10276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10277$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010278if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010279 $as_echo_n "(cached) " >&6
10280else
10281 if test -n "$ax_pthread_config"; then
10282 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10283else
10284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10285for as_dir in $PATH
10286do
10287 IFS=$as_save_IFS
10288 test -z "$as_dir" && as_dir=.
10289 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010291 ac_cv_prog_ax_pthread_config="yes"
10292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10293 break 2
10294 fi
10295done
10296 done
10297IFS=$as_save_IFS
10298
10299 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10300fi
10301fi
10302ax_pthread_config=$ac_cv_prog_ax_pthread_config
10303if test -n "$ax_pthread_config"; then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10305$as_echo "$ax_pthread_config" >&6; }
10306else
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10308$as_echo "no" >&6; }
10309fi
10310
10311
cristya316db12011-10-24 00:49:45 +000010312 if test x"$ax_pthread_config" = xno; then continue; fi
10313 PTHREAD_CFLAGS="`pthread-config --cflags`"
10314 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10315 ;;
cristy73bd4a52010-10-05 11:24:23 +000010316
10317 *)
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10319$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10320 PTHREAD_LIBS="-l$flag"
10321 ;;
10322 esac
10323
10324 save_LIBS="$LIBS"
10325 save_CFLAGS="$CFLAGS"
10326 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010327 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010328
10329 # Check for various functions. We must include pthread.h,
10330 # since some functions may be macros. (On the Sequent, we
10331 # need a special flag -Kthread to make this header compile.)
10332 # We check for pthread_join because it is in -lpthread on IRIX
10333 # while pthread_create is in libc. We check for pthread_attr_init
10334 # due to DEC craziness with -lpthreads. We check for
10335 # pthread_cleanup_push because it is one of the few pthread
10336 # functions on Solaris that doesn't have a non-functional libc stub.
10337 # We try pthread_create on general principles.
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339/* end confdefs.h. */
10340#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010341 static void routine(void *a) { a = 0; }
10342 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010343int
10344main ()
10345{
10346pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010347 pthread_create(&th, 0, start_routine, 0);
10348 pthread_join(th, 0);
10349 pthread_attr_init(&attr);
10350 pthread_cleanup_push(routine, 0);
10351 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010352 ;
10353 return 0;
10354}
10355_ACEOF
10356if ac_fn_c_try_link "$LINENO"; then :
10357 ax_pthread_ok=yes
10358fi
10359rm -f core conftest.err conftest.$ac_objext \
10360 conftest$ac_exeext conftest.$ac_ext
10361
10362 LIBS="$save_LIBS"
10363 CFLAGS="$save_CFLAGS"
10364
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10366$as_echo "$ax_pthread_ok" >&6; }
10367 if test "x$ax_pthread_ok" = xyes; then
10368 break;
10369 fi
10370
10371 PTHREAD_LIBS=""
10372 PTHREAD_CFLAGS=""
10373done
10374fi
10375
10376# Various other checks:
10377if test "x$ax_pthread_ok" = xyes; then
10378 save_LIBS="$LIBS"
10379 LIBS="$PTHREAD_LIBS $LIBS"
10380 save_CFLAGS="$CFLAGS"
10381 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10382
10383 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010385$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010386 attr_name=unknown
10387 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010389/* end confdefs.h. */
10390#include <pthread.h>
10391int
10392main ()
10393{
cristya316db12011-10-24 00:49:45 +000010394int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010395 ;
10396 return 0;
10397}
10398_ACEOF
10399if ac_fn_c_try_link "$LINENO"; then :
10400 attr_name=$attr; break
10401fi
10402rm -f core conftest.err conftest.$ac_objext \
10403 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010404 done
cristy73bd4a52010-10-05 11:24:23 +000010405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10406$as_echo "$attr_name" >&6; }
10407 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10408
10409cat >>confdefs.h <<_ACEOF
10410#define PTHREAD_CREATE_JOINABLE $attr_name
10411_ACEOF
10412
10413 fi
10414
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10416$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10417 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010418 case ${host_os} in
10419 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10420 osf* | hpux*) flag="-D_REENTRANT";;
10421 solaris*)
10422 if test "$GCC" = "yes"; then
10423 flag="-D_REENTRANT"
10424 else
cristy17491be2014-06-24 01:10:53 +000010425 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010426 flag="-mt -D_REENTRANT"
10427 fi
10428 ;;
cristy73bd4a52010-10-05 11:24:23 +000010429 esac
cristy17491be2014-06-24 01:10:53 +000010430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10431$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010432 if test "x$flag" != xno; then
10433 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10434 fi
10435
cristya316db12011-10-24 00:49:45 +000010436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10437$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10438if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10439 $as_echo_n "(cached) " >&6
10440else
10441
10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010444#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010445int
10446main ()
10447{
10448int i = PTHREAD_PRIO_INHERIT;
10449 ;
10450 return 0;
10451}
10452_ACEOF
10453if ac_fn_c_try_link "$LINENO"; then :
10454 ax_cv_PTHREAD_PRIO_INHERIT=yes
10455else
10456 ax_cv_PTHREAD_PRIO_INHERIT=no
10457fi
10458rm -f core conftest.err conftest.$ac_objext \
10459 conftest$ac_exeext conftest.$ac_ext
10460
10461fi
10462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10463$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10464 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10465
10466$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10467
10468fi
10469
cristy73bd4a52010-10-05 11:24:23 +000010470 LIBS="$save_LIBS"
10471 CFLAGS="$save_CFLAGS"
10472
cristy23493c42013-04-11 16:04:59 +000010473 # More AIX lossage: compile with *_r variant
10474 if test "x$GCC" != xyes; then
10475 case $host_os in
10476 aix*)
10477 case "x/$CC" in #(
10478 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10479 #handle absolute path differently from PATH based program lookup
10480 case "x$CC" in #(
10481 x/*) :
10482 if as_fn_executable_p ${CC}_r; then :
10483 PTHREAD_CC="${CC}_r"
10484fi ;; #(
10485 *) :
10486 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010487do
10488 # Extract the first word of "$ac_prog", so it can be a program name with args.
10489set dummy $ac_prog; ac_word=$2
10490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10491$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010492if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010493 $as_echo_n "(cached) " >&6
10494else
10495 if test -n "$PTHREAD_CC"; then
10496 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10497else
10498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10499for as_dir in $PATH
10500do
10501 IFS=$as_save_IFS
10502 test -z "$as_dir" && as_dir=.
10503 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010505 ac_cv_prog_PTHREAD_CC="$ac_prog"
10506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10507 break 2
10508 fi
10509done
10510 done
10511IFS=$as_save_IFS
10512
10513fi
10514fi
10515PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10516if test -n "$PTHREAD_CC"; then
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10518$as_echo "$PTHREAD_CC" >&6; }
10519else
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10521$as_echo "no" >&6; }
10522fi
10523
10524
10525 test -n "$PTHREAD_CC" && break
10526done
cristy23493c42013-04-11 16:04:59 +000010527test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10528 ;;
10529esac ;; #(
10530 *) :
10531 ;;
10532esac
10533 ;;
10534 esac
cristya316db12011-10-24 00:49:45 +000010535 fi
cristy73bd4a52010-10-05 11:24:23 +000010536fi
10537
cristy23493c42013-04-11 16:04:59 +000010538test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10539
cristy73bd4a52010-10-05 11:24:23 +000010540
10541
10542
10543
10544# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10545if test x"$ax_pthread_ok" = xyes; then
10546
10547$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10548
10549 :
10550else
10551 ax_pthread_ok=no
10552
10553fi
10554ac_ext=c
10555ac_cpp='$CPP $CPPFLAGS'
10556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10558ac_compiler_gnu=$ac_cv_c_compiler_gnu
10559
10560
10561
10562# Check whether --enable-opencl was given.
10563if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010564 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010565else
cristy48794642012-09-02 15:19:08 +000010566 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010567fi
10568
10569
cristy48794642012-09-02 15:19:08 +000010570if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010571 ac_ext=c
10572ac_cpp='$CPP $CPPFLAGS'
10573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10575ac_compiler_gnu=$ac_cv_c_compiler_gnu
10576
cristy75314cc2012-09-15 23:08:29 +000010577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10578$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10579if ${ax_cv_c_compiler_ms+:} false; then :
10580 $as_echo_n "(cached) " >&6
10581else
10582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10583/* end confdefs.h. */
10584
10585int
10586main ()
10587{
10588#ifndef _MSC_VER
10589 choke me
10590#endif
10591
10592 ;
10593 return 0;
10594}
10595_ACEOF
10596if ac_fn_c_try_compile "$LINENO"; then :
10597 ax_compiler_ms=yes
10598else
10599 ax_compiler_ms=no
10600fi
10601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602ax_cv_c_compiler_ms=$ax_compiler_ms
10603
10604fi
10605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10606$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010607 if test X$ax_compiler_ms = Xno; then :
10608 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10609fi
10610
10611 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010612 ax_save_CL_CFLAGS=$CL_CFLAGS
10613
10614 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010615 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10616 for ac_header in CL/cl.h OpenCL/cl.h
10617do :
10618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10619ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010620if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010621 cat >>confdefs.h <<_ACEOF
10622#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10623_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010624 found_opencl_header='yes'
10625 break;
10626else
10627 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010628fi
10629
10630done
10631
cristyfdc7d122013-08-17 20:46:45 +000010632
10633 if test X$found_opencl_header = Xno; then :
10634 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10635 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10636 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10637 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10638 for ac_header in CL/cl.h OpenCL/cl.h
10639do :
10640 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10641ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10642if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10643 cat >>confdefs.h <<_ACEOF
10644#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10645_ACEOF
10646 found_opencl_header='yes'
10647 break;
10648else
10649 found_opencl_header='no'
10650fi
10651
10652done
10653
10654
10655fi
10656
10657 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010658
10659 for ac_header in windows.h
10660do :
10661 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010662if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010663 cat >>confdefs.h <<_ACEOF
10664#define HAVE_WINDOWS_H 1
10665_ACEOF
10666
10667fi
10668
10669done
10670
10671
10672
10673
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10675$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010676if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010677 $as_echo_n "(cached) " >&6
10678else
10679 ax_cv_check_cl_libcl=no
10680 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010681 x86_64) ax_check_cl_libdir=lib64
10682 ax_check_cl_amd_libdir=x86_64
10683 ;;
10684 *) ax_check_cl_libdir=lib
10685 ax_check_cl_amd_libdir=x86
10686 ;;
cristy73bd4a52010-10-05 11:24:23 +000010687 esac
10688 ax_save_CPPFLAGS=$CPPFLAGS
10689 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10690 ax_save_LIBS=$LIBS
10691 LIBS=""
10692 ax_check_libs="-lOpenCL -lCL -lclparser"
10693 for ax_lib in $ax_check_libs; do
10694 if test X$ax_compiler_ms = Xyes; then :
10695 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10696else
10697 ax_try_lib=$ax_lib
10698fi
10699 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701/* end confdefs.h. */
10702
10703 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10704 # include <windows.h>
10705 # endif
10706 # ifdef HAVE_CL_CL_H
10707 # include <CL/cl.h>
10708 # elif defined(HAVE_OPENCL_CL_H)
10709 # include <OpenCL/cl.h>
10710 # else
10711 # error no CL.h
10712 # endif
10713int
10714main ()
10715{
10716clCreateContextFromType(0,0,0,0,0)
10717 ;
10718 return 0;
10719}
10720_ACEOF
10721if ac_fn_c_try_link "$LINENO"; then :
10722 ax_cv_check_cl_libcl=$ax_try_lib; break
10723else
10724 ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS"
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726/* end confdefs.h. */
10727
10728 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10729 # include <windows.h>
10730 # endif
10731 # ifdef HAVE_CL_CL_H
10732 # include <CL/cl.h>
10733 # elif defined(HAVE_OPENCL_CL_H)
10734 # include <OpenCL/cl.h>
10735 # else
10736 # error no CL.h
10737 # endif
10738int
10739main ()
10740{
10741clCreateContextFromType(0,0,0,0,0)
10742 ;
10743 return 0;
10744}
10745_ACEOF
10746if ac_fn_c_try_link "$LINENO"; then :
10747 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10748else
cristy78c5a0c2010-12-04 20:00:59 +000010749 ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
cristy73bd4a52010-10-05 11:24:23 +000010750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751/* end confdefs.h. */
10752
10753 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10754 # include <windows.h>
10755 # endif
10756 # ifdef HAVE_CL_CL_H
10757 # include <CL/cl.h>
10758 # elif defined(HAVE_OPENCL_CL_H)
10759 # include <OpenCL/cl.h>
10760 # else
10761 # error no CL.h
10762 # endif
10763int
10764main ()
10765{
10766clCreateContextFromType(0,0,0,0,0)
10767 ;
10768 return 0;
10769}
10770_ACEOF
10771if ac_fn_c_try_link "$LINENO"; then :
10772 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010773else
10774 ax_check_cl_amd_flags="-L$AMDAPPSDKROOT/lib/$ax_check_cl_amd_libdir" LIBS="$ax_try_lib $ax_check_cl_amd_flags $CL_LIBS $ax_save_LIBS"
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776/* end confdefs.h. */
10777
10778 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10779 # include <windows.h>
10780 # endif
10781 # ifdef HAVE_CL_CL_H
10782 # include <CL/cl.h>
10783 # elif defined(HAVE_OPENCL_CL_H)
10784 # include <OpenCL/cl.h>
10785 # else
10786 # error no CL.h
10787 # endif
10788int
10789main ()
10790{
10791clCreateContextFromType(0,0,0,0,0)
10792 ;
10793 return 0;
10794}
10795_ACEOF
10796if ac_fn_c_try_link "$LINENO"; then :
10797 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10798
10799fi
10800rm -f core conftest.err conftest.$ac_objext \
10801 conftest$ac_exeext conftest.$ac_ext
10802
10803
cristy73bd4a52010-10-05 11:24:23 +000010804fi
10805rm -f core conftest.err conftest.$ac_objext \
10806 conftest$ac_exeext conftest.$ac_ext
10807fi
10808rm -f core conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
10810fi
10811rm -f core conftest.err conftest.$ac_objext \
10812 conftest$ac_exeext conftest.$ac_ext
10813 done
10814
cristyc3f8b8e2011-12-22 14:55:16 +000010815 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010816 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818/* end confdefs.h. */
10819
10820 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10821 # include <windows.h>
10822 # endif
10823 # ifdef HAVE_CL_CL_H
10824 # include <CL/cl.h>
10825 # elif defined(HAVE_OPENCL_CL_H)
10826 # include <OpenCL/cl.h>
10827 # else
10828 # error no CL.h
10829 # endif
10830int
10831main ()
10832{
10833clCreateContextFromType(0,0,0,0,0)
10834 ;
10835 return 0;
10836}
10837_ACEOF
10838if ac_fn_c_try_link "$LINENO"; then :
10839 ax_cv_check_cl_libcl=$LIBS
10840fi
10841rm -f core conftest.err conftest.$ac_objext \
10842 conftest$ac_exeext conftest.$ac_ext
10843fi
10844
10845 LIBS=$ax_save_LIBS
10846 CPPFLAGS=$ax_save_CPPFLAGS
10847fi
10848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10849$as_echo "$ax_cv_check_cl_libcl" >&6; }
10850
10851 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10852 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10853else
10854 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10855$as_echo "#define _OPENCL 1" >>confdefs.h
10856
10857fi
10858 ac_ext=c
10859ac_cpp='$CPP $CPPFLAGS'
10860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10862ac_compiler_gnu=$ac_cv_c_compiler_gnu
10863
10864fi
10865
10866
10867
cristy0c832c62014-03-07 22:21:04 +000010868#remove static link on Linux
10869CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10870
cristy73bd4a52010-10-05 11:24:23 +000010871
cristyc7083c12009-10-14 03:16:55 +000010872CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010873CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010874LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010875
cristy391f1ce2010-09-09 17:23:28 +000010876if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010877 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010878 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10879 fi
cristyfd9dcd42010-08-08 18:07:02 +000010880fi
cristy2e8b51d2009-10-17 18:26:15 +000010881
cristy3ed852e2009-09-05 21:47:34 +000010882########
10883#
10884# Check for large file support
10885#
10886########
10887# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010888if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010889 enableval=$enable_largefile;
10890fi
10891
10892if test "$enable_largefile" != no; then
10893
cristy8b350f62009-11-15 23:12:43 +000010894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010895$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010896if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010897 $as_echo_n "(cached) " >&6
10898else
10899 ac_cv_sys_largefile_CC=no
10900 if test "$GCC" != yes; then
10901 ac_save_CC=$CC
10902 while :; do
10903 # IRIX 6.2 and later do not support large files by default,
10904 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010906/* end confdefs.h. */
10907#include <sys/types.h>
10908 /* Check that off_t can represent 2**63 - 1 correctly.
10909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10910 since some C++ compilers masquerading as C compilers
10911 incorrectly reject 9223372036854775807. */
10912#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10914 && LARGE_OFF_T % 2147483647 == 1)
10915 ? 1 : -1];
10916int
10917main ()
10918{
10919
10920 ;
10921 return 0;
10922}
10923_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010924 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010925 break
cristy3ed852e2009-09-05 21:47:34 +000010926fi
cristy3ed852e2009-09-05 21:47:34 +000010927rm -f core conftest.err conftest.$ac_objext
10928 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010929 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010930 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010931fi
cristy3ed852e2009-09-05 21:47:34 +000010932rm -f core conftest.err conftest.$ac_objext
10933 break
10934 done
10935 CC=$ac_save_CC
10936 rm -f conftest.$ac_ext
10937 fi
10938fi
cristy8b350f62009-11-15 23:12:43 +000010939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010940$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10941 if test "$ac_cv_sys_largefile_CC" != no; then
10942 CC=$CC$ac_cv_sys_largefile_CC
10943 fi
10944
cristy8b350f62009-11-15 23:12:43 +000010945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010946$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010947if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010948 $as_echo_n "(cached) " >&6
10949else
10950 while :; do
cristy8b350f62009-11-15 23:12:43 +000010951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010952/* end confdefs.h. */
10953#include <sys/types.h>
10954 /* Check that off_t can represent 2**63 - 1 correctly.
10955 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10956 since some C++ compilers masquerading as C compilers
10957 incorrectly reject 9223372036854775807. */
10958#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10959 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10960 && LARGE_OFF_T % 2147483647 == 1)
10961 ? 1 : -1];
10962int
10963main ()
10964{
10965
10966 ;
10967 return 0;
10968}
10969_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010970if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010971 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010972fi
cristy3ed852e2009-09-05 21:47:34 +000010973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010975/* end confdefs.h. */
10976#define _FILE_OFFSET_BITS 64
10977#include <sys/types.h>
10978 /* Check that off_t can represent 2**63 - 1 correctly.
10979 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10980 since some C++ compilers masquerading as C compilers
10981 incorrectly reject 9223372036854775807. */
10982#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10983 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10984 && LARGE_OFF_T % 2147483647 == 1)
10985 ? 1 : -1];
10986int
10987main ()
10988{
10989
10990 ;
10991 return 0;
10992}
10993_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010994if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010995 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010996fi
cristy3ed852e2009-09-05 21:47:34 +000010997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10998 ac_cv_sys_file_offset_bits=unknown
10999 break
11000done
11001fi
cristy8b350f62009-11-15 23:12:43 +000011002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000011003$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11004case $ac_cv_sys_file_offset_bits in #(
11005 no | unknown) ;;
11006 *)
11007cat >>confdefs.h <<_ACEOF
11008#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11009_ACEOF
11010;;
11011esac
11012rm -rf conftest*
11013 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000011014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011015$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011016if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011017 $as_echo_n "(cached) " >&6
11018else
11019 while :; do
cristy8b350f62009-11-15 23:12:43 +000011020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011021/* end confdefs.h. */
11022#include <sys/types.h>
11023 /* Check that off_t can represent 2**63 - 1 correctly.
11024 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11025 since some C++ compilers masquerading as C compilers
11026 incorrectly reject 9223372036854775807. */
11027#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11028 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11029 && LARGE_OFF_T % 2147483647 == 1)
11030 ? 1 : -1];
11031int
11032main ()
11033{
11034
11035 ;
11036 return 0;
11037}
11038_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011039if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011040 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000011041fi
cristy3ed852e2009-09-05 21:47:34 +000011042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011044/* end confdefs.h. */
11045#define _LARGE_FILES 1
11046#include <sys/types.h>
11047 /* Check that off_t can represent 2**63 - 1 correctly.
11048 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11049 since some C++ compilers masquerading as C compilers
11050 incorrectly reject 9223372036854775807. */
11051#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11052 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11053 && LARGE_OFF_T % 2147483647 == 1)
11054 ? 1 : -1];
11055int
11056main ()
11057{
11058
11059 ;
11060 return 0;
11061}
11062_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011063if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011064 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000011065fi
cristy3ed852e2009-09-05 21:47:34 +000011066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067 ac_cv_sys_large_files=unknown
11068 break
11069done
11070fi
cristy8b350f62009-11-15 23:12:43 +000011071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011072$as_echo "$ac_cv_sys_large_files" >&6; }
11073case $ac_cv_sys_large_files in #(
11074 no | unknown) ;;
11075 *)
11076cat >>confdefs.h <<_ACEOF
11077#define _LARGE_FILES $ac_cv_sys_large_files
11078_ACEOF
11079;;
11080esac
11081rm -rf conftest*
11082 fi
cristy14fefe52012-05-21 00:59:18 +000011083
11084
cristy3ed852e2009-09-05 21:47:34 +000011085fi
11086
cristy8b350f62009-11-15 23:12:43 +000011087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011088$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011089if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011090 $as_echo_n "(cached) " >&6
11091else
11092 while :; do
cristy8b350f62009-11-15 23:12:43 +000011093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011094/* end confdefs.h. */
11095#include <sys/types.h> /* for off_t */
11096 #include <stdio.h>
11097int
11098main ()
11099{
11100int (*fp) (FILE *, off_t, int) = fseeko;
11101 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11102 ;
11103 return 0;
11104}
11105_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011106if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011107 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000011108fi
cristy8b350f62009-11-15 23:12:43 +000011109rm -f core conftest.err conftest.$ac_objext \
11110 conftest$ac_exeext conftest.$ac_ext
11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011112/* end confdefs.h. */
11113#define _LARGEFILE_SOURCE 1
11114#include <sys/types.h> /* for off_t */
11115 #include <stdio.h>
11116int
11117main ()
11118{
11119int (*fp) (FILE *, off_t, int) = fseeko;
11120 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11121 ;
11122 return 0;
11123}
11124_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011125if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011126 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000011127fi
cristy8b350f62009-11-15 23:12:43 +000011128rm -f core conftest.err conftest.$ac_objext \
11129 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011130 ac_cv_sys_largefile_source=unknown
11131 break
11132done
11133fi
cristy8b350f62009-11-15 23:12:43 +000011134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000011135$as_echo "$ac_cv_sys_largefile_source" >&6; }
11136case $ac_cv_sys_largefile_source in #(
11137 no | unknown) ;;
11138 *)
11139cat >>confdefs.h <<_ACEOF
11140#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11141_ACEOF
11142;;
11143esac
11144rm -rf conftest*
11145
11146# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11147# in glibc 2.1.3, but that breaks too many other things.
11148# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11149if test $ac_cv_sys_largefile_source != unknown; then
11150
cristy8b350f62009-11-15 23:12:43 +000011151$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011152
11153fi
11154
11155LFS_CPPFLAGS=''
11156if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000011157 case $ac_cv_sys_file_offset_bits in
11158 no)
11159 # nothing to do here as the host supports LFS fine
11160 ;;
11161 unknown)
cristy8b350f62009-11-15 23:12:43 +000011162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000011163$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011164 if test "$cross_compiling" = yes; then :
11165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000011166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000011167as_fn_error $? "cannot run test program while cross compiling
11168See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000011169else
cristy8b350f62009-11-15 23:12:43 +000011170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000011172#include <unistd.h>
11173 main () {
11174 exit(!(sizeof(off_t) == 8));
11175 }
cristyda16f162011-02-19 23:52:17 +000011176int
11177main ()
11178{
11179
11180 ;
11181 return 0;
11182}
cristy3ed852e2009-09-05 21:47:34 +000011183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011184if ac_fn_c_try_run "$LINENO"; then :
11185 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011186
cristyad38abe2012-12-23 23:03:21 +000011187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11188$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011189else
cristyad38abe2012-12-23 23:03:21 +000011190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011192fi
cristy8b350f62009-11-15 23:12:43 +000011193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11194 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011195fi
11196
cristyc1e0cc12011-09-21 16:41:16 +000011197 ;;
11198 *)
11199 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11200 ;;
11201 esac
cristy3ed852e2009-09-05 21:47:34 +000011202 if test "$ac_cv_sys_large_files" != 'no'; then
11203 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
11204 fi
11205 if test "$ac_cv_sys_largefile_source" != 'no'; then
11206 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
11207 fi
11208fi
11209
11210
cristy3ed852e2009-09-05 21:47:34 +000011211# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000011212enable_dlopen=yes
11213
11214
11215
11216case `pwd` in
11217 *\ * | *\ *)
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11219$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11220esac
11221
11222
11223
cristy99bd5232011-12-07 14:38:20 +000011224macro_version='2.4.2'
11225macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000011226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239ltmain="$ac_aux_dir/ltmain.sh"
11240
cristy0c60a692010-11-04 01:09:47 +000011241# Backslashify metacharacters that are still active within
11242# double-quoted strings.
11243sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11244
11245# Same as above, but do not quote variable references.
11246double_quote_subst='s/\(["`\\]\)/\\\1/g'
11247
11248# Sed substitution to delay expansion of an escaped shell variable in a
11249# double_quote_subst'ed string.
11250delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11251
11252# Sed substitution to delay expansion of an escaped single quote.
11253delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11254
11255# Sed substitution to avoid accidental globbing in evaled expressions
11256no_glob_subst='s/\*/\\\*/g'
11257
cristy73bd4a52010-10-05 11:24:23 +000011258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11259$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011260if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011261 $as_echo_n "(cached) " >&6
11262else
11263 if test -n "$NM"; then
11264 # Let the user override the test.
11265 lt_cv_path_NM="$NM"
11266else
11267 lt_nm_to_check="${ac_tool_prefix}nm"
11268 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11269 lt_nm_to_check="$lt_nm_to_check nm"
11270 fi
11271 for lt_tmp_nm in $lt_nm_to_check; do
11272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11273 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11274 IFS="$lt_save_ifs"
11275 test -z "$ac_dir" && ac_dir=.
11276 tmp_nm="$ac_dir/$lt_tmp_nm"
11277 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11278 # Check to see if the nm accepts a BSD-compat flag.
11279 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11280 # nm: unknown option "B" ignored
11281 # Tru64's nm complains that /dev/null is an invalid object file
11282 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11283 */dev/null* | *'Invalid file or object type'*)
11284 lt_cv_path_NM="$tmp_nm -B"
11285 break
11286 ;;
11287 *)
11288 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11289 */dev/null*)
11290 lt_cv_path_NM="$tmp_nm -p"
11291 break
11292 ;;
11293 *)
11294 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11295 continue # so that we can try to find one that supports BSD flags
11296 ;;
11297 esac
11298 ;;
11299 esac
11300 fi
11301 done
11302 IFS="$lt_save_ifs"
11303 done
11304 : ${lt_cv_path_NM=no}
11305fi
11306fi
11307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11308$as_echo "$lt_cv_path_NM" >&6; }
11309if test "$lt_cv_path_NM" != "no"; then
11310 NM="$lt_cv_path_NM"
11311else
11312 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011313 if test -n "$DUMPBIN"; then :
11314 # Let the user override the test.
11315 else
11316 if test -n "$ac_tool_prefix"; then
11317 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011318 do
11319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11320set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11322$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011323if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011324 $as_echo_n "(cached) " >&6
11325else
11326 if test -n "$DUMPBIN"; then
11327 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11328else
11329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11330for as_dir in $PATH
11331do
11332 IFS=$as_save_IFS
11333 test -z "$as_dir" && as_dir=.
11334 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011336 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11338 break 2
11339 fi
11340done
11341 done
11342IFS=$as_save_IFS
11343
11344fi
11345fi
11346DUMPBIN=$ac_cv_prog_DUMPBIN
11347if test -n "$DUMPBIN"; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11349$as_echo "$DUMPBIN" >&6; }
11350else
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352$as_echo "no" >&6; }
11353fi
11354
11355
11356 test -n "$DUMPBIN" && break
11357 done
11358fi
11359if test -z "$DUMPBIN"; then
11360 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011361 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011362do
11363 # Extract the first word of "$ac_prog", so it can be a program name with args.
11364set dummy $ac_prog; ac_word=$2
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11366$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011367if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011368 $as_echo_n "(cached) " >&6
11369else
11370 if test -n "$ac_ct_DUMPBIN"; then
11371 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11372else
11373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374for as_dir in $PATH
11375do
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011380 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11382 break 2
11383 fi
11384done
11385 done
11386IFS=$as_save_IFS
11387
11388fi
11389fi
11390ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11391if test -n "$ac_ct_DUMPBIN"; then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11393$as_echo "$ac_ct_DUMPBIN" >&6; }
11394else
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396$as_echo "no" >&6; }
11397fi
11398
11399
11400 test -n "$ac_ct_DUMPBIN" && break
11401done
11402
11403 if test "x$ac_ct_DUMPBIN" = x; then
11404 DUMPBIN=":"
11405 else
11406 case $cross_compiling:$ac_tool_warned in
11407yes:)
11408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11410ac_tool_warned=yes ;;
11411esac
11412 DUMPBIN=$ac_ct_DUMPBIN
11413 fi
11414fi
11415
cristy0c60a692010-11-04 01:09:47 +000011416 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11417 *COFF*)
11418 DUMPBIN="$DUMPBIN -symbols"
11419 ;;
11420 *)
11421 DUMPBIN=:
11422 ;;
11423 esac
11424 fi
cristy73bd4a52010-10-05 11:24:23 +000011425
11426 if test "$DUMPBIN" != ":"; then
11427 NM="$DUMPBIN"
11428 fi
11429fi
11430test -z "$NM" && NM=nm
11431
11432
11433
11434
11435
11436
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11438$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011439if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011440 $as_echo_n "(cached) " >&6
11441else
11442 lt_cv_nm_interface="BSD nm"
11443 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011444 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011445 (eval "$ac_compile" 2>conftest.err)
11446 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011447 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011448 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11449 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011450 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011451 cat conftest.out >&5
11452 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11453 lt_cv_nm_interface="MS dumpbin"
11454 fi
11455 rm -f conftest*
11456fi
11457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11458$as_echo "$lt_cv_nm_interface" >&6; }
11459
11460# find the maximum length of command line arguments
11461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11462$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011463if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011464 $as_echo_n "(cached) " >&6
11465else
11466 i=0
11467 teststring="ABCD"
11468
11469 case $build_os in
11470 msdosdjgpp*)
11471 # On DJGPP, this test can blow up pretty badly due to problems in libc
11472 # (any single argument exceeding 2000 bytes causes a buffer overrun
11473 # during glob expansion). Even if it were fixed, the result of this
11474 # check would be larger than it should be.
11475 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11476 ;;
11477
11478 gnu*)
11479 # Under GNU Hurd, this test is not required because there is
11480 # no limit to the length of command line arguments.
11481 # Libtool will interpret -1 as no limit whatsoever
11482 lt_cv_sys_max_cmd_len=-1;
11483 ;;
11484
11485 cygwin* | mingw* | cegcc*)
11486 # On Win9x/ME, this test blows up -- it succeeds, but takes
11487 # about 5 minutes as the teststring grows exponentially.
11488 # Worse, since 9x/ME are not pre-emptively multitasking,
11489 # you end up with a "frozen" computer, even though with patience
11490 # the test eventually succeeds (with a max line length of 256k).
11491 # Instead, let's just punt: use the minimum linelength reported by
11492 # all of the supported platforms: 8192 (on NT/2K/XP).
11493 lt_cv_sys_max_cmd_len=8192;
11494 ;;
11495
cristy0c60a692010-11-04 01:09:47 +000011496 mint*)
11497 # On MiNT this can take a long time and run out of memory.
11498 lt_cv_sys_max_cmd_len=8192;
11499 ;;
11500
cristy73bd4a52010-10-05 11:24:23 +000011501 amigaos*)
11502 # On AmigaOS with pdksh, this test takes hours, literally.
11503 # So we just punt and use a minimum line length of 8192.
11504 lt_cv_sys_max_cmd_len=8192;
11505 ;;
11506
11507 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11508 # This has been around since 386BSD, at least. Likely further.
11509 if test -x /sbin/sysctl; then
11510 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11511 elif test -x /usr/sbin/sysctl; then
11512 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11513 else
11514 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11515 fi
11516 # And add a safety zone
11517 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11519 ;;
11520
11521 interix*)
11522 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11523 lt_cv_sys_max_cmd_len=196608
11524 ;;
11525
cristy99bd5232011-12-07 14:38:20 +000011526 os2*)
11527 # The test takes a long time on OS/2.
11528 lt_cv_sys_max_cmd_len=8192
11529 ;;
11530
cristy73bd4a52010-10-05 11:24:23 +000011531 osf*)
11532 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11533 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11534 # nice to cause kernel panics so lets avoid the loop below.
11535 # First set a reasonable default.
11536 lt_cv_sys_max_cmd_len=16384
11537 #
11538 if test -x /sbin/sysconfig; then
11539 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11540 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11541 esac
11542 fi
11543 ;;
11544 sco3.2v5*)
11545 lt_cv_sys_max_cmd_len=102400
11546 ;;
11547 sysv5* | sco5v6* | sysv4.2uw2*)
11548 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11549 if test -n "$kargmax"; then
11550 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11551 else
11552 lt_cv_sys_max_cmd_len=32768
11553 fi
11554 ;;
11555 *)
11556 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11557 if test -n "$lt_cv_sys_max_cmd_len"; then
11558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11560 else
11561 # Make teststring a little bigger before we do anything with it.
11562 # a 1K string should be a reasonable start.
11563 for i in 1 2 3 4 5 6 7 8 ; do
11564 teststring=$teststring$teststring
11565 done
11566 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11567 # If test is not a shell built-in, we'll probably end up computing a
11568 # maximum length that is only half of the actual maximum length, but
11569 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011570 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011571 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011572 test $i != 17 # 1/2 MB should be enough
11573 do
11574 i=`expr $i + 1`
11575 teststring=$teststring$teststring
11576 done
11577 # Only check the string length outside the loop.
11578 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11579 teststring=
11580 # Add a significant safety factor because C++ compilers can tack on
11581 # massive amounts of additional arguments before passing them to the
11582 # linker. It appears as though 1/2 is a usable value.
11583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11584 fi
11585 ;;
11586 esac
11587
11588fi
11589
11590if test -n $lt_cv_sys_max_cmd_len ; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11592$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11593else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11595$as_echo "none" >&6; }
11596fi
11597max_cmd_len=$lt_cv_sys_max_cmd_len
11598
11599
11600
11601
11602
11603
11604: ${CP="cp -f"}
11605: ${MV="mv -f"}
11606: ${RM="rm -f"}
11607
11608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11609$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11610# Try some XSI features
11611xsi_shell=no
11612( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011613 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11614 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011615 && eval 'test $(( 1 + 1 )) -eq 2 \
11616 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11617 && xsi_shell=yes
11618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11619$as_echo "$xsi_shell" >&6; }
11620
11621
11622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11623$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11624lt_shell_append=no
11625( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11626 >/dev/null 2>&1 \
11627 && lt_shell_append=yes
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11629$as_echo "$lt_shell_append" >&6; }
11630
11631
11632if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11633 lt_unset=unset
11634else
11635 lt_unset=false
11636fi
11637
11638
11639
11640
11641
11642# test EBCDIC or ASCII
11643case `echo X|tr X '\101'` in
11644 A) # ASCII based system
11645 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11646 lt_SP2NL='tr \040 \012'
11647 lt_NL2SP='tr \015\012 \040\040'
11648 ;;
11649 *) # EBCDIC based system
11650 lt_SP2NL='tr \100 \n'
11651 lt_NL2SP='tr \r\n \100\100'
11652 ;;
11653esac
11654
11655
11656
11657
11658
11659
11660
11661
11662
cristyda16f162011-02-19 23:52:17 +000011663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11664$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11665if ${lt_cv_to_host_file_cmd+:} false; then :
11666 $as_echo_n "(cached) " >&6
11667else
11668 case $host in
11669 *-*-mingw* )
11670 case $build in
11671 *-*-mingw* ) # actually msys
11672 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11673 ;;
11674 *-*-cygwin* )
11675 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11676 ;;
11677 * ) # otherwise, assume *nix
11678 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11679 ;;
11680 esac
11681 ;;
11682 *-*-cygwin* )
11683 case $build in
11684 *-*-mingw* ) # actually msys
11685 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11686 ;;
11687 *-*-cygwin* )
11688 lt_cv_to_host_file_cmd=func_convert_file_noop
11689 ;;
11690 * ) # otherwise, assume *nix
11691 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11692 ;;
11693 esac
11694 ;;
11695 * ) # unhandled hosts (and "normal" native builds)
11696 lt_cv_to_host_file_cmd=func_convert_file_noop
11697 ;;
11698esac
11699
11700fi
11701
11702to_host_file_cmd=$lt_cv_to_host_file_cmd
11703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11704$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11705
11706
11707
11708
11709
11710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11711$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11712if ${lt_cv_to_tool_file_cmd+:} false; then :
11713 $as_echo_n "(cached) " >&6
11714else
11715 #assume ordinary cross tools, or native build.
11716lt_cv_to_tool_file_cmd=func_convert_file_noop
11717case $host in
11718 *-*-mingw* )
11719 case $build in
11720 *-*-mingw* ) # actually msys
11721 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11722 ;;
11723 esac
11724 ;;
11725esac
11726
11727fi
11728
11729to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11731$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11732
11733
11734
11735
11736
cristy73bd4a52010-10-05 11:24:23 +000011737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11738$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011739if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011740 $as_echo_n "(cached) " >&6
11741else
11742 lt_cv_ld_reload_flag='-r'
11743fi
11744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11745$as_echo "$lt_cv_ld_reload_flag" >&6; }
11746reload_flag=$lt_cv_ld_reload_flag
11747case $reload_flag in
11748"" | " "*) ;;
11749*) reload_flag=" $reload_flag" ;;
11750esac
11751reload_cmds='$LD$reload_flag -o $output$reload_objs'
11752case $host_os in
cristyda16f162011-02-19 23:52:17 +000011753 cygwin* | mingw* | pw32* | cegcc*)
11754 if test "$GCC" != yes; then
11755 reload_cmds=false
11756 fi
11757 ;;
cristy73bd4a52010-10-05 11:24:23 +000011758 darwin*)
11759 if test "$GCC" = yes; then
11760 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11761 else
11762 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11763 fi
11764 ;;
11765esac
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775if test -n "$ac_tool_prefix"; then
11776 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11777set dummy ${ac_tool_prefix}objdump; ac_word=$2
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011780if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011781 $as_echo_n "(cached) " >&6
11782else
11783 if test -n "$OBJDUMP"; then
11784 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11785else
11786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787for as_dir in $PATH
11788do
11789 IFS=$as_save_IFS
11790 test -z "$as_dir" && as_dir=.
11791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011793 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11795 break 2
11796 fi
11797done
11798 done
11799IFS=$as_save_IFS
11800
11801fi
11802fi
11803OBJDUMP=$ac_cv_prog_OBJDUMP
11804if test -n "$OBJDUMP"; then
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11806$as_echo "$OBJDUMP" >&6; }
11807else
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809$as_echo "no" >&6; }
11810fi
11811
11812
11813fi
11814if test -z "$ac_cv_prog_OBJDUMP"; then
11815 ac_ct_OBJDUMP=$OBJDUMP
11816 # Extract the first word of "objdump", so it can be a program name with args.
11817set dummy objdump; ac_word=$2
11818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11819$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011820if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011821 $as_echo_n "(cached) " >&6
11822else
11823 if test -n "$ac_ct_OBJDUMP"; then
11824 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11825else
11826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827for as_dir in $PATH
11828do
11829 IFS=$as_save_IFS
11830 test -z "$as_dir" && as_dir=.
11831 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011833 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11835 break 2
11836 fi
11837done
11838 done
11839IFS=$as_save_IFS
11840
11841fi
11842fi
11843ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11844if test -n "$ac_ct_OBJDUMP"; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11846$as_echo "$ac_ct_OBJDUMP" >&6; }
11847else
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849$as_echo "no" >&6; }
11850fi
11851
11852 if test "x$ac_ct_OBJDUMP" = x; then
11853 OBJDUMP="false"
11854 else
11855 case $cross_compiling:$ac_tool_warned in
11856yes:)
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11859ac_tool_warned=yes ;;
11860esac
11861 OBJDUMP=$ac_ct_OBJDUMP
11862 fi
11863else
11864 OBJDUMP="$ac_cv_prog_OBJDUMP"
11865fi
11866
11867test -z "$OBJDUMP" && OBJDUMP=objdump
11868
11869
11870
11871
11872
11873
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11875$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011876if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011877 $as_echo_n "(cached) " >&6
11878else
11879 lt_cv_file_magic_cmd='$MAGIC_CMD'
11880lt_cv_file_magic_test_file=
11881lt_cv_deplibs_check_method='unknown'
11882# Need to set the preceding variable on all platforms that support
11883# interlibrary dependencies.
11884# 'none' -- dependencies not supported.
11885# `unknown' -- same as none, but documents that we really don't know.
11886# 'pass_all' -- all dependencies passed with no checks.
11887# 'test_compile' -- check by making test program.
11888# 'file_magic [[regex]]' -- check by looking for files in library path
11889# which responds to the $file_magic_cmd with a given extended regex.
11890# If you have `file' or equivalent on your system and you're not sure
11891# whether `pass_all' will *always* work, you probably want this one.
11892
11893case $host_os in
11894aix[4-9]*)
11895 lt_cv_deplibs_check_method=pass_all
11896 ;;
11897
11898beos*)
11899 lt_cv_deplibs_check_method=pass_all
11900 ;;
11901
11902bsdi[45]*)
11903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11904 lt_cv_file_magic_cmd='/usr/bin/file -L'
11905 lt_cv_file_magic_test_file=/shlib/libc.so
11906 ;;
11907
11908cygwin*)
11909 # func_win32_libid is a shell function defined in ltmain.sh
11910 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11911 lt_cv_file_magic_cmd='func_win32_libid'
11912 ;;
11913
11914mingw* | pw32*)
11915 # Base MSYS/MinGW do not provide the 'file' command needed by
11916 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11917 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011918 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11919 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011920 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11921 lt_cv_file_magic_cmd='func_win32_libid'
11922 else
cristy0c60a692010-11-04 01:09:47 +000011923 # Keep this pattern in sync with the one in func_win32_libid.
11924 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cristy73bd4a52010-10-05 11:24:23 +000011925 lt_cv_file_magic_cmd='$OBJDUMP -f'
11926 fi
11927 ;;
11928
cristy0c60a692010-11-04 01:09:47 +000011929cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011930 # use the weaker test based on 'objdump'. See mingw*.
11931 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11932 lt_cv_file_magic_cmd='$OBJDUMP -f'
11933 ;;
11934
11935darwin* | rhapsody*)
11936 lt_cv_deplibs_check_method=pass_all
11937 ;;
11938
11939freebsd* | dragonfly*)
11940 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11941 case $host_cpu in
11942 i*86 )
11943 # Not sure whether the presence of OpenBSD here was a mistake.
11944 # Let's accept both of them until this is cleared up.
11945 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11946 lt_cv_file_magic_cmd=/usr/bin/file
11947 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11948 ;;
11949 esac
11950 else
11951 lt_cv_deplibs_check_method=pass_all
11952 fi
11953 ;;
11954
11955gnu*)
11956 lt_cv_deplibs_check_method=pass_all
11957 ;;
11958
cristy0c60a692010-11-04 01:09:47 +000011959haiku*)
11960 lt_cv_deplibs_check_method=pass_all
11961 ;;
11962
cristy73bd4a52010-10-05 11:24:23 +000011963hpux10.20* | hpux11*)
11964 lt_cv_file_magic_cmd=/usr/bin/file
11965 case $host_cpu in
11966 ia64*)
11967 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11968 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11969 ;;
11970 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011971 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]'
cristy73bd4a52010-10-05 11:24:23 +000011972 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11973 ;;
11974 *)
cristy0c60a692010-11-04 01:09:47 +000011975 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cristy73bd4a52010-10-05 11:24:23 +000011976 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11977 ;;
11978 esac
11979 ;;
11980
11981interix[3-9]*)
11982 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11984 ;;
11985
11986irix5* | irix6* | nonstopux*)
11987 case $LD in
11988 *-32|*"-32 ") libmagic=32-bit;;
11989 *-n32|*"-n32 ") libmagic=N32;;
11990 *-64|*"-64 ") libmagic=64-bit;;
11991 *) libmagic=never-match;;
11992 esac
11993 lt_cv_deplibs_check_method=pass_all
11994 ;;
11995
cristy99bd5232011-12-07 14:38:20 +000011996# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011997linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011998 lt_cv_deplibs_check_method=pass_all
11999 ;;
12000
12001netbsd*)
12002 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12004 else
12005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12006 fi
12007 ;;
12008
12009newos6*)
12010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12011 lt_cv_file_magic_cmd=/usr/bin/file
12012 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12013 ;;
12014
12015*nto* | *qnx*)
12016 lt_cv_deplibs_check_method=pass_all
12017 ;;
12018
12019openbsd*)
12020 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12022 else
12023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12024 fi
12025 ;;
12026
12027osf3* | osf4* | osf5*)
12028 lt_cv_deplibs_check_method=pass_all
12029 ;;
12030
12031rdos*)
12032 lt_cv_deplibs_check_method=pass_all
12033 ;;
12034
12035solaris*)
12036 lt_cv_deplibs_check_method=pass_all
12037 ;;
12038
12039sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12040 lt_cv_deplibs_check_method=pass_all
12041 ;;
12042
12043sysv4 | sysv4.3*)
12044 case $host_vendor in
12045 motorola)
12046 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]'
12047 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12048 ;;
12049 ncr)
12050 lt_cv_deplibs_check_method=pass_all
12051 ;;
12052 sequent)
12053 lt_cv_file_magic_cmd='/bin/file'
12054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12055 ;;
12056 sni)
12057 lt_cv_file_magic_cmd='/bin/file'
12058 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12059 lt_cv_file_magic_test_file=/lib/libc.so
12060 ;;
12061 siemens)
12062 lt_cv_deplibs_check_method=pass_all
12063 ;;
12064 pc)
12065 lt_cv_deplibs_check_method=pass_all
12066 ;;
12067 esac
12068 ;;
12069
12070tpf*)
12071 lt_cv_deplibs_check_method=pass_all
12072 ;;
12073esac
12074
12075fi
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12077$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000012078
12079file_magic_glob=
12080want_nocaseglob=no
12081if test "$build" = "$host"; then
12082 case $host_os in
12083 mingw* | pw32*)
12084 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12085 want_nocaseglob=yes
12086 else
12087 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12088 fi
12089 ;;
12090 esac
12091fi
12092
cristy73bd4a52010-10-05 11:24:23 +000012093file_magic_cmd=$lt_cv_file_magic_cmd
12094deplibs_check_method=$lt_cv_deplibs_check_method
12095test -z "$deplibs_check_method" && deplibs_check_method=unknown
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
cristyda16f162011-02-19 23:52:17 +000012108
12109
12110
12111
12112
12113
12114
12115
12116
12117
cristy73bd4a52010-10-05 11:24:23 +000012118if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000012119 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12120set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12122$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012123if ${ac_cv_prog_DLLTOOL+:} false; then :
12124 $as_echo_n "(cached) " >&6
12125else
12126 if test -n "$DLLTOOL"; then
12127 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12128else
12129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12130for as_dir in $PATH
12131do
12132 IFS=$as_save_IFS
12133 test -z "$as_dir" && as_dir=.
12134 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012136 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12138 break 2
12139 fi
12140done
12141 done
12142IFS=$as_save_IFS
12143
12144fi
12145fi
12146DLLTOOL=$ac_cv_prog_DLLTOOL
12147if test -n "$DLLTOOL"; then
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12149$as_echo "$DLLTOOL" >&6; }
12150else
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12152$as_echo "no" >&6; }
12153fi
12154
12155
12156fi
12157if test -z "$ac_cv_prog_DLLTOOL"; then
12158 ac_ct_DLLTOOL=$DLLTOOL
12159 # Extract the first word of "dlltool", so it can be a program name with args.
12160set dummy dlltool; ac_word=$2
12161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12162$as_echo_n "checking for $ac_word... " >&6; }
12163if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12164 $as_echo_n "(cached) " >&6
12165else
12166 if test -n "$ac_ct_DLLTOOL"; then
12167 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12168else
12169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170for as_dir in $PATH
12171do
12172 IFS=$as_save_IFS
12173 test -z "$as_dir" && as_dir=.
12174 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012176 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12178 break 2
12179 fi
12180done
12181 done
12182IFS=$as_save_IFS
12183
12184fi
12185fi
12186ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12187if test -n "$ac_ct_DLLTOOL"; then
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12189$as_echo "$ac_ct_DLLTOOL" >&6; }
12190else
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192$as_echo "no" >&6; }
12193fi
12194
12195 if test "x$ac_ct_DLLTOOL" = x; then
12196 DLLTOOL="false"
12197 else
12198 case $cross_compiling:$ac_tool_warned in
12199yes:)
12200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12202ac_tool_warned=yes ;;
12203esac
12204 DLLTOOL=$ac_ct_DLLTOOL
12205 fi
12206else
12207 DLLTOOL="$ac_cv_prog_DLLTOOL"
12208fi
12209
12210test -z "$DLLTOOL" && DLLTOOL=dlltool
12211
12212
12213
12214
12215
12216
12217
12218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12219$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12220if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12221 $as_echo_n "(cached) " >&6
12222else
12223 lt_cv_sharedlib_from_linklib_cmd='unknown'
12224
12225case $host_os in
12226cygwin* | mingw* | pw32* | cegcc*)
12227 # two different shell functions defined in ltmain.sh
12228 # decide which to use based on capabilities of $DLLTOOL
12229 case `$DLLTOOL --help 2>&1` in
12230 *--identify-strict*)
12231 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12232 ;;
12233 *)
12234 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12235 ;;
12236 esac
12237 ;;
12238*)
12239 # fallback: assume linklib IS sharedlib
12240 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12241 ;;
12242esac
12243
12244fi
12245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12246$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12247sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12248test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12249
12250
12251
12252
12253
12254
12255
12256if test -n "$ac_tool_prefix"; then
12257 for ac_prog in ar
12258 do
12259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12260set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262$as_echo_n "checking for $ac_word... " >&6; }
12263if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012264 $as_echo_n "(cached) " >&6
12265else
12266 if test -n "$AR"; then
12267 ac_cv_prog_AR="$AR" # Let the user override the test.
12268else
12269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270for as_dir in $PATH
12271do
12272 IFS=$as_save_IFS
12273 test -z "$as_dir" && as_dir=.
12274 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012276 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278 break 2
12279 fi
12280done
12281 done
12282IFS=$as_save_IFS
12283
12284fi
12285fi
12286AR=$ac_cv_prog_AR
12287if test -n "$AR"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12289$as_echo "$AR" >&6; }
12290else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292$as_echo "no" >&6; }
12293fi
12294
12295
cristyda16f162011-02-19 23:52:17 +000012296 test -n "$AR" && break
12297 done
cristy73bd4a52010-10-05 11:24:23 +000012298fi
cristyda16f162011-02-19 23:52:17 +000012299if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012300 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012301 for ac_prog in ar
12302do
12303 # Extract the first word of "$ac_prog", so it can be a program name with args.
12304set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012307if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012308 $as_echo_n "(cached) " >&6
12309else
12310 if test -n "$ac_ct_AR"; then
12311 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12312else
12313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12314for as_dir in $PATH
12315do
12316 IFS=$as_save_IFS
12317 test -z "$as_dir" && as_dir=.
12318 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012320 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 break 2
12323 fi
12324done
12325 done
12326IFS=$as_save_IFS
12327
12328fi
12329fi
12330ac_ct_AR=$ac_cv_prog_ac_ct_AR
12331if test -n "$ac_ct_AR"; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12333$as_echo "$ac_ct_AR" >&6; }
12334else
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336$as_echo "no" >&6; }
12337fi
12338
cristyda16f162011-02-19 23:52:17 +000012339
12340 test -n "$ac_ct_AR" && break
12341done
12342
cristy73bd4a52010-10-05 11:24:23 +000012343 if test "x$ac_ct_AR" = x; then
12344 AR="false"
12345 else
12346 case $cross_compiling:$ac_tool_warned in
12347yes:)
12348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12350ac_tool_warned=yes ;;
12351esac
12352 AR=$ac_ct_AR
12353 fi
cristy73bd4a52010-10-05 11:24:23 +000012354fi
12355
cristyda16f162011-02-19 23:52:17 +000012356: ${AR=ar}
12357: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
cristyda16f162011-02-19 23:52:17 +000012369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12370$as_echo_n "checking for archiver @FILE support... " >&6; }
12371if ${lt_cv_ar_at_file+:} false; then :
12372 $as_echo_n "(cached) " >&6
12373else
12374 lt_cv_ar_at_file=no
12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376/* end confdefs.h. */
12377
12378int
12379main ()
12380{
12381
12382 ;
12383 return 0;
12384}
12385_ACEOF
12386if ac_fn_c_try_compile "$LINENO"; then :
12387 echo conftest.$ac_objext > conftest.lst
12388 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12390 (eval $lt_ar_try) 2>&5
12391 ac_status=$?
12392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12393 test $ac_status = 0; }
12394 if test "$ac_status" -eq 0; then
12395 # Ensure the archiver fails upon bogus file names.
12396 rm -f conftest.$ac_objext libconftest.a
12397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12398 (eval $lt_ar_try) 2>&5
12399 ac_status=$?
12400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12401 test $ac_status = 0; }
12402 if test "$ac_status" -ne 0; then
12403 lt_cv_ar_at_file=@
12404 fi
12405 fi
12406 rm -f conftest.* libconftest.a
12407
12408fi
12409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12410
12411fi
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12413$as_echo "$lt_cv_ar_at_file" >&6; }
12414
12415if test "x$lt_cv_ar_at_file" = xno; then
12416 archiver_list_spec=
12417else
12418 archiver_list_spec=$lt_cv_ar_at_file
12419fi
12420
12421
12422
12423
12424
12425
12426
cristy73bd4a52010-10-05 11:24:23 +000012427if test -n "$ac_tool_prefix"; then
12428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12429set dummy ${ac_tool_prefix}strip; ac_word=$2
12430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12431$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012432if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012433 $as_echo_n "(cached) " >&6
12434else
12435 if test -n "$STRIP"; then
12436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12437else
12438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12439for as_dir in $PATH
12440do
12441 IFS=$as_save_IFS
12442 test -z "$as_dir" && as_dir=.
12443 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012445 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12447 break 2
12448 fi
12449done
12450 done
12451IFS=$as_save_IFS
12452
12453fi
12454fi
12455STRIP=$ac_cv_prog_STRIP
12456if test -n "$STRIP"; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12458$as_echo "$STRIP" >&6; }
12459else
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461$as_echo "no" >&6; }
12462fi
12463
12464
12465fi
12466if test -z "$ac_cv_prog_STRIP"; then
12467 ac_ct_STRIP=$STRIP
12468 # Extract the first word of "strip", so it can be a program name with args.
12469set dummy strip; ac_word=$2
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012472if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012473 $as_echo_n "(cached) " >&6
12474else
12475 if test -n "$ac_ct_STRIP"; then
12476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12477else
12478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479for as_dir in $PATH
12480do
12481 IFS=$as_save_IFS
12482 test -z "$as_dir" && as_dir=.
12483 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012485 ac_cv_prog_ac_ct_STRIP="strip"
12486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12487 break 2
12488 fi
12489done
12490 done
12491IFS=$as_save_IFS
12492
12493fi
12494fi
12495ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12496if test -n "$ac_ct_STRIP"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12498$as_echo "$ac_ct_STRIP" >&6; }
12499else
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501$as_echo "no" >&6; }
12502fi
12503
12504 if test "x$ac_ct_STRIP" = x; then
12505 STRIP=":"
12506 else
12507 case $cross_compiling:$ac_tool_warned in
12508yes:)
12509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12511ac_tool_warned=yes ;;
12512esac
12513 STRIP=$ac_ct_STRIP
12514 fi
12515else
12516 STRIP="$ac_cv_prog_STRIP"
12517fi
12518
12519test -z "$STRIP" && STRIP=:
12520
12521
12522
12523
12524
12525
12526if test -n "$ac_tool_prefix"; then
12527 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12528set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12530$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012531if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012532 $as_echo_n "(cached) " >&6
12533else
12534 if test -n "$RANLIB"; then
12535 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12536else
12537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12538for as_dir in $PATH
12539do
12540 IFS=$as_save_IFS
12541 test -z "$as_dir" && as_dir=.
12542 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012544 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12546 break 2
12547 fi
12548done
12549 done
12550IFS=$as_save_IFS
12551
12552fi
12553fi
12554RANLIB=$ac_cv_prog_RANLIB
12555if test -n "$RANLIB"; then
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12557$as_echo "$RANLIB" >&6; }
12558else
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12560$as_echo "no" >&6; }
12561fi
12562
12563
12564fi
12565if test -z "$ac_cv_prog_RANLIB"; then
12566 ac_ct_RANLIB=$RANLIB
12567 # Extract the first word of "ranlib", so it can be a program name with args.
12568set dummy ranlib; ac_word=$2
12569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12570$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012571if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012572 $as_echo_n "(cached) " >&6
12573else
12574 if test -n "$ac_ct_RANLIB"; then
12575 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12576else
12577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578for as_dir in $PATH
12579do
12580 IFS=$as_save_IFS
12581 test -z "$as_dir" && as_dir=.
12582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012584 ac_cv_prog_ac_ct_RANLIB="ranlib"
12585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12586 break 2
12587 fi
12588done
12589 done
12590IFS=$as_save_IFS
12591
12592fi
12593fi
12594ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12595if test -n "$ac_ct_RANLIB"; then
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12597$as_echo "$ac_ct_RANLIB" >&6; }
12598else
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600$as_echo "no" >&6; }
12601fi
12602
12603 if test "x$ac_ct_RANLIB" = x; then
12604 RANLIB=":"
12605 else
12606 case $cross_compiling:$ac_tool_warned in
12607yes:)
12608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12610ac_tool_warned=yes ;;
12611esac
12612 RANLIB=$ac_ct_RANLIB
12613 fi
12614else
12615 RANLIB="$ac_cv_prog_RANLIB"
12616fi
12617
12618test -z "$RANLIB" && RANLIB=:
12619
12620
12621
12622
12623
12624
12625# Determine commands to create old-style static archives.
12626old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12627old_postinstall_cmds='chmod 644 $oldlib'
12628old_postuninstall_cmds=
12629
12630if test -n "$RANLIB"; then
12631 case $host_os in
12632 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012633 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012634 ;;
12635 *)
cristy99bd5232011-12-07 14:38:20 +000012636 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012637 ;;
12638 esac
cristy99bd5232011-12-07 14:38:20 +000012639 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012640fi
12641
cristy0c60a692010-11-04 01:09:47 +000012642case $host_os in
12643 darwin*)
12644 lock_old_archive_extraction=yes ;;
12645 *)
12646 lock_old_archive_extraction=no ;;
12647esac
12648
12649
12650
12651
12652
12653
cristy73bd4a52010-10-05 11:24:23 +000012654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687# If no C compiler was specified, use CC.
12688LTCC=${LTCC-"$CC"}
12689
12690# If no C compiler flags were specified, use CFLAGS.
12691LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12692
12693# Allow CC to be a program name with arguments.
12694compiler=$CC
12695
12696
12697# Check for command to grab the raw symbol name followed by C symbol from nm.
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12699$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012700if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012701 $as_echo_n "(cached) " >&6
12702else
12703
12704# These are sane defaults that work on at least a few old systems.
12705# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12706
12707# Character class describing NM global symbol codes.
12708symcode='[BCDEGRST]'
12709
12710# Regexp to match symbols that can be accessed directly from C.
12711sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12712
12713# Define system-specific variables.
12714case $host_os in
12715aix*)
12716 symcode='[BCDT]'
12717 ;;
12718cygwin* | mingw* | pw32* | cegcc*)
12719 symcode='[ABCDGISTW]'
12720 ;;
12721hpux*)
12722 if test "$host_cpu" = ia64; then
12723 symcode='[ABCDEGRST]'
12724 fi
12725 ;;
12726irix* | nonstopux*)
12727 symcode='[BCDEGRST]'
12728 ;;
12729osf*)
12730 symcode='[BCDEGQRST]'
12731 ;;
12732solaris*)
12733 symcode='[BDRT]'
12734 ;;
12735sco3.2v5*)
12736 symcode='[DT]'
12737 ;;
12738sysv4.2uw2*)
12739 symcode='[DT]'
12740 ;;
12741sysv5* | sco5v6* | unixware* | OpenUNIX*)
12742 symcode='[ABDT]'
12743 ;;
12744sysv4)
12745 symcode='[DFNSTU]'
12746 ;;
12747esac
12748
12749# If we're using GNU nm, then use its standard symbol codes.
12750case `$NM -V 2>&1` in
12751*GNU* | *'with BFD'*)
12752 symcode='[ABCDGIRSTW]' ;;
12753esac
12754
12755# Transform an extracted symbol line into a proper C declaration.
12756# Some systems (esp. on ia64) link data and code symbols differently,
12757# so use this general approach.
12758lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12759
12760# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012761lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12762lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
cristy73bd4a52010-10-05 11:24:23 +000012763
12764# Handle CRLF in mingw tool chain
12765opt_cr=
12766case $build_os in
12767mingw*)
12768 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12769 ;;
12770esac
12771
12772# Try without a prefix underscore, then with it.
12773for ac_symprfx in "" "_"; do
12774
12775 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12776 symxfrm="\\1 $ac_symprfx\\2 \\2"
12777
12778 # Write the raw and C identifiers.
12779 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12780 # Fake it for dumpbin and say T for any non-static function
12781 # and D for any global variable.
12782 # Also find C++ and __fastcall symbols from MSVC++,
12783 # which start with @ or ?.
12784 lt_cv_sys_global_symbol_pipe="$AWK '"\
12785" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012786" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012787" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12788" \$ 0!~/External *\|/{next};"\
12789" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12790" {if(hide[section]) next};"\
12791" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12792" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12793" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12794" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12795" ' prfx=^$ac_symprfx"
12796 else
12797 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12798 fi
cristyda16f162011-02-19 23:52:17 +000012799 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012800
12801 # Check to see that the pipe works correctly.
12802 pipe_works=no
12803
12804 rm -f conftest*
12805 cat > conftest.$ac_ext <<_LT_EOF
12806#ifdef __cplusplus
12807extern "C" {
12808#endif
12809char nm_test_var;
12810void nm_test_func(void);
12811void nm_test_func(void){}
12812#ifdef __cplusplus
12813}
12814#endif
12815int main(){nm_test_var='a';nm_test_func();return(0);}
12816_LT_EOF
12817
12818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12819 (eval $ac_compile) 2>&5
12820 ac_status=$?
12821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12822 test $ac_status = 0; }; then
12823 # Now try to grab the symbols.
12824 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12826 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012827 ac_status=$?
12828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12829 test $ac_status = 0; } && test -s "$nlist"; then
12830 # Try sorting and uniquifying the output.
12831 if sort "$nlist" | uniq > "$nlist"T; then
12832 mv -f "$nlist"T "$nlist"
12833 else
12834 rm -f "$nlist"T
12835 fi
12836
12837 # Make sure that we snagged all the symbols we need.
12838 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12839 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12840 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012841/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12842#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12843/* DATA imports from DLLs on WIN32 con't be const, because runtime
12844 relocations are performed -- see ld's documentation on pseudo-relocs. */
12845# define LT_DLSYM_CONST
12846#elif defined(__osf__)
12847/* This system does not cope well with relocations in const data. */
12848# define LT_DLSYM_CONST
12849#else
12850# define LT_DLSYM_CONST const
12851#endif
12852
cristy73bd4a52010-10-05 11:24:23 +000012853#ifdef __cplusplus
12854extern "C" {
12855#endif
12856
12857_LT_EOF
12858 # Now generate the symbol file.
12859 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12860
12861 cat <<_LT_EOF >> conftest.$ac_ext
12862
12863/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012864LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012865 const char *name;
12866 void *address;
12867}
12868lt__PROGRAM__LTX_preloaded_symbols[] =
12869{
12870 { "@PROGRAM@", (void *) 0 },
12871_LT_EOF
12872 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12873 cat <<\_LT_EOF >> conftest.$ac_ext
12874 {0, (void *) 0}
12875};
12876
12877/* This works around a problem in FreeBSD linker */
12878#ifdef FREEBSD_WORKAROUND
12879static const void *lt_preloaded_setup() {
12880 return lt__PROGRAM__LTX_preloaded_symbols;
12881}
12882#endif
12883
12884#ifdef __cplusplus
12885}
12886#endif
12887_LT_EOF
12888 # Now try linking the two files.
12889 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012890 lt_globsym_save_LIBS=$LIBS
12891 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012892 LIBS="conftstm.$ac_objext"
12893 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12895 (eval $ac_link) 2>&5
12896 ac_status=$?
12897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12898 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12899 pipe_works=yes
12900 fi
cristyda16f162011-02-19 23:52:17 +000012901 LIBS=$lt_globsym_save_LIBS
12902 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012903 else
12904 echo "cannot find nm_test_func in $nlist" >&5
12905 fi
12906 else
12907 echo "cannot find nm_test_var in $nlist" >&5
12908 fi
12909 else
12910 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12911 fi
12912 else
12913 echo "$progname: failed program was:" >&5
12914 cat conftest.$ac_ext >&5
12915 fi
12916 rm -rf conftest* conftst*
12917
12918 # Do not use the global_symbol_pipe unless it works.
12919 if test "$pipe_works" = yes; then
12920 break
12921 else
12922 lt_cv_sys_global_symbol_pipe=
12923 fi
12924done
12925
12926fi
12927
12928if test -z "$lt_cv_sys_global_symbol_pipe"; then
12929 lt_cv_sys_global_symbol_to_cdecl=
12930fi
12931if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12933$as_echo "failed" >&6; }
12934else
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12936$as_echo "ok" >&6; }
12937fi
12938
cristyda16f162011-02-19 23:52:17 +000012939# Response file support.
12940if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12941 nm_file_list_spec='@'
12942elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12943 nm_file_list_spec='@'
12944fi
cristy73bd4a52010-10-05 11:24:23 +000012945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
cristyda16f162011-02-19 23:52:17 +000012966
12967
12968
12969
12970
12971
12972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12973$as_echo_n "checking for sysroot... " >&6; }
12974
12975# Check whether --with-sysroot was given.
12976if test "${with_sysroot+set}" = set; then :
12977 withval=$with_sysroot;
12978else
12979 with_sysroot=no
12980fi
12981
12982
12983lt_sysroot=
12984case ${with_sysroot} in #(
12985 yes)
12986 if test "$GCC" = yes; then
12987 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12988 fi
12989 ;; #(
12990 /*)
12991 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12992 ;; #(
12993 no|'')
12994 ;; #(
12995 *)
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12997$as_echo "${with_sysroot}" >&6; }
12998 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12999 ;;
13000esac
13001
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13003$as_echo "${lt_sysroot:-no}" >&6; }
13004
13005
13006
13007
13008
cristy73bd4a52010-10-05 11:24:23 +000013009# Check whether --enable-libtool-lock was given.
13010if test "${enable_libtool_lock+set}" = set; then :
13011 enableval=$enable_libtool_lock;
13012fi
13013
13014test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13015
13016# Some flags need to be propagated to the compiler or linker for good
13017# libtool support.
13018case $host in
13019ia64-*-hpux*)
13020 # Find out which ABI we are using.
13021 echo 'int i;' > conftest.$ac_ext
13022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13023 (eval $ac_compile) 2>&5
13024 ac_status=$?
13025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13026 test $ac_status = 0; }; then
13027 case `/usr/bin/file conftest.$ac_objext` in
13028 *ELF-32*)
13029 HPUX_IA64_MODE="32"
13030 ;;
13031 *ELF-64*)
13032 HPUX_IA64_MODE="64"
13033 ;;
13034 esac
13035 fi
13036 rm -rf conftest*
13037 ;;
13038*-*-irix6*)
13039 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000013040 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000013041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13042 (eval $ac_compile) 2>&5
13043 ac_status=$?
13044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13045 test $ac_status = 0; }; then
13046 if test "$lt_cv_prog_gnu_ld" = yes; then
13047 case `/usr/bin/file conftest.$ac_objext` in
13048 *32-bit*)
13049 LD="${LD-ld} -melf32bsmip"
13050 ;;
13051 *N32*)
13052 LD="${LD-ld} -melf32bmipn32"
13053 ;;
13054 *64-bit*)
13055 LD="${LD-ld} -melf64bmip"
13056 ;;
13057 esac
13058 else
13059 case `/usr/bin/file conftest.$ac_objext` in
13060 *32-bit*)
13061 LD="${LD-ld} -32"
13062 ;;
13063 *N32*)
13064 LD="${LD-ld} -n32"
13065 ;;
13066 *64-bit*)
13067 LD="${LD-ld} -64"
13068 ;;
13069 esac
13070 fi
13071 fi
13072 rm -rf conftest*
13073 ;;
13074
cristyd95b7a52013-10-23 13:12:53 +000013075x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000013076s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13077 # Find out which ABI we are using.
13078 echo 'int i;' > conftest.$ac_ext
13079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13080 (eval $ac_compile) 2>&5
13081 ac_status=$?
13082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13083 test $ac_status = 0; }; then
13084 case `/usr/bin/file conftest.o` in
13085 *32-bit*)
13086 case $host in
13087 x86_64-*kfreebsd*-gnu)
13088 LD="${LD-ld} -m elf_i386_fbsd"
13089 ;;
13090 x86_64-*linux*)
13091 LD="${LD-ld} -m elf_i386"
13092 ;;
cristya5bda012013-11-03 18:05:38 +000013093 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000013094 LD="${LD-ld} -m elf32lppclinux"
13095 ;;
cristya5bda012013-11-03 18:05:38 +000013096 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013097 LD="${LD-ld} -m elf32ppclinux"
13098 ;;
13099 s390x-*linux*)
13100 LD="${LD-ld} -m elf_s390"
13101 ;;
13102 sparc64-*linux*)
13103 LD="${LD-ld} -m elf32_sparc"
13104 ;;
13105 esac
13106 ;;
13107 *64-bit*)
13108 case $host in
13109 x86_64-*kfreebsd*-gnu)
13110 LD="${LD-ld} -m elf_x86_64_fbsd"
13111 ;;
13112 x86_64-*linux*)
13113 LD="${LD-ld} -m elf_x86_64"
13114 ;;
cristyd95b7a52013-10-23 13:12:53 +000013115 powerpcle-*linux*)
13116 LD="${LD-ld} -m elf64lppc"
13117 ;;
13118 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013119 LD="${LD-ld} -m elf64ppc"
13120 ;;
13121 s390*-*linux*|s390*-*tpf*)
13122 LD="${LD-ld} -m elf64_s390"
13123 ;;
13124 sparc*-*linux*)
13125 LD="${LD-ld} -m elf64_sparc"
13126 ;;
13127 esac
13128 ;;
13129 esac
13130 fi
13131 rm -rf conftest*
13132 ;;
13133
13134*-*-sco3.2v5*)
13135 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13136 SAVE_CFLAGS="$CFLAGS"
13137 CFLAGS="$CFLAGS -belf"
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13139$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013140if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013141 $as_echo_n "(cached) " >&6
13142else
13143 ac_ext=c
13144ac_cpp='$CPP $CPPFLAGS'
13145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13147ac_compiler_gnu=$ac_cv_c_compiler_gnu
13148
13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150/* end confdefs.h. */
13151
13152int
13153main ()
13154{
13155
13156 ;
13157 return 0;
13158}
13159_ACEOF
13160if ac_fn_c_try_link "$LINENO"; then :
13161 lt_cv_cc_needs_belf=yes
13162else
13163 lt_cv_cc_needs_belf=no
13164fi
13165rm -f core conftest.err conftest.$ac_objext \
13166 conftest$ac_exeext conftest.$ac_ext
13167 ac_ext=c
13168ac_cpp='$CPP $CPPFLAGS'
13169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13171ac_compiler_gnu=$ac_cv_c_compiler_gnu
13172
13173fi
13174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13175$as_echo "$lt_cv_cc_needs_belf" >&6; }
13176 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13177 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13178 CFLAGS="$SAVE_CFLAGS"
13179 fi
13180 ;;
cristy99bd5232011-12-07 14:38:20 +000013181*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000013182 # Find out which ABI we are using.
13183 echo 'int i;' > conftest.$ac_ext
13184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13185 (eval $ac_compile) 2>&5
13186 ac_status=$?
13187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13188 test $ac_status = 0; }; then
13189 case `/usr/bin/file conftest.o` in
13190 *64-bit*)
13191 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000013192 yes*)
13193 case $host in
13194 i?86-*-solaris*)
13195 LD="${LD-ld} -m elf_x86_64"
13196 ;;
13197 sparc*-*-solaris*)
13198 LD="${LD-ld} -m elf64_sparc"
13199 ;;
13200 esac
13201 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13202 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13203 LD="${LD-ld}_sol2"
13204 fi
13205 ;;
cristy73bd4a52010-10-05 11:24:23 +000013206 *)
13207 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13208 LD="${LD-ld} -64"
13209 fi
13210 ;;
13211 esac
13212 ;;
13213 esac
13214 fi
13215 rm -rf conftest*
13216 ;;
13217esac
13218
13219need_locks="$enable_libtool_lock"
13220
cristyda16f162011-02-19 23:52:17 +000013221if test -n "$ac_tool_prefix"; then
13222 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13223set dummy ${ac_tool_prefix}mt; ac_word=$2
13224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225$as_echo_n "checking for $ac_word... " >&6; }
13226if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13227 $as_echo_n "(cached) " >&6
13228else
13229 if test -n "$MANIFEST_TOOL"; then
13230 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13231else
13232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233for as_dir in $PATH
13234do
13235 IFS=$as_save_IFS
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013239 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 break 2
13242 fi
13243done
13244 done
13245IFS=$as_save_IFS
13246
13247fi
13248fi
13249MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13250if test -n "$MANIFEST_TOOL"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13252$as_echo "$MANIFEST_TOOL" >&6; }
13253else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255$as_echo "no" >&6; }
13256fi
13257
13258
13259fi
13260if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13261 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13262 # Extract the first word of "mt", so it can be a program name with args.
13263set dummy mt; ac_word=$2
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265$as_echo_n "checking for $ac_word... " >&6; }
13266if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13267 $as_echo_n "(cached) " >&6
13268else
13269 if test -n "$ac_ct_MANIFEST_TOOL"; then
13270 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13271else
13272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273for as_dir in $PATH
13274do
13275 IFS=$as_save_IFS
13276 test -z "$as_dir" && as_dir=.
13277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013279 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281 break 2
13282 fi
13283done
13284 done
13285IFS=$as_save_IFS
13286
13287fi
13288fi
13289ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13290if test -n "$ac_ct_MANIFEST_TOOL"; then
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13292$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13293else
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295$as_echo "no" >&6; }
13296fi
13297
13298 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13299 MANIFEST_TOOL=":"
13300 else
13301 case $cross_compiling:$ac_tool_warned in
13302yes:)
13303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13305ac_tool_warned=yes ;;
13306esac
13307 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13308 fi
13309else
13310 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13311fi
13312
13313test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13315$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13316if ${lt_cv_path_mainfest_tool+:} false; then :
13317 $as_echo_n "(cached) " >&6
13318else
13319 lt_cv_path_mainfest_tool=no
13320 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13321 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13322 cat conftest.err >&5
13323 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13324 lt_cv_path_mainfest_tool=yes
13325 fi
13326 rm -f conftest*
13327fi
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13329$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13330if test "x$lt_cv_path_mainfest_tool" != xyes; then
13331 MANIFEST_TOOL=:
13332fi
13333
13334
13335
13336
13337
cristy73bd4a52010-10-05 11:24:23 +000013338
13339 case $host_os in
13340 rhapsody* | darwin*)
13341 if test -n "$ac_tool_prefix"; then
13342 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13343set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13345$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013346if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013347 $as_echo_n "(cached) " >&6
13348else
13349 if test -n "$DSYMUTIL"; then
13350 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13351else
13352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353for as_dir in $PATH
13354do
13355 IFS=$as_save_IFS
13356 test -z "$as_dir" && as_dir=.
13357 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013359 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13361 break 2
13362 fi
13363done
13364 done
13365IFS=$as_save_IFS
13366
13367fi
13368fi
13369DSYMUTIL=$ac_cv_prog_DSYMUTIL
13370if test -n "$DSYMUTIL"; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13372$as_echo "$DSYMUTIL" >&6; }
13373else
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375$as_echo "no" >&6; }
13376fi
13377
13378
13379fi
13380if test -z "$ac_cv_prog_DSYMUTIL"; then
13381 ac_ct_DSYMUTIL=$DSYMUTIL
13382 # Extract the first word of "dsymutil", so it can be a program name with args.
13383set dummy dsymutil; ac_word=$2
13384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13385$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013386if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013387 $as_echo_n "(cached) " >&6
13388else
13389 if test -n "$ac_ct_DSYMUTIL"; then
13390 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13391else
13392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13393for as_dir in $PATH
13394do
13395 IFS=$as_save_IFS
13396 test -z "$as_dir" && as_dir=.
13397 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013399 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13401 break 2
13402 fi
13403done
13404 done
13405IFS=$as_save_IFS
13406
13407fi
13408fi
13409ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13410if test -n "$ac_ct_DSYMUTIL"; then
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13412$as_echo "$ac_ct_DSYMUTIL" >&6; }
13413else
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415$as_echo "no" >&6; }
13416fi
13417
13418 if test "x$ac_ct_DSYMUTIL" = x; then
13419 DSYMUTIL=":"
13420 else
13421 case $cross_compiling:$ac_tool_warned in
13422yes:)
13423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13425ac_tool_warned=yes ;;
13426esac
13427 DSYMUTIL=$ac_ct_DSYMUTIL
13428 fi
13429else
13430 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13431fi
13432
13433 if test -n "$ac_tool_prefix"; then
13434 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13435set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13437$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013438if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013439 $as_echo_n "(cached) " >&6
13440else
13441 if test -n "$NMEDIT"; then
13442 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13443else
13444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13445for as_dir in $PATH
13446do
13447 IFS=$as_save_IFS
13448 test -z "$as_dir" && as_dir=.
13449 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013451 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13453 break 2
13454 fi
13455done
13456 done
13457IFS=$as_save_IFS
13458
13459fi
13460fi
13461NMEDIT=$ac_cv_prog_NMEDIT
13462if test -n "$NMEDIT"; then
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13464$as_echo "$NMEDIT" >&6; }
13465else
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467$as_echo "no" >&6; }
13468fi
13469
13470
13471fi
13472if test -z "$ac_cv_prog_NMEDIT"; then
13473 ac_ct_NMEDIT=$NMEDIT
13474 # Extract the first word of "nmedit", so it can be a program name with args.
13475set dummy nmedit; ac_word=$2
13476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13477$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013478if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013479 $as_echo_n "(cached) " >&6
13480else
13481 if test -n "$ac_ct_NMEDIT"; then
13482 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13483else
13484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13485for as_dir in $PATH
13486do
13487 IFS=$as_save_IFS
13488 test -z "$as_dir" && as_dir=.
13489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013491 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13493 break 2
13494 fi
13495done
13496 done
13497IFS=$as_save_IFS
13498
13499fi
13500fi
13501ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13502if test -n "$ac_ct_NMEDIT"; then
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13504$as_echo "$ac_ct_NMEDIT" >&6; }
13505else
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507$as_echo "no" >&6; }
13508fi
13509
13510 if test "x$ac_ct_NMEDIT" = x; then
13511 NMEDIT=":"
13512 else
13513 case $cross_compiling:$ac_tool_warned in
13514yes:)
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13517ac_tool_warned=yes ;;
13518esac
13519 NMEDIT=$ac_ct_NMEDIT
13520 fi
13521else
13522 NMEDIT="$ac_cv_prog_NMEDIT"
13523fi
13524
13525 if test -n "$ac_tool_prefix"; then
13526 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13527set dummy ${ac_tool_prefix}lipo; ac_word=$2
13528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13529$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013530if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013531 $as_echo_n "(cached) " >&6
13532else
13533 if test -n "$LIPO"; then
13534 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13535else
13536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13537for as_dir in $PATH
13538do
13539 IFS=$as_save_IFS
13540 test -z "$as_dir" && as_dir=.
13541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013543 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13545 break 2
13546 fi
13547done
13548 done
13549IFS=$as_save_IFS
13550
13551fi
13552fi
13553LIPO=$ac_cv_prog_LIPO
13554if test -n "$LIPO"; then
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13556$as_echo "$LIPO" >&6; }
13557else
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13559$as_echo "no" >&6; }
13560fi
13561
13562
13563fi
13564if test -z "$ac_cv_prog_LIPO"; then
13565 ac_ct_LIPO=$LIPO
13566 # Extract the first word of "lipo", so it can be a program name with args.
13567set dummy lipo; ac_word=$2
13568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13569$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013570if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013571 $as_echo_n "(cached) " >&6
13572else
13573 if test -n "$ac_ct_LIPO"; then
13574 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13575else
13576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13577for as_dir in $PATH
13578do
13579 IFS=$as_save_IFS
13580 test -z "$as_dir" && as_dir=.
13581 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013583 ac_cv_prog_ac_ct_LIPO="lipo"
13584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13585 break 2
13586 fi
13587done
13588 done
13589IFS=$as_save_IFS
13590
13591fi
13592fi
13593ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13594if test -n "$ac_ct_LIPO"; then
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13596$as_echo "$ac_ct_LIPO" >&6; }
13597else
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599$as_echo "no" >&6; }
13600fi
13601
13602 if test "x$ac_ct_LIPO" = x; then
13603 LIPO=":"
13604 else
13605 case $cross_compiling:$ac_tool_warned in
13606yes:)
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13609ac_tool_warned=yes ;;
13610esac
13611 LIPO=$ac_ct_LIPO
13612 fi
13613else
13614 LIPO="$ac_cv_prog_LIPO"
13615fi
13616
13617 if test -n "$ac_tool_prefix"; then
13618 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13619set dummy ${ac_tool_prefix}otool; ac_word=$2
13620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13621$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013622if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013623 $as_echo_n "(cached) " >&6
13624else
13625 if test -n "$OTOOL"; then
13626 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13627else
13628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629for as_dir in $PATH
13630do
13631 IFS=$as_save_IFS
13632 test -z "$as_dir" && as_dir=.
13633 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013635 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13637 break 2
13638 fi
13639done
13640 done
13641IFS=$as_save_IFS
13642
13643fi
13644fi
13645OTOOL=$ac_cv_prog_OTOOL
13646if test -n "$OTOOL"; then
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13648$as_echo "$OTOOL" >&6; }
13649else
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13651$as_echo "no" >&6; }
13652fi
13653
13654
13655fi
13656if test -z "$ac_cv_prog_OTOOL"; then
13657 ac_ct_OTOOL=$OTOOL
13658 # Extract the first word of "otool", so it can be a program name with args.
13659set dummy otool; ac_word=$2
13660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13661$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013662if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013663 $as_echo_n "(cached) " >&6
13664else
13665 if test -n "$ac_ct_OTOOL"; then
13666 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13667else
13668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669for as_dir in $PATH
13670do
13671 IFS=$as_save_IFS
13672 test -z "$as_dir" && as_dir=.
13673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013675 ac_cv_prog_ac_ct_OTOOL="otool"
13676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13677 break 2
13678 fi
13679done
13680 done
13681IFS=$as_save_IFS
13682
13683fi
13684fi
13685ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13686if test -n "$ac_ct_OTOOL"; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13688$as_echo "$ac_ct_OTOOL" >&6; }
13689else
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691$as_echo "no" >&6; }
13692fi
13693
13694 if test "x$ac_ct_OTOOL" = x; then
13695 OTOOL=":"
13696 else
13697 case $cross_compiling:$ac_tool_warned in
13698yes:)
13699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13701ac_tool_warned=yes ;;
13702esac
13703 OTOOL=$ac_ct_OTOOL
13704 fi
13705else
13706 OTOOL="$ac_cv_prog_OTOOL"
13707fi
13708
13709 if test -n "$ac_tool_prefix"; then
13710 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13711set dummy ${ac_tool_prefix}otool64; ac_word=$2
13712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13713$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013714if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013715 $as_echo_n "(cached) " >&6
13716else
13717 if test -n "$OTOOL64"; then
13718 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13719else
13720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13721for as_dir in $PATH
13722do
13723 IFS=$as_save_IFS
13724 test -z "$as_dir" && as_dir=.
13725 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013727 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13729 break 2
13730 fi
13731done
13732 done
13733IFS=$as_save_IFS
13734
13735fi
13736fi
13737OTOOL64=$ac_cv_prog_OTOOL64
13738if test -n "$OTOOL64"; then
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13740$as_echo "$OTOOL64" >&6; }
13741else
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13743$as_echo "no" >&6; }
13744fi
13745
13746
13747fi
13748if test -z "$ac_cv_prog_OTOOL64"; then
13749 ac_ct_OTOOL64=$OTOOL64
13750 # Extract the first word of "otool64", so it can be a program name with args.
13751set dummy otool64; ac_word=$2
13752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13753$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013754if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013755 $as_echo_n "(cached) " >&6
13756else
13757 if test -n "$ac_ct_OTOOL64"; then
13758 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13759else
13760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13761for as_dir in $PATH
13762do
13763 IFS=$as_save_IFS
13764 test -z "$as_dir" && as_dir=.
13765 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013767 ac_cv_prog_ac_ct_OTOOL64="otool64"
13768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13769 break 2
13770 fi
13771done
13772 done
13773IFS=$as_save_IFS
13774
13775fi
13776fi
13777ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13778if test -n "$ac_ct_OTOOL64"; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13780$as_echo "$ac_ct_OTOOL64" >&6; }
13781else
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13783$as_echo "no" >&6; }
13784fi
13785
13786 if test "x$ac_ct_OTOOL64" = x; then
13787 OTOOL64=":"
13788 else
13789 case $cross_compiling:$ac_tool_warned in
13790yes:)
13791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13793ac_tool_warned=yes ;;
13794esac
13795 OTOOL64=$ac_ct_OTOOL64
13796 fi
13797else
13798 OTOOL64="$ac_cv_prog_OTOOL64"
13799fi
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13828$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013829if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013830 $as_echo_n "(cached) " >&6
13831else
13832 lt_cv_apple_cc_single_mod=no
13833 if test -z "${LT_MULTI_MODULE}"; then
13834 # By default we will add the -single_module flag. You can override
13835 # by either setting the environment variable LT_MULTI_MODULE
13836 # non-empty at configure time, or by adding -multi_module to the
13837 # link flags.
13838 rm -rf libconftest.dylib*
13839 echo "int foo(void){return 1;}" > conftest.c
13840 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13841-dynamiclib -Wl,-single_module conftest.c" >&5
13842 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13843 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13844 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013845 # If there is a non-empty error log, and "single_module"
13846 # appears in it, assume the flag caused a linker warning
13847 if test -s conftest.err && $GREP single_module conftest.err; then
13848 cat conftest.err >&5
13849 # Otherwise, if the output was created with a 0 exit code from
13850 # the compiler, it worked.
13851 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013852 lt_cv_apple_cc_single_mod=yes
13853 else
13854 cat conftest.err >&5
13855 fi
13856 rm -rf libconftest.dylib*
13857 rm -f conftest.*
13858 fi
13859fi
13860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13861$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013862
cristy73bd4a52010-10-05 11:24:23 +000013863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13864$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013865if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013866 $as_echo_n "(cached) " >&6
13867else
13868 lt_cv_ld_exported_symbols_list=no
13869 save_LDFLAGS=$LDFLAGS
13870 echo "_main" > conftest.sym
13871 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873/* end confdefs.h. */
13874
13875int
13876main ()
13877{
13878
13879 ;
13880 return 0;
13881}
13882_ACEOF
13883if ac_fn_c_try_link "$LINENO"; then :
13884 lt_cv_ld_exported_symbols_list=yes
13885else
13886 lt_cv_ld_exported_symbols_list=no
13887fi
13888rm -f core conftest.err conftest.$ac_objext \
13889 conftest$ac_exeext conftest.$ac_ext
13890 LDFLAGS="$save_LDFLAGS"
13891
13892fi
13893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13894$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013895
cristy0c60a692010-11-04 01:09:47 +000013896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13897$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013898if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013899 $as_echo_n "(cached) " >&6
13900else
13901 lt_cv_ld_force_load=no
13902 cat > conftest.c << _LT_EOF
13903int forced_loaded() { return 2;}
13904_LT_EOF
13905 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13906 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13907 echo "$AR cru libconftest.a conftest.o" >&5
13908 $AR cru libconftest.a conftest.o 2>&5
13909 echo "$RANLIB libconftest.a" >&5
13910 $RANLIB libconftest.a 2>&5
13911 cat > conftest.c << _LT_EOF
13912int main() { return 0;}
13913_LT_EOF
13914 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13915 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13916 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013917 if test -s conftest.err && $GREP force_load conftest.err; then
13918 cat conftest.err >&5
13919 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013920 lt_cv_ld_force_load=yes
13921 else
13922 cat conftest.err >&5
13923 fi
13924 rm -f conftest.err libconftest.a conftest conftest.c
13925 rm -rf conftest.dSYM
13926
13927fi
13928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13929$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013930 case $host_os in
13931 rhapsody* | darwin1.[012])
13932 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13933 darwin1.*)
13934 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13935 darwin*) # darwin 5.x on
13936 # if running on 10.5 or later, the deployment target defaults
13937 # to the OS version, if on x86, and 10.4, the deployment
13938 # target defaults to 10.4. Don't you love it?
13939 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13940 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13941 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13942 10.[012]*)
13943 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13944 10.*)
13945 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13946 esac
13947 ;;
13948 esac
13949 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13950 _lt_dar_single_mod='$single_module'
13951 fi
13952 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13953 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13954 else
13955 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13956 fi
cristy0c60a692010-11-04 01:09:47 +000013957 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013958 _lt_dsymutil='~$DSYMUTIL $lib || :'
13959 else
13960 _lt_dsymutil=
13961 fi
13962 ;;
13963 esac
13964
13965for ac_header in dlfcn.h
13966do :
13967 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13968"
cristyda16f162011-02-19 23:52:17 +000013969if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013970 cat >>confdefs.h <<_ACEOF
13971#define HAVE_DLFCN_H 1
13972_ACEOF
13973
13974fi
13975
13976done
13977
13978
13979
cristy73bd4a52010-10-05 11:24:23 +000013980
cristyda16f162011-02-19 23:52:17 +000013981func_stripname_cnf ()
13982{
13983 case ${2} in
13984 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13985 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13986 esac
13987} # func_stripname_cnf
13988
13989
13990
cristy73bd4a52010-10-05 11:24:23 +000013991
13992
13993# Set options
13994enable_win32_dll=yes
13995
13996case $host in
cristy0c60a692010-11-04 01:09:47 +000013997*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013998 if test -n "$ac_tool_prefix"; then
13999 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14000set dummy ${ac_tool_prefix}as; ac_word=$2
14001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14002$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014003if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014004 $as_echo_n "(cached) " >&6
14005else
14006 if test -n "$AS"; then
14007 ac_cv_prog_AS="$AS" # Let the user override the test.
14008else
14009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14010for as_dir in $PATH
14011do
14012 IFS=$as_save_IFS
14013 test -z "$as_dir" && as_dir=.
14014 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014016 ac_cv_prog_AS="${ac_tool_prefix}as"
14017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14018 break 2
14019 fi
14020done
14021 done
14022IFS=$as_save_IFS
14023
14024fi
14025fi
14026AS=$ac_cv_prog_AS
14027if test -n "$AS"; then
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14029$as_echo "$AS" >&6; }
14030else
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14032$as_echo "no" >&6; }
14033fi
14034
14035
14036fi
14037if test -z "$ac_cv_prog_AS"; then
14038 ac_ct_AS=$AS
14039 # Extract the first word of "as", so it can be a program name with args.
14040set dummy as; ac_word=$2
14041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14042$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014043if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014044 $as_echo_n "(cached) " >&6
14045else
14046 if test -n "$ac_ct_AS"; then
14047 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14048else
14049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14050for as_dir in $PATH
14051do
14052 IFS=$as_save_IFS
14053 test -z "$as_dir" && as_dir=.
14054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014056 ac_cv_prog_ac_ct_AS="as"
14057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14058 break 2
14059 fi
14060done
14061 done
14062IFS=$as_save_IFS
14063
14064fi
14065fi
14066ac_ct_AS=$ac_cv_prog_ac_ct_AS
14067if test -n "$ac_ct_AS"; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14069$as_echo "$ac_ct_AS" >&6; }
14070else
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14072$as_echo "no" >&6; }
14073fi
14074
14075 if test "x$ac_ct_AS" = x; then
14076 AS="false"
14077 else
14078 case $cross_compiling:$ac_tool_warned in
14079yes:)
14080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14082ac_tool_warned=yes ;;
14083esac
14084 AS=$ac_ct_AS
14085 fi
14086else
14087 AS="$ac_cv_prog_AS"
14088fi
14089
14090 if test -n "$ac_tool_prefix"; then
14091 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14092set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14094$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014095if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014096 $as_echo_n "(cached) " >&6
14097else
14098 if test -n "$DLLTOOL"; then
14099 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14100else
14101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14102for as_dir in $PATH
14103do
14104 IFS=$as_save_IFS
14105 test -z "$as_dir" && as_dir=.
14106 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014108 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14110 break 2
14111 fi
14112done
14113 done
14114IFS=$as_save_IFS
14115
14116fi
14117fi
14118DLLTOOL=$ac_cv_prog_DLLTOOL
14119if test -n "$DLLTOOL"; then
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14121$as_echo "$DLLTOOL" >&6; }
14122else
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124$as_echo "no" >&6; }
14125fi
14126
14127
14128fi
14129if test -z "$ac_cv_prog_DLLTOOL"; then
14130 ac_ct_DLLTOOL=$DLLTOOL
14131 # Extract the first word of "dlltool", so it can be a program name with args.
14132set dummy dlltool; ac_word=$2
14133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14134$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014135if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014136 $as_echo_n "(cached) " >&6
14137else
14138 if test -n "$ac_ct_DLLTOOL"; then
14139 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14140else
14141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142for as_dir in $PATH
14143do
14144 IFS=$as_save_IFS
14145 test -z "$as_dir" && as_dir=.
14146 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014148 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14150 break 2
14151 fi
14152done
14153 done
14154IFS=$as_save_IFS
14155
14156fi
14157fi
14158ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14159if test -n "$ac_ct_DLLTOOL"; then
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14161$as_echo "$ac_ct_DLLTOOL" >&6; }
14162else
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14164$as_echo "no" >&6; }
14165fi
14166
14167 if test "x$ac_ct_DLLTOOL" = x; then
14168 DLLTOOL="false"
14169 else
14170 case $cross_compiling:$ac_tool_warned in
14171yes:)
14172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14174ac_tool_warned=yes ;;
14175esac
14176 DLLTOOL=$ac_ct_DLLTOOL
14177 fi
14178else
14179 DLLTOOL="$ac_cv_prog_DLLTOOL"
14180fi
14181
14182 if test -n "$ac_tool_prefix"; then
14183 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14184set dummy ${ac_tool_prefix}objdump; ac_word=$2
14185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14186$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014187if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014188 $as_echo_n "(cached) " >&6
14189else
14190 if test -n "$OBJDUMP"; then
14191 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14192else
14193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194for as_dir in $PATH
14195do
14196 IFS=$as_save_IFS
14197 test -z "$as_dir" && as_dir=.
14198 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014200 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14202 break 2
14203 fi
14204done
14205 done
14206IFS=$as_save_IFS
14207
14208fi
14209fi
14210OBJDUMP=$ac_cv_prog_OBJDUMP
14211if test -n "$OBJDUMP"; then
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14213$as_echo "$OBJDUMP" >&6; }
14214else
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216$as_echo "no" >&6; }
14217fi
14218
14219
14220fi
14221if test -z "$ac_cv_prog_OBJDUMP"; then
14222 ac_ct_OBJDUMP=$OBJDUMP
14223 # Extract the first word of "objdump", so it can be a program name with args.
14224set dummy objdump; ac_word=$2
14225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14226$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014227if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014228 $as_echo_n "(cached) " >&6
14229else
14230 if test -n "$ac_ct_OBJDUMP"; then
14231 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14232else
14233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14234for as_dir in $PATH
14235do
14236 IFS=$as_save_IFS
14237 test -z "$as_dir" && as_dir=.
14238 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014240 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14242 break 2
14243 fi
14244done
14245 done
14246IFS=$as_save_IFS
14247
14248fi
14249fi
14250ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14251if test -n "$ac_ct_OBJDUMP"; then
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14253$as_echo "$ac_ct_OBJDUMP" >&6; }
14254else
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14256$as_echo "no" >&6; }
14257fi
14258
14259 if test "x$ac_ct_OBJDUMP" = x; then
14260 OBJDUMP="false"
14261 else
14262 case $cross_compiling:$ac_tool_warned in
14263yes:)
14264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14266ac_tool_warned=yes ;;
14267esac
14268 OBJDUMP=$ac_ct_OBJDUMP
14269 fi
14270else
14271 OBJDUMP="$ac_cv_prog_OBJDUMP"
14272fi
14273
14274 ;;
14275esac
14276
14277test -z "$AS" && AS=as
14278
14279
14280
14281
14282
14283test -z "$DLLTOOL" && DLLTOOL=dlltool
14284
14285
14286
14287
14288
14289test -z "$OBJDUMP" && OBJDUMP=objdump
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299 # Check whether --enable-shared was given.
14300if test "${enable_shared+set}" = set; then :
14301 enableval=$enable_shared; p=${PACKAGE-default}
14302 case $enableval in
14303 yes) enable_shared=yes ;;
14304 no) enable_shared=no ;;
14305 *)
14306 enable_shared=no
14307 # Look at the argument we got. We use all the common list separators.
14308 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14309 for pkg in $enableval; do
14310 IFS="$lt_save_ifs"
14311 if test "X$pkg" = "X$p"; then
14312 enable_shared=yes
14313 fi
14314 done
14315 IFS="$lt_save_ifs"
14316 ;;
14317 esac
14318else
14319 enable_shared=yes
14320fi
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330 # Check whether --enable-static was given.
14331if test "${enable_static+set}" = set; then :
14332 enableval=$enable_static; p=${PACKAGE-default}
14333 case $enableval in
14334 yes) enable_static=yes ;;
14335 no) enable_static=no ;;
14336 *)
14337 enable_static=no
14338 # Look at the argument we got. We use all the common list separators.
14339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14340 for pkg in $enableval; do
14341 IFS="$lt_save_ifs"
14342 if test "X$pkg" = "X$p"; then
14343 enable_static=yes
14344 fi
14345 done
14346 IFS="$lt_save_ifs"
14347 ;;
14348 esac
14349else
14350 enable_static=yes
14351fi
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362# Check whether --with-pic was given.
14363if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014364 withval=$with_pic; lt_p=${PACKAGE-default}
14365 case $withval in
14366 yes|no) pic_mode=$withval ;;
14367 *)
14368 pic_mode=default
14369 # Look at the argument we got. We use all the common list separators.
14370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14371 for lt_pkg in $withval; do
14372 IFS="$lt_save_ifs"
14373 if test "X$lt_pkg" = "X$lt_p"; then
14374 pic_mode=yes
14375 fi
14376 done
14377 IFS="$lt_save_ifs"
14378 ;;
14379 esac
cristy73bd4a52010-10-05 11:24:23 +000014380else
14381 pic_mode=default
14382fi
14383
14384
14385test -z "$pic_mode" && pic_mode=default
14386
14387
14388
14389
14390
14391
14392
14393 # Check whether --enable-fast-install was given.
14394if test "${enable_fast_install+set}" = set; then :
14395 enableval=$enable_fast_install; p=${PACKAGE-default}
14396 case $enableval in
14397 yes) enable_fast_install=yes ;;
14398 no) enable_fast_install=no ;;
14399 *)
14400 enable_fast_install=no
14401 # Look at the argument we got. We use all the common list separators.
14402 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14403 for pkg in $enableval; do
14404 IFS="$lt_save_ifs"
14405 if test "X$pkg" = "X$p"; then
14406 enable_fast_install=yes
14407 fi
14408 done
14409 IFS="$lt_save_ifs"
14410 ;;
14411 esac
14412else
14413 enable_fast_install=yes
14414fi
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426# This can be used to rebuild libtool when needed
14427LIBTOOL_DEPS="$ltmain"
14428
14429# Always use our own libtool.
14430LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
cristy0c60a692010-11-04 01:09:47 +000014456
cristy99bd5232011-12-07 14:38:20 +000014457
14458
14459
14460
cristy73bd4a52010-10-05 11:24:23 +000014461test -z "$LN_S" && LN_S="ln -s"
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476if test -n "${ZSH_VERSION+set}" ; then
14477 setopt NO_GLOB_SUBST
14478fi
14479
14480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14481$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014482if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014483 $as_echo_n "(cached) " >&6
14484else
14485 rm -f .libs 2>/dev/null
14486mkdir .libs 2>/dev/null
14487if test -d .libs; then
14488 lt_cv_objdir=.libs
14489else
14490 # MS-DOS does not allow filenames that begin with a dot.
14491 lt_cv_objdir=_libs
14492fi
14493rmdir .libs 2>/dev/null
14494fi
14495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14496$as_echo "$lt_cv_objdir" >&6; }
14497objdir=$lt_cv_objdir
14498
14499
14500
14501
14502
14503cat >>confdefs.h <<_ACEOF
14504#define LT_OBJDIR "$lt_cv_objdir/"
14505_ACEOF
14506
14507
14508
14509
cristy73bd4a52010-10-05 11:24:23 +000014510case $host_os in
14511aix3*)
14512 # AIX sometimes has problems with the GCC collect2 program. For some
14513 # reason, if we set the COLLECT_NAMES environment variable, the problems
14514 # vanish in a puff of smoke.
14515 if test "X${COLLECT_NAMES+set}" != Xset; then
14516 COLLECT_NAMES=
14517 export COLLECT_NAMES
14518 fi
14519 ;;
14520esac
14521
cristy73bd4a52010-10-05 11:24:23 +000014522# Global variables:
14523ofile=libtool
14524can_build_shared=yes
14525
14526# All known linkers require a `.a' archive for static linking (except MSVC,
14527# which needs '.lib').
14528libext=a
14529
14530with_gnu_ld="$lt_cv_prog_gnu_ld"
14531
14532old_CC="$CC"
14533old_CFLAGS="$CFLAGS"
14534
14535# Set sane defaults for various variables
14536test -z "$CC" && CC=cc
14537test -z "$LTCC" && LTCC=$CC
14538test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14539test -z "$LD" && LD=ld
14540test -z "$ac_objext" && ac_objext=o
14541
14542for cc_temp in $compiler""; do
14543 case $cc_temp in
14544 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14545 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14546 \-*) ;;
14547 *) break;;
14548 esac
14549done
cristy0c60a692010-11-04 01:09:47 +000014550cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014551
14552
14553# Only perform the check for file, if the check method requires it
14554test -z "$MAGIC_CMD" && MAGIC_CMD=file
14555case $deplibs_check_method in
14556file_magic*)
14557 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14559$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014560if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014561 $as_echo_n "(cached) " >&6
14562else
14563 case $MAGIC_CMD in
14564[\\/*] | ?:[\\/]*)
14565 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14566 ;;
14567*)
14568 lt_save_MAGIC_CMD="$MAGIC_CMD"
14569 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14570 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14571 for ac_dir in $ac_dummy; do
14572 IFS="$lt_save_ifs"
14573 test -z "$ac_dir" && ac_dir=.
14574 if test -f $ac_dir/${ac_tool_prefix}file; then
14575 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14576 if test -n "$file_magic_test_file"; then
14577 case $deplibs_check_method in
14578 "file_magic "*)
14579 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14581 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14582 $EGREP "$file_magic_regex" > /dev/null; then
14583 :
14584 else
14585 cat <<_LT_EOF 1>&2
14586
14587*** Warning: the command libtool uses to detect shared libraries,
14588*** $file_magic_cmd, produces output that libtool cannot recognize.
14589*** The result is that libtool may fail to recognize shared libraries
14590*** as such. This will affect the creation of libtool libraries that
14591*** depend on shared libraries, but programs linked with such libtool
14592*** libraries will work regardless of this problem. Nevertheless, you
14593*** may want to report the problem to your system manager and/or to
14594*** bug-libtool@gnu.org
14595
14596_LT_EOF
14597 fi ;;
14598 esac
14599 fi
14600 break
14601 fi
14602 done
14603 IFS="$lt_save_ifs"
14604 MAGIC_CMD="$lt_save_MAGIC_CMD"
14605 ;;
14606esac
14607fi
14608
14609MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14610if test -n "$MAGIC_CMD"; then
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14612$as_echo "$MAGIC_CMD" >&6; }
14613else
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14615$as_echo "no" >&6; }
14616fi
14617
14618
14619
14620
14621
14622if test -z "$lt_cv_path_MAGIC_CMD"; then
14623 if test -n "$ac_tool_prefix"; then
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14625$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014626if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014627 $as_echo_n "(cached) " >&6
14628else
14629 case $MAGIC_CMD in
14630[\\/*] | ?:[\\/]*)
14631 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14632 ;;
14633*)
14634 lt_save_MAGIC_CMD="$MAGIC_CMD"
14635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14636 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14637 for ac_dir in $ac_dummy; do
14638 IFS="$lt_save_ifs"
14639 test -z "$ac_dir" && ac_dir=.
14640 if test -f $ac_dir/file; then
14641 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14642 if test -n "$file_magic_test_file"; then
14643 case $deplibs_check_method in
14644 "file_magic "*)
14645 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14646 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14647 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14648 $EGREP "$file_magic_regex" > /dev/null; then
14649 :
14650 else
14651 cat <<_LT_EOF 1>&2
14652
14653*** Warning: the command libtool uses to detect shared libraries,
14654*** $file_magic_cmd, produces output that libtool cannot recognize.
14655*** The result is that libtool may fail to recognize shared libraries
14656*** as such. This will affect the creation of libtool libraries that
14657*** depend on shared libraries, but programs linked with such libtool
14658*** libraries will work regardless of this problem. Nevertheless, you
14659*** may want to report the problem to your system manager and/or to
14660*** bug-libtool@gnu.org
14661
14662_LT_EOF
14663 fi ;;
14664 esac
14665 fi
14666 break
14667 fi
14668 done
14669 IFS="$lt_save_ifs"
14670 MAGIC_CMD="$lt_save_MAGIC_CMD"
14671 ;;
14672esac
14673fi
14674
14675MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14676if test -n "$MAGIC_CMD"; then
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14678$as_echo "$MAGIC_CMD" >&6; }
14679else
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681$as_echo "no" >&6; }
14682fi
14683
14684
14685 else
14686 MAGIC_CMD=:
14687 fi
14688fi
14689
14690 fi
14691 ;;
14692esac
14693
14694# Use C for the default configuration in the libtool script
14695
14696lt_save_CC="$CC"
14697ac_ext=c
14698ac_cpp='$CPP $CPPFLAGS'
14699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14701ac_compiler_gnu=$ac_cv_c_compiler_gnu
14702
14703
14704# Source file extension for C test sources.
14705ac_ext=c
14706
14707# Object file extension for compiled C test sources.
14708objext=o
14709objext=$objext
14710
14711# Code to be used in simple compile tests
14712lt_simple_compile_test_code="int some_variable = 0;"
14713
14714# Code to be used in simple link tests
14715lt_simple_link_test_code='int main(){return(0);}'
14716
14717
14718
14719
14720
14721
14722
14723# If no C compiler was specified, use CC.
14724LTCC=${LTCC-"$CC"}
14725
14726# If no C compiler flags were specified, use CFLAGS.
14727LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14728
14729# Allow CC to be a program name with arguments.
14730compiler=$CC
14731
14732# Save the default compiler, since it gets overwritten when the other
14733# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14734compiler_DEFAULT=$CC
14735
14736# save warnings/boilerplate of simple test code
14737ac_outfile=conftest.$ac_objext
14738echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14739eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14740_lt_compiler_boilerplate=`cat conftest.err`
14741$RM conftest*
14742
14743ac_outfile=conftest.$ac_objext
14744echo "$lt_simple_link_test_code" >conftest.$ac_ext
14745eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14746_lt_linker_boilerplate=`cat conftest.err`
14747$RM -r conftest*
14748
14749
14750## CAVEAT EMPTOR:
14751## There is no encapsulation within the following macros, do not change
14752## the running order or otherwise move them around unless you know exactly
14753## what you are doing...
14754if test -n "$compiler"; then
14755
14756lt_prog_compiler_no_builtin_flag=
14757
14758if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014759 case $cc_basename in
14760 nvcc*)
14761 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14762 *)
14763 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14764 esac
cristy73bd4a52010-10-05 11:24:23 +000014765
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14767$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014768if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014769 $as_echo_n "(cached) " >&6
14770else
14771 lt_cv_prog_compiler_rtti_exceptions=no
14772 ac_outfile=conftest.$ac_objext
14773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14774 lt_compiler_flag="-fno-rtti -fno-exceptions"
14775 # Insert the option either (1) after the last *FLAGS variable, or
14776 # (2) before a word containing "conftest.", or (3) at the end.
14777 # Note that $ac_compile itself does not contain backslashes and begins
14778 # with a dollar sign (not a hyphen), so the echo should work correctly.
14779 # The option is referenced via a variable to avoid confusing sed.
14780 lt_compile=`echo "$ac_compile" | $SED \
14781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14783 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014784 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014785 (eval "$lt_compile" 2>conftest.err)
14786 ac_status=$?
14787 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014789 if (exit $ac_status) && test -s "$ac_outfile"; then
14790 # The compiler can only warn and ignore the option if not recognized
14791 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014792 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14794 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14795 lt_cv_prog_compiler_rtti_exceptions=yes
14796 fi
14797 fi
14798 $RM conftest*
14799
14800fi
14801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14802$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14803
14804if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14805 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14806else
14807 :
14808fi
14809
14810fi
14811
14812
14813
14814
14815
14816
14817 lt_prog_compiler_wl=
14818lt_prog_compiler_pic=
14819lt_prog_compiler_static=
14820
cristy73bd4a52010-10-05 11:24:23 +000014821
14822 if test "$GCC" = yes; then
14823 lt_prog_compiler_wl='-Wl,'
14824 lt_prog_compiler_static='-static'
14825
14826 case $host_os in
14827 aix*)
14828 # All AIX code is PIC.
14829 if test "$host_cpu" = ia64; then
14830 # AIX 5 now supports IA64 processor
14831 lt_prog_compiler_static='-Bstatic'
14832 fi
14833 ;;
14834
14835 amigaos*)
14836 case $host_cpu in
14837 powerpc)
14838 # see comment about AmigaOS4 .so support
14839 lt_prog_compiler_pic='-fPIC'
14840 ;;
14841 m68k)
14842 # FIXME: we need at least 68020 code to build shared libraries, but
14843 # adding the `-m68020' flag to GCC prevents building anything better,
14844 # like `-m68040'.
14845 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14846 ;;
14847 esac
14848 ;;
14849
14850 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14851 # PIC is the default for these OSes.
14852 ;;
14853
14854 mingw* | cygwin* | pw32* | os2* | cegcc*)
14855 # This hack is so that the source file can tell whether it is being
14856 # built for inclusion in a dll (and should export symbols for example).
14857 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14858 # (--disable-auto-import) libraries
14859 lt_prog_compiler_pic='-DDLL_EXPORT'
14860 ;;
14861
14862 darwin* | rhapsody*)
14863 # PIC is the default on this platform
14864 # Common symbols not allowed in MH_DYLIB files
14865 lt_prog_compiler_pic='-fno-common'
14866 ;;
14867
cristy0c60a692010-11-04 01:09:47 +000014868 haiku*)
14869 # PIC is the default for Haiku.
14870 # The "-static" flag exists, but is broken.
14871 lt_prog_compiler_static=
14872 ;;
14873
cristy73bd4a52010-10-05 11:24:23 +000014874 hpux*)
14875 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14876 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14877 # sets the default TLS model and affects inlining.
14878 case $host_cpu in
14879 hppa*64*)
14880 # +Z the default
14881 ;;
14882 *)
14883 lt_prog_compiler_pic='-fPIC'
14884 ;;
14885 esac
14886 ;;
14887
14888 interix[3-9]*)
14889 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14890 # Instead, we relocate shared libraries at runtime.
14891 ;;
14892
14893 msdosdjgpp*)
14894 # Just because we use GCC doesn't mean we suddenly get shared libraries
14895 # on systems that don't support them.
14896 lt_prog_compiler_can_build_shared=no
14897 enable_shared=no
14898 ;;
14899
14900 *nto* | *qnx*)
14901 # QNX uses GNU C++, but need to define -shared option too, otherwise
14902 # it will coredump.
14903 lt_prog_compiler_pic='-fPIC -shared'
14904 ;;
14905
14906 sysv4*MP*)
14907 if test -d /usr/nec; then
14908 lt_prog_compiler_pic=-Kconform_pic
14909 fi
14910 ;;
14911
14912 *)
14913 lt_prog_compiler_pic='-fPIC'
14914 ;;
14915 esac
cristy0c60a692010-11-04 01:09:47 +000014916
14917 case $cc_basename in
14918 nvcc*) # Cuda Compiler Driver 2.2
14919 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014920 if test -n "$lt_prog_compiler_pic"; then
14921 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14922 fi
cristy0c60a692010-11-04 01:09:47 +000014923 ;;
14924 esac
cristy73bd4a52010-10-05 11:24:23 +000014925 else
14926 # PORTME Check for flag to pass linker flags through the system compiler.
14927 case $host_os in
14928 aix*)
14929 lt_prog_compiler_wl='-Wl,'
14930 if test "$host_cpu" = ia64; then
14931 # AIX 5 now supports IA64 processor
14932 lt_prog_compiler_static='-Bstatic'
14933 else
14934 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14935 fi
14936 ;;
14937
14938 mingw* | cygwin* | pw32* | os2* | cegcc*)
14939 # This hack is so that the source file can tell whether it is being
14940 # built for inclusion in a dll (and should export symbols for example).
14941 lt_prog_compiler_pic='-DDLL_EXPORT'
14942 ;;
14943
14944 hpux9* | hpux10* | hpux11*)
14945 lt_prog_compiler_wl='-Wl,'
14946 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14947 # not for PA HP-UX.
14948 case $host_cpu in
14949 hppa*64*|ia64*)
14950 # +Z the default
14951 ;;
14952 *)
14953 lt_prog_compiler_pic='+Z'
14954 ;;
14955 esac
14956 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14957 lt_prog_compiler_static='${wl}-a ${wl}archive'
14958 ;;
14959
14960 irix5* | irix6* | nonstopux*)
14961 lt_prog_compiler_wl='-Wl,'
14962 # PIC (with -KPIC) is the default.
14963 lt_prog_compiler_static='-non_shared'
14964 ;;
14965
cristy0c60a692010-11-04 01:09:47 +000014966 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014967 case $cc_basename in
14968 # old Intel for x86_64 which still supported -KPIC.
14969 ecc*)
14970 lt_prog_compiler_wl='-Wl,'
14971 lt_prog_compiler_pic='-KPIC'
14972 lt_prog_compiler_static='-static'
14973 ;;
14974 # icc used to be incompatible with GCC.
14975 # ICC 10 doesn't accept -KPIC any more.
14976 icc* | ifort*)
14977 lt_prog_compiler_wl='-Wl,'
14978 lt_prog_compiler_pic='-fPIC'
14979 lt_prog_compiler_static='-static'
14980 ;;
14981 # Lahey Fortran 8.1.
14982 lf95*)
14983 lt_prog_compiler_wl='-Wl,'
14984 lt_prog_compiler_pic='--shared'
14985 lt_prog_compiler_static='--static'
14986 ;;
cristyda16f162011-02-19 23:52:17 +000014987 nagfor*)
14988 # NAG Fortran compiler
14989 lt_prog_compiler_wl='-Wl,-Wl,,'
14990 lt_prog_compiler_pic='-PIC'
14991 lt_prog_compiler_static='-Bstatic'
14992 ;;
cristy0c60a692010-11-04 01:09:47 +000014993 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014994 # Portland Group compilers (*not* the Pentium gcc compiler,
14995 # which looks to be a dead project)
14996 lt_prog_compiler_wl='-Wl,'
14997 lt_prog_compiler_pic='-fpic'
14998 lt_prog_compiler_static='-Bstatic'
14999 ;;
15000 ccc*)
15001 lt_prog_compiler_wl='-Wl,'
15002 # All Alpha code is PIC.
15003 lt_prog_compiler_static='-non_shared'
15004 ;;
cristy0c60a692010-11-04 01:09:47 +000015005 xl* | bgxl* | bgf* | mpixl*)
15006 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000015007 lt_prog_compiler_wl='-Wl,'
15008 lt_prog_compiler_pic='-qpic'
15009 lt_prog_compiler_static='-qstaticlink'
15010 ;;
15011 *)
15012 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000015013 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000015014 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15015 lt_prog_compiler_pic='-KPIC'
15016 lt_prog_compiler_static='-Bstatic'
15017 lt_prog_compiler_wl=''
15018 ;;
cristy99bd5232011-12-07 14:38:20 +000015019 *Sun\ F* | *Sun*Fortran*)
15020 lt_prog_compiler_pic='-KPIC'
15021 lt_prog_compiler_static='-Bstatic'
15022 lt_prog_compiler_wl='-Qoption ld '
15023 ;;
cristy73bd4a52010-10-05 11:24:23 +000015024 *Sun\ C*)
15025 # Sun C 5.9
15026 lt_prog_compiler_pic='-KPIC'
15027 lt_prog_compiler_static='-Bstatic'
15028 lt_prog_compiler_wl='-Wl,'
15029 ;;
cristy99bd5232011-12-07 14:38:20 +000015030 *Intel*\ [CF]*Compiler*)
15031 lt_prog_compiler_wl='-Wl,'
15032 lt_prog_compiler_pic='-fPIC'
15033 lt_prog_compiler_static='-static'
15034 ;;
15035 *Portland\ Group*)
15036 lt_prog_compiler_wl='-Wl,'
15037 lt_prog_compiler_pic='-fpic'
15038 lt_prog_compiler_static='-Bstatic'
15039 ;;
cristy73bd4a52010-10-05 11:24:23 +000015040 esac
15041 ;;
15042 esac
15043 ;;
15044
15045 newsos6)
15046 lt_prog_compiler_pic='-KPIC'
15047 lt_prog_compiler_static='-Bstatic'
15048 ;;
15049
15050 *nto* | *qnx*)
15051 # QNX uses GNU C++, but need to define -shared option too, otherwise
15052 # it will coredump.
15053 lt_prog_compiler_pic='-fPIC -shared'
15054 ;;
15055
15056 osf3* | osf4* | osf5*)
15057 lt_prog_compiler_wl='-Wl,'
15058 # All OSF/1 code is PIC.
15059 lt_prog_compiler_static='-non_shared'
15060 ;;
15061
15062 rdos*)
15063 lt_prog_compiler_static='-non_shared'
15064 ;;
15065
15066 solaris*)
15067 lt_prog_compiler_pic='-KPIC'
15068 lt_prog_compiler_static='-Bstatic'
15069 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015070 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000015071 lt_prog_compiler_wl='-Qoption ld ';;
15072 *)
15073 lt_prog_compiler_wl='-Wl,';;
15074 esac
15075 ;;
15076
15077 sunos4*)
15078 lt_prog_compiler_wl='-Qoption ld '
15079 lt_prog_compiler_pic='-PIC'
15080 lt_prog_compiler_static='-Bstatic'
15081 ;;
15082
15083 sysv4 | sysv4.2uw2* | sysv4.3*)
15084 lt_prog_compiler_wl='-Wl,'
15085 lt_prog_compiler_pic='-KPIC'
15086 lt_prog_compiler_static='-Bstatic'
15087 ;;
15088
15089 sysv4*MP*)
15090 if test -d /usr/nec ;then
15091 lt_prog_compiler_pic='-Kconform_pic'
15092 lt_prog_compiler_static='-Bstatic'
15093 fi
15094 ;;
15095
15096 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15097 lt_prog_compiler_wl='-Wl,'
15098 lt_prog_compiler_pic='-KPIC'
15099 lt_prog_compiler_static='-Bstatic'
15100 ;;
15101
15102 unicos*)
15103 lt_prog_compiler_wl='-Wl,'
15104 lt_prog_compiler_can_build_shared=no
15105 ;;
15106
15107 uts4*)
15108 lt_prog_compiler_pic='-pic'
15109 lt_prog_compiler_static='-Bstatic'
15110 ;;
15111
15112 *)
15113 lt_prog_compiler_can_build_shared=no
15114 ;;
15115 esac
15116 fi
15117
15118case $host_os in
15119 # For platforms which do not support PIC, -DPIC is meaningless:
15120 *djgpp*)
15121 lt_prog_compiler_pic=
15122 ;;
15123 *)
15124 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15125 ;;
15126esac
cristy73bd4a52010-10-05 11:24:23 +000015127
cristyda16f162011-02-19 23:52:17 +000015128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15129$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15130if ${lt_cv_prog_compiler_pic+:} false; then :
15131 $as_echo_n "(cached) " >&6
15132else
15133 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15134fi
15135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15136$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15137lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000015138
15139#
15140# Check to make sure the PIC flag actually works.
15141#
15142if test -n "$lt_prog_compiler_pic"; then
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15144$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015145if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015146 $as_echo_n "(cached) " >&6
15147else
15148 lt_cv_prog_compiler_pic_works=no
15149 ac_outfile=conftest.$ac_objext
15150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15151 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15152 # Insert the option either (1) after the last *FLAGS variable, or
15153 # (2) before a word containing "conftest.", or (3) at the end.
15154 # Note that $ac_compile itself does not contain backslashes and begins
15155 # with a dollar sign (not a hyphen), so the echo should work correctly.
15156 # The option is referenced via a variable to avoid confusing sed.
15157 lt_compile=`echo "$ac_compile" | $SED \
15158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15160 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015161 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015162 (eval "$lt_compile" 2>conftest.err)
15163 ac_status=$?
15164 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015166 if (exit $ac_status) && test -s "$ac_outfile"; then
15167 # The compiler can only warn and ignore the option if not recognized
15168 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000015169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15171 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15172 lt_cv_prog_compiler_pic_works=yes
15173 fi
15174 fi
15175 $RM conftest*
15176
15177fi
15178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15179$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15180
15181if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15182 case $lt_prog_compiler_pic in
15183 "" | " "*) ;;
15184 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15185 esac
15186else
15187 lt_prog_compiler_pic=
15188 lt_prog_compiler_can_build_shared=no
15189fi
15190
15191fi
15192
15193
15194
15195
15196
15197
cristyda16f162011-02-19 23:52:17 +000015198
15199
15200
15201
15202
cristy73bd4a52010-10-05 11:24:23 +000015203#
15204# Check to make sure the static flag actually works.
15205#
15206wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15208$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015209if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015210 $as_echo_n "(cached) " >&6
15211else
15212 lt_cv_prog_compiler_static_works=no
15213 save_LDFLAGS="$LDFLAGS"
15214 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15215 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15216 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15217 # The linker can only warn and ignore the option if not recognized
15218 # So say no if there are warnings
15219 if test -s conftest.err; then
15220 # Append any errors to the config.log.
15221 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000015222 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15224 if diff conftest.exp conftest.er2 >/dev/null; then
15225 lt_cv_prog_compiler_static_works=yes
15226 fi
15227 else
15228 lt_cv_prog_compiler_static_works=yes
15229 fi
15230 fi
15231 $RM -r conftest*
15232 LDFLAGS="$save_LDFLAGS"
15233
15234fi
15235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15236$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15237
15238if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15239 :
15240else
15241 lt_prog_compiler_static=
15242fi
15243
15244
15245
15246
15247
15248
15249
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15251$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015252if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015253 $as_echo_n "(cached) " >&6
15254else
15255 lt_cv_prog_compiler_c_o=no
15256 $RM -r conftest 2>/dev/null
15257 mkdir conftest
15258 cd conftest
15259 mkdir out
15260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15261
15262 lt_compiler_flag="-o out/conftest2.$ac_objext"
15263 # Insert the option either (1) after the last *FLAGS variable, or
15264 # (2) before a word containing "conftest.", or (3) at the end.
15265 # Note that $ac_compile itself does not contain backslashes and begins
15266 # with a dollar sign (not a hyphen), so the echo should work correctly.
15267 lt_compile=`echo "$ac_compile" | $SED \
15268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15270 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015272 (eval "$lt_compile" 2>out/conftest.err)
15273 ac_status=$?
15274 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015276 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15277 then
15278 # The compiler can only warn and ignore the option if not recognized
15279 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015280 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015281 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15282 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15283 lt_cv_prog_compiler_c_o=yes
15284 fi
15285 fi
15286 chmod u+w . 2>&5
15287 $RM conftest*
15288 # SGI C++ compiler will create directory out/ii_files/ for
15289 # template instantiation
15290 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15291 $RM out/* && rmdir out
15292 cd ..
15293 $RM -r conftest
15294 $RM conftest*
15295
15296fi
15297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15298$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15299
15300
15301
15302
15303
15304
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15306$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015307if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015308 $as_echo_n "(cached) " >&6
15309else
15310 lt_cv_prog_compiler_c_o=no
15311 $RM -r conftest 2>/dev/null
15312 mkdir conftest
15313 cd conftest
15314 mkdir out
15315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15316
15317 lt_compiler_flag="-o out/conftest2.$ac_objext"
15318 # Insert the option either (1) after the last *FLAGS variable, or
15319 # (2) before a word containing "conftest.", or (3) at the end.
15320 # Note that $ac_compile itself does not contain backslashes and begins
15321 # with a dollar sign (not a hyphen), so the echo should work correctly.
15322 lt_compile=`echo "$ac_compile" | $SED \
15323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15325 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015326 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015327 (eval "$lt_compile" 2>out/conftest.err)
15328 ac_status=$?
15329 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015331 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15332 then
15333 # The compiler can only warn and ignore the option if not recognized
15334 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015336 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15337 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15338 lt_cv_prog_compiler_c_o=yes
15339 fi
15340 fi
15341 chmod u+w . 2>&5
15342 $RM conftest*
15343 # SGI C++ compiler will create directory out/ii_files/ for
15344 # template instantiation
15345 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15346 $RM out/* && rmdir out
15347 cd ..
15348 $RM -r conftest
15349 $RM conftest*
15350
15351fi
15352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15353$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15354
15355
15356
15357
15358hard_links="nottested"
15359if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15360 # do not overwrite the value of need_locks provided by the user
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15362$as_echo_n "checking if we can lock with hard links... " >&6; }
15363 hard_links=yes
15364 $RM conftest*
15365 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15366 touch conftest.a
15367 ln conftest.a conftest.b 2>&5 || hard_links=no
15368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15370$as_echo "$hard_links" >&6; }
15371 if test "$hard_links" = no; then
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15373$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15374 need_locks=warn
15375 fi
15376else
15377 need_locks=no
15378fi
15379
15380
15381
15382
15383
15384
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15386$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15387
15388 runpath_var=
15389 allow_undefined_flag=
15390 always_export_symbols=no
15391 archive_cmds=
15392 archive_expsym_cmds=
15393 compiler_needs_object=no
15394 enable_shared_with_static_runtimes=no
15395 export_dynamic_flag_spec=
15396 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15397 hardcode_automatic=no
15398 hardcode_direct=no
15399 hardcode_direct_absolute=no
15400 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015401 hardcode_libdir_separator=
15402 hardcode_minus_L=no
15403 hardcode_shlibpath_var=unsupported
15404 inherit_rpath=no
15405 link_all_deplibs=unknown
15406 module_cmds=
15407 module_expsym_cmds=
15408 old_archive_from_new_cmds=
15409 old_archive_from_expsyms_cmds=
15410 thread_safe_flag_spec=
15411 whole_archive_flag_spec=
15412 # include_expsyms should be a list of space-separated symbols to be *always*
15413 # included in the symbol list
15414 include_expsyms=
15415 # exclude_expsyms can be an extended regexp of symbols to exclude
15416 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15417 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15418 # as well as any symbol that contains `d'.
15419 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15420 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15421 # platforms (ab)use it in PIC code, but their linkers get confused if
15422 # the symbol is explicitly referenced. Since portable code cannot
15423 # rely on this symbol name, it's probably fine to never include it in
15424 # preloaded symbol tables.
15425 # Exclude shared library initialization/finalization symbols.
15426 extract_expsyms_cmds=
15427
15428 case $host_os in
15429 cygwin* | mingw* | pw32* | cegcc*)
15430 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15431 # When not using gcc, we currently assume that we are using
15432 # Microsoft Visual C++.
15433 if test "$GCC" != yes; then
15434 with_gnu_ld=no
15435 fi
15436 ;;
15437 interix*)
15438 # we just hope/assume this is gcc and not c89 (= MSVC++)
15439 with_gnu_ld=yes
15440 ;;
15441 openbsd*)
15442 with_gnu_ld=no
15443 ;;
15444 esac
15445
15446 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015447
15448 # On some targets, GNU ld is compatible enough with the native linker
15449 # that we're better off using the native interface for both.
15450 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015451 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015452 case $host_os in
15453 aix*)
15454 # The AIX port of GNU ld has always aspired to compatibility
15455 # with the native linker. However, as the warning in the GNU ld
15456 # block says, versions before 2.19.5* couldn't really create working
15457 # shared libraries, regardless of the interface used.
15458 case `$LD -v 2>&1` in
15459 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15460 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15461 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15462 *)
15463 lt_use_gnu_ld_interface=yes
15464 ;;
15465 esac
15466 ;;
15467 *)
15468 lt_use_gnu_ld_interface=yes
15469 ;;
15470 esac
15471 fi
15472
15473 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015474 # If archive_cmds runs LD, not CC, wlarc should be empty
15475 wlarc='${wl}'
15476
15477 # Set some defaults for GNU ld with shared library support. These
15478 # are reset later if shared libraries are not supported. Putting them
15479 # here allows them to be overridden if necessary.
15480 runpath_var=LD_RUN_PATH
15481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15482 export_dynamic_flag_spec='${wl}--export-dynamic'
15483 # ancient GNU ld didn't support --whole-archive et. al.
15484 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15485 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15486 else
15487 whole_archive_flag_spec=
15488 fi
15489 supports_anon_versioning=no
15490 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015491 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015492 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15493 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15494 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15495 *\ 2.11.*) ;; # other 2.11 versions
15496 *) supports_anon_versioning=yes ;;
15497 esac
15498
15499 # See if GNU ld supports shared libraries.
15500 case $host_os in
15501 aix[3-9]*)
15502 # On AIX/PPC, the GNU linker is very broken
15503 if test "$host_cpu" != ia64; then
15504 ld_shlibs=no
15505 cat <<_LT_EOF 1>&2
15506
cristy0c60a692010-11-04 01:09:47 +000015507*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015508*** to be unable to reliably create shared libraries on AIX.
15509*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015510*** really care for shared libraries, you may want to install binutils
15511*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15512*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015513
15514_LT_EOF
15515 fi
15516 ;;
15517
15518 amigaos*)
15519 case $host_cpu in
15520 powerpc)
15521 # see comment about AmigaOS4 .so support
15522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15523 archive_expsym_cmds=''
15524 ;;
15525 m68k)
15526 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)'
15527 hardcode_libdir_flag_spec='-L$libdir'
15528 hardcode_minus_L=yes
15529 ;;
15530 esac
15531 ;;
15532
15533 beos*)
15534 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15535 allow_undefined_flag=unsupported
15536 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15537 # support --undefined. This deserves some investigation. FIXME
15538 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15539 else
15540 ld_shlibs=no
15541 fi
15542 ;;
15543
15544 cygwin* | mingw* | pw32* | cegcc*)
15545 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15546 # as there is no search path for DLLs.
15547 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015548 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015549 allow_undefined_flag=unsupported
15550 always_export_symbols=no
15551 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015552 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'
15553 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cristy73bd4a52010-10-05 11:24:23 +000015554
15555 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15557 # If the export-symbols file already is a .def file (1st line
15558 # is EXPORTS), use it as is; otherwise, prepend...
15559 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15560 cp $export_symbols $output_objdir/$soname.def;
15561 else
15562 echo EXPORTS > $output_objdir/$soname.def;
15563 cat $export_symbols >> $output_objdir/$soname.def;
15564 fi~
15565 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15566 else
15567 ld_shlibs=no
15568 fi
15569 ;;
15570
cristy0c60a692010-11-04 01:09:47 +000015571 haiku*)
15572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15573 link_all_deplibs=yes
15574 ;;
15575
cristy73bd4a52010-10-05 11:24:23 +000015576 interix[3-9]*)
15577 hardcode_direct=no
15578 hardcode_shlibpath_var=no
15579 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15580 export_dynamic_flag_spec='${wl}-E'
15581 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15582 # Instead, shared libraries are loaded at an image base (0x10000000 by
15583 # default) and relocated if they conflict, which is a slow very memory
15584 # consuming and fragmenting process. To avoid this, we pick a random,
15585 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15586 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15587 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15588 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'
15589 ;;
15590
cristy0c60a692010-11-04 01:09:47 +000015591 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015592 tmp_diet=no
15593 if test "$host_os" = linux-dietlibc; then
15594 case $cc_basename in
15595 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15596 esac
15597 fi
15598 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15599 && test "$tmp_diet" = no
15600 then
cristyda16f162011-02-19 23:52:17 +000015601 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015602 tmp_sharedflag='-shared'
15603 case $cc_basename,$host_cpu in
15604 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015605 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'
cristy73bd4a52010-10-05 11:24:23 +000015606 tmp_addflag=' $pic_flag'
15607 ;;
cristy0c60a692010-11-04 01:09:47 +000015608 pgf77* | pgf90* | pgf95* | pgfortran*)
15609 # Portland Group f77 and f90 compilers
15610 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'
cristy73bd4a52010-10-05 11:24:23 +000015611 tmp_addflag=' $pic_flag -Mnomain' ;;
15612 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15613 tmp_addflag=' -i_dynamic' ;;
15614 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15615 tmp_addflag=' -i_dynamic -nofor_main' ;;
15616 ifc* | ifort*) # Intel Fortran compiler
15617 tmp_addflag=' -nofor_main' ;;
15618 lf95*) # Lahey Fortran 8.1
15619 whole_archive_flag_spec=
15620 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015621 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015622 tmp_sharedflag='-qmkshrobj'
15623 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015624 nvcc*) # Cuda Compiler Driver 2.2
15625 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'
15626 compiler_needs_object=yes
15627 ;;
cristy73bd4a52010-10-05 11:24:23 +000015628 esac
15629 case `$CC -V 2>&1 | sed 5q` in
15630 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015631 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'
cristy73bd4a52010-10-05 11:24:23 +000015632 compiler_needs_object=yes
15633 tmp_sharedflag='-G' ;;
15634 *Sun\ F*) # Sun Fortran 8.3
15635 tmp_sharedflag='-G' ;;
15636 esac
15637 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15638
15639 if test "x$supports_anon_versioning" = xyes; then
15640 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15641 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15642 echo "local: *; };" >> $output_objdir/$libname.ver~
15643 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15644 fi
15645
15646 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015647 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015648 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15649 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015650 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015651 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015652 if test "x$supports_anon_versioning" = xyes; then
15653 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15654 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15655 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015656 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015657 fi
15658 ;;
15659 esac
15660 else
15661 ld_shlibs=no
15662 fi
15663 ;;
15664
15665 netbsd*)
15666 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15667 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15668 wlarc=
15669 else
cristyda16f162011-02-19 23:52:17 +000015670 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15671 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015672 fi
15673 ;;
15674
15675 solaris*)
15676 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15677 ld_shlibs=no
15678 cat <<_LT_EOF 1>&2
15679
15680*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15681*** create shared libraries on Solaris systems. Therefore, libtool
15682*** is disabling shared libraries support. We urge you to upgrade GNU
15683*** binutils to release 2.9.1 or newer. Another option is to modify
15684*** your PATH or compiler configuration so that the native linker is
15685*** used, and then restart.
15686
15687_LT_EOF
15688 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015689 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15690 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015691 else
15692 ld_shlibs=no
15693 fi
15694 ;;
15695
15696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15697 case `$LD -v 2>&1` in
15698 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15699 ld_shlibs=no
15700 cat <<_LT_EOF 1>&2
15701
15702*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15703*** reliably create shared libraries on SCO systems. Therefore, libtool
15704*** is disabling shared libraries support. We urge you to upgrade GNU
15705*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15706*** your PATH or compiler configuration so that the native linker is
15707*** used, and then restart.
15708
15709_LT_EOF
15710 ;;
15711 *)
15712 # For security reasons, it is highly recommended that you always
15713 # use absolute paths for naming shared libraries, and exclude the
15714 # DT_RUNPATH tag from executables and libraries. But doing so
15715 # requires that you compile everything twice, which is a pain.
15716 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15719 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15720 else
15721 ld_shlibs=no
15722 fi
15723 ;;
15724 esac
15725 ;;
15726
15727 sunos4*)
15728 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15729 wlarc=
15730 hardcode_direct=yes
15731 hardcode_shlibpath_var=no
15732 ;;
15733
15734 *)
15735 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015736 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15737 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015738 else
15739 ld_shlibs=no
15740 fi
15741 ;;
15742 esac
15743
15744 if test "$ld_shlibs" = no; then
15745 runpath_var=
15746 hardcode_libdir_flag_spec=
15747 export_dynamic_flag_spec=
15748 whole_archive_flag_spec=
15749 fi
15750 else
15751 # PORTME fill in a description of your system's linker (not GNU ld)
15752 case $host_os in
15753 aix3*)
15754 allow_undefined_flag=unsupported
15755 always_export_symbols=yes
15756 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'
15757 # Note: this linker hardcodes the directories in LIBPATH if there
15758 # are no directories specified by -L.
15759 hardcode_minus_L=yes
15760 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15761 # Neither direct hardcoding nor static linking is supported with a
15762 # broken collect2.
15763 hardcode_direct=unsupported
15764 fi
15765 ;;
15766
15767 aix[4-9]*)
15768 if test "$host_cpu" = ia64; then
15769 # On IA64, the linker does run time linking by default, so we don't
15770 # have to do anything special.
15771 aix_use_runtimelinking=no
15772 exp_sym_flag='-Bexport'
15773 no_entry_flag=""
15774 else
15775 # If we're using GNU nm, then we don't want the "-C" option.
15776 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015777 # Also, AIX nm treats weak defined symbols like other global
15778 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015779 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015780 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000015781 else
15782 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15783 fi
15784 aix_use_runtimelinking=no
15785
15786 # Test if we are trying to use run time linking or normal
15787 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15788 # need to do runtime linking.
15789 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15790 for ld_flag in $LDFLAGS; do
15791 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15792 aix_use_runtimelinking=yes
15793 break
15794 fi
15795 done
15796 ;;
15797 esac
15798
15799 exp_sym_flag='-bexport'
15800 no_entry_flag='-bnoentry'
15801 fi
15802
15803 # When large executables or shared objects are built, AIX ld can
15804 # have problems creating the table of contents. If linking a library
15805 # or program results in "error TOC overflow" add -mminimal-toc to
15806 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15807 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15808
15809 archive_cmds=''
15810 hardcode_direct=yes
15811 hardcode_direct_absolute=yes
15812 hardcode_libdir_separator=':'
15813 link_all_deplibs=yes
15814 file_list_spec='${wl}-f,'
15815
15816 if test "$GCC" = yes; then
15817 case $host_os in aix4.[012]|aix4.[012].*)
15818 # We only want to do this on AIX 4.2 and lower, the check
15819 # below for broken collect2 doesn't work under 4.3+
15820 collect2name=`${CC} -print-prog-name=collect2`
15821 if test -f "$collect2name" &&
15822 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15823 then
15824 # We have reworked collect2
15825 :
15826 else
15827 # We have old collect2
15828 hardcode_direct=unsupported
15829 # It fails to find uninstalled libraries when the uninstalled
15830 # path is not listed in the libpath. Setting hardcode_minus_L
15831 # to unsupported forces relinking
15832 hardcode_minus_L=yes
15833 hardcode_libdir_flag_spec='-L$libdir'
15834 hardcode_libdir_separator=
15835 fi
15836 ;;
15837 esac
15838 shared_flag='-shared'
15839 if test "$aix_use_runtimelinking" = yes; then
15840 shared_flag="$shared_flag "'${wl}-G'
15841 fi
15842 else
15843 # not using gcc
15844 if test "$host_cpu" = ia64; then
15845 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15846 # chokes on -Wl,-G. The following line is correct:
15847 shared_flag='-G'
15848 else
15849 if test "$aix_use_runtimelinking" = yes; then
15850 shared_flag='${wl}-G'
15851 else
15852 shared_flag='${wl}-bM:SRE'
15853 fi
15854 fi
15855 fi
15856
15857 export_dynamic_flag_spec='${wl}-bexpall'
15858 # It seems that -bexpall does not export symbols beginning with
15859 # underscore (_), so it is better to generate a list of symbols to export.
15860 always_export_symbols=yes
15861 if test "$aix_use_runtimelinking" = yes; then
15862 # Warning - without using the other runtime loading flags (-brtl),
15863 # -berok will link without error, but may produce a broken library.
15864 allow_undefined_flag='-berok'
15865 # Determine the default libpath from the value encoded in an
15866 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015867 if test "${lt_cv_aix_libpath+set}" = set; then
15868 aix_libpath=$lt_cv_aix_libpath
15869else
15870 if ${lt_cv_aix_libpath_+:} false; then :
15871 $as_echo_n "(cached) " >&6
15872else
15873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015874/* end confdefs.h. */
15875
15876int
15877main ()
15878{
15879
15880 ;
15881 return 0;
15882}
15883_ACEOF
15884if ac_fn_c_try_link "$LINENO"; then :
15885
cristyda16f162011-02-19 23:52:17 +000015886 lt_aix_libpath_sed='
15887 /Import File Strings/,/^$/ {
15888 /^0/ {
15889 s/^0 *\([^ ]*\) *$/\1/
15890 p
15891 }
15892 }'
15893 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15894 # Check for a 64-bit object if we didn't find anything.
15895 if test -z "$lt_cv_aix_libpath_"; then
15896 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15897 fi
cristy73bd4a52010-10-05 11:24:23 +000015898fi
15899rm -f core conftest.err conftest.$ac_objext \
15900 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015901 if test -z "$lt_cv_aix_libpath_"; then
15902 lt_cv_aix_libpath_="/usr/lib:/lib"
15903 fi
15904
15905fi
15906
15907 aix_libpath=$lt_cv_aix_libpath_
15908fi
cristy73bd4a52010-10-05 11:24:23 +000015909
15910 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015911 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy73bd4a52010-10-05 11:24:23 +000015912 else
15913 if test "$host_cpu" = ia64; then
15914 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15915 allow_undefined_flag="-z nodefs"
15916 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"
15917 else
15918 # Determine the default libpath from the value encoded in an
15919 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015920 if test "${lt_cv_aix_libpath+set}" = set; then
15921 aix_libpath=$lt_cv_aix_libpath
15922else
15923 if ${lt_cv_aix_libpath_+:} false; then :
15924 $as_echo_n "(cached) " >&6
15925else
15926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015927/* end confdefs.h. */
15928
15929int
15930main ()
15931{
15932
15933 ;
15934 return 0;
15935}
15936_ACEOF
15937if ac_fn_c_try_link "$LINENO"; then :
15938
cristyda16f162011-02-19 23:52:17 +000015939 lt_aix_libpath_sed='
15940 /Import File Strings/,/^$/ {
15941 /^0/ {
15942 s/^0 *\([^ ]*\) *$/\1/
15943 p
15944 }
15945 }'
15946 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15947 # Check for a 64-bit object if we didn't find anything.
15948 if test -z "$lt_cv_aix_libpath_"; then
15949 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15950 fi
cristy73bd4a52010-10-05 11:24:23 +000015951fi
15952rm -f core conftest.err conftest.$ac_objext \
15953 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015954 if test -z "$lt_cv_aix_libpath_"; then
15955 lt_cv_aix_libpath_="/usr/lib:/lib"
15956 fi
15957
15958fi
15959
15960 aix_libpath=$lt_cv_aix_libpath_
15961fi
cristy73bd4a52010-10-05 11:24:23 +000015962
15963 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15964 # Warning - without using the other run time loading flags,
15965 # -berok will link without error, but may produce a broken library.
15966 no_undefined_flag=' ${wl}-bernotok'
15967 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015968 if test "$with_gnu_ld" = yes; then
15969 # We only use this code for GNU lds that support --whole-archive.
15970 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15971 else
15972 # Exported symbols can be pulled into shared objects from archives
15973 whole_archive_flag_spec='$convenience'
15974 fi
cristy73bd4a52010-10-05 11:24:23 +000015975 archive_cmds_need_lc=yes
15976 # This is similar to how AIX traditionally builds its shared libraries.
15977 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15978 fi
15979 fi
15980 ;;
15981
15982 amigaos*)
15983 case $host_cpu in
15984 powerpc)
15985 # see comment about AmigaOS4 .so support
15986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15987 archive_expsym_cmds=''
15988 ;;
15989 m68k)
15990 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)'
15991 hardcode_libdir_flag_spec='-L$libdir'
15992 hardcode_minus_L=yes
15993 ;;
15994 esac
15995 ;;
15996
15997 bsdi[45]*)
15998 export_dynamic_flag_spec=-rdynamic
15999 ;;
16000
16001 cygwin* | mingw* | pw32* | cegcc*)
16002 # When not using gcc, we currently assume that we are using
16003 # Microsoft Visual C++.
16004 # hardcode_libdir_flag_spec is actually meaningless, as there is
16005 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000016006 case $cc_basename in
16007 cl*)
16008 # Native MSVC
16009 hardcode_libdir_flag_spec=' '
16010 allow_undefined_flag=unsupported
16011 always_export_symbols=yes
16012 file_list_spec='@'
16013 # Tell ltmain to make .lib files, not .a files.
16014 libext=lib
16015 # Tell ltmain to make .dll files, not .so files.
16016 shrext_cmds=".dll"
16017 # FIXME: Setting linknames here is a bad hack.
16018 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16019 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16020 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16021 else
16022 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16023 fi~
16024 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16025 linknames='
16026 # The linker will not automatically build a static lib if we build a DLL.
16027 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16028 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000016029 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000016030 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16031 # Don't use ranlib
16032 old_postinstall_cmds='chmod 644 $oldlib'
16033 postlink_cmds='lt_outputfile="@OUTPUT@"~
16034 lt_tool_outputfile="@TOOL_OUTPUT@"~
16035 case $lt_outputfile in
16036 *.exe|*.EXE) ;;
16037 *)
16038 lt_outputfile="$lt_outputfile.exe"
16039 lt_tool_outputfile="$lt_tool_outputfile.exe"
16040 ;;
16041 esac~
16042 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16043 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16044 $RM "$lt_outputfile.manifest";
16045 fi'
16046 ;;
16047 *)
16048 # Assume MSVC wrapper
16049 hardcode_libdir_flag_spec=' '
16050 allow_undefined_flag=unsupported
16051 # Tell ltmain to make .lib files, not .a files.
16052 libext=lib
16053 # Tell ltmain to make .dll files, not .so files.
16054 shrext_cmds=".dll"
16055 # FIXME: Setting linknames here is a bad hack.
16056 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16057 # The linker will automatically build a .lib file if we build a DLL.
16058 old_archive_from_new_cmds='true'
16059 # FIXME: Should let the user specify the lib program.
16060 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16061 enable_shared_with_static_runtimes=yes
16062 ;;
16063 esac
cristy73bd4a52010-10-05 11:24:23 +000016064 ;;
16065
16066 darwin* | rhapsody*)
16067
16068
16069 archive_cmds_need_lc=no
16070 hardcode_direct=no
16071 hardcode_automatic=yes
16072 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000016073 if test "$lt_cv_ld_force_load" = "yes"; then
16074 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\"`'
cristy99bd5232011-12-07 14:38:20 +000016075
cristy0c60a692010-11-04 01:09:47 +000016076 else
16077 whole_archive_flag_spec=''
16078 fi
cristy73bd4a52010-10-05 11:24:23 +000016079 link_all_deplibs=yes
16080 allow_undefined_flag="$_lt_dar_allow_undefined"
16081 case $cc_basename in
16082 ifort*) _lt_dar_can_shared=yes ;;
16083 *) _lt_dar_can_shared=$GCC ;;
16084 esac
16085 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000016086 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016087 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16088 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16089 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}"
16090 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}"
16091
16092 else
16093 ld_shlibs=no
16094 fi
16095
16096 ;;
16097
16098 dgux*)
16099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16100 hardcode_libdir_flag_spec='-L$libdir'
16101 hardcode_shlibpath_var=no
16102 ;;
16103
cristy73bd4a52010-10-05 11:24:23 +000016104 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16105 # support. Future versions do this automatically, but an explicit c++rt0.o
16106 # does not break anything, and helps significantly (at the cost of a little
16107 # extra space).
16108 freebsd2.2*)
16109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16110 hardcode_libdir_flag_spec='-R$libdir'
16111 hardcode_direct=yes
16112 hardcode_shlibpath_var=no
16113 ;;
16114
16115 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000016116 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016117 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16118 hardcode_direct=yes
16119 hardcode_minus_L=yes
16120 hardcode_shlibpath_var=no
16121 ;;
16122
16123 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16124 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000016125 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016126 hardcode_libdir_flag_spec='-R$libdir'
16127 hardcode_direct=yes
16128 hardcode_shlibpath_var=no
16129 ;;
16130
16131 hpux9*)
16132 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016133 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cristy73bd4a52010-10-05 11:24:23 +000016134 else
16135 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16136 fi
16137 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16138 hardcode_libdir_separator=:
16139 hardcode_direct=yes
16140
16141 # hardcode_minus_L: Not really in the search PATH,
16142 # but as the default location of the library.
16143 hardcode_minus_L=yes
16144 export_dynamic_flag_spec='${wl}-E'
16145 ;;
16146
16147 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000016148 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000016149 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016150 else
16151 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16152 fi
16153 if test "$with_gnu_ld" = no; then
16154 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016155 hardcode_libdir_separator=:
16156 hardcode_direct=yes
16157 hardcode_direct_absolute=yes
16158 export_dynamic_flag_spec='${wl}-E'
16159 # hardcode_minus_L: Not really in the search PATH,
16160 # but as the default location of the library.
16161 hardcode_minus_L=yes
16162 fi
16163 ;;
16164
16165 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000016166 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000016167 case $host_cpu in
16168 hppa*64*)
16169 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16170 ;;
16171 ia64*)
cristyda16f162011-02-19 23:52:17 +000016172 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016173 ;;
16174 *)
cristyda16f162011-02-19 23:52:17 +000016175 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016176 ;;
16177 esac
16178 else
16179 case $host_cpu in
16180 hppa*64*)
16181 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16182 ;;
16183 ia64*)
16184 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16185 ;;
16186 *)
cristy0c60a692010-11-04 01:09:47 +000016187
16188 # Older versions of the 11.00 compiler do not understand -b yet
16189 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16191$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016192if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016193 $as_echo_n "(cached) " >&6
16194else
16195 lt_cv_prog_compiler__b=no
16196 save_LDFLAGS="$LDFLAGS"
16197 LDFLAGS="$LDFLAGS -b"
16198 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16199 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16200 # The linker can only warn and ignore the option if not recognized
16201 # So say no if there are warnings
16202 if test -s conftest.err; then
16203 # Append any errors to the config.log.
16204 cat conftest.err 1>&5
16205 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16207 if diff conftest.exp conftest.er2 >/dev/null; then
16208 lt_cv_prog_compiler__b=yes
16209 fi
16210 else
16211 lt_cv_prog_compiler__b=yes
16212 fi
16213 fi
16214 $RM -r conftest*
16215 LDFLAGS="$save_LDFLAGS"
16216
16217fi
16218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16219$as_echo "$lt_cv_prog_compiler__b" >&6; }
16220
16221if test x"$lt_cv_prog_compiler__b" = xyes; then
16222 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16223else
16224 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16225fi
16226
cristy73bd4a52010-10-05 11:24:23 +000016227 ;;
16228 esac
16229 fi
16230 if test "$with_gnu_ld" = no; then
16231 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16232 hardcode_libdir_separator=:
16233
16234 case $host_cpu in
16235 hppa*64*|ia64*)
16236 hardcode_direct=no
16237 hardcode_shlibpath_var=no
16238 ;;
16239 *)
16240 hardcode_direct=yes
16241 hardcode_direct_absolute=yes
16242 export_dynamic_flag_spec='${wl}-E'
16243
16244 # hardcode_minus_L: Not really in the search PATH,
16245 # but as the default location of the library.
16246 hardcode_minus_L=yes
16247 ;;
16248 esac
16249 fi
16250 ;;
16251
16252 irix5* | irix6* | nonstopux*)
16253 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016254 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'
cristy73bd4a52010-10-05 11:24:23 +000016255 # Try to use the -exported_symbol ld option, if it does not
16256 # work, assume that -exports_file does not work either and
16257 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016258 # This should be the same for all languages, so no per-tag cache variable.
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16260$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16261if ${lt_cv_irix_exported_symbol+:} false; then :
16262 $as_echo_n "(cached) " >&6
16263else
16264 save_LDFLAGS="$LDFLAGS"
16265 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016267/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016268int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016269_ACEOF
16270if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016271 lt_cv_irix_exported_symbol=yes
16272else
16273 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016274fi
16275rm -f core conftest.err conftest.$ac_objext \
16276 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016277 LDFLAGS="$save_LDFLAGS"
16278fi
16279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16280$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16281 if test "$lt_cv_irix_exported_symbol" = yes; then
16282 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'
16283 fi
cristy73bd4a52010-10-05 11:24:23 +000016284 else
cristy0c60a692010-11-04 01:09:47 +000016285 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'
16286 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'
cristy73bd4a52010-10-05 11:24:23 +000016287 fi
16288 archive_cmds_need_lc='no'
16289 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16290 hardcode_libdir_separator=:
16291 inherit_rpath=yes
16292 link_all_deplibs=yes
16293 ;;
16294
16295 netbsd*)
16296 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16298 else
16299 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16300 fi
16301 hardcode_libdir_flag_spec='-R$libdir'
16302 hardcode_direct=yes
16303 hardcode_shlibpath_var=no
16304 ;;
16305
16306 newsos6)
16307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16308 hardcode_direct=yes
16309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16310 hardcode_libdir_separator=:
16311 hardcode_shlibpath_var=no
16312 ;;
16313
16314 *nto* | *qnx*)
16315 ;;
16316
16317 openbsd*)
16318 if test -f /usr/libexec/ld.so; then
16319 hardcode_direct=yes
16320 hardcode_shlibpath_var=no
16321 hardcode_direct_absolute=yes
16322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16324 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16326 export_dynamic_flag_spec='${wl}-E'
16327 else
16328 case $host_os in
16329 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16331 hardcode_libdir_flag_spec='-R$libdir'
16332 ;;
16333 *)
16334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16335 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16336 ;;
16337 esac
16338 fi
16339 else
16340 ld_shlibs=no
16341 fi
16342 ;;
16343
16344 os2*)
16345 hardcode_libdir_flag_spec='-L$libdir'
16346 hardcode_minus_L=yes
16347 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016348 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
cristy73bd4a52010-10-05 11:24:23 +000016349 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16350 ;;
16351
16352 osf3*)
16353 if test "$GCC" = yes; then
16354 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016355 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'
cristy73bd4a52010-10-05 11:24:23 +000016356 else
16357 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016358 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'
cristy73bd4a52010-10-05 11:24:23 +000016359 fi
16360 archive_cmds_need_lc='no'
16361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16362 hardcode_libdir_separator=:
16363 ;;
16364
16365 osf4* | osf5*) # as osf3* with the addition of -msym flag
16366 if test "$GCC" = yes; then
16367 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016368 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'
cristy73bd4a52010-10-05 11:24:23 +000016369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16370 else
16371 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016372 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'
cristy73bd4a52010-10-05 11:24:23 +000016373 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~
cristy0c60a692010-11-04 01:09:47 +000016374 $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'
cristy73bd4a52010-10-05 11:24:23 +000016375
16376 # Both c and cxx compiler support -rpath directly
16377 hardcode_libdir_flag_spec='-rpath $libdir'
16378 fi
16379 archive_cmds_need_lc='no'
16380 hardcode_libdir_separator=:
16381 ;;
16382
16383 solaris*)
16384 no_undefined_flag=' -z defs'
16385 if test "$GCC" = yes; then
16386 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016387 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016388 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000016389 $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'
cristy73bd4a52010-10-05 11:24:23 +000016390 else
16391 case `$CC -V 2>&1` in
16392 *"Compilers 5.0"*)
16393 wlarc=''
16394 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16395 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16397 ;;
16398 *)
16399 wlarc='${wl}'
16400 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16401 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16402 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16403 ;;
16404 esac
16405 fi
16406 hardcode_libdir_flag_spec='-R$libdir'
16407 hardcode_shlibpath_var=no
16408 case $host_os in
16409 solaris2.[0-5] | solaris2.[0-5].*) ;;
16410 *)
16411 # The compiler driver will combine and reorder linker options,
16412 # but understands `-z linker_flag'. GCC discards it without `$wl',
16413 # but is careful enough not to reorder.
16414 # Supported since Solaris 2.6 (maybe 2.5.1?)
16415 if test "$GCC" = yes; then
16416 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16417 else
16418 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16419 fi
16420 ;;
16421 esac
16422 link_all_deplibs=yes
16423 ;;
16424
16425 sunos4*)
16426 if test "x$host_vendor" = xsequent; then
16427 # Use $CC to link under sequent, because it throws in some extra .o
16428 # files that make .init and .fini sections work.
16429 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16430 else
16431 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16432 fi
16433 hardcode_libdir_flag_spec='-L$libdir'
16434 hardcode_direct=yes
16435 hardcode_minus_L=yes
16436 hardcode_shlibpath_var=no
16437 ;;
16438
16439 sysv4)
16440 case $host_vendor in
16441 sni)
16442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16443 hardcode_direct=yes # is this really true???
16444 ;;
16445 siemens)
16446 ## LD is ld it makes a PLAMLIB
16447 ## CC just makes a GrossModule.
16448 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16449 reload_cmds='$CC -r -o $output$reload_objs'
16450 hardcode_direct=no
16451 ;;
16452 motorola)
16453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16454 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16455 ;;
16456 esac
16457 runpath_var='LD_RUN_PATH'
16458 hardcode_shlibpath_var=no
16459 ;;
16460
16461 sysv4.3*)
16462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16463 hardcode_shlibpath_var=no
16464 export_dynamic_flag_spec='-Bexport'
16465 ;;
16466
16467 sysv4*MP*)
16468 if test -d /usr/nec; then
16469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16470 hardcode_shlibpath_var=no
16471 runpath_var=LD_RUN_PATH
16472 hardcode_runpath_var=yes
16473 ld_shlibs=yes
16474 fi
16475 ;;
16476
16477 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16478 no_undefined_flag='${wl}-z,text'
16479 archive_cmds_need_lc=no
16480 hardcode_shlibpath_var=no
16481 runpath_var='LD_RUN_PATH'
16482
16483 if test "$GCC" = yes; then
16484 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16485 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16486 else
16487 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16488 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16489 fi
16490 ;;
16491
16492 sysv5* | sco3.2v5* | sco5v6*)
16493 # Note: We can NOT use -z defs as we might desire, because we do not
16494 # link with -lc, and that would cause any symbols used from libc to
16495 # always be unresolved, which means just about no library would
16496 # ever link correctly. If we're not using GNU ld we use -z text
16497 # though, which does catch some bad symbols but isn't as heavy-handed
16498 # as -z defs.
16499 no_undefined_flag='${wl}-z,text'
16500 allow_undefined_flag='${wl}-z,nodefs'
16501 archive_cmds_need_lc=no
16502 hardcode_shlibpath_var=no
16503 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16504 hardcode_libdir_separator=':'
16505 link_all_deplibs=yes
16506 export_dynamic_flag_spec='${wl}-Bexport'
16507 runpath_var='LD_RUN_PATH'
16508
16509 if test "$GCC" = yes; then
16510 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16511 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16512 else
16513 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16514 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16515 fi
16516 ;;
16517
16518 uts4*)
16519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16520 hardcode_libdir_flag_spec='-L$libdir'
16521 hardcode_shlibpath_var=no
16522 ;;
16523
16524 *)
16525 ld_shlibs=no
16526 ;;
16527 esac
16528
16529 if test x$host_vendor = xsni; then
16530 case $host in
16531 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16532 export_dynamic_flag_spec='${wl}-Blargedynsym'
16533 ;;
16534 esac
16535 fi
16536 fi
16537
16538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16539$as_echo "$ld_shlibs" >&6; }
16540test "$ld_shlibs" = no && can_build_shared=no
16541
16542with_gnu_ld=$with_gnu_ld
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558#
16559# Do we need to explicitly link libc?
16560#
16561case "x$archive_cmds_need_lc" in
16562x|xyes)
16563 # Assume -lc should be added
16564 archive_cmds_need_lc=yes
16565
16566 if test "$enable_shared" = yes && test "$GCC" = yes; then
16567 case $archive_cmds in
16568 *'~'*)
16569 # FIXME: we may have to deal with multi-command sequences.
16570 ;;
16571 '$CC '*)
16572 # Test whether the compiler implicitly links with -lc since on some
16573 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16574 # to ld, don't add -lc before -lgcc.
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16576$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016577if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016578 $as_echo_n "(cached) " >&6
16579else
16580 $RM conftest*
16581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016582
cristy0c60a692010-11-04 01:09:47 +000016583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016584 (eval $ac_compile) 2>&5
16585 ac_status=$?
16586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16587 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016588 soname=conftest
16589 lib=conftest
16590 libobjs=conftest.$ac_objext
16591 deplibs=
16592 wl=$lt_prog_compiler_wl
16593 pic_flag=$lt_prog_compiler_pic
16594 compiler_flags=-v
16595 linker_flags=-v
16596 verstring=
16597 output_objdir=.
16598 libname=conftest
16599 lt_save_allow_undefined_flag=$allow_undefined_flag
16600 allow_undefined_flag=
16601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016602 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16603 ac_status=$?
16604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16605 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016606 then
16607 lt_cv_archive_cmds_need_lc=no
16608 else
16609 lt_cv_archive_cmds_need_lc=yes
16610 fi
16611 allow_undefined_flag=$lt_save_allow_undefined_flag
16612 else
16613 cat conftest.err 1>&5
16614 fi
16615 $RM conftest*
16616
16617fi
16618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16619$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16620 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016621 ;;
16622 esac
16623 fi
16624 ;;
16625esac
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
cristy73bd4a52010-10-05 11:24:23 +000016778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16779$as_echo_n "checking dynamic linker characteristics... " >&6; }
16780
16781if test "$GCC" = yes; then
16782 case $host_os in
16783 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16784 *) lt_awk_arg="/^libraries:/" ;;
16785 esac
cristy0c60a692010-11-04 01:09:47 +000016786 case $host_os in
16787 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16788 *) lt_sed_strip_eq="s,=/,/,g" ;;
16789 esac
16790 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16791 case $lt_search_path_spec in
16792 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016793 # if the path contains ";" then we assume it to be the separator
16794 # otherwise default to the standard path separator (i.e. ":") - it is
16795 # assumed that no part of a normal pathname contains ";" but that should
16796 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016797 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16798 ;;
16799 *)
16800 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16801 ;;
16802 esac
cristy73bd4a52010-10-05 11:24:23 +000016803 # Ok, now we have the path, separated by spaces, we can step through it
16804 # and add multilib dir if necessary.
16805 lt_tmp_lt_search_path_spec=
16806 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16807 for lt_sys_path in $lt_search_path_spec; do
16808 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16809 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16810 else
16811 test -d "$lt_sys_path" && \
16812 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16813 fi
16814 done
cristy0c60a692010-11-04 01:09:47 +000016815 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016816BEGIN {RS=" "; FS="/|\n";} {
16817 lt_foo="";
16818 lt_count=0;
16819 for (lt_i = NF; lt_i > 0; lt_i--) {
16820 if ($lt_i != "" && $lt_i != ".") {
16821 if ($lt_i == "..") {
16822 lt_count++;
16823 } else {
16824 if (lt_count == 0) {
16825 lt_foo="/" $lt_i lt_foo;
16826 } else {
16827 lt_count--;
16828 }
16829 }
16830 }
16831 }
16832 if (lt_foo != "") { lt_freq[lt_foo]++; }
16833 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16834}'`
cristy0c60a692010-11-04 01:09:47 +000016835 # AWK program above erroneously prepends '/' to C:/dos/paths
16836 # for these hosts.
16837 case $host_os in
16838 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16839 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16840 esac
16841 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016842else
16843 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16844fi
16845library_names_spec=
16846libname_spec='lib$name'
16847soname_spec=
16848shrext_cmds=".so"
16849postinstall_cmds=
16850postuninstall_cmds=
16851finish_cmds=
16852finish_eval=
16853shlibpath_var=
16854shlibpath_overrides_runpath=unknown
16855version_type=none
16856dynamic_linker="$host_os ld.so"
16857sys_lib_dlsearch_path_spec="/lib /usr/lib"
16858need_lib_prefix=unknown
16859hardcode_into_libs=no
16860
16861# when you set need_version to no, make sure it does not cause -set_version
16862# flags to be left without arguments
16863need_version=unknown
16864
16865case $host_os in
16866aix3*)
cristy99bd5232011-12-07 14:38:20 +000016867 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016868 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16869 shlibpath_var=LIBPATH
16870
16871 # AIX 3 has no versioning support, so we append a major version to the name.
16872 soname_spec='${libname}${release}${shared_ext}$major'
16873 ;;
16874
16875aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016876 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016877 need_lib_prefix=no
16878 need_version=no
16879 hardcode_into_libs=yes
16880 if test "$host_cpu" = ia64; then
16881 # AIX 5 supports IA64
16882 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16883 shlibpath_var=LD_LIBRARY_PATH
16884 else
16885 # With GCC up to 2.95.x, collect2 would create an import file
16886 # for dependence libraries. The import file would start with
16887 # the line `#! .'. This would cause the generated library to
16888 # depend on `.', always an invalid library. This was fixed in
16889 # development snapshots of GCC prior to 3.0.
16890 case $host_os in
16891 aix4 | aix4.[01] | aix4.[01].*)
16892 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16893 echo ' yes '
16894 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16895 :
16896 else
16897 can_build_shared=no
16898 fi
16899 ;;
16900 esac
16901 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16902 # soname into executable. Probably we can add versioning support to
16903 # collect2, so additional links can be useful in future.
16904 if test "$aix_use_runtimelinking" = yes; then
16905 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16906 # instead of lib<name>.a to let people know that these are not
16907 # typical AIX shared libraries.
16908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16909 else
16910 # We preserve .a as extension for shared libraries through AIX4.2
16911 # and later when we are not doing run time linking.
16912 library_names_spec='${libname}${release}.a $libname.a'
16913 soname_spec='${libname}${release}${shared_ext}$major'
16914 fi
16915 shlibpath_var=LIBPATH
16916 fi
16917 ;;
16918
16919amigaos*)
16920 case $host_cpu in
16921 powerpc)
16922 # Since July 2007 AmigaOS4 officially supports .so libraries.
16923 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16925 ;;
16926 m68k)
16927 library_names_spec='$libname.ixlibrary $libname.a'
16928 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016929 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
cristy73bd4a52010-10-05 11:24:23 +000016930 ;;
16931 esac
16932 ;;
16933
16934beos*)
16935 library_names_spec='${libname}${shared_ext}'
16936 dynamic_linker="$host_os ld.so"
16937 shlibpath_var=LIBRARY_PATH
16938 ;;
16939
16940bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016941 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016942 need_version=no
16943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16944 soname_spec='${libname}${release}${shared_ext}$major'
16945 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16946 shlibpath_var=LD_LIBRARY_PATH
16947 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16948 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16949 # the default ld.so.conf also contains /usr/contrib/lib and
16950 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16951 # libtool to hard-code these into programs
16952 ;;
16953
16954cygwin* | mingw* | pw32* | cegcc*)
16955 version_type=windows
16956 shrext_cmds=".dll"
16957 need_version=no
16958 need_lib_prefix=no
16959
cristyda16f162011-02-19 23:52:17 +000016960 case $GCC,$cc_basename in
16961 yes,*)
16962 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016963 library_names_spec='$libname.dll.a'
16964 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16965 postinstall_cmds='base_file=`basename \${file}`~
16966 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16967 dldir=$destdir/`dirname \$dlpath`~
16968 test -d \$dldir || mkdir -p \$dldir~
16969 $install_prog $dir/$dlname \$dldir/$dlname~
16970 chmod a+x \$dldir/$dlname~
16971 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16972 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16973 fi'
16974 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16975 dlpath=$dir/\$dldll~
16976 $RM \$dlpath'
16977 shlibpath_overrides_runpath=yes
16978
16979 case $host_os in
16980 cygwin*)
16981 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16982 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016983
16984 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016985 ;;
16986 mingw* | cegcc*)
16987 # MinGW DLLs use traditional 'lib' prefix
16988 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016989 ;;
16990 pw32*)
16991 # pw32 DLLs use 'pw' prefix rather than 'lib'
16992 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16993 ;;
16994 esac
cristyda16f162011-02-19 23:52:17 +000016995 dynamic_linker='Win32 ld.exe'
16996 ;;
16997
16998 *,cl*)
16999 # Native MSVC
17000 libname_spec='$name'
17001 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17002 library_names_spec='${libname}.dll.lib'
17003
17004 case $build_os in
17005 mingw*)
17006 sys_lib_search_path_spec=
17007 lt_save_ifs=$IFS
17008 IFS=';'
17009 for lt_path in $LIB
17010 do
17011 IFS=$lt_save_ifs
17012 # Let DOS variable expansion print the short 8.3 style file name.
17013 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17014 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17015 done
17016 IFS=$lt_save_ifs
17017 # Convert to MSYS style.
17018 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17019 ;;
17020 cygwin*)
17021 # Convert to unix form, then to dos form, then back to unix form
17022 # but this time dos style (no spaces!) so that the unix form looks
17023 # like /cygdrive/c/PROGRA~1:/cygdr...
17024 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17025 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17026 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17027 ;;
17028 *)
17029 sys_lib_search_path_spec="$LIB"
17030 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17031 # It is most probably a Windows format PATH.
17032 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17033 else
17034 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17035 fi
17036 # FIXME: find the short name or the path components, as spaces are
17037 # common. (e.g. "Program Files" -> "PROGRA~1")
17038 ;;
17039 esac
17040
17041 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17042 postinstall_cmds='base_file=`basename \${file}`~
17043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17044 dldir=$destdir/`dirname \$dlpath`~
17045 test -d \$dldir || mkdir -p \$dldir~
17046 $install_prog $dir/$dlname \$dldir/$dlname'
17047 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17048 dlpath=$dir/\$dldll~
17049 $RM \$dlpath'
17050 shlibpath_overrides_runpath=yes
17051 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000017052 ;;
17053
17054 *)
cristyda16f162011-02-19 23:52:17 +000017055 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000017056 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000017057 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000017058 ;;
17059 esac
cristy73bd4a52010-10-05 11:24:23 +000017060 # FIXME: first we should search . and the directory the executable is in
17061 shlibpath_var=PATH
17062 ;;
17063
17064darwin* | rhapsody*)
17065 dynamic_linker="$host_os dyld"
17066 version_type=darwin
17067 need_lib_prefix=no
17068 need_version=no
17069 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17070 soname_spec='${libname}${release}${major}$shared_ext'
17071 shlibpath_overrides_runpath=yes
17072 shlibpath_var=DYLD_LIBRARY_PATH
17073 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17074
17075 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17076 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17077 ;;
17078
17079dgux*)
cristy99bd5232011-12-07 14:38:20 +000017080 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017081 need_lib_prefix=no
17082 need_version=no
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17084 soname_spec='${libname}${release}${shared_ext}$major'
17085 shlibpath_var=LD_LIBRARY_PATH
17086 ;;
17087
cristy73bd4a52010-10-05 11:24:23 +000017088freebsd* | dragonfly*)
17089 # DragonFly does not have aout. When/if they implement a new
17090 # versioning mechanism, adjust this.
17091 if test -x /usr/bin/objformat; then
17092 objformat=`/usr/bin/objformat`
17093 else
17094 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017095 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000017096 *) objformat=elf ;;
17097 esac
17098 fi
17099 version_type=freebsd-$objformat
17100 case $version_type in
17101 freebsd-elf*)
17102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17103 need_version=no
17104 need_lib_prefix=no
17105 ;;
17106 freebsd-*)
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17108 need_version=yes
17109 ;;
17110 esac
17111 shlibpath_var=LD_LIBRARY_PATH
17112 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017113 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017114 shlibpath_overrides_runpath=yes
17115 ;;
17116 freebsd3.[01]* | freebsdelf3.[01]*)
17117 shlibpath_overrides_runpath=yes
17118 hardcode_into_libs=yes
17119 ;;
17120 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17121 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17122 shlibpath_overrides_runpath=no
17123 hardcode_into_libs=yes
17124 ;;
17125 *) # from 4.6 on, and DragonFly
17126 shlibpath_overrides_runpath=yes
17127 hardcode_into_libs=yes
17128 ;;
17129 esac
17130 ;;
17131
17132gnu*)
cristy99bd5232011-12-07 14:38:20 +000017133 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017134 need_lib_prefix=no
17135 need_version=no
17136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17137 soname_spec='${libname}${release}${shared_ext}$major'
17138 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000017139 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000017140 hardcode_into_libs=yes
17141 ;;
17142
cristy0c60a692010-11-04 01:09:47 +000017143haiku*)
cristy99bd5232011-12-07 14:38:20 +000017144 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000017145 need_lib_prefix=no
17146 need_version=no
17147 dynamic_linker="$host_os runtime_loader"
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17149 soname_spec='${libname}${release}${shared_ext}$major'
17150 shlibpath_var=LIBRARY_PATH
17151 shlibpath_overrides_runpath=yes
17152 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17153 hardcode_into_libs=yes
17154 ;;
17155
cristy73bd4a52010-10-05 11:24:23 +000017156hpux9* | hpux10* | hpux11*)
17157 # Give a soname corresponding to the major version so that dld.sl refuses to
17158 # link against other versions.
17159 version_type=sunos
17160 need_lib_prefix=no
17161 need_version=no
17162 case $host_cpu in
17163 ia64*)
17164 shrext_cmds='.so'
17165 hardcode_into_libs=yes
17166 dynamic_linker="$host_os dld.so"
17167 shlibpath_var=LD_LIBRARY_PATH
17168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17170 soname_spec='${libname}${release}${shared_ext}$major'
17171 if test "X$HPUX_IA64_MODE" = X32; then
17172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17173 else
17174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17175 fi
17176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17177 ;;
17178 hppa*64*)
17179 shrext_cmds='.sl'
17180 hardcode_into_libs=yes
17181 dynamic_linker="$host_os dld.sl"
17182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17188 ;;
17189 *)
17190 shrext_cmds='.sl'
17191 dynamic_linker="$host_os dld.sl"
17192 shlibpath_var=SHLIB_PATH
17193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195 soname_spec='${libname}${release}${shared_ext}$major'
17196 ;;
17197 esac
cristy0c60a692010-11-04 01:09:47 +000017198 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000017199 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000017200 # or fails outright, so override atomically:
17201 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000017202 ;;
17203
17204interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000017205 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017206 need_lib_prefix=no
17207 need_version=no
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17209 soname_spec='${libname}${release}${shared_ext}$major'
17210 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17211 shlibpath_var=LD_LIBRARY_PATH
17212 shlibpath_overrides_runpath=no
17213 hardcode_into_libs=yes
17214 ;;
17215
17216irix5* | irix6* | nonstopux*)
17217 case $host_os in
17218 nonstopux*) version_type=nonstopux ;;
17219 *)
17220 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000017221 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017222 else
17223 version_type=irix
17224 fi ;;
17225 esac
17226 need_lib_prefix=no
17227 need_version=no
17228 soname_spec='${libname}${release}${shared_ext}$major'
17229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17230 case $host_os in
17231 irix5* | nonstopux*)
17232 libsuff= shlibsuff=
17233 ;;
17234 *)
17235 case $LD in # libtool.m4 will add one of these switches to LD
17236 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17237 libsuff= shlibsuff= libmagic=32-bit;;
17238 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17239 libsuff=32 shlibsuff=N32 libmagic=N32;;
17240 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17241 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17242 *) libsuff= shlibsuff= libmagic=never-match;;
17243 esac
17244 ;;
17245 esac
17246 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17247 shlibpath_overrides_runpath=no
17248 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17249 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17250 hardcode_into_libs=yes
17251 ;;
17252
17253# No shared lib support for Linux oldld, aout, or coff.
17254linux*oldld* | linux*aout* | linux*coff*)
17255 dynamic_linker=no
17256 ;;
17257
cristy99bd5232011-12-07 14:38:20 +000017258# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000017259linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000017260 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017261 need_lib_prefix=no
17262 need_version=no
17263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17264 soname_spec='${libname}${release}${shared_ext}$major'
17265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17266 shlibpath_var=LD_LIBRARY_PATH
17267 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017268
cristy73bd4a52010-10-05 11:24:23 +000017269 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017270 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017271 $as_echo_n "(cached) " >&6
17272else
17273 lt_cv_shlibpath_overrides_runpath=no
17274 save_LDFLAGS=$LDFLAGS
17275 save_libdir=$libdir
17276 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17277 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017279/* end confdefs.h. */
17280
17281int
17282main ()
17283{
17284
17285 ;
17286 return 0;
17287}
17288_ACEOF
17289if ac_fn_c_try_link "$LINENO"; then :
17290 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017291 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017292fi
17293fi
17294rm -f core conftest.err conftest.$ac_objext \
17295 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017296 LDFLAGS=$save_LDFLAGS
17297 libdir=$save_libdir
17298
17299fi
17300
17301 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017302
17303 # This implies no fast_install, which is unacceptable.
17304 # Some rework will be needed to allow for fast_install
17305 # before this can be enabled.
17306 hardcode_into_libs=yes
17307
17308 # Add ABI-specific directories to the system library path.
17309 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17310
17311 # Append ld.so.conf contents to the search path
17312 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017313 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' ' '`
cristy73bd4a52010-10-05 11:24:23 +000017314 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017315
cristy73bd4a52010-10-05 11:24:23 +000017316 fi
17317
17318 # We used to test for /lib/ld.so.1 and disable shared libraries on
17319 # powerpc, because MkLinux only supported shared libraries with the
17320 # GNU dynamic linker. Since this was broken with cross compilers,
17321 # most powerpc-linux boxes support dynamic linking these days and
17322 # people can always --disable-shared, the test was removed, and we
17323 # assume the GNU/Linux dynamic linker is in use.
17324 dynamic_linker='GNU/Linux ld.so'
17325 ;;
17326
17327netbsd*)
17328 version_type=sunos
17329 need_lib_prefix=no
17330 need_version=no
17331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17334 dynamic_linker='NetBSD (a.out) ld.so'
17335 else
17336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17337 soname_spec='${libname}${release}${shared_ext}$major'
17338 dynamic_linker='NetBSD ld.elf_so'
17339 fi
17340 shlibpath_var=LD_LIBRARY_PATH
17341 shlibpath_overrides_runpath=yes
17342 hardcode_into_libs=yes
17343 ;;
17344
17345newsos6)
cristy99bd5232011-12-07 14:38:20 +000017346 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348 shlibpath_var=LD_LIBRARY_PATH
17349 shlibpath_overrides_runpath=yes
17350 ;;
17351
17352*nto* | *qnx*)
17353 version_type=qnx
17354 need_lib_prefix=no
17355 need_version=no
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17357 soname_spec='${libname}${release}${shared_ext}$major'
17358 shlibpath_var=LD_LIBRARY_PATH
17359 shlibpath_overrides_runpath=no
17360 hardcode_into_libs=yes
17361 dynamic_linker='ldqnx.so'
17362 ;;
17363
17364openbsd*)
17365 version_type=sunos
17366 sys_lib_dlsearch_path_spec="/usr/lib"
17367 need_lib_prefix=no
17368 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17369 case $host_os in
17370 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17371 *) need_version=no ;;
17372 esac
17373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17375 shlibpath_var=LD_LIBRARY_PATH
17376 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17377 case $host_os in
17378 openbsd2.[89] | openbsd2.[89].*)
17379 shlibpath_overrides_runpath=no
17380 ;;
17381 *)
17382 shlibpath_overrides_runpath=yes
17383 ;;
17384 esac
17385 else
17386 shlibpath_overrides_runpath=yes
17387 fi
17388 ;;
17389
17390os2*)
17391 libname_spec='$name'
17392 shrext_cmds=".dll"
17393 need_lib_prefix=no
17394 library_names_spec='$libname${shared_ext} $libname.a'
17395 dynamic_linker='OS/2 ld.exe'
17396 shlibpath_var=LIBPATH
17397 ;;
17398
17399osf3* | osf4* | osf5*)
17400 version_type=osf
17401 need_lib_prefix=no
17402 need_version=no
17403 soname_spec='${libname}${release}${shared_ext}$major'
17404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17405 shlibpath_var=LD_LIBRARY_PATH
17406 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17407 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17408 ;;
17409
17410rdos*)
17411 dynamic_linker=no
17412 ;;
17413
17414solaris*)
cristy99bd5232011-12-07 14:38:20 +000017415 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017416 need_lib_prefix=no
17417 need_version=no
17418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17419 soname_spec='${libname}${release}${shared_ext}$major'
17420 shlibpath_var=LD_LIBRARY_PATH
17421 shlibpath_overrides_runpath=yes
17422 hardcode_into_libs=yes
17423 # ldd complains unless libraries are executable
17424 postinstall_cmds='chmod +x $lib'
17425 ;;
17426
17427sunos4*)
17428 version_type=sunos
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17431 shlibpath_var=LD_LIBRARY_PATH
17432 shlibpath_overrides_runpath=yes
17433 if test "$with_gnu_ld" = yes; then
17434 need_lib_prefix=no
17435 fi
17436 need_version=yes
17437 ;;
17438
17439sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017440 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17442 soname_spec='${libname}${release}${shared_ext}$major'
17443 shlibpath_var=LD_LIBRARY_PATH
17444 case $host_vendor in
17445 sni)
17446 shlibpath_overrides_runpath=no
17447 need_lib_prefix=no
17448 runpath_var=LD_RUN_PATH
17449 ;;
17450 siemens)
17451 need_lib_prefix=no
17452 ;;
17453 motorola)
17454 need_lib_prefix=no
17455 need_version=no
17456 shlibpath_overrides_runpath=no
17457 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17458 ;;
17459 esac
17460 ;;
17461
17462sysv4*MP*)
17463 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017464 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017465 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17466 soname_spec='$libname${shared_ext}.$major'
17467 shlibpath_var=LD_LIBRARY_PATH
17468 fi
17469 ;;
17470
17471sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17472 version_type=freebsd-elf
17473 need_lib_prefix=no
17474 need_version=no
17475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17476 soname_spec='${libname}${release}${shared_ext}$major'
17477 shlibpath_var=LD_LIBRARY_PATH
17478 shlibpath_overrides_runpath=yes
17479 hardcode_into_libs=yes
17480 if test "$with_gnu_ld" = yes; then
17481 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17482 else
17483 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17484 case $host_os in
17485 sco3.2v5*)
17486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17487 ;;
17488 esac
17489 fi
17490 sys_lib_dlsearch_path_spec='/usr/lib'
17491 ;;
17492
17493tpf*)
17494 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017495 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017496 need_lib_prefix=no
17497 need_version=no
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17499 shlibpath_var=LD_LIBRARY_PATH
17500 shlibpath_overrides_runpath=no
17501 hardcode_into_libs=yes
17502 ;;
17503
17504uts4*)
cristy99bd5232011-12-07 14:38:20 +000017505 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17507 soname_spec='${libname}${release}${shared_ext}$major'
17508 shlibpath_var=LD_LIBRARY_PATH
17509 ;;
17510
17511*)
17512 dynamic_linker=no
17513 ;;
17514esac
17515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17516$as_echo "$dynamic_linker" >&6; }
17517test "$dynamic_linker" = no && can_build_shared=no
17518
17519variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17520if test "$GCC" = yes; then
17521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17522fi
17523
17524if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17525 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17526fi
17527if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17528 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17529fi
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
cristy0c60a692010-11-04 01:09:47 +000017617
17618
17619
17620
17621
cristy73bd4a52010-10-05 11:24:23 +000017622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17623$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17624hardcode_action=
17625if test -n "$hardcode_libdir_flag_spec" ||
17626 test -n "$runpath_var" ||
17627 test "X$hardcode_automatic" = "Xyes" ; then
17628
17629 # We can hardcode non-existent directories.
17630 if test "$hardcode_direct" != no &&
17631 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17632 # have to relink, otherwise we might link with an installed library
17633 # when we should be linking with a yet-to-be-installed one
17634 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17635 test "$hardcode_minus_L" != no; then
17636 # Linking always hardcodes the temporary library directory.
17637 hardcode_action=relink
17638 else
17639 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17640 hardcode_action=immediate
17641 fi
17642else
17643 # We cannot hardcode anything, or else we can only hardcode existing
17644 # directories.
17645 hardcode_action=unsupported
17646fi
17647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17648$as_echo "$hardcode_action" >&6; }
17649
17650if test "$hardcode_action" = relink ||
17651 test "$inherit_rpath" = yes; then
17652 # Fast installation is not supported
17653 enable_fast_install=no
17654elif test "$shlibpath_overrides_runpath" = yes ||
17655 test "$enable_shared" = no; then
17656 # Fast installation is not necessary
17657 enable_fast_install=needless
17658fi
17659
17660
17661
17662
17663
17664
17665 if test "x$enable_dlopen" != xyes; then
17666 enable_dlopen=unknown
17667 enable_dlopen_self=unknown
17668 enable_dlopen_self_static=unknown
17669else
17670 lt_cv_dlopen=no
17671 lt_cv_dlopen_libs=
17672
17673 case $host_os in
17674 beos*)
17675 lt_cv_dlopen="load_add_on"
17676 lt_cv_dlopen_libs=
17677 lt_cv_dlopen_self=yes
17678 ;;
17679
17680 mingw* | pw32* | cegcc*)
17681 lt_cv_dlopen="LoadLibrary"
17682 lt_cv_dlopen_libs=
17683 ;;
17684
17685 cygwin*)
17686 lt_cv_dlopen="dlopen"
17687 lt_cv_dlopen_libs=
17688 ;;
17689
17690 darwin*)
17691 # if libdl is installed we need to link against it
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17693$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017694if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017695 $as_echo_n "(cached) " >&6
17696else
17697 ac_check_lib_save_LIBS=$LIBS
17698LIBS="-ldl $LIBS"
17699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700/* end confdefs.h. */
17701
17702/* Override any GCC internal prototype to avoid an error.
17703 Use char because int might match the return type of a GCC
17704 builtin and then its argument prototype would still apply. */
17705#ifdef __cplusplus
17706extern "C"
17707#endif
17708char dlopen ();
17709int
17710main ()
17711{
17712return dlopen ();
17713 ;
17714 return 0;
17715}
17716_ACEOF
17717if ac_fn_c_try_link "$LINENO"; then :
17718 ac_cv_lib_dl_dlopen=yes
17719else
17720 ac_cv_lib_dl_dlopen=no
17721fi
17722rm -f core conftest.err conftest.$ac_objext \
17723 conftest$ac_exeext conftest.$ac_ext
17724LIBS=$ac_check_lib_save_LIBS
17725fi
17726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17727$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017728if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017729 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17730else
17731
17732 lt_cv_dlopen="dyld"
17733 lt_cv_dlopen_libs=
17734 lt_cv_dlopen_self=yes
17735
17736fi
17737
17738 ;;
17739
17740 *)
17741 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017742if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017743 lt_cv_dlopen="shl_load"
17744else
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17746$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017747if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017748 $as_echo_n "(cached) " >&6
17749else
17750 ac_check_lib_save_LIBS=$LIBS
17751LIBS="-ldld $LIBS"
17752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17753/* end confdefs.h. */
17754
17755/* Override any GCC internal prototype to avoid an error.
17756 Use char because int might match the return type of a GCC
17757 builtin and then its argument prototype would still apply. */
17758#ifdef __cplusplus
17759extern "C"
17760#endif
17761char shl_load ();
17762int
17763main ()
17764{
17765return shl_load ();
17766 ;
17767 return 0;
17768}
17769_ACEOF
17770if ac_fn_c_try_link "$LINENO"; then :
17771 ac_cv_lib_dld_shl_load=yes
17772else
17773 ac_cv_lib_dld_shl_load=no
17774fi
17775rm -f core conftest.err conftest.$ac_objext \
17776 conftest$ac_exeext conftest.$ac_ext
17777LIBS=$ac_check_lib_save_LIBS
17778fi
17779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17780$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017781if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017782 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17783else
17784 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017785if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017786 lt_cv_dlopen="dlopen"
17787else
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17789$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017790if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017791 $as_echo_n "(cached) " >&6
17792else
17793 ac_check_lib_save_LIBS=$LIBS
17794LIBS="-ldl $LIBS"
17795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796/* end confdefs.h. */
17797
17798/* Override any GCC internal prototype to avoid an error.
17799 Use char because int might match the return type of a GCC
17800 builtin and then its argument prototype would still apply. */
17801#ifdef __cplusplus
17802extern "C"
17803#endif
17804char dlopen ();
17805int
17806main ()
17807{
17808return dlopen ();
17809 ;
17810 return 0;
17811}
17812_ACEOF
17813if ac_fn_c_try_link "$LINENO"; then :
17814 ac_cv_lib_dl_dlopen=yes
17815else
17816 ac_cv_lib_dl_dlopen=no
17817fi
17818rm -f core conftest.err conftest.$ac_objext \
17819 conftest$ac_exeext conftest.$ac_ext
17820LIBS=$ac_check_lib_save_LIBS
17821fi
17822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17823$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017824if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017825 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17826else
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17828$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017829if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017830 $as_echo_n "(cached) " >&6
17831else
17832 ac_check_lib_save_LIBS=$LIBS
17833LIBS="-lsvld $LIBS"
17834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17835/* end confdefs.h. */
17836
17837/* Override any GCC internal prototype to avoid an error.
17838 Use char because int might match the return type of a GCC
17839 builtin and then its argument prototype would still apply. */
17840#ifdef __cplusplus
17841extern "C"
17842#endif
17843char dlopen ();
17844int
17845main ()
17846{
17847return dlopen ();
17848 ;
17849 return 0;
17850}
17851_ACEOF
17852if ac_fn_c_try_link "$LINENO"; then :
17853 ac_cv_lib_svld_dlopen=yes
17854else
17855 ac_cv_lib_svld_dlopen=no
17856fi
17857rm -f core conftest.err conftest.$ac_objext \
17858 conftest$ac_exeext conftest.$ac_ext
17859LIBS=$ac_check_lib_save_LIBS
17860fi
17861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17862$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017863if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17865else
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17867$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017868if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017869 $as_echo_n "(cached) " >&6
17870else
17871 ac_check_lib_save_LIBS=$LIBS
17872LIBS="-ldld $LIBS"
17873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17874/* end confdefs.h. */
17875
17876/* Override any GCC internal prototype to avoid an error.
17877 Use char because int might match the return type of a GCC
17878 builtin and then its argument prototype would still apply. */
17879#ifdef __cplusplus
17880extern "C"
17881#endif
17882char dld_link ();
17883int
17884main ()
17885{
17886return dld_link ();
17887 ;
17888 return 0;
17889}
17890_ACEOF
17891if ac_fn_c_try_link "$LINENO"; then :
17892 ac_cv_lib_dld_dld_link=yes
17893else
17894 ac_cv_lib_dld_dld_link=no
17895fi
17896rm -f core conftest.err conftest.$ac_objext \
17897 conftest$ac_exeext conftest.$ac_ext
17898LIBS=$ac_check_lib_save_LIBS
17899fi
17900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17901$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017902if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017903 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17904fi
17905
17906
17907fi
17908
17909
17910fi
17911
17912
17913fi
17914
17915
17916fi
17917
17918
17919fi
17920
17921 ;;
17922 esac
17923
17924 if test "x$lt_cv_dlopen" != xno; then
17925 enable_dlopen=yes
17926 else
17927 enable_dlopen=no
17928 fi
17929
17930 case $lt_cv_dlopen in
17931 dlopen)
17932 save_CPPFLAGS="$CPPFLAGS"
17933 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17934
17935 save_LDFLAGS="$LDFLAGS"
17936 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17937
17938 save_LIBS="$LIBS"
17939 LIBS="$lt_cv_dlopen_libs $LIBS"
17940
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17942$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017943if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017944 $as_echo_n "(cached) " >&6
17945else
17946 if test "$cross_compiling" = yes; then :
17947 lt_cv_dlopen_self=cross
17948else
17949 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17950 lt_status=$lt_dlunknown
17951 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017952#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017953#include "confdefs.h"
17954
17955#if HAVE_DLFCN_H
17956#include <dlfcn.h>
17957#endif
17958
17959#include <stdio.h>
17960
17961#ifdef RTLD_GLOBAL
17962# define LT_DLGLOBAL RTLD_GLOBAL
17963#else
17964# ifdef DL_GLOBAL
17965# define LT_DLGLOBAL DL_GLOBAL
17966# else
17967# define LT_DLGLOBAL 0
17968# endif
17969#endif
17970
17971/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17972 find out it does not work in some platform. */
17973#ifndef LT_DLLAZY_OR_NOW
17974# ifdef RTLD_LAZY
17975# define LT_DLLAZY_OR_NOW RTLD_LAZY
17976# else
17977# ifdef DL_LAZY
17978# define LT_DLLAZY_OR_NOW DL_LAZY
17979# else
17980# ifdef RTLD_NOW
17981# define LT_DLLAZY_OR_NOW RTLD_NOW
17982# else
17983# ifdef DL_NOW
17984# define LT_DLLAZY_OR_NOW DL_NOW
17985# else
17986# define LT_DLLAZY_OR_NOW 0
17987# endif
17988# endif
17989# endif
17990# endif
17991#endif
17992
cristy0c60a692010-11-04 01:09:47 +000017993/* When -fvisbility=hidden is used, assume the code has been annotated
17994 correspondingly for the symbols needed. */
17995#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017996int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017997#endif
17998
cristyda16f162011-02-19 23:52:17 +000017999int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018000int main ()
18001{
18002 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18003 int status = $lt_dlunknown;
18004
18005 if (self)
18006 {
18007 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018008 else
18009 {
18010 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18011 else puts (dlerror ());
18012 }
cristy73bd4a52010-10-05 11:24:23 +000018013 /* dlclose (self); */
18014 }
18015 else
18016 puts (dlerror ());
18017
18018 return status;
18019}
18020_LT_EOF
18021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18022 (eval $ac_link) 2>&5
18023 ac_status=$?
18024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18025 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18026 (./conftest; exit; ) >&5 2>/dev/null
18027 lt_status=$?
18028 case x$lt_status in
18029 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18030 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18031 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18032 esac
18033 else :
18034 # compilation failed
18035 lt_cv_dlopen_self=no
18036 fi
18037fi
18038rm -fr conftest*
18039
18040
18041fi
18042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18043$as_echo "$lt_cv_dlopen_self" >&6; }
18044
18045 if test "x$lt_cv_dlopen_self" = xyes; then
18046 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18048$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018049if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018050 $as_echo_n "(cached) " >&6
18051else
18052 if test "$cross_compiling" = yes; then :
18053 lt_cv_dlopen_self_static=cross
18054else
18055 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18056 lt_status=$lt_dlunknown
18057 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018058#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018059#include "confdefs.h"
18060
18061#if HAVE_DLFCN_H
18062#include <dlfcn.h>
18063#endif
18064
18065#include <stdio.h>
18066
18067#ifdef RTLD_GLOBAL
18068# define LT_DLGLOBAL RTLD_GLOBAL
18069#else
18070# ifdef DL_GLOBAL
18071# define LT_DLGLOBAL DL_GLOBAL
18072# else
18073# define LT_DLGLOBAL 0
18074# endif
18075#endif
18076
18077/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18078 find out it does not work in some platform. */
18079#ifndef LT_DLLAZY_OR_NOW
18080# ifdef RTLD_LAZY
18081# define LT_DLLAZY_OR_NOW RTLD_LAZY
18082# else
18083# ifdef DL_LAZY
18084# define LT_DLLAZY_OR_NOW DL_LAZY
18085# else
18086# ifdef RTLD_NOW
18087# define LT_DLLAZY_OR_NOW RTLD_NOW
18088# else
18089# ifdef DL_NOW
18090# define LT_DLLAZY_OR_NOW DL_NOW
18091# else
18092# define LT_DLLAZY_OR_NOW 0
18093# endif
18094# endif
18095# endif
18096# endif
18097#endif
18098
cristy0c60a692010-11-04 01:09:47 +000018099/* When -fvisbility=hidden is used, assume the code has been annotated
18100 correspondingly for the symbols needed. */
18101#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018102int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018103#endif
18104
cristyda16f162011-02-19 23:52:17 +000018105int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018106int main ()
18107{
18108 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18109 int status = $lt_dlunknown;
18110
18111 if (self)
18112 {
18113 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018114 else
18115 {
18116 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18117 else puts (dlerror ());
18118 }
cristy73bd4a52010-10-05 11:24:23 +000018119 /* dlclose (self); */
18120 }
18121 else
18122 puts (dlerror ());
18123
18124 return status;
18125}
18126_LT_EOF
18127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18128 (eval $ac_link) 2>&5
18129 ac_status=$?
18130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18131 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18132 (./conftest; exit; ) >&5 2>/dev/null
18133 lt_status=$?
18134 case x$lt_status in
18135 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18136 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18137 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18138 esac
18139 else :
18140 # compilation failed
18141 lt_cv_dlopen_self_static=no
18142 fi
18143fi
18144rm -fr conftest*
18145
18146
18147fi
18148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18149$as_echo "$lt_cv_dlopen_self_static" >&6; }
18150 fi
18151
18152 CPPFLAGS="$save_CPPFLAGS"
18153 LDFLAGS="$save_LDFLAGS"
18154 LIBS="$save_LIBS"
18155 ;;
18156 esac
18157
18158 case $lt_cv_dlopen_self in
18159 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18160 *) enable_dlopen_self=unknown ;;
18161 esac
18162
18163 case $lt_cv_dlopen_self_static in
18164 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18165 *) enable_dlopen_self_static=unknown ;;
18166 esac
18167fi
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185striplib=
18186old_striplib=
18187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18188$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18189if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18190 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18191 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18193$as_echo "yes" >&6; }
18194else
18195# FIXME - insert some real tests, host_os isn't really good enough
18196 case $host_os in
18197 darwin*)
18198 if test -n "$STRIP" ; then
18199 striplib="$STRIP -x"
18200 old_striplib="$STRIP -S"
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18202$as_echo "yes" >&6; }
18203 else
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18205$as_echo "no" >&6; }
18206 fi
18207 ;;
18208 *)
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18210$as_echo "no" >&6; }
18211 ;;
18212 esac
18213fi
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226 # Report which library types will actually be built
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18228$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18230$as_echo "$can_build_shared" >&6; }
18231
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18233$as_echo_n "checking whether to build shared libraries... " >&6; }
18234 test "$can_build_shared" = "no" && enable_shared=no
18235
18236 # On AIX, shared libraries and static libraries use the same namespace, and
18237 # are all built from PIC.
18238 case $host_os in
18239 aix3*)
18240 test "$enable_shared" = yes && enable_static=no
18241 if test -n "$RANLIB"; then
18242 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18243 postinstall_cmds='$RANLIB $lib'
18244 fi
18245 ;;
18246
18247 aix[4-9]*)
18248 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18249 test "$enable_shared" = yes && enable_static=no
18250 fi
18251 ;;
18252 esac
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18254$as_echo "$enable_shared" >&6; }
18255
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18257$as_echo_n "checking whether to build static libraries... " >&6; }
18258 # Make sure either enable_shared or enable_static is yes.
18259 test "$enable_shared" = yes || enable_static=yes
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18261$as_echo "$enable_static" >&6; }
18262
18263
18264
18265
18266fi
18267ac_ext=c
18268ac_cpp='$CPP $CPPFLAGS'
18269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18271ac_compiler_gnu=$ac_cv_c_compiler_gnu
18272
18273CC="$lt_save_CC"
18274
cristy0c60a692010-11-04 01:09:47 +000018275 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18276 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18277 (test "X$CXX" != "Xg++"))) ; then
18278 ac_ext=cpp
18279ac_cpp='$CXXCPP $CPPFLAGS'
18280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18284$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18285if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018286 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018287 $as_echo_n "(cached) " >&6
18288else
18289 # Double quotes because CXXCPP needs to be expanded
18290 for CXXCPP in "$CXX -E" "/lib/cpp"
18291 do
18292 ac_preproc_ok=false
18293for ac_cxx_preproc_warn_flag in '' yes
18294do
18295 # Use a header file that comes with gcc, so configuring glibc
18296 # with a fresh cross-compiler works.
18297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18298 # <limits.h> exists even on freestanding compilers.
18299 # On the NeXT, cc -E runs the code through the compiler's parser,
18300 # not just through cpp. "Syntax error" is here to catch this case.
18301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18302/* end confdefs.h. */
18303#ifdef __STDC__
18304# include <limits.h>
18305#else
18306# include <assert.h>
18307#endif
18308 Syntax error
18309_ACEOF
18310if ac_fn_cxx_try_cpp "$LINENO"; then :
18311
18312else
18313 # Broken: fails on valid input.
18314continue
18315fi
cristyda16f162011-02-19 23:52:17 +000018316rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018317
18318 # OK, works on sane cases. Now check whether nonexistent headers
18319 # can be detected and how.
18320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18321/* end confdefs.h. */
18322#include <ac_nonexistent.h>
18323_ACEOF
18324if ac_fn_cxx_try_cpp "$LINENO"; then :
18325 # Broken: success on invalid input.
18326continue
18327else
18328 # Passes both tests.
18329ac_preproc_ok=:
18330break
18331fi
cristyda16f162011-02-19 23:52:17 +000018332rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018333
18334done
18335# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018336rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018337if $ac_preproc_ok; then :
18338 break
18339fi
18340
18341 done
18342 ac_cv_prog_CXXCPP=$CXXCPP
18343
18344fi
18345 CXXCPP=$ac_cv_prog_CXXCPP
18346else
18347 ac_cv_prog_CXXCPP=$CXXCPP
18348fi
18349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18350$as_echo "$CXXCPP" >&6; }
18351ac_preproc_ok=false
18352for ac_cxx_preproc_warn_flag in '' yes
18353do
18354 # Use a header file that comes with gcc, so configuring glibc
18355 # with a fresh cross-compiler works.
18356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18357 # <limits.h> exists even on freestanding compilers.
18358 # On the NeXT, cc -E runs the code through the compiler's parser,
18359 # not just through cpp. "Syntax error" is here to catch this case.
18360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18361/* end confdefs.h. */
18362#ifdef __STDC__
18363# include <limits.h>
18364#else
18365# include <assert.h>
18366#endif
18367 Syntax error
18368_ACEOF
18369if ac_fn_cxx_try_cpp "$LINENO"; then :
18370
18371else
18372 # Broken: fails on valid input.
18373continue
18374fi
cristyda16f162011-02-19 23:52:17 +000018375rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018376
18377 # OK, works on sane cases. Now check whether nonexistent headers
18378 # can be detected and how.
18379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18380/* end confdefs.h. */
18381#include <ac_nonexistent.h>
18382_ACEOF
18383if ac_fn_cxx_try_cpp "$LINENO"; then :
18384 # Broken: success on invalid input.
18385continue
18386else
18387 # Passes both tests.
18388ac_preproc_ok=:
18389break
18390fi
cristyda16f162011-02-19 23:52:17 +000018391rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018392
18393done
18394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018395rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018396if $ac_preproc_ok; then :
18397
18398else
18399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18401as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18402See \`config.log' for more details" "$LINENO" 5; }
18403fi
18404
18405ac_ext=c
18406ac_cpp='$CPP $CPPFLAGS'
18407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18409ac_compiler_gnu=$ac_cv_c_compiler_gnu
18410
18411else
18412 _lt_caught_CXX_error=yes
18413fi
cristy73bd4a52010-10-05 11:24:23 +000018414
18415ac_ext=cpp
18416ac_cpp='$CXXCPP $CPPFLAGS'
18417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18420
18421archive_cmds_need_lc_CXX=no
18422allow_undefined_flag_CXX=
18423always_export_symbols_CXX=no
18424archive_expsym_cmds_CXX=
18425compiler_needs_object_CXX=no
18426export_dynamic_flag_spec_CXX=
18427hardcode_direct_CXX=no
18428hardcode_direct_absolute_CXX=no
18429hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018430hardcode_libdir_separator_CXX=
18431hardcode_minus_L_CXX=no
18432hardcode_shlibpath_var_CXX=unsupported
18433hardcode_automatic_CXX=no
18434inherit_rpath_CXX=no
18435module_cmds_CXX=
18436module_expsym_cmds_CXX=
18437link_all_deplibs_CXX=unknown
18438old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018439reload_flag_CXX=$reload_flag
18440reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018441no_undefined_flag_CXX=
18442whole_archive_flag_spec_CXX=
18443enable_shared_with_static_runtimes_CXX=no
18444
18445# Source file extension for C++ test sources.
18446ac_ext=cpp
18447
18448# Object file extension for compiled C++ test sources.
18449objext=o
18450objext_CXX=$objext
18451
18452# No sense in running all these tests if we already determined that
18453# the CXX compiler isn't working. Some variables (like enable_shared)
18454# are currently assumed to apply to all compilers on this platform,
18455# and will be corrupted by setting them based on a non-working compiler.
18456if test "$_lt_caught_CXX_error" != yes; then
18457 # Code to be used in simple compile tests
18458 lt_simple_compile_test_code="int some_variable = 0;"
18459
18460 # Code to be used in simple link tests
18461 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18462
18463 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18464
18465
18466
18467
18468
18469
18470# If no C compiler was specified, use CC.
18471LTCC=${LTCC-"$CC"}
18472
18473# If no C compiler flags were specified, use CFLAGS.
18474LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18475
18476# Allow CC to be a program name with arguments.
18477compiler=$CC
18478
18479
18480 # save warnings/boilerplate of simple test code
18481 ac_outfile=conftest.$ac_objext
18482echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18483eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18484_lt_compiler_boilerplate=`cat conftest.err`
18485$RM conftest*
18486
18487 ac_outfile=conftest.$ac_objext
18488echo "$lt_simple_link_test_code" >conftest.$ac_ext
18489eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18490_lt_linker_boilerplate=`cat conftest.err`
18491$RM -r conftest*
18492
18493
18494 # Allow CC to be a program name with arguments.
18495 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018496 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018497 lt_save_LD=$LD
18498 lt_save_GCC=$GCC
18499 GCC=$GXX
18500 lt_save_with_gnu_ld=$with_gnu_ld
18501 lt_save_path_LD=$lt_cv_path_LD
18502 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18503 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18504 else
18505 $as_unset lt_cv_prog_gnu_ld
18506 fi
18507 if test -n "${lt_cv_path_LDCXX+set}"; then
18508 lt_cv_path_LD=$lt_cv_path_LDCXX
18509 else
18510 $as_unset lt_cv_path_LD
18511 fi
18512 test -z "${LDCXX+set}" || LD=$LDCXX
18513 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018514 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018515 compiler=$CC
18516 compiler_CXX=$CC
18517 for cc_temp in $compiler""; do
18518 case $cc_temp in
18519 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18520 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18521 \-*) ;;
18522 *) break;;
18523 esac
18524done
cristy0c60a692010-11-04 01:09:47 +000018525cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018526
18527
18528 if test -n "$compiler"; then
18529 # We don't want -fno-exception when compiling C++ code, so set the
18530 # no_builtin_flag separately
18531 if test "$GXX" = yes; then
18532 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18533 else
18534 lt_prog_compiler_no_builtin_flag_CXX=
18535 fi
18536
18537 if test "$GXX" = yes; then
18538 # Set up default GNU C++ configuration
18539
18540
18541
18542# Check whether --with-gnu-ld was given.
18543if test "${with_gnu_ld+set}" = set; then :
18544 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18545else
18546 with_gnu_ld=no
18547fi
18548
18549ac_prog=ld
18550if test "$GCC" = yes; then
18551 # Check if gcc -print-prog-name=ld gives a path.
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18553$as_echo_n "checking for ld used by $CC... " >&6; }
18554 case $host in
18555 *-*-mingw*)
18556 # gcc leaves a trailing carriage return which upsets mingw
18557 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18558 *)
18559 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18560 esac
18561 case $ac_prog in
18562 # Accept absolute paths.
18563 [\\/]* | ?:[\\/]*)
18564 re_direlt='/[^/][^/]*/\.\./'
18565 # Canonicalize the pathname of ld
18566 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18567 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18568 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18569 done
18570 test -z "$LD" && LD="$ac_prog"
18571 ;;
18572 "")
18573 # If it fails, then pretend we aren't using GCC.
18574 ac_prog=ld
18575 ;;
18576 *)
18577 # If it is relative, then search for the first ld in PATH.
18578 with_gnu_ld=unknown
18579 ;;
18580 esac
18581elif test "$with_gnu_ld" = yes; then
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18583$as_echo_n "checking for GNU ld... " >&6; }
18584else
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18586$as_echo_n "checking for non-GNU ld... " >&6; }
18587fi
cristyda16f162011-02-19 23:52:17 +000018588if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018589 $as_echo_n "(cached) " >&6
18590else
18591 if test -z "$LD"; then
18592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18593 for ac_dir in $PATH; do
18594 IFS="$lt_save_ifs"
18595 test -z "$ac_dir" && ac_dir=.
18596 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18597 lt_cv_path_LD="$ac_dir/$ac_prog"
18598 # Check to see if the program is GNU ld. I'd rather use --version,
18599 # but apparently some variants of GNU ld only accept -v.
18600 # Break only if it was the GNU/non-GNU ld that we prefer.
18601 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18602 *GNU* | *'with BFD'*)
18603 test "$with_gnu_ld" != no && break
18604 ;;
18605 *)
18606 test "$with_gnu_ld" != yes && break
18607 ;;
18608 esac
18609 fi
18610 done
18611 IFS="$lt_save_ifs"
18612else
18613 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18614fi
18615fi
18616
18617LD="$lt_cv_path_LD"
18618if test -n "$LD"; then
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18620$as_echo "$LD" >&6; }
18621else
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18623$as_echo "no" >&6; }
18624fi
cristy98dddb52010-11-04 00:30:15 +000018625test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18627$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018628if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018629 $as_echo_n "(cached) " >&6
18630else
18631 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18632case `$LD -v 2>&1 </dev/null` in
18633*GNU* | *'with BFD'*)
18634 lt_cv_prog_gnu_ld=yes
18635 ;;
18636*)
18637 lt_cv_prog_gnu_ld=no
18638 ;;
18639esac
18640fi
18641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18642$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18643with_gnu_ld=$lt_cv_prog_gnu_ld
18644
18645
18646
18647
18648
18649
18650
18651 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18652 # archiving commands below assume that GNU ld is being used.
18653 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018654 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18655 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'
cristy73bd4a52010-10-05 11:24:23 +000018656
18657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18658 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18659
18660 # If archive_cmds runs LD, not CC, wlarc should be empty
18661 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18662 # investigate it a little bit more. (MM)
18663 wlarc='${wl}'
18664
18665 # ancient GNU ld didn't support --whole-archive et. al.
18666 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18667 $GREP 'no-whole-archive' > /dev/null; then
18668 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18669 else
18670 whole_archive_flag_spec_CXX=
18671 fi
18672 else
18673 with_gnu_ld=no
18674 wlarc=
18675
18676 # A generic and very simple default shared library creation
18677 # command for GNU C++ for the case where it uses the native
18678 # linker, instead of GNU ld. If possible, this setting should
18679 # overridden to take advantage of the native linker features on
18680 # the platform it is being used on.
18681 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18682 fi
18683
18684 # Commands to make compiler produce verbose output that lists
18685 # what "hidden" libraries, object files and flags are used when
18686 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018687 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018688
18689 else
18690 GXX=no
18691 with_gnu_ld=no
18692 wlarc=
18693 fi
18694
18695 # PORTME: fill in a description of your system's C++ link characteristics
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18697$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18698 ld_shlibs_CXX=yes
18699 case $host_os in
18700 aix3*)
18701 # FIXME: insert proper C++ library support
18702 ld_shlibs_CXX=no
18703 ;;
18704 aix[4-9]*)
18705 if test "$host_cpu" = ia64; then
18706 # On IA64, the linker does run time linking by default, so we don't
18707 # have to do anything special.
18708 aix_use_runtimelinking=no
18709 exp_sym_flag='-Bexport'
18710 no_entry_flag=""
18711 else
18712 aix_use_runtimelinking=no
18713
18714 # Test if we are trying to use run time linking or normal
18715 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18716 # need to do runtime linking.
18717 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18718 for ld_flag in $LDFLAGS; do
18719 case $ld_flag in
18720 *-brtl*)
18721 aix_use_runtimelinking=yes
18722 break
18723 ;;
18724 esac
18725 done
18726 ;;
18727 esac
18728
18729 exp_sym_flag='-bexport'
18730 no_entry_flag='-bnoentry'
18731 fi
18732
18733 # When large executables or shared objects are built, AIX ld can
18734 # have problems creating the table of contents. If linking a library
18735 # or program results in "error TOC overflow" add -mminimal-toc to
18736 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18737 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18738
18739 archive_cmds_CXX=''
18740 hardcode_direct_CXX=yes
18741 hardcode_direct_absolute_CXX=yes
18742 hardcode_libdir_separator_CXX=':'
18743 link_all_deplibs_CXX=yes
18744 file_list_spec_CXX='${wl}-f,'
18745
18746 if test "$GXX" = yes; then
18747 case $host_os in aix4.[012]|aix4.[012].*)
18748 # We only want to do this on AIX 4.2 and lower, the check
18749 # below for broken collect2 doesn't work under 4.3+
18750 collect2name=`${CC} -print-prog-name=collect2`
18751 if test -f "$collect2name" &&
18752 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18753 then
18754 # We have reworked collect2
18755 :
18756 else
18757 # We have old collect2
18758 hardcode_direct_CXX=unsupported
18759 # It fails to find uninstalled libraries when the uninstalled
18760 # path is not listed in the libpath. Setting hardcode_minus_L
18761 # to unsupported forces relinking
18762 hardcode_minus_L_CXX=yes
18763 hardcode_libdir_flag_spec_CXX='-L$libdir'
18764 hardcode_libdir_separator_CXX=
18765 fi
18766 esac
18767 shared_flag='-shared'
18768 if test "$aix_use_runtimelinking" = yes; then
18769 shared_flag="$shared_flag "'${wl}-G'
18770 fi
18771 else
18772 # not using gcc
18773 if test "$host_cpu" = ia64; then
18774 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18775 # chokes on -Wl,-G. The following line is correct:
18776 shared_flag='-G'
18777 else
18778 if test "$aix_use_runtimelinking" = yes; then
18779 shared_flag='${wl}-G'
18780 else
18781 shared_flag='${wl}-bM:SRE'
18782 fi
18783 fi
18784 fi
18785
18786 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18787 # It seems that -bexpall does not export symbols beginning with
18788 # underscore (_), so it is better to generate a list of symbols to
18789 # export.
18790 always_export_symbols_CXX=yes
18791 if test "$aix_use_runtimelinking" = yes; then
18792 # Warning - without using the other runtime loading flags (-brtl),
18793 # -berok will link without error, but may produce a broken library.
18794 allow_undefined_flag_CXX='-berok'
18795 # Determine the default libpath from the value encoded in an empty
18796 # executable.
cristyda16f162011-02-19 23:52:17 +000018797 if test "${lt_cv_aix_libpath+set}" = set; then
18798 aix_libpath=$lt_cv_aix_libpath
18799else
18800 if ${lt_cv_aix_libpath__CXX+:} false; then :
18801 $as_echo_n "(cached) " >&6
18802else
18803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018804/* end confdefs.h. */
18805
18806int
18807main ()
18808{
18809
18810 ;
18811 return 0;
18812}
18813_ACEOF
18814if ac_fn_cxx_try_link "$LINENO"; then :
18815
cristyda16f162011-02-19 23:52:17 +000018816 lt_aix_libpath_sed='
18817 /Import File Strings/,/^$/ {
18818 /^0/ {
18819 s/^0 *\([^ ]*\) *$/\1/
18820 p
18821 }
18822 }'
18823 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18824 # Check for a 64-bit object if we didn't find anything.
18825 if test -z "$lt_cv_aix_libpath__CXX"; then
18826 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18827 fi
cristy73bd4a52010-10-05 11:24:23 +000018828fi
18829rm -f core conftest.err conftest.$ac_objext \
18830 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018831 if test -z "$lt_cv_aix_libpath__CXX"; then
18832 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18833 fi
18834
18835fi
18836
18837 aix_libpath=$lt_cv_aix_libpath__CXX
18838fi
cristy73bd4a52010-10-05 11:24:23 +000018839
18840 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18841
cristy0c60a692010-11-04 01:09:47 +000018842 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy73bd4a52010-10-05 11:24:23 +000018843 else
18844 if test "$host_cpu" = ia64; then
18845 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18846 allow_undefined_flag_CXX="-z nodefs"
18847 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"
18848 else
18849 # Determine the default libpath from the value encoded in an
18850 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018851 if test "${lt_cv_aix_libpath+set}" = set; then
18852 aix_libpath=$lt_cv_aix_libpath
18853else
18854 if ${lt_cv_aix_libpath__CXX+:} false; then :
18855 $as_echo_n "(cached) " >&6
18856else
18857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018858/* end confdefs.h. */
18859
18860int
18861main ()
18862{
18863
18864 ;
18865 return 0;
18866}
18867_ACEOF
18868if ac_fn_cxx_try_link "$LINENO"; then :
18869
cristyda16f162011-02-19 23:52:17 +000018870 lt_aix_libpath_sed='
18871 /Import File Strings/,/^$/ {
18872 /^0/ {
18873 s/^0 *\([^ ]*\) *$/\1/
18874 p
18875 }
18876 }'
18877 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18878 # Check for a 64-bit object if we didn't find anything.
18879 if test -z "$lt_cv_aix_libpath__CXX"; then
18880 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18881 fi
cristy73bd4a52010-10-05 11:24:23 +000018882fi
18883rm -f core conftest.err conftest.$ac_objext \
18884 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018885 if test -z "$lt_cv_aix_libpath__CXX"; then
18886 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18887 fi
18888
18889fi
18890
18891 aix_libpath=$lt_cv_aix_libpath__CXX
18892fi
cristy73bd4a52010-10-05 11:24:23 +000018893
18894 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18895 # Warning - without using the other run time loading flags,
18896 # -berok will link without error, but may produce a broken library.
18897 no_undefined_flag_CXX=' ${wl}-bernotok'
18898 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018899 if test "$with_gnu_ld" = yes; then
18900 # We only use this code for GNU lds that support --whole-archive.
18901 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18902 else
18903 # Exported symbols can be pulled into shared objects from archives
18904 whole_archive_flag_spec_CXX='$convenience'
18905 fi
cristy73bd4a52010-10-05 11:24:23 +000018906 archive_cmds_need_lc_CXX=yes
18907 # This is similar to how AIX traditionally builds its shared
18908 # libraries.
18909 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18910 fi
18911 fi
18912 ;;
18913
18914 beos*)
18915 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18916 allow_undefined_flag_CXX=unsupported
18917 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18918 # support --undefined. This deserves some investigation. FIXME
18919 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18920 else
18921 ld_shlibs_CXX=no
18922 fi
18923 ;;
18924
18925 chorus*)
18926 case $cc_basename in
18927 *)
18928 # FIXME: insert proper C++ library support
18929 ld_shlibs_CXX=no
18930 ;;
18931 esac
18932 ;;
18933
18934 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018935 case $GXX,$cc_basename in
18936 ,cl* | no,cl*)
18937 # Native MSVC
18938 # hardcode_libdir_flag_spec is actually meaningless, as there is
18939 # no search path for DLLs.
18940 hardcode_libdir_flag_spec_CXX=' '
18941 allow_undefined_flag_CXX=unsupported
18942 always_export_symbols_CXX=yes
18943 file_list_spec_CXX='@'
18944 # Tell ltmain to make .lib files, not .a files.
18945 libext=lib
18946 # Tell ltmain to make .dll files, not .so files.
18947 shrext_cmds=".dll"
18948 # FIXME: Setting linknames here is a bad hack.
18949 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18950 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18951 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18952 else
18953 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18954 fi~
18955 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18956 linknames='
18957 # The linker will not automatically build a static lib if we build a DLL.
18958 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18959 enable_shared_with_static_runtimes_CXX=yes
18960 # Don't use ranlib
18961 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18962 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18963 lt_tool_outputfile="@TOOL_OUTPUT@"~
18964 case $lt_outputfile in
18965 *.exe|*.EXE) ;;
18966 *)
18967 lt_outputfile="$lt_outputfile.exe"
18968 lt_tool_outputfile="$lt_tool_outputfile.exe"
18969 ;;
18970 esac~
18971 func_to_tool_file "$lt_outputfile"~
18972 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18973 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18974 $RM "$lt_outputfile.manifest";
18975 fi'
18976 ;;
18977 *)
18978 # g++
18979 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18980 # as there is no search path for DLLs.
18981 hardcode_libdir_flag_spec_CXX='-L$libdir'
18982 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18983 allow_undefined_flag_CXX=unsupported
18984 always_export_symbols_CXX=no
18985 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018986
cristyda16f162011-02-19 23:52:17 +000018987 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18988 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'
18989 # If the export-symbols file already is a .def file (1st line
18990 # is EXPORTS), use it as is; otherwise, prepend...
18991 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18992 cp $export_symbols $output_objdir/$soname.def;
18993 else
18994 echo EXPORTS > $output_objdir/$soname.def;
18995 cat $export_symbols >> $output_objdir/$soname.def;
18996 fi~
18997 $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'
18998 else
18999 ld_shlibs_CXX=no
19000 fi
19001 ;;
19002 esac
19003 ;;
cristy73bd4a52010-10-05 11:24:23 +000019004 darwin* | rhapsody*)
19005
19006
19007 archive_cmds_need_lc_CXX=no
19008 hardcode_direct_CXX=no
19009 hardcode_automatic_CXX=yes
19010 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000019011 if test "$lt_cv_ld_force_load" = "yes"; then
19012 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\"`'
cristy99bd5232011-12-07 14:38:20 +000019013
cristy0c60a692010-11-04 01:09:47 +000019014 else
19015 whole_archive_flag_spec_CXX=''
19016 fi
cristy73bd4a52010-10-05 11:24:23 +000019017 link_all_deplibs_CXX=yes
19018 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19019 case $cc_basename in
19020 ifort*) _lt_dar_can_shared=yes ;;
19021 *) _lt_dar_can_shared=$GCC ;;
19022 esac
19023 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000019024 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019025 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}"
19026 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19027 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}"
19028 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}"
19029 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19030 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}"
19031 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}"
19032 fi
19033
19034 else
19035 ld_shlibs_CXX=no
19036 fi
19037
19038 ;;
19039
19040 dgux*)
19041 case $cc_basename in
19042 ec++*)
19043 # FIXME: insert proper C++ library support
19044 ld_shlibs_CXX=no
19045 ;;
19046 ghcx*)
19047 # Green Hills C++ Compiler
19048 # FIXME: insert proper C++ library support
19049 ld_shlibs_CXX=no
19050 ;;
19051 *)
19052 # FIXME: insert proper C++ library support
19053 ld_shlibs_CXX=no
19054 ;;
19055 esac
19056 ;;
19057
cristy99bd5232011-12-07 14:38:20 +000019058 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019059 # C++ shared libraries reported to be fairly broken before
19060 # switch to ELF
19061 ld_shlibs_CXX=no
19062 ;;
19063
19064 freebsd-elf*)
19065 archive_cmds_need_lc_CXX=no
19066 ;;
19067
19068 freebsd* | dragonfly*)
19069 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19070 # conventions
19071 ld_shlibs_CXX=yes
19072 ;;
19073
19074 gnu*)
19075 ;;
19076
cristy0c60a692010-11-04 01:09:47 +000019077 haiku*)
19078 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19079 link_all_deplibs_CXX=yes
19080 ;;
19081
cristy73bd4a52010-10-05 11:24:23 +000019082 hpux9*)
19083 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19084 hardcode_libdir_separator_CXX=:
19085 export_dynamic_flag_spec_CXX='${wl}-E'
19086 hardcode_direct_CXX=yes
19087 hardcode_minus_L_CXX=yes # Not in the search PATH,
19088 # but as the default
19089 # location of the library.
19090
19091 case $cc_basename in
19092 CC*)
19093 # FIXME: insert proper C++ library support
19094 ld_shlibs_CXX=no
19095 ;;
19096 aCC*)
19097 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19098 # Commands to make compiler produce verbose output that lists
19099 # what "hidden" libraries, object files and flags are used when
19100 # linking a shared library.
19101 #
19102 # There doesn't appear to be a way to prevent this compiler from
19103 # explicitly linking system object files so we need to strip them
19104 # from the output so that they don't get included in the library
19105 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019106 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"'
cristy73bd4a52010-10-05 11:24:23 +000019107 ;;
19108 *)
19109 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000019110 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cristy73bd4a52010-10-05 11:24:23 +000019111 else
19112 # FIXME: insert proper C++ library support
19113 ld_shlibs_CXX=no
19114 fi
19115 ;;
19116 esac
19117 ;;
19118
19119 hpux10*|hpux11*)
19120 if test $with_gnu_ld = no; then
19121 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19122 hardcode_libdir_separator_CXX=:
19123
19124 case $host_cpu in
19125 hppa*64*|ia64*)
19126 ;;
19127 *)
19128 export_dynamic_flag_spec_CXX='${wl}-E'
19129 ;;
19130 esac
19131 fi
19132 case $host_cpu in
19133 hppa*64*|ia64*)
19134 hardcode_direct_CXX=no
19135 hardcode_shlibpath_var_CXX=no
19136 ;;
19137 *)
19138 hardcode_direct_CXX=yes
19139 hardcode_direct_absolute_CXX=yes
19140 hardcode_minus_L_CXX=yes # Not in the search PATH,
19141 # but as the default
19142 # location of the library.
19143 ;;
19144 esac
19145
19146 case $cc_basename in
19147 CC*)
19148 # FIXME: insert proper C++ library support
19149 ld_shlibs_CXX=no
19150 ;;
19151 aCC*)
19152 case $host_cpu in
19153 hppa*64*)
19154 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19155 ;;
19156 ia64*)
19157 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19158 ;;
19159 *)
19160 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19161 ;;
19162 esac
19163 # Commands to make compiler produce verbose output that lists
19164 # what "hidden" libraries, object files and flags are used when
19165 # linking a shared library.
19166 #
19167 # There doesn't appear to be a way to prevent this compiler from
19168 # explicitly linking system object files so we need to strip them
19169 # from the output so that they don't get included in the library
19170 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019171 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"'
cristy73bd4a52010-10-05 11:24:23 +000019172 ;;
19173 *)
19174 if test "$GXX" = yes; then
19175 if test $with_gnu_ld = no; then
19176 case $host_cpu in
19177 hppa*64*)
19178 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19179 ;;
19180 ia64*)
cristyda16f162011-02-19 23:52:17 +000019181 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000019182 ;;
19183 *)
cristyda16f162011-02-19 23:52:17 +000019184 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'
cristy73bd4a52010-10-05 11:24:23 +000019185 ;;
19186 esac
19187 fi
19188 else
19189 # FIXME: insert proper C++ library support
19190 ld_shlibs_CXX=no
19191 fi
19192 ;;
19193 esac
19194 ;;
19195
19196 interix[3-9]*)
19197 hardcode_direct_CXX=no
19198 hardcode_shlibpath_var_CXX=no
19199 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19200 export_dynamic_flag_spec_CXX='${wl}-E'
19201 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19202 # Instead, shared libraries are loaded at an image base (0x10000000 by
19203 # default) and relocated if they conflict, which is a slow very memory
19204 # consuming and fragmenting process. To avoid this, we pick a random,
19205 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19206 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19207 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'
19208 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'
19209 ;;
19210 irix5* | irix6*)
19211 case $cc_basename in
19212 CC*)
19213 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000019214 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'
cristy73bd4a52010-10-05 11:24:23 +000019215
19216 # Archives containing C++ object files must be created using
19217 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19218 # necessary to make sure instantiated templates are included
19219 # in the archive.
19220 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19221 ;;
19222 *)
19223 if test "$GXX" = yes; then
19224 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000019225 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'
cristy73bd4a52010-10-05 11:24:23 +000019226 else
cristyda16f162011-02-19 23:52:17 +000019227 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'
cristy73bd4a52010-10-05 11:24:23 +000019228 fi
19229 fi
19230 link_all_deplibs_CXX=yes
19231 ;;
19232 esac
19233 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19234 hardcode_libdir_separator_CXX=:
19235 inherit_rpath_CXX=yes
19236 ;;
19237
cristy0c60a692010-11-04 01:09:47 +000019238 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019239 case $cc_basename in
19240 KCC*)
19241 # Kuck and Associates, Inc. (KAI) C++ Compiler
19242
19243 # KCC will only create a shared library if the output file
19244 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19245 # to its proper name (with version) after linking.
19246 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'
19247 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'
19248 # Commands to make compiler produce verbose output that lists
19249 # what "hidden" libraries, object files and flags are used when
19250 # linking a shared library.
19251 #
19252 # There doesn't appear to be a way to prevent this compiler from
19253 # explicitly linking system object files so we need to strip them
19254 # from the output so that they don't get included in the library
19255 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019256 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"'
cristy73bd4a52010-10-05 11:24:23 +000019257
19258 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19259 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19260
19261 # Archives containing C++ object files must be created using
19262 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19263 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19264 ;;
19265 icpc* | ecpc* )
19266 # Intel C++
19267 with_gnu_ld=yes
19268 # version 8.0 and above of icpc choke on multiply defined symbols
19269 # if we add $predep_objects and $postdep_objects, however 7.1 and
19270 # earlier do not add the objects themselves.
19271 case `$CC -V 2>&1` in
19272 *"Version 7."*)
19273 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19274 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'
19275 ;;
19276 *) # Version 8.0 or newer
19277 tmp_idyn=
19278 case $host_cpu in
19279 ia64*) tmp_idyn=' -i_dynamic';;
19280 esac
19281 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19282 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'
19283 ;;
19284 esac
19285 archive_cmds_need_lc_CXX=no
19286 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19287 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19288 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19289 ;;
19290 pgCC* | pgcpp*)
19291 # Portland Group C++ compiler
19292 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019293 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019294 prelink_cmds_CXX='tpldir=Template.dir~
19295 rm -rf $tpldir~
19296 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019297 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019298 old_archive_cmds_CXX='tpldir=Template.dir~
19299 rm -rf $tpldir~
19300 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019301 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019302 $RANLIB $oldlib'
19303 archive_cmds_CXX='tpldir=Template.dir~
19304 rm -rf $tpldir~
19305 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019306 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000019307 archive_expsym_cmds_CXX='tpldir=Template.dir~
19308 rm -rf $tpldir~
19309 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019310 $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'
cristy73bd4a52010-10-05 11:24:23 +000019311 ;;
cristy0c60a692010-11-04 01:09:47 +000019312 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019313 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19314 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'
19315 ;;
19316 esac
19317
19318 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19319 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019320 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'
cristy73bd4a52010-10-05 11:24:23 +000019321 ;;
19322 cxx*)
19323 # Compaq C++
19324 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19325 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'
19326
19327 runpath_var=LD_RUN_PATH
19328 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19329 hardcode_libdir_separator_CXX=:
19330
19331 # Commands to make compiler produce verbose output that lists
19332 # what "hidden" libraries, object files and flags are used when
19333 # linking a shared library.
19334 #
19335 # There doesn't appear to be a way to prevent this compiler from
19336 # explicitly linking system object files so we need to strip them
19337 # from the output so that they don't get included in the library
19338 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019339 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'
cristy73bd4a52010-10-05 11:24:23 +000019340 ;;
cristy0c60a692010-11-04 01:09:47 +000019341 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019342 # IBM XL 8.0 on PPC, with GNU ld
19343 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19344 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19345 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19346 if test "x$supports_anon_versioning" = xyes; then
19347 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19349 echo "local: *; };" >> $output_objdir/$libname.ver~
19350 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19351 fi
19352 ;;
19353 *)
19354 case `$CC -V 2>&1 | sed 5q` in
19355 *Sun\ C*)
19356 # Sun C++ 5.9
19357 no_undefined_flag_CXX=' -zdefs'
19358 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19359 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'
19360 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019361 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'
cristy73bd4a52010-10-05 11:24:23 +000019362 compiler_needs_object_CXX=yes
19363
19364 # Not sure whether something based on
19365 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19366 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019367 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019368
19369 # Archives containing C++ object files must be created using
19370 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19371 # necessary to make sure instantiated templates are included
19372 # in the archive.
19373 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19374 ;;
19375 esac
19376 ;;
19377 esac
19378 ;;
19379
19380 lynxos*)
19381 # FIXME: insert proper C++ library support
19382 ld_shlibs_CXX=no
19383 ;;
19384
19385 m88k*)
19386 # FIXME: insert proper C++ library support
19387 ld_shlibs_CXX=no
19388 ;;
19389
19390 mvs*)
19391 case $cc_basename in
19392 cxx*)
19393 # FIXME: insert proper C++ library support
19394 ld_shlibs_CXX=no
19395 ;;
19396 *)
19397 # FIXME: insert proper C++ library support
19398 ld_shlibs_CXX=no
19399 ;;
19400 esac
19401 ;;
19402
19403 netbsd*)
19404 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19405 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19406 wlarc=
19407 hardcode_libdir_flag_spec_CXX='-R$libdir'
19408 hardcode_direct_CXX=yes
19409 hardcode_shlibpath_var_CXX=no
19410 fi
19411 # Workaround some broken pre-1.5 toolchains
19412 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19413 ;;
19414
19415 *nto* | *qnx*)
19416 ld_shlibs_CXX=yes
19417 ;;
19418
19419 openbsd2*)
19420 # C++ shared libraries are fairly broken
19421 ld_shlibs_CXX=no
19422 ;;
19423
19424 openbsd*)
19425 if test -f /usr/libexec/ld.so; then
19426 hardcode_direct_CXX=yes
19427 hardcode_shlibpath_var_CXX=no
19428 hardcode_direct_absolute_CXX=yes
19429 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19430 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19431 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19432 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19433 export_dynamic_flag_spec_CXX='${wl}-E'
19434 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19435 fi
cristy0c60a692010-11-04 01:09:47 +000019436 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019437 else
19438 ld_shlibs_CXX=no
19439 fi
19440 ;;
19441
19442 osf3* | osf4* | osf5*)
19443 case $cc_basename in
19444 KCC*)
19445 # Kuck and Associates, Inc. (KAI) C++ Compiler
19446
19447 # KCC will only create a shared library if the output file
19448 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19449 # to its proper name (with version) after linking.
19450 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'
19451
19452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19453 hardcode_libdir_separator_CXX=:
19454
19455 # Archives containing C++ object files must be created using
19456 # the KAI C++ compiler.
19457 case $host in
19458 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19459 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19460 esac
19461 ;;
19462 RCC*)
19463 # Rational C++ 2.4.1
19464 # FIXME: insert proper C++ library support
19465 ld_shlibs_CXX=no
19466 ;;
19467 cxx*)
19468 case $host in
19469 osf3*)
19470 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019471 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'
cristy73bd4a52010-10-05 11:24:23 +000019472 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19473 ;;
19474 *)
19475 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019476 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'
cristy73bd4a52010-10-05 11:24:23 +000019477 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19478 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019479 $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~
cristy73bd4a52010-10-05 11:24:23 +000019480 $RM $lib.exp'
19481 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19482 ;;
19483 esac
19484
19485 hardcode_libdir_separator_CXX=:
19486
19487 # Commands to make compiler produce verbose output that lists
19488 # what "hidden" libraries, object files and flags are used when
19489 # linking a shared library.
19490 #
19491 # There doesn't appear to be a way to prevent this compiler from
19492 # explicitly linking system object files so we need to strip them
19493 # from the output so that they don't get included in the library
19494 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019495 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"'
cristy73bd4a52010-10-05 11:24:23 +000019496 ;;
19497 *)
19498 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19499 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19500 case $host in
19501 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019502 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'
cristy73bd4a52010-10-05 11:24:23 +000019503 ;;
19504 *)
cristyda16f162011-02-19 23:52:17 +000019505 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'
cristy73bd4a52010-10-05 11:24:23 +000019506 ;;
19507 esac
19508
19509 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19510 hardcode_libdir_separator_CXX=:
19511
19512 # Commands to make compiler produce verbose output that lists
19513 # what "hidden" libraries, object files and flags are used when
19514 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019515 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019516
19517 else
19518 # FIXME: insert proper C++ library support
19519 ld_shlibs_CXX=no
19520 fi
19521 ;;
19522 esac
19523 ;;
19524
19525 psos*)
19526 # FIXME: insert proper C++ library support
19527 ld_shlibs_CXX=no
19528 ;;
19529
19530 sunos4*)
19531 case $cc_basename in
19532 CC*)
19533 # Sun C++ 4.x
19534 # FIXME: insert proper C++ library support
19535 ld_shlibs_CXX=no
19536 ;;
19537 lcc*)
19538 # Lucid
19539 # FIXME: insert proper C++ library support
19540 ld_shlibs_CXX=no
19541 ;;
19542 *)
19543 # FIXME: insert proper C++ library support
19544 ld_shlibs_CXX=no
19545 ;;
19546 esac
19547 ;;
19548
19549 solaris*)
19550 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019551 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019552 # Sun C++ 4.2, 5.x and Centerline C++
19553 archive_cmds_need_lc_CXX=yes
19554 no_undefined_flag_CXX=' -zdefs'
19555 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19556 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19557 $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'
19558
19559 hardcode_libdir_flag_spec_CXX='-R$libdir'
19560 hardcode_shlibpath_var_CXX=no
19561 case $host_os in
19562 solaris2.[0-5] | solaris2.[0-5].*) ;;
19563 *)
19564 # The compiler driver will combine and reorder linker options,
19565 # but understands `-z linker_flag'.
19566 # Supported since Solaris 2.6 (maybe 2.5.1?)
19567 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19568 ;;
19569 esac
19570 link_all_deplibs_CXX=yes
19571
cristy0c60a692010-11-04 01:09:47 +000019572 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019573
19574 # Archives containing C++ object files must be created using
19575 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19576 # necessary to make sure instantiated templates are included
19577 # in the archive.
19578 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19579 ;;
19580 gcx*)
19581 # Green Hills C++ Compiler
19582 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19583
19584 # The C++ compiler must be used to create the archive.
19585 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19586 ;;
19587 *)
19588 # GNU C++ compiler with Solaris linker
19589 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19590 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19591 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019592 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000019593 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000019594 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000019595
19596 # Commands to make compiler produce verbose output that lists
19597 # what "hidden" libraries, object files and flags are used when
19598 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019599 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019600 else
19601 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19602 # platform.
19603 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19604 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19605 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19606
19607 # Commands to make compiler produce verbose output that lists
19608 # what "hidden" libraries, object files and flags are used when
19609 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019610 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019611 fi
19612
19613 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19614 case $host_os in
19615 solaris2.[0-5] | solaris2.[0-5].*) ;;
19616 *)
19617 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19618 ;;
19619 esac
19620 fi
19621 ;;
19622 esac
19623 ;;
19624
19625 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19626 no_undefined_flag_CXX='${wl}-z,text'
19627 archive_cmds_need_lc_CXX=no
19628 hardcode_shlibpath_var_CXX=no
19629 runpath_var='LD_RUN_PATH'
19630
19631 case $cc_basename in
19632 CC*)
19633 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19634 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19635 ;;
19636 *)
19637 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19638 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19639 ;;
19640 esac
19641 ;;
19642
19643 sysv5* | sco3.2v5* | sco5v6*)
19644 # Note: We can NOT use -z defs as we might desire, because we do not
19645 # link with -lc, and that would cause any symbols used from libc to
19646 # always be unresolved, which means just about no library would
19647 # ever link correctly. If we're not using GNU ld we use -z text
19648 # though, which does catch some bad symbols but isn't as heavy-handed
19649 # as -z defs.
19650 no_undefined_flag_CXX='${wl}-z,text'
19651 allow_undefined_flag_CXX='${wl}-z,nodefs'
19652 archive_cmds_need_lc_CXX=no
19653 hardcode_shlibpath_var_CXX=no
19654 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19655 hardcode_libdir_separator_CXX=':'
19656 link_all_deplibs_CXX=yes
19657 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19658 runpath_var='LD_RUN_PATH'
19659
19660 case $cc_basename in
19661 CC*)
19662 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19663 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy0c60a692010-11-04 01:09:47 +000019664 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19665 '"$old_archive_cmds_CXX"
19666 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19667 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019668 ;;
19669 *)
19670 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19671 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19672 ;;
19673 esac
19674 ;;
19675
19676 tandem*)
19677 case $cc_basename in
19678 NCC*)
19679 # NonStop-UX NCC 3.20
19680 # FIXME: insert proper C++ library support
19681 ld_shlibs_CXX=no
19682 ;;
19683 *)
19684 # FIXME: insert proper C++ library support
19685 ld_shlibs_CXX=no
19686 ;;
19687 esac
19688 ;;
19689
19690 vxworks*)
19691 # FIXME: insert proper C++ library support
19692 ld_shlibs_CXX=no
19693 ;;
19694
19695 *)
19696 # FIXME: insert proper C++ library support
19697 ld_shlibs_CXX=no
19698 ;;
19699 esac
19700
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19702$as_echo "$ld_shlibs_CXX" >&6; }
19703 test "$ld_shlibs_CXX" = no && can_build_shared=no
19704
19705 GCC_CXX="$GXX"
19706 LD_CXX="$LD"
19707
19708 ## CAVEAT EMPTOR:
19709 ## There is no encapsulation within the following macros, do not change
19710 ## the running order or otherwise move them around unless you know exactly
19711 ## what you are doing...
19712 # Dependencies to place before and after the object being linked:
19713predep_objects_CXX=
19714postdep_objects_CXX=
19715predeps_CXX=
19716postdeps_CXX=
19717compiler_lib_search_path_CXX=
19718
19719cat > conftest.$ac_ext <<_LT_EOF
19720class Foo
19721{
19722public:
19723 Foo (void) { a = 0; }
19724private:
19725 int a;
19726};
19727_LT_EOF
19728
cristyda16f162011-02-19 23:52:17 +000019729
19730_lt_libdeps_save_CFLAGS=$CFLAGS
19731case "$CC $CFLAGS " in #(
19732*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19733*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019734*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019735esac
19736
cristy73bd4a52010-10-05 11:24:23 +000019737if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19738 (eval $ac_compile) 2>&5
19739 ac_status=$?
19740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19741 test $ac_status = 0; }; then
19742 # Parse the compiler output and extract the necessary
19743 # objects, libraries and library flags.
19744
19745 # Sentinel used to keep track of whether or not we are before
19746 # the conftest object file.
19747 pre_test_object_deps_done=no
19748
19749 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019750 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019751
19752 -L* | -R* | -l*)
19753 # Some compilers place space between "-{L,R}" and the path.
19754 # Remove the space.
19755 if test $p = "-L" ||
19756 test $p = "-R"; then
19757 prev=$p
19758 continue
cristy73bd4a52010-10-05 11:24:23 +000019759 fi
19760
cristyda16f162011-02-19 23:52:17 +000019761 # Expand the sysroot to ease extracting the directories later.
19762 if test -z "$prev"; then
19763 case $p in
19764 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19765 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19766 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19767 esac
19768 fi
19769 case $p in
19770 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19771 esac
cristy73bd4a52010-10-05 11:24:23 +000019772 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019773 case ${prev} in
19774 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019775 # Internal compiler library paths should come after those
19776 # provided the user. The postdeps already come after the
19777 # user supplied libs so there is no need to process them.
19778 if test -z "$compiler_lib_search_path_CXX"; then
19779 compiler_lib_search_path_CXX="${prev}${p}"
19780 else
19781 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19782 fi
19783 ;;
19784 # The "-l" case would never come before the object being
19785 # linked, so don't bother handling this case.
19786 esac
19787 else
19788 if test -z "$postdeps_CXX"; then
19789 postdeps_CXX="${prev}${p}"
19790 else
19791 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19792 fi
19793 fi
cristyda16f162011-02-19 23:52:17 +000019794 prev=
cristy73bd4a52010-10-05 11:24:23 +000019795 ;;
19796
cristyda16f162011-02-19 23:52:17 +000019797 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019798 *.$objext)
19799 # This assumes that the test object file only shows up
19800 # once in the compiler output.
19801 if test "$p" = "conftest.$objext"; then
19802 pre_test_object_deps_done=yes
19803 continue
19804 fi
19805
19806 if test "$pre_test_object_deps_done" = no; then
19807 if test -z "$predep_objects_CXX"; then
19808 predep_objects_CXX="$p"
19809 else
19810 predep_objects_CXX="$predep_objects_CXX $p"
19811 fi
19812 else
19813 if test -z "$postdep_objects_CXX"; then
19814 postdep_objects_CXX="$p"
19815 else
19816 postdep_objects_CXX="$postdep_objects_CXX $p"
19817 fi
19818 fi
19819 ;;
19820
19821 *) ;; # Ignore the rest.
19822
19823 esac
19824 done
19825
19826 # Clean up.
19827 rm -f a.out a.exe
19828else
19829 echo "libtool.m4: error: problem compiling CXX test program"
19830fi
19831
19832$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019833CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019834
19835# PORTME: override above test on systems where it is broken
19836case $host_os in
19837interix[3-9]*)
19838 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19839 # hack all around it, let's just trust "g++" to DTRT.
19840 predep_objects_CXX=
19841 postdep_objects_CXX=
19842 postdeps_CXX=
19843 ;;
19844
19845linux*)
19846 case `$CC -V 2>&1 | sed 5q` in
19847 *Sun\ C*)
19848 # Sun C++ 5.9
19849
19850 # The more standards-conforming stlport4 library is
19851 # incompatible with the Cstd library. Avoid specifying
19852 # it if it's in CXXFLAGS. Ignore libCrun as
19853 # -library=stlport4 depends on it.
19854 case " $CXX $CXXFLAGS " in
19855 *" -library=stlport4 "*)
19856 solaris_use_stlport4=yes
19857 ;;
19858 esac
19859
19860 if test "$solaris_use_stlport4" != yes; then
19861 postdeps_CXX='-library=Cstd -library=Crun'
19862 fi
19863 ;;
19864 esac
19865 ;;
19866
19867solaris*)
19868 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019869 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019870 # The more standards-conforming stlport4 library is
19871 # incompatible with the Cstd library. Avoid specifying
19872 # it if it's in CXXFLAGS. Ignore libCrun as
19873 # -library=stlport4 depends on it.
19874 case " $CXX $CXXFLAGS " in
19875 *" -library=stlport4 "*)
19876 solaris_use_stlport4=yes
19877 ;;
19878 esac
19879
19880 # Adding this requires a known-good setup of shared libraries for
19881 # Sun compiler versions before 5.6, else PIC objects from an old
19882 # archive will be linked into the output, leading to subtle bugs.
19883 if test "$solaris_use_stlport4" != yes; then
19884 postdeps_CXX='-library=Cstd -library=Crun'
19885 fi
19886 ;;
19887 esac
19888 ;;
19889esac
19890
19891
19892case " $postdeps_CXX " in
19893*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19894esac
19895 compiler_lib_search_dirs_CXX=
19896if test -n "${compiler_lib_search_path_CXX}"; then
19897 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19898fi
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930 lt_prog_compiler_wl_CXX=
19931lt_prog_compiler_pic_CXX=
19932lt_prog_compiler_static_CXX=
19933
cristy73bd4a52010-10-05 11:24:23 +000019934
19935 # C++ specific cases for pic, static, wl, etc.
19936 if test "$GXX" = yes; then
19937 lt_prog_compiler_wl_CXX='-Wl,'
19938 lt_prog_compiler_static_CXX='-static'
19939
19940 case $host_os in
19941 aix*)
19942 # All AIX code is PIC.
19943 if test "$host_cpu" = ia64; then
19944 # AIX 5 now supports IA64 processor
19945 lt_prog_compiler_static_CXX='-Bstatic'
19946 fi
19947 ;;
19948
19949 amigaos*)
19950 case $host_cpu in
19951 powerpc)
19952 # see comment about AmigaOS4 .so support
19953 lt_prog_compiler_pic_CXX='-fPIC'
19954 ;;
19955 m68k)
19956 # FIXME: we need at least 68020 code to build shared libraries, but
19957 # adding the `-m68020' flag to GCC prevents building anything better,
19958 # like `-m68040'.
19959 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19960 ;;
19961 esac
19962 ;;
19963
19964 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19965 # PIC is the default for these OSes.
19966 ;;
19967 mingw* | cygwin* | os2* | pw32* | cegcc*)
19968 # This hack is so that the source file can tell whether it is being
19969 # built for inclusion in a dll (and should export symbols for example).
19970 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19971 # (--disable-auto-import) libraries
19972 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19973 ;;
19974 darwin* | rhapsody*)
19975 # PIC is the default on this platform
19976 # Common symbols not allowed in MH_DYLIB files
19977 lt_prog_compiler_pic_CXX='-fno-common'
19978 ;;
19979 *djgpp*)
19980 # DJGPP does not support shared libraries at all
19981 lt_prog_compiler_pic_CXX=
19982 ;;
cristy0c60a692010-11-04 01:09:47 +000019983 haiku*)
19984 # PIC is the default for Haiku.
19985 # The "-static" flag exists, but is broken.
19986 lt_prog_compiler_static_CXX=
19987 ;;
cristy73bd4a52010-10-05 11:24:23 +000019988 interix[3-9]*)
19989 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19990 # Instead, we relocate shared libraries at runtime.
19991 ;;
19992 sysv4*MP*)
19993 if test -d /usr/nec; then
19994 lt_prog_compiler_pic_CXX=-Kconform_pic
19995 fi
19996 ;;
19997 hpux*)
19998 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19999 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20000 # sets the default TLS model and affects inlining.
20001 case $host_cpu in
20002 hppa*64*)
20003 ;;
20004 *)
20005 lt_prog_compiler_pic_CXX='-fPIC'
20006 ;;
20007 esac
20008 ;;
20009 *qnx* | *nto*)
20010 # QNX uses GNU C++, but need to define -shared option too, otherwise
20011 # it will coredump.
20012 lt_prog_compiler_pic_CXX='-fPIC -shared'
20013 ;;
20014 *)
20015 lt_prog_compiler_pic_CXX='-fPIC'
20016 ;;
20017 esac
20018 else
20019 case $host_os in
20020 aix[4-9]*)
20021 # All AIX code is PIC.
20022 if test "$host_cpu" = ia64; then
20023 # AIX 5 now supports IA64 processor
20024 lt_prog_compiler_static_CXX='-Bstatic'
20025 else
20026 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20027 fi
20028 ;;
20029 chorus*)
20030 case $cc_basename in
20031 cxch68*)
20032 # Green Hills C++ Compiler
20033 # _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"
20034 ;;
20035 esac
20036 ;;
cristyda16f162011-02-19 23:52:17 +000020037 mingw* | cygwin* | os2* | pw32* | cegcc*)
20038 # This hack is so that the source file can tell whether it is being
20039 # built for inclusion in a dll (and should export symbols for example).
20040 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20041 ;;
cristy73bd4a52010-10-05 11:24:23 +000020042 dgux*)
20043 case $cc_basename in
20044 ec++*)
20045 lt_prog_compiler_pic_CXX='-KPIC'
20046 ;;
20047 ghcx*)
20048 # Green Hills C++ Compiler
20049 lt_prog_compiler_pic_CXX='-pic'
20050 ;;
20051 *)
20052 ;;
20053 esac
20054 ;;
20055 freebsd* | dragonfly*)
20056 # FreeBSD uses GNU C++
20057 ;;
20058 hpux9* | hpux10* | hpux11*)
20059 case $cc_basename in
20060 CC*)
20061 lt_prog_compiler_wl_CXX='-Wl,'
20062 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20063 if test "$host_cpu" != ia64; then
20064 lt_prog_compiler_pic_CXX='+Z'
20065 fi
20066 ;;
20067 aCC*)
20068 lt_prog_compiler_wl_CXX='-Wl,'
20069 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20070 case $host_cpu in
20071 hppa*64*|ia64*)
20072 # +Z the default
20073 ;;
20074 *)
20075 lt_prog_compiler_pic_CXX='+Z'
20076 ;;
20077 esac
20078 ;;
20079 *)
20080 ;;
20081 esac
20082 ;;
20083 interix*)
20084 # This is c89, which is MS Visual C++ (no shared libs)
20085 # Anyone wants to do a port?
20086 ;;
20087 irix5* | irix6* | nonstopux*)
20088 case $cc_basename in
20089 CC*)
20090 lt_prog_compiler_wl_CXX='-Wl,'
20091 lt_prog_compiler_static_CXX='-non_shared'
20092 # CC pic flag -KPIC is the default.
20093 ;;
20094 *)
20095 ;;
20096 esac
20097 ;;
cristy0c60a692010-11-04 01:09:47 +000020098 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020099 case $cc_basename in
20100 KCC*)
20101 # KAI C++ Compiler
20102 lt_prog_compiler_wl_CXX='--backend -Wl,'
20103 lt_prog_compiler_pic_CXX='-fPIC'
20104 ;;
20105 ecpc* )
20106 # old Intel C++ for x86_64 which still supported -KPIC.
20107 lt_prog_compiler_wl_CXX='-Wl,'
20108 lt_prog_compiler_pic_CXX='-KPIC'
20109 lt_prog_compiler_static_CXX='-static'
20110 ;;
20111 icpc* )
20112 # Intel C++, used to be incompatible with GCC.
20113 # ICC 10 doesn't accept -KPIC any more.
20114 lt_prog_compiler_wl_CXX='-Wl,'
20115 lt_prog_compiler_pic_CXX='-fPIC'
20116 lt_prog_compiler_static_CXX='-static'
20117 ;;
20118 pgCC* | pgcpp*)
20119 # Portland Group C++ compiler
20120 lt_prog_compiler_wl_CXX='-Wl,'
20121 lt_prog_compiler_pic_CXX='-fpic'
20122 lt_prog_compiler_static_CXX='-Bstatic'
20123 ;;
20124 cxx*)
20125 # Compaq C++
20126 # Make sure the PIC flag is empty. It appears that all Alpha
20127 # Linux and Compaq Tru64 Unix objects are PIC.
20128 lt_prog_compiler_pic_CXX=
20129 lt_prog_compiler_static_CXX='-non_shared'
20130 ;;
cristy0c60a692010-11-04 01:09:47 +000020131 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20132 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000020133 lt_prog_compiler_wl_CXX='-Wl,'
20134 lt_prog_compiler_pic_CXX='-qpic'
20135 lt_prog_compiler_static_CXX='-qstaticlink'
20136 ;;
20137 *)
20138 case `$CC -V 2>&1 | sed 5q` in
20139 *Sun\ C*)
20140 # Sun C++ 5.9
20141 lt_prog_compiler_pic_CXX='-KPIC'
20142 lt_prog_compiler_static_CXX='-Bstatic'
20143 lt_prog_compiler_wl_CXX='-Qoption ld '
20144 ;;
20145 esac
20146 ;;
20147 esac
20148 ;;
20149 lynxos*)
20150 ;;
20151 m88k*)
20152 ;;
20153 mvs*)
20154 case $cc_basename in
20155 cxx*)
20156 lt_prog_compiler_pic_CXX='-W c,exportall'
20157 ;;
20158 *)
20159 ;;
20160 esac
20161 ;;
20162 netbsd*)
20163 ;;
20164 *qnx* | *nto*)
20165 # QNX uses GNU C++, but need to define -shared option too, otherwise
20166 # it will coredump.
20167 lt_prog_compiler_pic_CXX='-fPIC -shared'
20168 ;;
20169 osf3* | osf4* | osf5*)
20170 case $cc_basename in
20171 KCC*)
20172 lt_prog_compiler_wl_CXX='--backend -Wl,'
20173 ;;
20174 RCC*)
20175 # Rational C++ 2.4.1
20176 lt_prog_compiler_pic_CXX='-pic'
20177 ;;
20178 cxx*)
20179 # Digital/Compaq C++
20180 lt_prog_compiler_wl_CXX='-Wl,'
20181 # Make sure the PIC flag is empty. It appears that all Alpha
20182 # Linux and Compaq Tru64 Unix objects are PIC.
20183 lt_prog_compiler_pic_CXX=
20184 lt_prog_compiler_static_CXX='-non_shared'
20185 ;;
20186 *)
20187 ;;
20188 esac
20189 ;;
20190 psos*)
20191 ;;
20192 solaris*)
20193 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020194 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020195 # Sun C++ 4.2, 5.x and Centerline C++
20196 lt_prog_compiler_pic_CXX='-KPIC'
20197 lt_prog_compiler_static_CXX='-Bstatic'
20198 lt_prog_compiler_wl_CXX='-Qoption ld '
20199 ;;
20200 gcx*)
20201 # Green Hills C++ Compiler
20202 lt_prog_compiler_pic_CXX='-PIC'
20203 ;;
20204 *)
20205 ;;
20206 esac
20207 ;;
20208 sunos4*)
20209 case $cc_basename in
20210 CC*)
20211 # Sun C++ 4.x
20212 lt_prog_compiler_pic_CXX='-pic'
20213 lt_prog_compiler_static_CXX='-Bstatic'
20214 ;;
20215 lcc*)
20216 # Lucid
20217 lt_prog_compiler_pic_CXX='-pic'
20218 ;;
20219 *)
20220 ;;
20221 esac
20222 ;;
20223 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20224 case $cc_basename in
20225 CC*)
20226 lt_prog_compiler_wl_CXX='-Wl,'
20227 lt_prog_compiler_pic_CXX='-KPIC'
20228 lt_prog_compiler_static_CXX='-Bstatic'
20229 ;;
20230 esac
20231 ;;
20232 tandem*)
20233 case $cc_basename in
20234 NCC*)
20235 # NonStop-UX NCC 3.20
20236 lt_prog_compiler_pic_CXX='-KPIC'
20237 ;;
20238 *)
20239 ;;
20240 esac
20241 ;;
20242 vxworks*)
20243 ;;
20244 *)
20245 lt_prog_compiler_can_build_shared_CXX=no
20246 ;;
20247 esac
20248 fi
20249
20250case $host_os in
20251 # For platforms which do not support PIC, -DPIC is meaningless:
20252 *djgpp*)
20253 lt_prog_compiler_pic_CXX=
20254 ;;
20255 *)
20256 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20257 ;;
20258esac
cristy73bd4a52010-10-05 11:24:23 +000020259
cristyda16f162011-02-19 23:52:17 +000020260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20261$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20262if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20263 $as_echo_n "(cached) " >&6
20264else
20265 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20266fi
20267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20268$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20269lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020270
20271#
20272# Check to make sure the PIC flag actually works.
20273#
20274if test -n "$lt_prog_compiler_pic_CXX"; then
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20276$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020277if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020278 $as_echo_n "(cached) " >&6
20279else
20280 lt_cv_prog_compiler_pic_works_CXX=no
20281 ac_outfile=conftest.$ac_objext
20282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20283 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20284 # Insert the option either (1) after the last *FLAGS variable, or
20285 # (2) before a word containing "conftest.", or (3) at the end.
20286 # Note that $ac_compile itself does not contain backslashes and begins
20287 # with a dollar sign (not a hyphen), so the echo should work correctly.
20288 # The option is referenced via a variable to avoid confusing sed.
20289 lt_compile=`echo "$ac_compile" | $SED \
20290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20292 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020293 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020294 (eval "$lt_compile" 2>conftest.err)
20295 ac_status=$?
20296 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020298 if (exit $ac_status) && test -s "$ac_outfile"; then
20299 # The compiler can only warn and ignore the option if not recognized
20300 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020301 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20303 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20304 lt_cv_prog_compiler_pic_works_CXX=yes
20305 fi
20306 fi
20307 $RM conftest*
20308
20309fi
20310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20311$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20312
20313if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20314 case $lt_prog_compiler_pic_CXX in
20315 "" | " "*) ;;
20316 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20317 esac
20318else
20319 lt_prog_compiler_pic_CXX=
20320 lt_prog_compiler_can_build_shared_CXX=no
20321fi
20322
20323fi
20324
20325
20326
cristyda16f162011-02-19 23:52:17 +000020327
20328
cristy73bd4a52010-10-05 11:24:23 +000020329#
20330# Check to make sure the static flag actually works.
20331#
20332wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20334$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020335if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020336 $as_echo_n "(cached) " >&6
20337else
20338 lt_cv_prog_compiler_static_works_CXX=no
20339 save_LDFLAGS="$LDFLAGS"
20340 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20341 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20342 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20343 # The linker can only warn and ignore the option if not recognized
20344 # So say no if there are warnings
20345 if test -s conftest.err; then
20346 # Append any errors to the config.log.
20347 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020348 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20350 if diff conftest.exp conftest.er2 >/dev/null; then
20351 lt_cv_prog_compiler_static_works_CXX=yes
20352 fi
20353 else
20354 lt_cv_prog_compiler_static_works_CXX=yes
20355 fi
20356 fi
20357 $RM -r conftest*
20358 LDFLAGS="$save_LDFLAGS"
20359
20360fi
20361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20362$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20363
20364if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20365 :
20366else
20367 lt_prog_compiler_static_CXX=
20368fi
20369
20370
20371
20372
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20374$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020375if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020376 $as_echo_n "(cached) " >&6
20377else
20378 lt_cv_prog_compiler_c_o_CXX=no
20379 $RM -r conftest 2>/dev/null
20380 mkdir conftest
20381 cd conftest
20382 mkdir out
20383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20384
20385 lt_compiler_flag="-o out/conftest2.$ac_objext"
20386 # Insert the option either (1) after the last *FLAGS variable, or
20387 # (2) before a word containing "conftest.", or (3) at the end.
20388 # Note that $ac_compile itself does not contain backslashes and begins
20389 # with a dollar sign (not a hyphen), so the echo should work correctly.
20390 lt_compile=`echo "$ac_compile" | $SED \
20391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20393 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020394 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020395 (eval "$lt_compile" 2>out/conftest.err)
20396 ac_status=$?
20397 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020399 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20400 then
20401 # The compiler can only warn and ignore the option if not recognized
20402 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020403 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020404 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20405 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20406 lt_cv_prog_compiler_c_o_CXX=yes
20407 fi
20408 fi
20409 chmod u+w . 2>&5
20410 $RM conftest*
20411 # SGI C++ compiler will create directory out/ii_files/ for
20412 # template instantiation
20413 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20414 $RM out/* && rmdir out
20415 cd ..
20416 $RM -r conftest
20417 $RM conftest*
20418
20419fi
20420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20421$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20422
20423
20424
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20426$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020427if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020428 $as_echo_n "(cached) " >&6
20429else
20430 lt_cv_prog_compiler_c_o_CXX=no
20431 $RM -r conftest 2>/dev/null
20432 mkdir conftest
20433 cd conftest
20434 mkdir out
20435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20436
20437 lt_compiler_flag="-o out/conftest2.$ac_objext"
20438 # Insert the option either (1) after the last *FLAGS variable, or
20439 # (2) before a word containing "conftest.", or (3) at the end.
20440 # Note that $ac_compile itself does not contain backslashes and begins
20441 # with a dollar sign (not a hyphen), so the echo should work correctly.
20442 lt_compile=`echo "$ac_compile" | $SED \
20443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20445 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020447 (eval "$lt_compile" 2>out/conftest.err)
20448 ac_status=$?
20449 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20452 then
20453 # The compiler can only warn and ignore the option if not recognized
20454 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20458 lt_cv_prog_compiler_c_o_CXX=yes
20459 fi
20460 fi
20461 chmod u+w . 2>&5
20462 $RM conftest*
20463 # SGI C++ compiler will create directory out/ii_files/ for
20464 # template instantiation
20465 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20466 $RM out/* && rmdir out
20467 cd ..
20468 $RM -r conftest
20469 $RM conftest*
20470
20471fi
20472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20473$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20474
20475
20476
20477
20478hard_links="nottested"
20479if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20480 # do not overwrite the value of need_locks provided by the user
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20482$as_echo_n "checking if we can lock with hard links... " >&6; }
20483 hard_links=yes
20484 $RM conftest*
20485 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20486 touch conftest.a
20487 ln conftest.a conftest.b 2>&5 || hard_links=no
20488 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20490$as_echo "$hard_links" >&6; }
20491 if test "$hard_links" = no; then
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20493$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20494 need_locks=warn
20495 fi
20496else
20497 need_locks=no
20498fi
20499
20500
20501
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20503$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20504
20505 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020506 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020507 case $host_os in
20508 aix[4-9]*)
20509 # If we're using GNU nm, then we don't want the "-C" option.
20510 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020511 # Also, AIX nm treats weak defined symbols like other global defined
20512 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020513 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020514 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000020515 else
20516 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20517 fi
20518 ;;
20519 pw32*)
20520 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020521 ;;
cristy73bd4a52010-10-05 11:24:23 +000020522 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020523 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020524 cl*)
20525 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20526 ;;
cristyda16f162011-02-19 23:52:17 +000020527 *)
20528 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'
20529 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20530 ;;
20531 esac
20532 ;;
cristy73bd4a52010-10-05 11:24:23 +000020533 *)
20534 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020535 ;;
cristy73bd4a52010-10-05 11:24:23 +000020536 esac
cristy73bd4a52010-10-05 11:24:23 +000020537
20538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20539$as_echo "$ld_shlibs_CXX" >&6; }
20540test "$ld_shlibs_CXX" = no && can_build_shared=no
20541
20542with_gnu_ld_CXX=$with_gnu_ld
20543
20544
20545
20546
20547
20548
20549#
20550# Do we need to explicitly link libc?
20551#
20552case "x$archive_cmds_need_lc_CXX" in
20553x|xyes)
20554 # Assume -lc should be added
20555 archive_cmds_need_lc_CXX=yes
20556
20557 if test "$enable_shared" = yes && test "$GCC" = yes; then
20558 case $archive_cmds_CXX in
20559 *'~'*)
20560 # FIXME: we may have to deal with multi-command sequences.
20561 ;;
20562 '$CC '*)
20563 # Test whether the compiler implicitly links with -lc since on some
20564 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20565 # to ld, don't add -lc before -lgcc.
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20567$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020568if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020569 $as_echo_n "(cached) " >&6
20570else
20571 $RM conftest*
20572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020573
cristy0c60a692010-11-04 01:09:47 +000020574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020575 (eval $ac_compile) 2>&5
20576 ac_status=$?
20577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20578 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020579 soname=conftest
20580 lib=conftest
20581 libobjs=conftest.$ac_objext
20582 deplibs=
20583 wl=$lt_prog_compiler_wl_CXX
20584 pic_flag=$lt_prog_compiler_pic_CXX
20585 compiler_flags=-v
20586 linker_flags=-v
20587 verstring=
20588 output_objdir=.
20589 libname=conftest
20590 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20591 allow_undefined_flag_CXX=
20592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020593 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20594 ac_status=$?
20595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20596 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020597 then
20598 lt_cv_archive_cmds_need_lc_CXX=no
20599 else
20600 lt_cv_archive_cmds_need_lc_CXX=yes
20601 fi
20602 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20603 else
20604 cat conftest.err 1>&5
20605 fi
20606 $RM conftest*
20607
20608fi
20609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20610$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20611 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020612 ;;
20613 esac
20614 fi
20615 ;;
20616esac
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
cristy73bd4a52010-10-05 11:24:23 +000020679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20680$as_echo_n "checking dynamic linker characteristics... " >&6; }
20681
20682library_names_spec=
20683libname_spec='lib$name'
20684soname_spec=
20685shrext_cmds=".so"
20686postinstall_cmds=
20687postuninstall_cmds=
20688finish_cmds=
20689finish_eval=
20690shlibpath_var=
20691shlibpath_overrides_runpath=unknown
20692version_type=none
20693dynamic_linker="$host_os ld.so"
20694sys_lib_dlsearch_path_spec="/lib /usr/lib"
20695need_lib_prefix=unknown
20696hardcode_into_libs=no
20697
20698# when you set need_version to no, make sure it does not cause -set_version
20699# flags to be left without arguments
20700need_version=unknown
20701
20702case $host_os in
20703aix3*)
cristy99bd5232011-12-07 14:38:20 +000020704 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20706 shlibpath_var=LIBPATH
20707
20708 # AIX 3 has no versioning support, so we append a major version to the name.
20709 soname_spec='${libname}${release}${shared_ext}$major'
20710 ;;
20711
20712aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020713 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020714 need_lib_prefix=no
20715 need_version=no
20716 hardcode_into_libs=yes
20717 if test "$host_cpu" = ia64; then
20718 # AIX 5 supports IA64
20719 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20720 shlibpath_var=LD_LIBRARY_PATH
20721 else
20722 # With GCC up to 2.95.x, collect2 would create an import file
20723 # for dependence libraries. The import file would start with
20724 # the line `#! .'. This would cause the generated library to
20725 # depend on `.', always an invalid library. This was fixed in
20726 # development snapshots of GCC prior to 3.0.
20727 case $host_os in
20728 aix4 | aix4.[01] | aix4.[01].*)
20729 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20730 echo ' yes '
20731 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20732 :
20733 else
20734 can_build_shared=no
20735 fi
20736 ;;
20737 esac
20738 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20739 # soname into executable. Probably we can add versioning support to
20740 # collect2, so additional links can be useful in future.
20741 if test "$aix_use_runtimelinking" = yes; then
20742 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20743 # instead of lib<name>.a to let people know that these are not
20744 # typical AIX shared libraries.
20745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20746 else
20747 # We preserve .a as extension for shared libraries through AIX4.2
20748 # and later when we are not doing run time linking.
20749 library_names_spec='${libname}${release}.a $libname.a'
20750 soname_spec='${libname}${release}${shared_ext}$major'
20751 fi
20752 shlibpath_var=LIBPATH
20753 fi
20754 ;;
20755
20756amigaos*)
20757 case $host_cpu in
20758 powerpc)
20759 # Since July 2007 AmigaOS4 officially supports .so libraries.
20760 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20762 ;;
20763 m68k)
20764 library_names_spec='$libname.ixlibrary $libname.a'
20765 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020766 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
cristy73bd4a52010-10-05 11:24:23 +000020767 ;;
20768 esac
20769 ;;
20770
20771beos*)
20772 library_names_spec='${libname}${shared_ext}'
20773 dynamic_linker="$host_os ld.so"
20774 shlibpath_var=LIBRARY_PATH
20775 ;;
20776
20777bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020778 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020779 need_version=no
20780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20781 soname_spec='${libname}${release}${shared_ext}$major'
20782 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20783 shlibpath_var=LD_LIBRARY_PATH
20784 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20785 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20786 # the default ld.so.conf also contains /usr/contrib/lib and
20787 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20788 # libtool to hard-code these into programs
20789 ;;
20790
20791cygwin* | mingw* | pw32* | cegcc*)
20792 version_type=windows
20793 shrext_cmds=".dll"
20794 need_version=no
20795 need_lib_prefix=no
20796
cristyda16f162011-02-19 23:52:17 +000020797 case $GCC,$cc_basename in
20798 yes,*)
20799 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020800 library_names_spec='$libname.dll.a'
20801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20802 postinstall_cmds='base_file=`basename \${file}`~
20803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20804 dldir=$destdir/`dirname \$dlpath`~
20805 test -d \$dldir || mkdir -p \$dldir~
20806 $install_prog $dir/$dlname \$dldir/$dlname~
20807 chmod a+x \$dldir/$dlname~
20808 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20809 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20810 fi'
20811 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20812 dlpath=$dir/\$dldll~
20813 $RM \$dlpath'
20814 shlibpath_overrides_runpath=yes
20815
20816 case $host_os in
20817 cygwin*)
20818 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20819 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020820
cristy73bd4a52010-10-05 11:24:23 +000020821 ;;
20822 mingw* | cegcc*)
20823 # MinGW DLLs use traditional 'lib' prefix
20824 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020825 ;;
20826 pw32*)
20827 # pw32 DLLs use 'pw' prefix rather than 'lib'
20828 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20829 ;;
20830 esac
cristyda16f162011-02-19 23:52:17 +000020831 dynamic_linker='Win32 ld.exe'
20832 ;;
20833
20834 *,cl*)
20835 # Native MSVC
20836 libname_spec='$name'
20837 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20838 library_names_spec='${libname}.dll.lib'
20839
20840 case $build_os in
20841 mingw*)
20842 sys_lib_search_path_spec=
20843 lt_save_ifs=$IFS
20844 IFS=';'
20845 for lt_path in $LIB
20846 do
20847 IFS=$lt_save_ifs
20848 # Let DOS variable expansion print the short 8.3 style file name.
20849 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20850 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20851 done
20852 IFS=$lt_save_ifs
20853 # Convert to MSYS style.
20854 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20855 ;;
20856 cygwin*)
20857 # Convert to unix form, then to dos form, then back to unix form
20858 # but this time dos style (no spaces!) so that the unix form looks
20859 # like /cygdrive/c/PROGRA~1:/cygdr...
20860 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20861 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20862 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20863 ;;
20864 *)
20865 sys_lib_search_path_spec="$LIB"
20866 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20867 # It is most probably a Windows format PATH.
20868 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20869 else
20870 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20871 fi
20872 # FIXME: find the short name or the path components, as spaces are
20873 # common. (e.g. "Program Files" -> "PROGRA~1")
20874 ;;
20875 esac
20876
20877 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20878 postinstall_cmds='base_file=`basename \${file}`~
20879 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20880 dldir=$destdir/`dirname \$dlpath`~
20881 test -d \$dldir || mkdir -p \$dldir~
20882 $install_prog $dir/$dlname \$dldir/$dlname'
20883 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20884 dlpath=$dir/\$dldll~
20885 $RM \$dlpath'
20886 shlibpath_overrides_runpath=yes
20887 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020888 ;;
20889
20890 *)
cristyda16f162011-02-19 23:52:17 +000020891 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020892 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020893 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020894 ;;
20895 esac
cristy73bd4a52010-10-05 11:24:23 +000020896 # FIXME: first we should search . and the directory the executable is in
20897 shlibpath_var=PATH
20898 ;;
20899
20900darwin* | rhapsody*)
20901 dynamic_linker="$host_os dyld"
20902 version_type=darwin
20903 need_lib_prefix=no
20904 need_version=no
20905 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20906 soname_spec='${libname}${release}${major}$shared_ext'
20907 shlibpath_overrides_runpath=yes
20908 shlibpath_var=DYLD_LIBRARY_PATH
20909 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20910
20911 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20912 ;;
20913
20914dgux*)
cristy99bd5232011-12-07 14:38:20 +000020915 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020916 need_lib_prefix=no
20917 need_version=no
20918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20919 soname_spec='${libname}${release}${shared_ext}$major'
20920 shlibpath_var=LD_LIBRARY_PATH
20921 ;;
20922
cristy73bd4a52010-10-05 11:24:23 +000020923freebsd* | dragonfly*)
20924 # DragonFly does not have aout. When/if they implement a new
20925 # versioning mechanism, adjust this.
20926 if test -x /usr/bin/objformat; then
20927 objformat=`/usr/bin/objformat`
20928 else
20929 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020930 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020931 *) objformat=elf ;;
20932 esac
20933 fi
20934 version_type=freebsd-$objformat
20935 case $version_type in
20936 freebsd-elf*)
20937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20938 need_version=no
20939 need_lib_prefix=no
20940 ;;
20941 freebsd-*)
20942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20943 need_version=yes
20944 ;;
20945 esac
20946 shlibpath_var=LD_LIBRARY_PATH
20947 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020948 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020949 shlibpath_overrides_runpath=yes
20950 ;;
20951 freebsd3.[01]* | freebsdelf3.[01]*)
20952 shlibpath_overrides_runpath=yes
20953 hardcode_into_libs=yes
20954 ;;
20955 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20956 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20957 shlibpath_overrides_runpath=no
20958 hardcode_into_libs=yes
20959 ;;
20960 *) # from 4.6 on, and DragonFly
20961 shlibpath_overrides_runpath=yes
20962 hardcode_into_libs=yes
20963 ;;
20964 esac
20965 ;;
20966
20967gnu*)
cristy99bd5232011-12-07 14:38:20 +000020968 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020969 need_lib_prefix=no
20970 need_version=no
20971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20972 soname_spec='${libname}${release}${shared_ext}$major'
20973 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020974 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020975 hardcode_into_libs=yes
20976 ;;
20977
cristy0c60a692010-11-04 01:09:47 +000020978haiku*)
cristy99bd5232011-12-07 14:38:20 +000020979 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020980 need_lib_prefix=no
20981 need_version=no
20982 dynamic_linker="$host_os runtime_loader"
20983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20984 soname_spec='${libname}${release}${shared_ext}$major'
20985 shlibpath_var=LIBRARY_PATH
20986 shlibpath_overrides_runpath=yes
20987 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20988 hardcode_into_libs=yes
20989 ;;
20990
cristy73bd4a52010-10-05 11:24:23 +000020991hpux9* | hpux10* | hpux11*)
20992 # Give a soname corresponding to the major version so that dld.sl refuses to
20993 # link against other versions.
20994 version_type=sunos
20995 need_lib_prefix=no
20996 need_version=no
20997 case $host_cpu in
20998 ia64*)
20999 shrext_cmds='.so'
21000 hardcode_into_libs=yes
21001 dynamic_linker="$host_os dld.so"
21002 shlibpath_var=LD_LIBRARY_PATH
21003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21005 soname_spec='${libname}${release}${shared_ext}$major'
21006 if test "X$HPUX_IA64_MODE" = X32; then
21007 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21008 else
21009 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21010 fi
21011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21012 ;;
21013 hppa*64*)
21014 shrext_cmds='.sl'
21015 hardcode_into_libs=yes
21016 dynamic_linker="$host_os dld.sl"
21017 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21018 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21020 soname_spec='${libname}${release}${shared_ext}$major'
21021 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21022 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21023 ;;
21024 *)
21025 shrext_cmds='.sl'
21026 dynamic_linker="$host_os dld.sl"
21027 shlibpath_var=SHLIB_PATH
21028 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21030 soname_spec='${libname}${release}${shared_ext}$major'
21031 ;;
21032 esac
cristy0c60a692010-11-04 01:09:47 +000021033 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000021034 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000021035 # or fails outright, so override atomically:
21036 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000021037 ;;
21038
21039interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000021040 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021041 need_lib_prefix=no
21042 need_version=no
21043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21044 soname_spec='${libname}${release}${shared_ext}$major'
21045 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21046 shlibpath_var=LD_LIBRARY_PATH
21047 shlibpath_overrides_runpath=no
21048 hardcode_into_libs=yes
21049 ;;
21050
21051irix5* | irix6* | nonstopux*)
21052 case $host_os in
21053 nonstopux*) version_type=nonstopux ;;
21054 *)
21055 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000021056 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021057 else
21058 version_type=irix
21059 fi ;;
21060 esac
21061 need_lib_prefix=no
21062 need_version=no
21063 soname_spec='${libname}${release}${shared_ext}$major'
21064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21065 case $host_os in
21066 irix5* | nonstopux*)
21067 libsuff= shlibsuff=
21068 ;;
21069 *)
21070 case $LD in # libtool.m4 will add one of these switches to LD
21071 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21072 libsuff= shlibsuff= libmagic=32-bit;;
21073 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21074 libsuff=32 shlibsuff=N32 libmagic=N32;;
21075 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21076 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21077 *) libsuff= shlibsuff= libmagic=never-match;;
21078 esac
21079 ;;
21080 esac
21081 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21082 shlibpath_overrides_runpath=no
21083 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21084 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21085 hardcode_into_libs=yes
21086 ;;
21087
21088# No shared lib support for Linux oldld, aout, or coff.
21089linux*oldld* | linux*aout* | linux*coff*)
21090 dynamic_linker=no
21091 ;;
21092
cristy99bd5232011-12-07 14:38:20 +000021093# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000021094linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000021095 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021096 need_lib_prefix=no
21097 need_version=no
21098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21099 soname_spec='${libname}${release}${shared_ext}$major'
21100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21101 shlibpath_var=LD_LIBRARY_PATH
21102 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000021103
cristy73bd4a52010-10-05 11:24:23 +000021104 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000021105 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000021106 $as_echo_n "(cached) " >&6
21107else
21108 lt_cv_shlibpath_overrides_runpath=no
21109 save_LDFLAGS=$LDFLAGS
21110 save_libdir=$libdir
21111 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21112 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000021114/* end confdefs.h. */
21115
21116int
21117main ()
21118{
21119
21120 ;
21121 return 0;
21122}
21123_ACEOF
21124if ac_fn_cxx_try_link "$LINENO"; then :
21125 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000021126 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000021127fi
21128fi
21129rm -f core conftest.err conftest.$ac_objext \
21130 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000021131 LDFLAGS=$save_LDFLAGS
21132 libdir=$save_libdir
21133
21134fi
21135
21136 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000021137
21138 # This implies no fast_install, which is unacceptable.
21139 # Some rework will be needed to allow for fast_install
21140 # before this can be enabled.
21141 hardcode_into_libs=yes
21142
21143 # Add ABI-specific directories to the system library path.
21144 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21145
21146 # Append ld.so.conf contents to the search path
21147 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000021148 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' ' '`
cristy73bd4a52010-10-05 11:24:23 +000021149 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000021150
cristy73bd4a52010-10-05 11:24:23 +000021151 fi
21152
21153 # We used to test for /lib/ld.so.1 and disable shared libraries on
21154 # powerpc, because MkLinux only supported shared libraries with the
21155 # GNU dynamic linker. Since this was broken with cross compilers,
21156 # most powerpc-linux boxes support dynamic linking these days and
21157 # people can always --disable-shared, the test was removed, and we
21158 # assume the GNU/Linux dynamic linker is in use.
21159 dynamic_linker='GNU/Linux ld.so'
21160 ;;
21161
21162netbsd*)
21163 version_type=sunos
21164 need_lib_prefix=no
21165 need_version=no
21166 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21169 dynamic_linker='NetBSD (a.out) ld.so'
21170 else
21171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21172 soname_spec='${libname}${release}${shared_ext}$major'
21173 dynamic_linker='NetBSD ld.elf_so'
21174 fi
21175 shlibpath_var=LD_LIBRARY_PATH
21176 shlibpath_overrides_runpath=yes
21177 hardcode_into_libs=yes
21178 ;;
21179
21180newsos6)
cristy99bd5232011-12-07 14:38:20 +000021181 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21183 shlibpath_var=LD_LIBRARY_PATH
21184 shlibpath_overrides_runpath=yes
21185 ;;
21186
21187*nto* | *qnx*)
21188 version_type=qnx
21189 need_lib_prefix=no
21190 need_version=no
21191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21192 soname_spec='${libname}${release}${shared_ext}$major'
21193 shlibpath_var=LD_LIBRARY_PATH
21194 shlibpath_overrides_runpath=no
21195 hardcode_into_libs=yes
21196 dynamic_linker='ldqnx.so'
21197 ;;
21198
21199openbsd*)
21200 version_type=sunos
21201 sys_lib_dlsearch_path_spec="/usr/lib"
21202 need_lib_prefix=no
21203 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21204 case $host_os in
21205 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21206 *) need_version=no ;;
21207 esac
21208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21210 shlibpath_var=LD_LIBRARY_PATH
21211 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21212 case $host_os in
21213 openbsd2.[89] | openbsd2.[89].*)
21214 shlibpath_overrides_runpath=no
21215 ;;
21216 *)
21217 shlibpath_overrides_runpath=yes
21218 ;;
21219 esac
21220 else
21221 shlibpath_overrides_runpath=yes
21222 fi
21223 ;;
21224
21225os2*)
21226 libname_spec='$name'
21227 shrext_cmds=".dll"
21228 need_lib_prefix=no
21229 library_names_spec='$libname${shared_ext} $libname.a'
21230 dynamic_linker='OS/2 ld.exe'
21231 shlibpath_var=LIBPATH
21232 ;;
21233
21234osf3* | osf4* | osf5*)
21235 version_type=osf
21236 need_lib_prefix=no
21237 need_version=no
21238 soname_spec='${libname}${release}${shared_ext}$major'
21239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21240 shlibpath_var=LD_LIBRARY_PATH
21241 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21242 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21243 ;;
21244
21245rdos*)
21246 dynamic_linker=no
21247 ;;
21248
21249solaris*)
cristy99bd5232011-12-07 14:38:20 +000021250 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021251 need_lib_prefix=no
21252 need_version=no
21253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21254 soname_spec='${libname}${release}${shared_ext}$major'
21255 shlibpath_var=LD_LIBRARY_PATH
21256 shlibpath_overrides_runpath=yes
21257 hardcode_into_libs=yes
21258 # ldd complains unless libraries are executable
21259 postinstall_cmds='chmod +x $lib'
21260 ;;
21261
21262sunos4*)
21263 version_type=sunos
21264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21265 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21266 shlibpath_var=LD_LIBRARY_PATH
21267 shlibpath_overrides_runpath=yes
21268 if test "$with_gnu_ld" = yes; then
21269 need_lib_prefix=no
21270 fi
21271 need_version=yes
21272 ;;
21273
21274sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021275 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21277 soname_spec='${libname}${release}${shared_ext}$major'
21278 shlibpath_var=LD_LIBRARY_PATH
21279 case $host_vendor in
21280 sni)
21281 shlibpath_overrides_runpath=no
21282 need_lib_prefix=no
21283 runpath_var=LD_RUN_PATH
21284 ;;
21285 siemens)
21286 need_lib_prefix=no
21287 ;;
21288 motorola)
21289 need_lib_prefix=no
21290 need_version=no
21291 shlibpath_overrides_runpath=no
21292 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21293 ;;
21294 esac
21295 ;;
21296
21297sysv4*MP*)
21298 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021299 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021300 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21301 soname_spec='$libname${shared_ext}.$major'
21302 shlibpath_var=LD_LIBRARY_PATH
21303 fi
21304 ;;
21305
21306sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21307 version_type=freebsd-elf
21308 need_lib_prefix=no
21309 need_version=no
21310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21311 soname_spec='${libname}${release}${shared_ext}$major'
21312 shlibpath_var=LD_LIBRARY_PATH
21313 shlibpath_overrides_runpath=yes
21314 hardcode_into_libs=yes
21315 if test "$with_gnu_ld" = yes; then
21316 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21317 else
21318 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21319 case $host_os in
21320 sco3.2v5*)
21321 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21322 ;;
21323 esac
21324 fi
21325 sys_lib_dlsearch_path_spec='/usr/lib'
21326 ;;
21327
21328tpf*)
21329 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021330 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021331 need_lib_prefix=no
21332 need_version=no
21333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21334 shlibpath_var=LD_LIBRARY_PATH
21335 shlibpath_overrides_runpath=no
21336 hardcode_into_libs=yes
21337 ;;
21338
21339uts4*)
cristy99bd5232011-12-07 14:38:20 +000021340 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21342 soname_spec='${libname}${release}${shared_ext}$major'
21343 shlibpath_var=LD_LIBRARY_PATH
21344 ;;
21345
21346*)
21347 dynamic_linker=no
21348 ;;
21349esac
21350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21351$as_echo "$dynamic_linker" >&6; }
21352test "$dynamic_linker" = no && can_build_shared=no
21353
21354variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21355if test "$GCC" = yes; then
21356 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21357fi
21358
21359if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21360 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21361fi
21362if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21363 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21364fi
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
cristy0c60a692010-11-04 01:09:47 +000021401
21402
cristy73bd4a52010-10-05 11:24:23 +000021403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21404$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21405hardcode_action_CXX=
21406if test -n "$hardcode_libdir_flag_spec_CXX" ||
21407 test -n "$runpath_var_CXX" ||
21408 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21409
21410 # We can hardcode non-existent directories.
21411 if test "$hardcode_direct_CXX" != no &&
21412 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21413 # have to relink, otherwise we might link with an installed library
21414 # when we should be linking with a yet-to-be-installed one
21415 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21416 test "$hardcode_minus_L_CXX" != no; then
21417 # Linking always hardcodes the temporary library directory.
21418 hardcode_action_CXX=relink
21419 else
21420 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21421 hardcode_action_CXX=immediate
21422 fi
21423else
21424 # We cannot hardcode anything, or else we can only hardcode existing
21425 # directories.
21426 hardcode_action_CXX=unsupported
21427fi
21428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21429$as_echo "$hardcode_action_CXX" >&6; }
21430
21431if test "$hardcode_action_CXX" = relink ||
21432 test "$inherit_rpath_CXX" = yes; then
21433 # Fast installation is not supported
21434 enable_fast_install=no
21435elif test "$shlibpath_overrides_runpath" = yes ||
21436 test "$enable_shared" = no; then
21437 # Fast installation is not necessary
21438 enable_fast_install=needless
21439fi
21440
21441
21442
21443
21444
21445
21446
21447 fi # test -n "$compiler"
21448
21449 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021450 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021451 LDCXX=$LD
21452 LD=$lt_save_LD
21453 GCC=$lt_save_GCC
21454 with_gnu_ld=$lt_save_with_gnu_ld
21455 lt_cv_path_LDCXX=$lt_cv_path_LD
21456 lt_cv_path_LD=$lt_save_path_LD
21457 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21458 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21459fi # test "$_lt_caught_CXX_error" != yes
21460
21461ac_ext=c
21462ac_cpp='$CPP $CPPFLAGS'
21463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21465ac_compiler_gnu=$ac_cv_c_compiler_gnu
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
cristy99bd5232011-12-07 14:38:20 +000021479
21480
cristy73bd4a52010-10-05 11:24:23 +000021481 ac_config_commands="$ac_config_commands libtool"
21482
21483
21484
21485
21486# Only expand once:
21487
21488
21489
cristy3ed852e2009-09-05 21:47:34 +000021490
21491
cristy3ed852e2009-09-05 21:47:34 +000021492# Check to see if building shared libraries
21493libtool_build_shared_libs='no'
21494if test "$enable_shared" = 'yes'; then
21495 libtool_build_shared_libs='yes'
21496fi
21497
21498# Check to see if building static libraries
21499libtool_build_static_libs='no'
21500if test "$enable_static" = 'yes'; then
21501 libtool_build_static_libs='yes'
21502fi
21503
cristy73bd4a52010-10-05 11:24:23 +000021504 if test "${libtool_build_shared_libs}" = 'yes'; then
21505 WITH_SHARED_LIBS_TRUE=
21506 WITH_SHARED_LIBS_FALSE='#'
21507else
21508 WITH_SHARED_LIBS_TRUE='#'
21509 WITH_SHARED_LIBS_FALSE=
21510fi
21511
cristy3ed852e2009-09-05 21:47:34 +000021512#
21513# Enable support for building loadable modules
21514#
cristyaf4cbf32012-10-16 23:47:41 +000021515build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021516
21517# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021518if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021519 withval=$with_modules; with_modules=$withval
21520else
cristy5a1cefd2010-01-06 20:42:35 +000021521 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021522fi
21523
21524
21525# Only allow building loadable modules if we are building shared libraries
21526if test "$with_modules" != 'no' ; then
21527 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
cristy3ed852e2009-09-05 21:47:34 +000021529$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021530 build_modules='no'
21531 else
21532 build_modules='yes'
21533 fi
cristy3ed852e2009-09-05 21:47:34 +000021534fi
cristyc6722092012-10-14 00:19:31 +000021535if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021536
cristy8b350f62009-11-15 23:12:43 +000021537$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021538
cristyfa161182012-12-19 15:45:28 +000021539 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021540fi
cristyc6722092012-10-14 00:19:31 +000021541 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021542 WITH_MODULES_TRUE=
21543 WITH_MODULES_FALSE='#'
21544else
21545 WITH_MODULES_TRUE='#'
21546 WITH_MODULES_FALSE=
21547fi
21548
cristy3ed852e2009-09-05 21:47:34 +000021549
cristy3ed852e2009-09-05 21:47:34 +000021550# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021551# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021552# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021553if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021554 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21555else
21556 enable_delegate_build='no'
21557fi
21558
21559
21560# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021561if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021562 enableval=$enable_deprecated; enable_deprecated=$enableval
21563else
21564 enable_deprecated='no'
21565fi
21566
21567
21568if test "$enable_deprecated" = 'yes'; then
21569
cristy8b350f62009-11-15 23:12:43 +000021570$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021571
21572else
21573 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21574fi
21575
21576# Build a version of ImageMagick which operates uninstalled.
21577# Used to build distributions located via MAGICK_HOME / executable path
21578# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021579if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021580 enableval=$enable_installed; enable_installed=$enableval
21581else
21582 enable_installed='yes'
21583fi
21584
21585
21586if test "$enable_installed" = 'yes'; then
21587
cristy8b350f62009-11-15 23:12:43 +000021588$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021589
21590else
21591 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21592fi
21593
21594# Permit enciphering and deciphering image pixels.
21595# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021596if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021597 enableval=$enable_cipher; enable_cipher=$enableval
21598else
21599 enable_cipher='yes'
21600fi
21601
21602
21603if test "$enable_cipher" = 'yes'; then
21604
cristy8b350f62009-11-15 23:12:43 +000021605$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021606
21607fi
21608
cristy6e3607c2011-09-13 13:59:17 +000021609# Build a zero-configuration version of ImageMagick.
21610# Check whether --enable-zero-configuration was given.
21611if test "${enable_zero_configuration+set}" = set; then :
21612 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021613else
cristy6e3607c2011-09-13 13:59:17 +000021614 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021615fi
21616
21617
cristy6e3607c2011-09-13 13:59:17 +000021618if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021619
cristy6e3607c2011-09-13 13:59:17 +000021620$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021621
cristy81af5702011-09-13 14:20:58 +000021622 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021623fi
21624
21625# Build a high dynamic range version of ImageMagick.
21626# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021627if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021628 enableval=$enable_hdri; enable_hdri=$enableval
21629else
cristy191c0b72012-08-12 16:29:52 +000021630 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021631fi
21632
21633
21634MAGICK_HDRI=""
21635if test "$enable_hdri" = 'yes'; then
21636 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021637 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021638 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021639else
21640 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021641fi
21642
cristye52f12f2012-12-31 15:32:36 +000021643cat >>confdefs.h <<_ACEOF
21644#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21645_ACEOF
21646
21647MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21648CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021649CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021650
cristy3ed852e2009-09-05 21:47:34 +000021651# Build a version of ImageMagick with assert statements.
21652# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021653if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021654 enableval=$enable_assert; enable_assert=$enableval
21655else
21656 enable_assert='yes'
21657fi
21658
21659
21660if test "$enable_assert" = 'no'; then
21661
cristy8b350f62009-11-15 23:12:43 +000021662$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021663
21664fi
21665
cristya448bd22011-10-14 12:38:13 +000021666# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021667
21668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21669$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21670 # Check whether --enable-maintainer-mode was given.
21671if test "${enable_maintainer_mode+set}" = set; then :
21672 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21673else
21674 USE_MAINTAINER_MODE=no
21675fi
21676
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21678$as_echo "$USE_MAINTAINER_MODE" >&6; }
21679 if test $USE_MAINTAINER_MODE = yes; then
21680 MAINTAINER_MODE_TRUE=
21681 MAINTAINER_MODE_FALSE='#'
21682else
21683 MAINTAINER_MODE_TRUE='#'
21684 MAINTAINER_MODE_FALSE=
21685fi
21686
21687 MAINT=$MAINTAINER_MODE_TRUE
21688
21689
cristy3ed852e2009-09-05 21:47:34 +000021690
cristy944e51f2013-04-16 18:45:02 +000021691# Enable hugepages support
21692# Check whether --enable-hugepages was given.
21693if test "${enable_hugepages+set}" = set; then :
21694 enableval=$enable_hugepages; enable_hugepages=$enableval
21695else
21696 enable_hugepages='no'
21697fi
21698
21699
cristy3ed852e2009-09-05 21:47:34 +000021700# Enable ccmalloc memory debugging support
21701# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021702if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021703 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21704else
21705 enable_ccmalloc='no'
21706fi
21707
21708
21709# Enable Electric Fence memory debugging support
21710# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021711if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021712 enableval=$enable_efence; enable_efence=$enableval
21713else
21714 enable_efence='no'
21715fi
21716
21717
21718# Enable prof-based profiling support
21719# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021720if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021721 enableval=$enable_prof; enable_prof=$enableval
21722else
21723 enable_prof='no'
21724fi
21725
21726
21727# Enable gprof-based profiling support
21728# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021729if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021730 enableval=$enable_gprof; enable_gprof=$enableval
21731else
21732 enable_gprof='no'
21733fi
21734
21735
21736# Enable gcov-based profiling support
21737# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021738if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021739 enableval=$enable_gcov; enable_gcov=$enableval
21740else
21741 enable_gcov='no'
21742fi
21743
21744
21745enable_profiling='no'
21746if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21747 enable_profiling='yes'
21748 if test "$libtool_build_shared_libs" = 'yes'; then
21749 echo "Warning: Can not profile code using shared libraries"
21750 fi
21751fi
21752
21753# Magick API method prefix
21754
21755# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021756if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021757 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021758else
cristyfc3d0222012-02-07 15:05:57 +000021759 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021760fi
21761
21762
cristyfc3d0222012-02-07 15:05:57 +000021763if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021764
21765cat >>confdefs.h <<_ACEOF
21766#define NAMESPACE_PREFIX $with_method_prefix
21767_ACEOF
21768
cristyfc3d0222012-02-07 15:05:57 +000021769 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021770fi
21771
cristy71d8c202012-03-20 17:05:01 +000021772# Enable legacy support (default no)
21773# Check whether --enable-legacy-support was given.
21774if test "${enable_legacy_support+set}" = set; then :
21775 enableval=$enable_legacy_support; with_legacy_support=$enableval
21776else
21777 with_legacy_support='no'
21778fi
21779
21780 if test "$with_legacy_support" != 'no'; then
21781 LEGACY_SUPPORT_TRUE=
21782 LEGACY_SUPPORT_FALSE='#'
21783else
21784 LEGACY_SUPPORT_TRUE='#'
21785 LEGACY_SUPPORT_FALSE=
21786fi
21787
21788
cristy3ed852e2009-09-05 21:47:34 +000021789# Number of bits in a Quantum
21790
21791# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021792if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021793 withval=$with_quantum_depth; with_quantum_depth=$withval
21794else
21795 with_quantum_depth=16
21796fi
21797
21798
21799if test "$with_quantum_depth" != '8'; then
21800 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21801fi
21802
21803case "${with_quantum_depth}" in
21804 8 ) ;;
21805 16 ) ;;
21806 32 ) ;;
21807 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021808 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021809esac
21810QUANTUM_DEPTH="$with_quantum_depth"
21811
21812cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021813#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021814_ACEOF
21815
cristya371edf2013-02-06 13:42:17 +000021816MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021817CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021818CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021819
cristy01ff9f32012-12-01 18:15:29 +000021820# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021821MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021822if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021823 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021824fi
cristy01ff9f32012-12-01 18:15:29 +000021825
21826
cristy3ed852e2009-09-05 21:47:34 +000021827# Set pixel cache threshold
21828
21829# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021830if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021831 withval=$with_cache; with_cache=$withval
21832else
21833 with_cache=''
21834fi
21835
21836
21837if test "$with_cache" != ''; then
21838
21839cat >>confdefs.h <<_ACEOF
21840#define PixelCacheThreshold $with_cache
21841_ACEOF
21842
21843 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21844fi
21845
21846# Disable/Enable support for full delegate paths
21847
21848# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021849if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021850 withval=$with_frozenpaths; with_frozenpaths=$withval
21851else
21852 with_frozenpaths='no'
21853fi
21854
21855
21856# Enable build/install of Magick++
21857
21858# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021859if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021860 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21861else
21862 with_magick_plus_plus='yes'
21863fi
21864
21865
cristy3a75f062012-09-08 23:29:40 +000021866# Encode the this name into the shared library.
21867
21868# Check whether --with-package-release-name was given.
21869if test "${with_package_release_name+set}" = set; then :
21870 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21871fi
21872
21873
21874
cristy3ed852e2009-09-05 21:47:34 +000021875# Disable build/install of PerlMagick.
21876
21877# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021878if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021879 withval=$with_perl; with_perl=$withval
21880else
cristyb5f4e2f2010-04-25 00:49:11 +000021881 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021882fi
21883
21884
21885# Options to pass when configuring PerlMagick
21886
21887# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021888if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021889 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021890fi
21891
21892
cristy3ed852e2009-09-05 21:47:34 +000021893
cristy3b0097d2014-11-04 15:34:47 +000021894# Enable jemalloc, object-caching memory allocation library.
21895
21896# Check whether --with-jemalloc was given.
21897if test "${with_jemalloc+set}" = set; then :
21898 withval=$with_jemalloc; with_jemalloc=$withval
21899else
21900 with_jemalloc='no'
21901fi
21902
21903if test "$with_jemalloc" != 'yes' ; then
21904 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
21905fi
21906
cristy3ed852e2009-09-05 21:47:34 +000021907# Enable umem, object-caching memory allocation library.
21908
21909# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021910if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021911 withval=$with_umem; with_umem=$withval
21912else
21913 with_umem='no'
21914fi
21915
21916if test "$with_umem" != 'yes' ; then
21917 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21918fi
21919
21920#
21921# Specify path to shared libstdc++ if not in normal location
21922#
21923
21924# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021925if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021926 withval=$with_libstdc; with_libstdc=$withval
21927else
21928 with_libstdc=''
21929fi
21930
21931
21932if test "$with_libstdc" != ''; then
21933 if test -d "$with_libstdc"; then
21934 LIBSTDCLDFLAGS="-L$with_libstdc"
21935 fi
21936fi
21937
21938
21939# Does gcc required -traditional?
21940if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021942$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021943if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021944 $as_echo_n "(cached) " >&6
21945else
21946 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021948/* end confdefs.h. */
21949#include <sgtty.h>
21950Autoconf TIOCGETP
21951_ACEOF
21952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021953 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021954 ac_cv_prog_gcc_traditional=yes
21955else
21956 ac_cv_prog_gcc_traditional=no
21957fi
21958rm -f conftest*
21959
21960
21961 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021963/* end confdefs.h. */
21964#include <termio.h>
21965Autoconf TCGETA
21966_ACEOF
21967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021968 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021969 ac_cv_prog_gcc_traditional=yes
21970fi
21971rm -f conftest*
21972
21973 fi
21974fi
cristy8b350f62009-11-15 23:12:43 +000021975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021976$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21977 if test $ac_cv_prog_gcc_traditional = yes; then
21978 CC="$CC -traditional"
21979 fi
21980fi
21981
21982
21983########
21984#
21985# Set defines required to build DLLs and modules using MinGW
21986#
21987########
21988# These options are set for multi-thread DLL module build
21989# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21990# module: _DLL
21991# executable/Magick++: _DLL _MAGICKMOD_
21992MODULE_EXTRA_CPPFLAGS=''
21993LIBRARY_EXTRA_CPPFLAGS=''
21994if test "${native_win32_build}" = 'yes'; then
21995 if test "${libtool_build_shared_libs}" = 'yes'; then
21996 CPPFLAGS="$CPPFLAGS -D_DLL"
21997 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21998 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21999 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000022000 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022001 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22002 else
22003 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22004 fi
22005 else
22006 CPPFLAGS="$CPPFLAGS -D_LIB"
22007 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22008 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22009 fi
22010 if test "$with_threads" = 'yes'; then
22011 CPPFLAGS="$CPPFLAGS -D_MT"
22012 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22013 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22014 fi
22015fi
22016
22017
22018
22019# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022021$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022022if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022023 $as_echo_n "(cached) " >&6
22024else
cristy8b350f62009-11-15 23:12:43 +000022025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022026/* end confdefs.h. */
22027#include <stdlib.h>
22028#include <stdarg.h>
22029#include <string.h>
22030#include <float.h>
22031
22032int
22033main ()
22034{
22035
22036 ;
22037 return 0;
22038}
22039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022040if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022041 ac_cv_header_stdc=yes
22042else
cristy8b350f62009-11-15 23:12:43 +000022043 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022044fi
cristy3ed852e2009-09-05 21:47:34 +000022045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22046
22047if test $ac_cv_header_stdc = yes; then
22048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022050/* end confdefs.h. */
22051#include <string.h>
22052
22053_ACEOF
22054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022055 $EGREP "memchr" >/dev/null 2>&1; then :
22056
cristy3ed852e2009-09-05 21:47:34 +000022057else
22058 ac_cv_header_stdc=no
22059fi
22060rm -f conftest*
22061
22062fi
22063
22064if test $ac_cv_header_stdc = yes; then
22065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022067/* end confdefs.h. */
22068#include <stdlib.h>
22069
22070_ACEOF
22071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022072 $EGREP "free" >/dev/null 2>&1; then :
22073
cristy3ed852e2009-09-05 21:47:34 +000022074else
22075 ac_cv_header_stdc=no
22076fi
22077rm -f conftest*
22078
22079fi
22080
22081if test $ac_cv_header_stdc = yes; then
22082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022083 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022084 :
22085else
cristy8b350f62009-11-15 23:12:43 +000022086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022087/* end confdefs.h. */
22088#include <ctype.h>
22089#include <stdlib.h>
22090#if ((' ' & 0x0FF) == 0x020)
22091# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22092# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22093#else
22094# define ISLOWER(c) \
22095 (('a' <= (c) && (c) <= 'i') \
22096 || ('j' <= (c) && (c) <= 'r') \
22097 || ('s' <= (c) && (c) <= 'z'))
22098# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22099#endif
22100
22101#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22102int
22103main ()
22104{
22105 int i;
22106 for (i = 0; i < 256; i++)
22107 if (XOR (islower (i), ISLOWER (i))
22108 || toupper (i) != TOUPPER (i))
22109 return 2;
22110 return 0;
22111}
22112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022113if ac_fn_c_try_run "$LINENO"; then :
22114
cristy3ed852e2009-09-05 21:47:34 +000022115else
cristy8b350f62009-11-15 23:12:43 +000022116 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022117fi
cristy8b350f62009-11-15 23:12:43 +000022118rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22119 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022120fi
22121
cristy3ed852e2009-09-05 21:47:34 +000022122fi
22123fi
cristy8b350f62009-11-15 23:12:43 +000022124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022125$as_echo "$ac_cv_header_stdc" >&6; }
22126if test $ac_cv_header_stdc = yes; then
22127
cristy8b350f62009-11-15 23:12:43 +000022128$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022129
22130fi
22131
22132if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
cristy3ed852e2009-09-05 21:47:34 +000022134 header files. Compilation cannot proceed. Please install the ANSI C
22135 headers and rerun this script." >&5
22136$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22137 header files. Compilation cannot proceed. Please install the ANSI C
22138 headers and rerun this script." >&2;};
22139fi
cristya0b81c32010-01-22 02:54:33 +000022140
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22142$as_echo_n "checking whether to enable assertions... " >&6; }
22143 # Check whether --enable-assert was given.
22144if test "${enable_assert+set}" = set; then :
22145 enableval=$enable_assert; ac_enable_assert=$enableval
22146 if test "x$enableval" = xno; then :
22147
22148$as_echo "#define NDEBUG 1" >>confdefs.h
22149
22150elif test "x$enableval" != xyes; then :
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22152$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22153 ac_enable_assert=yes
22154fi
22155else
22156 ac_enable_assert=yes
22157fi
22158
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22160$as_echo "$ac_enable_assert" >&6; }
22161
cristy3ed852e2009-09-05 21:47:34 +000022162ac_header_dirent=no
22163for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22164 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022166$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022167if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022168 $as_echo_n "(cached) " >&6
22169else
cristy8b350f62009-11-15 23:12:43 +000022170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022171/* end confdefs.h. */
22172#include <sys/types.h>
22173#include <$ac_hdr>
22174
22175int
22176main ()
22177{
22178if ((DIR *) 0)
22179return 0;
22180 ;
22181 return 0;
22182}
22183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022184if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022185 eval "$as_ac_Header=yes"
22186else
cristy8b350f62009-11-15 23:12:43 +000022187 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022188fi
cristy3ed852e2009-09-05 21:47:34 +000022189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22190fi
cristy8b350f62009-11-15 23:12:43 +000022191eval ac_res=\$$as_ac_Header
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022193$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022194if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022195 cat >>confdefs.h <<_ACEOF
22196#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22197_ACEOF
22198
22199ac_header_dirent=$ac_hdr; break
22200fi
22201
22202done
22203# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22204if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022206$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022207if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022208 $as_echo_n "(cached) " >&6
22209else
22210 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022212/* end confdefs.h. */
22213
22214/* Override any GCC internal prototype to avoid an error.
22215 Use char because int might match the return type of a GCC
22216 builtin and then its argument prototype would still apply. */
22217#ifdef __cplusplus
22218extern "C"
22219#endif
22220char opendir ();
22221int
22222main ()
22223{
22224return opendir ();
22225 ;
22226 return 0;
22227}
22228_ACEOF
22229for ac_lib in '' dir; do
22230 if test -z "$ac_lib"; then
22231 ac_res="none required"
22232 else
22233 ac_res=-l$ac_lib
22234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22235 fi
cristy8b350f62009-11-15 23:12:43 +000022236 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022237 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022238fi
cristy8b350f62009-11-15 23:12:43 +000022239rm -f core conftest.err conftest.$ac_objext \
22240 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022241 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022242 break
22243fi
22244done
cristyda16f162011-02-19 23:52:17 +000022245if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022246
cristy3ed852e2009-09-05 21:47:34 +000022247else
22248 ac_cv_search_opendir=no
22249fi
22250rm conftest.$ac_ext
22251LIBS=$ac_func_search_save_LIBS
22252fi
cristy8b350f62009-11-15 23:12:43 +000022253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022254$as_echo "$ac_cv_search_opendir" >&6; }
22255ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022256if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22258
22259fi
22260
22261else
cristy8b350f62009-11-15 23:12:43 +000022262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022263$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022264if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022265 $as_echo_n "(cached) " >&6
22266else
22267 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022269/* end confdefs.h. */
22270
22271/* Override any GCC internal prototype to avoid an error.
22272 Use char because int might match the return type of a GCC
22273 builtin and then its argument prototype would still apply. */
22274#ifdef __cplusplus
22275extern "C"
22276#endif
22277char opendir ();
22278int
22279main ()
22280{
22281return opendir ();
22282 ;
22283 return 0;
22284}
22285_ACEOF
22286for ac_lib in '' x; do
22287 if test -z "$ac_lib"; then
22288 ac_res="none required"
22289 else
22290 ac_res=-l$ac_lib
22291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22292 fi
cristy8b350f62009-11-15 23:12:43 +000022293 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022294 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022295fi
cristy8b350f62009-11-15 23:12:43 +000022296rm -f core conftest.err conftest.$ac_objext \
22297 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022298 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022299 break
22300fi
22301done
cristyda16f162011-02-19 23:52:17 +000022302if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022303
cristy3ed852e2009-09-05 21:47:34 +000022304else
22305 ac_cv_search_opendir=no
22306fi
22307rm conftest.$ac_ext
22308LIBS=$ac_func_search_save_LIBS
22309fi
cristy8b350f62009-11-15 23:12:43 +000022310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022311$as_echo "$ac_cv_search_opendir" >&6; }
22312ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022313if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22315
22316fi
22317
22318fi
22319
22320
22321# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000022322for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000022323do :
22324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22325ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022326if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022327 cat >>confdefs.h <<_ACEOF
22328#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22329_ACEOF
22330
22331fi
22332
22333done
22334
22335
22336########
22337#
22338# Checks for typedefs, structures, and compiler characteristics.
22339#
22340########
22341
cristy8b350f62009-11-15 23:12:43 +000022342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022343$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022344if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022345 $as_echo_n "(cached) " >&6
22346else
cristy8b350f62009-11-15 23:12:43 +000022347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022348/* end confdefs.h. */
22349
cristy14fefe52012-05-21 00:59:18 +000022350 #include <stdbool.h>
22351 #ifndef bool
22352 "error: bool is not defined"
22353 #endif
22354 #ifndef false
22355 "error: false is not defined"
22356 #endif
22357 #if false
22358 "error: false is not 0"
22359 #endif
22360 #ifndef true
22361 "error: true is not defined"
22362 #endif
22363 #if true != 1
22364 "error: true is not 1"
22365 #endif
22366 #ifndef __bool_true_false_are_defined
22367 "error: __bool_true_false_are_defined is not defined"
22368 #endif
cristy3ed852e2009-09-05 21:47:34 +000022369
cristy14fefe52012-05-21 00:59:18 +000022370 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022371
cristy14fefe52012-05-21 00:59:18 +000022372 char a[true == 1 ? 1 : -1];
22373 char b[false == 0 ? 1 : -1];
22374 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22375 char d[(bool) 0.5 == true ? 1 : -1];
22376 /* See body of main program for 'e'. */
22377 char f[(_Bool) 0.0 == false ? 1 : -1];
22378 char g[true];
22379 char h[sizeof (_Bool)];
22380 char i[sizeof s.t];
22381 enum { j = false, k = true, l = false * true, m = true * 256 };
22382 /* The following fails for
22383 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22384 _Bool n[m];
22385 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22386 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22387 /* Catch a bug in an HP-UX C compiler. See
22388 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22389 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22390 */
22391 _Bool q = true;
22392 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022393
22394int
22395main ()
22396{
22397
cristy14fefe52012-05-21 00:59:18 +000022398 bool e = &s;
22399 *pq |= q;
22400 *pq |= ! q;
22401 /* Refer to every declared value, to avoid compiler optimizations. */
22402 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22403 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022404
22405 ;
22406 return 0;
22407}
22408_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022409if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022410 ac_cv_header_stdbool_h=yes
22411else
cristy8b350f62009-11-15 23:12:43 +000022412 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022413fi
cristy3ed852e2009-09-05 21:47:34 +000022414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22415fi
cristy8b350f62009-11-15 23:12:43 +000022416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022417$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022418 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022419if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022420
22421cat >>confdefs.h <<_ACEOF
22422#define HAVE__BOOL 1
22423_ACEOF
22424
22425
22426fi
22427
cristy14fefe52012-05-21 00:59:18 +000022428
cristy3ed852e2009-09-05 21:47:34 +000022429if test $ac_cv_header_stdbool_h = yes; then
22430
cristy8b350f62009-11-15 23:12:43 +000022431$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022432
22433fi
22434
cristy8b350f62009-11-15 23:12:43 +000022435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022436$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022437if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022438 $as_echo_n "(cached) " >&6
22439else
cristy8b350f62009-11-15 23:12:43 +000022440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022441/* end confdefs.h. */
22442
22443int
22444main ()
22445{
22446
22447volatile int x;
22448int * volatile y = (int *) 0;
22449return !x && !y;
22450 ;
22451 return 0;
22452}
22453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022454if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022455 ac_cv_c_volatile=yes
22456else
cristy8b350f62009-11-15 23:12:43 +000022457 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022458fi
cristy3ed852e2009-09-05 21:47:34 +000022459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22460fi
cristy8b350f62009-11-15 23:12:43 +000022461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022462$as_echo "$ac_cv_c_volatile" >&6; }
22463if test $ac_cv_c_volatile = no; then
22464
cristy8b350f62009-11-15 23:12:43 +000022465$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022466
22467fi
22468
cristy8b350f62009-11-15 23:12:43 +000022469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022470$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022471if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022472 $as_echo_n "(cached) " >&6
22473else
cristy8b350f62009-11-15 23:12:43 +000022474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022475/* end confdefs.h. */
22476#define x(y) #y
22477
22478char *s = x(teststring);
22479_ACEOF
22480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022481 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022482 ac_cv_c_stringize=no
22483else
22484 ac_cv_c_stringize=yes
22485fi
22486rm -f conftest*
22487
22488fi
cristy8b350f62009-11-15 23:12:43 +000022489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022490$as_echo "$ac_cv_c_stringize" >&6; }
22491if test $ac_cv_c_stringize = yes; then
22492
cristy8b350f62009-11-15 23:12:43 +000022493$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022494
22495fi
22496
cristy8b350f62009-11-15 23:12:43 +000022497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022498$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022499if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022500 $as_echo_n "(cached) " >&6
22501else
cristy8b350f62009-11-15 23:12:43 +000022502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022503/* end confdefs.h. */
22504#include <sys/types.h>
22505#include <sys/stat.h>
22506
22507#if defined S_ISBLK && defined S_IFDIR
22508extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22509#endif
22510
22511#if defined S_ISBLK && defined S_IFCHR
22512extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22513#endif
22514
22515#if defined S_ISLNK && defined S_IFREG
22516extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22517#endif
22518
22519#if defined S_ISSOCK && defined S_IFREG
22520extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22521#endif
22522
22523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022524if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022525 ac_cv_header_stat_broken=no
22526else
cristy8b350f62009-11-15 23:12:43 +000022527 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022528fi
cristy3ed852e2009-09-05 21:47:34 +000022529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530fi
cristy8b350f62009-11-15 23:12:43 +000022531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022532$as_echo "$ac_cv_header_stat_broken" >&6; }
22533if test $ac_cv_header_stat_broken = yes; then
22534
cristy8b350f62009-11-15 23:12:43 +000022535$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022536
22537fi
22538
cristy8b350f62009-11-15 23:12:43 +000022539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
cristy3ed852e2009-09-05 21:47:34 +000022540$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022541if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022542 $as_echo_n "(cached) " >&6
22543else
cristy8b350f62009-11-15 23:12:43 +000022544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022545/* end confdefs.h. */
22546#include <sys/types.h>
22547#include <sys/time.h>
22548#include <time.h>
22549
22550int
22551main ()
22552{
22553if ((struct tm *) 0)
22554return 0;
22555 ;
22556 return 0;
22557}
22558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022559if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022560 ac_cv_header_time=yes
22561else
cristy8b350f62009-11-15 23:12:43 +000022562 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022563fi
cristy3ed852e2009-09-05 21:47:34 +000022564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565fi
cristy8b350f62009-11-15 23:12:43 +000022566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022567$as_echo "$ac_cv_header_time" >&6; }
22568if test $ac_cv_header_time = yes; then
22569
cristy8b350f62009-11-15 23:12:43 +000022570$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022571
22572fi
22573
cristy8b350f62009-11-15 23:12:43 +000022574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022575$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022576if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022577 $as_echo_n "(cached) " >&6
22578else
cristy8b350f62009-11-15 23:12:43 +000022579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022580/* end confdefs.h. */
22581#include <sys/types.h>
22582#include <time.h>
22583
22584int
22585main ()
22586{
22587struct tm tm;
22588 int *p = &tm.tm_sec;
22589 return !p;
22590 ;
22591 return 0;
22592}
22593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022594if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022595 ac_cv_struct_tm=time.h
22596else
cristy8b350f62009-11-15 23:12:43 +000022597 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022598fi
cristy3ed852e2009-09-05 21:47:34 +000022599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22600fi
cristy8b350f62009-11-15 23:12:43 +000022601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022602$as_echo "$ac_cv_struct_tm" >&6; }
22603if test $ac_cv_struct_tm = sys/time.h; then
22604
cristy8b350f62009-11-15 23:12:43 +000022605$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022606
22607fi
22608
cristy92703d82010-04-26 00:18:18 +000022609ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22610#include <$ac_cv_struct_tm>
22611
22612"
cristyda16f162011-02-19 23:52:17 +000022613if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022614
22615cat >>confdefs.h <<_ACEOF
22616#define HAVE_STRUCT_TM_TM_ZONE 1
22617_ACEOF
22618
22619
22620fi
22621
22622if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22623
22624$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22625
22626else
22627 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22628"
cristyda16f162011-02-19 23:52:17 +000022629if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022630 ac_have_decl=1
22631else
22632 ac_have_decl=0
22633fi
22634
22635cat >>confdefs.h <<_ACEOF
22636#define HAVE_DECL_TZNAME $ac_have_decl
22637_ACEOF
22638
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22640$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022641if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022642 $as_echo_n "(cached) " >&6
22643else
22644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22645/* end confdefs.h. */
22646#include <time.h>
22647#if !HAVE_DECL_TZNAME
22648extern char *tzname[];
22649#endif
22650
22651int
22652main ()
22653{
22654return tzname[0][0];
22655 ;
22656 return 0;
22657}
22658_ACEOF
22659if ac_fn_c_try_link "$LINENO"; then :
22660 ac_cv_var_tzname=yes
22661else
22662 ac_cv_var_tzname=no
22663fi
22664rm -f core conftest.err conftest.$ac_objext \
22665 conftest$ac_exeext conftest.$ac_ext
22666fi
22667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22668$as_echo "$ac_cv_var_tzname" >&6; }
22669 if test $ac_cv_var_tzname = yes; then
22670
22671$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22672
22673 fi
22674fi
22675
cristy8b350f62009-11-15 23:12:43 +000022676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022677$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022678if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022679 $as_echo_n "(cached) " >&6
22680else
22681 echo '#! /bin/cat
22682exit 69
22683' >conftest
22684chmod u+x conftest
22685(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22686if test $? -ne 69; then
22687 ac_cv_sys_interpreter=yes
22688else
22689 ac_cv_sys_interpreter=no
22690fi
22691rm -f conftest
22692fi
cristy8b350f62009-11-15 23:12:43 +000022693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022694$as_echo "$ac_cv_sys_interpreter" >&6; }
22695interpval=$ac_cv_sys_interpreter
22696
22697
cristye80f9cb2013-01-09 01:09:31 +000022698#
22699# Checks for language qualifiers and semantics.
22700#
22701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22702$as_echo_n "checking whether char is unsigned... " >&6; }
22703if ${ac_cv_c_char_unsigned+:} false; then :
22704 $as_echo_n "(cached) " >&6
22705else
22706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22707/* end confdefs.h. */
22708$ac_includes_default
22709int
22710main ()
22711{
22712static int test_array [1 - 2 * !(((char) -1) < 0)];
22713test_array [0] = 0;
22714return test_array [0];
22715
22716 ;
22717 return 0;
22718}
22719_ACEOF
22720if ac_fn_c_try_compile "$LINENO"; then :
22721 ac_cv_c_char_unsigned=no
22722else
22723 ac_cv_c_char_unsigned=yes
22724fi
22725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22726fi
22727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22728$as_echo "$ac_cv_c_char_unsigned" >&6; }
22729if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22730 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22731
22732fi
22733
22734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22735$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22736if ${ac_cv_c_const+:} false; then :
22737 $as_echo_n "(cached) " >&6
22738else
22739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22740/* end confdefs.h. */
22741
22742int
22743main ()
22744{
22745
22746#ifndef __cplusplus
22747 /* Ultrix mips cc rejects this sort of thing. */
22748 typedef int charset[2];
22749 const charset cs = { 0, 0 };
22750 /* SunOS 4.1.1 cc rejects this. */
22751 char const *const *pcpcc;
22752 char **ppc;
22753 /* NEC SVR4.0.2 mips cc rejects this. */
22754 struct point {int x, y;};
22755 static struct point const zero = {0,0};
22756 /* AIX XL C 1.02.0.0 rejects this.
22757 It does not let you subtract one const X* pointer from another in
22758 an arm of an if-expression whose if-part is not a constant
22759 expression */
22760 const char *g = "string";
22761 pcpcc = &g + (g ? g-g : 0);
22762 /* HPUX 7.0 cc rejects these. */
22763 ++pcpcc;
22764 ppc = (char**) pcpcc;
22765 pcpcc = (char const *const *) ppc;
22766 { /* SCO 3.2v4 cc rejects this sort of thing. */
22767 char tx;
22768 char *t = &tx;
22769 char const *s = 0 ? (char *) 0 : (char const *) 0;
22770
22771 *t++ = 0;
22772 if (s) return 0;
22773 }
22774 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22775 int x[] = {25, 17};
22776 const int *foo = &x[0];
22777 ++foo;
22778 }
22779 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22780 typedef const int *iptr;
22781 iptr p = 0;
22782 ++p;
22783 }
22784 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22785 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22786 struct s { int j; const int *ap[3]; } bx;
22787 struct s *b = &bx; b->j = 5;
22788 }
22789 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22790 const int foo = 10;
22791 if (!foo) return 0;
22792 }
22793 return !cs[0] && !zero.x;
22794#endif
22795
22796 ;
22797 return 0;
22798}
22799_ACEOF
22800if ac_fn_c_try_compile "$LINENO"; then :
22801 ac_cv_c_const=yes
22802else
22803 ac_cv_c_const=no
22804fi
22805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22806fi
22807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22808$as_echo "$ac_cv_c_const" >&6; }
22809if test $ac_cv_c_const = no; then
22810
22811$as_echo "#define const /**/" >>confdefs.h
22812
22813fi
22814
cristy8b350f62009-11-15 23:12:43 +000022815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022816$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022817if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022818 $as_echo_n "(cached) " >&6
22819else
22820 ac_cv_c_inline=no
22821for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022823/* end confdefs.h. */
22824#ifndef __cplusplus
22825typedef int foo_t;
22826static $ac_kw foo_t static_foo () {return 0; }
22827$ac_kw foo_t foo () {return 0; }
22828#endif
22829
22830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022831if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022832 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022833fi
cristy3ed852e2009-09-05 21:47:34 +000022834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22835 test "$ac_cv_c_inline" != no && break
22836done
22837
22838fi
cristy8b350f62009-11-15 23:12:43 +000022839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022840$as_echo "$ac_cv_c_inline" >&6; }
22841
cristy3ed852e2009-09-05 21:47:34 +000022842case $ac_cv_c_inline in
22843 inline | yes) ;;
22844 *)
22845 case $ac_cv_c_inline in
22846 no) ac_val=;;
22847 *) ac_val=$ac_cv_c_inline;;
22848 esac
22849 cat >>confdefs.h <<_ACEOF
22850#ifndef __cplusplus
22851#define inline $ac_val
22852#endif
22853_ACEOF
22854 ;;
22855esac
22856
cristy8b350f62009-11-15 23:12:43 +000022857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022858$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022859if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022860 $as_echo_n "(cached) " >&6
22861else
22862 ac_cv_c_restrict=no
22863 # The order here caters to the fact that C++ does not require restrict.
22864 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022866/* end confdefs.h. */
22867typedef int * int_ptr;
22868 int foo (int_ptr $ac_kw ip) {
22869 return ip[0];
22870 }
22871int
22872main ()
22873{
22874int s[1];
22875 int * $ac_kw t = s;
22876 t[0] = 0;
22877 return foo(t)
22878 ;
22879 return 0;
22880}
22881_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022882if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022883 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022884fi
cristy3ed852e2009-09-05 21:47:34 +000022885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22886 test "$ac_cv_c_restrict" != no && break
22887 done
22888
22889fi
cristy8b350f62009-11-15 23:12:43 +000022890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022891$as_echo "$ac_cv_c_restrict" >&6; }
22892
cristy3ed852e2009-09-05 21:47:34 +000022893 case $ac_cv_c_restrict in
22894 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022895 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022896 ;;
22897 *) cat >>confdefs.h <<_ACEOF
22898#define restrict $ac_cv_c_restrict
22899_ACEOF
22900 ;;
22901 esac
22902
cristye80f9cb2013-01-09 01:09:31 +000022903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22904$as_echo_n "checking for working volatile... " >&6; }
22905if ${ac_cv_c_volatile+:} false; then :
22906 $as_echo_n "(cached) " >&6
22907else
22908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22909/* end confdefs.h. */
22910
22911int
22912main ()
22913{
22914
22915volatile int x;
22916int * volatile y = (int *) 0;
22917return !x && !y;
22918 ;
22919 return 0;
22920}
22921_ACEOF
22922if ac_fn_c_try_compile "$LINENO"; then :
22923 ac_cv_c_volatile=yes
22924else
22925 ac_cv_c_volatile=no
22926fi
22927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22928fi
22929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22930$as_echo "$ac_cv_c_volatile" >&6; }
22931if test $ac_cv_c_volatile = no; then
22932
22933$as_echo "#define volatile /**/" >>confdefs.h
22934
22935fi
22936
cristy3ed852e2009-09-05 21:47:34 +000022937
22938# If words are stored with the most significant byte first (like
22939# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022941$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022942if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022943 $as_echo_n "(cached) " >&6
22944else
22945 ac_cv_c_bigendian=unknown
22946 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022948/* end confdefs.h. */
22949#ifndef __APPLE_CC__
22950 not a universal capable compiler
22951 #endif
22952 typedef int dummy;
22953
22954_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022955if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022956
22957 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022958 # there are at least two -arch flags with different values.
22959 ac_arch=
22960 ac_prev=
22961 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22962 if test -n "$ac_prev"; then
22963 case $ac_word in
22964 i?86 | x86_64 | ppc | ppc64)
22965 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22966 ac_arch=$ac_word
22967 else
22968 ac_cv_c_bigendian=universal
22969 break
22970 fi
22971 ;;
22972 esac
22973 ac_prev=
22974 elif test "x$ac_word" = "x-arch"; then
22975 ac_prev=arch
22976 fi
22977 done
cristy3ed852e2009-09-05 21:47:34 +000022978fi
cristy3ed852e2009-09-05 21:47:34 +000022979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22980 if test $ac_cv_c_bigendian = unknown; then
22981 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022983/* end confdefs.h. */
22984#include <sys/types.h>
22985 #include <sys/param.h>
22986
22987int
22988main ()
22989{
22990#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22991 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22992 && LITTLE_ENDIAN)
22993 bogus endian macros
22994 #endif
22995
22996 ;
22997 return 0;
22998}
22999_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023000if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023001 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023003/* end confdefs.h. */
23004#include <sys/types.h>
23005 #include <sys/param.h>
23006
23007int
23008main ()
23009{
23010#if BYTE_ORDER != BIG_ENDIAN
23011 not big endian
23012 #endif
23013
23014 ;
23015 return 0;
23016}
23017_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023018if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023019 ac_cv_c_bigendian=yes
23020else
cristy8b350f62009-11-15 23:12:43 +000023021 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023022fi
cristy3ed852e2009-09-05 21:47:34 +000023023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023024fi
cristy3ed852e2009-09-05 21:47:34 +000023025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23026 fi
23027 if test $ac_cv_c_bigendian = unknown; then
23028 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023030/* end confdefs.h. */
23031#include <limits.h>
23032
23033int
23034main ()
23035{
23036#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23037 bogus endian macros
23038 #endif
23039
23040 ;
23041 return 0;
23042}
23043_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023044if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023045 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023047/* end confdefs.h. */
23048#include <limits.h>
23049
23050int
23051main ()
23052{
23053#ifndef _BIG_ENDIAN
23054 not big endian
23055 #endif
23056
23057 ;
23058 return 0;
23059}
23060_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023061if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023062 ac_cv_c_bigendian=yes
23063else
cristy8b350f62009-11-15 23:12:43 +000023064 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023065fi
cristy3ed852e2009-09-05 21:47:34 +000023066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023067fi
cristy3ed852e2009-09-05 21:47:34 +000023068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23069 fi
23070 if test $ac_cv_c_bigendian = unknown; then
23071 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023072 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023073 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023075/* end confdefs.h. */
23076short int ascii_mm[] =
23077 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23078 short int ascii_ii[] =
23079 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23080 int use_ascii (int i) {
23081 return ascii_mm[i] + ascii_ii[i];
23082 }
23083 short int ebcdic_ii[] =
23084 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23085 short int ebcdic_mm[] =
23086 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23087 int use_ebcdic (int i) {
23088 return ebcdic_mm[i] + ebcdic_ii[i];
23089 }
23090 extern int foo;
23091
23092int
23093main ()
23094{
23095return use_ascii (foo) == use_ebcdic (foo);
23096 ;
23097 return 0;
23098}
23099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023100if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023101 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23102 ac_cv_c_bigendian=yes
23103 fi
23104 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23105 if test "$ac_cv_c_bigendian" = unknown; then
23106 ac_cv_c_bigendian=no
23107 else
23108 # finding both strings is unlikely to happen, but who knows?
23109 ac_cv_c_bigendian=unknown
23110 fi
23111 fi
cristy3ed852e2009-09-05 21:47:34 +000023112fi
cristy3ed852e2009-09-05 21:47:34 +000023113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23114else
cristy8b350f62009-11-15 23:12:43 +000023115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023116/* end confdefs.h. */
23117$ac_includes_default
23118int
23119main ()
23120{
23121
23122 /* Are we little or big endian? From Harbison&Steele. */
23123 union
23124 {
23125 long int l;
23126 char c[sizeof (long int)];
23127 } u;
23128 u.l = 1;
23129 return u.c[sizeof (long int) - 1] == 1;
23130
23131 ;
23132 return 0;
23133}
23134_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023135if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023136 ac_cv_c_bigendian=no
23137else
cristy8b350f62009-11-15 23:12:43 +000023138 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023139fi
cristy8b350f62009-11-15 23:12:43 +000023140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23141 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023142fi
23143
cristy3ed852e2009-09-05 21:47:34 +000023144 fi
23145fi
cristy8b350f62009-11-15 23:12:43 +000023146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023147$as_echo "$ac_cv_c_bigendian" >&6; }
23148 case $ac_cv_c_bigendian in #(
23149 yes)
cristy8b350f62009-11-15 23:12:43 +000023150 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023151;; #(
23152 no)
23153 ;; #(
23154 universal)
23155
cristy8b350f62009-11-15 23:12:43 +000023156$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023157
23158 ;; #(
23159 *)
cristy98dddb52010-11-04 00:30:15 +000023160 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023161 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023162 esac
23163
23164
cristy501c8042011-05-26 17:46:28 +000023165# Define to a suitable type, if standard headers do not define it.
23166ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23167case $ac_cv_c_int8_t in #(
23168 no|yes) ;; #(
23169 *)
cristy3ed852e2009-09-05 21:47:34 +000023170
23171cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023172#define int8_t $ac_cv_c_int8_t
23173_ACEOF
23174;;
23175esac
23176
23177ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23178case $ac_cv_c_int16_t in #(
23179 no|yes) ;; #(
23180 *)
23181
23182cat >>confdefs.h <<_ACEOF
23183#define int16_t $ac_cv_c_int16_t
23184_ACEOF
23185;;
23186esac
23187
23188ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23189case $ac_cv_c_int32_t in #(
23190 no|yes) ;; #(
23191 *)
23192
23193cat >>confdefs.h <<_ACEOF
23194#define int32_t $ac_cv_c_int32_t
23195_ACEOF
23196;;
23197esac
23198
23199ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23200case $ac_cv_c_int64_t in #(
23201 no|yes) ;; #(
23202 *)
23203
23204cat >>confdefs.h <<_ACEOF
23205#define int64_t $ac_cv_c_int64_t
23206_ACEOF
23207;;
23208esac
23209
23210
cristy045228a2013-06-23 11:00:16 +000023211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23212$as_echo_n "checking for unsigned long long int... " >&6; }
23213if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000023214 $as_echo_n "(cached) " >&6
23215else
cristy045228a2013-06-23 11:00:16 +000023216 ac_cv_type_unsigned_long_long_int=yes
23217 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023219/* end confdefs.h. */
23220
23221 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023222 implementations with broken preprocessors. Perhaps this can
23223 be revisited in 2012. In the meantime, code should not expect
23224 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023225 /* Test literals. */
23226 long long int ll = 9223372036854775807ll;
23227 long long int nll = -9223372036854775807LL;
23228 unsigned long long int ull = 18446744073709551615ULL;
23229 /* Test constant expressions. */
23230 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023231 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023232 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023233 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023234 int i = 63;
23235int
23236main ()
23237{
23238/* Test availability of runtime routines for shift and division. */
23239 long long int llmax = 9223372036854775807ll;
23240 unsigned long long int ullmax = 18446744073709551615ull;
23241 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023242 | (llmax / ll) | (llmax % ll)
23243 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23244 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023245 ;
23246 return 0;
23247}
23248
23249_ACEOF
23250if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023251
23252else
23253 ac_cv_type_unsigned_long_long_int=no
23254fi
23255rm -f core conftest.err conftest.$ac_objext \
23256 conftest$ac_exeext conftest.$ac_ext
23257 fi
23258fi
23259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23260$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23261 if test $ac_cv_type_unsigned_long_long_int = yes; then
23262
23263$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23264
23265 fi
23266
23267
23268
23269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23270$as_echo_n "checking for long long int... " >&6; }
23271if ${ac_cv_type_long_long_int+:} false; then :
23272 $as_echo_n "(cached) " >&6
23273else
cristy501c8042011-05-26 17:46:28 +000023274 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023275 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023276 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23277 if test $ac_cv_type_long_long_int = yes; then
23278 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023279 :
cristy501c8042011-05-26 17:46:28 +000023280else
23281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23282/* end confdefs.h. */
23283#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023284 #ifndef LLONG_MAX
23285 # define HALF \
23286 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23287 # define LLONG_MAX (HALF - 1 + HALF)
23288 #endif
cristy501c8042011-05-26 17:46:28 +000023289int
23290main ()
23291{
23292long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023293 int i;
23294 for (i = 0; ; i++)
23295 {
23296 long long int m = n << i;
23297 if (m >> i != n)
23298 return 1;
23299 if (LLONG_MAX / 2 < m)
23300 break;
23301 }
23302 return 0;
cristy501c8042011-05-26 17:46:28 +000023303 ;
23304 return 0;
23305}
23306_ACEOF
23307if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023308
cristy501c8042011-05-26 17:46:28 +000023309else
23310 ac_cv_type_long_long_int=no
23311fi
23312rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23313 conftest.$ac_objext conftest.beam conftest.$ac_ext
23314fi
23315
cristy5ed9c6e2013-07-14 21:20:31 +000023316 fi
cristy045228a2013-06-23 11:00:16 +000023317 fi
cristy501c8042011-05-26 17:46:28 +000023318fi
23319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23320$as_echo "$ac_cv_type_long_long_int" >&6; }
23321 if test $ac_cv_type_long_long_int = yes; then
23322
23323$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23324
23325 fi
23326
23327
23328
23329 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23330if test "x$ac_cv_type_intmax_t" = xyes; then :
23331
23332$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23333
23334else
23335 test $ac_cv_type_long_long_int = yes \
23336 && ac_type='long long int' \
23337 || ac_type='long int'
23338
23339cat >>confdefs.h <<_ACEOF
23340#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023341_ACEOF
23342
23343fi
23344
23345
cristy501c8042011-05-26 17:46:28 +000023346
23347 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23348if test "x$ac_cv_type_intptr_t" = xyes; then :
23349
23350$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023351
cristy3ed852e2009-09-05 21:47:34 +000023352else
cristy501c8042011-05-26 17:46:28 +000023353 for ac_type in 'int' 'long int' 'long long int'; do
23354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23355/* end confdefs.h. */
23356$ac_includes_default
23357int
23358main ()
23359{
23360static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023361test_array [0] = 0;
23362return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023363
23364 ;
23365 return 0;
23366}
23367_ACEOF
23368if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023369
23370cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023371#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023372_ACEOF
23373
cristy501c8042011-05-26 17:46:28 +000023374 ac_type=
23375fi
23376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23377 test -z "$ac_type" && break
23378 done
cristy3ed852e2009-09-05 21:47:34 +000023379fi
23380
23381
cristy3ed852e2009-09-05 21:47:34 +000023382
cristy501c8042011-05-26 17:46:28 +000023383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23384$as_echo_n "checking for long double... " >&6; }
23385if ${ac_cv_type_long_double+:} false; then :
23386 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023387else
cristy501c8042011-05-26 17:46:28 +000023388 if test "$GCC" = yes; then
23389 ac_cv_type_long_double=yes
23390 else
23391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23392/* end confdefs.h. */
23393/* The Stardent Vistra knows sizeof (long double), but does
23394 not support it. */
23395 long double foo = 0.0L;
23396int
23397main ()
23398{
23399static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23400 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023401test_array [0] = 0;
23402return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023403
cristy501c8042011-05-26 17:46:28 +000023404 ;
23405 return 0;
23406}
cristy3ed852e2009-09-05 21:47:34 +000023407_ACEOF
cristy501c8042011-05-26 17:46:28 +000023408if ac_fn_c_try_compile "$LINENO"; then :
23409 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023410else
cristy501c8042011-05-26 17:46:28 +000023411 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023412fi
cristy501c8042011-05-26 17:46:28 +000023413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414 fi
cristy3ed852e2009-09-05 21:47:34 +000023415fi
cristy501c8042011-05-26 17:46:28 +000023416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23417$as_echo "$ac_cv_type_long_double" >&6; }
23418 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023419
cristy501c8042011-05-26 17:46:28 +000023420$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023421
cristy501c8042011-05-26 17:46:28 +000023422 fi
23423
cristy3ed852e2009-09-05 21:47:34 +000023424
cristy8b350f62009-11-15 23:12:43 +000023425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
cristy3ed852e2009-09-05 21:47:34 +000023426$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023427if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023428 $as_echo_n "(cached) " >&6
23429else
cristy8b350f62009-11-15 23:12:43 +000023430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023431/* end confdefs.h. */
23432#include <float.h>
23433 long double const a[] =
23434 {
23435 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23436 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23437 };
23438 long double
23439 f (long double x)
23440 {
23441 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23442 + (x ? f (x) : 'c'));
23443 }
23444
23445int
23446main ()
23447{
23448static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23449 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23450 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23451 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23452 && (int) LDBL_EPSILON == 0
23453 )];
cristy14fefe52012-05-21 00:59:18 +000023454test_array [0] = 0;
23455return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023456
23457 ;
23458 return 0;
23459}
23460_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023461if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023462 ac_cv_type_long_double_wider=yes
23463else
cristy8b350f62009-11-15 23:12:43 +000023464 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023465fi
cristy3ed852e2009-09-05 21:47:34 +000023466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23467fi
cristy8b350f62009-11-15 23:12:43 +000023468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023469$as_echo "$ac_cv_type_long_double_wider" >&6; }
23470 if test $ac_cv_type_long_double_wider = yes; then
23471
cristy8b350f62009-11-15 23:12:43 +000023472$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023473
23474 fi
23475
23476
cristy045228a2013-06-23 11:00:16 +000023477
cristy501c8042011-05-26 17:46:28 +000023478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23479$as_echo_n "checking for long long int... " >&6; }
23480if ${ac_cv_type_long_long_int+:} false; then :
23481 $as_echo_n "(cached) " >&6
23482else
cristy501c8042011-05-26 17:46:28 +000023483 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023484 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023485 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23486 if test $ac_cv_type_long_long_int = yes; then
23487 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023488 :
cristy501c8042011-05-26 17:46:28 +000023489else
23490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23491/* end confdefs.h. */
23492#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023493 #ifndef LLONG_MAX
23494 # define HALF \
23495 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23496 # define LLONG_MAX (HALF - 1 + HALF)
23497 #endif
cristy501c8042011-05-26 17:46:28 +000023498int
23499main ()
23500{
23501long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023502 int i;
23503 for (i = 0; ; i++)
23504 {
23505 long long int m = n << i;
23506 if (m >> i != n)
23507 return 1;
23508 if (LLONG_MAX / 2 < m)
23509 break;
23510 }
23511 return 0;
cristy501c8042011-05-26 17:46:28 +000023512 ;
23513 return 0;
23514}
23515_ACEOF
23516if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023517
cristy501c8042011-05-26 17:46:28 +000023518else
23519 ac_cv_type_long_long_int=no
23520fi
23521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23522 conftest.$ac_objext conftest.beam conftest.$ac_ext
23523fi
23524
cristy5ed9c6e2013-07-14 21:20:31 +000023525 fi
cristy045228a2013-06-23 11:00:16 +000023526 fi
cristy501c8042011-05-26 17:46:28 +000023527fi
23528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23529$as_echo "$ac_cv_type_long_long_int" >&6; }
23530 if test $ac_cv_type_long_long_int = yes; then
23531
23532$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23533
23534 fi
23535
23536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23537$as_echo_n "checking for mbstate_t... " >&6; }
23538if ${ac_cv_type_mbstate_t+:} false; then :
23539 $as_echo_n "(cached) " >&6
23540else
23541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23542/* end confdefs.h. */
23543$ac_includes_default
23544# include <wchar.h>
23545int
23546main ()
23547{
23548mbstate_t x; return sizeof x;
23549 ;
23550 return 0;
23551}
23552_ACEOF
23553if ac_fn_c_try_compile "$LINENO"; then :
23554 ac_cv_type_mbstate_t=yes
23555else
23556 ac_cv_type_mbstate_t=no
23557fi
23558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23559fi
23560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23561$as_echo "$ac_cv_type_mbstate_t" >&6; }
23562 if test $ac_cv_type_mbstate_t = yes; then
23563
23564$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23565
23566 else
23567
23568$as_echo "#define mbstate_t int" >>confdefs.h
23569
23570 fi
23571ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23572if test "x$ac_cv_type_mode_t" = xyes; then :
23573
23574else
23575
23576cat >>confdefs.h <<_ACEOF
23577#define mode_t int
23578_ACEOF
23579
23580fi
23581
23582ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23583if test "x$ac_cv_type_off_t" = xyes; then :
23584
23585else
23586
23587cat >>confdefs.h <<_ACEOF
23588#define off_t long int
23589_ACEOF
23590
23591fi
23592
23593ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23594if test "x$ac_cv_type_pid_t" = xyes; then :
23595
23596else
23597
23598cat >>confdefs.h <<_ACEOF
23599#define pid_t int
23600_ACEOF
23601
23602fi
23603
23604ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23605if test "x$ac_cv_type_size_t" = xyes; then :
23606
23607else
23608
23609cat >>confdefs.h <<_ACEOF
23610#define size_t unsigned int
23611_ACEOF
23612
23613fi
23614
23615ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23616if test "x$ac_cv_type_ssize_t" = xyes; then :
23617
23618else
23619
23620cat >>confdefs.h <<_ACEOF
23621#define ssize_t int
23622_ACEOF
23623
23624fi
23625
23626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23627$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23628if ${ac_cv_type_uid_t+:} false; then :
23629 $as_echo_n "(cached) " >&6
23630else
23631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23632/* end confdefs.h. */
23633#include <sys/types.h>
23634
23635_ACEOF
23636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23637 $EGREP "uid_t" >/dev/null 2>&1; then :
23638 ac_cv_type_uid_t=yes
23639else
23640 ac_cv_type_uid_t=no
23641fi
23642rm -f conftest*
23643
23644fi
23645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23646$as_echo "$ac_cv_type_uid_t" >&6; }
23647if test $ac_cv_type_uid_t = no; then
23648
23649$as_echo "#define uid_t int" >>confdefs.h
23650
23651
23652$as_echo "#define gid_t int" >>confdefs.h
23653
23654fi
23655
23656ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23657case $ac_cv_c_uint8_t in #(
23658 no|yes) ;; #(
23659 *)
23660
23661$as_echo "#define _UINT8_T 1" >>confdefs.h
23662
23663
23664cat >>confdefs.h <<_ACEOF
23665#define uint8_t $ac_cv_c_uint8_t
23666_ACEOF
23667;;
23668 esac
23669
23670ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23671case $ac_cv_c_uint16_t in #(
23672 no|yes) ;; #(
23673 *)
23674
23675
23676cat >>confdefs.h <<_ACEOF
23677#define uint16_t $ac_cv_c_uint16_t
23678_ACEOF
23679;;
23680 esac
23681
23682ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23683case $ac_cv_c_uint32_t in #(
23684 no|yes) ;; #(
23685 *)
23686
23687$as_echo "#define _UINT32_T 1" >>confdefs.h
23688
23689
23690cat >>confdefs.h <<_ACEOF
23691#define uint32_t $ac_cv_c_uint32_t
23692_ACEOF
23693;;
23694 esac
23695
23696ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23697case $ac_cv_c_uint64_t in #(
23698 no|yes) ;; #(
23699 *)
23700
23701$as_echo "#define _UINT64_T 1" >>confdefs.h
23702
23703
23704cat >>confdefs.h <<_ACEOF
23705#define uint64_t $ac_cv_c_uint64_t
23706_ACEOF
23707;;
23708 esac
23709
23710
cristy501c8042011-05-26 17:46:28 +000023711
23712 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23713if test "x$ac_cv_type_uintmax_t" = xyes; then :
23714
23715$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23716
23717else
23718 test $ac_cv_type_unsigned_long_long_int = yes \
23719 && ac_type='unsigned long long int' \
23720 || ac_type='unsigned long int'
23721
23722cat >>confdefs.h <<_ACEOF
23723#define uintmax_t $ac_type
23724_ACEOF
23725
23726fi
23727
23728
23729
23730 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23731if test "x$ac_cv_type_uintptr_t" = xyes; then :
23732
23733$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23734
23735else
23736 for ac_type in 'unsigned int' 'unsigned long int' \
23737 'unsigned long long int'; do
23738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23739/* end confdefs.h. */
23740$ac_includes_default
23741int
23742main ()
23743{
23744static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023745test_array [0] = 0;
23746return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023747
23748 ;
23749 return 0;
23750}
23751_ACEOF
23752if ac_fn_c_try_compile "$LINENO"; then :
23753
23754cat >>confdefs.h <<_ACEOF
23755#define uintptr_t $ac_type
23756_ACEOF
23757
23758 ac_type=
23759fi
23760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23761 test -z "$ac_type" && break
23762 done
23763fi
23764
23765
23766
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23768$as_echo_n "checking for unsigned long long int... " >&6; }
23769if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23770 $as_echo_n "(cached) " >&6
23771else
cristy045228a2013-06-23 11:00:16 +000023772 ac_cv_type_unsigned_long_long_int=yes
23773 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023775/* end confdefs.h. */
23776
23777 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023778 implementations with broken preprocessors. Perhaps this can
23779 be revisited in 2012. In the meantime, code should not expect
23780 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023781 /* Test literals. */
23782 long long int ll = 9223372036854775807ll;
23783 long long int nll = -9223372036854775807LL;
23784 unsigned long long int ull = 18446744073709551615ULL;
23785 /* Test constant expressions. */
23786 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023787 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023788 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023789 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023790 int i = 63;
23791int
23792main ()
23793{
23794/* Test availability of runtime routines for shift and division. */
23795 long long int llmax = 9223372036854775807ll;
23796 unsigned long long int ullmax = 18446744073709551615ull;
23797 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023798 | (llmax / ll) | (llmax % ll)
23799 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23800 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023801 ;
23802 return 0;
23803}
23804
23805_ACEOF
23806if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023807
cristy501c8042011-05-26 17:46:28 +000023808else
23809 ac_cv_type_unsigned_long_long_int=no
23810fi
23811rm -f core conftest.err conftest.$ac_objext \
23812 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023813 fi
cristy501c8042011-05-26 17:46:28 +000023814fi
23815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23816$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23817 if test $ac_cv_type_unsigned_long_long_int = yes; then
23818
23819$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23820
23821 fi
23822
23823
cristy708922a2015-05-17 02:33:56 +000023824ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <xlocale.h>
23825"
cristy98beafc2015-05-14 19:55:55 +000023826if test "x$ac_cv_type_locale_t" = xyes; then :
23827
23828cat >>confdefs.h <<_ACEOF
23829#define HAVE_LOCALE_T 1
23830_ACEOF
23831
23832
23833fi
23834
23835
cristyfec31822013-05-23 12:32:12 +000023836# Float_t and double_t are intended to be the the most efficient type.
23837ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23838"
23839if test "x$ac_cv_type_float_t" = xyes; then :
23840
23841cat >>confdefs.h <<_ACEOF
23842#define HAVE_FLOAT_T 1
23843_ACEOF
23844
23845
23846fi
23847
23848ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23849"
23850if test "x$ac_cv_type_double_t" = xyes; then :
23851
23852cat >>confdefs.h <<_ACEOF
23853#define HAVE_DOUBLE_T 1
23854_ACEOF
23855
23856
23857fi
23858
23859# The cast to long int works around a bug in the HP C Compiler
23860# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23861# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23862# This bug is HP SR number 8606223364.
23863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23864$as_echo_n "checking size of float_t... " >&6; }
23865if ${ac_cv_sizeof_float_t+:} false; then :
23866 $as_echo_n "(cached) " >&6
23867else
23868 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23869"; then :
23870
23871else
23872 if test "$ac_cv_type_float_t" = yes; then
23873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23875as_fn_error 77 "cannot compute sizeof (float_t)
23876See \`config.log' for more details" "$LINENO" 5; }
23877 else
23878 ac_cv_sizeof_float_t=0
23879 fi
23880fi
23881
23882fi
23883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23884$as_echo "$ac_cv_sizeof_float_t" >&6; }
23885
23886
23887
23888cat >>confdefs.h <<_ACEOF
23889#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23890_ACEOF
23891
23892
23893# The cast to long int works around a bug in the HP C Compiler
23894# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23895# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23896# This bug is HP SR number 8606223364.
23897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23898$as_echo_n "checking size of double_t... " >&6; }
23899if ${ac_cv_sizeof_double_t+:} false; then :
23900 $as_echo_n "(cached) " >&6
23901else
23902 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23903"; then :
23904
23905else
23906 if test "$ac_cv_type_double_t" = yes; then
23907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23909as_fn_error 77 "cannot compute sizeof (double_t)
23910See \`config.log' for more details" "$LINENO" 5; }
23911 else
23912 ac_cv_sizeof_double_t=0
23913 fi
23914fi
23915
23916fi
23917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23918$as_echo "$ac_cv_sizeof_double_t" >&6; }
23919
23920
23921
23922cat >>confdefs.h <<_ACEOF
23923#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23924_ACEOF
23925
23926
23927
cristy9b86f202012-11-28 21:55:35 +000023928# Get size of float, double and long double for comparaison.
23929# The cast to long int works around a bug in the HP C Compiler
23930# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23931# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23932# This bug is HP SR number 8606223364.
23933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23934$as_echo_n "checking size of float... " >&6; }
23935if ${ac_cv_sizeof_float+:} false; then :
23936 $as_echo_n "(cached) " >&6
23937else
23938 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23939
23940else
23941 if test "$ac_cv_type_float" = yes; then
23942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23944as_fn_error 77 "cannot compute sizeof (float)
23945See \`config.log' for more details" "$LINENO" 5; }
23946 else
23947 ac_cv_sizeof_float=0
23948 fi
23949fi
23950
23951fi
23952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23953$as_echo "$ac_cv_sizeof_float" >&6; }
23954
23955
23956
23957cat >>confdefs.h <<_ACEOF
23958#define SIZEOF_FLOAT $ac_cv_sizeof_float
23959_ACEOF
23960
23961
23962# The cast to long int works around a bug in the HP C Compiler
23963# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23964# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23965# This bug is HP SR number 8606223364.
23966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23967$as_echo_n "checking size of double... " >&6; }
23968if ${ac_cv_sizeof_double+:} false; then :
23969 $as_echo_n "(cached) " >&6
23970else
23971 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23972
23973else
23974 if test "$ac_cv_type_double" = yes; then
23975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23977as_fn_error 77 "cannot compute sizeof (double)
23978See \`config.log' for more details" "$LINENO" 5; }
23979 else
23980 ac_cv_sizeof_double=0
23981 fi
23982fi
23983
23984fi
23985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23986$as_echo "$ac_cv_sizeof_double" >&6; }
23987
23988
23989
23990cat >>confdefs.h <<_ACEOF
23991#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23992_ACEOF
23993
23994
cristy9e2b6242014-03-25 11:49:41 +000023995# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000023996# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23997# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23998# This bug is HP SR number 8606223364.
23999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
24000$as_echo_n "checking size of long double... " >&6; }
24001if ${ac_cv_sizeof_long_double+:} false; then :
24002 $as_echo_n "(cached) " >&6
24003else
24004 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
24005
24006else
24007 if test "$ac_cv_type_long_double" = yes; then
24008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24010as_fn_error 77 "cannot compute sizeof (long double)
24011See \`config.log' for more details" "$LINENO" 5; }
24012 else
24013 ac_cv_sizeof_long_double=0
24014 fi
24015fi
24016
24017fi
24018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
24019$as_echo "$ac_cv_sizeof_long_double" >&6; }
24020
24021
24022
24023cat >>confdefs.h <<_ACEOF
24024#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
24025_ACEOF
24026
24027
cristyf0cf9a22012-10-24 12:05:01 +000024028
cristy3ed852e2009-09-05 21:47:34 +000024029# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24030# The cast to long int works around a bug in the HP C Compiler
24031# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24032# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24033# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024035$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024036if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024037 $as_echo_n "(cached) " >&6
24038else
cristy8b350f62009-11-15 23:12:43 +000024039 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024040
cristy3ed852e2009-09-05 21:47:34 +000024041else
cristy8b350f62009-11-15 23:12:43 +000024042 if test "$ac_cv_type_signed_short" = yes; then
24043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024045as_fn_error 77 "cannot compute sizeof (signed short)
24046See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024047 else
24048 ac_cv_sizeof_signed_short=0
24049 fi
24050fi
cristy8b350f62009-11-15 23:12:43 +000024051
cristy3ed852e2009-09-05 21:47:34 +000024052fi
cristy8b350f62009-11-15 23:12:43 +000024053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024054$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24055
24056
24057
24058cat >>confdefs.h <<_ACEOF
24059#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24060_ACEOF
24061
24062
24063
24064# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24065# The cast to long int works around a bug in the HP C Compiler
24066# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24067# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24068# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024070$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024071if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024072 $as_echo_n "(cached) " >&6
24073else
cristy8b350f62009-11-15 23:12:43 +000024074 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024075
cristy3ed852e2009-09-05 21:47:34 +000024076else
cristy8b350f62009-11-15 23:12:43 +000024077 if test "$ac_cv_type_unsigned_short" = yes; then
24078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024080as_fn_error 77 "cannot compute sizeof (unsigned short)
24081See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024082 else
24083 ac_cv_sizeof_unsigned_short=0
24084 fi
24085fi
cristy8b350f62009-11-15 23:12:43 +000024086
cristy3ed852e2009-09-05 21:47:34 +000024087fi
cristy8b350f62009-11-15 23:12:43 +000024088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024089$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24090
24091
24092
24093cat >>confdefs.h <<_ACEOF
24094#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24095_ACEOF
24096
24097
24098
24099# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24100# The cast to long int works around a bug in the HP C Compiler
24101# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24102# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24103# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024105$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024106if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024107 $as_echo_n "(cached) " >&6
24108else
cristy8b350f62009-11-15 23:12:43 +000024109 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024110
cristy3ed852e2009-09-05 21:47:34 +000024111else
cristy8b350f62009-11-15 23:12:43 +000024112 if test "$ac_cv_type_signed_int" = yes; then
24113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024115as_fn_error 77 "cannot compute sizeof (signed int)
24116See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024117 else
24118 ac_cv_sizeof_signed_int=0
24119 fi
24120fi
cristy8b350f62009-11-15 23:12:43 +000024121
cristy3ed852e2009-09-05 21:47:34 +000024122fi
cristy8b350f62009-11-15 23:12:43 +000024123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024124$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24125
24126
24127
24128cat >>confdefs.h <<_ACEOF
24129#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24130_ACEOF
24131
24132
24133
24134# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24135# The cast to long int works around a bug in the HP C Compiler
24136# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24137# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24138# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024140$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024141if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024142 $as_echo_n "(cached) " >&6
24143else
cristy8b350f62009-11-15 23:12:43 +000024144 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024145
cristy3ed852e2009-09-05 21:47:34 +000024146else
cristy8b350f62009-11-15 23:12:43 +000024147 if test "$ac_cv_type_unsigned_int" = yes; then
24148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024150as_fn_error 77 "cannot compute sizeof (unsigned int)
24151See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024152 else
24153 ac_cv_sizeof_unsigned_int=0
24154 fi
24155fi
cristy8b350f62009-11-15 23:12:43 +000024156
cristy3ed852e2009-09-05 21:47:34 +000024157fi
cristy8b350f62009-11-15 23:12:43 +000024158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024159$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24160
24161
24162
24163cat >>confdefs.h <<_ACEOF
24164#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24165_ACEOF
24166
24167
24168
24169# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24170# The cast to long int works around a bug in the HP C Compiler
24171# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24172# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24173# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024175$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024176if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024177 $as_echo_n "(cached) " >&6
24178else
cristy8b350f62009-11-15 23:12:43 +000024179 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024180
cristy3ed852e2009-09-05 21:47:34 +000024181else
cristy8b350f62009-11-15 23:12:43 +000024182 if test "$ac_cv_type_signed_long" = yes; then
24183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024185as_fn_error 77 "cannot compute sizeof (signed long)
24186See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024187 else
24188 ac_cv_sizeof_signed_long=0
24189 fi
24190fi
cristy8b350f62009-11-15 23:12:43 +000024191
cristy3ed852e2009-09-05 21:47:34 +000024192fi
cristy8b350f62009-11-15 23:12:43 +000024193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024194$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24195
24196
24197
24198cat >>confdefs.h <<_ACEOF
24199#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24200_ACEOF
24201
24202
24203
24204# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24205# The cast to long int works around a bug in the HP C Compiler
24206# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24207# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24208# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024210$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024211if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024212 $as_echo_n "(cached) " >&6
24213else
cristy8b350f62009-11-15 23:12:43 +000024214 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024215
cristy3ed852e2009-09-05 21:47:34 +000024216else
cristy8b350f62009-11-15 23:12:43 +000024217 if test "$ac_cv_type_unsigned_long" = yes; then
24218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024220as_fn_error 77 "cannot compute sizeof (unsigned long)
24221See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024222 else
24223 ac_cv_sizeof_unsigned_long=0
24224 fi
24225fi
cristy8b350f62009-11-15 23:12:43 +000024226
cristy3ed852e2009-09-05 21:47:34 +000024227fi
cristy8b350f62009-11-15 23:12:43 +000024228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024229$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24230
24231
24232
24233cat >>confdefs.h <<_ACEOF
24234#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24235_ACEOF
24236
24237
24238
24239# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24240# 'signed long long' is not supported then the value defined is zero.
24241# The cast to long int works around a bug in the HP C Compiler
24242# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24243# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24244# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024246$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024247if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024248 $as_echo_n "(cached) " >&6
24249else
cristy8b350f62009-11-15 23:12:43 +000024250 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024251
cristy3ed852e2009-09-05 21:47:34 +000024252else
cristy8b350f62009-11-15 23:12:43 +000024253 if test "$ac_cv_type_signed_long_long" = yes; then
24254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024256as_fn_error 77 "cannot compute sizeof (signed long long)
24257See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024258 else
24259 ac_cv_sizeof_signed_long_long=0
24260 fi
24261fi
cristy8b350f62009-11-15 23:12:43 +000024262
cristy3ed852e2009-09-05 21:47:34 +000024263fi
cristy8b350f62009-11-15 23:12:43 +000024264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024265$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24266
24267
24268
24269cat >>confdefs.h <<_ACEOF
24270#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24271_ACEOF
24272
24273
24274
24275# Obtain size of a 'unsigned long long' and define as
24276# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24277# supported then the value defined is zero.
24278# The cast to long int works around a bug in the HP C Compiler
24279# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24280# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24281# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024283$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024284if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024285 $as_echo_n "(cached) " >&6
24286else
cristy8b350f62009-11-15 23:12:43 +000024287 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024288
cristy3ed852e2009-09-05 21:47:34 +000024289else
cristy8b350f62009-11-15 23:12:43 +000024290 if test "$ac_cv_type_unsigned_long_long" = yes; then
24291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024293as_fn_error 77 "cannot compute sizeof (unsigned long long)
24294See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024295 else
24296 ac_cv_sizeof_unsigned_long_long=0
24297 fi
24298fi
cristy8b350f62009-11-15 23:12:43 +000024299
cristy3ed852e2009-09-05 21:47:34 +000024300fi
cristy8b350f62009-11-15 23:12:43 +000024301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024302$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24303
24304
24305
24306cat >>confdefs.h <<_ACEOF
24307#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24308_ACEOF
24309
24310
24311
cristyfec31822013-05-23 12:32:12 +000024312# Obtain size of off_t and define as SIZEOF_OFF_T
24313# The cast to long int works around a bug in the HP C Compiler
24314# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24315# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24316# This bug is HP SR number 8606223364.
24317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24318$as_echo_n "checking size of off_t... " >&6; }
24319if ${ac_cv_sizeof_off_t+:} false; then :
24320 $as_echo_n "(cached) " >&6
24321else
24322 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24323
24324else
24325 if test "$ac_cv_type_off_t" = yes; then
24326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24328as_fn_error 77 "cannot compute sizeof (off_t)
24329See \`config.log' for more details" "$LINENO" 5; }
24330 else
24331 ac_cv_sizeof_off_t=0
24332 fi
24333fi
24334
24335fi
24336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24337$as_echo "$ac_cv_sizeof_off_t" >&6; }
24338
24339
24340
24341cat >>confdefs.h <<_ACEOF
24342#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24343_ACEOF
24344
24345
24346
24347# Obtain size of size_t and define as SIZEOF_SIZE_T
24348# The cast to long int works around a bug in the HP C Compiler
24349# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24350# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24351# This bug is HP SR number 8606223364.
24352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24353$as_echo_n "checking size of size_t... " >&6; }
24354if ${ac_cv_sizeof_size_t+:} false; then :
24355 $as_echo_n "(cached) " >&6
24356else
24357 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24358
24359else
24360 if test "$ac_cv_type_size_t" = yes; then
24361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24363as_fn_error 77 "cannot compute sizeof (size_t)
24364See \`config.log' for more details" "$LINENO" 5; }
24365 else
24366 ac_cv_sizeof_size_t=0
24367 fi
24368fi
24369
24370fi
24371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24372$as_echo "$ac_cv_sizeof_size_t" >&6; }
24373
24374
24375
24376cat >>confdefs.h <<_ACEOF
24377#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24378_ACEOF
24379
24380
24381
24382# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24383# The cast to long int works around a bug in the HP C Compiler
24384# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24385# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24386# This bug is HP SR number 8606223364.
24387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24388$as_echo_n "checking size of ssize_t... " >&6; }
24389if ${ac_cv_sizeof_ssize_t+:} false; then :
24390 $as_echo_n "(cached) " >&6
24391else
24392 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24393
24394else
24395 if test "$ac_cv_type_ssize_t" = yes; then
24396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24398as_fn_error 77 "cannot compute sizeof (ssize_t)
24399See \`config.log' for more details" "$LINENO" 5; }
24400 else
24401 ac_cv_sizeof_ssize_t=0
24402 fi
24403fi
24404
24405fi
24406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24407$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24408
24409
24410
24411cat >>confdefs.h <<_ACEOF
24412#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24413_ACEOF
24414
24415
24416
cristy3ed852e2009-09-05 21:47:34 +000024417# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24418# The cast to long int works around a bug in the HP C Compiler
24419# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24420# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24421# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024423$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024424if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024425 $as_echo_n "(cached) " >&6
24426else
cristy8b350f62009-11-15 23:12:43 +000024427 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024428
cristy3ed852e2009-09-05 21:47:34 +000024429else
cristy8b350f62009-11-15 23:12:43 +000024430 if test "$ac_cv_type_unsigned_intp" = yes; then
24431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024433as_fn_error 77 "cannot compute sizeof (unsigned int*)
24434See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024435 else
24436 ac_cv_sizeof_unsigned_intp=0
24437 fi
24438fi
cristy8b350f62009-11-15 23:12:43 +000024439
cristy3ed852e2009-09-05 21:47:34 +000024440fi
cristy8b350f62009-11-15 23:12:43 +000024441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024442$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24443
24444
24445
24446cat >>confdefs.h <<_ACEOF
24447#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24448_ACEOF
24449
24450
24451
24452#
24453# Compute sized types for current CPU and compiler options.
24454#
24455
cristy8b350f62009-11-15 23:12:43 +000024456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024457$as_echo_n "checking for signed 8-bit type... " >&6; }
24458INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24460$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024461
24462
cristy8b350f62009-11-15 23:12:43 +000024463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024464$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24465UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24467$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024468
24469
cristy8b350f62009-11-15 23:12:43 +000024470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024471$as_echo_n "checking for signed 16-bit type... " >&6; }
24472INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24474$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024475
24476
cristy8b350f62009-11-15 23:12:43 +000024477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024478$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24479UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24481$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024482
24483
cristy8b350f62009-11-15 23:12:43 +000024484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024485$as_echo_n "checking for signed 32-bit type... " >&6; }
24486INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024487INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024488if test $ac_cv_sizeof_signed_int -eq 4; then
24489 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024490 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024491elif test $ac_cv_sizeof_signed_long -eq 4; then
24492 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024493 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024494fi
cristyad38abe2012-12-23 23:03:21 +000024495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24496$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024497
24498
cristy6d5e20f2011-04-25 13:48:54 +000024499
cristy8b350f62009-11-15 23:12:43 +000024500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024501$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24502UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024503UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024504if test $ac_cv_sizeof_unsigned_int -eq 4; then
24505 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024506 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024507elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24508 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024509 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024510fi
cristyad38abe2012-12-23 23:03:21 +000024511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24512$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024513
24514
cristy6d5e20f2011-04-25 13:48:54 +000024515
cristy8b350f62009-11-15 23:12:43 +000024516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024517$as_echo_n "checking for signed 64-bit type... " >&6; }
24518INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024519INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024520if test $ac_cv_sizeof_signed_long -eq 8; then
24521 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024522 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024523elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24524 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024525 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024526fi
cristy3a99dcf2011-12-17 01:29:40 +000024527case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024528 mingw* )
24529 INT64_F='"I64"'
24530 ;;
24531esac
cristyad38abe2012-12-23 23:03:21 +000024532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24533$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024534
24535
cristy6d5e20f2011-04-25 13:48:54 +000024536
cristy8b350f62009-11-15 23:12:43 +000024537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024538$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24539UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024540UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024541if test $ac_cv_sizeof_unsigned_long -eq 8; then
24542 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024543 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024544elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24545 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024546 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024547fi
cristy3a99dcf2011-12-17 01:29:40 +000024548case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024549 mingw* )
24550 UINT64_F='"I64"'
24551 ;;
24552esac
cristyad38abe2012-12-23 23:03:21 +000024553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24554$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024555
24556
cristy6d5e20f2011-04-25 13:48:54 +000024557
cristy8b350f62009-11-15 23:12:43 +000024558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024559$as_echo_n "checking for unsigned maximum type... " >&6; }
24560UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024561UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024562if test "$UINT64_T" != 'none'; then
24563 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024564 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024565elif test "$UINT32_T" != 'none'; then
24566 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024567 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024568fi
cristyad38abe2012-12-23 23:03:21 +000024569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24570$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024571
24572
cristy6d5e20f2011-04-25 13:48:54 +000024573
cristy8b350f62009-11-15 23:12:43 +000024574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024575$as_echo_n "checking for pointer difference type... " >&6; }
24576UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024577UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024578if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24579 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024580 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024581elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24582 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024583 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024584fi
cristyad38abe2012-12-23 23:03:21 +000024585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24586$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024587
24588
cristy6d5e20f2011-04-25 13:48:54 +000024589
cristy8b350f62009-11-15 23:12:43 +000024590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024591$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024593/* end confdefs.h. */
24594
24595int
24596main ()
24597{
24598{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24599 ;
24600 return 0;
24601}
24602_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024603if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24605$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024606else
cristyad38abe2012-12-23 23:03:21 +000024607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24608$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024610$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024612/* end confdefs.h. */
24613
24614int
24615main ()
24616{
24617{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24618 ;
24619 return 0;
24620}
24621_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024622if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24624$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024625
cristy8b350f62009-11-15 23:12:43 +000024626$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024627
24628else
cristyad38abe2012-12-23 23:03:21 +000024629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24630$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024631
cristy8b350f62009-11-15 23:12:43 +000024632$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024633
24634fi
cristy3ed852e2009-09-05 21:47:34 +000024635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24636fi
cristy3ed852e2009-09-05 21:47:34 +000024637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24638
24639########
24640#
24641# Check for functions
24642#
24643########
cristy8b350f62009-11-15 23:12:43 +000024644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024645$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024646if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024647 $as_echo_n "(cached) " >&6
24648else
cristy8b350f62009-11-15 23:12:43 +000024649 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024650 ac_cv_func_closedir_void=yes
24651else
cristy8b350f62009-11-15 23:12:43 +000024652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024653/* end confdefs.h. */
24654$ac_includes_default
24655#include <$ac_header_dirent>
24656#ifndef __cplusplus
24657int closedir ();
24658#endif
24659
24660int
24661main ()
24662{
24663return closedir (opendir (".")) != 0;
24664 ;
24665 return 0;
24666}
24667_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024668if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024669 ac_cv_func_closedir_void=no
24670else
cristy8b350f62009-11-15 23:12:43 +000024671 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024672fi
cristy8b350f62009-11-15 23:12:43 +000024673rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24674 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024675fi
24676
cristy3ed852e2009-09-05 21:47:34 +000024677fi
cristy8b350f62009-11-15 23:12:43 +000024678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024679$as_echo "$ac_cv_func_closedir_void" >&6; }
24680if test $ac_cv_func_closedir_void = yes; then
24681
cristy8b350f62009-11-15 23:12:43 +000024682$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024683
24684fi
24685
cristycd4c5312009-11-22 01:19:08 +000024686
24687
24688
24689 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024690do :
24691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024692ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24693"
cristy98dddb52010-11-04 00:30:15 +000024694if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024695 cat >>confdefs.h <<_ACEOF
24696#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24697_ACEOF
24698
24699fi
24700
24701done
24702
cristycd4c5312009-11-22 01:19:08 +000024703
24704
24705
24706
24707
24708
24709
cristy3ed852e2009-09-05 21:47:34 +000024710for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024711do :
24712 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024713if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024714 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024715#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024716_ACEOF
24717
24718fi
24719done
24720
cristy8b350f62009-11-15 23:12:43 +000024721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024722$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024723if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024724 $as_echo_n "(cached) " >&6
24725else
cristy8b350f62009-11-15 23:12:43 +000024726 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024727 ac_cv_func_mmap_fixed_mapped=no
24728else
cristy8b350f62009-11-15 23:12:43 +000024729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024730/* end confdefs.h. */
24731$ac_includes_default
24732/* malloc might have been renamed as rpl_malloc. */
24733#undef malloc
24734
24735/* Thanks to Mike Haertel and Jim Avera for this test.
24736 Here is a matrix of mmap possibilities:
24737 mmap private not fixed
24738 mmap private fixed at somewhere currently unmapped
24739 mmap private fixed at somewhere already mapped
24740 mmap shared not fixed
24741 mmap shared fixed at somewhere currently unmapped
24742 mmap shared fixed at somewhere already mapped
24743 For private mappings, we should verify that changes cannot be read()
24744 back from the file, nor mmap's back from the file at a different
24745 address. (There have been systems where private was not correctly
24746 implemented like the infamous i386 svr4.0, and systems where the
24747 VM page cache was not coherent with the file system buffer cache
24748 like early versions of FreeBSD and possibly contemporary NetBSD.)
24749 For shared mappings, we should conversely verify that changes get
24750 propagated back to all the places they're supposed to be.
24751
24752 Grep wants private fixed already mapped.
24753 The main things grep needs to know about mmap are:
24754 * does it exist and is it safe to write into the mmap'd area
24755 * how to use it (BSD variants) */
24756
24757#include <fcntl.h>
24758#include <sys/mman.h>
24759
24760#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24761char *malloc ();
24762#endif
24763
24764/* This mess was copied from the GNU getpagesize.h. */
24765#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024766# ifdef _SC_PAGESIZE
24767# define getpagesize() sysconf(_SC_PAGESIZE)
24768# else /* no _SC_PAGESIZE */
24769# ifdef HAVE_SYS_PARAM_H
24770# include <sys/param.h>
24771# ifdef EXEC_PAGESIZE
24772# define getpagesize() EXEC_PAGESIZE
24773# else /* no EXEC_PAGESIZE */
24774# ifdef NBPG
24775# define getpagesize() NBPG * CLSIZE
24776# ifndef CLSIZE
24777# define CLSIZE 1
24778# endif /* no CLSIZE */
24779# else /* no NBPG */
24780# ifdef NBPC
24781# define getpagesize() NBPC
24782# else /* no NBPC */
24783# ifdef PAGESIZE
24784# define getpagesize() PAGESIZE
24785# endif /* PAGESIZE */
24786# endif /* no NBPC */
24787# endif /* no NBPG */
24788# endif /* no EXEC_PAGESIZE */
24789# else /* no HAVE_SYS_PARAM_H */
24790# define getpagesize() 8192 /* punt totally */
24791# endif /* no HAVE_SYS_PARAM_H */
24792# endif /* no _SC_PAGESIZE */
24793
24794#endif /* no HAVE_GETPAGESIZE */
24795
24796int
24797main ()
24798{
24799 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024800 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024801 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024802 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024803
24804 pagesize = getpagesize ();
24805
24806 /* First, make a file with some known garbage in it. */
24807 data = (char *) malloc (pagesize);
24808 if (!data)
24809 return 1;
24810 for (i = 0; i < pagesize; ++i)
24811 *(data + i) = rand ();
24812 umask (0);
24813 fd = creat ("conftest.mmap", 0600);
24814 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024815 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024816 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024817 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024818 close (fd);
24819
cristycd4c5312009-11-22 01:19:08 +000024820 /* Next, check that the tail of a page is zero-filled. File must have
24821 non-zero length, otherwise we risk SIGBUS for entire page. */
24822 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24823 if (fd2 < 0)
24824 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024825 cdata2 = "";
24826 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024827 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024828 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024829 if (data2 == MAP_FAILED)
24830 return 6;
24831 for (i = 0; i < pagesize; ++i)
24832 if (*(data2 + i))
24833 return 7;
24834 close (fd2);
24835 if (munmap (data2, pagesize))
24836 return 8;
24837
cristy3ed852e2009-09-05 21:47:34 +000024838 /* Next, try to mmap the file at a fixed address which already has
24839 something else allocated at it. If we can, also make sure that
24840 we see the same garbage. */
24841 fd = open ("conftest.mmap", O_RDWR);
24842 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024843 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024844 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24845 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024846 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024847 for (i = 0; i < pagesize; ++i)
24848 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024849 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024850
24851 /* Finally, make sure that changes to the mapped area do not
24852 percolate back to the file as seen by read(). (This is a bug on
24853 some variants of i386 svr4.0.) */
24854 for (i = 0; i < pagesize; ++i)
24855 *(data2 + i) = *(data2 + i) + 1;
24856 data3 = (char *) malloc (pagesize);
24857 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024858 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024859 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024860 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024861 for (i = 0; i < pagesize; ++i)
24862 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024863 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024864 close (fd);
24865 return 0;
24866}
24867_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024868if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024869 ac_cv_func_mmap_fixed_mapped=yes
24870else
cristy8b350f62009-11-15 23:12:43 +000024871 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024872fi
cristy8b350f62009-11-15 23:12:43 +000024873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24874 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024875fi
24876
cristy3ed852e2009-09-05 21:47:34 +000024877fi
cristy8b350f62009-11-15 23:12:43 +000024878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024879$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24880if test $ac_cv_func_mmap_fixed_mapped = yes; then
24881
cristy8b350f62009-11-15 23:12:43 +000024882$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024883
24884fi
cristycd4c5312009-11-22 01:19:08 +000024885rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024886
cristy3ed852e2009-09-05 21:47:34 +000024887for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024888do :
24889 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024890if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024891 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024892#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024893_ACEOF
24894
24895fi
24896
24897done
24898
cristy3ed852e2009-09-05 21:47:34 +000024899for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024900do :
24901 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24902ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024903if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024904 cat >>confdefs.h <<_ACEOF
24905#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24906_ACEOF
24907
24908fi
24909done
24910
24911if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024913$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024914if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024915 $as_echo_n "(cached) " >&6
24916else
cristy8b350f62009-11-15 23:12:43 +000024917 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024918 ac_cv_func_fork_works=cross
24919else
cristy8b350f62009-11-15 23:12:43 +000024920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024921/* end confdefs.h. */
24922$ac_includes_default
24923int
24924main ()
24925{
24926
24927 /* By Ruediger Kuhlmann. */
24928 return fork () < 0;
24929
24930 ;
24931 return 0;
24932}
24933_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024934if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024935 ac_cv_func_fork_works=yes
24936else
cristy8b350f62009-11-15 23:12:43 +000024937 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024938fi
cristy8b350f62009-11-15 23:12:43 +000024939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24940 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024941fi
24942
cristy3ed852e2009-09-05 21:47:34 +000024943fi
cristy8b350f62009-11-15 23:12:43 +000024944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024945$as_echo "$ac_cv_func_fork_works" >&6; }
24946
24947else
24948 ac_cv_func_fork_works=$ac_cv_func_fork
24949fi
24950if test "x$ac_cv_func_fork_works" = xcross; then
24951 case $host in
24952 *-*-amigaos* | *-*-msdosdjgpp*)
24953 # Override, as these systems have only a dummy fork() stub
24954 ac_cv_func_fork_works=no
24955 ;;
24956 *)
24957 ac_cv_func_fork_works=yes
24958 ;;
24959 esac
cristy8b350f62009-11-15 23:12:43 +000024960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
cristy3ed852e2009-09-05 21:47:34 +000024961$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24962fi
24963ac_cv_func_vfork_works=$ac_cv_func_vfork
24964if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024966$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024967if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024968 $as_echo_n "(cached) " >&6
24969else
cristy8b350f62009-11-15 23:12:43 +000024970 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024971 ac_cv_func_vfork_works=cross
24972else
cristy8b350f62009-11-15 23:12:43 +000024973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024974/* end confdefs.h. */
24975/* Thanks to Paul Eggert for this test. */
24976$ac_includes_default
24977#include <sys/wait.h>
24978#ifdef HAVE_VFORK_H
24979# include <vfork.h>
24980#endif
24981/* On some sparc systems, changes by the child to local and incoming
24982 argument registers are propagated back to the parent. The compiler
24983 is told about this with #include <vfork.h>, but some compilers
24984 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24985 static variable whose address is put into a register that is
24986 clobbered by the vfork. */
24987static void
24988#ifdef __cplusplus
24989sparc_address_test (int arg)
24990# else
24991sparc_address_test (arg) int arg;
24992#endif
24993{
24994 static pid_t child;
24995 if (!child) {
24996 child = vfork ();
24997 if (child < 0) {
24998 perror ("vfork");
24999 _exit(2);
25000 }
25001 if (!child) {
25002 arg = getpid();
25003 write(-1, "", 0);
25004 _exit (arg);
25005 }
25006 }
25007}
25008
25009int
25010main ()
25011{
25012 pid_t parent = getpid ();
25013 pid_t child;
25014
25015 sparc_address_test (0);
25016
25017 child = vfork ();
25018
25019 if (child == 0) {
25020 /* Here is another test for sparc vfork register problems. This
25021 test uses lots of local variables, at least as many local
25022 variables as main has allocated so far including compiler
25023 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25024 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25025 reuse the register of parent for one of the local variables,
25026 since it will think that parent can't possibly be used any more
25027 in this routine. Assigning to the local variable will thus
25028 munge parent in the parent process. */
25029 pid_t
25030 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25031 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25032 /* Convince the compiler that p..p7 are live; otherwise, it might
25033 use the same hardware register for all 8 local variables. */
25034 if (p != p1 || p != p2 || p != p3 || p != p4
25035 || p != p5 || p != p6 || p != p7)
25036 _exit(1);
25037
25038 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25039 from child file descriptors. If the child closes a descriptor
25040 before it execs or exits, this munges the parent's descriptor
25041 as well. Test for this by closing stdout in the child. */
25042 _exit(close(fileno(stdout)) != 0);
25043 } else {
25044 int status;
25045 struct stat st;
25046
25047 while (wait(&status) != child)
25048 ;
25049 return (
25050 /* Was there some problem with vforking? */
25051 child < 0
25052
25053 /* Did the child fail? (This shouldn't happen.) */
25054 || status
25055
25056 /* Did the vfork/compiler bug occur? */
25057 || parent != getpid()
25058
25059 /* Did the file descriptor bug occur? */
25060 || fstat(fileno(stdout), &st) != 0
25061 );
25062 }
25063}
25064_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025065if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025066 ac_cv_func_vfork_works=yes
25067else
cristy8b350f62009-11-15 23:12:43 +000025068 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025069fi
cristy8b350f62009-11-15 23:12:43 +000025070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25071 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025072fi
25073
cristy3ed852e2009-09-05 21:47:34 +000025074fi
cristy8b350f62009-11-15 23:12:43 +000025075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025076$as_echo "$ac_cv_func_vfork_works" >&6; }
25077
25078fi;
25079if test "x$ac_cv_func_fork_works" = xcross; then
25080 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
cristy3ed852e2009-09-05 21:47:34 +000025082$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25083fi
25084
25085if test "x$ac_cv_func_vfork_works" = xyes; then
25086
cristy8b350f62009-11-15 23:12:43 +000025087$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025088
25089else
25090
cristy8b350f62009-11-15 23:12:43 +000025091$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025092
25093fi
25094if test "x$ac_cv_func_fork_works" = xyes; then
25095
cristy8b350f62009-11-15 23:12:43 +000025096$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025097
25098fi
25099
cristy8b350f62009-11-15 23:12:43 +000025100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025101$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025102if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025103 $as_echo_n "(cached) " >&6
25104else
cristy8b350f62009-11-15 23:12:43 +000025105 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025106 ac_cv_func_memcmp_working=no
25107else
cristy8b350f62009-11-15 23:12:43 +000025108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025109/* end confdefs.h. */
25110$ac_includes_default
25111int
25112main ()
25113{
25114
25115 /* Some versions of memcmp are not 8-bit clean. */
25116 char c0 = '\100', c1 = '\200', c2 = '\201';
25117 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25118 return 1;
25119
25120 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25121 or more and with at least one buffer not starting on a 4-byte boundary.
25122 William Lewis provided this test program. */
25123 {
25124 char foo[21];
25125 char bar[21];
25126 int i;
25127 for (i = 0; i < 4; i++)
25128 {
25129 char *a = foo + i;
25130 char *b = bar + i;
25131 strcpy (a, "--------01111111");
25132 strcpy (b, "--------10000000");
25133 if (memcmp (a, b, 16) >= 0)
25134 return 1;
25135 }
25136 return 0;
25137 }
25138
25139 ;
25140 return 0;
25141}
25142_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025143if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025144 ac_cv_func_memcmp_working=yes
25145else
cristy8b350f62009-11-15 23:12:43 +000025146 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025147fi
cristy8b350f62009-11-15 23:12:43 +000025148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25149 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025150fi
25151
cristy3ed852e2009-09-05 21:47:34 +000025152fi
cristy8b350f62009-11-15 23:12:43 +000025153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025154$as_echo "$ac_cv_func_memcmp_working" >&6; }
25155test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25156 *" memcmp.$ac_objext "* ) ;;
25157 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25158 ;;
25159esac
25160
25161
cristy3ed852e2009-09-05 21:47:34 +000025162for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025163do :
25164 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25165ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025166if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025167 cat >>confdefs.h <<_ACEOF
25168#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25169_ACEOF
25170
25171fi
25172
25173done
25174
cristy8b350f62009-11-15 23:12:43 +000025175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025176$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025177if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025178 $as_echo_n "(cached) " >&6
25179else
25180 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25181 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25182 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025184/* end confdefs.h. */
25185$ac_includes_default
25186#ifdef HAVE_SYS_SELECT_H
25187# include <sys/select.h>
25188#endif
25189#ifdef HAVE_SYS_SOCKET_H
25190# include <sys/socket.h>
25191#endif
25192
25193int
25194main ()
25195{
25196extern int select ($ac_arg1,
25197 $ac_arg234, $ac_arg234, $ac_arg234,
25198 $ac_arg5);
25199 ;
25200 return 0;
25201}
25202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025203if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025204 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025205fi
cristy3ed852e2009-09-05 21:47:34 +000025206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25207 done
25208 done
25209done
25210# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025211: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025212
25213fi
cristy8b350f62009-11-15 23:12:43 +000025214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025215$as_echo "$ac_cv_func_select_args" >&6; }
25216ac_save_IFS=$IFS; IFS=','
25217set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25218IFS=$ac_save_IFS
25219shift
25220
25221cat >>confdefs.h <<_ACEOF
25222#define SELECT_TYPE_ARG1 $1
25223_ACEOF
25224
25225
25226cat >>confdefs.h <<_ACEOF
25227#define SELECT_TYPE_ARG234 ($2)
25228_ACEOF
25229
25230
25231cat >>confdefs.h <<_ACEOF
25232#define SELECT_TYPE_ARG5 ($3)
25233_ACEOF
25234
25235rm -f conftest*
25236
cristyda16f162011-02-19 23:52:17 +000025237if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025238 $as_echo_n "(cached) " >&6
25239else
25240 ac_cv_func_setvbuf_reversed=no
25241fi
25242
25243
cristy8b350f62009-11-15 23:12:43 +000025244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025245$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025246if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025247 $as_echo_n "(cached) " >&6
25248else
cristy8b350f62009-11-15 23:12:43 +000025249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025250/* end confdefs.h. */
25251#include <sys/types.h>
25252#include <signal.h>
25253
25254int
25255main ()
25256{
25257return *(signal (0, 0)) (0) == 1;
25258 ;
25259 return 0;
25260}
25261_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025262if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025263 ac_cv_type_signal=int
25264else
cristy8b350f62009-11-15 23:12:43 +000025265 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025266fi
cristy3ed852e2009-09-05 21:47:34 +000025267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25268fi
cristy8b350f62009-11-15 23:12:43 +000025269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025270$as_echo "$ac_cv_type_signal" >&6; }
25271
25272cat >>confdefs.h <<_ACEOF
25273#define RETSIGTYPE $ac_cv_type_signal
25274_ACEOF
25275
25276
cristy8b350f62009-11-15 23:12:43 +000025277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025278$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025279if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025280 $as_echo_n "(cached) " >&6
25281else
cristy8b350f62009-11-15 23:12:43 +000025282 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025283 ac_cv_func_strtod=no
25284else
cristy8b350f62009-11-15 23:12:43 +000025285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025286/* end confdefs.h. */
25287
25288$ac_includes_default
25289#ifndef strtod
25290double strtod ();
25291#endif
25292int
25293main()
25294{
25295 {
25296 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25297 char *string = " +69";
25298 char *term;
25299 double value;
25300 value = strtod (string, &term);
25301 if (value != 69 || term != (string + 4))
25302 return 1;
25303 }
25304
25305 {
25306 /* Under Solaris 2.4, strtod returns the wrong value for the
25307 terminating character under some conditions. */
25308 char *string = "NaN";
25309 char *term;
25310 strtod (string, &term);
25311 if (term != string && *(term - 1) == 0)
25312 return 1;
25313 }
25314 return 0;
25315}
25316
25317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025318if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025319 ac_cv_func_strtod=yes
25320else
cristy8b350f62009-11-15 23:12:43 +000025321 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025322fi
cristy8b350f62009-11-15 23:12:43 +000025323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25324 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025325fi
25326
cristy3ed852e2009-09-05 21:47:34 +000025327fi
cristy8b350f62009-11-15 23:12:43 +000025328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025329$as_echo "$ac_cv_func_strtod" >&6; }
25330if test $ac_cv_func_strtod = no; then
25331 case " $LIBOBJS " in
25332 *" strtod.$ac_objext "* ) ;;
25333 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25334 ;;
25335esac
25336
cristy8b350f62009-11-15 23:12:43 +000025337ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025338if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025339
cristy3ed852e2009-09-05 21:47:34 +000025340fi
25341
cristy3ed852e2009-09-05 21:47:34 +000025342if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025344$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025345if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025346 $as_echo_n "(cached) " >&6
25347else
25348 ac_check_lib_save_LIBS=$LIBS
25349LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025351/* end confdefs.h. */
25352
25353/* Override any GCC internal prototype to avoid an error.
25354 Use char because int might match the return type of a GCC
25355 builtin and then its argument prototype would still apply. */
25356#ifdef __cplusplus
25357extern "C"
25358#endif
25359char pow ();
25360int
25361main ()
25362{
25363return pow ();
25364 ;
25365 return 0;
25366}
25367_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025368if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025369 ac_cv_lib_m_pow=yes
25370else
cristy8b350f62009-11-15 23:12:43 +000025371 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025372fi
cristy8b350f62009-11-15 23:12:43 +000025373rm -f core conftest.err conftest.$ac_objext \
25374 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025375LIBS=$ac_check_lib_save_LIBS
25376fi
cristy8b350f62009-11-15 23:12:43 +000025377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025378$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025379if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025380 POW_LIB=-lm
25381else
cristy8b350f62009-11-15 23:12:43 +000025382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025383$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25384fi
25385
25386fi
25387
25388fi
25389
cristy7d4a1d62011-10-13 15:54:12 +000025390ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25391if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25392 ac_have_decl=1
25393else
25394 ac_have_decl=0
25395fi
25396
25397cat >>confdefs.h <<_ACEOF
25398#define HAVE_DECL_STRERROR_R $ac_have_decl
25399_ACEOF
25400
25401for ac_func in strerror_r
25402do :
25403 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25404if test "x$ac_cv_func_strerror_r" = xyes; then :
25405 cat >>confdefs.h <<_ACEOF
25406#define HAVE_STRERROR_R 1
25407_ACEOF
25408
25409fi
25410done
25411
25412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25413$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25414if ${ac_cv_func_strerror_r_char_p+:} false; then :
25415 $as_echo_n "(cached) " >&6
25416else
25417
25418 ac_cv_func_strerror_r_char_p=no
25419 if test $ac_cv_have_decl_strerror_r = yes; then
25420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25421/* end confdefs.h. */
25422$ac_includes_default
25423int
25424main ()
25425{
25426
25427 char buf[100];
25428 char x = *strerror_r (0, buf, sizeof buf);
25429 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025430 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025431
25432 ;
25433 return 0;
25434}
25435_ACEOF
25436if ac_fn_c_try_compile "$LINENO"; then :
25437 ac_cv_func_strerror_r_char_p=yes
25438fi
25439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25440 else
25441 # strerror_r is not declared. Choose between
25442 # systems that have relatively inaccessible declarations for the
25443 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25444 # former has a strerror_r that returns char*, while the latter
25445 # has a strerror_r that returns `int'.
25446 # This test should segfault on the DEC system.
25447 if test "$cross_compiling" = yes; then :
25448 :
25449else
25450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25451/* end confdefs.h. */
25452$ac_includes_default
25453 extern char *strerror_r ();
25454int
25455main ()
25456{
25457char buf[100];
25458 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025459 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025460 ;
25461 return 0;
25462}
25463_ACEOF
25464if ac_fn_c_try_run "$LINENO"; then :
25465 ac_cv_func_strerror_r_char_p=yes
25466fi
25467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25468 conftest.$ac_objext conftest.beam conftest.$ac_ext
25469fi
25470
25471 fi
25472
25473fi
25474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25475$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25476if test $ac_cv_func_strerror_r_char_p = yes; then
25477
25478$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25479
25480fi
25481
cristy3ed852e2009-09-05 21:47:34 +000025482for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025483do :
25484 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025485if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025486 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025487#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025488_ACEOF
25489
cristy8b350f62009-11-15 23:12:43 +000025490ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025491if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025492
cristy8b350f62009-11-15 23:12:43 +000025493$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025494
25495fi
25496
25497fi
25498done
25499
25500
25501
cristy161b9262010-03-20 19:34:32 +000025502#
25503# Find math library
25504#
25505MATH_LIBS=''
25506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25507$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025508if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025509 $as_echo_n "(cached) " >&6
25510else
25511 ac_check_lib_save_LIBS=$LIBS
25512LIBS="-lm $LIBS"
25513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25514/* end confdefs.h. */
25515
25516/* Override any GCC internal prototype to avoid an error.
25517 Use char because int might match the return type of a GCC
25518 builtin and then its argument prototype would still apply. */
25519#ifdef __cplusplus
25520extern "C"
25521#endif
25522char sqrt ();
25523int
25524main ()
25525{
25526return sqrt ();
25527 ;
25528 return 0;
25529}
25530_ACEOF
25531if ac_fn_c_try_link "$LINENO"; then :
25532 ac_cv_lib_m_sqrt=yes
25533else
25534 ac_cv_lib_m_sqrt=no
25535fi
25536rm -f core conftest.err conftest.$ac_objext \
25537 conftest$ac_exeext conftest.$ac_ext
25538LIBS=$ac_check_lib_save_LIBS
25539fi
25540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25541$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025542if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025543 MATH_LIBS="-lm"
25544fi
25545
25546LIBS="$MATH_LIBS $LIBS"
25547
25548
cristy85572162013-01-04 19:19:32 +000025549#
25550# Find socket library
25551#
cristy8a5d7f42013-01-06 15:24:33 +000025552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25553$as_echo_n "checking for library containing gethostbyname... " >&6; }
25554if ${ac_cv_search_gethostbyname+:} false; then :
25555 $as_echo_n "(cached) " >&6
25556else
25557 ac_func_search_save_LIBS=$LIBS
25558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25559/* end confdefs.h. */
25560
25561/* Override any GCC internal prototype to avoid an error.
25562 Use char because int might match the return type of a GCC
25563 builtin and then its argument prototype would still apply. */
25564#ifdef __cplusplus
25565extern "C"
25566#endif
25567char gethostbyname ();
25568int
25569main ()
25570{
25571return gethostbyname ();
25572 ;
25573 return 0;
25574}
25575_ACEOF
25576for ac_lib in '' resolv nsl; do
25577 if test -z "$ac_lib"; then
25578 ac_res="none required"
25579 else
25580 ac_res=-l$ac_lib
25581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25582 fi
25583 if ac_fn_c_try_link "$LINENO"; then :
25584 ac_cv_search_gethostbyname=$ac_res
25585fi
25586rm -f core conftest.err conftest.$ac_objext \
25587 conftest$ac_exeext
25588 if ${ac_cv_search_gethostbyname+:} false; then :
25589 break
25590fi
25591done
25592if ${ac_cv_search_gethostbyname+:} false; then :
25593
25594else
25595 ac_cv_search_gethostbyname=no
25596fi
25597rm conftest.$ac_ext
25598LIBS=$ac_func_search_save_LIBS
25599fi
25600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25601$as_echo "$ac_cv_search_gethostbyname" >&6; }
25602ac_res=$ac_cv_search_gethostbyname
25603if test "$ac_res" != no; then :
25604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25605
25606fi
25607
cristy85572162013-01-04 19:19:32 +000025608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25609$as_echo_n "checking for library containing socket... " >&6; }
25610if ${ac_cv_search_socket+:} false; then :
25611 $as_echo_n "(cached) " >&6
25612else
25613 ac_func_search_save_LIBS=$LIBS
25614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25615/* end confdefs.h. */
25616
25617/* Override any GCC internal prototype to avoid an error.
25618 Use char because int might match the return type of a GCC
25619 builtin and then its argument prototype would still apply. */
25620#ifdef __cplusplus
25621extern "C"
25622#endif
25623char socket ();
25624int
25625main ()
25626{
25627return socket ();
25628 ;
25629 return 0;
25630}
25631_ACEOF
25632for ac_lib in '' socket; do
25633 if test -z "$ac_lib"; then
25634 ac_res="none required"
25635 else
25636 ac_res=-l$ac_lib
25637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25638 fi
25639 if ac_fn_c_try_link "$LINENO"; then :
25640 ac_cv_search_socket=$ac_res
25641fi
25642rm -f core conftest.err conftest.$ac_objext \
25643 conftest$ac_exeext
25644 if ${ac_cv_search_socket+:} false; then :
25645 break
25646fi
25647done
25648if ${ac_cv_search_socket+:} false; then :
25649
25650else
25651 ac_cv_search_socket=no
25652fi
25653rm conftest.$ac_ext
25654LIBS=$ac_func_search_save_LIBS
25655fi
25656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25657$as_echo "$ac_cv_search_socket" >&6; }
25658ac_res=$ac_cv_search_socket
25659if test "$ac_res" != no; then :
25660 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25661
cristy85572162013-01-04 19:19:32 +000025662
cristy8a5d7f42013-01-06 15:24:33 +000025663$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025664
cristy03f187e2013-01-24 00:22:19 +000025665 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025666
25667fi
25668
25669
25670for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale socket sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025671do :
25672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25673ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025674if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025675 cat >>confdefs.h <<_ACEOF
25676#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25677_ACEOF
25678
25679fi
25680done
25681
25682
cristye43a45e2009-09-28 14:49:00 +000025683#
25684# Check for clock_gettime().
25685#
cristy8b350f62009-11-15 23:12:43 +000025686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025687$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025688if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025689 $as_echo_n "(cached) " >&6
25690else
25691 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025693/* end confdefs.h. */
25694
25695/* Override any GCC internal prototype to avoid an error.
25696 Use char because int might match the return type of a GCC
25697 builtin and then its argument prototype would still apply. */
25698#ifdef __cplusplus
25699extern "C"
25700#endif
25701char clock_gettime ();
25702int
25703main ()
25704{
25705return clock_gettime ();
25706 ;
25707 return 0;
25708}
25709_ACEOF
25710for ac_lib in '' rt; do
25711 if test -z "$ac_lib"; then
25712 ac_res="none required"
25713 else
25714 ac_res=-l$ac_lib
25715 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25716 fi
cristy8b350f62009-11-15 23:12:43 +000025717 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025718 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025719fi
cristy8b350f62009-11-15 23:12:43 +000025720rm -f core conftest.err conftest.$ac_objext \
25721 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025722 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025723 break
25724fi
25725done
cristyda16f162011-02-19 23:52:17 +000025726if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025727
cristye43a45e2009-09-28 14:49:00 +000025728else
25729 ac_cv_search_clock_gettime=no
25730fi
25731rm conftest.$ac_ext
25732LIBS=$ac_func_search_save_LIBS
25733fi
cristy8b350f62009-11-15 23:12:43 +000025734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025735$as_echo "$ac_cv_search_clock_gettime" >&6; }
25736ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025737if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25739
25740
cristy8b350f62009-11-15 23:12:43 +000025741$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025742
cristy8b350f62009-11-15 23:12:43 +000025743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025744$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025746/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025747
25748 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025749int
25750main ()
25751{
25752clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025753 ;
25754 return 0;
25755}
25756_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025757if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025758
cristyad38abe2012-12-23 23:03:21 +000025759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25760$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025761
cristy8b350f62009-11-15 23:12:43 +000025762$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025763
25764
25765else
cristyad38abe2012-12-23 23:03:21 +000025766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25767$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025768
25769fi
cristye43a45e2009-09-28 14:49:00 +000025770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25771
25772else
25773
cristy8b350f62009-11-15 23:12:43 +000025774 for ac_func in gettimeofday ftime
25775do :
25776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25777ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025778if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025779 cat >>confdefs.h <<_ACEOF
25780#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25781_ACEOF
25782 break
25783fi
25784done
25785
25786
25787
25788fi
25789
25790
cristy3ed852e2009-09-05 21:47:34 +000025791########
25792#
25793# Check for function prototypes
25794#
25795########
25796
cristy8b350f62009-11-15 23:12:43 +000025797ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025798#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025799"
cristyda16f162011-02-19 23:52:17 +000025800if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025801 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025802else
cristy8b350f62009-11-15 23:12:43 +000025803 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025804fi
25805
cristy3ed852e2009-09-05 21:47:34 +000025806cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025807#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025808_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025809ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025810#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025811"
cristyda16f162011-02-19 23:52:17 +000025812if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025813 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025814else
cristy8b350f62009-11-15 23:12:43 +000025815 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025816fi
25817
cristy3ed852e2009-09-05 21:47:34 +000025818cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025819#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025820_ACEOF
25821
25822
cristy8b350f62009-11-15 23:12:43 +000025823ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025824#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025825"
cristyda16f162011-02-19 23:52:17 +000025826if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025827 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025828else
cristy8b350f62009-11-15 23:12:43 +000025829 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025830fi
25831
cristy3ed852e2009-09-05 21:47:34 +000025832cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025833#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025834_ACEOF
25835
25836
cristy8b350f62009-11-15 23:12:43 +000025837ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025838#include <stdio.h>
25839#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025840"
cristyda16f162011-02-19 23:52:17 +000025841if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025842 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025843else
cristy8b350f62009-11-15 23:12:43 +000025844 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025845fi
25846
cristy3ed852e2009-09-05 21:47:34 +000025847cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025848#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025849_ACEOF
25850
25851
cristy3ed852e2009-09-05 21:47:34 +000025852########
25853#
25854# C++ Support Tests (For Magick++)
25855#
25856########
25857have_magick_plus_plus='no'
25858if test "$with_magick_plus_plus" = 'yes'; then
25859 OLIBS="$LIBS"
25860 LIBS=''
25861 ac_ext=cpp
25862ac_cpp='$CXXCPP $CPPFLAGS'
25863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25866
25867
25868 # Full set of headers used...
25869 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25870 # functional iomanip iosfwd iostream iterator list string strstream utility
25871 ac_ext=cpp
25872ac_cpp='$CXXCPP $CPPFLAGS'
25873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25876
25877 ac_ext=cpp
25878ac_cpp='$CXXCPP $CPPFLAGS'
25879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25882if test -z "$CXX"; then
25883 if test -n "$CCC"; then
25884 CXX=$CCC
25885 else
25886 if test -n "$ac_tool_prefix"; then
25887 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25888 do
25889 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25890set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025892$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025893if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025894 $as_echo_n "(cached) " >&6
25895else
25896 if test -n "$CXX"; then
25897 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25898else
25899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25900for as_dir in $PATH
25901do
25902 IFS=$as_save_IFS
25903 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025904 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025906 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025908 break 2
25909 fi
25910done
cristy8b350f62009-11-15 23:12:43 +000025911 done
cristy3ed852e2009-09-05 21:47:34 +000025912IFS=$as_save_IFS
25913
25914fi
25915fi
25916CXX=$ac_cv_prog_CXX
25917if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025919$as_echo "$CXX" >&6; }
25920else
cristy8b350f62009-11-15 23:12:43 +000025921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025922$as_echo "no" >&6; }
25923fi
25924
25925
25926 test -n "$CXX" && break
25927 done
25928fi
25929if test -z "$CXX"; then
25930 ac_ct_CXX=$CXX
25931 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25932do
25933 # Extract the first word of "$ac_prog", so it can be a program name with args.
25934set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025936$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025937if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025938 $as_echo_n "(cached) " >&6
25939else
25940 if test -n "$ac_ct_CXX"; then
25941 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25942else
25943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25944for as_dir in $PATH
25945do
25946 IFS=$as_save_IFS
25947 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025948 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025950 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025952 break 2
25953 fi
25954done
cristy8b350f62009-11-15 23:12:43 +000025955 done
cristy3ed852e2009-09-05 21:47:34 +000025956IFS=$as_save_IFS
25957
25958fi
25959fi
25960ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25961if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025963$as_echo "$ac_ct_CXX" >&6; }
25964else
cristy8b350f62009-11-15 23:12:43 +000025965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025966$as_echo "no" >&6; }
25967fi
25968
25969
25970 test -n "$ac_ct_CXX" && break
25971done
25972
25973 if test "x$ac_ct_CXX" = x; then
25974 CXX="g++"
25975 else
25976 case $cross_compiling:$ac_tool_warned in
25977yes:)
cristy8b350f62009-11-15 23:12:43 +000025978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25980ac_tool_warned=yes ;;
25981esac
25982 CXX=$ac_ct_CXX
25983 fi
25984fi
25985
25986 fi
25987fi
25988# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025989$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025990set X $ac_compile
25991ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025992for ac_option in --version -v -V -qversion; do
25993 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025994case "(($ac_try" in
25995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25996 *) ac_try_echo=$ac_try;;
25997esac
cristy8b350f62009-11-15 23:12:43 +000025998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25999$as_echo "$ac_try_echo"; } >&5
26000 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000026001 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026002 if test -s conftest.err; then
26003 sed '10a\
26004... rest of stderr output deleted ...
26005 10q' conftest.err >conftest.er1
26006 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000026007 fi
cristycd4c5312009-11-22 01:19:08 +000026008 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000026009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26010 test $ac_status = 0; }
26011done
cristy3ed852e2009-09-05 21:47:34 +000026012
cristy8b350f62009-11-15 23:12:43 +000026013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000026014$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026015if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026016 $as_echo_n "(cached) " >&6
26017else
cristy8b350f62009-11-15 23:12:43 +000026018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026019/* end confdefs.h. */
26020
26021int
26022main ()
26023{
26024#ifndef __GNUC__
26025 choke me
26026#endif
26027
26028 ;
26029 return 0;
26030}
26031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026032if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026033 ac_compiler_gnu=yes
26034else
cristy8b350f62009-11-15 23:12:43 +000026035 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026036fi
cristy3ed852e2009-09-05 21:47:34 +000026037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26038ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26039
26040fi
cristy8b350f62009-11-15 23:12:43 +000026041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026042$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26043if test $ac_compiler_gnu = yes; then
26044 GXX=yes
26045else
26046 GXX=
26047fi
26048ac_test_CXXFLAGS=${CXXFLAGS+set}
26049ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026051$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026052if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026053 $as_echo_n "(cached) " >&6
26054else
26055 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26056 ac_cxx_werror_flag=yes
26057 ac_cv_prog_cxx_g=no
26058 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026060/* end confdefs.h. */
26061
26062int
26063main ()
26064{
26065
26066 ;
26067 return 0;
26068}
26069_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026070if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026071 ac_cv_prog_cxx_g=yes
26072else
cristy8b350f62009-11-15 23:12:43 +000026073 CXXFLAGS=""
26074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026075/* end confdefs.h. */
26076
26077int
26078main ()
26079{
26080
26081 ;
26082 return 0;
26083}
26084_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026085if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026086
cristy8b350f62009-11-15 23:12:43 +000026087else
26088 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026089 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026091/* end confdefs.h. */
26092
26093int
26094main ()
26095{
26096
26097 ;
26098 return 0;
26099}
26100_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026101if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026102 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026103fi
cristy3ed852e2009-09-05 21:47:34 +000026104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26105fi
cristy3ed852e2009-09-05 21:47:34 +000026106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26107fi
cristy3ed852e2009-09-05 21:47:34 +000026108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26109 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26110fi
cristy8b350f62009-11-15 23:12:43 +000026111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026112$as_echo "$ac_cv_prog_cxx_g" >&6; }
26113if test "$ac_test_CXXFLAGS" = set; then
26114 CXXFLAGS=$ac_save_CXXFLAGS
26115elif test $ac_cv_prog_cxx_g = yes; then
26116 if test "$GXX" = yes; then
26117 CXXFLAGS="-g -O2"
26118 else
26119 CXXFLAGS="-g"
26120 fi
26121else
26122 if test "$GXX" = yes; then
26123 CXXFLAGS="-O2"
26124 else
26125 CXXFLAGS=
26126 fi
26127fi
26128ac_ext=cpp
26129ac_cpp='$CXXCPP $CPPFLAGS'
26130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26133
cristy73bd4a52010-10-05 11:24:23 +000026134depcc="$CXX" am_compiler_list=
26135
26136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26137$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026138if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026139 $as_echo_n "(cached) " >&6
26140else
26141 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26142 # We make a subdir and do the tests there. Otherwise we can end up
26143 # making bogus files that we don't know about and never remove. For
26144 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026145 # making a dummy file named 'D' -- because '-MD' means "put the output
26146 # in D".
cristy7247bba2012-02-05 16:37:27 +000026147 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026148 mkdir conftest.dir
26149 # Copy depcomp to subdir because otherwise we won't find it if we're
26150 # using a relative directory.
26151 cp "$am_depcomp" conftest.dir
26152 cd conftest.dir
26153 # We will build objects and dependencies in a subdirectory because
26154 # it helps to detect inapplicable dependency modes. For instance
26155 # both Tru64's cc and ICC support -MD to output dependencies as a
26156 # side effect of compilation, but ICC will put the dependencies in
26157 # the current directory while Tru64 will put them in the object
26158 # directory.
26159 mkdir sub
26160
26161 am_cv_CXX_dependencies_compiler_type=none
26162 if test "$am_compiler_list" = ""; then
26163 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26164 fi
26165 am__universal=false
26166 case " $depcc " in #(
26167 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26168 esac
26169
26170 for depmode in $am_compiler_list; do
26171 # Setup a source with many dependencies, because some compilers
26172 # like to wrap large dependency lists on column 80 (with \), and
26173 # we should not choose a depcomp mode which is confused by this.
26174 #
26175 # We need to recreate these files for each test, as the compiler may
26176 # overwrite some of them when testing with obscure command lines.
26177 # This happens at least with the AIX C compiler.
26178 : > sub/conftest.c
26179 for i in 1 2 3 4 5 6; do
26180 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026181 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26182 # Solaris 10 /bin/sh.
26183 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026184 done
26185 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26186
cristyc0890a62012-07-19 00:18:20 +000026187 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026188 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026189 # handle '-M -o', and we need to detect this. Also, some Intel
26190 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026191 am__obj=sub/conftest.${OBJEXT-o}
26192 am__minus_obj="-o $am__obj"
26193 case $depmode in
26194 gcc)
26195 # This depmode causes a compiler race in universal mode.
26196 test "$am__universal" = false || continue
26197 ;;
26198 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026199 # After this tag, mechanisms are not by side-effect, so they'll
26200 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026201 if test "x$enable_dependency_tracking" = xyes; then
26202 continue
26203 else
26204 break
26205 fi
26206 ;;
cristy7247bba2012-02-05 16:37:27 +000026207 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026208 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026209 # not run yet. These depmodes are late enough in the game, and
26210 # so weak that their functioning should not be impacted.
26211 am__obj=conftest.${OBJEXT-o}
26212 am__minus_obj=
26213 ;;
26214 none) break ;;
26215 esac
26216 if depmode=$depmode \
26217 source=sub/conftest.c object=$am__obj \
26218 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26219 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26220 >/dev/null 2>conftest.err &&
26221 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26222 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26223 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26224 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26225 # icc doesn't choke on unknown options, it will just issue warnings
26226 # or remarks (even with -Werror). So we grep stderr for any message
26227 # that says an option was ignored or not supported.
26228 # When given -MP, icc 7.0 and 7.1 complain thusly:
26229 # icc: Command line warning: ignoring option '-M'; no argument required
26230 # The diagnosis changed in icc 8.0:
26231 # icc: Command line remark: option '-MP' not supported
26232 if (grep 'ignoring option' conftest.err ||
26233 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26234 am_cv_CXX_dependencies_compiler_type=$depmode
26235 break
26236 fi
26237 fi
26238 done
26239
26240 cd ..
26241 rm -rf conftest.dir
26242else
26243 am_cv_CXX_dependencies_compiler_type=none
26244fi
26245
26246fi
26247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26248$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26249CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26250
26251 if
26252 test "x$enable_dependency_tracking" != xno \
26253 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26254 am__fastdepCXX_TRUE=
26255 am__fastdepCXX_FALSE='#'
26256else
26257 am__fastdepCXX_TRUE='#'
26258 am__fastdepCXX_FALSE=
26259fi
26260
26261
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26263$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026264if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026265 $as_echo_n "(cached) " >&6
26266else
26267
26268 ac_ext=cpp
26269ac_cpp='$CXXCPP $CPPFLAGS'
26270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26273
26274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26275/* end confdefs.h. */
26276
26277int f(int x){return 1;}
26278int f(char x){return 1;}
26279int f(bool x){return 1;}
26280
26281int
26282main ()
26283{
26284bool b = true; return f(b);
26285 ;
26286 return 0;
26287}
26288_ACEOF
26289if ac_fn_cxx_try_compile "$LINENO"; then :
26290 ax_cv_cxx_bool=yes
26291else
26292 ax_cv_cxx_bool=no
26293fi
26294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26295 ac_ext=cpp
26296ac_cpp='$CXXCPP $CPPFLAGS'
26297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26300
26301
26302fi
26303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26304$as_echo "$ax_cv_cxx_bool" >&6; }
26305if test "$ax_cv_cxx_bool" = yes; then
26306
26307$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26308
26309fi
26310
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26312$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026313if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026314 $as_echo_n "(cached) " >&6
26315else
cristy17491be2014-06-24 01:10:53 +000026316 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026317ac_cpp='$CXXCPP $CPPFLAGS'
26318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26321
26322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26323/* end confdefs.h. */
26324namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000026325 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000026326_ACEOF
26327if ac_fn_cxx_try_compile "$LINENO"; then :
26328 ax_cv_cxx_namespaces=yes
26329else
26330 ax_cv_cxx_namespaces=no
26331fi
26332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26333 ac_ext=cpp
26334ac_cpp='$CXXCPP $CPPFLAGS'
26335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26338
26339
26340fi
26341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26342$as_echo "$ax_cv_cxx_namespaces" >&6; }
26343if test "$ax_cv_cxx_namespaces" = yes; then
26344
26345$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26346
26347fi
26348
26349
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26351$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026352if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026353 $as_echo_n "(cached) " >&6
26354else
26355
26356 ac_ext=cpp
26357ac_cpp='$CXXCPP $CPPFLAGS'
26358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26361
26362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26363/* end confdefs.h. */
26364#include <iostream>
26365 std::istream& is = std::cin;
26366int
26367main ()
26368{
26369
26370 ;
26371 return 0;
26372}
26373_ACEOF
26374if ac_fn_cxx_try_compile "$LINENO"; then :
26375 ax_cv_cxx_have_std_namespace=yes
26376else
26377 ax_cv_cxx_have_std_namespace=no
26378fi
26379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26380 ac_ext=cpp
26381ac_cpp='$CXXCPP $CPPFLAGS'
26382ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26383ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26384ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26385
26386
26387fi
26388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26389$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26390 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26391
26392$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26393
26394 fi
26395
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26397$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026398if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026399 $as_echo_n "(cached) " >&6
26400else
26401
26402
26403 ac_ext=cpp
26404ac_cpp='$CXXCPP $CPPFLAGS'
26405ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26406ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26407ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26408
26409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26410/* end confdefs.h. */
26411#include <iostream>
26412#include <map>
26413#include <iomanip>
26414#include <cmath>
26415#ifdef HAVE_NAMESPACES
26416using namespace std;
26417#endif
26418int
26419main ()
26420{
26421return 0;
26422 ;
26423 return 0;
26424}
26425_ACEOF
26426if ac_fn_cxx_try_compile "$LINENO"; then :
26427 ac_cv_cxx_have_std_libs=yes
26428else
26429 ac_cv_cxx_have_std_libs=no
26430fi
26431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26432 ac_ext=cpp
26433ac_cpp='$CXXCPP $CPPFLAGS'
26434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26437
26438
26439fi
26440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26441$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26442if test "$ac_cv_cxx_have_std_libs" = yes; then
26443
26444$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26445
26446fi
26447
cristy3ed852e2009-09-05 21:47:34 +000026448
26449 OPENMP_CXXFLAGS=
26450 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026451if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026452 enableval=$enable_openmp;
26453fi
26454
26455 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26457$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026458if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026459 $as_echo_n "(cached) " >&6
26460else
cristy8b350f62009-11-15 23:12:43 +000026461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26462/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026463
26464#ifndef _OPENMP
26465 choke me
26466#endif
26467#include <omp.h>
26468int main () { return omp_get_num_threads (); }
26469
26470_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026471if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026472 ac_cv_prog_cxx_openmp='none needed'
26473else
cristy8b350f62009-11-15 23:12:43 +000026474 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026475 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26476 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026477 ac_save_CXXFLAGS=$CXXFLAGS
26478 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26480/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026481
26482#ifndef _OPENMP
26483 choke me
26484#endif
26485#include <omp.h>
26486int main () { return omp_get_num_threads (); }
26487
26488_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026489if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026490 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026491fi
cristy8b350f62009-11-15 23:12:43 +000026492rm -f core conftest.err conftest.$ac_objext \
26493 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026494 CXXFLAGS=$ac_save_CXXFLAGS
26495 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26496 break
26497 fi
26498 done
26499fi
cristy8b350f62009-11-15 23:12:43 +000026500rm -f core conftest.err conftest.$ac_objext \
26501 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026502fi
cristy8b350f62009-11-15 23:12:43 +000026503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026504$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26505 case $ac_cv_prog_cxx_openmp in #(
26506 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026507 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026508 *)
cristy8b350f62009-11-15 23:12:43 +000026509 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026510 esac
26511 fi
26512
26513
26514 ac_ext=c
26515ac_cpp='$CPP $CPPFLAGS'
26516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26518ac_compiler_gnu=$ac_cv_c_compiler_gnu
26519
26520
cristy8b350f62009-11-15 23:12:43 +000026521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026522$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26523 if \
cristy964cb7f2010-04-25 23:18:00 +000026524 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026525 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026526 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026527 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026528 have_magick_plus_plus='yes'
26529 else
26530 have_magick_plus_plus='no (failed tests)'
26531 fi
cristyad38abe2012-12-23 23:03:21 +000026532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26533$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026534 LIBS="$OLIBS"
26535fi
cristy73bd4a52010-10-05 11:24:23 +000026536 if test "$have_magick_plus_plus" = 'yes'; then
26537 WITH_MAGICK_PLUS_PLUS_TRUE=
26538 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26539else
26540 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26541 WITH_MAGICK_PLUS_PLUS_FALSE=
26542fi
26543
cristy3ed852e2009-09-05 21:47:34 +000026544
26545# Only check for delegate libraries in subdirectories if requested.
26546if test "$enable_delegate_build" != 'no'; then
26547 # Check for delegate sub-directories and add -I & -L options as required.
26548 # This presumes that delegates are installed as detailed in the ImageMagick
26549 # README. If delegates are installed in a standard location where the
26550 # compiler will automatically find them then these options should not be
26551 # required.
26552
26553 #
26554 # Most delegates have includes in the same directory as the library, but not all...
26555 #
26556 # Includes
cristy834307f2015-01-25 00:43:41 +000026557 for dir in bzlib fftw fpx gslib/src jp2 jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026558 if test -d "$builddir/$dir"; then
26559 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26560 else
26561 if test -d "$srcdirfull/$dir"; then
26562 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26563 fi
26564 fi
26565 done
26566
26567 # Libraries
cristy834307f2015-01-25 00:43:41 +000026568 for dir in bzlib fftw fpx gslib/src jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026569 if test -d "$builddir/$dir/.libs"; then
26570 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26571 else
26572 if test -d "$srcdirfull/$dir/.libs"; then
26573 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26574 fi
26575 fi
26576 if test -d "$builddir/$dir"; then
26577 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26578 else
26579 if test -d "$srcdirfull/$dir"; then
26580 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26581 fi
26582 fi
26583 done
26584fi
26585
26586# Assume that delegate headers reside under same directory as ImageMagick
26587# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026588MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026589
26590#
26591# Find the X11 RGB database
26592#
cristy8b350f62009-11-15 23:12:43 +000026593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026594$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026595if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026596 $as_echo_n "(cached) " >&6
26597else
26598 # Look for the header file in a standard set of common directories.
26599# Check X11 before X11Rn because it is often a symlink to the current release.
26600 for ac_dir in \
26601 /lib/usr/lib/X11 \
26602 /usr/X11/lib \
26603 /usr/X11R4/lib \
26604 /usr/X11R5/lib \
26605 /usr/X11R6/lib \
26606 /usr/X11R7/lib \
26607 /usr/X386/lib \
26608 /usr/XFree86/lib/X11 \
26609 /usr/athena/lib \
26610 /usr/lib \
26611 /usr/lib/X11 \
26612 /usr/lib/X11R4 \
26613 /usr/lib/X11R5 \
26614 /usr/lib/X11R6 \
26615 /usr/lib/X11R7 \
26616 /usr/local/X11/lib \
26617 /usr/local/X11R4/lib \
26618 /usr/local/X11R5/lib \
26619 /usr/local/X11R6/lib \
26620 /usr/local/lib \
26621 /usr/local/lib/X11 \
26622 /usr/local/lib/X11R4 \
26623 /usr/local/lib/X11R5 \
26624 /usr/local/lib/X11R6 \
26625 /usr/local/lib/X11R7 \
26626 /usr/local/x11r5/lib \
26627 /usr/lpp/Xamples/lib \
26628 /usr/openwin/lib \
26629 /usr/openwin/share/lib \
26630 /usr/unsupported/lib \
26631 /usr/x386/lib \
26632 ; do
26633 if test -f "$ac_dir/X11/rgb.txt"; then
26634 im_cv_x_configure="$ac_dir/X11/"
26635 break
26636 elif test -f "$ac_dir/rgb.txt"; then
26637 im_cv_x_configure="$ac_dir/"
26638 break
26639 fi
26640
26641 done
26642fi
cristy8b350f62009-11-15 23:12:43 +000026643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026644$as_echo "$im_cv_x_configure" >&6; }
26645X11_CONFIGURE_PATH="$im_cv_x_configure"
26646case "${build_os}" in
26647 mingw* )
26648 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26649 ;;
26650esac
26651
26652cat >>confdefs.h <<_ACEOF
26653#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26654_ACEOF
26655
26656
26657#
26658# Find OpenMP library
26659#
26660GOMP_LIBS=''
26661if test "$enable_openmp" != 'no'; then
26662 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026663 # Open64 (passes for GCC but uses different OpenMP implementation)
26664 if test "x$GOMP_LIBS" = x ; then
26665 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26667$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26668if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26669 $as_echo_n "(cached) " >&6
26670else
26671 ac_check_lib_save_LIBS=$LIBS
26672LIBS="-lopenmp $LIBS"
26673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26674/* end confdefs.h. */
26675
26676/* Override any GCC internal prototype to avoid an error.
26677 Use char because int might match the return type of a GCC
26678 builtin and then its argument prototype would still apply. */
26679#ifdef __cplusplus
26680extern "C"
26681#endif
26682char omp_get_num_procs ();
26683int
26684main ()
26685{
26686return omp_get_num_procs ();
26687 ;
26688 return 0;
26689}
26690_ACEOF
26691if ac_fn_c_try_link "$LINENO"; then :
26692 ac_cv_lib_openmp_omp_get_num_procs=yes
26693else
26694 ac_cv_lib_openmp_omp_get_num_procs=no
26695fi
26696rm -f core conftest.err conftest.$ac_objext \
26697 conftest$ac_exeext conftest.$ac_ext
26698LIBS=$ac_check_lib_save_LIBS
26699fi
26700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26701$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26702if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26703 GOMP_LIBS="-lopenmp"
26704fi
26705
26706 fi
26707 fi
26708 # GCC
26709 if test "x$GOMP_LIBS" = x ; then
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026711$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026712if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026713 $as_echo_n "(cached) " >&6
26714else
26715 ac_check_lib_save_LIBS=$LIBS
26716LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026718/* end confdefs.h. */
26719
26720/* Override any GCC internal prototype to avoid an error.
26721 Use char because int might match the return type of a GCC
26722 builtin and then its argument prototype would still apply. */
26723#ifdef __cplusplus
26724extern "C"
26725#endif
26726char GOMP_parallel_start ();
26727int
26728main ()
26729{
26730return GOMP_parallel_start ();
26731 ;
26732 return 0;
26733}
26734_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026735if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026736 ac_cv_lib_gomp_GOMP_parallel_start=yes
26737else
cristy8b350f62009-11-15 23:12:43 +000026738 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026739fi
cristy8b350f62009-11-15 23:12:43 +000026740rm -f core conftest.err conftest.$ac_objext \
26741 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026742LIBS=$ac_check_lib_save_LIBS
26743fi
cristy8b350f62009-11-15 23:12:43 +000026744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026745$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026746if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026747 GOMP_LIBS="-lgomp"
26748fi
cristy18307f12011-12-30 01:20:16 +000026749
26750 fi
cristy3ed852e2009-09-05 21:47:34 +000026751 else
cristy18307f12011-12-30 01:20:16 +000026752 # Sun CC
26753 if test "x$GOMP_LIBS" = x ; then
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026755$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026756if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026757 $as_echo_n "(cached) " >&6
26758else
26759 ac_check_lib_save_LIBS=$LIBS
26760LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026762/* end confdefs.h. */
26763
26764/* Override any GCC internal prototype to avoid an error.
26765 Use char because int might match the return type of a GCC
26766 builtin and then its argument prototype would still apply. */
26767#ifdef __cplusplus
26768extern "C"
26769#endif
26770char sunw_mp_register_warn ();
26771int
26772main ()
26773{
26774return sunw_mp_register_warn ();
26775 ;
26776 return 0;
26777}
26778_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026779if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026780 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26781else
cristy8b350f62009-11-15 23:12:43 +000026782 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026783fi
cristy8b350f62009-11-15 23:12:43 +000026784rm -f core conftest.err conftest.$ac_objext \
26785 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026786LIBS=$ac_check_lib_save_LIBS
26787fi
cristy8b350f62009-11-15 23:12:43 +000026788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026789$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026790if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026791 GOMP_LIBS="-lmtsk"
26792fi
cristy18307f12011-12-30 01:20:16 +000026793
26794 fi
26795 # AIX xlc
26796 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026798$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026799if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026800 $as_echo_n "(cached) " >&6
26801else
26802 ac_check_lib_save_LIBS=$LIBS
26803LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026805/* end confdefs.h. */
26806
26807/* Override any GCC internal prototype to avoid an error.
26808 Use char because int might match the return type of a GCC
26809 builtin and then its argument prototype would still apply. */
26810#ifdef __cplusplus
26811extern "C"
26812#endif
26813char _xlsmpFlush ();
26814int
26815main ()
26816{
26817return _xlsmpFlush ();
26818 ;
26819 return 0;
26820}
26821_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026822if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026823 ac_cv_lib_xlsmp__xlsmpFlush=yes
26824else
cristy8b350f62009-11-15 23:12:43 +000026825 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026826fi
cristy8b350f62009-11-15 23:12:43 +000026827rm -f core conftest.err conftest.$ac_objext \
26828 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026829LIBS=$ac_check_lib_save_LIBS
26830fi
cristy8b350f62009-11-15 23:12:43 +000026831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026832$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026833if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026834 GOMP_LIBS="-lxlsmp"
26835fi
cristy18307f12011-12-30 01:20:16 +000026836
26837 fi
26838 # SGI IRIX 6.5 MIPSpro C/C++
26839 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026841$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026842if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026843 $as_echo_n "(cached) " >&6
26844else
26845 ac_check_lib_save_LIBS=$LIBS
26846LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026848/* end confdefs.h. */
26849
26850/* Override any GCC internal prototype to avoid an error.
26851 Use char because int might match the return type of a GCC
26852 builtin and then its argument prototype would still apply. */
26853#ifdef __cplusplus
26854extern "C"
26855#endif
26856char mp_destroy ();
26857int
26858main ()
26859{
26860return mp_destroy ();
26861 ;
26862 return 0;
26863}
26864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026865if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026866 ac_cv_lib_mp_mp_destroy=yes
26867else
cristy8b350f62009-11-15 23:12:43 +000026868 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026869fi
cristy8b350f62009-11-15 23:12:43 +000026870rm -f core conftest.err conftest.$ac_objext \
26871 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026872LIBS=$ac_check_lib_save_LIBS
26873fi
cristy8b350f62009-11-15 23:12:43 +000026874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026875$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026876if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026877 GOMP_LIBS="-lmp"
26878fi
cristy18307f12011-12-30 01:20:16 +000026879
26880 fi
cristy3ed852e2009-09-05 21:47:34 +000026881 fi
26882 LIBS="$GOMP_LIBS $LIBS"
26883fi
26884
26885
cristy12ac8192014-11-04 13:59:13 +000026886#
cristy3b0097d2014-11-04 15:34:47 +000026887# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000026888#
cristy3b0097d2014-11-04 15:34:47 +000026889have_jemalloc='no'
26890JEMALLOC_LIBS=''
26891if test "$with_jemalloc" != 'no'; then
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
26893$as_echo_n "checking for JEMALLOC support ... " >&6; }
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26895$as_echo "" >&6; }
26896 failed=0
26897 passed=0
26898 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
26899if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026900 passed=`expr $passed + 1`
26901else
26902 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026903fi
26904
26905
cristy3b0097d2014-11-04 15:34:47 +000026906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
26907$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
26908if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000026909 $as_echo_n "(cached) " >&6
26910else
26911 ac_check_lib_save_LIBS=$LIBS
26912LIBS="-ljemalloc $LIBS"
26913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26914/* end confdefs.h. */
26915
26916/* Override any GCC internal prototype to avoid an error.
26917 Use char because int might match the return type of a GCC
26918 builtin and then its argument prototype would still apply. */
26919#ifdef __cplusplus
26920extern "C"
26921#endif
cristy3b0097d2014-11-04 15:34:47 +000026922char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026923int
26924main ()
26925{
cristy3b0097d2014-11-04 15:34:47 +000026926return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026927 ;
26928 return 0;
26929}
26930_ACEOF
26931if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000026932 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000026933else
cristy3b0097d2014-11-04 15:34:47 +000026934 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000026935fi
26936rm -f core conftest.err conftest.$ac_objext \
26937 conftest$ac_exeext conftest.$ac_ext
26938LIBS=$ac_check_lib_save_LIBS
26939fi
cristy3b0097d2014-11-04 15:34:47 +000026940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
26941$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
26942if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026943 passed=`expr $passed + 1`
26944else
26945 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026946fi
26947
cristy3b0097d2014-11-04 15:34:47 +000026948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
26949$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
26950 if test $passed -gt 0; then
26951 if test $failed -gt 0; then
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26953$as_echo "no -- some components failed test" >&6; }
26954 have_jemalloc='no (failed tests)'
26955 else
26956 JEMALLOC_LIBS='-ljemalloc'
26957 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000026958
cristy3b0097d2014-11-04 15:34:47 +000026959$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000026960
cristy3b0097d2014-11-04 15:34:47 +000026961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26962$as_echo "yes" >&6; }
26963 have_jemalloc='yes'
26964 fi
cristy12ac8192014-11-04 13:59:13 +000026965 else
cristy3b0097d2014-11-04 15:34:47 +000026966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26967$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000026968 fi
26969fi
cristy3b0097d2014-11-04 15:34:47 +000026970 if test "$have_jemalloc" = 'yes'; then
26971 HasJEMALLOC_TRUE=
26972 HasJEMALLOC_FALSE='#'
26973else
26974 HasJEMALLOC_TRUE='#'
26975 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000026976fi
26977
cristy3b0097d2014-11-04 15:34:47 +000026978
26979
cristy3ed852e2009-09-05 21:47:34 +000026980#
26981# Check for umem.
26982#
26983have_umem='no'
26984UMEM_LIBS=''
26985if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026987$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26989$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026990 failed=0
26991 passed=0
cristy8b350f62009-11-15 23:12:43 +000026992 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026993if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026994 passed=`expr $passed + 1`
26995else
26996 failed=`expr $failed + 1`
26997fi
26998
26999
cristy8b350f62009-11-15 23:12:43 +000027000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027001$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027002if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027003 $as_echo_n "(cached) " >&6
27004else
27005 ac_check_lib_save_LIBS=$LIBS
27006LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027008/* end confdefs.h. */
27009
27010/* Override any GCC internal prototype to avoid an error.
27011 Use char because int might match the return type of a GCC
27012 builtin and then its argument prototype would still apply. */
27013#ifdef __cplusplus
27014extern "C"
27015#endif
27016char umem_alloc ();
27017int
27018main ()
27019{
27020return umem_alloc ();
27021 ;
27022 return 0;
27023}
27024_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027025if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027026 ac_cv_lib_umem_umem_alloc=yes
27027else
cristy8b350f62009-11-15 23:12:43 +000027028 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027029fi
cristy8b350f62009-11-15 23:12:43 +000027030rm -f core conftest.err conftest.$ac_objext \
27031 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027032LIBS=$ac_check_lib_save_LIBS
27033fi
cristy8b350f62009-11-15 23:12:43 +000027034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027035$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027036if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027037 passed=`expr $passed + 1`
27038else
27039 failed=`expr $failed + 1`
27040fi
27041
cristy8b350f62009-11-15 23:12:43 +000027042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027043$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027044if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027045 $as_echo_n "(cached) " >&6
27046else
27047 ac_check_lib_save_LIBS=$LIBS
27048LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027050/* end confdefs.h. */
27051
27052/* Override any GCC internal prototype to avoid an error.
27053 Use char because int might match the return type of a GCC
27054 builtin and then its argument prototype would still apply. */
27055#ifdef __cplusplus
27056extern "C"
27057#endif
27058char umem_free ();
27059int
27060main ()
27061{
27062return umem_free ();
27063 ;
27064 return 0;
27065}
27066_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027067if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027068 ac_cv_lib_umem_umem_free=yes
27069else
cristy8b350f62009-11-15 23:12:43 +000027070 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027071fi
cristy8b350f62009-11-15 23:12:43 +000027072rm -f core conftest.err conftest.$ac_objext \
27073 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027074LIBS=$ac_check_lib_save_LIBS
27075fi
cristy8b350f62009-11-15 23:12:43 +000027076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027077$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027078if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027079 passed=`expr $passed + 1`
27080else
27081 failed=`expr $failed + 1`
27082fi
27083
cristy8b350f62009-11-15 23:12:43 +000027084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027085$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27086 if test $passed -gt 0; then
27087 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27089$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027090 have_umem='no (failed tests)'
27091 else
27092 UMEM_LIBS='-lumem'
27093 LIBS="$UMEM_LIBS $LIBS"
27094
cristy8b350f62009-11-15 23:12:43 +000027095$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027096
cristyad38abe2012-12-23 23:03:21 +000027097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27098$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027099 have_umem='yes'
27100 fi
27101 else
cristyad38abe2012-12-23 23:03:21 +000027102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27103$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027104 fi
27105fi
cristy73bd4a52010-10-05 11:24:23 +000027106 if test "$have_umem" = 'yes'; then
27107 HasUMEM_TRUE=
27108 HasUMEM_FALSE='#'
27109else
27110 HasUMEM_TRUE='#'
27111 HasUMEM_FALSE=
27112fi
27113
cristy3ed852e2009-09-05 21:47:34 +000027114
27115
27116#
27117# Add support for ccmalloc memory debugging library if requested
27118#
27119have_ccmalloc='no'
27120CCMALLOC_LIBS=''
27121if test "$enable_ccmalloc" = 'yes'; then
27122 # Extract the first word of "ccmalloc", so it can be a program name with args.
27123set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027125$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027126if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027127 $as_echo_n "(cached) " >&6
27128else
27129 case $CCMALLOCDelegate in
27130 [\\/]* | ?:[\\/]*)
27131 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27132 ;;
27133 *)
27134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27135for as_dir in $PATH
27136do
27137 IFS=$as_save_IFS
27138 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027139 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027141 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027143 break 2
27144 fi
27145done
cristy8b350f62009-11-15 23:12:43 +000027146 done
cristy3ed852e2009-09-05 21:47:34 +000027147IFS=$as_save_IFS
27148
27149 ;;
27150esac
27151fi
27152CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27153if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027155$as_echo "$CCMALLOCDelegate" >&6; }
27156else
cristy8b350f62009-11-15 23:12:43 +000027157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027158$as_echo "no" >&6; }
27159fi
27160
27161
27162 if test -n "$CCMALLOCDelegate"; then
27163 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27164 OLIBS="$LIBS"
27165 # Assume that gcc is used with ccmalloc.
27166 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027168$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027169if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027170 $as_echo_n "(cached) " >&6
27171else
27172 ac_check_lib_save_LIBS=$LIBS
27173LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027175/* end confdefs.h. */
27176
27177/* Override any GCC internal prototype to avoid an error.
27178 Use char because int might match the return type of a GCC
27179 builtin and then its argument prototype would still apply. */
27180#ifdef __cplusplus
27181extern "C"
27182#endif
27183char ccmalloc_malloc ();
27184int
27185main ()
27186{
27187return ccmalloc_malloc ();
27188 ;
27189 return 0;
27190}
27191_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027192if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027193 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27194else
cristy8b350f62009-11-15 23:12:43 +000027195 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027196fi
cristy8b350f62009-11-15 23:12:43 +000027197rm -f core conftest.err conftest.$ac_objext \
27198 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027199LIBS=$ac_check_lib_save_LIBS
27200fi
cristy8b350f62009-11-15 23:12:43 +000027201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027202$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027203if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027204 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27205fi
27206
27207 if test -n "$CCMALLOC_LIBS"; then
27208 LIBS="$OLIBS"
27209 LIBS="$LIBS $CCMALLOC_LIBS"
27210 have_ccmalloc='yes'
27211 else
27212 LIBS="$OLIBS"
27213 fi
27214 fi
27215fi
27216
27217#
cristy944e51f2013-04-16 18:45:02 +000027218# Add support for 'huge pages' if requested
27219#
27220if test "x$enable_hugepages" != "xno"; then :
27221
27222
27223$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
27224
27225
27226fi
27227
27228#
cristy3ed852e2009-09-05 21:47:34 +000027229# Add support for efence memory debugging library if requested
27230#
27231if test "$enable_efence" = 'yes'; then
27232 EFENCE_LIBS='-lefence'
27233 LIBS="$EFENCE_LIBS $LIBS"
27234fi
27235
cristy3ed852e2009-09-05 21:47:34 +000027236
27237#
27238# Check for BZLIB
27239#
27240
27241
27242# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027243if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027244 withval=$with_bzlib; with_bzlib=$withval
27245else
27246 with_bzlib='yes'
27247fi
27248
27249
27250if test "$with_bzlib" != 'yes'; then
27251 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27252fi
27253
27254have_bzlib='no'
27255if test "$with_bzlib" != 'no'; then
27256 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000027257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27258$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027260$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27262$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027263 failed=0
27264 passed=0
27265 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027266 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027267if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027268 passed=`expr $passed + 1`
27269else
27270 failed=`expr $failed + 1`
27271fi
27272
27273
cristy8b350f62009-11-15 23:12:43 +000027274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027275$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027276if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027277 $as_echo_n "(cached) " >&6
27278else
27279 ac_check_lib_save_LIBS=$LIBS
27280LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027282/* end confdefs.h. */
27283
27284/* Override any GCC internal prototype to avoid an error.
27285 Use char because int might match the return type of a GCC
27286 builtin and then its argument prototype would still apply. */
27287#ifdef __cplusplus
27288extern "C"
27289#endif
27290char BZ2_bzDecompress ();
27291int
27292main ()
27293{
27294return BZ2_bzDecompress ();
27295 ;
27296 return 0;
27297}
27298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027299if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027300 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27301else
cristy8b350f62009-11-15 23:12:43 +000027302 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027303fi
cristy8b350f62009-11-15 23:12:43 +000027304rm -f core conftest.err conftest.$ac_objext \
27305 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027306LIBS=$ac_check_lib_save_LIBS
27307fi
cristy8b350f62009-11-15 23:12:43 +000027308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027309$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027310if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027311 found_libbz=`expr $found_libbz + 1`
27312fi
27313
27314 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027316$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027317if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027318 $as_echo_n "(cached) " >&6
27319else
27320 ac_check_lib_save_LIBS=$LIBS
27321LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027323/* end confdefs.h. */
27324
27325/* Override any GCC internal prototype to avoid an error.
27326 Use char because int might match the return type of a GCC
27327 builtin and then its argument prototype would still apply. */
27328#ifdef __cplusplus
27329extern "C"
27330#endif
27331char _imp__BZ2_decompress ();
27332int
27333main ()
27334{
27335return _imp__BZ2_decompress ();
27336 ;
27337 return 0;
27338}
27339_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027340if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027341 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27342else
cristy8b350f62009-11-15 23:12:43 +000027343 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027344fi
cristy8b350f62009-11-15 23:12:43 +000027345rm -f core conftest.err conftest.$ac_objext \
27346 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027347LIBS=$ac_check_lib_save_LIBS
27348fi
cristy8b350f62009-11-15 23:12:43 +000027349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027350$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027351if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027352 found_libbz=`expr $found_libbz + 1`
27353fi
27354
27355 fi
27356 if test $found_libbz -gt 0; then
27357 passed=`expr $passed + 1`
27358 else
27359 failed=`expr $failed + 1`
27360 fi
cristy8b350f62009-11-15 23:12:43 +000027361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027362$as_echo_n "checking if BZLIB package is complete... " >&6; }
27363 if test $passed -gt 0; then
27364 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27366$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027367 have_bzlib='no (failed tests)'
27368 else
27369 BZLIB_LIBS='-lbz2'
27370 LIBS="$BZLIB_LIBS $LIBS"
27371
cristy8b350f62009-11-15 23:12:43 +000027372$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027373
cristyad38abe2012-12-23 23:03:21 +000027374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27375$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027376 have_bzlib='yes'
27377 fi
27378 else
cristyad38abe2012-12-23 23:03:21 +000027379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27380$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027381 fi
27382fi
cristy73bd4a52010-10-05 11:24:23 +000027383 if test "$have_bzlib" = 'yes'; then
27384 BZLIB_DELEGATE_TRUE=
27385 BZLIB_DELEGATE_FALSE='#'
27386else
27387 BZLIB_DELEGATE_TRUE='#'
27388 BZLIB_DELEGATE_FALSE=
27389fi
27390
cristy3ed852e2009-09-05 21:47:34 +000027391
27392
27393#
27394# Find the X11 include and library directories.
27395#
27396IPC_LIBS=''
27397X11_LIBS=''
27398XEXT_LIBS=''
27399XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027401$as_echo_n "checking for X... " >&6; }
27402
27403
27404# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027405if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027406 withval=$with_x;
27407fi
27408
27409# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27410if test "x$with_x" = xno; then
27411 # The user explicitly disabled X.
27412 have_x=disabled
27413else
27414 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027415 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027416 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027417 $as_echo_n "(cached) " >&6
27418else
27419 # One or both of the vars are not set, and there is no cached value.
27420ac_x_includes=no ac_x_libraries=no
27421rm -f -r conftest.dir
27422if mkdir conftest.dir; then
27423 cd conftest.dir
27424 cat >Imakefile <<'_ACEOF'
27425incroot:
27426 @echo incroot='${INCROOT}'
27427usrlibdir:
27428 @echo usrlibdir='${USRLIBDIR}'
27429libdir:
27430 @echo libdir='${LIBDIR}'
27431_ACEOF
27432 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027433 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027434 for ac_var in incroot usrlibdir libdir; do
27435 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27436 done
27437 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27438 for ac_extension in a so sl dylib la dll; do
27439 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27440 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27441 ac_im_usrlibdir=$ac_im_libdir; break
27442 fi
27443 done
27444 # Screen out bogus values from the imake configuration. They are
27445 # bogus both because they are the default anyway, and because
27446 # using them would break gcc on systems where it needs fixed includes.
27447 case $ac_im_incroot in
27448 /usr/include) ac_x_includes= ;;
27449 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27450 esac
27451 case $ac_im_usrlibdir in
27452 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27453 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27454 esac
27455 fi
27456 cd ..
27457 rm -f -r conftest.dir
27458fi
27459
27460# Standard set of common directories for X headers.
27461# Check X11 before X11Rn because it is often a symlink to the current release.
27462ac_x_header_dirs='
27463/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027464/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027465/usr/X11R6/include
27466/usr/X11R5/include
27467/usr/X11R4/include
27468
27469/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027470/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027471/usr/include/X11R6
27472/usr/include/X11R5
27473/usr/include/X11R4
27474
27475/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027476/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027477/usr/local/X11R6/include
27478/usr/local/X11R5/include
27479/usr/local/X11R4/include
27480
27481/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027482/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027483/usr/local/include/X11R6
27484/usr/local/include/X11R5
27485/usr/local/include/X11R4
27486
27487/usr/X386/include
27488/usr/x386/include
27489/usr/XFree86/include/X11
27490
27491/usr/include
27492/usr/local/include
27493/usr/unsupported/include
27494/usr/athena/include
27495/usr/local/x11r5/include
27496/usr/lpp/Xamples/include
27497
27498/usr/openwin/include
27499/usr/openwin/share/include'
27500
27501if test "$ac_x_includes" = no; then
27502 # Guess where to find include files, by looking for Xlib.h.
27503 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027505/* end confdefs.h. */
27506#include <X11/Xlib.h>
27507_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027508if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027509 # We can compile using X headers with no special include directory.
27510ac_x_includes=
27511else
cristyc7083c12009-10-14 03:16:55 +000027512 for ac_dir in $ac_x_header_dirs; do
27513 if test -r "$ac_dir/X11/Xlib.h"; then
27514 ac_x_includes=$ac_dir
27515 break
27516 fi
27517done
27518fi
cristyda16f162011-02-19 23:52:17 +000027519rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027520fi # $ac_x_includes = no
27521
27522if test "$ac_x_libraries" = no; then
27523 # Check for the libraries.
27524 # See if we find them without any special options.
27525 # Don't add to $LIBS permanently.
27526 ac_save_LIBS=$LIBS
27527 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027529/* end confdefs.h. */
27530#include <X11/Xlib.h>
27531int
27532main ()
27533{
27534XrmInitialize ()
27535 ;
27536 return 0;
27537}
27538_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027539if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027540 LIBS=$ac_save_LIBS
27541# We can link X programs with no special library path.
27542ac_x_libraries=
27543else
cristy8b350f62009-11-15 23:12:43 +000027544 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027545for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27546do
27547 # Don't even attempt the hair of trying to link an X program!
27548 for ac_extension in a so sl dylib la dll; do
27549 if test -r "$ac_dir/libX11.$ac_extension"; then
27550 ac_x_libraries=$ac_dir
27551 break 2
27552 fi
27553 done
27554done
27555fi
cristy8b350f62009-11-15 23:12:43 +000027556rm -f core conftest.err conftest.$ac_objext \
27557 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027558fi # $ac_x_libraries = no
27559
27560case $ac_x_includes,$ac_x_libraries in #(
27561 no,* | *,no | *\'*)
27562 # Didn't find X, or a directory has "'" in its name.
27563 ac_cv_have_x="have_x=no";; #(
27564 *)
27565 # Record where we found X for the cache.
27566 ac_cv_have_x="have_x=yes\
27567 ac_x_includes='$ac_x_includes'\
27568 ac_x_libraries='$ac_x_libraries'"
27569esac
27570fi
27571;; #(
27572 *) have_x=yes;;
27573 esac
27574 eval "$ac_cv_have_x"
27575fi # $with_x != no
27576
27577if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027579$as_echo "$have_x" >&6; }
27580 no_x=yes
27581else
27582 # If each of the values was on the command line, it overrides each guess.
27583 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27584 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27585 # Update the cache value to reflect the command line values.
27586 ac_cv_have_x="have_x=yes\
27587 ac_x_includes='$x_includes'\
27588 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027590$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27591fi
27592
cristy3ed852e2009-09-05 21:47:34 +000027593if test "$no_x" = yes; then
27594 # Not all programs may use this symbol, but it does not hurt to define it.
27595
cristy8b350f62009-11-15 23:12:43 +000027596$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027597
27598 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27599else
27600 if test -n "$x_includes"; then
27601 X_CFLAGS="$X_CFLAGS -I$x_includes"
27602 fi
27603
27604 # It would also be nice to do this for all -L options, not just this one.
27605 if test -n "$x_libraries"; then
27606 X_LIBS="$X_LIBS -L$x_libraries"
27607 # For Solaris; some versions of Sun CC require a space after -R and
27608 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027610$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27611 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27612 ac_xsave_c_werror_flag=$ac_c_werror_flag
27613 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027615/* end confdefs.h. */
27616
27617int
27618main ()
27619{
27620
27621 ;
27622 return 0;
27623}
27624_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027625if ac_fn_c_try_link "$LINENO"; then :
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027627$as_echo "no" >&6; }
27628 X_LIBS="$X_LIBS -R$x_libraries"
27629else
cristy8b350f62009-11-15 23:12:43 +000027630 LIBS="$ac_xsave_LIBS -R $x_libraries"
27631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027632/* end confdefs.h. */
27633
27634int
27635main ()
27636{
27637
27638 ;
27639 return 0;
27640}
27641_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027642if ac_fn_c_try_link "$LINENO"; then :
27643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027644$as_echo "yes" >&6; }
27645 X_LIBS="$X_LIBS -R $x_libraries"
27646else
cristy8b350f62009-11-15 23:12:43 +000027647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027648$as_echo "neither works" >&6; }
27649fi
cristy8b350f62009-11-15 23:12:43 +000027650rm -f core conftest.err conftest.$ac_objext \
27651 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027652fi
cristy8b350f62009-11-15 23:12:43 +000027653rm -f core conftest.err conftest.$ac_objext \
27654 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027655 ac_c_werror_flag=$ac_xsave_c_werror_flag
27656 LIBS=$ac_xsave_LIBS
27657 fi
27658
27659 # Check for system-dependent libraries X programs must link with.
27660 # Do this before checking for the system-independent R6 libraries
27661 # (-lICE), since we may need -lsocket or whatever for X linking.
27662
27663 if test "$ISC" = yes; then
27664 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27665 else
27666 # Martyn Johnson says this is needed for Ultrix, if the X
27667 # libraries were built with DECnet support. And Karl Berry says
27668 # the Alpha needs dnet_stub (dnet does not exist).
27669 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027671/* end confdefs.h. */
27672
27673/* Override any GCC internal prototype to avoid an error.
27674 Use char because int might match the return type of a GCC
27675 builtin and then its argument prototype would still apply. */
27676#ifdef __cplusplus
27677extern "C"
27678#endif
27679char XOpenDisplay ();
27680int
27681main ()
27682{
27683return XOpenDisplay ();
27684 ;
27685 return 0;
27686}
27687_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027688if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027689
cristy8b350f62009-11-15 23:12:43 +000027690else
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027692$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027693if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027694 $as_echo_n "(cached) " >&6
27695else
27696 ac_check_lib_save_LIBS=$LIBS
27697LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027699/* end confdefs.h. */
27700
27701/* Override any GCC internal prototype to avoid an error.
27702 Use char because int might match the return type of a GCC
27703 builtin and then its argument prototype would still apply. */
27704#ifdef __cplusplus
27705extern "C"
27706#endif
27707char dnet_ntoa ();
27708int
27709main ()
27710{
27711return dnet_ntoa ();
27712 ;
27713 return 0;
27714}
27715_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027716if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027717 ac_cv_lib_dnet_dnet_ntoa=yes
27718else
cristy8b350f62009-11-15 23:12:43 +000027719 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027720fi
cristy8b350f62009-11-15 23:12:43 +000027721rm -f core conftest.err conftest.$ac_objext \
27722 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027723LIBS=$ac_check_lib_save_LIBS
27724fi
cristy8b350f62009-11-15 23:12:43 +000027725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027726$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027727if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027728 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27729fi
27730
27731 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027733$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027734if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027735 $as_echo_n "(cached) " >&6
27736else
27737 ac_check_lib_save_LIBS=$LIBS
27738LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027740/* end confdefs.h. */
27741
27742/* Override any GCC internal prototype to avoid an error.
27743 Use char because int might match the return type of a GCC
27744 builtin and then its argument prototype would still apply. */
27745#ifdef __cplusplus
27746extern "C"
27747#endif
27748char dnet_ntoa ();
27749int
27750main ()
27751{
27752return dnet_ntoa ();
27753 ;
27754 return 0;
27755}
27756_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027757if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027758 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27759else
cristy8b350f62009-11-15 23:12:43 +000027760 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027761fi
cristy8b350f62009-11-15 23:12:43 +000027762rm -f core conftest.err conftest.$ac_objext \
27763 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027764LIBS=$ac_check_lib_save_LIBS
27765fi
cristy8b350f62009-11-15 23:12:43 +000027766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027767$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027768if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027769 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27770fi
27771
27772 fi
27773fi
cristy8b350f62009-11-15 23:12:43 +000027774rm -f core conftest.err conftest.$ac_objext \
27775 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027776 LIBS="$ac_xsave_LIBS"
27777
27778 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27779 # to get the SysV transport functions.
27780 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27781 # needs -lnsl.
27782 # The nsl library prevents programs from opening the X display
27783 # on Irix 5.2, according to T.E. Dickey.
27784 # The functions gethostbyname, getservbyname, and inet_addr are
27785 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027786 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027787if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027788
cristy3ed852e2009-09-05 21:47:34 +000027789fi
27790
cristy3ed852e2009-09-05 21:47:34 +000027791 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027793$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027794if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027795 $as_echo_n "(cached) " >&6
27796else
27797 ac_check_lib_save_LIBS=$LIBS
27798LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027800/* end confdefs.h. */
27801
27802/* Override any GCC internal prototype to avoid an error.
27803 Use char because int might match the return type of a GCC
27804 builtin and then its argument prototype would still apply. */
27805#ifdef __cplusplus
27806extern "C"
27807#endif
27808char gethostbyname ();
27809int
27810main ()
27811{
27812return gethostbyname ();
27813 ;
27814 return 0;
27815}
27816_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027817if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027818 ac_cv_lib_nsl_gethostbyname=yes
27819else
cristy8b350f62009-11-15 23:12:43 +000027820 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027821fi
cristy8b350f62009-11-15 23:12:43 +000027822rm -f core conftest.err conftest.$ac_objext \
27823 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027824LIBS=$ac_check_lib_save_LIBS
27825fi
cristy8b350f62009-11-15 23:12:43 +000027826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027827$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027828if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027829 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27830fi
27831
27832 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027834$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027835if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027836 $as_echo_n "(cached) " >&6
27837else
27838 ac_check_lib_save_LIBS=$LIBS
27839LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027841/* end confdefs.h. */
27842
27843/* Override any GCC internal prototype to avoid an error.
27844 Use char because int might match the return type of a GCC
27845 builtin and then its argument prototype would still apply. */
27846#ifdef __cplusplus
27847extern "C"
27848#endif
27849char gethostbyname ();
27850int
27851main ()
27852{
27853return gethostbyname ();
27854 ;
27855 return 0;
27856}
27857_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027858if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027859 ac_cv_lib_bsd_gethostbyname=yes
27860else
cristy8b350f62009-11-15 23:12:43 +000027861 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027862fi
cristy8b350f62009-11-15 23:12:43 +000027863rm -f core conftest.err conftest.$ac_objext \
27864 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027865LIBS=$ac_check_lib_save_LIBS
27866fi
cristy8b350f62009-11-15 23:12:43 +000027867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027868$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027869if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027870 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27871fi
27872
27873 fi
27874 fi
27875
27876 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27877 # socket/setsockopt and other routines are undefined under SCO ODT
27878 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27879 # on later versions), says Simon Leinen: it contains gethostby*
27880 # variants that don't use the name server (or something). -lsocket
27881 # must be given before -lnsl if both are needed. We assume that
27882 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027883 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027884if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027885
cristy3ed852e2009-09-05 21:47:34 +000027886fi
27887
cristy3ed852e2009-09-05 21:47:34 +000027888 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027890$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027891if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027892 $as_echo_n "(cached) " >&6
27893else
27894 ac_check_lib_save_LIBS=$LIBS
27895LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027897/* end confdefs.h. */
27898
27899/* Override any GCC internal prototype to avoid an error.
27900 Use char because int might match the return type of a GCC
27901 builtin and then its argument prototype would still apply. */
27902#ifdef __cplusplus
27903extern "C"
27904#endif
27905char connect ();
27906int
27907main ()
27908{
27909return connect ();
27910 ;
27911 return 0;
27912}
27913_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027914if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027915 ac_cv_lib_socket_connect=yes
27916else
cristy8b350f62009-11-15 23:12:43 +000027917 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027918fi
cristy8b350f62009-11-15 23:12:43 +000027919rm -f core conftest.err conftest.$ac_objext \
27920 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027921LIBS=$ac_check_lib_save_LIBS
27922fi
cristy8b350f62009-11-15 23:12:43 +000027923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027924$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027925if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027926 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27927fi
27928
27929 fi
27930
27931 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027932 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027933if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027934
cristy3ed852e2009-09-05 21:47:34 +000027935fi
27936
cristy3ed852e2009-09-05 21:47:34 +000027937 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027939$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027940if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027941 $as_echo_n "(cached) " >&6
27942else
27943 ac_check_lib_save_LIBS=$LIBS
27944LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027946/* end confdefs.h. */
27947
27948/* Override any GCC internal prototype to avoid an error.
27949 Use char because int might match the return type of a GCC
27950 builtin and then its argument prototype would still apply. */
27951#ifdef __cplusplus
27952extern "C"
27953#endif
27954char remove ();
27955int
27956main ()
27957{
27958return remove ();
27959 ;
27960 return 0;
27961}
27962_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027963if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027964 ac_cv_lib_posix_remove=yes
27965else
cristy8b350f62009-11-15 23:12:43 +000027966 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027967fi
cristy8b350f62009-11-15 23:12:43 +000027968rm -f core conftest.err conftest.$ac_objext \
27969 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027970LIBS=$ac_check_lib_save_LIBS
27971fi
cristy8b350f62009-11-15 23:12:43 +000027972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027973$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027974if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027975 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27976fi
27977
27978 fi
27979
27980 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027981 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027982if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027983
cristy3ed852e2009-09-05 21:47:34 +000027984fi
27985
cristy3ed852e2009-09-05 21:47:34 +000027986 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027988$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027989if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027990 $as_echo_n "(cached) " >&6
27991else
27992 ac_check_lib_save_LIBS=$LIBS
27993LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027995/* end confdefs.h. */
27996
27997/* Override any GCC internal prototype to avoid an error.
27998 Use char because int might match the return type of a GCC
27999 builtin and then its argument prototype would still apply. */
28000#ifdef __cplusplus
28001extern "C"
28002#endif
28003char shmat ();
28004int
28005main ()
28006{
28007return shmat ();
28008 ;
28009 return 0;
28010}
28011_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028012if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028013 ac_cv_lib_ipc_shmat=yes
28014else
cristy8b350f62009-11-15 23:12:43 +000028015 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028016fi
cristy8b350f62009-11-15 23:12:43 +000028017rm -f core conftest.err conftest.$ac_objext \
28018 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028019LIBS=$ac_check_lib_save_LIBS
28020fi
cristy8b350f62009-11-15 23:12:43 +000028021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028022$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028023if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028024 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28025fi
28026
28027 fi
28028 fi
28029
28030 # Check for libraries that X11R6 Xt/Xaw programs need.
28031 ac_save_LDFLAGS=$LDFLAGS
28032 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28033 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28034 # check for ICE first), but we must link in the order -lSM -lICE or
28035 # we get undefined symbols. So assume we have SM if we have ICE.
28036 # These have to be linked with before -lX11, unlike the other
28037 # libraries we check for below, so use a different variable.
28038 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028040$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028041if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028042 $as_echo_n "(cached) " >&6
28043else
28044 ac_check_lib_save_LIBS=$LIBS
28045LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028047/* end confdefs.h. */
28048
28049/* Override any GCC internal prototype to avoid an error.
28050 Use char because int might match the return type of a GCC
28051 builtin and then its argument prototype would still apply. */
28052#ifdef __cplusplus
28053extern "C"
28054#endif
28055char IceConnectionNumber ();
28056int
28057main ()
28058{
28059return IceConnectionNumber ();
28060 ;
28061 return 0;
28062}
28063_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028064if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028065 ac_cv_lib_ICE_IceConnectionNumber=yes
28066else
cristy8b350f62009-11-15 23:12:43 +000028067 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028068fi
cristy8b350f62009-11-15 23:12:43 +000028069rm -f core conftest.err conftest.$ac_objext \
28070 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028071LIBS=$ac_check_lib_save_LIBS
28072fi
cristy8b350f62009-11-15 23:12:43 +000028073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028074$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028075if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028076 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28077fi
28078
28079 LDFLAGS=$ac_save_LDFLAGS
28080
28081fi
28082
28083if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000028084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28085$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028087$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28089$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028090 LDFLAGS="$LDFLAGS $X_LIBS"
28091 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28092 LIBS="$X11_LIBS $LIBS"
28093 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28094
28095
cristy8b350f62009-11-15 23:12:43 +000028096$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028097
28098 #
28099 # Check for X11 shared memory extension
28100 #
28101 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028102 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028103if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028104 have_shmctl='yes'
28105fi
28106
28107 if test "$have_shmctl" != 'yes'; then
28108 PERSIST_LIBS=$LIBS
28109 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028111/* end confdefs.h. */
28112
28113/* Override any GCC internal prototype to avoid an error.
28114 Use char because int might match the return type of a GCC
28115 builtin and then its argument prototype would still apply. */
28116#ifdef __cplusplus
28117extern "C"
28118#endif
28119char shmctl ();
28120int
28121main ()
28122{
28123return shmctl ();
28124 ;
28125 return 0;
28126}
28127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028128if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028129 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028130fi
cristy8b350f62009-11-15 23:12:43 +000028131rm -f core conftest.err conftest.$ac_objext \
28132 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028133 LIBS=$PERSIST_LIBS
28134 fi
28135
28136 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028138$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028139if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028140 $as_echo_n "(cached) " >&6
28141else
28142 ac_check_lib_save_LIBS=$LIBS
28143LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028145/* end confdefs.h. */
28146
28147/* Override any GCC internal prototype to avoid an error.
28148 Use char because int might match the return type of a GCC
28149 builtin and then its argument prototype would still apply. */
28150#ifdef __cplusplus
28151extern "C"
28152#endif
28153char XShmAttach ();
28154int
28155main ()
28156{
28157return XShmAttach ();
28158 ;
28159 return 0;
28160}
28161_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028162if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028163 ac_cv_lib_Xext_XShmAttach=yes
28164else
cristy8b350f62009-11-15 23:12:43 +000028165 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028166fi
cristy8b350f62009-11-15 23:12:43 +000028167rm -f core conftest.err conftest.$ac_objext \
28168 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028169LIBS=$ac_check_lib_save_LIBS
28170fi
cristy8b350f62009-11-15 23:12:43 +000028171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028172$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028173if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028174 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028175$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028176
28177fi
28178
28179 fi
28180
28181 #
28182 # Check for X11 shape extension
28183 #
cristy8b350f62009-11-15 23:12:43 +000028184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028185$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028186if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028187 $as_echo_n "(cached) " >&6
28188else
28189 ac_check_lib_save_LIBS=$LIBS
28190LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028192/* end confdefs.h. */
28193
28194/* Override any GCC internal prototype to avoid an error.
28195 Use char because int might match the return type of a GCC
28196 builtin and then its argument prototype would still apply. */
28197#ifdef __cplusplus
28198extern "C"
28199#endif
28200char XShapeCombineMask ();
28201int
28202main ()
28203{
28204return XShapeCombineMask ();
28205 ;
28206 return 0;
28207}
28208_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028209if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028210 ac_cv_lib_Xext_XShapeCombineMask=yes
28211else
cristy8b350f62009-11-15 23:12:43 +000028212 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028213fi
cristy8b350f62009-11-15 23:12:43 +000028214rm -f core conftest.err conftest.$ac_objext \
28215 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028216LIBS=$ac_check_lib_save_LIBS
28217fi
cristy8b350f62009-11-15 23:12:43 +000028218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028219$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028220if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028221 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028222$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028223
28224fi
28225
cristy8b350f62009-11-15 23:12:43 +000028226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028227$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028228if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028229 $as_echo_n "(cached) " >&6
28230else
28231 ac_check_lib_save_LIBS=$LIBS
28232LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028234/* end confdefs.h. */
28235
28236/* Override any GCC internal prototype to avoid an error.
28237 Use char because int might match the return type of a GCC
28238 builtin and then its argument prototype would still apply. */
28239#ifdef __cplusplus
28240extern "C"
28241#endif
28242char XtSetEventDispatcher ();
28243int
28244main ()
28245{
28246return XtSetEventDispatcher ();
28247 ;
28248 return 0;
28249}
28250_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028251if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028252 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28253else
cristy8b350f62009-11-15 23:12:43 +000028254 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028255fi
cristy8b350f62009-11-15 23:12:43 +000028256rm -f core conftest.err conftest.$ac_objext \
28257 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028258LIBS=$ac_check_lib_save_LIBS
28259fi
cristy8b350f62009-11-15 23:12:43 +000028260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028261$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028262if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028263 XT_LIBS='-lXt'
28264fi
28265
28266 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28267fi
28268if test "$no_x" != 'yes'; then
28269 have_x='yes'
28270else
28271 have_x='no'
28272fi
cristy73bd4a52010-10-05 11:24:23 +000028273 if test "$have_x" = 'yes'; then
28274 X11_DELEGATE_TRUE=
28275 X11_DELEGATE_FALSE='#'
28276else
28277 X11_DELEGATE_TRUE='#'
28278 X11_DELEGATE_FALSE=
28279fi
28280
cristy3ed852e2009-09-05 21:47:34 +000028281
28282
28283
28284
28285#
28286# Check for ZLIB
28287#
28288
28289# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028290if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028291 withval=$with_zlib; with_zlib=$withval
28292else
28293 with_zlib='yes'
28294fi
28295
28296
28297if test "$with_zlib" != 'yes'; then
28298 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28299fi
28300
28301have_zlib='no'
28302ZLIB_LIBS=''
28303if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28305$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028307$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28309$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028310 ZLIB_LIBS=''
28311 failed=0
28312 passed=0
cristy8b350f62009-11-15 23:12:43 +000028313 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028314if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028315 passed=`expr $passed + 1`
28316else
28317 failed=`expr $failed + 1`
28318fi
28319
28320
cristy8b350f62009-11-15 23:12:43 +000028321 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028322if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028323 passed=`expr $passed + 1`
28324else
28325 failed=`expr $failed + 1`
28326fi
28327
28328
cristy8b350f62009-11-15 23:12:43 +000028329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028330$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028331if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028332 $as_echo_n "(cached) " >&6
28333else
28334 ac_check_lib_save_LIBS=$LIBS
28335LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028337/* end confdefs.h. */
28338
28339/* Override any GCC internal prototype to avoid an error.
28340 Use char because int might match the return type of a GCC
28341 builtin and then its argument prototype would still apply. */
28342#ifdef __cplusplus
28343extern "C"
28344#endif
28345char compress ();
28346int
28347main ()
28348{
28349return compress ();
28350 ;
28351 return 0;
28352}
28353_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028354if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028355 ac_cv_lib_z_compress=yes
28356else
cristy8b350f62009-11-15 23:12:43 +000028357 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028358fi
cristy8b350f62009-11-15 23:12:43 +000028359rm -f core conftest.err conftest.$ac_objext \
28360 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028361LIBS=$ac_check_lib_save_LIBS
28362fi
cristy8b350f62009-11-15 23:12:43 +000028363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028364$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028365if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028366 passed=`expr $passed + 1`
28367else
28368 failed=`expr $failed + 1`
28369fi
28370
cristy8b350f62009-11-15 23:12:43 +000028371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028372$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028373if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028374 $as_echo_n "(cached) " >&6
28375else
28376 ac_check_lib_save_LIBS=$LIBS
28377LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028379/* end confdefs.h. */
28380
28381/* Override any GCC internal prototype to avoid an error.
28382 Use char because int might match the return type of a GCC
28383 builtin and then its argument prototype would still apply. */
28384#ifdef __cplusplus
28385extern "C"
28386#endif
28387char uncompress ();
28388int
28389main ()
28390{
28391return uncompress ();
28392 ;
28393 return 0;
28394}
28395_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028396if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028397 ac_cv_lib_z_uncompress=yes
28398else
cristy8b350f62009-11-15 23:12:43 +000028399 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028400fi
cristy8b350f62009-11-15 23:12:43 +000028401rm -f core conftest.err conftest.$ac_objext \
28402 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028403LIBS=$ac_check_lib_save_LIBS
28404fi
cristy8b350f62009-11-15 23:12:43 +000028405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028406$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028407if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028408 passed=`expr $passed + 1`
28409else
28410 failed=`expr $failed + 1`
28411fi
28412
cristy8b350f62009-11-15 23:12:43 +000028413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028414$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028415if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028416 $as_echo_n "(cached) " >&6
28417else
28418 ac_check_lib_save_LIBS=$LIBS
28419LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028421/* end confdefs.h. */
28422
28423/* Override any GCC internal prototype to avoid an error.
28424 Use char because int might match the return type of a GCC
28425 builtin and then its argument prototype would still apply. */
28426#ifdef __cplusplus
28427extern "C"
28428#endif
28429char deflate ();
28430int
28431main ()
28432{
28433return deflate ();
28434 ;
28435 return 0;
28436}
28437_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028438if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028439 ac_cv_lib_z_deflate=yes
28440else
cristy8b350f62009-11-15 23:12:43 +000028441 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028442fi
cristy8b350f62009-11-15 23:12:43 +000028443rm -f core conftest.err conftest.$ac_objext \
28444 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028445LIBS=$ac_check_lib_save_LIBS
28446fi
cristy8b350f62009-11-15 23:12:43 +000028447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028448$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028449if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028450 passed=`expr $passed + 1`
28451else
28452 failed=`expr $failed + 1`
28453fi
28454
cristy8b350f62009-11-15 23:12:43 +000028455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028456$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028457if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028458 $as_echo_n "(cached) " >&6
28459else
28460 ac_check_lib_save_LIBS=$LIBS
28461LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028463/* end confdefs.h. */
28464
28465/* Override any GCC internal prototype to avoid an error.
28466 Use char because int might match the return type of a GCC
28467 builtin and then its argument prototype would still apply. */
28468#ifdef __cplusplus
28469extern "C"
28470#endif
28471char inflate ();
28472int
28473main ()
28474{
28475return inflate ();
28476 ;
28477 return 0;
28478}
28479_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028480if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028481 ac_cv_lib_z_inflate=yes
28482else
cristy8b350f62009-11-15 23:12:43 +000028483 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028484fi
cristy8b350f62009-11-15 23:12:43 +000028485rm -f core conftest.err conftest.$ac_objext \
28486 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028487LIBS=$ac_check_lib_save_LIBS
28488fi
cristy8b350f62009-11-15 23:12:43 +000028489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028490$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028491if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028492 passed=`expr $passed + 1`
28493else
28494 failed=`expr $failed + 1`
28495fi
28496
cristy8b350f62009-11-15 23:12:43 +000028497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028498$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028499if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028500 $as_echo_n "(cached) " >&6
28501else
28502 ac_check_lib_save_LIBS=$LIBS
28503LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028505/* end confdefs.h. */
28506
28507/* Override any GCC internal prototype to avoid an error.
28508 Use char because int might match the return type of a GCC
28509 builtin and then its argument prototype would still apply. */
28510#ifdef __cplusplus
28511extern "C"
28512#endif
28513char gzseek ();
28514int
28515main ()
28516{
28517return gzseek ();
28518 ;
28519 return 0;
28520}
28521_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028522if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028523 ac_cv_lib_z_gzseek=yes
28524else
cristy8b350f62009-11-15 23:12:43 +000028525 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028526fi
cristy8b350f62009-11-15 23:12:43 +000028527rm -f core conftest.err conftest.$ac_objext \
28528 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028529LIBS=$ac_check_lib_save_LIBS
28530fi
cristy8b350f62009-11-15 23:12:43 +000028531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028532$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028533if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028534 passed=`expr $passed + 1`
28535else
28536 failed=`expr $failed + 1`
28537fi
28538
cristy8b350f62009-11-15 23:12:43 +000028539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028540$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028541if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028542 $as_echo_n "(cached) " >&6
28543else
28544 ac_check_lib_save_LIBS=$LIBS
28545LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028547/* end confdefs.h. */
28548
28549/* Override any GCC internal prototype to avoid an error.
28550 Use char because int might match the return type of a GCC
28551 builtin and then its argument prototype would still apply. */
28552#ifdef __cplusplus
28553extern "C"
28554#endif
28555char gztell ();
28556int
28557main ()
28558{
28559return gztell ();
28560 ;
28561 return 0;
28562}
28563_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028564if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028565 ac_cv_lib_z_gztell=yes
28566else
cristy8b350f62009-11-15 23:12:43 +000028567 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028568fi
cristy8b350f62009-11-15 23:12:43 +000028569rm -f core conftest.err conftest.$ac_objext \
28570 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028571LIBS=$ac_check_lib_save_LIBS
28572fi
cristy8b350f62009-11-15 23:12:43 +000028573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028574$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028575if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028576 passed=`expr $passed + 1`
28577else
28578 failed=`expr $failed + 1`
28579fi
28580
cristy8b350f62009-11-15 23:12:43 +000028581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028582$as_echo_n "checking if ZLIB package is complete... " >&6; }
28583 if test $passed -gt 0; then
28584 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28586$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028587 have_zlib='no (failed tests)'
28588 else
28589 ZLIB_LIBS='-lz'
28590 LIBS="$ZLIB_LIBS $LIBS"
28591
cristy8b350f62009-11-15 23:12:43 +000028592$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028593
cristyad38abe2012-12-23 23:03:21 +000028594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28595$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028596 have_zlib='yes'
28597 fi
28598 else
cristyad38abe2012-12-23 23:03:21 +000028599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28600$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028601 fi
28602fi
cristy73bd4a52010-10-05 11:24:23 +000028603 if test "$have_zlib" = 'yes'; then
28604 ZLIB_DELEGATE_TRUE=
28605 ZLIB_DELEGATE_FALSE='#'
28606else
28607 ZLIB_DELEGATE_TRUE='#'
28608 ZLIB_DELEGATE_FALSE=
28609fi
28610
cristy3ed852e2009-09-05 21:47:34 +000028611
28612
cristy5eef09f2012-10-16 12:08:28 +000028613# whether modules are built or not.
28614with_ltdl='yes'
28615have_ltdl='no'
28616LTDL_LIBS=''
28617if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28619$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28621$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28623$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028624 failed=0
28625 passed=0
28626 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28627if test "x$ac_cv_header_ltdl_h" = xyes; then :
28628 passed=`expr $passed + 1`
28629else
28630 failed=`expr $failed + 1`
28631fi
28632
28633
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28635$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28636if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28637 $as_echo_n "(cached) " >&6
28638else
28639 ac_check_lib_save_LIBS=$LIBS
28640LIBS="-lltdl $LIBS"
28641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28642/* end confdefs.h. */
28643
28644/* Override any GCC internal prototype to avoid an error.
28645 Use char because int might match the return type of a GCC
28646 builtin and then its argument prototype would still apply. */
28647#ifdef __cplusplus
28648extern "C"
28649#endif
28650char lt_dlinit ();
28651int
28652main ()
28653{
28654return lt_dlinit ();
28655 ;
28656 return 0;
28657}
28658_ACEOF
28659if ac_fn_c_try_link "$LINENO"; then :
28660 ac_cv_lib_ltdl_lt_dlinit=yes
28661else
28662 ac_cv_lib_ltdl_lt_dlinit=no
28663fi
28664rm -f core conftest.err conftest.$ac_objext \
28665 conftest$ac_exeext conftest.$ac_ext
28666LIBS=$ac_check_lib_save_LIBS
28667fi
28668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28669$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28670if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28671 passed=`expr $passed + 1`
28672else
28673 failed=`expr $failed + 1`
28674fi
28675
28676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28677$as_echo_n "checking if libltdl package is complete... " >&6; }
28678 if test $passed -gt 0 ; then
28679 if test $failed -gt 0 ; then
28680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28681$as_echo "no -- some components failed test" >&6; }
28682 have_ltdl='no (failed tests)'
28683 else
28684 LTDL_LIBS='-lltdl'
28685 LIBS="$LTDL_LIBS $LIBS"
28686
28687$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28688
28689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28690$as_echo "yes" >&6; }
28691 have_ltdl='yes'
28692 fi
28693 else
28694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28695$as_echo "no" >&6; }
28696 fi
cristyaf4cbf32012-10-16 23:47:41 +000028697 if test "$have_ltdl" != 'yes' ; then
28698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28700as_fn_error 1 "libltdl is required for modules build
28701See \`config.log' for more details" "$LINENO" 5; }
28702 fi
cristy5eef09f2012-10-16 12:08:28 +000028703fi
28704 if test "$have_ltdl" != 'no'; then
28705 WITH_LTDL_TRUE=
28706 WITH_LTDL_FALSE='#'
28707else
28708 WITH_LTDL_TRUE='#'
28709 WITH_LTDL_FALSE=
28710fi
28711
28712
cristy3ed852e2009-09-05 21:47:34 +000028713#
28714# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28715#
28716LIB_DL=''
28717if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028719$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028720if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028721 $as_echo_n "(cached) " >&6
28722else
28723 ac_check_lib_save_LIBS=$LIBS
28724LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028726/* end confdefs.h. */
28727
28728/* Override any GCC internal prototype to avoid an error.
28729 Use char because int might match the return type of a GCC
28730 builtin and then its argument prototype would still apply. */
28731#ifdef __cplusplus
28732extern "C"
28733#endif
28734char dlopen ();
28735int
28736main ()
28737{
28738return dlopen ();
28739 ;
28740 return 0;
28741}
28742_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028743if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028744 ac_cv_lib_dl_dlopen=yes
28745else
cristy8b350f62009-11-15 23:12:43 +000028746 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028747fi
cristy8b350f62009-11-15 23:12:43 +000028748rm -f core conftest.err conftest.$ac_objext \
28749 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028750LIBS=$ac_check_lib_save_LIBS
28751fi
cristy8b350f62009-11-15 23:12:43 +000028752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028753$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028754if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028755 LIB_DL='-ldl'
28756fi
28757
28758 LIBS="$LIB_DL $LIBS"
28759fi
28760
28761
28762
28763#
cristy5a3dc992014-12-05 19:50:04 +000028764# Set Apple font directory.
28765#
28766
28767# Check whether --with-apple-font-dir was given.
28768if test "${with_apple_font_dir+set}" = set; then :
28769 withval=$with_apple_font_dir; with_apple_font_dir=$withval
28770else
28771 with_apple_font_dir='default'
28772fi
28773
28774
28775if test "$with_apple_font_dir" != 'default'; then
28776 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
28777fi
28778
28779
28780#
cristy3ed852e2009-09-05 21:47:34 +000028781# Check for Autotrace delegate library.
28782#
28783
28784# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028785if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028786 withval=$with_autotrace; with_autotrace=$withval
28787else
28788 with_autotrace='no'
28789fi
28790
28791
28792if test "$with_autotrace" != 'yes'; then
28793 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28794fi
28795
28796have_autotrace='no'
28797AUTOTRACE_CFLAGS=""
28798AUTOTRACE_LIBS=""
28799AUTOTRACE_PKG=""
28800if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28802$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028803
28804pkg_failed=no
28805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28806$as_echo_n "checking for AUTOTRACE... " >&6; }
28807
28808if test -n "$AUTOTRACE_CFLAGS"; then
28809 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28810 elif test -n "$PKG_CONFIG"; then
28811 if test -n "$PKG_CONFIG" && \
28812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28813 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28814 ac_status=$?
28815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28816 test $ac_status = 0; }; then
28817 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28818else
28819 pkg_failed=yes
28820fi
28821 else
28822 pkg_failed=untried
28823fi
28824if test -n "$AUTOTRACE_LIBS"; then
28825 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28826 elif test -n "$PKG_CONFIG"; then
28827 if test -n "$PKG_CONFIG" && \
28828 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28829 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28830 ac_status=$?
28831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28832 test $ac_status = 0; }; then
28833 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28834else
28835 pkg_failed=yes
28836fi
28837 else
28838 pkg_failed=untried
28839fi
28840
28841
28842
28843if test $pkg_failed = yes; then
28844
28845if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28846 _pkg_short_errors_supported=yes
28847else
28848 _pkg_short_errors_supported=no
28849fi
28850 if test $_pkg_short_errors_supported = yes; then
28851 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28852 else
28853 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28854 fi
28855 # Put the nasty error message in config.log where it belongs
28856 echo "$AUTOTRACE_PKG_ERRORS" >&5
28857
28858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28859$as_echo "no" >&6; }
28860 have_autotrace=no
28861elif test $pkg_failed = untried; then
28862 have_autotrace=no
28863else
28864 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28865 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28867$as_echo "yes" >&6; }
28868 have_autotrace=yes
28869fi
cristyad38abe2012-12-23 23:03:21 +000028870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28871$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028872fi
28873
28874if test "$have_autotrace" = 'yes'; then
28875 failed=0
28876
cristy8b350f62009-11-15 23:12:43 +000028877$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028878
cristyc6722092012-10-14 00:19:31 +000028879 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028880 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028881 fi
28882fi
28883
cristy73bd4a52010-10-05 11:24:23 +000028884 if test "$have_autotrace" = 'yes'; then
28885 AUTOTRACE_DELEGATE_TRUE=
28886 AUTOTRACE_DELEGATE_FALSE='#'
28887else
28888 AUTOTRACE_DELEGATE_TRUE='#'
28889 AUTOTRACE_DELEGATE_FALSE=
28890fi
28891
cristy3ed852e2009-09-05 21:47:34 +000028892
28893
28894
28895
28896#
28897# Check for Display Postscript delegate library.
28898#
28899
28900# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028901if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028902 withval=$with_dps; with_dps=$withval
28903else
28904 with_dps='yes'
28905fi
28906
28907
28908if test "$with_dps" != 'yes'; then
28909 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28910fi
28911
28912have_dps='no'
28913DPS_LIBS=''
28914if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28916$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028918$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28920$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028921 failed=0
28922 passed=0
28923 PERSIST_CPPFLAGS="$CPPFLAGS"
28924 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028925 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028926if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028927 passed=`expr $passed + 1`
28928else
28929 failed=`expr $failed + 1`
28930fi
28931
28932
28933 # DPS issues:
28934 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28935 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28936 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28937 # ImageMagick itself doesn't use -lXt.
28938 have_libdps='no'
28939 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028941$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028942if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028943 $as_echo_n "(cached) " >&6
28944else
28945 ac_check_lib_save_LIBS=$LIBS
28946LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028948/* end confdefs.h. */
28949
28950/* Override any GCC internal prototype to avoid an error.
28951 Use char because int might match the return type of a GCC
28952 builtin and then its argument prototype would still apply. */
28953#ifdef __cplusplus
28954extern "C"
28955#endif
28956char DPSInitialize ();
28957int
28958main ()
28959{
28960return DPSInitialize ();
28961 ;
28962 return 0;
28963}
28964_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028965if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028966 ac_cv_lib_dps_DPSInitialize=yes
28967else
cristy8b350f62009-11-15 23:12:43 +000028968 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028969fi
cristy8b350f62009-11-15 23:12:43 +000028970rm -f core conftest.err conftest.$ac_objext \
28971 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028972LIBS=$ac_check_lib_save_LIBS
28973fi
cristy8b350f62009-11-15 23:12:43 +000028974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028975$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028976if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028977 have_libdps='yes'
28978else
28979 have_libdps='no'
28980fi
28981
28982 if test "$have_libdps" != 'yes'; then
28983 # Unset cache variable so we can try again.
28984 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028986$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028987if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028988 $as_echo_n "(cached) " >&6
28989else
28990 ac_check_lib_save_LIBS=$LIBS
28991LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028993/* end confdefs.h. */
28994
28995/* Override any GCC internal prototype to avoid an error.
28996 Use char because int might match the return type of a GCC
28997 builtin and then its argument prototype would still apply. */
28998#ifdef __cplusplus
28999extern "C"
29000#endif
29001char DPSInitialize ();
29002int
29003main ()
29004{
29005return DPSInitialize ();
29006 ;
29007 return 0;
29008}
29009_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029010if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029011 ac_cv_lib_dps_DPSInitialize=yes
29012else
cristy8b350f62009-11-15 23:12:43 +000029013 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000029014fi
cristy8b350f62009-11-15 23:12:43 +000029015rm -f core conftest.err conftest.$ac_objext \
29016 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029017LIBS=$ac_check_lib_save_LIBS
29018fi
cristy8b350f62009-11-15 23:12:43 +000029019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000029020$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000029021if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029022 have_libdps='yes'
29023else
29024 have_libdps='no'
29025fi
29026
29027 if test "$have_libdps" = 'yes'; then
29028 LIBDPS_XT='-lXt'
29029 fi
29030 fi
29031 if test "$have_libdps" = 'yes'; then
29032 passed=`expr $passed + 1`
29033 else
29034 failed=`expr $failed + 1`
29035 fi
cristy8b350f62009-11-15 23:12:43 +000029036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000029037$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029038if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029039 $as_echo_n "(cached) " >&6
29040else
29041 ac_check_lib_save_LIBS=$LIBS
29042LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029044/* end confdefs.h. */
29045
29046/* Override any GCC internal prototype to avoid an error.
29047 Use char because int might match the return type of a GCC
29048 builtin and then its argument prototype would still apply. */
29049#ifdef __cplusplus
29050extern "C"
29051#endif
29052char XDPSPixelsPerPoint ();
29053int
29054main ()
29055{
29056return XDPSPixelsPerPoint ();
29057 ;
29058 return 0;
29059}
29060_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029061if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029062 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
29063else
cristy8b350f62009-11-15 23:12:43 +000029064 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000029065fi
cristy8b350f62009-11-15 23:12:43 +000029066rm -f core conftest.err conftest.$ac_objext \
29067 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029068LIBS=$ac_check_lib_save_LIBS
29069fi
cristy8b350f62009-11-15 23:12:43 +000029070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000029071$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000029072if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029073 passed=`expr $passed + 1`
29074else
29075 failed=`expr $failed + 1`
29076fi
29077
cristy8b350f62009-11-15 23:12:43 +000029078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029079$as_echo_n "checking if DPS package is complete... " >&6; }
29080 if test $passed -gt 0; then
29081 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29083$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029084 have_dps='no (failed tests)'
29085 CPPFLAGS="$PERSIST_CPPFLAGS"
29086 else
29087 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
29088 LIBS="$DPS_LIBS $LIBS"
29089
cristy8b350f62009-11-15 23:12:43 +000029090$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029091
cristyad38abe2012-12-23 23:03:21 +000029092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29093$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029094 have_dps='yes'
29095 fi
29096 else
cristyad38abe2012-12-23 23:03:21 +000029097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29098$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029099 CPPFLAGS=$PERSIST_CPPFLAGS
29100 fi
29101fi
cristy73bd4a52010-10-05 11:24:23 +000029102 if test "$have_dps" = 'yes'; then
29103 DPS_DELEGATE_TRUE=
29104 DPS_DELEGATE_FALSE='#'
29105else
29106 DPS_DELEGATE_TRUE='#'
29107 DPS_DELEGATE_FALSE=
29108fi
29109
cristy3ed852e2009-09-05 21:47:34 +000029110
29111
29112
29113#
cristy430a7312010-01-21 20:44:04 +000029114# Set DejaVu font directory.
29115#
29116
29117# Check whether --with-dejavu-font-dir was given.
29118if test "${with_dejavu_font_dir+set}" = set; then :
29119 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29120else
29121 with_dejavu_font_dir='default'
29122fi
29123
29124
29125if test "$with_dejavu_font_dir" != 'default'; then
29126 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29127fi
29128
29129
29130#
cristy3ed852e2009-09-05 21:47:34 +000029131# Check for FFTW delegate library.
29132#
29133
29134# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029135if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029136 withval=$with_fftw; with_fftw=$withval
29137else
29138 with_fftw='yes'
29139fi
29140
29141
29142if test "$with_fftw" != 'yes'; then
29143 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29144fi
29145
cristy81beccd2011-10-03 18:17:24 +000029146have_fftw='no'
29147FFTW_LIBS=''
29148if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29150$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29152$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29154$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029155 failed=0
29156 passed=0
29157 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29158if test "x$ac_cv_header_fftw3_h" = xyes; then :
29159 passed=`expr $passed + 1`
29160else
29161 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029162fi
29163
cristy81beccd2011-10-03 18:17:24 +000029164
29165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29166$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29167if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29168 $as_echo_n "(cached) " >&6
29169else
29170 ac_check_lib_save_LIBS=$LIBS
29171LIBS="-lfftw3 $LIBS"
29172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29173/* end confdefs.h. */
29174
29175/* Override any GCC internal prototype to avoid an error.
29176 Use char because int might match the return type of a GCC
29177 builtin and then its argument prototype would still apply. */
29178#ifdef __cplusplus
29179extern "C"
29180#endif
29181char fftw_execute ();
29182int
29183main ()
29184{
29185return fftw_execute ();
29186 ;
29187 return 0;
29188}
29189_ACEOF
29190if ac_fn_c_try_link "$LINENO"; then :
29191 ac_cv_lib_fftw3_fftw_execute=yes
29192else
29193 ac_cv_lib_fftw3_fftw_execute=no
29194fi
29195rm -f core conftest.err conftest.$ac_objext \
29196 conftest$ac_exeext conftest.$ac_ext
29197LIBS=$ac_check_lib_save_LIBS
29198fi
29199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29200$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29201if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29202 passed=`expr $passed + 1`
29203else
29204 failed=`expr $failed + 1`
29205fi
29206
29207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29208$as_echo_n "checking if FFTW package is complete... " >&6; }
29209 if test $passed -gt 0; then
29210 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29212$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029213 have_fftw='no (failed tests)'
29214 else
29215 FFTW_LIBS='-lfftw3'
29216 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029217
cristy8b350f62009-11-15 23:12:43 +000029218$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029219
cristyad38abe2012-12-23 23:03:21 +000029220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29221$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029222 have_fftw='yes'
29223 fi
29224 else
cristyad38abe2012-12-23 23:03:21 +000029225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29226$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029227 fi
29228fi
cristy73bd4a52010-10-05 11:24:23 +000029229 if test "$have_fftw" = 'yes'; then
29230 FFTW_DELEGATE_TRUE=
29231 FFTW_DELEGATE_FALSE='#'
29232else
29233 FFTW_DELEGATE_TRUE='#'
29234 FFTW_DELEGATE_FALSE=
29235fi
29236
cristy3ed852e2009-09-05 21:47:34 +000029237
29238
29239
29240#
29241# Check for FlashPIX delegate library.
29242#
29243
29244# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029245if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029246 withval=$with_fpx; with_fpx=$withval
29247else
29248 with_fpx='yes'
29249fi
29250
29251
29252if test "$with_fpx" != 'yes'; then
29253 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29254fi
29255
29256have_fpx='no'
29257FPX_LIBS=''
29258if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29260$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029262$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29264$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029265 failed=0
29266 passed=0
29267 ac_ext=cpp
29268ac_cpp='$CXXCPP $CPPFLAGS'
29269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29272
29273
cristy8b350f62009-11-15 23:12:43 +000029274ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029275if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029276 passed=`expr $passed + 1`
29277else
29278 failed=`expr $failed + 1`
29279fi
29280
29281
cristy8b350f62009-11-15 23:12:43 +000029282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029283$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029284if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029285 $as_echo_n "(cached) " >&6
29286else
29287 ac_check_lib_save_LIBS=$LIBS
29288LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029290/* end confdefs.h. */
29291
29292/* Override any GCC internal prototype to avoid an error.
29293 Use char because int might match the return type of a GCC
29294 builtin and then its argument prototype would still apply. */
29295#ifdef __cplusplus
29296extern "C"
29297#endif
29298char FPX_OpenImageByFilename ();
29299int
29300main ()
29301{
29302return FPX_OpenImageByFilename ();
29303 ;
29304 return 0;
29305}
29306_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029307if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029308 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29309else
cristy8b350f62009-11-15 23:12:43 +000029310 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029311fi
cristy8b350f62009-11-15 23:12:43 +000029312rm -f core conftest.err conftest.$ac_objext \
29313 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029314LIBS=$ac_check_lib_save_LIBS
29315fi
cristy8b350f62009-11-15 23:12:43 +000029316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029317$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029318if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029319 passed=`expr $passed + 1`
29320else
29321 failed=`expr $failed + 1`
29322fi
29323
29324 ac_ext=c
29325ac_cpp='$CPP $CPPFLAGS'
29326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29328ac_compiler_gnu=$ac_cv_c_compiler_gnu
29329
cristy8b350f62009-11-15 23:12:43 +000029330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029331$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29332 if test $passed -gt 0; then
29333 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29335$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029336 have_fpx='no (failed tests)'
29337 else
29338 FPX_LIBS='-lfpx'
29339
cristy8b350f62009-11-15 23:12:43 +000029340$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029341
cristyad38abe2012-12-23 23:03:21 +000029342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29343$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029344 have_fpx='yes'
29345 PERLMAINCC="$CXX"
29346 fi
29347 else
cristyad38abe2012-12-23 23:03:21 +000029348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29349$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029350 fi
29351fi
cristy73bd4a52010-10-05 11:24:23 +000029352 if test "$have_fpx" = 'yes'; then
29353 FPX_DELEGATE_TRUE=
29354 FPX_DELEGATE_FALSE='#'
29355else
29356 FPX_DELEGATE_TRUE='#'
29357 FPX_DELEGATE_FALSE=
29358fi
29359
cristy3ed852e2009-09-05 21:47:34 +000029360
cristy853d9902014-08-21 18:50:43 +000029361
29362
29363#
29364# Check for DJVU delegate library.
29365#
29366
29367# Check whether --with-djvu was given.
29368if test "${with_djvu+set}" = set; then :
29369 withval=$with_djvu; with_djvu=$withval
29370else
29371 with_djvu='yes'
29372fi
29373
29374
29375if test "$with_djvu" != 'yes'; then
29376 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29377fi
29378
29379have_djvu='no'
29380DJVU_LIBS=''
29381if test "$with_djvu" != 'no'; then
29382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29383$as_echo "-------------------------------------------------------------" >&6; }
29384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
29385$as_echo_n "checking for DJVU... " >&6; }
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29387$as_echo "" >&6; }
29388 failed=0
29389 passed=0
29390 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
29391if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
29392 passed=`expr $passed + 1`
29393else
29394 failed=`expr $failed + 1`
29395fi
29396
29397
29398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
29399$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
29400if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
29401 $as_echo_n "(cached) " >&6
29402else
29403 ac_check_lib_save_LIBS=$LIBS
29404LIBS="-ldjvulibre $LIBS"
29405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29406/* end confdefs.h. */
29407
29408/* Override any GCC internal prototype to avoid an error.
29409 Use char because int might match the return type of a GCC
29410 builtin and then its argument prototype would still apply. */
29411#ifdef __cplusplus
29412extern "C"
29413#endif
29414char ddjvu_context_create ();
29415int
29416main ()
29417{
29418return ddjvu_context_create ();
29419 ;
29420 return 0;
29421}
29422_ACEOF
29423if ac_fn_c_try_link "$LINENO"; then :
29424 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29425else
29426 ac_cv_lib_djvulibre_ddjvu_context_create=no
29427fi
29428rm -f core conftest.err conftest.$ac_objext \
29429 conftest$ac_exeext conftest.$ac_ext
29430LIBS=$ac_check_lib_save_LIBS
29431fi
29432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
29433$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
29434if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
29435 passed=`expr $passed + 1`
29436else
29437 failed=`expr $failed + 1`
29438fi
29439
29440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
29441$as_echo_n "checking if DJVU package is complete... " >&6; }
29442 if test $passed -gt 0; then
29443 if test $failed -gt 0; then
29444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29445$as_echo "no -- some components failed test" >&6; }
29446 have_djvu='no (failed tests)'
29447 else
29448 DJVU_LIBS='-ldjvulibre'
29449 LIBS="$DJVU_LIBS $LIBS"
29450
29451$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29452
29453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29454$as_echo "yes" >&6; }
29455 have_djvu='yes'
29456 fi
29457 else
29458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29459$as_echo "no" >&6; }
29460 fi
29461fi
29462 if test "$have_djvu" = 'yes'; then
29463 DJVU_DELEGATE_TRUE=
29464 DJVU_DELEGATE_FALSE='#'
29465else
29466 DJVU_DELEGATE_TRUE='#'
29467 DJVU_DELEGATE_FALSE=
29468fi
29469
29470
cristy3ed852e2009-09-05 21:47:34 +000029471
29472
29473#
29474# Check for fontconfig delegate library.
29475#
29476
29477# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029478if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029479 withval=$with_fontconfig; with_fontconfig=$withval
29480else
cristyfc3d0222012-02-07 15:05:57 +000029481 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029482fi
29483
29484
29485if test "$with_fontconfig" != 'yes'; then
29486 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29487fi
29488
29489have_fontconfig='no'
29490FONTCONFIG_CFLAGS=""
29491FONTCONFIG_LIBS=""
29492FONTCONFIG_PKG=""
29493if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29495$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029496
29497pkg_failed=no
29498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29499$as_echo_n "checking for FONTCONFIG... " >&6; }
29500
29501if test -n "$FONTCONFIG_CFLAGS"; then
29502 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29503 elif test -n "$PKG_CONFIG"; then
29504 if test -n "$PKG_CONFIG" && \
29505 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29506 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29507 ac_status=$?
29508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29509 test $ac_status = 0; }; then
29510 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29511else
29512 pkg_failed=yes
29513fi
29514 else
29515 pkg_failed=untried
29516fi
29517if test -n "$FONTCONFIG_LIBS"; then
29518 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29519 elif test -n "$PKG_CONFIG"; then
29520 if test -n "$PKG_CONFIG" && \
29521 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29522 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29523 ac_status=$?
29524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29525 test $ac_status = 0; }; then
29526 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29527else
29528 pkg_failed=yes
29529fi
29530 else
29531 pkg_failed=untried
29532fi
29533
29534
29535
29536if test $pkg_failed = yes; then
29537
29538if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29539 _pkg_short_errors_supported=yes
29540else
29541 _pkg_short_errors_supported=no
29542fi
29543 if test $_pkg_short_errors_supported = yes; then
29544 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29545 else
29546 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29547 fi
29548 # Put the nasty error message in config.log where it belongs
29549 echo "$FONTCONFIG_PKG_ERRORS" >&5
29550
29551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29552$as_echo "no" >&6; }
29553 have_fontconfig=no
29554elif test $pkg_failed = untried; then
29555 have_fontconfig=no
29556else
29557 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29558 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29560$as_echo "yes" >&6; }
29561 have_fontconfig=yes
29562fi
cristyad38abe2012-12-23 23:03:21 +000029563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29564$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029565fi
29566
29567if test "$have_fontconfig" = 'yes'; then
29568
cristy8b350f62009-11-15 23:12:43 +000029569$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029570
cristyc6722092012-10-14 00:19:31 +000029571 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029572 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029573 fi
cristy3ed852e2009-09-05 21:47:34 +000029574fi
29575
cristy73bd4a52010-10-05 11:24:23 +000029576 if test "$have_fontconfig" = 'yes'; then
29577 FONTCONFIG_DELEGATE_TRUE=
29578 FONTCONFIG_DELEGATE_FALSE='#'
29579else
29580 FONTCONFIG_DELEGATE_TRUE='#'
29581 FONTCONFIG_DELEGATE_FALSE=
29582fi
29583
cristy3ed852e2009-09-05 21:47:34 +000029584
29585
29586
29587
29588#
cristy03f187e2013-01-24 00:22:19 +000029589# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029590#
29591
29592# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029593if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029594 withval=$with_freetype; with_freetype=$withval
29595else
29596 with_freetype='yes'
29597fi
29598
29599
cristy3ed852e2009-09-05 21:47:34 +000029600if test "$with_freetype" != 'yes'; then
29601 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29602fi
29603
cristy81beccd2011-10-03 18:17:24 +000029604have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029605FREETYPE_CFLAGS=""
29606FREETYPE_LIBS=""
29607FREETYPE_PKG=""
29608if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29610$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029611
29612pkg_failed=no
29613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29614$as_echo_n "checking for FREETYPE... " >&6; }
29615
29616if test -n "$FREETYPE_CFLAGS"; then
29617 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29618 elif test -n "$PKG_CONFIG"; then
29619 if test -n "$PKG_CONFIG" && \
29620 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29621 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29622 ac_status=$?
29623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29624 test $ac_status = 0; }; then
29625 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29626else
29627 pkg_failed=yes
29628fi
29629 else
29630 pkg_failed=untried
29631fi
29632if test -n "$FREETYPE_LIBS"; then
29633 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29634 elif test -n "$PKG_CONFIG"; then
29635 if test -n "$PKG_CONFIG" && \
29636 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29637 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29638 ac_status=$?
29639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29640 test $ac_status = 0; }; then
29641 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29642else
29643 pkg_failed=yes
29644fi
29645 else
29646 pkg_failed=untried
29647fi
29648
29649
29650
29651if test $pkg_failed = yes; then
29652
29653if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29654 _pkg_short_errors_supported=yes
29655else
29656 _pkg_short_errors_supported=no
29657fi
29658 if test $_pkg_short_errors_supported = yes; then
29659 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29660 else
29661 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29662 fi
29663 # Put the nasty error message in config.log where it belongs
29664 echo "$FREETYPE_PKG_ERRORS" >&5
29665
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29667$as_echo "no" >&6; }
29668 have_freetype=no
29669elif test $pkg_failed = untried; then
29670 have_freetype=no
29671else
29672 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29673 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29675$as_echo "yes" >&6; }
29676 have_freetype=yes
29677fi
cristyad38abe2012-12-23 23:03:21 +000029678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29679$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029680fi
29681
cristy03f187e2013-01-24 00:22:19 +000029682if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029683
cristy8b350f62009-11-15 23:12:43 +000029684$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029685
cristy03f187e2013-01-24 00:22:19 +000029686 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029687fi
cristy03f187e2013-01-24 00:22:19 +000029688
cristy73bd4a52010-10-05 11:24:23 +000029689 if test "$have_freetype" = 'yes'; then
29690 FREETYPE_DELEGATE_TRUE=
29691 FREETYPE_DELEGATE_FALSE='#'
29692else
29693 FREETYPE_DELEGATE_TRUE='#'
29694 FREETYPE_DELEGATE_FALSE=
29695fi
29696
cristy3ed852e2009-09-05 21:47:34 +000029697
29698
29699
cristy03f187e2013-01-24 00:22:19 +000029700
cristy3ed852e2009-09-05 21:47:34 +000029701#
29702# Check for Ghostscript library or framework.
29703#
29704# Test for iapi.h & test for gsapi_new_instance in -lgs
29705# or -framework Ghostscript
29706
29707
29708# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029709if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029710 withval=$with_gslib; with_gslib=$withval
29711else
29712 with_gslib='no'
29713fi
29714
29715
cristyb7931f12009-09-25 10:22:21 +000029716gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029717if test "$with_gslib" != 'yes'; then
29718 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29719fi
29720
29721have_gslib='no'
29722GS_LIBS=''
29723if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29725$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029727$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29729$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029730 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029731 failed=0
29732 passed=0
cristy8b350f62009-11-15 23:12:43 +000029733 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029734if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029735 passed=`expr $passed + 1`
29736else
29737 failed=`expr $failed + 1`
29738fi
29739
29740
cristy8b350f62009-11-15 23:12:43 +000029741 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029742if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029743 passed=`expr $passed + 1`
29744else
29745 failed=`expr $failed + 1`
29746fi
29747
29748
cristy73bd4a52010-10-05 11:24:23 +000029749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29750$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029751if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029752 $as_echo_n "(cached) " >&6
29753else
29754 ac_check_framework_save_LIBS=$LIBS
29755LIBS="-framework Ghostscript $LIBS"
29756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29757/* end confdefs.h. */
29758
29759/* Override any GCC internal prototype to avoid an error.
29760 Use char because int might match the return type of a GCC
29761 builtin and then its argument prototype would still apply. */
29762#ifdef __cplusplus
29763extern "C"
29764#endif
29765char gsapi_new_instance ();
29766int
29767main ()
29768{
29769return gsapi_new_instance ();
29770 ;
29771 return 0;
29772}
29773_ACEOF
29774if ac_fn_c_try_link "$LINENO"; then :
29775 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29776else
29777 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29778fi
29779rm -f core conftest.err conftest.$ac_objext \
29780 conftest$ac_exeext conftest.$ac_ext
29781LIBS=$ac_check_framework_save_LIBS
29782fi
29783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29784$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29785if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29786 framework=`expr $framework + 1`
29787else
29788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029789$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029790if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029791 $as_echo_n "(cached) " >&6
29792else
29793 ac_check_lib_save_LIBS=$LIBS
29794LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029796/* end confdefs.h. */
29797
29798/* Override any GCC internal prototype to avoid an error.
29799 Use char because int might match the return type of a GCC
29800 builtin and then its argument prototype would still apply. */
29801#ifdef __cplusplus
29802extern "C"
29803#endif
29804char gsapi_new_instance ();
29805int
29806main ()
29807{
29808return gsapi_new_instance ();
29809 ;
29810 return 0;
29811}
29812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029813if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029814 ac_cv_lib_gs_gsapi_new_instance=yes
29815else
cristy8b350f62009-11-15 23:12:43 +000029816 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029817fi
cristy8b350f62009-11-15 23:12:43 +000029818rm -f core conftest.err conftest.$ac_objext \
29819 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029820LIBS=$ac_check_lib_save_LIBS
29821fi
cristy8b350f62009-11-15 23:12:43 +000029822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029823$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029824if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029825 passed=`expr $passed + 1`
29826else
29827 failed=`expr $failed + 1`
29828fi
cristy73bd4a52010-10-05 11:24:23 +000029829
29830fi
cristy8b350f62009-11-15 23:12:43 +000029831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029832$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29833 if test $passed -gt 0; then
29834 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29836$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029837 have_gslib='no (failed tests)'
29838 else
29839 if test $framework -gt 0; then
29840 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029841 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29843$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029844 else
cristyad38abe2012-12-23 23:03:21 +000029845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29846$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029847 GS_LIBS='-lgs'
29848 fi
29849 LIBS="$GS_LIBS $LIBS"
29850
cristy8b350f62009-11-15 23:12:43 +000029851$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029852
29853 have_gslib='yes'
29854 fi
29855 else
cristyad38abe2012-12-23 23:03:21 +000029856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29857$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029858 fi
29859fi
cristy73bd4a52010-10-05 11:24:23 +000029860 if test "$have_gslib" = 'yes'; then
29861 GS_DELEGATE_TRUE=
29862 GS_DELEGATE_FALSE='#'
29863else
29864 GS_DELEGATE_TRUE='#'
29865 GS_DELEGATE_FALSE=
29866fi
29867
cristy3ed852e2009-09-05 21:47:34 +000029868
29869
29870# Set default font search path
29871
29872# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029873if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029874 withval=$with_fontpath; with_fontpath=$withval
29875else
29876 with_fontpath=''
29877fi
29878
29879
29880if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29881 with_fontpath=''
29882else
29883
29884cat >>confdefs.h <<_ACEOF
29885#define MAGICK_FONT_PATH "$with_fontpath"
29886_ACEOF
29887
29888fi
29889if test "$with_fontpath=" != ''; then
29890 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29891fi
29892
29893# Set Ghostscript font directory
29894
29895# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029896if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029897 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29898else
29899 with_gs_font_dir='default'
29900fi
29901
29902
29903if test "$with_gs_font_dir" != 'default'; then
29904 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29905fi
29906
29907
29908#
29909# Check for GVC delegate library.
29910#
29911
29912# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029913if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029914 withval=$with_gvc; with_gvc=$withval
29915else
cristy1b70dc82012-07-01 23:15:05 +000029916 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029917fi
29918
29919
29920if test "$with_gvc" != 'yes'; then
29921 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29922fi
29923
29924GVC_PKG=""
29925if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29927$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029928
29929pkg_failed=no
29930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29931$as_echo_n "checking for GVC... " >&6; }
29932
29933if test -n "$GVC_CFLAGS"; then
29934 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29935 elif test -n "$PKG_CONFIG"; then
29936 if test -n "$PKG_CONFIG" && \
29937 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29938 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29939 ac_status=$?
29940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29941 test $ac_status = 0; }; then
29942 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29943else
29944 pkg_failed=yes
29945fi
29946 else
29947 pkg_failed=untried
29948fi
29949if test -n "$GVC_LIBS"; then
29950 pkg_cv_GVC_LIBS="$GVC_LIBS"
29951 elif test -n "$PKG_CONFIG"; then
29952 if test -n "$PKG_CONFIG" && \
29953 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29954 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29955 ac_status=$?
29956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29957 test $ac_status = 0; }; then
29958 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29959else
29960 pkg_failed=yes
29961fi
29962 else
29963 pkg_failed=untried
29964fi
29965
29966
29967
29968if test $pkg_failed = yes; then
29969
29970if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29971 _pkg_short_errors_supported=yes
29972else
29973 _pkg_short_errors_supported=no
29974fi
29975 if test $_pkg_short_errors_supported = yes; then
29976 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29977 else
29978 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29979 fi
29980 # Put the nasty error message in config.log where it belongs
29981 echo "$GVC_PKG_ERRORS" >&5
29982
29983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29984$as_echo "no" >&6; }
29985 have_gvc=no
29986elif test $pkg_failed = untried; then
29987 have_gvc=no
29988else
29989 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29990 GVC_LIBS=$pkg_cv_GVC_LIBS
29991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29992$as_echo "yes" >&6; }
29993 have_gvc=yes
29994fi
cristyad38abe2012-12-23 23:03:21 +000029995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29996$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029997fi
29998
29999if test "$have_gvc" = 'yes'; then
30000
cristy8b350f62009-11-15 23:12:43 +000030001$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030002
cristyc6722092012-10-14 00:19:31 +000030003 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030004 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
30005 fi
30006fi
30007
cristy73bd4a52010-10-05 11:24:23 +000030008 if test "$have_gvc" = 'yes'; then
30009 GVC_DELEGATE_TRUE=
30010 GVC_DELEGATE_FALSE='#'
30011else
30012 GVC_DELEGATE_TRUE='#'
30013 GVC_DELEGATE_FALSE=
30014fi
30015
cristy3ed852e2009-09-05 21:47:34 +000030016
30017
30018
30019
30020#
30021# Check for JBIG delegate library.
30022#
30023
30024
30025# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000030026if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030027 withval=$with_jbig; with_jbig=$withval
30028else
30029 with_jbig='yes'
30030fi
30031
30032
30033have_jbig='no'
30034JBIG_LIBS=''
30035if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30037$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030039$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30041$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030042 failed=0
30043 passed=0
cristy8b350f62009-11-15 23:12:43 +000030044 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030045if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030046 passed=`expr $passed + 1`
30047else
30048 failed=`expr $failed + 1`
30049fi
30050
30051
cristy8b350f62009-11-15 23:12:43 +000030052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000030053$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030054if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030055 $as_echo_n "(cached) " >&6
30056else
30057 ac_check_lib_save_LIBS=$LIBS
30058LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030060/* end confdefs.h. */
30061
30062/* Override any GCC internal prototype to avoid an error.
30063 Use char because int might match the return type of a GCC
30064 builtin and then its argument prototype would still apply. */
30065#ifdef __cplusplus
30066extern "C"
30067#endif
30068char jbg_dec_init ();
30069int
30070main ()
30071{
30072return jbg_dec_init ();
30073 ;
30074 return 0;
30075}
30076_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030077if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030078 ac_cv_lib_jbig_jbg_dec_init=yes
30079else
cristy8b350f62009-11-15 23:12:43 +000030080 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030081fi
cristy8b350f62009-11-15 23:12:43 +000030082rm -f core conftest.err conftest.$ac_objext \
30083 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030084LIBS=$ac_check_lib_save_LIBS
30085fi
cristy8b350f62009-11-15 23:12:43 +000030086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030087$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030088if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030089 passed=`expr $passed + 1`
30090else
30091 failed=`expr $failed + 1`
30092fi
30093
cristy8b350f62009-11-15 23:12:43 +000030094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030095$as_echo_n "checking if JBIG package is complete... " >&6; }
30096 if test $passed -gt 0; then
30097 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30099$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030100 have_jbig='no (failed tests)'
30101 else
30102 JBIG_LIBS='-ljbig'
30103 LIBS="$JBIG_LIBS $LIBS"
30104
cristy8b350f62009-11-15 23:12:43 +000030105$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030106
cristyad38abe2012-12-23 23:03:21 +000030107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30108$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030109 have_jbig='yes'
30110 fi
30111 else
cristyad38abe2012-12-23 23:03:21 +000030112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30113$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030114 fi
30115fi
cristy73bd4a52010-10-05 11:24:23 +000030116 if test "$have_jbig" = 'yes'; then
30117 JBIG_DELEGATE_TRUE=
30118 JBIG_DELEGATE_FALSE='#'
30119else
30120 JBIG_DELEGATE_TRUE='#'
30121 JBIG_DELEGATE_FALSE=
30122fi
30123
cristy3ed852e2009-09-05 21:47:34 +000030124
30125
30126
30127#
30128# Check for JPEG delegate library.
30129#
30130
30131# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030132if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030133 withval=$with_jpeg; with_jpeg=$withval
30134else
30135 with_jpeg='yes'
30136fi
30137
30138
30139if test "$with_jpeg" != 'yes'; then
30140 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30141fi
30142
30143have_jpeg='no'
30144JPEG_LIBS=''
30145if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30147$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030149$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30151$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030152 failed=0
30153 passed=0
cristy8b350f62009-11-15 23:12:43 +000030154 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030155if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030156 passed=`expr $passed + 1`
30157else
30158 failed=`expr $failed + 1`
30159fi
30160
30161
cristy8b350f62009-11-15 23:12:43 +000030162 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030163if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030164 passed=`expr $passed + 1`
30165else
30166 failed=`expr $failed + 1`
30167fi
30168
30169
cristy8b350f62009-11-15 23:12:43 +000030170 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030171if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030172 passed=`expr $passed + 1`
30173else
30174 failed=`expr $failed + 1`
30175fi
30176
30177
cristy8b350f62009-11-15 23:12:43 +000030178 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030179if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030180 passed=`expr $passed + 1`
30181else
30182 failed=`expr $failed + 1`
30183fi
30184
30185
cristy8b350f62009-11-15 23:12:43 +000030186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030187$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030188if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030189 $as_echo_n "(cached) " >&6
30190else
30191 ac_check_lib_save_LIBS=$LIBS
30192LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030194/* end confdefs.h. */
30195
30196/* Override any GCC internal prototype to avoid an error.
30197 Use char because int might match the return type of a GCC
30198 builtin and then its argument prototype would still apply. */
30199#ifdef __cplusplus
30200extern "C"
30201#endif
30202char jpeg_read_header ();
30203int
30204main ()
30205{
30206return jpeg_read_header ();
30207 ;
30208 return 0;
30209}
30210_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030211if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030212 ac_cv_lib_jpeg_jpeg_read_header=yes
30213else
cristy8b350f62009-11-15 23:12:43 +000030214 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030215fi
cristy8b350f62009-11-15 23:12:43 +000030216rm -f core conftest.err conftest.$ac_objext \
30217 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030218LIBS=$ac_check_lib_save_LIBS
30219fi
cristy8b350f62009-11-15 23:12:43 +000030220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030221$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030222if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030223 passed=`expr $passed + 1`
30224else
30225 failed=`expr $failed + 1`
30226fi
30227
30228
30229# Test for compatible JPEG library
30230if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030232$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030233if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030234 $as_echo_n "(cached) " >&6
30235else
cristy8b350f62009-11-15 23:12:43 +000030236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030237/* end confdefs.h. */
30238#include <stdio.h>
30239#include <stdlib.h>
30240#include <jpeglib.h>
30241
30242int
30243main ()
30244{
30245
30246#if JPEG_LIB_VERSION < 62
30247#error IJG JPEG library must be version 6b or newer!
30248#endif
30249return 0;
30250
30251 ;
30252 return 0;
30253}
30254_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030255if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030256 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30257else
cristy8b350f62009-11-15 23:12:43 +000030258 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030259fi
cristy3ed852e2009-09-05 21:47:34 +000030260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30261fi
cristy8b350f62009-11-15 23:12:43 +000030262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030263$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30264fi
cristy8b350f62009-11-15 23:12:43 +000030265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030266$as_echo_n "checking if JPEG package is complete... " >&6; }
30267 if test $passed -gt 0; then
30268 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30270$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030271 have_jpeg='no (failed tests)'
30272 else
30273 JPEG_LIBS='-ljpeg'
30274 LIBS="$JPEG_LIBS $LIBS"
30275
cristy8b350f62009-11-15 23:12:43 +000030276$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030277
cristyad38abe2012-12-23 23:03:21 +000030278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30279$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030280 have_jpeg='yes'
30281 fi
30282 else
cristyad38abe2012-12-23 23:03:21 +000030283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30284$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030285 fi
30286fi
cristy73bd4a52010-10-05 11:24:23 +000030287 if test "$have_jpeg" = 'yes'; then
30288 JPEG_DELEGATE_TRUE=
30289 JPEG_DELEGATE_FALSE='#'
30290else
30291 JPEG_DELEGATE_TRUE='#'
30292 JPEG_DELEGATE_FALSE=
30293fi
30294
cristy3ed852e2009-09-05 21:47:34 +000030295
30296
30297
30298#
cristy3ed852e2009-09-05 21:47:34 +000030299# Check for LCMS delegate library.
30300#
cristy71203402010-06-18 13:12:03 +000030301# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030302
30303# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030304if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030305 withval=$with_lcms; with_lcms=$withval
30306else
30307 with_lcms='yes'
30308fi
30309
cristy71203402010-06-18 13:12:03 +000030310if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030311 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30312fi
30313
cristy71203402010-06-18 13:12:03 +000030314# Disable LCMS2.
30315
30316# Check whether --with-lcms2 was given.
30317if test "${with_lcms2+set}" = set; then :
30318 withval=$with_lcms2; with_lcms2=$withval
30319else
30320 with_lcms2='yes'
30321fi
30322
30323if test "$with_lcms2" != 'yes' ; then
30324 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30325fi
30326
30327have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030328LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030329if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30331$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30333$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30335$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030336 failed=0
30337 passed=0
30338 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030339
30340 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030341 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030342if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030343 have_lcms_header='yes'
30344fi
30345
30346
30347 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030348
30349$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30350
cristy71203402010-06-18 13:12:03 +000030351 passed=`expr $passed + 1`
30352 fi
30353
30354 # Check for <lcms2/lcms2.h)
30355 if test "$have_lcms_header" != 'yes'; then
30356 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030357if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030358 have_lcms_header='yes'
30359fi
30360
30361
cristy71203402010-06-18 13:12:03 +000030362 if test "$have_lcms_header" = 'yes'; then
30363 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030364
cristy71203402010-06-18 13:12:03 +000030365$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030366
cristy71203402010-06-18 13:12:03 +000030367 fi
cristyd09bcf92010-03-25 03:04:45 +000030368 fi
cristy71203402010-06-18 13:12:03 +000030369
30370 # Failed to find lcms header?
30371 if test "$have_lcms_header" != 'yes'; then
30372 failed=`expr $failed + 1`
30373 fi
30374
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30376$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030377if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030378 $as_echo_n "(cached) " >&6
30379else
30380 ac_check_lib_save_LIBS=$LIBS
30381LIBS="-llcms2 $LIBS"
30382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30383/* end confdefs.h. */
30384
30385/* Override any GCC internal prototype to avoid an error.
30386 Use char because int might match the return type of a GCC
30387 builtin and then its argument prototype would still apply. */
30388#ifdef __cplusplus
30389extern "C"
30390#endif
cristy71203402010-06-18 13:12:03 +000030391char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030392int
30393main ()
30394{
cristy71203402010-06-18 13:12:03 +000030395return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030396 ;
30397 return 0;
30398}
30399_ACEOF
30400if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030401 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030402else
cristy71203402010-06-18 13:12:03 +000030403 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030404fi
30405rm -f core conftest.err conftest.$ac_objext \
30406 conftest$ac_exeext conftest.$ac_ext
30407LIBS=$ac_check_lib_save_LIBS
30408fi
cristy71203402010-06-18 13:12:03 +000030409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30410$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030411if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030412 passed=`expr $passed + 1`
30413else
30414 failed=`expr $failed + 1`
30415fi
30416
cristy71203402010-06-18 13:12:03 +000030417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30418$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030419 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030420 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30422$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030423 have_lcms2='no (failed tests)'
30424 else
30425 LCMS_LIBS='-llcms2'
30426 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30428$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030429 have_lcms2='yes'
30430 fi
cristyd09bcf92010-03-25 03:04:45 +000030431 else
cristyad38abe2012-12-23 23:03:21 +000030432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30433$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030434 fi
30435fi
30436
cristy71203402010-06-18 13:12:03 +000030437#
30438# Check for LCMS v1 (1.11 or later)
30439#
30440if test $have_lcms2 = 'yes'; then
30441 with_lcms='no'
30442fi
30443
30444have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030445if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30447$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30449$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30451$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030452 failed=0
30453 passed=0
30454 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030455
30456 # Check for <lcms.h>
30457 if test "$have_lcms_header" != 'yes'; then
30458 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030459if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030460 have_lcms_header='yes'
30461fi
30462
30463
cristy71203402010-06-18 13:12:03 +000030464 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030465 passed=`expr $passed + 1`
30466
cristy8b350f62009-11-15 23:12:43 +000030467$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030468
cristy71203402010-06-18 13:12:03 +000030469 fi
30470 fi
30471
30472 # Check for <lcms/lcms.h>
30473 if test "$have_lcms_header" != 'yes'; then
30474 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030475if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030476 have_lcms_header='yes'
30477fi
30478
30479
cristy71203402010-06-18 13:12:03 +000030480 if test "$have_lcms_header" = 'yes'; then
30481 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030482
cristy8b350f62009-11-15 23:12:43 +000030483$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030484
cristy71203402010-06-18 13:12:03 +000030485 fi
cristy3ed852e2009-09-05 21:47:34 +000030486 fi
cristy71203402010-06-18 13:12:03 +000030487
30488 # Failed to find lcms header?
30489 if test "$have_lcms_header" != 'yes'; then
30490 failed=`expr $failed + 1`
30491 fi
30492
30493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30494$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030495if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030496 $as_echo_n "(cached) " >&6
30497else
30498 ac_check_lib_save_LIBS=$LIBS
30499LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030501/* end confdefs.h. */
30502
30503/* Override any GCC internal prototype to avoid an error.
30504 Use char because int might match the return type of a GCC
30505 builtin and then its argument prototype would still apply. */
30506#ifdef __cplusplus
30507extern "C"
30508#endif
cristy71203402010-06-18 13:12:03 +000030509char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030510int
30511main ()
30512{
cristy71203402010-06-18 13:12:03 +000030513return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030514 ;
30515 return 0;
30516}
30517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030518if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030519 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030520else
cristy71203402010-06-18 13:12:03 +000030521 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030522fi
cristy8b350f62009-11-15 23:12:43 +000030523rm -f core conftest.err conftest.$ac_objext \
30524 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030525LIBS=$ac_check_lib_save_LIBS
30526fi
cristy71203402010-06-18 13:12:03 +000030527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30528$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030529if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030530 passed=`expr $passed + 1`
30531else
30532 failed=`expr $failed + 1`
30533fi
30534
cristy8b350f62009-11-15 23:12:43 +000030535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030536$as_echo_n "checking if LCMS package is complete... " >&6; }
30537 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030538 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30540$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030541 have_lcms='no (failed tests)'
30542 else
30543 LCMS_LIBS='-llcms'
30544 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30546$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030547 have_lcms='yes'
30548 fi
cristy3ed852e2009-09-05 21:47:34 +000030549 else
cristyad38abe2012-12-23 23:03:21 +000030550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30551$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030552 fi
30553fi
cristy71203402010-06-18 13:12:03 +000030554
cristy73bd4a52010-10-05 11:24:23 +000030555 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30556 LCMS_DELEGATE_TRUE=
30557 LCMS_DELEGATE_FALSE='#'
30558else
30559 LCMS_DELEGATE_TRUE='#'
30560 LCMS_DELEGATE_FALSE=
30561fi
30562
cristy71203402010-06-18 13:12:03 +000030563if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30564
30565$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30566
30567fi
30568
cristy3ed852e2009-09-05 21:47:34 +000030569
30570
30571
30572#
cristy99db3872014-01-01 15:11:34 +000030573# Check for the OpenJP2 delegate library.
30574#
30575
30576# Check whether --with-openjp2 was given.
30577if test "${with_openjp2+set}" = set; then :
30578 withval=$with_openjp2; with_openjp2=$withval
30579else
30580 with_openjp2='yes'
30581fi
30582
30583
30584if test "$with_openjp2" != 'yes'; then
30585 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30586fi
30587
30588have_openjp2='no'
30589LIBOPENJP2_CFLAGS=""
30590LIBOPENJP2_LIBS=""
30591LIBOPENJP2_PKG=""
30592if test "x$with_openjp2" = "xyes"; then
30593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30594$as_echo "-------------------------------------------------------------" >&6; }
30595
30596pkg_failed=no
30597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30598$as_echo_n "checking for LIBOPENJP2... " >&6; }
30599
30600if test -n "$LIBOPENJP2_CFLAGS"; then
30601 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30602 elif test -n "$PKG_CONFIG"; then
30603 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30605 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030606 ac_status=$?
30607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30608 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030609 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030610else
30611 pkg_failed=yes
30612fi
30613 else
30614 pkg_failed=untried
30615fi
30616if test -n "$LIBOPENJP2_LIBS"; then
30617 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30618 elif test -n "$PKG_CONFIG"; then
30619 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030620 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30621 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030622 ac_status=$?
30623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30624 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030625 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030626else
30627 pkg_failed=yes
30628fi
30629 else
30630 pkg_failed=untried
30631fi
30632
30633
30634
30635if test $pkg_failed = yes; then
30636
30637if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30638 _pkg_short_errors_supported=yes
30639else
30640 _pkg_short_errors_supported=no
30641fi
30642 if test $_pkg_short_errors_supported = yes; then
cristybc964932014-05-08 21:45:03 +000030643 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030644 else
cristybc964932014-05-08 21:45:03 +000030645 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030646 fi
30647 # Put the nasty error message in config.log where it belongs
30648 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30649
30650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30651$as_echo "no" >&6; }
30652 have_openjp2=no
30653elif test $pkg_failed = untried; then
30654 have_openjp2=no
30655else
30656 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30657 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30659$as_echo "yes" >&6; }
30660 have_openjp2=yes
30661fi
30662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30663$as_echo "" >&6; }
30664fi
30665
30666if test "$have_openjp2" = 'yes'; then
30667
30668$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30669
30670 if test "$build_modules" = 'no'; then
30671 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30672 fi
30673fi
30674
30675 if test "$have_openjp2" = 'yes'; then
30676 LIBOPENJP2_DELEGATE_TRUE=
30677 LIBOPENJP2_DELEGATE_FALSE='#'
30678else
30679 LIBOPENJP2_DELEGATE_TRUE='#'
30680 LIBOPENJP2_DELEGATE_FALSE=
30681fi
30682
30683
30684
30685
30686
30687
30688#
cristy3ed852e2009-09-05 21:47:34 +000030689# Check for the LQR (Liquid Rescale) delegate library.
30690#
30691
30692# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030693if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030694 withval=$with_lqr; with_lqr=$withval
30695else
30696 with_lqr='yes'
30697fi
30698
30699
30700if test "$with_lqr" != 'yes'; then
30701 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30702fi
30703
30704have_lqr='no'
30705LQR_CFLAGS=""
30706LQR_LIBS=""
30707LQR_PKG=""
30708if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30710$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030711
30712pkg_failed=no
30713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30714$as_echo_n "checking for LQR... " >&6; }
30715
30716if test -n "$LQR_CFLAGS"; then
30717 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30718 elif test -n "$PKG_CONFIG"; then
30719 if test -n "$PKG_CONFIG" && \
30720 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30721 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30722 ac_status=$?
30723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30724 test $ac_status = 0; }; then
30725 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30726else
30727 pkg_failed=yes
30728fi
30729 else
30730 pkg_failed=untried
30731fi
30732if test -n "$LQR_LIBS"; then
30733 pkg_cv_LQR_LIBS="$LQR_LIBS"
30734 elif test -n "$PKG_CONFIG"; then
30735 if test -n "$PKG_CONFIG" && \
30736 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30737 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30738 ac_status=$?
30739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30740 test $ac_status = 0; }; then
30741 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30742else
30743 pkg_failed=yes
30744fi
30745 else
30746 pkg_failed=untried
30747fi
30748
30749
30750
30751if test $pkg_failed = yes; then
30752
30753if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30754 _pkg_short_errors_supported=yes
30755else
30756 _pkg_short_errors_supported=no
30757fi
30758 if test $_pkg_short_errors_supported = yes; then
30759 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30760 else
30761 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30762 fi
30763 # Put the nasty error message in config.log where it belongs
30764 echo "$LQR_PKG_ERRORS" >&5
30765
30766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30767$as_echo "no" >&6; }
30768 have_lqr=no
30769elif test $pkg_failed = untried; then
30770 have_lqr=no
30771else
30772 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30773 LQR_LIBS=$pkg_cv_LQR_LIBS
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30775$as_echo "yes" >&6; }
30776 have_lqr=yes
30777fi
cristyad38abe2012-12-23 23:03:21 +000030778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30779$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030780fi
30781
30782if test "$have_lqr" = 'yes'; then
30783
cristy8b350f62009-11-15 23:12:43 +000030784$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030785
30786 CFLAGS="$LQR_CFLAGS $CFLAGS"
30787fi
30788
cristy73bd4a52010-10-05 11:24:23 +000030789 if test "$have_lqr" = 'yes'; then
30790 LQR_DELEGATE_TRUE=
30791 LQR_DELEGATE_FALSE='#'
30792else
30793 LQR_DELEGATE_TRUE='#'
30794 LQR_DELEGATE_FALSE=
30795fi
30796
cristy3ed852e2009-09-05 21:47:34 +000030797
30798
30799
30800
cristy81beccd2011-10-03 18:17:24 +000030801# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030802
30803# Check whether --with-lzma was given.
30804if test "${with_lzma+set}" = set; then :
30805 withval=$with_lzma; with_lzma=$withval
30806else
30807 with_lzma='yes'
30808fi
30809
cristy81beccd2011-10-03 18:17:24 +000030810if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030811 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30812fi
30813
cristyb94e5002011-11-14 13:20:10 +000030814LZMA_PKG=""
30815if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30817$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030818
30819pkg_failed=no
30820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030821$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030822
30823if test -n "$LZMA_CFLAGS"; then
30824 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30825 elif test -n "$PKG_CONFIG"; then
30826 if test -n "$PKG_CONFIG" && \
30827 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30828 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30829 ac_status=$?
30830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30831 test $ac_status = 0; }; then
30832 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30833else
30834 pkg_failed=yes
30835fi
30836 else
30837 pkg_failed=untried
30838fi
30839if test -n "$LZMA_LIBS"; then
30840 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30841 elif test -n "$PKG_CONFIG"; then
30842 if test -n "$PKG_CONFIG" && \
30843 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30844 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30845 ac_status=$?
30846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30847 test $ac_status = 0; }; then
30848 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30849else
30850 pkg_failed=yes
30851fi
30852 else
30853 pkg_failed=untried
30854fi
30855
30856
30857
30858if test $pkg_failed = yes; then
30859
30860if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30861 _pkg_short_errors_supported=yes
30862else
30863 _pkg_short_errors_supported=no
30864fi
30865 if test $_pkg_short_errors_supported = yes; then
30866 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30867 else
30868 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30869 fi
30870 # Put the nasty error message in config.log where it belongs
30871 echo "$LZMA_PKG_ERRORS" >&5
30872
30873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30874$as_echo "no" >&6; }
30875 have_lzma=no
30876elif test $pkg_failed = untried; then
30877 have_lzma=no
30878else
30879 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30880 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30882$as_echo "yes" >&6; }
30883 have_lzma=yes
30884fi
cristyad38abe2012-12-23 23:03:21 +000030885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30886$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030887fi
30888
cristyb94e5002011-11-14 13:20:10 +000030889if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030890
30891$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30892
cristyc6722092012-10-14 00:19:31 +000030893 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030894 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030895 fi
cristyfbb0ef02010-12-19 02:32:11 +000030896fi
cristyb94e5002011-11-14 13:20:10 +000030897
cristyfbb0ef02010-12-19 02:32:11 +000030898 if test "$have_lzma" = 'yes'; then
30899 LZMA_DELEGATE_TRUE=
30900 LZMA_DELEGATE_FALSE='#'
30901else
30902 LZMA_DELEGATE_TRUE='#'
30903 LZMA_DELEGATE_FALSE=
30904fi
30905
30906
30907
30908
cristyb94e5002011-11-14 13:20:10 +000030909
cristy3ed852e2009-09-05 21:47:34 +000030910#
30911# Check for the OpenEXR delegate library.
30912#
30913
30914# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030915if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030916 withval=$with_openexr; with_openexr=$withval
30917else
30918 with_openexr='yes'
30919fi
30920
30921
30922if test "$with_openexr" != 'yes'; then
30923 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30924fi
30925
30926have_openexr='no'
30927OPENEXR_CFLAGS=""
30928OPENEXR_LIBS=""
30929OPENEXR_PKG=""
30930if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30932$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030933
30934pkg_failed=no
30935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30936$as_echo_n "checking for OPENEXR... " >&6; }
30937
30938if test -n "$OPENEXR_CFLAGS"; then
30939 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30940 elif test -n "$PKG_CONFIG"; then
30941 if test -n "$PKG_CONFIG" && \
30942 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30943 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30944 ac_status=$?
30945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30946 test $ac_status = 0; }; then
30947 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30948else
30949 pkg_failed=yes
30950fi
30951 else
30952 pkg_failed=untried
30953fi
30954if test -n "$OPENEXR_LIBS"; then
30955 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30956 elif test -n "$PKG_CONFIG"; then
30957 if test -n "$PKG_CONFIG" && \
30958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30959 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30960 ac_status=$?
30961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30962 test $ac_status = 0; }; then
30963 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30964else
30965 pkg_failed=yes
30966fi
30967 else
30968 pkg_failed=untried
30969fi
30970
30971
30972
30973if test $pkg_failed = yes; then
30974
30975if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30976 _pkg_short_errors_supported=yes
30977else
30978 _pkg_short_errors_supported=no
30979fi
30980 if test $_pkg_short_errors_supported = yes; then
30981 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30982 else
30983 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30984 fi
30985 # Put the nasty error message in config.log where it belongs
30986 echo "$OPENEXR_PKG_ERRORS" >&5
30987
30988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30989$as_echo "no" >&6; }
30990 have_openexr=no
30991elif test $pkg_failed = untried; then
30992 have_openexr=no
30993else
30994 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30995 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30997$as_echo "yes" >&6; }
30998 have_openexr=yes
30999fi
cristyad38abe2012-12-23 23:03:21 +000031000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31001$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031002fi
31003
31004if test "$have_openexr" = 'yes'; then
31005
cristy8b350f62009-11-15 23:12:43 +000031006$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031007
cristyc6722092012-10-14 00:19:31 +000031008 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031009 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
31010 fi
31011fi
31012
cristy73bd4a52010-10-05 11:24:23 +000031013 if test "$have_openexr" = 'yes'; then
31014 OPENEXR_DELEGATE_TRUE=
31015 OPENEXR_DELEGATE_FALSE='#'
31016else
31017 OPENEXR_DELEGATE_TRUE='#'
31018 OPENEXR_DELEGATE_FALSE=
31019fi
31020
cristy3ed852e2009-09-05 21:47:34 +000031021
31022
31023
31024
31025#
cristy41cbe8a2011-10-27 01:35:18 +000031026# Check for PANGO delegate library.
31027#
31028
31029# Check whether --with-pango was given.
31030if test "${with_pango+set}" = set; then :
31031 withval=$with_pango; with_pango=$withval
31032else
cristyfc3d0222012-02-07 15:05:57 +000031033 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000031034fi
31035
31036
31037if test "$with_pango" != 'yes'; then
31038 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31039fi
31040
31041have_pango='no'
cristya054b762012-03-26 23:16:00 +000031042have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000031043PANGO_CFLAGS=""
31044PANGO_LIBS=""
31045PANGO_PKG=""
31046if test "x$with_pango" = "xyes"; then
31047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31048$as_echo "-------------------------------------------------------------" >&6; }
31049
31050pkg_failed=no
31051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31052$as_echo_n "checking for PANGO... " >&6; }
31053
31054if test -n "$PANGO_CFLAGS"; then
31055 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31056 elif test -n "$PKG_CONFIG"; then
31057 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031058 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31059 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031060 ac_status=$?
31061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31062 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031063 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031064else
31065 pkg_failed=yes
31066fi
31067 else
31068 pkg_failed=untried
31069fi
31070if test -n "$PANGO_LIBS"; then
31071 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31072 elif test -n "$PKG_CONFIG"; then
31073 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031074 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31075 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031076 ac_status=$?
31077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31078 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031079 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031080else
31081 pkg_failed=yes
31082fi
31083 else
31084 pkg_failed=untried
31085fi
31086
31087
31088
31089if test $pkg_failed = yes; then
31090
31091if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31092 _pkg_short_errors_supported=yes
31093else
31094 _pkg_short_errors_supported=no
31095fi
31096 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000031097 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031098 else
cristya054b762012-03-26 23:16:00 +000031099 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031100 fi
31101 # Put the nasty error message in config.log where it belongs
31102 echo "$PANGO_PKG_ERRORS" >&5
31103
31104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31105$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031106 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031107elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000031108 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031109else
31110 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31111 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31113$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031114 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031115fi
31116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31117$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031118
31119pkg_failed=no
31120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31121$as_echo_n "checking for PANGO... " >&6; }
31122
31123if test -n "$PANGO_CFLAGS"; then
31124 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31125 elif test -n "$PKG_CONFIG"; then
31126 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031127 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31128 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031129 ac_status=$?
31130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31131 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031132 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031133else
31134 pkg_failed=yes
31135fi
31136 else
31137 pkg_failed=untried
31138fi
31139if test -n "$PANGO_LIBS"; then
31140 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31141 elif test -n "$PKG_CONFIG"; then
31142 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31144 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031145 ac_status=$?
31146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31147 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031148 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031149else
31150 pkg_failed=yes
31151fi
31152 else
31153 pkg_failed=untried
31154fi
31155
31156
31157
31158if test $pkg_failed = yes; then
31159
31160if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31161 _pkg_short_errors_supported=yes
31162else
31163 _pkg_short_errors_supported=no
31164fi
31165 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031166 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031167 else
cristy2542fc62011-12-06 17:50:25 +000031168 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031169 fi
31170 # Put the nasty error message in config.log where it belongs
31171 echo "$PANGO_PKG_ERRORS" >&5
31172
31173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31174$as_echo "no" >&6; }
31175 have_pango=no
31176elif test $pkg_failed = untried; then
31177 have_pango=no
31178else
31179 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31180 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31182$as_echo "yes" >&6; }
31183 have_pango=yes
31184fi
31185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31186$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031187fi
31188
31189if test "$have_pango" = 'yes'; then
31190
31191$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31192
cristyc6722092012-10-14 00:19:31 +000031193 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000031194 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31195 fi
31196fi
31197
cristya054b762012-03-26 23:16:00 +000031198if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031199
cristya054b762012-03-26 23:16:00 +000031200$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031201
cristyc6722092012-10-14 00:19:31 +000031202 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031203 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031204 fi
31205fi
31206
31207 if test "$have_pango" = 'yes'; then
31208 PANGO_DELEGATE_TRUE=
31209 PANGO_DELEGATE_FALSE='#'
31210else
31211 PANGO_DELEGATE_TRUE='#'
31212 PANGO_DELEGATE_FALSE=
31213fi
31214
cristya054b762012-03-26 23:16:00 +000031215 if test "$have_pangocairo" = 'yes'; then
31216 PANGOCAIRO_DELEGATE_TRUE=
31217 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031218else
cristya054b762012-03-26 23:16:00 +000031219 PANGOCAIRO_DELEGATE_TRUE='#'
31220 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031221fi
31222
31223
31224
31225
31226
31227#
cristy3ed852e2009-09-05 21:47:34 +000031228# Check for PNG delegate library.
31229#
31230
31231# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031232if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031233 withval=$with_png; with_png=$withval
31234else
31235 with_png='yes'
31236fi
31237
31238
31239if test "$with_png" != 'yes'; then
31240 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31241fi
31242
cristy81beccd2011-10-03 18:17:24 +000031243have_png='no'
31244PNG_LIBS=''
31245
31246if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000031247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31248$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31250$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31252$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031253 failed=0
31254 passed=0
31255 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31256if test "x$ac_cv_header_png_h" = xyes; then :
31257 passed=`expr $passed + 1`
31258else
31259 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031260fi
31261
cristy81beccd2011-10-03 18:17:24 +000031262
31263
31264 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000031265 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031266 if test "$have_png" = 'no' ; then
31267 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031268 pnglib='png'
31269 else
31270 pnglib="png1${var}"
31271 fi
31272
31273# Test for compatible LIBPNG library
31274 failed=0
31275 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031276 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031277 if test "${pnglib}" != 'png' ; then
31278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31279$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31281/* end confdefs.h. */
31282#include <stdio.h>
31283#include <stdlib.h>
31284#include <png.h>
31285
31286int
31287main ()
31288{
31289
31290#if PNG_LIBPNG_VER_MINOR != ${var}
31291#error LIBPNG library must be version 1${var}!
31292Kaboom, Kaboom
31293#endif
31294return 0;
31295
31296 ;
31297 return 0;
31298}
31299_ACEOF
31300if ac_fn_c_try_compile "$LINENO"; then :
31301 ac_cv_libpng_ok='yes'
31302else
31303 ac_cv_libpng_ok='no'
31304fi
31305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31306 if test "$ac_cv_libpng_ok" = 'yes' ; then
31307 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31309$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031310 else
31311 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000031312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31313$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031314 fi
31315 else
31316 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31318$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031319 fi
31320 fi
31321
31322 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000031323 if test "1${var}" = '17' ; then
31324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
31325$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
31326if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
31327 $as_echo_n "(cached) " >&6
31328else
31329 ac_check_lib_save_LIBS=$LIBS
31330LIBS="-lpng17 $LIBS"
31331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31332/* end confdefs.h. */
31333
31334/* Override any GCC internal prototype to avoid an error.
31335 Use char because int might match the return type of a GCC
31336 builtin and then its argument prototype would still apply. */
31337#ifdef __cplusplus
31338extern "C"
31339#endif
31340char png_get_io_ptr ();
31341int
31342main ()
31343{
31344return png_get_io_ptr ();
31345 ;
31346 return 0;
31347}
31348_ACEOF
31349if ac_fn_c_try_link "$LINENO"; then :
31350 ac_cv_lib_png17_png_get_io_ptr=yes
31351else
31352 ac_cv_lib_png17_png_get_io_ptr=no
31353fi
31354rm -f core conftest.err conftest.$ac_objext \
31355 conftest$ac_exeext conftest.$ac_ext
31356LIBS=$ac_check_lib_save_LIBS
31357fi
31358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
31359$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
31360if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
31361 passed=`expr $passed + 1`
31362else
31363 failed=`expr $failed + 1`
31364fi
31365
31366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
31367$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
31368if ${ac_cv_lib_png17_png_longjmp+:} false; then :
31369 $as_echo_n "(cached) " >&6
31370else
31371 ac_check_lib_save_LIBS=$LIBS
31372LIBS="-lpng17 $LIBS"
31373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31374/* end confdefs.h. */
31375
31376/* Override any GCC internal prototype to avoid an error.
31377 Use char because int might match the return type of a GCC
31378 builtin and then its argument prototype would still apply. */
31379#ifdef __cplusplus
31380extern "C"
31381#endif
31382char png_longjmp ();
31383int
31384main ()
31385{
31386return png_longjmp ();
31387 ;
31388 return 0;
31389}
31390_ACEOF
31391if ac_fn_c_try_link "$LINENO"; then :
31392 ac_cv_lib_png17_png_longjmp=yes
31393else
31394 ac_cv_lib_png17_png_longjmp=no
31395fi
31396rm -f core conftest.err conftest.$ac_objext \
31397 conftest$ac_exeext conftest.$ac_ext
31398LIBS=$ac_check_lib_save_LIBS
31399fi
31400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31401$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31402if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31403 passed=`expr $passed + 1`
31404else
31405 failed=`expr $failed + 1`
31406fi
31407
31408 fi
31409 if test "1${var}" = '16' ; then
31410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31411$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31412if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31413 $as_echo_n "(cached) " >&6
31414else
31415 ac_check_lib_save_LIBS=$LIBS
31416LIBS="-lpng16 $LIBS"
31417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31418/* end confdefs.h. */
31419
31420/* Override any GCC internal prototype to avoid an error.
31421 Use char because int might match the return type of a GCC
31422 builtin and then its argument prototype would still apply. */
31423#ifdef __cplusplus
31424extern "C"
31425#endif
31426char png_get_io_ptr ();
31427int
31428main ()
31429{
31430return png_get_io_ptr ();
31431 ;
31432 return 0;
31433}
31434_ACEOF
31435if ac_fn_c_try_link "$LINENO"; then :
31436 ac_cv_lib_png16_png_get_io_ptr=yes
31437else
31438 ac_cv_lib_png16_png_get_io_ptr=no
31439fi
31440rm -f core conftest.err conftest.$ac_objext \
31441 conftest$ac_exeext conftest.$ac_ext
31442LIBS=$ac_check_lib_save_LIBS
31443fi
31444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31445$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31446if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31447 passed=`expr $passed + 1`
31448else
31449 failed=`expr $failed + 1`
31450fi
31451
31452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31453$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31454if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31455 $as_echo_n "(cached) " >&6
31456else
31457 ac_check_lib_save_LIBS=$LIBS
31458LIBS="-lpng16 $LIBS"
31459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31460/* end confdefs.h. */
31461
31462/* Override any GCC internal prototype to avoid an error.
31463 Use char because int might match the return type of a GCC
31464 builtin and then its argument prototype would still apply. */
31465#ifdef __cplusplus
31466extern "C"
31467#endif
31468char png_longjmp ();
31469int
31470main ()
31471{
31472return png_longjmp ();
31473 ;
31474 return 0;
31475}
31476_ACEOF
31477if ac_fn_c_try_link "$LINENO"; then :
31478 ac_cv_lib_png16_png_longjmp=yes
31479else
31480 ac_cv_lib_png16_png_longjmp=no
31481fi
31482rm -f core conftest.err conftest.$ac_objext \
31483 conftest$ac_exeext conftest.$ac_ext
31484LIBS=$ac_check_lib_save_LIBS
31485fi
31486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31487$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31488if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31489 passed=`expr $passed + 1`
31490else
31491 failed=`expr $failed + 1`
31492fi
31493
31494 fi
cristy81beccd2011-10-03 18:17:24 +000031495 if test "1${var}" = '15' ; then
31496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31497$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31498if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31499 $as_echo_n "(cached) " >&6
31500else
31501 ac_check_lib_save_LIBS=$LIBS
31502LIBS="-lpng15 $LIBS"
31503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31504/* end confdefs.h. */
31505
31506/* Override any GCC internal prototype to avoid an error.
31507 Use char because int might match the return type of a GCC
31508 builtin and then its argument prototype would still apply. */
31509#ifdef __cplusplus
31510extern "C"
31511#endif
31512char png_get_io_ptr ();
31513int
31514main ()
31515{
31516return png_get_io_ptr ();
31517 ;
31518 return 0;
31519}
31520_ACEOF
31521if ac_fn_c_try_link "$LINENO"; then :
31522 ac_cv_lib_png15_png_get_io_ptr=yes
31523else
31524 ac_cv_lib_png15_png_get_io_ptr=no
31525fi
31526rm -f core conftest.err conftest.$ac_objext \
31527 conftest$ac_exeext conftest.$ac_ext
31528LIBS=$ac_check_lib_save_LIBS
31529fi
31530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31531$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31532if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31533 passed=`expr $passed + 1`
31534else
31535 failed=`expr $failed + 1`
31536fi
31537
31538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31539$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31540if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31541 $as_echo_n "(cached) " >&6
31542else
31543 ac_check_lib_save_LIBS=$LIBS
31544LIBS="-lpng15 $LIBS"
31545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31546/* end confdefs.h. */
31547
31548/* Override any GCC internal prototype to avoid an error.
31549 Use char because int might match the return type of a GCC
31550 builtin and then its argument prototype would still apply. */
31551#ifdef __cplusplus
31552extern "C"
31553#endif
31554char png_longjmp ();
31555int
31556main ()
31557{
31558return png_longjmp ();
31559 ;
31560 return 0;
31561}
31562_ACEOF
31563if ac_fn_c_try_link "$LINENO"; then :
31564 ac_cv_lib_png15_png_longjmp=yes
31565else
31566 ac_cv_lib_png15_png_longjmp=no
31567fi
31568rm -f core conftest.err conftest.$ac_objext \
31569 conftest$ac_exeext conftest.$ac_ext
31570LIBS=$ac_check_lib_save_LIBS
31571fi
31572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31573$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31574if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31575 passed=`expr $passed + 1`
31576else
31577 failed=`expr $failed + 1`
31578fi
31579
31580 fi
31581 if test "1${var}" = '14' ; then
31582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31583$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31584if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31585 $as_echo_n "(cached) " >&6
31586else
31587 ac_check_lib_save_LIBS=$LIBS
31588LIBS="-lpng14 $LIBS"
31589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31590/* end confdefs.h. */
31591
31592/* Override any GCC internal prototype to avoid an error.
31593 Use char because int might match the return type of a GCC
31594 builtin and then its argument prototype would still apply. */
31595#ifdef __cplusplus
31596extern "C"
31597#endif
31598char png_get_io_ptr ();
31599int
31600main ()
31601{
31602return png_get_io_ptr ();
31603 ;
31604 return 0;
31605}
31606_ACEOF
31607if ac_fn_c_try_link "$LINENO"; then :
31608 ac_cv_lib_png14_png_get_io_ptr=yes
31609else
31610 ac_cv_lib_png14_png_get_io_ptr=no
31611fi
31612rm -f core conftest.err conftest.$ac_objext \
31613 conftest$ac_exeext conftest.$ac_ext
31614LIBS=$ac_check_lib_save_LIBS
31615fi
31616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31617$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31618if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31619 passed=`expr $passed + 1`
31620else
31621 failed=`expr $failed + 1`
31622fi
31623
31624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31625$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31626if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31627 $as_echo_n "(cached) " >&6
31628else
31629 ac_check_lib_save_LIBS=$LIBS
31630LIBS="-lpng14 $LIBS"
31631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31632/* end confdefs.h. */
31633
31634/* Override any GCC internal prototype to avoid an error.
31635 Use char because int might match the return type of a GCC
31636 builtin and then its argument prototype would still apply. */
31637#ifdef __cplusplus
31638extern "C"
31639#endif
31640char png_get_io_state ();
31641int
31642main ()
31643{
31644return png_get_io_state ();
31645 ;
31646 return 0;
31647}
31648_ACEOF
31649if ac_fn_c_try_link "$LINENO"; then :
31650 ac_cv_lib_png14_png_get_io_state=yes
31651else
31652 ac_cv_lib_png14_png_get_io_state=no
31653fi
31654rm -f core conftest.err conftest.$ac_objext \
31655 conftest$ac_exeext conftest.$ac_ext
31656LIBS=$ac_check_lib_save_LIBS
31657fi
31658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31659$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31660if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31661 passed=`expr $passed + 1`
31662else
31663 failed=`expr $failed + 1`
31664fi
31665
31666 fi
31667 if test "1${var}" = '12' ; then
31668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31669$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31670if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31671 $as_echo_n "(cached) " >&6
31672else
31673 ac_check_lib_save_LIBS=$LIBS
31674LIBS="-lpng12 $LIBS"
31675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31676/* end confdefs.h. */
31677
31678/* Override any GCC internal prototype to avoid an error.
31679 Use char because int might match the return type of a GCC
31680 builtin and then its argument prototype would still apply. */
31681#ifdef __cplusplus
31682extern "C"
31683#endif
31684char png_get_io_ptr ();
31685int
31686main ()
31687{
31688return png_get_io_ptr ();
31689 ;
31690 return 0;
31691}
31692_ACEOF
31693if ac_fn_c_try_link "$LINENO"; then :
31694 ac_cv_lib_png12_png_get_io_ptr=yes
31695else
31696 ac_cv_lib_png12_png_get_io_ptr=no
31697fi
31698rm -f core conftest.err conftest.$ac_objext \
31699 conftest$ac_exeext conftest.$ac_ext
31700LIBS=$ac_check_lib_save_LIBS
31701fi
31702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31703$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31704if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31705 passed=`expr $passed + 1`
31706else
31707 failed=`expr $failed + 1`
31708fi
31709
31710 fi
31711 if test "1${var}" = '1' ; then
31712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31713$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31714if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31715 $as_echo_n "(cached) " >&6
31716else
31717 ac_check_lib_save_LIBS=$LIBS
31718LIBS="-lpng $LIBS"
31719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31720/* end confdefs.h. */
31721
31722/* Override any GCC internal prototype to avoid an error.
31723 Use char because int might match the return type of a GCC
31724 builtin and then its argument prototype would still apply. */
31725#ifdef __cplusplus
31726extern "C"
31727#endif
31728char png_get_io_ptr ();
31729int
31730main ()
31731{
31732return png_get_io_ptr ();
31733 ;
31734 return 0;
31735}
31736_ACEOF
31737if ac_fn_c_try_link "$LINENO"; then :
31738 ac_cv_lib_png_png_get_io_ptr=yes
31739else
31740 ac_cv_lib_png_png_get_io_ptr=no
31741fi
31742rm -f core conftest.err conftest.$ac_objext \
31743 conftest$ac_exeext conftest.$ac_ext
31744LIBS=$ac_check_lib_save_LIBS
31745fi
31746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31747$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31748if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31749 passed=`expr $passed + 1`
31750else
31751 failed=`expr $failed + 1`
31752fi
31753
31754 fi
31755 if test $passed -gt 0 -a $failed -le 0 ; then
31756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31757$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31758 if test $passed -gt 0 ; then
31759 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31761$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031762 have_png='no (failed tests)'
31763 else
31764 PNG_LIBS="-l${pnglib}"
31765 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031766
cristy8b350f62009-11-15 23:12:43 +000031767$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031768
cristyad38abe2012-12-23 23:03:21 +000031769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31770$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031771 have_png='yes'
31772 fi
31773 fi
31774 fi
31775 fi
31776 fi
31777 done
31778 fi
cristy3ed852e2009-09-05 21:47:34 +000031779fi
cristy64877302011-08-23 19:10:31 +000031780
cristy73bd4a52010-10-05 11:24:23 +000031781 if test "$have_png" = 'yes'; then
31782 PNG_DELEGATE_TRUE=
31783 PNG_DELEGATE_FALSE='#'
31784else
31785 PNG_DELEGATE_TRUE='#'
31786 PNG_DELEGATE_FALSE=
31787fi
31788
cristy3ed852e2009-09-05 21:47:34 +000031789
cristy50d3f5c2011-09-10 20:09:06 +000031790
cristy3ed852e2009-09-05 21:47:34 +000031791
31792
31793#
31794# Check for RSVG delegate library.
31795#
31796
31797# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031798if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031799 withval=$with_rsvg; with_rsvg=$withval
31800else
cristy1164d5f2012-08-15 00:58:25 +000031801 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031802fi
31803
31804
31805if test "$with_rsvg" != 'yes'; then
31806 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31807fi
31808
31809have_rsvg='no'
31810have_cairo='no'
31811RSVG_CFLAGS=""
31812RSVG_LIBS=""
31813RSVG_PKG=""
31814if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31816$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031817
31818pkg_failed=no
31819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31820$as_echo_n "checking for RSVG... " >&6; }
31821
31822if test -n "$RSVG_CFLAGS"; then
31823 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31824 elif test -n "$PKG_CONFIG"; then
31825 if test -n "$PKG_CONFIG" && \
31826 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31827 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31828 ac_status=$?
31829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31830 test $ac_status = 0; }; then
31831 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31832else
31833 pkg_failed=yes
31834fi
31835 else
31836 pkg_failed=untried
31837fi
31838if test -n "$RSVG_LIBS"; then
31839 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31840 elif test -n "$PKG_CONFIG"; then
31841 if test -n "$PKG_CONFIG" && \
31842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31843 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31844 ac_status=$?
31845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31846 test $ac_status = 0; }; then
31847 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31848else
31849 pkg_failed=yes
31850fi
31851 else
31852 pkg_failed=untried
31853fi
31854
31855
31856
31857if test $pkg_failed = yes; then
31858
31859if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31860 _pkg_short_errors_supported=yes
31861else
31862 _pkg_short_errors_supported=no
31863fi
31864 if test $_pkg_short_errors_supported = yes; then
31865 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31866 else
31867 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31868 fi
31869 # Put the nasty error message in config.log where it belongs
31870 echo "$RSVG_PKG_ERRORS" >&5
31871
31872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31873$as_echo "no" >&6; }
31874 have_rsvg=no
31875elif test $pkg_failed = untried; then
31876 have_rsvg=no
31877else
31878 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31879 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31881$as_echo "yes" >&6; }
31882 have_rsvg=yes
31883fi
cristyad38abe2012-12-23 23:03:21 +000031884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31885$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031886
31887pkg_failed=no
31888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31889$as_echo_n "checking for CAIRO_SVG... " >&6; }
31890
31891if test -n "$CAIRO_SVG_CFLAGS"; then
31892 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31893 elif test -n "$PKG_CONFIG"; then
31894 if test -n "$PKG_CONFIG" && \
31895 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31896 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31897 ac_status=$?
31898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31899 test $ac_status = 0; }; then
31900 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31901else
31902 pkg_failed=yes
31903fi
31904 else
31905 pkg_failed=untried
31906fi
31907if test -n "$CAIRO_SVG_LIBS"; then
31908 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31909 elif test -n "$PKG_CONFIG"; then
31910 if test -n "$PKG_CONFIG" && \
31911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31912 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31913 ac_status=$?
31914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31915 test $ac_status = 0; }; then
31916 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31917else
31918 pkg_failed=yes
31919fi
31920 else
31921 pkg_failed=untried
31922fi
31923
31924
31925
31926if test $pkg_failed = yes; then
31927
31928if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31929 _pkg_short_errors_supported=yes
31930else
31931 _pkg_short_errors_supported=no
31932fi
31933 if test $_pkg_short_errors_supported = yes; then
31934 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31935 else
31936 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31937 fi
31938 # Put the nasty error message in config.log where it belongs
31939 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31940
31941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31942$as_echo "no" >&6; }
31943 have_cairo=no
31944elif test $pkg_failed = untried; then
31945 have_cairo=no
31946else
31947 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31948 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31950$as_echo "yes" >&6; }
31951 have_cairo=yes
31952fi
cristyad38abe2012-12-23 23:03:21 +000031953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31954$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031955fi
31956
31957if test "$have_rsvg" = 'yes'; then
31958
cristy8b350f62009-11-15 23:12:43 +000031959$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031960
cristyc6722092012-10-14 00:19:31 +000031961 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031962 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31963 fi
31964fi
31965
31966if test "$have_cairo" = 'yes'; then
31967
cristy8b350f62009-11-15 23:12:43 +000031968$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031969
cristyc6722092012-10-14 00:19:31 +000031970 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031971 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31972 fi
31973fi
31974
cristy73bd4a52010-10-05 11:24:23 +000031975 if test "$have_rsvg" = 'yes'; then
31976 RSVG_DELEGATE_TRUE=
31977 RSVG_DELEGATE_FALSE='#'
31978else
31979 RSVG_DELEGATE_TRUE='#'
31980 RSVG_DELEGATE_FALSE=
31981fi
31982
31983 if test "$have_cairo" = 'yes'; then
31984 CAIRO_DELEGATE_TRUE=
31985 CAIRO_DELEGATE_FALSE='#'
31986else
31987 CAIRO_DELEGATE_TRUE='#'
31988 CAIRO_DELEGATE_FALSE=
31989fi
31990
cristy3ed852e2009-09-05 21:47:34 +000031991
31992
31993
31994
31995#
31996# Check for TIFF delegate library.
31997#
31998
31999# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000032000if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032001 withval=$with_tiff; with_tiff=$withval
32002else
32003 with_tiff='yes'
32004fi
32005
32006
32007if test "$with_tiff" != 'yes'; then
32008 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
32009fi
32010
32011have_tiff='no'
32012TIFF_LIBS=''
32013if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32015$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032017$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32019$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032020 failed=0
32021 passed=0
cristy8b350f62009-11-15 23:12:43 +000032022 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032023if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032024 passed=`expr $passed + 1`
32025else
32026 failed=`expr $failed + 1`
32027fi
32028
32029
cristy8b350f62009-11-15 23:12:43 +000032030 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032031if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032032 passed=`expr $passed + 1`
32033else
32034 failed=`expr $failed + 1`
32035fi
32036
32037
cristy8b350f62009-11-15 23:12:43 +000032038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032039$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032040if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032041 $as_echo_n "(cached) " >&6
32042else
32043 ac_check_lib_save_LIBS=$LIBS
32044LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032046/* end confdefs.h. */
32047
32048/* Override any GCC internal prototype to avoid an error.
32049 Use char because int might match the return type of a GCC
32050 builtin and then its argument prototype would still apply. */
32051#ifdef __cplusplus
32052extern "C"
32053#endif
32054char TIFFOpen ();
32055int
32056main ()
32057{
32058return TIFFOpen ();
32059 ;
32060 return 0;
32061}
32062_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032063if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032064 ac_cv_lib_tiff_TIFFOpen=yes
32065else
cristy8b350f62009-11-15 23:12:43 +000032066 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032067fi
cristy8b350f62009-11-15 23:12:43 +000032068rm -f core conftest.err conftest.$ac_objext \
32069 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032070LIBS=$ac_check_lib_save_LIBS
32071fi
cristy8b350f62009-11-15 23:12:43 +000032072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032073$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032074if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032075 passed=`expr $passed + 1`
32076else
32077 failed=`expr $failed + 1`
32078fi
32079
cristy8b350f62009-11-15 23:12:43 +000032080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032081$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032082if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032083 $as_echo_n "(cached) " >&6
32084else
32085 ac_check_lib_save_LIBS=$LIBS
32086LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032088/* end confdefs.h. */
32089
32090/* Override any GCC internal prototype to avoid an error.
32091 Use char because int might match the return type of a GCC
32092 builtin and then its argument prototype would still apply. */
32093#ifdef __cplusplus
32094extern "C"
32095#endif
32096char TIFFClientOpen ();
32097int
32098main ()
32099{
32100return TIFFClientOpen ();
32101 ;
32102 return 0;
32103}
32104_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032105if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032106 ac_cv_lib_tiff_TIFFClientOpen=yes
32107else
cristy8b350f62009-11-15 23:12:43 +000032108 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032109fi
cristy8b350f62009-11-15 23:12:43 +000032110rm -f core conftest.err conftest.$ac_objext \
32111 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032112LIBS=$ac_check_lib_save_LIBS
32113fi
cristy8b350f62009-11-15 23:12:43 +000032114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032115$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032116if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032117 passed=`expr $passed + 1`
32118else
32119 failed=`expr $failed + 1`
32120fi
32121
cristy8b350f62009-11-15 23:12:43 +000032122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032123$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032124if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032125 $as_echo_n "(cached) " >&6
32126else
32127 ac_check_lib_save_LIBS=$LIBS
32128LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032130/* end confdefs.h. */
32131
32132/* Override any GCC internal prototype to avoid an error.
32133 Use char because int might match the return type of a GCC
32134 builtin and then its argument prototype would still apply. */
32135#ifdef __cplusplus
32136extern "C"
32137#endif
32138char TIFFIsByteSwapped ();
32139int
32140main ()
32141{
32142return TIFFIsByteSwapped ();
32143 ;
32144 return 0;
32145}
32146_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032147if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032148 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
32149else
cristy8b350f62009-11-15 23:12:43 +000032150 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000032151fi
cristy8b350f62009-11-15 23:12:43 +000032152rm -f core conftest.err conftest.$ac_objext \
32153 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032154LIBS=$ac_check_lib_save_LIBS
32155fi
cristy8b350f62009-11-15 23:12:43 +000032156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000032157$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000032158if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032159 passed=`expr $passed + 1`
32160else
32161 failed=`expr $failed + 1`
32162fi
32163
cristy8b350f62009-11-15 23:12:43 +000032164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032165$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032166if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032167 $as_echo_n "(cached) " >&6
32168else
32169 ac_check_lib_save_LIBS=$LIBS
32170LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032172/* end confdefs.h. */
32173
32174/* Override any GCC internal prototype to avoid an error.
32175 Use char because int might match the return type of a GCC
32176 builtin and then its argument prototype would still apply. */
32177#ifdef __cplusplus
32178extern "C"
32179#endif
32180char TIFFReadRGBATile ();
32181int
32182main ()
32183{
32184return TIFFReadRGBATile ();
32185 ;
32186 return 0;
32187}
32188_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032189if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032190 ac_cv_lib_tiff_TIFFReadRGBATile=yes
32191else
cristy8b350f62009-11-15 23:12:43 +000032192 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000032193fi
cristy8b350f62009-11-15 23:12:43 +000032194rm -f core conftest.err conftest.$ac_objext \
32195 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032196LIBS=$ac_check_lib_save_LIBS
32197fi
cristy8b350f62009-11-15 23:12:43 +000032198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000032199$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000032200if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032201 passed=`expr $passed + 1`
32202else
32203 failed=`expr $failed + 1`
32204fi
32205
cristy8b350f62009-11-15 23:12:43 +000032206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032207$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032208if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032209 $as_echo_n "(cached) " >&6
32210else
32211 ac_check_lib_save_LIBS=$LIBS
32212LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032214/* end confdefs.h. */
32215
32216/* Override any GCC internal prototype to avoid an error.
32217 Use char because int might match the return type of a GCC
32218 builtin and then its argument prototype would still apply. */
32219#ifdef __cplusplus
32220extern "C"
32221#endif
32222char TIFFReadRGBAStrip ();
32223int
32224main ()
32225{
32226return TIFFReadRGBAStrip ();
32227 ;
32228 return 0;
32229}
32230_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032231if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032232 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32233else
cristy8b350f62009-11-15 23:12:43 +000032234 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000032235fi
cristy8b350f62009-11-15 23:12:43 +000032236rm -f core conftest.err conftest.$ac_objext \
32237 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032238LIBS=$ac_check_lib_save_LIBS
32239fi
cristy8b350f62009-11-15 23:12:43 +000032240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000032241$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000032242if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032243 passed=`expr $passed + 1`
32244else
32245 failed=`expr $failed + 1`
32246fi
32247
cristy8b350f62009-11-15 23:12:43 +000032248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032249$as_echo_n "checking if TIFF package is complete... " >&6; }
32250 if test $passed -gt 0; then
32251 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32253$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032254 have_tiff='no (failed tests)'
32255 else
32256 TIFF_LIBS='-ltiff'
32257 LIBS="$TIFF_LIBS $LIBS"
32258
cristy8b350f62009-11-15 23:12:43 +000032259$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032260
cristyad38abe2012-12-23 23:03:21 +000032261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32262$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032263 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032264 for ac_header in tiffconf.h
32265do :
32266 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032267if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032268 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032269#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032270_ACEOF
32271
32272fi
32273
32274done
32275
cristy8b350f62009-11-15 23:12:43 +000032276 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032277 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32278 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32279 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032280do :
32281 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32282ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032283if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032284 cat >>confdefs.h <<_ACEOF
32285#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32286_ACEOF
32287
32288fi
32289done
32290
32291 fi
32292 else
cristyad38abe2012-12-23 23:03:21 +000032293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32294$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032295 fi
32296fi
cristy73bd4a52010-10-05 11:24:23 +000032297 if test "$have_tiff" = 'yes'; then
32298 TIFF_DELEGATE_TRUE=
32299 TIFF_DELEGATE_FALSE='#'
32300else
32301 TIFF_DELEGATE_TRUE='#'
32302 TIFF_DELEGATE_FALSE=
32303fi
32304
cristy3ed852e2009-09-05 21:47:34 +000032305
32306
32307
32308#
cristyb1860752011-03-14 00:27:46 +000032309# Check for WEBP delegate library.
32310#
32311
32312# Check whether --with-webp was given.
32313if test "${with_webp+set}" = set; then :
32314 withval=$with_webp; with_webp=$withval
32315else
32316 with_webp='yes'
32317fi
32318
32319
32320if test "$with_webp" != 'yes'; then
32321 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32322fi
32323
32324have_webp='no'
32325WEBP_LIBS=''
32326if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32328$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000032329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32330$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32332$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000032333 failed=0
32334 passed=0
32335 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32336if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32337 passed=`expr $passed + 1`
32338else
32339 failed=`expr $failed + 1`
32340fi
32341
32342
cristy6d670312013-03-22 23:23:01 +000032343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
32344$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
32345if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000032346 $as_echo_n "(cached) " >&6
32347else
32348 ac_check_lib_save_LIBS=$LIBS
32349LIBS="-lwebp $LIBS"
32350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32351/* end confdefs.h. */
32352
32353/* Override any GCC internal prototype to avoid an error.
32354 Use char because int might match the return type of a GCC
32355 builtin and then its argument prototype would still apply. */
32356#ifdef __cplusplus
32357extern "C"
32358#endif
cristy6d670312013-03-22 23:23:01 +000032359char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032360int
32361main ()
32362{
cristy6d670312013-03-22 23:23:01 +000032363return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032364 ;
32365 return 0;
32366}
32367_ACEOF
32368if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032369 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032370else
cristy6d670312013-03-22 23:23:01 +000032371 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032372fi
32373rm -f core conftest.err conftest.$ac_objext \
32374 conftest$ac_exeext conftest.$ac_ext
32375LIBS=$ac_check_lib_save_LIBS
32376fi
cristy6d670312013-03-22 23:23:01 +000032377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32378$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32379if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032380 passed=`expr $passed + 1`
32381else
32382 failed=`expr $failed + 1`
32383fi
32384
32385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32386$as_echo_n "checking if WEBP package is complete... " >&6; }
32387 if test $passed -gt 0; then
32388 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32390$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032391 have_webp='no (failed tests)'
32392 else
32393 WEBP_LIBS='-lwebp'
32394 LIBS="$WEBP_LIBS $LIBS"
32395
32396$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32397
cristyad38abe2012-12-23 23:03:21 +000032398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32399$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032400 have_webp='yes'
32401 fi
32402 else
cristyad38abe2012-12-23 23:03:21 +000032403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32404$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032405 fi
32406fi
32407 if test "$have_webp" = 'yes'; then
32408 WEBP_DELEGATE_TRUE=
32409 WEBP_DELEGATE_FALSE='#'
32410else
32411 WEBP_DELEGATE_TRUE='#'
32412 WEBP_DELEGATE_FALSE=
32413fi
32414
32415
32416
32417
32418#
cristy3ed852e2009-09-05 21:47:34 +000032419# Set Windows font directory.
32420#
32421
32422# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032423if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032424 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32425else
cristy5a3dc992014-12-05 19:50:04 +000032426 with_windows_font_dir='default'
cristy3ed852e2009-09-05 21:47:34 +000032427fi
32428
cristy5a3dc992014-12-05 19:50:04 +000032429
32430if test "$with_windows_font_dir" != 'default'; then
cristy3ed852e2009-09-05 21:47:34 +000032431 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32432fi
32433
32434
32435#
32436# Check for WMF delegate library.
32437#
32438
32439# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032440if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032441 withval=$with_wmf; with_wmf=$withval
32442else
cristyfc3d0222012-02-07 15:05:57 +000032443 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032444fi
32445
32446
32447if test "$with_wmf" != 'yes'; then
32448 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32449fi
32450
32451have_wmf='no'
32452WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032453WMF_LIBS_DEPS=''
32454OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032455if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32457$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032459$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32461$as_echo "" >&6; }
32462 have_libwmf='no'
32463 have_libwmflite='no'
32464 have_libwmf_ipa_h='no'
32465
32466 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32467"
32468if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32469 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032470fi
32471
32472
cristy03f7cf92011-12-15 01:40:41 +000032473 if test "$have_libwmf_ipa_h" = 'yes'; then
32474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32475$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32476if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032477 $as_echo_n "(cached) " >&6
32478else
32479 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032480LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032482/* end confdefs.h. */
32483
32484/* Override any GCC internal prototype to avoid an error.
32485 Use char because int might match the return type of a GCC
32486 builtin and then its argument prototype would still apply. */
32487#ifdef __cplusplus
32488extern "C"
32489#endif
cristy03f7cf92011-12-15 01:40:41 +000032490char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032491int
32492main ()
32493{
cristy03f7cf92011-12-15 01:40:41 +000032494return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032495 ;
32496 return 0;
32497}
32498_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032499if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032500 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032501else
cristy03f7cf92011-12-15 01:40:41 +000032502 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032503fi
cristy8b350f62009-11-15 23:12:43 +000032504rm -f core conftest.err conftest.$ac_objext \
32505 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032506LIBS=$ac_check_lib_save_LIBS
32507fi
cristy03f7cf92011-12-15 01:40:41 +000032508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32509$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32510if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32511 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032512fi
32513
cristy03f7cf92011-12-15 01:40:41 +000032514 if test "$have_libwmflite" = 'yes'; then
32515
32516$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32517
32518 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032519 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032520 have_wmf='yes'
32521 else
32522 WMF_LIBS_DEPS=''
32523 WMF_CONFIG_LIBS=`libwmf-config --libs`
32524 for lib in xml2 expat freetype jpeg png z; do
32525 testlib="-l${lib}"
32526 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32527 done
32528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32529$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32530if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32531 $as_echo_n "(cached) " >&6
32532else
32533 ac_check_lib_save_LIBS=$LIBS
32534LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32536/* end confdefs.h. */
32537
32538/* Override any GCC internal prototype to avoid an error.
32539 Use char because int might match the return type of a GCC
32540 builtin and then its argument prototype would still apply. */
32541#ifdef __cplusplus
32542extern "C"
32543#endif
32544char wmf_api_create ();
32545int
32546main ()
32547{
32548return wmf_api_create ();
32549 ;
32550 return 0;
32551}
32552_ACEOF
32553if ac_fn_c_try_link "$LINENO"; then :
32554 ac_cv_lib_wmf_wmf_api_create=yes
32555else
32556 ac_cv_lib_wmf_wmf_api_create=no
32557fi
32558rm -f core conftest.err conftest.$ac_objext \
32559 conftest$ac_exeext conftest.$ac_ext
32560LIBS=$ac_check_lib_save_LIBS
32561fi
32562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32563$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32564if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32565 have_libwmf='yes'
32566fi
32567
32568 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032569
cristy8b350f62009-11-15 23:12:43 +000032570$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032571
cristy03f7cf92011-12-15 01:40:41 +000032572 WMF_LIBS='-lwmf'
32573 LIBS="$WMF_LIBS $LIBS"
32574 have_wmf='yes'
32575 else
32576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32577$as_echo "no -- some components failed test" >&6; }
32578 have_wmf='no (failed tests)'
32579 have_wmflite='no (failed tests)'
32580 LIBS="$OLIBS"
32581 WMF_LIBS=''
32582 fi
glennrp33e524b2011-08-24 17:41:57 +000032583 fi
cristy03f7cf92011-12-15 01:40:41 +000032584 fi
32585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32586$as_echo_n "checking if WMF package is complete... " >&6; }
32587 if test "$have_wmf" = 'yes'; then
32588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32589$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032590 else
cristy03f7cf92011-12-15 01:40:41 +000032591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32592$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032593 fi
cristy3ed852e2009-09-05 21:47:34 +000032594fi
cristy73bd4a52010-10-05 11:24:23 +000032595 if test "$have_wmf" = 'yes'; then
32596 WMF_DELEGATE_TRUE=
32597 WMF_DELEGATE_FALSE='#'
32598else
32599 WMF_DELEGATE_TRUE='#'
32600 WMF_DELEGATE_FALSE=
32601fi
32602
cristy3ed852e2009-09-05 21:47:34 +000032603
32604
32605
cristy81beccd2011-10-03 18:17:24 +000032606
32607
cristy3ed852e2009-09-05 21:47:34 +000032608#
32609# Check for XML delegate library.
32610#
32611
32612# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032613if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032614 withval=$with_xml; with_xml=$withval
32615else
cristyfc3d0222012-02-07 15:05:57 +000032616 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032617fi
32618
32619
cristy81beccd2011-10-03 18:17:24 +000032620if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032621 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32622fi
32623
cristy81beccd2011-10-03 18:17:24 +000032624have_xml='no'
32625XML_LIBS=''
32626if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32628$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32630$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32632$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032633 PERSIST_LDFLAGS=$LDFLAGS
32634 PERSIST_CPPFLAGS=$CPPFLAGS
32635 xml2_config=''
32636 # Extract the first word of "xml2-config", so it can be a program name with args.
32637set dummy xml2-config; ac_word=$2
32638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32639$as_echo_n "checking for $ac_word... " >&6; }
32640if ${ac_cv_path_xml2_config+:} false; then :
32641 $as_echo_n "(cached) " >&6
32642else
32643 case $xml2_config in
32644 [\\/]* | ?:[\\/]*)
32645 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32646 ;;
32647 *)
32648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32649for as_dir in $PATH
32650do
32651 IFS=$as_save_IFS
32652 test -z "$as_dir" && as_dir=.
32653 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032655 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32657 break 2
32658 fi
32659done
32660 done
32661IFS=$as_save_IFS
32662
32663 ;;
32664esac
32665fi
32666xml2_config=$ac_cv_path_xml2_config
32667if test -n "$xml2_config"; then
32668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32669$as_echo "$xml2_config" >&6; }
32670else
32671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32672$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032673fi
32674
cristy81beccd2011-10-03 18:17:24 +000032675 if test -n "$xml2_config"; then
32676 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32677 # the shared library installed under /usr/lib, whereas the package
32678 # installs itself under $prefix/libxml and $prefix/lib.
cristy4a069772014-10-05 19:26:36 +000032679 xml2_prefix=`${xml2_config} --prefix`
cristy81beccd2011-10-03 18:17:24 +000032680 if test -d "${xml2_prefix}/include/libxml2"; then
32681 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32682 fi
32683 if test "${xml2_prefix}" != '/usr'; then
32684 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32685 fi
32686 fi
32687 failed=0
32688 passed=0
32689 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32690if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32691 passed=`expr $passed + 1`
32692else
32693 failed=`expr $failed + 1`
32694fi
32695
32696
32697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32698$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32699if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32700 $as_echo_n "(cached) " >&6
32701else
32702 ac_check_lib_save_LIBS=$LIBS
32703LIBS="-lxml2 $LIBS"
32704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32705/* end confdefs.h. */
32706
32707/* Override any GCC internal prototype to avoid an error.
32708 Use char because int might match the return type of a GCC
32709 builtin and then its argument prototype would still apply. */
32710#ifdef __cplusplus
32711extern "C"
32712#endif
32713char xmlSAXVersion ();
32714int
32715main ()
32716{
32717return xmlSAXVersion ();
32718 ;
32719 return 0;
32720}
32721_ACEOF
32722if ac_fn_c_try_link "$LINENO"; then :
32723 ac_cv_lib_xml2_xmlSAXVersion=yes
32724else
32725 ac_cv_lib_xml2_xmlSAXVersion=no
32726fi
32727rm -f core conftest.err conftest.$ac_objext \
32728 conftest$ac_exeext conftest.$ac_ext
32729LIBS=$ac_check_lib_save_LIBS
32730fi
32731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32732$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32733if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32734 passed=`expr $passed + 1`
32735else
32736 failed=`expr $failed + 1`
32737fi
32738
32739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32740$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32741if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32742 $as_echo_n "(cached) " >&6
32743else
32744 ac_check_lib_save_LIBS=$LIBS
32745LIBS="-lxml2 $LIBS"
32746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32747/* end confdefs.h. */
32748
32749/* Override any GCC internal prototype to avoid an error.
32750 Use char because int might match the return type of a GCC
32751 builtin and then its argument prototype would still apply. */
32752#ifdef __cplusplus
32753extern "C"
32754#endif
32755char xmlParseChunk ();
32756int
32757main ()
32758{
32759return xmlParseChunk ();
32760 ;
32761 return 0;
32762}
32763_ACEOF
32764if ac_fn_c_try_link "$LINENO"; then :
32765 ac_cv_lib_xml2_xmlParseChunk=yes
32766else
32767 ac_cv_lib_xml2_xmlParseChunk=no
32768fi
32769rm -f core conftest.err conftest.$ac_objext \
32770 conftest$ac_exeext conftest.$ac_ext
32771LIBS=$ac_check_lib_save_LIBS
32772fi
32773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32774$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32775if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32776 passed=`expr $passed + 1`
32777else
32778 failed=`expr $failed + 1`
32779fi
32780
32781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32782$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32783if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32784 $as_echo_n "(cached) " >&6
32785else
32786 ac_check_lib_save_LIBS=$LIBS
32787LIBS="-lxml2 $LIBS"
32788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32789/* end confdefs.h. */
32790
32791/* Override any GCC internal prototype to avoid an error.
32792 Use char because int might match the return type of a GCC
32793 builtin and then its argument prototype would still apply. */
32794#ifdef __cplusplus
32795extern "C"
32796#endif
32797char xmlCreatePushParserCtxt ();
32798int
32799main ()
32800{
32801return xmlCreatePushParserCtxt ();
32802 ;
32803 return 0;
32804}
32805_ACEOF
32806if ac_fn_c_try_link "$LINENO"; then :
32807 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32808else
32809 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32810fi
32811rm -f core conftest.err conftest.$ac_objext \
32812 conftest$ac_exeext conftest.$ac_ext
32813LIBS=$ac_check_lib_save_LIBS
32814fi
32815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32816$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32817if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32818 passed=`expr $passed + 1`
32819else
32820 failed=`expr $failed + 1`
32821fi
32822
32823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32824$as_echo_n "checking if XML package is complete... " >&6; }
32825 if test $passed -gt 0; then
32826 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32828$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032829 have_xml='no (failed tests)'
32830 LDFLAGS="$PERSIST_LDFLAGS"
32831 CPPFLAGS="$PERSIST_CPPFLAGS"
32832 else
32833 XML_LIBS='-lxml2'
32834 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032835
cristy8b350f62009-11-15 23:12:43 +000032836$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032837
cristyad38abe2012-12-23 23:03:21 +000032838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32839$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032840 have_xml='yes'
32841 fi
32842 else
cristyad38abe2012-12-23 23:03:21 +000032843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32844$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032845 fi
32846fi
cristy73bd4a52010-10-05 11:24:23 +000032847 if test "$have_xml" = 'yes'; then
32848 XML_DELEGATE_TRUE=
32849 XML_DELEGATE_FALSE='#'
32850else
32851 XML_DELEGATE_TRUE='#'
32852 XML_DELEGATE_FALSE=
32853fi
32854
cristy3ed852e2009-09-05 21:47:34 +000032855
32856
32857
32858# Substitute compiler name to build/link PerlMagick
32859#
32860
32861
32862#
32863# Configure install Paths
32864#
cristy7def36a2011-10-28 19:04:41 +000032865
cristy2a11bef2011-10-28 18:33:11 +000032866# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032867INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032868INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32869DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032870case "${build_os}" in
32871 mingw* )
32872 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32873 ;;
32874esac
32875
32876cat >>confdefs.h <<_ACEOF
32877#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32878_ACEOF
32879
32880
cristy3ed852e2009-09-05 21:47:34 +000032881
cristye52f12f2012-12-31 15:32:36 +000032882# Path to ImageMagick header files (arch part)
32883INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32884DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32885case "${build_os}" in
32886 mingw* )
32887 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32888 ;;
32889esac
32890
32891cat >>confdefs.h <<_ACEOF
32892#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32893_ACEOF
32894
32895
32896
cristy3ed852e2009-09-05 21:47:34 +000032897# Subdirectory under lib to place ImageMagick lib files
32898LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32899
32900cat >>confdefs.h <<_ACEOF
32901#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32902_ACEOF
32903
32904
32905# Path to ImageMagick bin directory
32906EXECUTABLE_PATH="${BIN_DIR}"
32907DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32908case "${build_os}" in
32909 mingw* )
32910 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32911 ;;
32912esac
32913
32914cat >>confdefs.h <<_ACEOF
32915#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32916_ACEOF
32917
32918
32919
32920# Path to ImageMagick lib
32921LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32922DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32923case "${build_os}" in
32924 mingw* )
32925 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32926 ;;
32927esac
32928
32929cat >>confdefs.h <<_ACEOF
32930#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32931_ACEOF
32932
32933
32934
cristy3ed852e2009-09-05 21:47:34 +000032935#
cristy8d0ff762013-03-10 20:33:28 +000032936# path to local binaries
32937if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32938 LIB_BIN_BASEDIRNAME="bin"
32939fi
32940
32941cat >>confdefs.h <<_ACEOF
32942#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32943_ACEOF
32944
32945
32946
32947if test "x$LIB_BIN_DIR" = "x"; then
32948 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32949fi
32950
32951
32952LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32953
32954LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32955
32956
32957#
cristy01ff9f32012-12-01 18:15:29 +000032958# path to modules lib
32959if test "x$MODULES_BASEDIRNAME" = "x"; then
32960 MODULES_BASEDIRNAME="modules"
32961fi
cristy3ed852e2009-09-05 21:47:34 +000032962
32963cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032964#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032965_ACEOF
32966
cristy01ff9f32012-12-01 18:15:29 +000032967
32968
32969if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032970 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32971else
cristy3ed852e2009-09-05 21:47:34 +000032972
32973cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032974#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032975_ACEOF
32976
cristycf4a3c22012-12-02 21:47:25 +000032977fi
cristy01ff9f32012-12-01 18:15:29 +000032978
32979
cristy371d4812012-12-01 19:48:10 +000032980MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032981
32982MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32983
32984
32985#
32986# path to coders lib
32987if test "x$CODER_DIRNAME" = "x"; then
32988 CODER_DIRNAME="coders"
32989fi
32990
32991cat >>confdefs.h <<_ACEOF
32992#define CODER_DIRNAME "$CODER_DIRNAME"
32993_ACEOF
32994
32995
32996
cristy371d4812012-12-01 19:48:10 +000032997CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032998CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032999
33000
33001#
33002# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000033003#
33004# path to coders lib
33005if test "x$FILTER_DIRNAME" = "x"; then
33006 FILTER_DIRNAME="filters"
33007fi
cristy3ed852e2009-09-05 21:47:34 +000033008
33009cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000033010#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000033011_ACEOF
33012
cristy3ed852e2009-09-05 21:47:34 +000033013
cristy3ed852e2009-09-05 21:47:34 +000033014
cristy371d4812012-12-01 19:48:10 +000033015FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000033016FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000033017
33018
33019#
33020# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000033021DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000033022DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
33023DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000033024case "${build_os}" in
33025 mingw* )
33026 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
33027 ;;
33028esac
33029
33030cat >>confdefs.h <<_ACEOF
33031#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
33032_ACEOF
33033
33034
33035
cristydd17feb2014-03-05 02:06:32 +000033036#
33037# Enable/Disable documentation
33038# Check whether --enable-docs was given.
33039if test "${enable_docs+set}" = set; then :
33040 enableval=$enable_docs; wantdocs=$enableval
33041else
cristy02272312014-03-07 00:55:25 +000033042 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000033043fi
33044
cristy02272312014-03-07 00:55:25 +000033045 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000033046 INSTALL_DOC_TRUE=
33047 INSTALL_DOC_FALSE='#'
33048else
33049 INSTALL_DOC_TRUE='#'
33050 INSTALL_DOC_FALSE=
33051fi
33052
33053
cristy2a11bef2011-10-28 18:33:11 +000033054# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000033055CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000033056
33057cat >>confdefs.h <<_ACEOF
33058#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
33059_ACEOF
33060
cristy7def36a2011-10-28 19:04:41 +000033061CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000033062DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
33063case "${build_os}" in
33064 mingw* )
33065 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
33066 ;;
33067esac
33068
33069cat >>confdefs.h <<_ACEOF
33070#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
33071_ACEOF
33072
33073
33074
cristy2a11bef2011-10-28 18:33:11 +000033075# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000033076SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000033077
33078cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000033079#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000033080_ACEOF
33081
cristy670aa3c2011-11-03 00:54:00 +000033082SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000033083DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000033084case "${build_os}" in
33085 mingw* )
cristy4f820712011-04-01 12:35:43 +000033086 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000033087 ;;
33088esac
33089
33090cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000033091#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000033092_ACEOF
33093
33094
33095
cristy54378032012-12-04 15:52:20 +000033096#
33097# Subdirectory to place architecture-dependent configuration files.
33098if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
33099 SHAREARCH_BASEDIRNAME="config"
33100fi
cristy670aa3c2011-11-03 00:54:00 +000033101
33102cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000033103#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000033104_ACEOF
33105
cristy54378032012-12-04 15:52:20 +000033106
33107
33108if test "x$SHAREARCH_DIRNAME" = "x"; then
33109 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33110else
cristy670aa3c2011-11-03 00:54:00 +000033111
33112cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000033113#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000033114_ACEOF
33115
cristy54378032012-12-04 15:52:20 +000033116fi
33117
33118
33119SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
33120
33121SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000033122
33123
cristy3ed852e2009-09-05 21:47:34 +000033124#
33125# program_transform_name is formed for use in a Makefile, so create a
33126# modified version for use in a shell script.
33127configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
33128
33129# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000033130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33131$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000033133$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000033134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33135$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033136AutotraceDecodeDelegateDefault='autotrace'
cristy16b412d2014-12-15 11:09:48 +000033137BPGDecodeDelegateDefault='bpgdec'
33138BPGEncodeDelegateDefault='bpgenc'
cristy3d7f8062009-09-24 20:45:35 +000033139BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000033140BZIPDelegateDefault='bzip2'
33141BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000033142CatDelegateDefault='cat'
33143DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000033144DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000033145GVCDecodeDelegateDefault='dot'
33146DVIDecodeDelegateDefault='dvips'
33147EchoDelegateDefault='echo'
33148EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000033149ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
33150DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
33151MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
33152GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000033153HPGLDecodeDelegateDefault='hp2xx'
33154HTMLDecodeDelegateDefault='html2ps'
33155ILBMDecodeDelegateDefault='ilbmtoppm'
33156ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000033157JXRDecodeDelegateDefault='JxrDecApp'
33158JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000033159LPDelegateDefault='lp'
33160LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000033161LaunchDelegateDefault='gimp'
33162MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000033163MPEGDecodeDelegateDefault='avconv'
33164MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000033165MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000033166MVDelegateDefault='mv'
33167PCLDelegateDefault='pcl6'
33168PGPDecodeDelegateDefault='pgpv'
33169POVDelegateDefault='povray'
33170if test "$native_win32_build" = 'yes'; then
33171 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000033172elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000033173 PSDelegateDefault='gsc'
33174else
33175 PSDelegateDefault='gs'
33176fi
33177RLEEncodeDelegateDefault='rawtorle'
33178RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000033179RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000033180SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000033181SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000033182TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000033183UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000033184WebPDecodeDelegateDefault='dwebp'
33185WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000033186WMFDecodeDelegateDefault='wmf2eps'
33187WWWDecodeDelegateDefault='curl'
33188XPSDelegateDefault='gxps'
33189ZipDelegateDefault='gzip'
33190
33191# Search for delegates
33192# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
33193set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033195$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033196if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033197 $as_echo_n "(cached) " >&6
33198else
33199 case $AutotraceDecodeDelegate in
33200 [\\/]* | ?:[\\/]*)
33201 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
33202 ;;
33203 *)
33204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33205for as_dir in $PATH
33206do
33207 IFS=$as_save_IFS
33208 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033209 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033211 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033213 break 2
33214 fi
33215done
cristy8b350f62009-11-15 23:12:43 +000033216 done
cristy3ed852e2009-09-05 21:47:34 +000033217IFS=$as_save_IFS
33218
33219 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
33220 ;;
33221esac
33222fi
33223AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
33224if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033226$as_echo "$AutotraceDecodeDelegate" >&6; }
33227else
cristy8b350f62009-11-15 23:12:43 +000033228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033229$as_echo "no" >&6; }
33230fi
33231
33232
cristy16b412d2014-12-15 11:09:48 +000033233# Extract the first word of ""$BGPDecodeDelegateDefault"", so it can be a program name with args.
33234set dummy "$BGPDecodeDelegateDefault"; ac_word=$2
33235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33236$as_echo_n "checking for $ac_word... " >&6; }
33237if ${ac_cv_path_BGPDecodeDelegate+:} false; then :
33238 $as_echo_n "(cached) " >&6
33239else
33240 case $BGPDecodeDelegate in
33241 [\\/]* | ?:[\\/]*)
33242 ac_cv_path_BGPDecodeDelegate="$BGPDecodeDelegate" # Let the user override the test with a path.
33243 ;;
33244 *)
33245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33246for as_dir in $PATH
33247do
33248 IFS=$as_save_IFS
33249 test -z "$as_dir" && as_dir=.
33250 for ac_exec_ext in '' $ac_executable_extensions; do
33251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33252 ac_cv_path_BGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33254 break 2
33255 fi
33256done
33257 done
33258IFS=$as_save_IFS
33259
33260 test -z "$ac_cv_path_BGPDecodeDelegate" && ac_cv_path_BGPDecodeDelegate=""$BGPDecodeDelegateDefault""
33261 ;;
33262esac
33263fi
33264BGPDecodeDelegate=$ac_cv_path_BGPDecodeDelegate
33265if test -n "$BGPDecodeDelegate"; then
33266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPDecodeDelegate" >&5
33267$as_echo "$BGPDecodeDelegate" >&6; }
33268else
33269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33270$as_echo "no" >&6; }
33271fi
33272
33273
33274# Extract the first word of ""$BGPEncodeDelegateDefault"", so it can be a program name with args.
33275set dummy "$BGPEncodeDelegateDefault"; ac_word=$2
33276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33277$as_echo_n "checking for $ac_word... " >&6; }
33278if ${ac_cv_path_BGPEncodeDelegate+:} false; then :
33279 $as_echo_n "(cached) " >&6
33280else
33281 case $BGPEncodeDelegate in
33282 [\\/]* | ?:[\\/]*)
33283 ac_cv_path_BGPEncodeDelegate="$BGPEncodeDelegate" # Let the user override the test with a path.
33284 ;;
33285 *)
33286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33287for as_dir in $PATH
33288do
33289 IFS=$as_save_IFS
33290 test -z "$as_dir" && as_dir=.
33291 for ac_exec_ext in '' $ac_executable_extensions; do
33292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33293 ac_cv_path_BGPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33295 break 2
33296 fi
33297done
33298 done
33299IFS=$as_save_IFS
33300
33301 test -z "$ac_cv_path_BGPEncodeDelegate" && ac_cv_path_BGPEncodeDelegate=""$BGPEncodeDelegateDefault""
33302 ;;
33303esac
33304fi
33305BGPEncodeDelegate=$ac_cv_path_BGPEncodeDelegate
33306if test -n "$BGPEncodeDelegate"; then
33307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPEncodeDelegate" >&5
33308$as_echo "$BGPEncodeDelegate" >&6; }
33309else
33310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33311$as_echo "no" >&6; }
33312fi
33313
33314
cristy3ed852e2009-09-05 21:47:34 +000033315# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
33316set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033318$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033319if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033320 $as_echo_n "(cached) " >&6
33321else
33322 case $BlenderDecodeDelegate in
33323 [\\/]* | ?:[\\/]*)
33324 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
33325 ;;
33326 *)
33327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33328for as_dir in $PATH
33329do
33330 IFS=$as_save_IFS
33331 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033332 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033334 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033336 break 2
33337 fi
33338done
cristy8b350f62009-11-15 23:12:43 +000033339 done
cristy3ed852e2009-09-05 21:47:34 +000033340IFS=$as_save_IFS
33341
33342 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33343 ;;
33344esac
33345fi
33346BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33347if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033349$as_echo "$BlenderDecodeDelegate" >&6; }
33350else
cristy8b350f62009-11-15 23:12:43 +000033351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033352$as_echo "no" >&6; }
33353fi
33354
33355
33356# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33357set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033359$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033360if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033361 $as_echo_n "(cached) " >&6
33362else
33363 case $BZIPDelegate in
33364 [\\/]* | ?:[\\/]*)
33365 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33366 ;;
33367 *)
33368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33369for as_dir in $PATH
33370do
33371 IFS=$as_save_IFS
33372 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033373 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033375 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033377 break 2
33378 fi
33379done
cristy8b350f62009-11-15 23:12:43 +000033380 done
cristy3ed852e2009-09-05 21:47:34 +000033381IFS=$as_save_IFS
33382
33383 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33384 ;;
33385esac
33386fi
33387BZIPDelegate=$ac_cv_path_BZIPDelegate
33388if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033390$as_echo "$BZIPDelegate" >&6; }
33391else
cristy8b350f62009-11-15 23:12:43 +000033392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033393$as_echo "no" >&6; }
33394fi
33395
33396
cristyc59f0e72012-08-27 12:59:33 +000033397for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33398do
33399 # Extract the first word of "$ac_prog", so it can be a program name with args.
33400set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033402$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033403if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033404 $as_echo_n "(cached) " >&6
33405else
33406 case $BrowseDelegate in
33407 [\\/]* | ?:[\\/]*)
33408 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33409 ;;
33410 *)
33411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33412for as_dir in $PATH
33413do
33414 IFS=$as_save_IFS
33415 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033416 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033418 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033420 break 2
33421 fi
33422done
cristy8b350f62009-11-15 23:12:43 +000033423 done
cristy3ed852e2009-09-05 21:47:34 +000033424IFS=$as_save_IFS
33425
cristy3ed852e2009-09-05 21:47:34 +000033426 ;;
33427esac
33428fi
33429BrowseDelegate=$ac_cv_path_BrowseDelegate
33430if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033432$as_echo "$BrowseDelegate" >&6; }
33433else
cristy8b350f62009-11-15 23:12:43 +000033434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033435$as_echo "no" >&6; }
33436fi
33437
33438
cristyc59f0e72012-08-27 12:59:33 +000033439 test -n "$BrowseDelegate" && break
33440done
33441test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33442
cristy3ed852e2009-09-05 21:47:34 +000033443# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33444set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033446$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033447if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033448 $as_echo_n "(cached) " >&6
33449else
33450 case $CatDelegate in
33451 [\\/]* | ?:[\\/]*)
33452 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33453 ;;
33454 *)
33455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33456for as_dir in $PATH
33457do
33458 IFS=$as_save_IFS
33459 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033460 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033462 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033464 break 2
33465 fi
33466done
cristy8b350f62009-11-15 23:12:43 +000033467 done
cristy3ed852e2009-09-05 21:47:34 +000033468IFS=$as_save_IFS
33469
33470 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33471 ;;
33472esac
33473fi
33474CatDelegate=$ac_cv_path_CatDelegate
33475if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033477$as_echo "$CatDelegate" >&6; }
33478else
cristy8b350f62009-11-15 23:12:43 +000033479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033480$as_echo "no" >&6; }
33481fi
33482
33483
33484# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33485set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033487$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033488if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033489 $as_echo_n "(cached) " >&6
33490else
33491 case $DNGDecodeDelegate in
33492 [\\/]* | ?:[\\/]*)
33493 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33494 ;;
33495 *)
33496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33497for as_dir in $PATH
33498do
33499 IFS=$as_save_IFS
33500 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033501 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033503 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033505 break 2
33506 fi
33507done
cristy8b350f62009-11-15 23:12:43 +000033508 done
cristy3ed852e2009-09-05 21:47:34 +000033509IFS=$as_save_IFS
33510
33511 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33512 ;;
33513esac
33514fi
33515DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33516if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033518$as_echo "$DNGDecodeDelegate" >&6; }
33519else
cristy8b350f62009-11-15 23:12:43 +000033520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033521$as_echo "no" >&6; }
33522fi
33523
33524
cristy66f238e2014-05-16 12:21:48 +000033525# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
33526set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033528$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033529if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033530 $as_echo_n "(cached) " >&6
33531else
cristy66f238e2014-05-16 12:21:48 +000033532 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033533 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033534 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033535 ;;
33536 *)
33537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33538for as_dir in $PATH
33539do
33540 IFS=$as_save_IFS
33541 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033542 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033544 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033546 break 2
33547 fi
33548done
cristy8b350f62009-11-15 23:12:43 +000033549 done
cristy3ed852e2009-09-05 21:47:34 +000033550IFS=$as_save_IFS
33551
cristy66f238e2014-05-16 12:21:48 +000033552 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033553 ;;
33554esac
33555fi
cristy66f238e2014-05-16 12:21:48 +000033556DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33557if test -n "$DOCDecodeDelegate"; then
33558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33559$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033560else
cristy8b350f62009-11-15 23:12:43 +000033561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033562$as_echo "no" >&6; }
33563fi
33564
33565
33566# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33567set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033569$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033570if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033571 $as_echo_n "(cached) " >&6
33572else
33573 case $DVIDecodeDelegate in
33574 [\\/]* | ?:[\\/]*)
33575 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33576 ;;
33577 *)
33578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33579for as_dir in $PATH
33580do
33581 IFS=$as_save_IFS
33582 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033583 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033585 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033587 break 2
33588 fi
33589done
cristy8b350f62009-11-15 23:12:43 +000033590 done
cristy3ed852e2009-09-05 21:47:34 +000033591IFS=$as_save_IFS
33592
33593 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33594 ;;
33595esac
33596fi
33597DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33598if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033600$as_echo "$DVIDecodeDelegate" >&6; }
33601else
cristy8b350f62009-11-15 23:12:43 +000033602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033603$as_echo "no" >&6; }
33604fi
33605
33606
cristy3ed852e2009-09-05 21:47:34 +000033607# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33608set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033610$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033611if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033612 $as_echo_n "(cached) " >&6
33613else
33614 case $ConvertDelegate in
33615 [\\/]* | ?:[\\/]*)
33616 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33617 ;;
33618 *)
33619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33620for as_dir in $PATH
33621do
33622 IFS=$as_save_IFS
33623 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033624 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033626 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033628 break 2
33629 fi
33630done
cristy8b350f62009-11-15 23:12:43 +000033631 done
cristy3ed852e2009-09-05 21:47:34 +000033632IFS=$as_save_IFS
33633
33634 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33635 ;;
33636esac
33637fi
33638ConvertDelegate=$ac_cv_path_ConvertDelegate
33639if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033641$as_echo "$ConvertDelegate" >&6; }
33642else
cristy8b350f62009-11-15 23:12:43 +000033643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033644$as_echo "no" >&6; }
33645fi
33646
33647
33648# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33649set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033651$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033652if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033653 $as_echo_n "(cached) " >&6
33654else
33655 case $DisplayDelegate in
33656 [\\/]* | ?:[\\/]*)
33657 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33658 ;;
33659 *)
33660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33661for as_dir in $PATH
33662do
33663 IFS=$as_save_IFS
33664 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033665 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033667 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033669 break 2
33670 fi
33671done
cristy8b350f62009-11-15 23:12:43 +000033672 done
cristy3ed852e2009-09-05 21:47:34 +000033673IFS=$as_save_IFS
33674
33675 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33676 ;;
33677esac
33678fi
33679DisplayDelegate=$ac_cv_path_DisplayDelegate
33680if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033682$as_echo "$DisplayDelegate" >&6; }
33683else
cristy8b350f62009-11-15 23:12:43 +000033684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033685$as_echo "no" >&6; }
33686fi
33687
33688
cristy66f238e2014-05-16 12:21:48 +000033689# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33690set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033692$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033693if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033694 $as_echo_n "(cached) " >&6
33695else
cristy66f238e2014-05-16 12:21:48 +000033696 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033697 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033698 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033699 ;;
33700 *)
33701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33702for as_dir in $PATH
33703do
33704 IFS=$as_save_IFS
33705 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033706 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033708 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033710 break 2
33711 fi
33712done
cristy8b350f62009-11-15 23:12:43 +000033713 done
cristy3ed852e2009-09-05 21:47:34 +000033714IFS=$as_save_IFS
33715
cristy66f238e2014-05-16 12:21:48 +000033716 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033717 ;;
33718esac
33719fi
cristy66f238e2014-05-16 12:21:48 +000033720EchoDelegate=$ac_cv_path_EchoDelegate
33721if test -n "$EchoDelegate"; then
33722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33723$as_echo "$EchoDelegate" >&6; }
33724else
33725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33726$as_echo "no" >&6; }
33727fi
33728
33729
33730# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33731set dummy "$EditorDelegateDefault"; ac_word=$2
33732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33733$as_echo_n "checking for $ac_word... " >&6; }
33734if ${ac_cv_path_EditorDelegate+:} false; then :
33735 $as_echo_n "(cached) " >&6
33736else
33737 case $EditorDelegate in
33738 [\\/]* | ?:[\\/]*)
33739 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33740 ;;
33741 *)
33742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33743for as_dir in $PATH
33744do
33745 IFS=$as_save_IFS
33746 test -z "$as_dir" && as_dir=.
33747 for ac_exec_ext in '' $ac_executable_extensions; do
33748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33749 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33751 break 2
33752 fi
33753done
33754 done
33755IFS=$as_save_IFS
33756
33757 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33758 ;;
33759esac
33760fi
33761EditorDelegate=$ac_cv_path_EditorDelegate
33762if test -n "$EditorDelegate"; then
33763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33764$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033765else
cristy8b350f62009-11-15 23:12:43 +000033766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033767$as_echo "no" >&6; }
33768fi
33769
33770
33771# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33772set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033774$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033775if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033776 $as_echo_n "(cached) " >&6
33777else
33778 case $GnuplotDecodeDelegate in
33779 [\\/]* | ?:[\\/]*)
33780 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33781 ;;
33782 *)
33783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33784for as_dir in $PATH
33785do
33786 IFS=$as_save_IFS
33787 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033788 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033790 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033792 break 2
33793 fi
33794done
cristy8b350f62009-11-15 23:12:43 +000033795 done
cristy3ed852e2009-09-05 21:47:34 +000033796IFS=$as_save_IFS
33797
33798 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33799 ;;
33800esac
33801fi
33802GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33803if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033805$as_echo "$GnuplotDecodeDelegate" >&6; }
33806else
cristy8b350f62009-11-15 23:12:43 +000033807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033808$as_echo "no" >&6; }
33809fi
33810
33811
cristy66f238e2014-05-16 12:21:48 +000033812# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33813set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33815$as_echo_n "checking for $ac_word... " >&6; }
33816if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33817 $as_echo_n "(cached) " >&6
33818else
33819 case $GVCDecodeDelegate in
33820 [\\/]* | ?:[\\/]*)
33821 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33822 ;;
33823 *)
33824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33825for as_dir in $PATH
33826do
33827 IFS=$as_save_IFS
33828 test -z "$as_dir" && as_dir=.
33829 for ac_exec_ext in '' $ac_executable_extensions; do
33830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33831 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33833 break 2
33834 fi
33835done
33836 done
33837IFS=$as_save_IFS
33838
33839 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33840 ;;
33841esac
33842fi
33843GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33844if test -n "$GVCDecodeDelegate"; then
33845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33846$as_echo "$GVCDecodeDelegate" >&6; }
33847else
33848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33849$as_echo "no" >&6; }
33850fi
33851
33852
cristy3ed852e2009-09-05 21:47:34 +000033853# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33854set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033856$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033857if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033858 $as_echo_n "(cached) " >&6
33859else
33860 case $HPGLDecodeDelegate in
33861 [\\/]* | ?:[\\/]*)
33862 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33863 ;;
33864 *)
33865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33866for as_dir in $PATH
33867do
33868 IFS=$as_save_IFS
33869 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033872 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033874 break 2
33875 fi
33876done
cristy8b350f62009-11-15 23:12:43 +000033877 done
cristy3ed852e2009-09-05 21:47:34 +000033878IFS=$as_save_IFS
33879
33880 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33881 ;;
33882esac
33883fi
33884HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33885if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033887$as_echo "$HPGLDecodeDelegate" >&6; }
33888else
cristy8b350f62009-11-15 23:12:43 +000033889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033890$as_echo "no" >&6; }
33891fi
33892
33893
33894# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33895set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033897$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033898if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033899 $as_echo_n "(cached) " >&6
33900else
33901 case $HTMLDecodeDelegate in
33902 [\\/]* | ?:[\\/]*)
33903 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33904 ;;
33905 *)
33906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33907for as_dir in $PATH
33908do
33909 IFS=$as_save_IFS
33910 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033911 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033913 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033915 break 2
33916 fi
33917done
cristy8b350f62009-11-15 23:12:43 +000033918 done
cristy3ed852e2009-09-05 21:47:34 +000033919IFS=$as_save_IFS
33920
33921 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33922 ;;
33923esac
33924fi
33925HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33926if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033928$as_echo "$HTMLDecodeDelegate" >&6; }
33929else
cristy8b350f62009-11-15 23:12:43 +000033930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033931$as_echo "no" >&6; }
33932fi
33933
33934
33935# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33936set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033938$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033939if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033940 $as_echo_n "(cached) " >&6
33941else
33942 case $ILBMDecodeDelegate in
33943 [\\/]* | ?:[\\/]*)
33944 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33945 ;;
33946 *)
33947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33948for as_dir in $PATH
33949do
33950 IFS=$as_save_IFS
33951 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033952 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033954 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033956 break 2
33957 fi
33958done
cristy8b350f62009-11-15 23:12:43 +000033959 done
cristy3ed852e2009-09-05 21:47:34 +000033960IFS=$as_save_IFS
33961
33962 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33963 ;;
33964esac
33965fi
33966ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33967if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033969$as_echo "$ILBMDecodeDelegate" >&6; }
33970else
cristy8b350f62009-11-15 23:12:43 +000033971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033972$as_echo "no" >&6; }
33973fi
33974
33975
33976# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33977set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033979$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033980if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033981 $as_echo_n "(cached) " >&6
33982else
33983 case $ILBMEncodeDelegate in
33984 [\\/]* | ?:[\\/]*)
33985 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33986 ;;
33987 *)
33988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33989for as_dir in $PATH
33990do
33991 IFS=$as_save_IFS
33992 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033993 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033995 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033997 break 2
33998 fi
33999done
cristy8b350f62009-11-15 23:12:43 +000034000 done
cristy3ed852e2009-09-05 21:47:34 +000034001IFS=$as_save_IFS
34002
34003 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
34004 ;;
34005esac
34006fi
34007ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
34008if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034010$as_echo "$ILBMEncodeDelegate" >&6; }
34011else
cristy8b350f62009-11-15 23:12:43 +000034012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034013$as_echo "no" >&6; }
34014fi
34015
34016
cristy71f53d52013-04-27 13:33:59 +000034017# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
34018set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
34019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34020$as_echo_n "checking for $ac_word... " >&6; }
34021if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
34022 $as_echo_n "(cached) " >&6
34023else
34024 case $JXRDecodeDelegate in
34025 [\\/]* | ?:[\\/]*)
34026 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
34027 ;;
34028 *)
34029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34030for as_dir in $PATH
34031do
34032 IFS=$as_save_IFS
34033 test -z "$as_dir" && as_dir=.
34034 for ac_exec_ext in '' $ac_executable_extensions; do
34035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34036 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34038 break 2
34039 fi
34040done
34041 done
34042IFS=$as_save_IFS
34043
34044 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
34045 ;;
34046esac
34047fi
34048JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
34049if test -n "$JXRDecodeDelegate"; then
34050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
34051$as_echo "$JXRDecodeDelegate" >&6; }
34052else
34053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34054$as_echo "no" >&6; }
34055fi
34056
34057
34058# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
34059set dummy "$JXREncodeDelegateDefault"; ac_word=$2
34060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34061$as_echo_n "checking for $ac_word... " >&6; }
34062if ${ac_cv_path_JXREncodeDelegate+:} false; then :
34063 $as_echo_n "(cached) " >&6
34064else
34065 case $JXREncodeDelegate in
34066 [\\/]* | ?:[\\/]*)
34067 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
34068 ;;
34069 *)
34070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34071for as_dir in $PATH
34072do
34073 IFS=$as_save_IFS
34074 test -z "$as_dir" && as_dir=.
34075 for ac_exec_ext in '' $ac_executable_extensions; do
34076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34077 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34079 break 2
34080 fi
34081done
34082 done
34083IFS=$as_save_IFS
34084
34085 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
34086 ;;
34087esac
34088fi
34089JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
34090if test -n "$JXREncodeDelegate"; then
34091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
34092$as_echo "$JXREncodeDelegate" >&6; }
34093else
34094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34095$as_echo "no" >&6; }
34096fi
34097
34098
cristy3ed852e2009-09-05 21:47:34 +000034099# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
34100set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034102$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034103if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034104 $as_echo_n "(cached) " >&6
34105else
34106 case $LPDelegate in
34107 [\\/]* | ?:[\\/]*)
34108 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
34109 ;;
34110 *)
34111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34112for as_dir in $PATH
34113do
34114 IFS=$as_save_IFS
34115 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034116 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034118 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034120 break 2
34121 fi
34122done
cristy8b350f62009-11-15 23:12:43 +000034123 done
cristy3ed852e2009-09-05 21:47:34 +000034124IFS=$as_save_IFS
34125
34126 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
34127 ;;
34128esac
34129fi
34130LPDelegate=$ac_cv_path_LPDelegate
34131if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034133$as_echo "$LPDelegate" >&6; }
34134else
cristy8b350f62009-11-15 23:12:43 +000034135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034136$as_echo "no" >&6; }
34137fi
34138
34139
34140# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
34141set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034143$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034144if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034145 $as_echo_n "(cached) " >&6
34146else
34147 case $LPRDelegate in
34148 [\\/]* | ?:[\\/]*)
34149 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
34150 ;;
34151 *)
34152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34153for as_dir in $PATH
34154do
34155 IFS=$as_save_IFS
34156 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034157 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034159 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034161 break 2
34162 fi
34163done
cristy8b350f62009-11-15 23:12:43 +000034164 done
cristy3ed852e2009-09-05 21:47:34 +000034165IFS=$as_save_IFS
34166
34167 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
34168 ;;
34169esac
34170fi
34171LPRDelegate=$ac_cv_path_LPRDelegate
34172if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034174$as_echo "$LPRDelegate" >&6; }
34175else
cristy8b350f62009-11-15 23:12:43 +000034176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034177$as_echo "no" >&6; }
34178fi
34179
34180
cristy3ed852e2009-09-05 21:47:34 +000034181# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
34182set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034184$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034185if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034186 $as_echo_n "(cached) " >&6
34187else
34188 case $LaunchDelegate in
34189 [\\/]* | ?:[\\/]*)
34190 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
34191 ;;
34192 *)
34193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34194for as_dir in $PATH
34195do
34196 IFS=$as_save_IFS
34197 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034198 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034200 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034202 break 2
34203 fi
34204done
cristy8b350f62009-11-15 23:12:43 +000034205 done
cristy3ed852e2009-09-05 21:47:34 +000034206IFS=$as_save_IFS
34207
34208 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
34209 ;;
34210esac
34211fi
34212LaunchDelegate=$ac_cv_path_LaunchDelegate
34213if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034215$as_echo "$LaunchDelegate" >&6; }
34216else
cristy8b350f62009-11-15 23:12:43 +000034217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034218$as_echo "no" >&6; }
34219fi
34220
34221
34222# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
34223set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034225$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034226if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034227 $as_echo_n "(cached) " >&6
34228else
34229 case $MANDelegate in
34230 [\\/]* | ?:[\\/]*)
34231 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
34232 ;;
34233 *)
34234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34235for as_dir in $PATH
34236do
34237 IFS=$as_save_IFS
34238 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034239 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034241 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034243 break 2
34244 fi
34245done
cristy8b350f62009-11-15 23:12:43 +000034246 done
cristy3ed852e2009-09-05 21:47:34 +000034247IFS=$as_save_IFS
34248
34249 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
34250 ;;
34251esac
34252fi
34253MANDelegate=$ac_cv_path_MANDelegate
34254if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034256$as_echo "$MANDelegate" >&6; }
34257else
cristy8b350f62009-11-15 23:12:43 +000034258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034259$as_echo "no" >&6; }
34260fi
34261
34262
cristy66f238e2014-05-16 12:21:48 +000034263# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
34264set dummy "$MogrifyDelegateDefault"; ac_word=$2
34265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34266$as_echo_n "checking for $ac_word... " >&6; }
34267if ${ac_cv_path_MogrifyDelegate+:} false; then :
34268 $as_echo_n "(cached) " >&6
34269else
34270 case $MogrifyDelegate in
34271 [\\/]* | ?:[\\/]*)
34272 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
34273 ;;
34274 *)
34275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34276for as_dir in $PATH
34277do
34278 IFS=$as_save_IFS
34279 test -z "$as_dir" && as_dir=.
34280 for ac_exec_ext in '' $ac_executable_extensions; do
34281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34282 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
34283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34284 break 2
34285 fi
34286done
34287 done
34288IFS=$as_save_IFS
34289
34290 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
34291 ;;
34292esac
34293fi
34294MogrifyDelegate=$ac_cv_path_MogrifyDelegate
34295if test -n "$MogrifyDelegate"; then
34296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
34297$as_echo "$MogrifyDelegate" >&6; }
34298else
34299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34300$as_echo "no" >&6; }
34301fi
34302
34303
cristy3ed852e2009-09-05 21:47:34 +000034304# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34305set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034307$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034308if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034309 $as_echo_n "(cached) " >&6
34310else
34311 case $MPEGDecodeDelegate in
34312 [\\/]* | ?:[\\/]*)
34313 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34314 ;;
34315 *)
34316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34317for as_dir in $PATH
34318do
34319 IFS=$as_save_IFS
34320 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034321 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034323 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034325 break 2
34326 fi
34327done
cristy8b350f62009-11-15 23:12:43 +000034328 done
cristy3ed852e2009-09-05 21:47:34 +000034329IFS=$as_save_IFS
34330
34331 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34332 ;;
34333esac
34334fi
34335MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34336if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034338$as_echo "$MPEGDecodeDelegate" >&6; }
34339else
cristy8b350f62009-11-15 23:12:43 +000034340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034341$as_echo "no" >&6; }
34342fi
34343
34344
cristy058d15f2014-08-21 18:53:03 +000034345if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034346 MPEGDecodeDelegateDefault='ffmpeg'
34347 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34348set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
34349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34350$as_echo_n "checking for $ac_word... " >&6; }
34351if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
34352 $as_echo_n "(cached) " >&6
34353else
34354 case $MPEGDecodeDelegate in
34355 [\\/]* | ?:[\\/]*)
34356 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34357 ;;
34358 *)
34359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34360for as_dir in $PATH
34361do
34362 IFS=$as_save_IFS
34363 test -z "$as_dir" && as_dir=.
34364 for ac_exec_ext in '' $ac_executable_extensions; do
34365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34366 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34368 break 2
34369 fi
34370done
34371 done
34372IFS=$as_save_IFS
34373
34374 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34375 ;;
34376esac
34377fi
34378MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34379if test -n "$MPEGDecodeDelegate"; then
34380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
34381$as_echo "$MPEGDecodeDelegate" >&6; }
34382else
34383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34384$as_echo "no" >&6; }
34385fi
34386
34387
34388fi;
cristy3ed852e2009-09-05 21:47:34 +000034389# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34390set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034392$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034393if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034394 $as_echo_n "(cached) " >&6
34395else
34396 case $MPEGEncodeDelegate in
34397 [\\/]* | ?:[\\/]*)
34398 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34399 ;;
34400 *)
34401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34402for as_dir in $PATH
34403do
34404 IFS=$as_save_IFS
34405 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034406 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034408 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034410 break 2
34411 fi
34412done
cristy8b350f62009-11-15 23:12:43 +000034413 done
cristy3ed852e2009-09-05 21:47:34 +000034414IFS=$as_save_IFS
34415
34416 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34417 ;;
34418esac
34419fi
34420MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34421if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034423$as_echo "$MPEGEncodeDelegate" >&6; }
34424else
cristy8b350f62009-11-15 23:12:43 +000034425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034426$as_echo "no" >&6; }
34427fi
34428
34429
cristy058d15f2014-08-21 18:53:03 +000034430if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034431 MPEGEncodeDelegateDefault='ffmpeg'
34432 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34433set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34435$as_echo_n "checking for $ac_word... " >&6; }
34436if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34437 $as_echo_n "(cached) " >&6
34438else
34439 case $MPEGEncodeDelegate in
34440 [\\/]* | ?:[\\/]*)
34441 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34442 ;;
34443 *)
34444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34445for as_dir in $PATH
34446do
34447 IFS=$as_save_IFS
34448 test -z "$as_dir" && as_dir=.
34449 for ac_exec_ext in '' $ac_executable_extensions; do
34450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34451 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34453 break 2
34454 fi
34455done
34456 done
34457IFS=$as_save_IFS
34458
34459 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34460 ;;
34461esac
34462fi
34463MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34464if test -n "$MPEGEncodeDelegate"; then
34465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34466$as_echo "$MPEGEncodeDelegate" >&6; }
34467else
34468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34469$as_echo "no" >&6; }
34470fi
34471
34472
34473fi;
cristy935c86e2010-06-05 23:50:07 +000034474# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34475set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34477$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034478if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034479 $as_echo_n "(cached) " >&6
34480else
34481 case $MrSIDDecodeDelegate in
34482 [\\/]* | ?:[\\/]*)
34483 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34484 ;;
34485 *)
34486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34487for as_dir in $PATH
34488do
34489 IFS=$as_save_IFS
34490 test -z "$as_dir" && as_dir=.
34491 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034493 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34495 break 2
34496 fi
34497done
34498 done
34499IFS=$as_save_IFS
34500
34501 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34502 ;;
34503esac
34504fi
34505MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34506if test -n "$MrSIDDecodeDelegate"; then
34507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34508$as_echo "$MrSIDDecodeDelegate" >&6; }
34509else
34510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34511$as_echo "no" >&6; }
34512fi
34513
34514
cristy3ed852e2009-09-05 21:47:34 +000034515# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34516set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034518$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034519if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034520 $as_echo_n "(cached) " >&6
34521else
34522 case $MVDelegate in
34523 [\\/]* | ?:[\\/]*)
34524 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34525 ;;
34526 *)
34527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34528for as_dir in $PATH
34529do
34530 IFS=$as_save_IFS
34531 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034532 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034534 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034536 break 2
34537 fi
34538done
cristy8b350f62009-11-15 23:12:43 +000034539 done
cristy3ed852e2009-09-05 21:47:34 +000034540IFS=$as_save_IFS
34541
34542 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34543 ;;
34544esac
34545fi
34546MVDelegate=$ac_cv_path_MVDelegate
34547if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034549$as_echo "$MVDelegate" >&6; }
34550else
cristy8b350f62009-11-15 23:12:43 +000034551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034552$as_echo "no" >&6; }
34553fi
34554
34555
34556# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34557set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034559$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034560if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034561 $as_echo_n "(cached) " >&6
34562else
34563 case $PCLDelegate in
34564 [\\/]* | ?:[\\/]*)
34565 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34566 ;;
34567 *)
34568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34569for as_dir in $PATH
34570do
34571 IFS=$as_save_IFS
34572 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034573 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034575 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034577 break 2
34578 fi
34579done
cristy8b350f62009-11-15 23:12:43 +000034580 done
cristy3ed852e2009-09-05 21:47:34 +000034581IFS=$as_save_IFS
34582
34583 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34584 ;;
34585esac
34586fi
34587PCLDelegate=$ac_cv_path_PCLDelegate
34588if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034590$as_echo "$PCLDelegate" >&6; }
34591else
cristy8b350f62009-11-15 23:12:43 +000034592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034593$as_echo "no" >&6; }
34594fi
34595
34596
34597# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34598set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034600$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034601if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034602 $as_echo_n "(cached) " >&6
34603else
34604 case $PGPDecodeDelegate in
34605 [\\/]* | ?:[\\/]*)
34606 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34607 ;;
34608 *)
34609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34610for as_dir in $PATH
34611do
34612 IFS=$as_save_IFS
34613 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034614 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034616 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034618 break 2
34619 fi
34620done
cristy8b350f62009-11-15 23:12:43 +000034621 done
cristy3ed852e2009-09-05 21:47:34 +000034622IFS=$as_save_IFS
34623
34624 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34625 ;;
34626esac
34627fi
34628PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34629if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034631$as_echo "$PGPDecodeDelegate" >&6; }
34632else
cristy8b350f62009-11-15 23:12:43 +000034633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034634$as_echo "no" >&6; }
34635fi
34636
34637
34638# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34639set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034641$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034642if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034643 $as_echo_n "(cached) " >&6
34644else
34645 case $POVDelegate in
34646 [\\/]* | ?:[\\/]*)
34647 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34648 ;;
34649 *)
34650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34651for as_dir in $PATH
34652do
34653 IFS=$as_save_IFS
34654 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034655 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034657 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034659 break 2
34660 fi
34661done
cristy8b350f62009-11-15 23:12:43 +000034662 done
cristy3ed852e2009-09-05 21:47:34 +000034663IFS=$as_save_IFS
34664
34665 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34666 ;;
34667esac
34668fi
34669POVDelegate=$ac_cv_path_POVDelegate
34670if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034672$as_echo "$POVDelegate" >&6; }
34673else
cristy8b350f62009-11-15 23:12:43 +000034674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034675$as_echo "no" >&6; }
34676fi
34677
34678
34679for ac_prog in gsx gsc "$PSDelegateDefault"
34680do
34681 # Extract the first word of "$ac_prog", so it can be a program name with args.
34682set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034684$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034685if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034686 $as_echo_n "(cached) " >&6
34687else
34688 case $PSDelegate in
34689 [\\/]* | ?:[\\/]*)
34690 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34691 ;;
34692 *)
34693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34694for as_dir in $PATH
34695do
34696 IFS=$as_save_IFS
34697 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034698 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034700 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034702 break 2
34703 fi
34704done
cristy8b350f62009-11-15 23:12:43 +000034705 done
cristy3ed852e2009-09-05 21:47:34 +000034706IFS=$as_save_IFS
34707
34708 ;;
34709esac
34710fi
34711PSDelegate=$ac_cv_path_PSDelegate
34712if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034714$as_echo "$PSDelegate" >&6; }
34715else
cristy8b350f62009-11-15 23:12:43 +000034716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034717$as_echo "no" >&6; }
34718fi
34719
34720
34721 test -n "$PSDelegate" && break
34722done
34723test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34724
34725# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34726set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034728$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034729if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034730 $as_echo_n "(cached) " >&6
34731else
34732 case $RLEEncodeDelegate in
34733 [\\/]* | ?:[\\/]*)
34734 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34735 ;;
34736 *)
34737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34738for as_dir in $PATH
34739do
34740 IFS=$as_save_IFS
34741 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034742 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034744 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034746 break 2
34747 fi
34748done
cristy8b350f62009-11-15 23:12:43 +000034749 done
cristy3ed852e2009-09-05 21:47:34 +000034750IFS=$as_save_IFS
34751
34752 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34753 ;;
34754esac
34755fi
34756RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34757if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034759$as_echo "$RLEEncodeDelegate" >&6; }
34760else
cristy8b350f62009-11-15 23:12:43 +000034761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034762$as_echo "no" >&6; }
34763fi
34764
34765
34766# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34767set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034769$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034770if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034771 $as_echo_n "(cached) " >&6
34772else
34773 case $RMDelegate in
34774 [\\/]* | ?:[\\/]*)
34775 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34776 ;;
34777 *)
34778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34779for as_dir in $PATH
34780do
34781 IFS=$as_save_IFS
34782 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034783 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034785 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034787 break 2
34788 fi
34789done
cristy8b350f62009-11-15 23:12:43 +000034790 done
cristy3ed852e2009-09-05 21:47:34 +000034791IFS=$as_save_IFS
34792
34793 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34794 ;;
34795esac
34796fi
34797RMDelegate=$ac_cv_path_RMDelegate
34798if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034800$as_echo "$RMDelegate" >&6; }
34801else
cristy8b350f62009-11-15 23:12:43 +000034802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034803$as_echo "no" >&6; }
34804fi
34805
34806
cristy4689cf02010-02-17 21:15:45 +000034807# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34808set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34810$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034811if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034812 $as_echo_n "(cached) " >&6
34813else
34814 case $RSVGDecodeDelegate in
34815 [\\/]* | ?:[\\/]*)
34816 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34817 ;;
34818 *)
34819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34820for as_dir in $PATH
34821do
34822 IFS=$as_save_IFS
34823 test -z "$as_dir" && as_dir=.
34824 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034826 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34828 break 2
34829 fi
34830done
34831 done
34832IFS=$as_save_IFS
34833
34834 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34835 ;;
34836esac
34837fi
34838RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34839if test -n "$RSVGDecodeDelegate"; then
34840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34841$as_echo "$RSVGDecodeDelegate" >&6; }
34842else
34843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34844$as_echo "no" >&6; }
34845fi
34846
34847
cristy3ed852e2009-09-05 21:47:34 +000034848# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34849set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034851$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034852if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034853 $as_echo_n "(cached) " >&6
34854else
34855 case $SCANDecodeDelegate in
34856 [\\/]* | ?:[\\/]*)
34857 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34858 ;;
34859 *)
34860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34861for as_dir in $PATH
34862do
34863 IFS=$as_save_IFS
34864 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034865 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034867 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034869 break 2
34870 fi
34871done
cristy8b350f62009-11-15 23:12:43 +000034872 done
cristy3ed852e2009-09-05 21:47:34 +000034873IFS=$as_save_IFS
34874
34875 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34876 ;;
34877esac
34878fi
34879SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34880if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034882$as_echo "$SCANDecodeDelegate" >&6; }
34883else
cristy8b350f62009-11-15 23:12:43 +000034884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034885$as_echo "no" >&6; }
34886fi
34887
34888
cristyec6934f2012-08-14 18:38:40 +000034889# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34890set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34892$as_echo_n "checking for $ac_word... " >&6; }
34893if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34894 $as_echo_n "(cached) " >&6
34895else
34896 case $SVGDecodeDelegate in
34897 [\\/]* | ?:[\\/]*)
34898 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34899 ;;
34900 *)
34901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34902for as_dir in $PATH
34903do
34904 IFS=$as_save_IFS
34905 test -z "$as_dir" && as_dir=.
34906 for ac_exec_ext in '' $ac_executable_extensions; do
34907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34908 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34910 break 2
34911 fi
34912done
34913 done
34914IFS=$as_save_IFS
34915
34916 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34917 ;;
34918esac
34919fi
34920SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34921if test -n "$SVGDecodeDelegate"; then
34922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34923$as_echo "$SVGDecodeDelegate" >&6; }
34924else
34925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34926$as_echo "no" >&6; }
34927fi
34928
34929
cristy3ed852e2009-09-05 21:47:34 +000034930# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34931set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034933$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034934if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034935 $as_echo_n "(cached) " >&6
34936else
34937 case $TXTDelegate in
34938 [\\/]* | ?:[\\/]*)
34939 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34940 ;;
34941 *)
34942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34943for as_dir in $PATH
34944do
34945 IFS=$as_save_IFS
34946 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034947 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034949 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034951 break 2
34952 fi
34953done
cristy8b350f62009-11-15 23:12:43 +000034954 done
cristy3ed852e2009-09-05 21:47:34 +000034955IFS=$as_save_IFS
34956
34957 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34958 ;;
34959esac
34960fi
34961TXTDelegate=$ac_cv_path_TXTDelegate
34962if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034964$as_echo "$TXTDelegate" >&6; }
34965else
cristy8b350f62009-11-15 23:12:43 +000034966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034967$as_echo "no" >&6; }
34968fi
34969
34970
cristy5ac9ac82010-07-29 13:24:24 +000034971# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34972set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34974$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034975if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034976 $as_echo_n "(cached) " >&6
34977else
34978 case $UniconvertorDelegate in
34979 [\\/]* | ?:[\\/]*)
34980 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34981 ;;
34982 *)
34983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34984for as_dir in $PATH
34985do
34986 IFS=$as_save_IFS
34987 test -z "$as_dir" && as_dir=.
34988 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034990 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34992 break 2
34993 fi
34994done
34995 done
34996IFS=$as_save_IFS
34997
34998 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34999 ;;
35000esac
35001fi
35002UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
35003if test -n "$UniconvertorDelegate"; then
35004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
35005$as_echo "$UniconvertorDelegate" >&6; }
35006else
35007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35008$as_echo "no" >&6; }
35009fi
35010
35011
cristy86e86092013-08-04 17:43:57 +000035012# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
35013set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
35014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35015$as_echo_n "checking for $ac_word... " >&6; }
35016if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
35017 $as_echo_n "(cached) " >&6
35018else
35019 case $WebPDecodeDelegate in
35020 [\\/]* | ?:[\\/]*)
35021 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
35022 ;;
35023 *)
35024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35025for as_dir in $PATH
35026do
35027 IFS=$as_save_IFS
35028 test -z "$as_dir" && as_dir=.
35029 for ac_exec_ext in '' $ac_executable_extensions; do
35030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35031 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35033 break 2
35034 fi
35035done
35036 done
35037IFS=$as_save_IFS
35038
35039 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
35040 ;;
35041esac
35042fi
35043WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
35044if test -n "$WebPDecodeDelegate"; then
35045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
35046$as_echo "$WebPDecodeDelegate" >&6; }
35047else
35048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35049$as_echo "no" >&6; }
35050fi
35051
35052
35053# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
35054set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
35055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35056$as_echo_n "checking for $ac_word... " >&6; }
35057if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
35058 $as_echo_n "(cached) " >&6
35059else
35060 case $WebPEncodeDelegate in
35061 [\\/]* | ?:[\\/]*)
35062 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
35063 ;;
35064 *)
35065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35066for as_dir in $PATH
35067do
35068 IFS=$as_save_IFS
35069 test -z "$as_dir" && as_dir=.
35070 for ac_exec_ext in '' $ac_executable_extensions; do
35071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35072 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35074 break 2
35075 fi
35076done
35077 done
35078IFS=$as_save_IFS
35079
35080 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
35081 ;;
35082esac
35083fi
35084WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
35085if test -n "$WebPEncodeDelegate"; then
35086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
35087$as_echo "$WebPEncodeDelegate" >&6; }
35088else
35089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35090$as_echo "no" >&6; }
35091fi
35092
35093
cristy3ed852e2009-09-05 21:47:34 +000035094# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
35095set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035097$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035098if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035099 $as_echo_n "(cached) " >&6
35100else
35101 case $WMFDecodeDelegate in
35102 [\\/]* | ?:[\\/]*)
35103 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
35104 ;;
35105 *)
35106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35107for as_dir in $PATH
35108do
35109 IFS=$as_save_IFS
35110 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035111 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035113 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035115 break 2
35116 fi
35117done
cristy8b350f62009-11-15 23:12:43 +000035118 done
cristy3ed852e2009-09-05 21:47:34 +000035119IFS=$as_save_IFS
35120
35121 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
35122 ;;
35123esac
35124fi
35125WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
35126if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035128$as_echo "$WMFDecodeDelegate" >&6; }
35129else
cristy8b350f62009-11-15 23:12:43 +000035130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035131$as_echo "no" >&6; }
35132fi
35133
35134
35135# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
35136set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035138$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035139if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035140 $as_echo_n "(cached) " >&6
35141else
35142 case $WWWDecodeDelegate in
35143 [\\/]* | ?:[\\/]*)
35144 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
35145 ;;
35146 *)
35147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35148for as_dir in $PATH
35149do
35150 IFS=$as_save_IFS
35151 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035152 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035154 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035156 break 2
35157 fi
35158done
cristy8b350f62009-11-15 23:12:43 +000035159 done
cristy3ed852e2009-09-05 21:47:34 +000035160IFS=$as_save_IFS
35161
35162 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
35163 ;;
35164esac
35165fi
35166WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
35167if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035169$as_echo "$WWWDecodeDelegate" >&6; }
35170else
cristy8b350f62009-11-15 23:12:43 +000035171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035172$as_echo "no" >&6; }
35173fi
35174
35175
35176# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
35177set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035179$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035180if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035181 $as_echo_n "(cached) " >&6
35182else
35183 case $XPSDelegate in
35184 [\\/]* | ?:[\\/]*)
35185 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
35186 ;;
35187 *)
35188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35189for as_dir in $PATH
35190do
35191 IFS=$as_save_IFS
35192 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035193 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035195 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035197 break 2
35198 fi
35199done
cristy8b350f62009-11-15 23:12:43 +000035200 done
cristy3ed852e2009-09-05 21:47:34 +000035201IFS=$as_save_IFS
35202
35203 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
35204 ;;
35205esac
35206fi
35207XPSDelegate=$ac_cv_path_XPSDelegate
35208if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035210$as_echo "$XPSDelegate" >&6; }
35211else
cristy8b350f62009-11-15 23:12:43 +000035212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035213$as_echo "no" >&6; }
35214fi
35215
35216
35217# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
35218set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035220$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035221if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035222 $as_echo_n "(cached) " >&6
35223else
35224 case $ZipDelegate in
35225 [\\/]* | ?:[\\/]*)
35226 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
35227 ;;
35228 *)
35229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35230for as_dir in $PATH
35231do
35232 IFS=$as_save_IFS
35233 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035234 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035236 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035238 break 2
35239 fi
35240done
cristy8b350f62009-11-15 23:12:43 +000035241 done
cristy3ed852e2009-09-05 21:47:34 +000035242IFS=$as_save_IFS
35243
35244 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
35245 ;;
35246esac
35247fi
35248ZipDelegate=$ac_cv_path_ZipDelegate
35249if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035251$as_echo "$ZipDelegate" >&6; }
35252else
cristy8b350f62009-11-15 23:12:43 +000035253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035254$as_echo "no" >&6; }
35255fi
35256
35257
35258
35259# Prefer lpr to lp; lp needs options tacked on.
35260if test "$LPRDelegate" != no; then
35261 PrintDelegate="$LPRDelegate"
35262else
35263 PrintDelegate="$LPDelegate -c -s"
35264fi
35265
35266
35267# Installed ImageMagick utiltity paths
35268ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
35269DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
35270MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
35271
35272# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000035273have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035274have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
35275have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
35276have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000035277have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035278have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
35279have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035280have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
35281
35282#
35283# Test for font directories
35284#
35285type_include_files=''
35286
cristy5a3dc992014-12-05 19:50:04 +000035287 Apple fonts.
35288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
35289$as_echo_n "checking for Apple fonts directory... " >&6; }
35290apple_font_dir=''
35291if test "${with_apple_font_dir}" != 'default'; then
35292 apple_font_dir="${with_apple_font_dir}/"
35293else
35294 for font_dir in '/Library/Fonts/'; do
35295 if test -f "${font_dir}Arial.ttf"; then
35296 apple_font_dir="${font_dir}"
35297 break 1
35298 fi
35299 done
35300fi
35301if test "${apple_font_dir}x" != 'x'; then
35302 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
35303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
35304$as_echo "$apple_font_dir" >&6; }
35305else
35306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35307$as_echo "not found!" >&6; };
35308fi
35309
35310
cristy430a7312010-01-21 20:44:04 +000035311# Dejavu fonts.
35312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
35313$as_echo_n "checking for Dejavu fonts directory... " >&6; }
35314dejavu_font_dir=''
35315if test "${with_dejavu_font_dir}" != 'default'; then
35316 dejavu_font_dir="${with_dejavu_font_dir}/"
35317else
35318 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
35319 if test -f "${font_dir}DejaVuSerif.ttf"; then
35320 dejavu_font_dir="${font_dir}"
35321 break 1
35322 fi
35323 done
35324fi
35325if test "${dejavu_font_dir}x" != 'x'; then
35326 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
35328$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000035329else
cristyad38abe2012-12-23 23:03:21 +000035330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35331$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000035332fi
35333
35334
cristy3ed852e2009-09-05 21:47:34 +000035335# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000035336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000035337$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
35338ghostscript_font_dir=''
35339if test "${with_gs_font_dir}" != 'default'; then
35340 ghostscript_font_dir="${with_gs_font_dir}/"
35341else
35342 if test "${native_win32_build}" = 'yes'; then
35343 # Native Windows Build
35344 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
35345 if test -f "${font_dir}a010013l.pfb"; then
35346 ghostscript_font_dir="$font_dir"
35347 break 1
35348 fi
35349 done
35350 if test "${PSDelegate}" != 'gswin32c'; then
35351 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
35352 fi
35353 else
35354 # Linux / Mac OS X / Unix Build
35355 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
35356 if test -f "${font_dir}a010013l.pfb"; then
35357 ghostscript_font_dir="${font_dir}"
35358 break 1
35359 fi
35360 done
35361 if test "${ghostscript_font_dir}x" = 'x'; then
35362 if test "$PSDelegate" != 'gs'; then
35363 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
35364 fi
35365 fi
35366 fi
35367fi
35368if test "${ghostscript_font_dir}x" != 'x'; then
35369 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
35371$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035372else
cristyad38abe2012-12-23 23:03:21 +000035373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35374$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000035375fi
35376
35377case "${build_os}" in
35378 mingw* )
35379 PSDelegate=`$WinPathScript "$PSDelegate" 1`
35380 ;;
35381esac
35382
cristy5a3dc992014-12-05 19:50:04 +000035383# Windows fonts.
35384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
35385$as_echo_n "checking for Windows fonts directory... " >&6; }
35386windows_font_dir=''
35387if test "${with_windows_font_dir}" != 'default'; then
35388 windows_font_dir="${with_windows_font_dir}/"
35389else
35390 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
35391 if test -f "${font_dir}arial.ttf"; then
35392 windows_font_dir="${font_dir}"
35393 break 1
35394 fi
35395 done
35396fi
35397if test "${windows_font_dir}x" != 'x'; then
35398 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
35399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
35400$as_echo "$windows_font_dir" >&6; }
35401else
35402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35403$as_echo "not found!" >&6; };
35404fi
35405
35406
cristy3ed852e2009-09-05 21:47:34 +000035407
35408
35409#
35410# Handle case where user doesn't want frozen paths
35411#
35412if test "$with_frozenpaths" != 'yes'; then
35413 # Re-set delegate definitions to default (no paths)
35414 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy16b412d2014-12-15 11:09:48 +000035415 BGPDecodeDelegate="$BGPDecodeDelegateDefault"
35416 BGPEncodeDelegate="$BGPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035417 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
35418 BZIPDelegate="$BZIPDelegateDefault"
35419 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035420 CatDelegate="$CatDelegateDefault"
35421 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035422 DisplayDelegate="$DisplayDelegateDefault"
35423 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000035424 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035425 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35426 EchoDelegate="$EchoDelegateDefault"
35427 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035428 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035429 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035430 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35431 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35432 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35433 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035434 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35435 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035436 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035437 LaunchDelegate="$LaunchDelegateDefault"
35438 MANDelegate="$MANDelegateDefault"
35439 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35440 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035441 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000035442 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35443 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035444 PCLDelegate="$PCLDelegateDefault"
35445 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
35446 POVDelegate="$POVDelegateDefault"
35447 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035448 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
35449 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000035450 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035451 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000035452 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035453 ShowImageDelegate="$ShowImageDelegateDefault"
35454 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000035455 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000035456 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35457 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035458 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
35459 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35460 XPSDelegate="$XPSDelegateDefault"
35461 ZipDelegate="$ZipDelegateDefault"
35462fi
35463
35464# Delegate substitutions
35465
35466
35467
35468
35469
35470
35471
35472
35473
35474
35475
35476
35477
35478
35479
35480
35481
35482
35483
35484
35485
35486
35487
35488
35489
35490
35491
35492
35493
35494
35495
35496
35497
35498
35499
35500
35501
35502
35503
35504
cristy71f53d52013-04-27 13:33:59 +000035505
35506
cristy16b412d2014-12-15 11:09:48 +000035507
35508
cristy3ed852e2009-09-05 21:47:34 +000035509#
35510# RPM support.
35511#
35512RPM=''
35513for ac_prog in gnutar gtar tar
35514do
35515 # Extract the first word of "$ac_prog", so it can be a program name with args.
35516set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035518$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035519if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035520 $as_echo_n "(cached) " >&6
35521else
35522 if test -n "$TAR"; then
35523 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35524else
35525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35526for as_dir in $PATH
35527do
35528 IFS=$as_save_IFS
35529 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035530 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035532 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035534 break 2
35535 fi
35536done
cristy8b350f62009-11-15 23:12:43 +000035537 done
cristy3ed852e2009-09-05 21:47:34 +000035538IFS=$as_save_IFS
35539
35540fi
35541fi
35542TAR=$ac_cv_prog_TAR
35543if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035545$as_echo "$TAR" >&6; }
35546else
cristy8b350f62009-11-15 23:12:43 +000035547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035548$as_echo "no" >&6; }
35549fi
35550
35551
35552 test -n "$TAR" && break
35553done
35554
35555for ac_prog in perl
35556do
35557 # Extract the first word of "$ac_prog", so it can be a program name with args.
35558set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035560$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035561if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035562 $as_echo_n "(cached) " >&6
35563else
35564 if test -n "$PERL"; then
35565 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35566else
35567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35568for as_dir in $PATH
35569do
35570 IFS=$as_save_IFS
35571 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035572 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035574 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035576 break 2
35577 fi
35578done
cristy8b350f62009-11-15 23:12:43 +000035579 done
cristy3ed852e2009-09-05 21:47:34 +000035580IFS=$as_save_IFS
35581
35582fi
35583fi
35584PERL=$ac_cv_prog_PERL
35585if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035587$as_echo "$PERL" >&6; }
35588else
cristy8b350f62009-11-15 23:12:43 +000035589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035590$as_echo "no" >&6; }
35591fi
35592
35593
35594 test -n "$PERL" && break
35595done
35596
35597for ac_prog in rpmbuild rpm
35598do
35599 # Extract the first word of "$ac_prog", so it can be a program name with args.
35600set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035602$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035603if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035604 $as_echo_n "(cached) " >&6
35605else
35606 if test -n "$RPM"; then
35607 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35608else
35609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35610for as_dir in $PATH
35611do
35612 IFS=$as_save_IFS
35613 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035614 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035616 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035618 break 2
35619 fi
35620done
cristy8b350f62009-11-15 23:12:43 +000035621 done
cristy3ed852e2009-09-05 21:47:34 +000035622IFS=$as_save_IFS
35623
35624fi
35625fi
35626RPM=$ac_cv_prog_RPM
35627if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035629$as_echo "$RPM" >&6; }
35630else
cristy8b350f62009-11-15 23:12:43 +000035631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035632$as_echo "no" >&6; }
35633fi
35634
35635
35636 test -n "$RPM" && break
35637done
35638
35639
cristy73bd4a52010-10-05 11:24:23 +000035640ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35641
35642
35643AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35644
35645
35646AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35647
35648
35649AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35650
35651
35652 if test "x$RPM" != "x" ; then
35653 RPM_DELEGATE_TRUE=
35654 RPM_DELEGATE_FALSE='#'
35655else
35656 RPM_DELEGATE_TRUE='#'
35657 RPM_DELEGATE_FALSE=
35658fi
35659
cristy3ed852e2009-09-05 21:47:34 +000035660
35661#
35662# 7ZIP support (http://p7zip.sourceforge.net/)
35663#
35664P7ZIP=''
35665for ac_prog in 7za
35666do
35667 # Extract the first word of "$ac_prog", so it can be a program name with args.
35668set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035670$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035671if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035672 $as_echo_n "(cached) " >&6
35673else
35674 if test -n "$P7ZIP"; then
35675 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35676else
35677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35678for as_dir in $PATH
35679do
35680 IFS=$as_save_IFS
35681 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035682 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035684 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035686 break 2
35687 fi
35688done
cristy8b350f62009-11-15 23:12:43 +000035689 done
cristy3ed852e2009-09-05 21:47:34 +000035690IFS=$as_save_IFS
35691
35692fi
35693fi
35694P7ZIP=$ac_cv_prog_P7ZIP
35695if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035697$as_echo "$P7ZIP" >&6; }
35698else
cristy8b350f62009-11-15 23:12:43 +000035699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035700$as_echo "no" >&6; }
35701fi
35702
35703
35704 test -n "$P7ZIP" && break
35705done
35706
35707
cristy73bd4a52010-10-05 11:24:23 +000035708 if test "x$P7ZIP" != "x" ; then
35709 P7ZIP_DELEGATE_TRUE=
35710 P7ZIP_DELEGATE_FALSE='#'
35711else
35712 P7ZIP_DELEGATE_TRUE='#'
35713 P7ZIP_DELEGATE_FALSE=
35714fi
35715
cristy3ed852e2009-09-05 21:47:34 +000035716
35717#
35718# ZIP support (http://www.info-zip.org/Zip.html)
35719#
35720ZIP=''
35721for ac_prog in zip
35722do
35723 # Extract the first word of "$ac_prog", so it can be a program name with args.
35724set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035726$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035727if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035728 $as_echo_n "(cached) " >&6
35729else
35730 if test -n "$ZIP"; then
35731 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35732else
35733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35734for as_dir in $PATH
35735do
35736 IFS=$as_save_IFS
35737 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035740 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035742 break 2
35743 fi
35744done
cristy8b350f62009-11-15 23:12:43 +000035745 done
cristy3ed852e2009-09-05 21:47:34 +000035746IFS=$as_save_IFS
35747
35748fi
35749fi
35750ZIP=$ac_cv_prog_ZIP
35751if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035753$as_echo "$ZIP" >&6; }
35754else
cristy8b350f62009-11-15 23:12:43 +000035755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035756$as_echo "no" >&6; }
35757fi
35758
35759
35760 test -n "$ZIP" && break
35761done
35762
35763
cristy73bd4a52010-10-05 11:24:23 +000035764 if test "x$ZIP" != "x" ; then
35765 ZIP_DELEGATE_TRUE=
35766 ZIP_DELEGATE_FALSE='#'
35767else
35768 ZIP_DELEGATE_TRUE='#'
35769 ZIP_DELEGATE_FALSE=
35770fi
35771
cristy3ed852e2009-09-05 21:47:34 +000035772
35773#
35774# GhostPCL related configuration.
35775#
35776PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035777PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035778PCLMonoDevice=pbmraw
35779if test -z "$PCLVersion"; then
35780 PCLVersion='unknown'
35781fi
35782if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35784$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035786$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35788$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035789 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035791$as_echo_n "checking for pcl color device... " >&6; }
35792 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35793 :
35794 else
35795 PCLColorDevice=ppmraw
35796 fi
cristyad38abe2012-12-23 23:03:21 +000035797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35798$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035799
35800 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035802$as_echo_n "checking for pcl CMYK device... " >&6; }
35803 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35804 :
35805 else
35806 PCLCMYKDevice=$PCLColorDevice
35807 fi
cristyad38abe2012-12-23 23:03:21 +000035808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35809$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035810
35811 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035813$as_echo_n "checking for pcl mono device... " >&6; }
35814 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35815 :
35816 else
35817 PCLMonoDevice=$PCLColorDevice
35818 fi
cristyad38abe2012-12-23 23:03:21 +000035819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35820$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035821fi
35822
35823
35824
35825
35826
35827
35828#
35829# GhostXPS related configuration.
35830#
35831XPSColorDevice=ppmraw
35832XPSCMYKDevice=bmpsep8
35833XPSMonoDevice=pbmraw
35834if test -z "$XPSVersion"; then
35835 XPSVersion='unknown'
35836fi
35837if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35839$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035841$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35843$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035844 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035846$as_echo_n "checking for xps color device... " >&6; }
35847 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35848 :
35849 else
35850 XPSColorDevice=ppmraw
35851 fi
cristyad38abe2012-12-23 23:03:21 +000035852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35853$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035854
35855 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035857$as_echo_n "checking for xps CMYK device... " >&6; }
35858 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35859 :
35860 else
35861 XPSCMYKDevice=$XPSColorDevice
35862 fi
cristyad38abe2012-12-23 23:03:21 +000035863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35864$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035865
35866 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035868$as_echo_n "checking for xps mono device... " >&6; }
35869 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35870 :
35871 else
35872 XPSMonoDevice=$XPSColorDevice
35873 fi
cristyad38abe2012-12-23 23:03:21 +000035874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35875$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035876fi
35877
35878
35879
35880
35881
35882
35883#
35884# Ghostscript related configuration.
35885#
cristya97426c2011-02-04 01:41:27 +000035886GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035887GSColorDevice=pnmraw
35888GSCMYKDevice=pam
35889GSMonoDevice=pbmraw
35890GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035891GSPSDevice=ps2write
cristya5b91e72015-01-07 15:39:36 +000035892GSEPSDevice=eps2write
cristy3ed852e2009-09-05 21:47:34 +000035893GSVersion='unknown'
35894if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35896$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035898$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35900$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035902$as_echo_n "checking for Ghostscript version... " >&6; }
35903 if GSVersion=`$PSDelegate --version`; then
35904 :
35905 else
35906 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35907 fi
cristyad38abe2012-12-23 23:03:21 +000035908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35909$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035910
35911 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035913$as_echo_n "checking for gs alpha device... " >&6; }
35914 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35915 :
35916 else
35917 GSAlphaDevice=pnmraw
35918 fi
cristyad38abe2012-12-23 23:03:21 +000035919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35920$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035921
35922 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035924$as_echo_n "checking for gs color device... " >&6; }
35925 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35926 :
35927 else
35928 GSColorDevice=pnmraw
35929 fi
cristyad38abe2012-12-23 23:03:21 +000035930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35931$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035932
35933 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035935$as_echo_n "checking for gs CMYK device... " >&6; }
35936 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35937 :
35938 else
35939 GSCMYKDevice=bmpsep8
35940 fi
cristyad38abe2012-12-23 23:03:21 +000035941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35942$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035943
35944 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035946$as_echo_n "checking for gs mono device... " >&6; }
35947 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35948 :
35949 else
35950 GSMonoDevice=$GSColorDevice
35951 fi
cristyad38abe2012-12-23 23:03:21 +000035952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35953$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035954
35955 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035957$as_echo_n "checking for gs PDF writing device... " >&6; }
35958 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35959 :
35960 else
35961 GSPDFDevice=nodevice
35962 fi
cristyad38abe2012-12-23 23:03:21 +000035963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35964$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035965
35966 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035968$as_echo_n "checking for gs PS writing device... " >&6; }
35969 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35970 :
35971 else
cristy15308162015-01-09 23:43:12 +000035972 GSPSDevice=pswrite
cristy3ed852e2009-09-05 21:47:34 +000035973 fi
cristyad38abe2012-12-23 23:03:21 +000035974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35975$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035976
35977 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035979$as_echo_n "checking for gs EPS writing device... " >&6; }
35980 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35981 :
35982 else
cristy15308162015-01-09 23:43:12 +000035983 GSEPSDevice=epswrite
cristy3ed852e2009-09-05 21:47:34 +000035984 fi
cristyad38abe2012-12-23 23:03:21 +000035985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35986$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035987fi
35988
35989
35990
35991
35992
35993
35994
35995
35996
35997
35998#
35999# PerlMagick-related configuration
36000#
36001
36002# Look for PERL if PerlMagick requested
36003# If name/path of desired PERL interpreter is specified, look for that one first
36004have_perl='no'
36005if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000036006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36007$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000036008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000036009$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000036010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36011$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036012 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000036014$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036015if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036016 $as_echo_n "(cached) " >&6
36017else
36018 ac_cv_path_PERL="$with_perl"
36019fi
cristy8b350f62009-11-15 23:12:43 +000036020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036021$as_echo "$ac_cv_path_PERL" >&6; };
36022 PERL=$ac_cv_path_PERL
36023 have_perl="$ac_cv_path_PERL"
36024 else
36025 for ac_prog in perl perl5
36026do
36027 # Extract the first word of "$ac_prog", so it can be a program name with args.
36028set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000036029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000036030$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036031if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036032 $as_echo_n "(cached) " >&6
36033else
36034 case $PERL in
36035 [\\/]* | ?:[\\/]*)
36036 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
36037 ;;
36038 *)
36039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36040for as_dir in $PATH
36041do
36042 IFS=$as_save_IFS
36043 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036044 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000036045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000036046 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000036047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000036048 break 2
36049 fi
36050done
cristy8b350f62009-11-15 23:12:43 +000036051 done
cristy3ed852e2009-09-05 21:47:34 +000036052IFS=$as_save_IFS
36053
36054 ;;
36055esac
36056fi
36057PERL=$ac_cv_path_PERL
36058if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000036059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036060$as_echo "$PERL" >&6; }
36061else
cristy8b350f62009-11-15 23:12:43 +000036062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000036063$as_echo "no" >&6; }
36064fi
36065
36066
36067 test -n "$PERL" && break
36068done
36069 if test "$ac_cv_path_PERL"; then
36070 have_perl="$ac_cv_path_PERL"
36071 fi
36072 fi
36073fi
36074
cristy949301e2010-01-06 01:38:40 +000036075if test "$with_perl" != 'yes' ; then
36076 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
36077fi
36078
36079PERL_SUPPORTS_DESTDIR='no'
36080
cristy3ed852e2009-09-05 21:47:34 +000036081with_perl_static='no'
36082with_perl_dynamic='no'
36083if test "$have_perl" != 'no'; then
36084 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
36085 with_perl_static='yes'
36086 fi
36087 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
36088 with_perl_dynamic='yes'
36089 fi
36090 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000036091
36092
36093
36094
36095 if test -n "$PERL"; then :
36096
36097 ax_perl_version="5.8.1"
36098
36099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
36100$as_echo_n "checking for perl version... " >&6; }
36101
cristy17491be2014-06-24 01:10:53 +000036102 perl_version=`$PERL --version 2>&1 \
36103 | $SED -n -e '/This is perl/b inspect
36104b
36105: inspect
36106s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000036107
36108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
36109$as_echo "$perl_version" >&6; }
36110
36111 PERL_VERSION=$perl_version
36112
36113
36114
36115
36116
36117 # Used to indicate true or false condition
36118 ax_compare_version=false
36119
36120 # Convert the two version strings to be compared into a format that
36121 # allows a simple string comparison. The end result is that a version
36122 # string of the form 1.12.5-r617 will be converted to the form
36123 # 0001001200050617. In other words, each number is zero padded to four
36124 # digits, and non digits are removed.
36125
36126 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36127 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36128 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36129 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36130 -e 's/[^0-9]//g'`
36131
36132
36133 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36134 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36135 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36136 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36137 -e 's/[^0-9]//g'`
36138
36139
36140 ax_compare_version=`echo "x$ax_compare_version_A
36141x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
36142
36143
36144
36145 if test "$ax_compare_version" = "true" ; then
36146
36147 :
36148 PERL_SUPPORTS_DESTDIR='yes'
36149
36150 else
36151 :
36152 PERL_SUPPORTS_DESTDIR='no'
36153
36154 fi
36155
36156
36157else
36158
36159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
36160$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
36161 PERL_SUPPORTS_DESTDIR='no'
36162
cristy3ed852e2009-09-05 21:47:34 +000036163fi
cristy73bd4a52010-10-05 11:24:23 +000036164
36165fi
36166 if test "$have_perl" != 'no'; then
36167 WITH_PERL_TRUE=
36168 WITH_PERL_FALSE='#'
36169else
36170 WITH_PERL_TRUE='#'
36171 WITH_PERL_FALSE=
36172fi
36173
36174 if test $with_perl_static = 'yes'; then
36175 WITH_PERL_STATIC_TRUE=
36176 WITH_PERL_STATIC_FALSE='#'
36177else
36178 WITH_PERL_STATIC_TRUE='#'
36179 WITH_PERL_STATIC_FALSE=
36180fi
36181
36182 if test $with_perl_dynamic = 'yes'; then
36183 WITH_PERL_DYNAMIC_TRUE=
36184 WITH_PERL_DYNAMIC_FALSE='#'
36185else
36186 WITH_PERL_DYNAMIC_TRUE='#'
36187 WITH_PERL_DYNAMIC_FALSE=
36188fi
36189
cristy3ed852e2009-09-05 21:47:34 +000036190
36191
36192# Determine path to pick up MagickCore library from for use with building PerlMagick
36193MAGICKCORE_PATH="${LIB_DIR}"
36194if test $with_perl_static = 'yes'; then
36195 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
36196 libtool_objdir=$objdir
36197
36198 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000036199 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000036200fi
36201
36202
cristy2a3eb392012-12-17 13:39:20 +000036203# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000036204MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000036205if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036206 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000036207fi
cristy2a3eb392012-12-17 13:39:20 +000036208if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036209 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000036210fi
36211if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036212 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000036213fi
36214if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036215 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000036216fi
cristy81ab5af2013-10-06 18:28:39 +000036217if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036218 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000036219fi
36220if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036221 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000036222fi
cristy2a3eb392012-12-17 13:39:20 +000036223if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036224 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000036225fi
36226if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036227 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000036228fi
36229if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036230 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000036231fi
36232if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036233 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000036234fi
36235if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036236 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000036237fi
36238if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000036239 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000036240fi
36241if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036242 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000036243fi
36244if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036245 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000036246fi
36247if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036248 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000036249fi
36250if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036251 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000036252fi
36253if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036254 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000036255fi
36256if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036257 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000036258fi
cristy99db3872014-01-01 15:11:34 +000036259if test "$have_openjp2" = 'yes' ; then
36260 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000036261fi
cristy2a3eb392012-12-17 13:39:20 +000036262if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036263 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000036264fi
36265if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036266 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000036267fi
36268have_ps='no'
36269if test "$have_dps" = 'yes' || \
36270 test "$have_gs" = 'yes' || \
36271 test "${native_win32_build}" = 'yes' ; then
36272 have_ps='yes'
36273fi
36274if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036275 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000036276fi
cristy2a3eb392012-12-17 13:39:20 +000036277if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036278 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000036279fi
36280if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036281 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000036282fi
36283if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036284 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000036285fi
36286if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036287 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000036288fi
cristy3b640ed2013-07-29 00:27:59 +000036289if test "$have_webp" = 'yes' ; then
36290 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
36291fi
cristy2a3eb392012-12-17 13:39:20 +000036292if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036293 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000036294fi
36295if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036296 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000036297fi
36298if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036299 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000036300fi
36301if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036302 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000036303fi
cristy2a3eb392012-12-17 13:39:20 +000036304# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000036305MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000036306MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036307
36308
cristyfa161182012-12-19 15:45:28 +000036309
cristy3ed852e2009-09-05 21:47:34 +000036310#
36311# Handle special compiler flags
36312#
36313
36314# Add '-p' if prof source profiling support enabled
36315if test "$enable_prof" = 'yes'; then
36316 CFLAGS="-p $CFLAGS"
36317 CXXFLAGS="-p $CXXFLAGS"
36318 LDFLAGS="-p $LDFLAGS"
36319fi
36320
36321# Add '-pg' if gprof source profiling support enabled
36322if test "$enable_gprof" = 'yes'; then
36323 CFLAGS="-pg $CFLAGS"
36324 CXXFLAGS="-pg $CXXFLAGS"
36325 LDFLAGS="-pg $LDFLAGS"
36326fi
36327
36328# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
36329# This is a gcc-specific feature
36330if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036332$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036333if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036334 $as_echo_n "(cached) " >&6
36335else
36336 ac_check_lib_save_LIBS=$LIBS
36337LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036339/* end confdefs.h. */
36340
36341/* Override any GCC internal prototype to avoid an error.
36342 Use char because int might match the return type of a GCC
36343 builtin and then its argument prototype would still apply. */
36344#ifdef __cplusplus
36345extern "C"
36346#endif
36347char _gcov_init ();
36348int
36349main ()
36350{
36351return _gcov_init ();
36352 ;
36353 return 0;
36354}
36355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036356if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036357 ac_cv_lib_gcov__gcov_init=yes
36358else
cristy8b350f62009-11-15 23:12:43 +000036359 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036360fi
cristy8b350f62009-11-15 23:12:43 +000036361rm -f core conftest.err conftest.$ac_objext \
36362 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036363LIBS=$ac_check_lib_save_LIBS
36364fi
cristy8b350f62009-11-15 23:12:43 +000036365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036366$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036367if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036368 cat >>confdefs.h <<_ACEOF
36369#define HAVE_LIBGCOV 1
36370_ACEOF
36371
36372 LIBS="-lgcov $LIBS"
36373
36374fi
36375
cristy8b350f62009-11-15 23:12:43 +000036376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036377$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036378if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036379 $as_echo_n "(cached) " >&6
36380else
36381 ac_check_lib_save_LIBS=$LIBS
36382LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036384/* end confdefs.h. */
36385
36386/* Override any GCC internal prototype to avoid an error.
36387 Use char because int might match the return type of a GCC
36388 builtin and then its argument prototype would still apply. */
36389#ifdef __cplusplus
36390extern "C"
36391#endif
36392char __gcov_init ();
36393int
36394main ()
36395{
36396return __gcov_init ();
36397 ;
36398 return 0;
36399}
36400_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036401if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036402 ac_cv_lib_gcov___gcov_init=yes
36403else
cristy8b350f62009-11-15 23:12:43 +000036404 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036405fi
cristy8b350f62009-11-15 23:12:43 +000036406rm -f core conftest.err conftest.$ac_objext \
36407 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036408LIBS=$ac_check_lib_save_LIBS
36409fi
cristy8b350f62009-11-15 23:12:43 +000036410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036411$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036412if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036413 cat >>confdefs.h <<_ACEOF
36414#define HAVE_LIBGCOV 1
36415_ACEOF
36416
36417 LIBS="-lgcov $LIBS"
36418
36419fi
36420
36421 case "$target_os" in
36422 darwin*)
36423 OSX_GCOV_LDFLAG="-Wl,-single_module"
36424 ;;
36425 *)
36426 OSX_GCOV_LDFLAG=""
36427 ;;
36428 esac
36429
36430 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
36431 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
36432 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36433fi
36434
36435#
36436# Build library dependency list for libMagickCore
36437#
36438
cristyc6722092012-10-14 00:19:31 +000036439if test "$build_modules" != 'no'; then
cristy3b0097d2014-11-04 15:34:47 +000036440 MAGICK_DEP_LIBS="$USER_LIBS $LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036441else
cristy3b0097d2014-11-04 15:34:47 +000036442 MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $OPENJPEG_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036443fi
36444
36445
36446#
36447# Remove extraneous spaces from output variables (asthetic)
36448#
36449X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
36450X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
36451X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
36452X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
36453
36454CC=`echo $CC | sed -e 's/ */ /g'`
36455CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
36456CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
36457CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036458DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
36459LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
36460TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36461MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
36462#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36463
36464# Pass only user-provided LIBS as "global" libraries
36465LIBS=$USER_LIBS
36466
36467#AC_SUBST(CPPFLAGS)
36468
36469#AC_SUBST(LDFLAGS)
36470#AC_SUBST(X_PRE_LIBS)
36471#AC_SUBST(X_LIBS)
36472#AC_SUBST(X_EXTRA_LIBS)
36473
36474MAGICK_CFLAGS=$CFLAGS
36475MAGICK_CXXFLAGS="$CXXFLAGS"
36476MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
36477MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
36478MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000036479MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036480
36481
36482
36483
36484
36485
36486
36487
36488# Set configured scripts to executable.
36489ac_config_commands="$ac_config_commands default"
36490
cristy2bd4b6e2012-07-22 15:29:11 +000036491ac_config_commands="$ac_config_commands magick.sh.in"
36492
cristy3ed852e2009-09-05 21:47:34 +000036493ac_config_commands="$ac_config_commands MagickCore-config.in"
36494
cristy3ed852e2009-09-05 21:47:34 +000036495ac_config_commands="$ac_config_commands MagickWand-config.in"
36496
cristy3ed852e2009-09-05 21:47:34 +000036497ac_config_commands="$ac_config_commands Magick++-config.in"
36498
36499ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36500
36501
cristyad38abe2012-12-23 23:03:21 +000036502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36503$as_echo "-------------------------------------------------------------" >&6; }
36504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36505$as_echo "Update ImageMagick configuration" >&6; }
cristy9af1cbf2014-12-28 22:03:09 +000036506
36507rm -f magick-version
36508
36509result_dejavu_font_dir='none'
36510if test "${dejavu_font_dir}x" != 'x'; then
36511 result_dejavu_font_dir=$dejavu_font_dir
36512fi
36513
36514result_ghostscript_font_dir='none'
36515if test "${ghostscript_font_dir}x" != 'x'; then
36516 result_ghostscript_font_dir=$ghostscript_font_dir
36517fi
36518
36519result_windows_font_dir='none'
36520if test "${windows_font_dir}x" != 'x'; then
36521 result_windows_font_dir=${windows_font_dir}
36522fi
36523
36524# ==============================================================================
36525# Generate build environment
36526# ==============================================================================
36527ac_config_files="$ac_config_files common.shi 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-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/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
36528
cristy3ed852e2009-09-05 21:47:34 +000036529cat >confcache <<\_ACEOF
36530# This file is a shell script that caches the results of configure
36531# tests run on this system so they can be shared between configure
36532# scripts and configure runs, see configure's option --config-cache.
36533# It is not useful on other systems. If it contains results you don't
36534# want to keep, you may remove or edit it.
36535#
36536# config.status only pays attention to the cache file if you give it
36537# the --recheck option to rerun configure.
36538#
36539# `ac_cv_env_foo' variables (set or unset) will be overridden when
36540# loading this file, other *unset* `ac_cv_foo' will be assigned the
36541# following values.
36542
36543_ACEOF
36544
36545# The following way of writing the cache mishandles newlines in values,
36546# but we know of no workaround that is simple, portable, and efficient.
36547# So, we kill variables containing newlines.
36548# Ultrix sh set writes to stderr and can't be redirected directly,
36549# and sets the high bit in the cache file unless we assign to the vars.
36550(
36551 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36552 eval ac_val=\$$ac_var
36553 case $ac_val in #(
36554 *${as_nl}*)
36555 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036556 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036557$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36558 esac
36559 case $ac_var in #(
36560 _ | IFS | as_nl) ;; #(
36561 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036562 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036563 esac ;;
36564 esac
36565 done
36566
36567 (set) 2>&1 |
36568 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36569 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036570 # `set' does not quote correctly, so add quotes: double-quote
36571 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036572 sed -n \
36573 "s/'/'\\\\''/g;
36574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36575 ;; #(
36576 *)
36577 # `set' quotes correctly as required by POSIX, so do not add quotes.
36578 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36579 ;;
36580 esac |
36581 sort
36582) |
36583 sed '
36584 /^ac_cv_env_/b end
36585 t clear
36586 :clear
36587 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36588 t end
36589 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36590 :end' >>confcache
36591if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36592 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036593 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036594 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036595$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036596 if test ! -f "$cache_file" || test -h "$cache_file"; then
36597 cat confcache >"$cache_file"
36598 else
36599 case $cache_file in #(
36600 */* | ?:*)
36601 mv -f confcache "$cache_file"$$ &&
36602 mv -f "$cache_file"$$ "$cache_file" ;; #(
36603 *)
36604 mv -f confcache "$cache_file" ;;
36605 esac
36606 fi
36607 fi
cristy3ed852e2009-09-05 21:47:34 +000036608 else
cristy8b350f62009-11-15 23:12:43 +000036609 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036610$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36611 fi
36612fi
36613rm -f confcache
36614
36615test "x$prefix" = xNONE && prefix=$ac_default_prefix
36616# Let make expand exec_prefix.
36617test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36618
36619DEFS=-DHAVE_CONFIG_H
36620
36621ac_libobjs=
36622ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036623U=
cristy3ed852e2009-09-05 21:47:34 +000036624for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36625 # 1. Remove the extension, and $U if already installed.
36626 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36627 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36628 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36629 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036630 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36631 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036632done
36633LIBOBJS=$ac_libobjs
36634
36635LTLIBOBJS=$ac_ltlibobjs
36636
36637
cristyc0890a62012-07-19 00:18:20 +000036638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36639$as_echo_n "checking that generated files are newer than configure... " >&6; }
36640 if test -n "$am_sleep_pid"; then
36641 # Hide warnings about reused PIDs.
36642 wait $am_sleep_pid 2>/dev/null
36643 fi
36644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36645$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036646 if test -n "$EXEEXT"; then
36647 am__EXEEXT_TRUE=
36648 am__EXEEXT_FALSE='#'
36649else
36650 am__EXEEXT_TRUE='#'
36651 am__EXEEXT_FALSE=
36652fi
cristy3ed852e2009-09-05 21:47:34 +000036653
cristy9af1cbf2014-12-28 22:03:09 +000036654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36655$as_echo_n "checking that generated files are newer than configure... " >&6; }
36656 if test -n "$am_sleep_pid"; then
36657 # Hide warnings about reused PIDs.
36658 wait $am_sleep_pid 2>/dev/null
36659 fi
36660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36661$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036662if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036663 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036664Usually this means the macro was only invoked conditionally." "$LINENO" 5
36665fi
36666if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036667 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036668Usually this means the macro was only invoked conditionally." "$LINENO" 5
36669fi
36670if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036671 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036672Usually this means the macro was only invoked conditionally." "$LINENO" 5
36673fi
36674if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036675 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036676Usually this means the macro was only invoked conditionally." "$LINENO" 5
36677fi
cristy9b86f202012-11-28 21:55:35 +000036678if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36679 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36680Usually this means the macro was only invoked conditionally." "$LINENO" 5
36681fi
cristy73bd4a52010-10-05 11:24:23 +000036682if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036683 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036684Usually this means the macro was only invoked conditionally." "$LINENO" 5
36685fi
36686if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036687 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036688Usually this means the macro was only invoked conditionally." "$LINENO" 5
36689fi
36690if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036691 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036692Usually this means the macro was only invoked conditionally." "$LINENO" 5
36693fi
36694if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036695 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036696Usually this means the macro was only invoked conditionally." "$LINENO" 5
36697fi
cristy73bd4a52010-10-05 11:24:23 +000036698if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036699 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036700Usually this means the macro was only invoked conditionally." "$LINENO" 5
36701fi
36702if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036703 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036704Usually this means the macro was only invoked conditionally." "$LINENO" 5
36705fi
cristy73bd4a52010-10-05 11:24:23 +000036706if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036707 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036708Usually this means the macro was only invoked conditionally." "$LINENO" 5
36709fi
cristy71d8c202012-03-20 17:05:01 +000036710if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36711 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36712Usually this means the macro was only invoked conditionally." "$LINENO" 5
36713fi
cristy73bd4a52010-10-05 11:24:23 +000036714
36715if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036716 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036717Usually this means the macro was only invoked conditionally." "$LINENO" 5
36718fi
36719if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036720 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036721Usually this means the macro was only invoked conditionally." "$LINENO" 5
36722fi
cristy3b0097d2014-11-04 15:34:47 +000036723if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
36724 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
36725Usually this means the macro was only invoked conditionally." "$LINENO" 5
36726fi
cristy73bd4a52010-10-05 11:24:23 +000036727if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036728 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036729Usually this means the macro was only invoked conditionally." "$LINENO" 5
36730fi
36731if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036732 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036733Usually this means the macro was only invoked conditionally." "$LINENO" 5
36734fi
36735if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036736 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036737Usually this means the macro was only invoked conditionally." "$LINENO" 5
36738fi
36739if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036740 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036741Usually this means the macro was only invoked conditionally." "$LINENO" 5
36742fi
cristy5eef09f2012-10-16 12:08:28 +000036743if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36744 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36745Usually this means the macro was only invoked conditionally." "$LINENO" 5
36746fi
cristy73bd4a52010-10-05 11:24:23 +000036747if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036748 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036749Usually this means the macro was only invoked conditionally." "$LINENO" 5
36750fi
36751if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036752 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036753Usually this means the macro was only invoked conditionally." "$LINENO" 5
36754fi
cristy73bd4a52010-10-05 11:24:23 +000036755if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036756 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036757Usually this means the macro was only invoked conditionally." "$LINENO" 5
36758fi
36759if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036760 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036761Usually this means the macro was only invoked conditionally." "$LINENO" 5
36762fi
cristy853d9902014-08-21 18:50:43 +000036763if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36764 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36765Usually this means the macro was only invoked conditionally." "$LINENO" 5
36766fi
cristy73bd4a52010-10-05 11:24:23 +000036767if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036768 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036769Usually this means the macro was only invoked conditionally." "$LINENO" 5
36770fi
36771if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036772 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036773Usually this means the macro was only invoked conditionally." "$LINENO" 5
36774fi
36775if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036776 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036777Usually this means the macro was only invoked conditionally." "$LINENO" 5
36778fi
36779if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036780 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036781Usually this means the macro was only invoked conditionally." "$LINENO" 5
36782fi
36783if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036784 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036785Usually this means the macro was only invoked conditionally." "$LINENO" 5
36786fi
36787if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036788 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036789Usually this means the macro was only invoked conditionally." "$LINENO" 5
36790fi
cristy73bd4a52010-10-05 11:24:23 +000036791if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036792 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036793Usually this means the macro was only invoked conditionally." "$LINENO" 5
36794fi
cristy99db3872014-01-01 15:11:34 +000036795if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36796 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36797Usually this means the macro was only invoked conditionally." "$LINENO" 5
36798fi
cristy73bd4a52010-10-05 11:24:23 +000036799if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036800 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036801Usually this means the macro was only invoked conditionally." "$LINENO" 5
36802fi
cristyfbb0ef02010-12-19 02:32:11 +000036803if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36804 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36805Usually this means the macro was only invoked conditionally." "$LINENO" 5
36806fi
cristy73bd4a52010-10-05 11:24:23 +000036807if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036808 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036809Usually this means the macro was only invoked conditionally." "$LINENO" 5
36810fi
cristy41cbe8a2011-10-27 01:35:18 +000036811if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36812 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36813Usually this means the macro was only invoked conditionally." "$LINENO" 5
36814fi
cristya054b762012-03-26 23:16:00 +000036815if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36816 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036817Usually this means the macro was only invoked conditionally." "$LINENO" 5
36818fi
cristy73bd4a52010-10-05 11:24:23 +000036819if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036820 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036821Usually this means the macro was only invoked conditionally." "$LINENO" 5
36822fi
36823if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036824 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036825Usually this means the macro was only invoked conditionally." "$LINENO" 5
36826fi
36827if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036828 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036829Usually this means the macro was only invoked conditionally." "$LINENO" 5
36830fi
36831if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036832 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036833Usually this means the macro was only invoked conditionally." "$LINENO" 5
36834fi
cristyb1860752011-03-14 00:27:46 +000036835if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36836 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36837Usually this means the macro was only invoked conditionally." "$LINENO" 5
36838fi
cristy73bd4a52010-10-05 11:24:23 +000036839if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036840 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036841Usually this means the macro was only invoked conditionally." "$LINENO" 5
36842fi
36843if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036844 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036845Usually this means the macro was only invoked conditionally." "$LINENO" 5
36846fi
cristydd17feb2014-03-05 02:06:32 +000036847if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36848 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36849Usually this means the macro was only invoked conditionally." "$LINENO" 5
36850fi
cristy73bd4a52010-10-05 11:24:23 +000036851if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036852 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036853Usually this means the macro was only invoked conditionally." "$LINENO" 5
36854fi
36855if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036856 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036857Usually this means the macro was only invoked conditionally." "$LINENO" 5
36858fi
36859if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036860 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036861Usually this means the macro was only invoked conditionally." "$LINENO" 5
36862fi
36863if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036864 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036865Usually this means the macro was only invoked conditionally." "$LINENO" 5
36866fi
36867if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036868 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036869Usually this means the macro was only invoked conditionally." "$LINENO" 5
36870fi
36871if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036872 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036873Usually this means the macro was only invoked conditionally." "$LINENO" 5
36874fi
cristy3ed852e2009-09-05 21:47:34 +000036875
cristyda16f162011-02-19 23:52:17 +000036876: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036877ac_write_fail=0
36878ac_clean_files_save=$ac_clean_files
36879ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036880{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036881$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036882as_write_fail=0
36883cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036884#! $SHELL
36885# Generated by $as_me.
36886# Run this file to recreate the current configuration.
36887# Compiler output produced by configure, useful for debugging
36888# configure, is in config.log if it exists.
36889
36890debug=false
36891ac_cs_recheck=false
36892ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036893
cristy8b350f62009-11-15 23:12:43 +000036894SHELL=\${CONFIG_SHELL-$SHELL}
36895export SHELL
36896_ASEOF
36897cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36898## -------------------- ##
36899## M4sh Initialization. ##
36900## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036901
36902# Be more Bourne compatible
36903DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036904if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036905 emulate sh
36906 NULLCMD=:
36907 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36908 # is contrary to our usage. Disable this feature.
36909 alias -g '${1+"$@"}'='"$@"'
36910 setopt NO_GLOB_SUBST
36911else
cristy8b350f62009-11-15 23:12:43 +000036912 case `(set -o) 2>/dev/null` in #(
36913 *posix*) :
36914 set -o posix ;; #(
36915 *) :
36916 ;;
cristy3ed852e2009-09-05 21:47:34 +000036917esac
cristy3ed852e2009-09-05 21:47:34 +000036918fi
36919
36920
cristy3ed852e2009-09-05 21:47:34 +000036921as_nl='
36922'
36923export as_nl
36924# Printing a long string crashes Solaris 7 /usr/bin/printf.
36925as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36926as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36927as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036928# Prefer a ksh shell builtin over an external printf program on Solaris,
36929# but without wasting forks for bash or zsh.
36930if test -z "$BASH_VERSION$ZSH_VERSION" \
36931 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36932 as_echo='print -r --'
36933 as_echo_n='print -rn --'
36934elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036935 as_echo='printf %s\n'
36936 as_echo_n='printf %s'
36937else
36938 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36939 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36940 as_echo_n='/usr/ucb/echo -n'
36941 else
36942 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36943 as_echo_n_body='eval
36944 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036945 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036946 *"$as_nl"*)
36947 expr "X$arg" : "X\\(.*\\)$as_nl";
36948 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36949 esac;
36950 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36951 '
36952 export as_echo_n_body
36953 as_echo_n='sh -c $as_echo_n_body as_echo'
36954 fi
36955 export as_echo_body
36956 as_echo='sh -c $as_echo_body as_echo'
36957fi
36958
36959# The user is always right.
36960if test "${PATH_SEPARATOR+set}" != set; then
36961 PATH_SEPARATOR=:
36962 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36963 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36964 PATH_SEPARATOR=';'
36965 }
36966fi
36967
cristy3ed852e2009-09-05 21:47:34 +000036968
36969# IFS
36970# We need space, tab and new line, in precisely that order. Quoting is
36971# there to prevent editors from complaining about space-tab.
36972# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36973# splitting by setting IFS to empty value.)
36974IFS=" "" $as_nl"
36975
36976# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036977as_myself=
cristy8b350f62009-11-15 23:12:43 +000036978case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036979 *[\\/]* ) as_myself=$0 ;;
36980 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36981for as_dir in $PATH
36982do
36983 IFS=$as_save_IFS
36984 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036985 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36986 done
cristy3ed852e2009-09-05 21:47:34 +000036987IFS=$as_save_IFS
36988
36989 ;;
36990esac
36991# We did not find ourselves, most probably we were run as `sh COMMAND'
36992# in which case we are not to be found in the path.
36993if test "x$as_myself" = x; then
36994 as_myself=$0
36995fi
36996if test ! -f "$as_myself"; then
36997 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036998 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036999fi
37000
cristy8b350f62009-11-15 23:12:43 +000037001# Unset variables that we do not need and which cause bugs (e.g. in
37002# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
37003# suppresses any "Segmentation fault" message there. '((' could
37004# trigger a bug in pdksh 5.2.14.
37005for as_var in BASH_ENV ENV MAIL MAILPATH
37006do eval test x\${$as_var+set} = xset \
37007 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000037008done
37009PS1='$ '
37010PS2='> '
37011PS4='+ '
37012
37013# NLS nuisances.
37014LC_ALL=C
37015export LC_ALL
37016LANGUAGE=C
37017export LANGUAGE
37018
cristy8b350f62009-11-15 23:12:43 +000037019# CDPATH.
37020(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37021
37022
cristy98dddb52010-11-04 00:30:15 +000037023# as_fn_error STATUS ERROR [LINENO LOG_FD]
37024# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000037025# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37026# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000037027# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000037028as_fn_error ()
37029{
cristy98dddb52010-11-04 00:30:15 +000037030 as_status=$1; test $as_status -eq 0 && as_status=1
37031 if test "$4"; then
37032 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37033 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000037034 fi
cristy98dddb52010-11-04 00:30:15 +000037035 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000037036 as_fn_exit $as_status
37037} # as_fn_error
37038
37039
37040# as_fn_set_status STATUS
37041# -----------------------
37042# Set $? to STATUS, without forking.
37043as_fn_set_status ()
37044{
37045 return $1
37046} # as_fn_set_status
37047
37048# as_fn_exit STATUS
37049# -----------------
37050# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37051as_fn_exit ()
37052{
37053 set +e
37054 as_fn_set_status $1
37055 exit $1
37056} # as_fn_exit
37057
37058# as_fn_unset VAR
37059# ---------------
37060# Portably unset VAR.
37061as_fn_unset ()
37062{
37063 { eval $1=; unset $1;}
37064}
37065as_unset=as_fn_unset
37066# as_fn_append VAR VALUE
37067# ----------------------
37068# Append the text in VALUE to the end of the definition contained in VAR. Take
37069# advantage of any shell optimizations that allow amortized linear growth over
37070# repeated appends, instead of the typical quadratic growth present in naive
37071# implementations.
37072if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37073 eval 'as_fn_append ()
37074 {
37075 eval $1+=\$2
37076 }'
37077else
37078 as_fn_append ()
37079 {
37080 eval $1=\$$1\$2
37081 }
37082fi # as_fn_append
37083
37084# as_fn_arith ARG...
37085# ------------------
37086# Perform arithmetic evaluation on the ARGs, and store the result in the
37087# global $as_val. Take advantage of shells that can avoid forks. The arguments
37088# must be portable across $(()) and expr.
37089if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37090 eval 'as_fn_arith ()
37091 {
37092 as_val=$(( $* ))
37093 }'
37094else
37095 as_fn_arith ()
37096 {
37097 as_val=`expr "$@" || test $? -eq 1`
37098 }
37099fi # as_fn_arith
37100
37101
cristy3ed852e2009-09-05 21:47:34 +000037102if expr a : '\(a\)' >/dev/null 2>&1 &&
37103 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37104 as_expr=expr
37105else
37106 as_expr=false
37107fi
37108
37109if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37110 as_basename=basename
37111else
37112 as_basename=false
37113fi
37114
cristy8b350f62009-11-15 23:12:43 +000037115if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37116 as_dirname=dirname
37117else
37118 as_dirname=false
37119fi
cristy3ed852e2009-09-05 21:47:34 +000037120
cristy3ed852e2009-09-05 21:47:34 +000037121as_me=`$as_basename -- "$0" ||
37122$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37123 X"$0" : 'X\(//\)$' \| \
37124 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37125$as_echo X/"$0" |
37126 sed '/^.*\/\([^/][^/]*\)\/*$/{
37127 s//\1/
37128 q
37129 }
37130 /^X\/\(\/\/\)$/{
37131 s//\1/
37132 q
37133 }
37134 /^X\/\(\/\).*/{
37135 s//\1/
37136 q
37137 }
37138 s/.*/./; q'`
37139
cristy8b350f62009-11-15 23:12:43 +000037140# Avoid depending upon Character Ranges.
37141as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37142as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37143as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37144as_cr_digits='0123456789'
37145as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000037146
37147ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000037148case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000037149-n*)
cristy8b350f62009-11-15 23:12:43 +000037150 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000037151 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000037152 xy) ECHO_C='\c';;
37153 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
37154 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000037155 esac;;
37156*)
37157 ECHO_N='-n';;
37158esac
cristy3ed852e2009-09-05 21:47:34 +000037159
37160rm -f conf$$ conf$$.exe conf$$.file
37161if test -d conf$$.dir; then
37162 rm -f conf$$.dir/conf$$.file
37163else
37164 rm -f conf$$.dir
37165 mkdir conf$$.dir 2>/dev/null
37166fi
37167if (echo >conf$$.file) 2>/dev/null; then
37168 if ln -s conf$$.file conf$$ 2>/dev/null; then
37169 as_ln_s='ln -s'
37170 # ... but there are two gotchas:
37171 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37172 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000037173 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000037174 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000037175 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037176 elif ln conf$$.file conf$$ 2>/dev/null; then
37177 as_ln_s=ln
37178 else
cristy14fefe52012-05-21 00:59:18 +000037179 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037180 fi
37181else
cristy14fefe52012-05-21 00:59:18 +000037182 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037183fi
37184rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37185rmdir conf$$.dir 2>/dev/null
37186
cristy8b350f62009-11-15 23:12:43 +000037187
37188# as_fn_mkdir_p
37189# -------------
37190# Create "$as_dir" as a directory, including parents if necessary.
37191as_fn_mkdir_p ()
37192{
37193
37194 case $as_dir in #(
37195 -*) as_dir=./$as_dir;;
37196 esac
37197 test -d "$as_dir" || eval $as_mkdir_p || {
37198 as_dirs=
37199 while :; do
37200 case $as_dir in #(
37201 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37202 *) as_qdir=$as_dir;;
37203 esac
37204 as_dirs="'$as_qdir' $as_dirs"
37205 as_dir=`$as_dirname -- "$as_dir" ||
37206$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37207 X"$as_dir" : 'X\(//\)[^/]' \| \
37208 X"$as_dir" : 'X\(//\)$' \| \
37209 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37210$as_echo X"$as_dir" |
37211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37212 s//\1/
37213 q
37214 }
37215 /^X\(\/\/\)[^/].*/{
37216 s//\1/
37217 q
37218 }
37219 /^X\(\/\/\)$/{
37220 s//\1/
37221 q
37222 }
37223 /^X\(\/\).*/{
37224 s//\1/
37225 q
37226 }
37227 s/.*/./; q'`
37228 test -d "$as_dir" && break
37229 done
37230 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000037231 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000037232
37233
37234} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037235if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000037236 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000037237else
37238 test -d ./-p && rmdir ./-p
37239 as_mkdir_p=false
37240fi
37241
cristy14fefe52012-05-21 00:59:18 +000037242
37243# as_fn_executable_p FILE
37244# -----------------------
37245# Test if FILE is an executable regular file.
37246as_fn_executable_p ()
37247{
37248 test -f "$1" && test -x "$1"
37249} # as_fn_executable_p
37250as_test_x='test -x'
37251as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000037252
37253# Sed expression to map a string onto a valid CPP name.
37254as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37255
37256# Sed expression to map a string onto a valid variable name.
37257as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37258
37259
37260exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000037261## ----------------------------------- ##
37262## Main body of $CONFIG_STATUS script. ##
37263## ----------------------------------- ##
37264_ASEOF
37265test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000037266
cristy8b350f62009-11-15 23:12:43 +000037267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37268# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000037269# report actual input values of CONFIG_FILES etc. instead of their
37270# values after options handling.
37271ac_log="
cristy29eb34e2011-10-16 00:46:08 +000037272This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000037273generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000037274
37275 CONFIG_FILES = $CONFIG_FILES
37276 CONFIG_HEADERS = $CONFIG_HEADERS
37277 CONFIG_LINKS = $CONFIG_LINKS
37278 CONFIG_COMMANDS = $CONFIG_COMMANDS
37279 $ $0 $@
37280
37281on `(hostname || uname -n) 2>/dev/null | sed 1q`
37282"
37283
37284_ACEOF
37285
37286case $ac_config_files in *"
37287"*) set x $ac_config_files; shift; ac_config_files=$*;;
37288esac
37289
37290case $ac_config_headers in *"
37291"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37292esac
37293
37294
37295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37296# Files that config.status was made for.
37297config_files="$ac_config_files"
37298config_headers="$ac_config_headers"
37299config_commands="$ac_config_commands"
37300
37301_ACEOF
37302
37303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37304ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000037305\`$as_me' instantiates files and other configuration actions
37306from templates according to the current configuration. Unless the files
37307and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000037308
cristy8b350f62009-11-15 23:12:43 +000037309Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000037310
37311 -h, --help print this help, then exit
37312 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000037313 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000037314 -q, --quiet, --silent
37315 do not print progress messages
37316 -d, --debug don't remove temporary files
37317 --recheck update $as_me by reconfiguring in the same conditions
37318 --file=FILE[:TEMPLATE]
37319 instantiate the configuration file FILE
37320 --header=FILE[:TEMPLATE]
37321 instantiate the configuration header FILE
37322
37323Configuration files:
37324$config_files
37325
37326Configuration headers:
37327$config_headers
37328
37329Configuration commands:
37330$config_commands
37331
cristy8b350f62009-11-15 23:12:43 +000037332Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000037333
37334_ACEOF
37335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000037336ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000037337ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000037338ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000037339configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000037340 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000037341
cristy14fefe52012-05-21 00:59:18 +000037342Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000037343This config.status script is free software; the Free Software Foundation
37344gives unlimited permission to copy, distribute and modify it."
37345
37346ac_pwd='$ac_pwd'
37347srcdir='$srcdir'
37348INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000037349MKDIR_P='$MKDIR_P'
37350AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000037351test -n "\$AWK" || AWK=awk
37352_ACEOF
37353
37354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37355# The default lists apply if the user does not specify any file.
37356ac_need_defaults=:
37357while test $# != 0
37358do
37359 case $1 in
cristyda16f162011-02-19 23:52:17 +000037360 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000037361 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37362 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37363 ac_shift=:
37364 ;;
cristyda16f162011-02-19 23:52:17 +000037365 --*=)
37366 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37367 ac_optarg=
37368 ac_shift=:
37369 ;;
cristy3ed852e2009-09-05 21:47:34 +000037370 *)
37371 ac_option=$1
37372 ac_optarg=$2
37373 ac_shift=shift
37374 ;;
37375 esac
37376
37377 case $ac_option in
37378 # Handling of the options.
37379 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37380 ac_cs_recheck=: ;;
37381 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37382 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000037383 --config | --confi | --conf | --con | --co | --c )
37384 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000037385 --debug | --debu | --deb | --de | --d | -d )
37386 debug=: ;;
37387 --file | --fil | --fi | --f )
37388 $ac_shift
37389 case $ac_optarg in
37390 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000037391 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000037392 esac
cristy8b350f62009-11-15 23:12:43 +000037393 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037394 ac_need_defaults=false;;
37395 --header | --heade | --head | --hea )
37396 $ac_shift
37397 case $ac_optarg in
37398 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37399 esac
cristy8b350f62009-11-15 23:12:43 +000037400 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037401 ac_need_defaults=false;;
37402 --he | --h)
37403 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000037404 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037405Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000037406 --help | --hel | -h )
37407 $as_echo "$ac_cs_usage"; exit ;;
37408 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37409 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37410 ac_cs_silent=: ;;
37411
37412 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000037413 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037414Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000037415
cristy8b350f62009-11-15 23:12:43 +000037416 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000037417 ac_need_defaults=false ;;
37418
37419 esac
37420 shift
37421done
37422
37423ac_configure_extra_args=
37424
37425if $ac_cs_silent; then
37426 exec 6>/dev/null
37427 ac_configure_extra_args="$ac_configure_extra_args --silent"
37428fi
37429
37430_ACEOF
37431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37432if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000037433 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000037434 shift
37435 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37436 CONFIG_SHELL='$SHELL'
37437 export CONFIG_SHELL
37438 exec "\$@"
37439fi
37440
37441_ACEOF
37442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37443exec 5>>config.log
37444{
37445 echo
37446 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37447## Running $as_me. ##
37448_ASBOX
37449 $as_echo "$ac_log"
37450} >&5
37451
37452_ACEOF
37453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000037454#
37455# INIT-COMMANDS
37456#
37457PACKAGE="$PACKAGE"
37458AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37459
37460
37461# The HP-UX ksh and POSIX shell print the target directory to stdout
37462# if CDPATH is set.
37463(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37464
37465sed_quote_subst='$sed_quote_subst'
37466double_quote_subst='$double_quote_subst'
37467delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000037468SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37469Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37470GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37471EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37472FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37473SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37474ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37475LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37476macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37477macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37478AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37479DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37480OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37481enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37482enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37483pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37484enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000037485PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037486host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37487host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37488host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37489build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37490build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37491build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37492NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37493LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37494max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37495ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37496exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37497lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37498lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37499lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037500lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37501lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037502reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37503reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37504deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37505file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037506file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37507want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37508sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037509AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37510AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037511archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037512STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37513RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37514old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37515old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37516old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37517lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37518CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37519CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37520compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37521GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37522lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37523lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37524lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37525lt_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"`'
cristyda16f162011-02-19 23:52:17 +000037526nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37527lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037528objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37529MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37530lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037531lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037532lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037533lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37534lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37535need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037536MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037537DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37538NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37539LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37540OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37541OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37542libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37543shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37544extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37545archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37546enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37547export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37548whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37549compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37550old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37551old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37552archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37553archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37554module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37555module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37556with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37557allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37558no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37559hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037560hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37561hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37562hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37563hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37564hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37565hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37566inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37567link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037568always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37569export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37570exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37571include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37572prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037573postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037574file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37575variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37576need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37577need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37578version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37579runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37580shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37581shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37582libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37583library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37584soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37585install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37586postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37587postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37588finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37589finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37590hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37591sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37592sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37593hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37594enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37595enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37596enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37597old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37598striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37599compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37600predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37601postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37602predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37603postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37604compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37605LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37606reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37607reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37608old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37609compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37610GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37611lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037612lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037613lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037614lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37615lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37616archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37617enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37618export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37619whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37620compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37621old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37622old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37623archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37624archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37625module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37626module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37627with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37628allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37629no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37630hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037631hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37632hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37633hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37634hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37635hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37636hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37637inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37638link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037639always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37640export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37641exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37642include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37643prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037644postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037645file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37646hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37647compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37648predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37649postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37650predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37651postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37652compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037653
37654LTCC='$LTCC'
37655LTCFLAGS='$LTCFLAGS'
37656compiler='$compiler_DEFAULT'
37657
cristy0c60a692010-11-04 01:09:47 +000037658# A function that is used when there is no print builtin or printf.
37659func_fallback_echo ()
37660{
37661 eval 'cat <<_LTECHO_EOF
37662\$1
37663_LTECHO_EOF'
37664}
37665
cristy73bd4a52010-10-05 11:24:23 +000037666# Quote evaled strings.
37667for var in SED \
37668GREP \
37669EGREP \
37670FGREP \
cristy0c60a692010-11-04 01:09:47 +000037671SHELL \
37672ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037673LD \
cristy0c60a692010-11-04 01:09:47 +000037674AS \
37675DLLTOOL \
37676OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037677PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037678NM \
37679LN_S \
37680lt_SP2NL \
37681lt_NL2SP \
37682reload_flag \
37683deplibs_check_method \
37684file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037685file_magic_glob \
37686want_nocaseglob \
37687sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037688AR \
37689AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037690archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037691STRIP \
37692RANLIB \
37693CC \
37694CFLAGS \
37695compiler \
37696lt_cv_sys_global_symbol_pipe \
37697lt_cv_sys_global_symbol_to_cdecl \
37698lt_cv_sys_global_symbol_to_c_name_address \
37699lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037700nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037701lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037702lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037703lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037704lt_prog_compiler_static \
37705lt_cv_prog_compiler_c_o \
37706need_locks \
cristyda16f162011-02-19 23:52:17 +000037707MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037708DSYMUTIL \
37709NMEDIT \
37710LIPO \
37711OTOOL \
37712OTOOL64 \
37713shrext_cmds \
37714export_dynamic_flag_spec \
37715whole_archive_flag_spec \
37716compiler_needs_object \
37717with_gnu_ld \
37718allow_undefined_flag \
37719no_undefined_flag \
37720hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037721hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037722exclude_expsyms \
37723include_expsyms \
37724file_list_spec \
37725variables_saved_for_relink \
37726libname_spec \
37727library_names_spec \
37728soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037729install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037730finish_eval \
37731old_striplib \
37732striplib \
37733compiler_lib_search_dirs \
37734predep_objects \
37735postdep_objects \
37736predeps \
37737postdeps \
37738compiler_lib_search_path \
37739LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037740reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037741compiler_CXX \
37742lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037743lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037744lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037745lt_prog_compiler_static_CXX \
37746lt_cv_prog_compiler_c_o_CXX \
37747export_dynamic_flag_spec_CXX \
37748whole_archive_flag_spec_CXX \
37749compiler_needs_object_CXX \
37750with_gnu_ld_CXX \
37751allow_undefined_flag_CXX \
37752no_undefined_flag_CXX \
37753hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037754hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037755exclude_expsyms_CXX \
37756include_expsyms_CXX \
37757file_list_spec_CXX \
37758compiler_lib_search_dirs_CXX \
37759predep_objects_CXX \
37760postdep_objects_CXX \
37761predeps_CXX \
37762postdeps_CXX \
37763compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037764 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037765 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037766 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037767 ;;
37768 *)
37769 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37770 ;;
37771 esac
37772done
37773
37774# Double-quote double-evaled strings.
37775for var in reload_cmds \
37776old_postinstall_cmds \
37777old_postuninstall_cmds \
37778old_archive_cmds \
37779extract_expsyms_cmds \
37780old_archive_from_new_cmds \
37781old_archive_from_expsyms_cmds \
37782archive_cmds \
37783archive_expsym_cmds \
37784module_cmds \
37785module_expsym_cmds \
37786export_symbols_cmds \
37787prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037788postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037789postinstall_cmds \
37790postuninstall_cmds \
37791finish_cmds \
37792sys_lib_search_path_spec \
37793sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037794reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037795old_archive_cmds_CXX \
37796old_archive_from_new_cmds_CXX \
37797old_archive_from_expsyms_cmds_CXX \
37798archive_cmds_CXX \
37799archive_expsym_cmds_CXX \
37800module_cmds_CXX \
37801module_expsym_cmds_CXX \
37802export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037803prelink_cmds_CXX \
37804postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037805 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037806 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037807 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037808 ;;
37809 *)
37810 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37811 ;;
37812 esac
37813done
37814
cristy73bd4a52010-10-05 11:24:23 +000037815ac_aux_dir='$ac_aux_dir'
37816xsi_shell='$xsi_shell'
37817lt_shell_append='$lt_shell_append'
37818
37819# See if we are running on zsh, and set the options which allow our
37820# commands through without removal of \ escapes INIT.
37821if test -n "\${ZSH_VERSION+set}" ; then
37822 setopt NO_GLOB_SUBST
37823fi
37824
37825
37826 PACKAGE='$PACKAGE'
37827 VERSION='$VERSION'
37828 TIMESTAMP='$TIMESTAMP'
37829 RM='$RM'
37830 ofile='$ofile'
37831
37832
37833
37834
37835
37836
cristy3ed852e2009-09-05 21:47:34 +000037837_ACEOF
37838
37839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37840
37841# Handling of arguments.
37842for ac_config_target in $ac_config_targets
37843do
37844 case $ac_config_target in
37845 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037846 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy9af1cbf2014-12-28 22:03:09 +000037847 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37848 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37849 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37850 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37851 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37852 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37853 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37854 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
cristy305c5dd2012-09-13 00:30:13 +000037855 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037856 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37857 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37858 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37859 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37860 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037861 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy5a3dc992014-12-05 19:50:04 +000037862 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
cristy430a7312010-01-21 20:44:04 +000037863 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037864 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37865 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37866 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37867 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37868 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037869 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037870 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037871 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37872 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37873 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037874 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37875 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037876 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037877 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037878 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037879 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037880 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37881 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37882 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37883 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037884 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37885 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37886 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37887 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37888 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37889 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37890 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37891 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37892 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37893 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37894 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37895 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037896 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37897 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037898
cristy98dddb52010-11-04 00:30:15 +000037899 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037900 esac
37901done
37902
37903
37904# If the user did not use the arguments to specify the items to instantiate,
37905# then the envvar interface is used. Set only those that are not.
37906# We use the long form for the default assignment because of an extremely
37907# bizarre bug on SunOS 4.1.3.
37908if $ac_need_defaults; then
37909 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37910 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37911 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37912fi
37913
37914# Have a temporary directory for convenience. Make it in the build tree
37915# simply because there is no reason against having it here, and in addition,
37916# creating and moving files from /tmp can sometimes cause problems.
37917# Hook for its removal unless debugging.
37918# Note that there is a small window in which the directory will not be cleaned:
37919# after its creation but before its name has been assigned to `$tmp'.
37920$debug ||
37921{
cristyda16f162011-02-19 23:52:17 +000037922 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037923 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037924 : "${ac_tmp:=$tmp}"
37925 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037926' 0
cristy8b350f62009-11-15 23:12:43 +000037927 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037928}
37929# Create a (secure) tmp directory for tmp files.
37930
37931{
37932 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037933 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037934} ||
37935{
37936 tmp=./conf$$-$RANDOM
37937 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037938} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037939ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037940
37941# Set up the scripts for CONFIG_FILES section.
37942# No need to generate them if there are no CONFIG_FILES.
37943# This happens for instance with `./config.status config.h'.
37944if test -n "$CONFIG_FILES"; then
37945
37946
cristy8b350f62009-11-15 23:12:43 +000037947ac_cr=`echo X | tr X '\015'`
37948# On cygwin, bash can eat \r inside `` if the user requested igncr.
37949# But we know of no other shell where ac_cr would be empty at this
37950# point, so we can use a bashism as a fallback.
37951if test "x$ac_cr" = x; then
37952 eval ac_cr=\$\'\\r\'
37953fi
cristy3ed852e2009-09-05 21:47:34 +000037954ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37955if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037956 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037957else
37958 ac_cs_awk_cr=$ac_cr
37959fi
37960
cristyda16f162011-02-19 23:52:17 +000037961echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037962_ACEOF
37963
37964
37965{
37966 echo "cat >conf$$subs.awk <<_ACEOF" &&
37967 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37968 echo "_ACEOF"
37969} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037970 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37971ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037972ac_delim='%!_!# '
37973for ac_last_try in false false false false false :; do
37974 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037975 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037976
37977 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37978 if test $ac_delim_n = $ac_delim_num; then
37979 break
37980 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037981 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037982 else
37983 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37984 fi
37985done
37986rm -f conf$$subs.sh
37987
37988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037989cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037990_ACEOF
37991sed -n '
37992h
37993s/^/S["/; s/!.*/"]=/
37994p
37995g
37996s/^[^!]*!//
37997:repl
37998t repl
37999s/'"$ac_delim"'$//
38000t delim
38001:nl
38002h
cristycd4c5312009-11-22 01:19:08 +000038003s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000038004t more1
38005s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38006p
38007n
38008b repl
38009:more1
38010s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38011p
38012g
38013s/.\{148\}//
38014t nl
38015:delim
38016h
cristycd4c5312009-11-22 01:19:08 +000038017s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000038018t more2
38019s/["\\]/\\&/g; s/^/"/; s/$/"/
38020p
38021b
38022:more2
38023s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38024p
38025g
38026s/.\{148\}//
38027t delim
38028' <conf$$subs.awk | sed '
38029/^[^""]/{
38030 N
38031 s/\n//
38032}
38033' >>$CONFIG_STATUS || ac_write_fail=1
38034rm -f conf$$subs.awk
38035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38036_ACAWK
cristyda16f162011-02-19 23:52:17 +000038037cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000038038 for (key in S) S_is_set[key] = 1
38039 FS = ""
38040
38041}
38042{
38043 line = $ 0
38044 nfields = split(line, field, "@")
38045 substed = 0
38046 len = length(field[1])
38047 for (i = 2; i < nfields; i++) {
38048 key = field[i]
38049 keylen = length(key)
38050 if (S_is_set[key]) {
38051 value = S[key]
38052 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38053 len += length(value) + length(field[++i])
38054 substed = 1
38055 } else
38056 len += 1 + keylen
38057 }
38058
38059 print line
38060}
38061
38062_ACAWK
38063_ACEOF
38064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38065if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38066 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38067else
38068 cat
cristyda16f162011-02-19 23:52:17 +000038069fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000038070 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038071_ACEOF
38072
cristy98dddb52010-11-04 00:30:15 +000038073# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38074# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000038075# trailing colons and then remove the whole line if VPATH becomes empty
38076# (actually we leave an empty line to preserve line numbers).
38077if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000038078 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
38079h
38080s///
38081s/^/:/
38082s/[ ]*$/:/
38083s/:\$(srcdir):/:/g
38084s/:\${srcdir}:/:/g
38085s/:@srcdir@:/:/g
38086s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000038087s/:*$//
cristy98dddb52010-11-04 00:30:15 +000038088x
38089s/\(=[ ]*\).*/\1/
38090G
38091s/\n//
cristy3ed852e2009-09-05 21:47:34 +000038092s/^[^=]*=[ ]*$//
38093}'
38094fi
38095
38096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38097fi # test -n "$CONFIG_FILES"
38098
38099# Set up the scripts for CONFIG_HEADERS section.
38100# No need to generate them if there are no CONFIG_HEADERS.
38101# This happens for instance with `./config.status Makefile'.
38102if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000038103cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000038104BEGIN {
38105_ACEOF
38106
38107# Transform confdefs.h into an awk script `defines.awk', embedded as
38108# here-document in config.status, that substitutes the proper values into
38109# config.h.in to produce config.h.
38110
38111# Create a delimiter string that does not exist in confdefs.h, to ease
38112# handling of long lines.
38113ac_delim='%!_!# '
38114for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000038115 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38116 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000038117 break
38118 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000038119 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038120 else
38121 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38122 fi
38123done
38124
38125# For the awk script, D is an array of macro values keyed by name,
38126# likewise P contains macro parameters if any. Preserve backslash
38127# newline sequences.
38128
38129ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38130sed -n '
38131s/.\{148\}/&'"$ac_delim"'/g
38132t rset
38133:rset
38134s/^[ ]*#[ ]*define[ ][ ]*/ /
38135t def
38136d
38137:def
38138s/\\$//
38139t bsnl
38140s/["\\]/\\&/g
38141s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38142D["\1"]=" \3"/p
38143s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
38144d
38145:bsnl
38146s/["\\]/\\&/g
38147s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38148D["\1"]=" \3\\\\\\n"\\/p
38149t cont
38150s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38151t cont
38152d
38153:cont
38154n
38155s/.\{148\}/&'"$ac_delim"'/g
38156t clear
38157:clear
38158s/\\$//
38159t bsnlc
38160s/["\\]/\\&/g; s/^/"/; s/$/"/p
38161d
38162:bsnlc
38163s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38164b cont
38165' <confdefs.h | sed '
38166s/'"$ac_delim"'/"\\\
38167"/g' >>$CONFIG_STATUS || ac_write_fail=1
38168
38169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38170 for (key in D) D_is_set[key] = 1
38171 FS = ""
38172}
38173/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38174 line = \$ 0
38175 split(line, arg, " ")
38176 if (arg[1] == "#") {
38177 defundef = arg[2]
38178 mac1 = arg[3]
38179 } else {
38180 defundef = substr(arg[1], 2)
38181 mac1 = arg[2]
38182 }
38183 split(mac1, mac2, "(") #)
38184 macro = mac2[1]
38185 prefix = substr(line, 1, index(line, defundef) - 1)
38186 if (D_is_set[macro]) {
38187 # Preserve the white space surrounding the "#".
38188 print prefix "define", macro P[macro] D[macro]
38189 next
38190 } else {
38191 # Replace #undef with comments. This is necessary, for example,
38192 # in the case of _POSIX_SOURCE, which is predefined and required
38193 # on some systems where configure will not decide to define it.
38194 if (defundef == "undef") {
38195 print "/*", prefix defundef, macro, "*/"
38196 next
38197 }
38198 }
38199}
38200{ print }
38201_ACAWK
38202_ACEOF
38203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000038204 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038205fi # test -n "$CONFIG_HEADERS"
38206
38207
38208eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
38209shift
38210for ac_tag
38211do
38212 case $ac_tag in
38213 :[FHLC]) ac_mode=$ac_tag; continue;;
38214 esac
38215 case $ac_mode$ac_tag in
38216 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000038217 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038218 :[FH]-) ac_tag=-:-;;
38219 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38220 esac
38221 ac_save_IFS=$IFS
38222 IFS=:
38223 set x $ac_tag
38224 IFS=$ac_save_IFS
38225 shift
38226 ac_file=$1
38227 shift
38228
38229 case $ac_mode in
38230 :L) ac_source=$1;;
38231 :[FH])
38232 ac_file_inputs=
38233 for ac_f
38234 do
38235 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000038236 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000038237 *) # Look for the file first in the build tree, then in the source tree
38238 # (if the path is not absolute). The absolute path cannot be DOS-style,
38239 # because $ac_f cannot contain `:'.
38240 test -f "$ac_f" ||
38241 case $ac_f in
38242 [\\/$]*) false;;
38243 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38244 esac ||
cristy98dddb52010-11-04 00:30:15 +000038245 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038246 esac
38247 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000038248 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000038249 done
38250
38251 # Let's still pretend it is `configure' which instantiates (i.e., don't
38252 # use $as_me), people would be surprised to read:
38253 # /* config.h. Generated by config.status. */
38254 configure_input='Generated from '`
38255 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38256 `' by configure.'
38257 if test x"$ac_file" != x-; then
38258 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000038259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000038260$as_echo "$as_me: creating $ac_file" >&6;}
38261 fi
38262 # Neutralize special characters interpreted by sed in replacement strings.
38263 case $configure_input in #(
38264 *\&* | *\|* | *\\* )
38265 ac_sed_conf_input=`$as_echo "$configure_input" |
38266 sed 's/[\\\\&|]/\\\\&/g'`;; #(
38267 *) ac_sed_conf_input=$configure_input;;
38268 esac
38269
38270 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000038271 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000038272 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000038273 esac
38274 ;;
38275 esac
38276
38277 ac_dir=`$as_dirname -- "$ac_file" ||
38278$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38279 X"$ac_file" : 'X\(//\)[^/]' \| \
38280 X"$ac_file" : 'X\(//\)$' \| \
38281 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38282$as_echo X"$ac_file" |
38283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38284 s//\1/
38285 q
38286 }
38287 /^X\(\/\/\)[^/].*/{
38288 s//\1/
38289 q
38290 }
38291 /^X\(\/\/\)$/{
38292 s//\1/
38293 q
38294 }
38295 /^X\(\/\).*/{
38296 s//\1/
38297 q
38298 }
38299 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000038300 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000038301 ac_builddir=.
38302
38303case "$ac_dir" in
38304.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38305*)
38306 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38307 # A ".." for each directory in $ac_dir_suffix.
38308 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38309 case $ac_top_builddir_sub in
38310 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38311 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38312 esac ;;
38313esac
38314ac_abs_top_builddir=$ac_pwd
38315ac_abs_builddir=$ac_pwd$ac_dir_suffix
38316# for backward compatibility:
38317ac_top_builddir=$ac_top_build_prefix
38318
38319case $srcdir in
38320 .) # We are building in place.
38321 ac_srcdir=.
38322 ac_top_srcdir=$ac_top_builddir_sub
38323 ac_abs_top_srcdir=$ac_pwd ;;
38324 [\\/]* | ?:[\\/]* ) # Absolute name.
38325 ac_srcdir=$srcdir$ac_dir_suffix;
38326 ac_top_srcdir=$srcdir
38327 ac_abs_top_srcdir=$srcdir ;;
38328 *) # Relative name.
38329 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38330 ac_top_srcdir=$ac_top_build_prefix$srcdir
38331 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38332esac
38333ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38334
38335
38336 case $ac_mode in
38337 :F)
38338 #
38339 # CONFIG_FILE
38340 #
38341
38342 case $INSTALL in
38343 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38344 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38345 esac
cristy73bd4a52010-10-05 11:24:23 +000038346 ac_MKDIR_P=$MKDIR_P
38347 case $MKDIR_P in
38348 [\\/$]* | ?:[\\/]* ) ;;
38349 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38350 esac
cristy3ed852e2009-09-05 21:47:34 +000038351_ACEOF
38352
38353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38354# If the template does not know about datarootdir, expand it.
38355# FIXME: This hack should be removed a few years after 2.60.
38356ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000038357ac_sed_dataroot='
38358/datarootdir/ {
38359 p
38360 q
38361}
38362/@datadir@/p
38363/@docdir@/p
38364/@infodir@/p
38365/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000038366/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000038367case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38368*datarootdir*) ac_datarootdir_seen=yes;;
38369*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000038370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000038371$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38372_ACEOF
38373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38374 ac_datarootdir_hack='
38375 s&@datadir@&$datadir&g
38376 s&@docdir@&$docdir&g
38377 s&@infodir@&$infodir&g
38378 s&@localedir@&$localedir&g
38379 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000038380 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000038381esac
38382_ACEOF
38383
38384# Neutralize VPATH when `$srcdir' = `.'.
38385# Shell code in configure.ac might set extrasub.
38386# FIXME: do we really want to maintain this feature?
38387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38388ac_sed_extra="$ac_vpsub
38389$extrasub
38390_ACEOF
38391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38392:t
38393/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38394s|@configure_input@|$ac_sed_conf_input|;t t
38395s&@top_builddir@&$ac_top_builddir_sub&;t t
38396s&@top_build_prefix@&$ac_top_build_prefix&;t t
38397s&@srcdir@&$ac_srcdir&;t t
38398s&@abs_srcdir@&$ac_abs_srcdir&;t t
38399s&@top_srcdir@&$ac_top_srcdir&;t t
38400s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38401s&@builddir@&$ac_builddir&;t t
38402s&@abs_builddir@&$ac_abs_builddir&;t t
38403s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38404s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000038405s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000038406$ac_datarootdir_hack
38407"
cristyda16f162011-02-19 23:52:17 +000038408eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38409 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038410
38411test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000038412 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38413 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38414 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000038415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038416which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000038417$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038418which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000038419
cristyda16f162011-02-19 23:52:17 +000038420 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000038421 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000038422 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38423 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000038424 esac \
cristy98dddb52010-11-04 00:30:15 +000038425 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038426 ;;
38427 :H)
38428 #
38429 # CONFIG_HEADER
38430 #
38431 if test x"$ac_file" != x-; then
38432 {
38433 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038434 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38435 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000038436 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038437 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000038438 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000038439$as_echo "$as_me: $ac_file is unchanged" >&6;}
38440 else
38441 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000038442 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000038443 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038444 fi
38445 else
38446 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038447 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000038448 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038449 fi
cristy73bd4a52010-10-05 11:24:23 +000038450# Compute "$ac_file"'s index in $config_headers.
38451_am_arg="$ac_file"
38452_am_stamp_count=1
38453for _am_header in $config_headers :; do
38454 case $_am_header in
38455 $_am_arg | $_am_arg:* )
38456 break ;;
38457 * )
38458 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38459 esac
38460done
38461echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38462$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38463 X"$_am_arg" : 'X\(//\)[^/]' \| \
38464 X"$_am_arg" : 'X\(//\)$' \| \
38465 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38466$as_echo X"$_am_arg" |
38467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38468 s//\1/
38469 q
38470 }
38471 /^X\(\/\/\)[^/].*/{
38472 s//\1/
38473 q
38474 }
38475 /^X\(\/\/\)$/{
38476 s//\1/
38477 q
38478 }
38479 /^X\(\/\).*/{
38480 s//\1/
38481 q
38482 }
38483 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000038484 ;;
38485
cristy8b350f62009-11-15 23:12:43 +000038486 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000038487$as_echo "$as_me: executing $ac_file commands" >&6;}
38488 ;;
38489 esac
38490
38491
38492 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000038493 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000038494ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38495ac_prefix_conf_PKG=`echo MagickCore`
38496ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38497ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
38498ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38499if test ".$ac_prefix_conf_INP" = "."; then
38500 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38501 case "$ac_file" in
38502 *.h) ac_prefix_conf_INP=$ac_file ;;
38503 *)
38504 esac
38505 test ".$ac_prefix_conf_INP" != "." && break
38506 done
38507fi
38508if test ".$ac_prefix_conf_INP" = "."; then
38509 case "$ac_prefix_conf_OUT" in
38510 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38511 ;;
38512 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38513 ;;
38514 *) ac_prefix_conf_INP=config.h
38515 ;;
38516 esac
38517fi
38518if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000038519 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000038520else
38521 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38522 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38523 fi fi
38524 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38525$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38526 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000038527 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38528 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38529 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38530 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38531 $as_echo "#endif/" >> conftest.prefix
38532 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38533 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38534 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000038535 # now executing _script on _DEF input to create _OUT output file
38536 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
38537 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38538 echo ' ' >>$tmp/pconfig.h
38539 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38540
38541 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38542 echo ' ' >>$tmp/pconfig.h
38543 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38544 echo "#endif" >>$tmp/pconfig.h
38545 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38546 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38547$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38548 else
38549 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38550$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38551 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38552 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38553 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38554$as_echo X"$ac_prefix_conf_OUT" |
38555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38556 s//\1/
38557 q
38558 }
38559 /^X\(\/\/\)[^/].*/{
38560 s//\1/
38561 q
38562 }
38563 /^X\(\/\/\)$/{
38564 s//\1/
38565 q
38566 }
38567 /^X\(\/\).*/{
38568 s//\1/
38569 q
38570 }
38571 s/.*/./; q'`
38572 as_dir="$ac_dir"; as_fn_mkdir_p
38573 rm -f "$ac_prefix_conf_OUT"
38574 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38575 fi
cristy73bd4a52010-10-05 11:24:23 +000038576 else
cristy98dddb52010-11-04 00:30:15 +000038577 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000038578 fi
38579 rm -f conftest.*
38580fi
38581 ;;
38582 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038583 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038584 # are listed without --file. Let's play safe and only enable the eval
38585 # if we detect the quoting.
38586 case $CONFIG_FILES in
38587 *\'*) eval set x "$CONFIG_FILES" ;;
38588 *) set x $CONFIG_FILES ;;
38589 esac
38590 shift
38591 for mf
38592 do
38593 # Strip MF so we end up with the name of the file.
38594 mf=`echo "$mf" | sed -e 's/:.*$//'`
38595 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038596 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038597 # some people rename them; so instead we look at the file content.
38598 # Grep'ing the first line is not enough: some people post-process
38599 # each Makefile.in and add a new line on top of each file to say so.
38600 # Grep'ing the whole file is not good either: AIX grep has a line
38601 # limit of 2048, but all sed's we know have understand at least 4000.
38602 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38603 dirpart=`$as_dirname -- "$mf" ||
38604$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38605 X"$mf" : 'X\(//\)[^/]' \| \
38606 X"$mf" : 'X\(//\)$' \| \
38607 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38608$as_echo X"$mf" |
38609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38610 s//\1/
38611 q
38612 }
38613 /^X\(\/\/\)[^/].*/{
38614 s//\1/
38615 q
38616 }
38617 /^X\(\/\/\)$/{
38618 s//\1/
38619 q
38620 }
38621 /^X\(\/\).*/{
38622 s//\1/
38623 q
38624 }
38625 s/.*/./; q'`
38626 else
38627 continue
38628 fi
38629 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038630 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038631 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38632 test -z "$DEPDIR" && continue
38633 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038634 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038635 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038636 # Find all dependency output files, they are included files with
38637 # $(DEPDIR) in their names. We invoke sed twice because it is the
38638 # simplest approach to changing $(DEPDIR) to its actual value in the
38639 # expansion.
38640 for file in `sed -n "
38641 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038642 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038643 # Make sure the directory exists.
38644 test -f "$dirpart/$file" && continue
38645 fdir=`$as_dirname -- "$file" ||
38646$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38647 X"$file" : 'X\(//\)[^/]' \| \
38648 X"$file" : 'X\(//\)$' \| \
38649 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38650$as_echo X"$file" |
38651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38652 s//\1/
38653 q
38654 }
38655 /^X\(\/\/\)[^/].*/{
38656 s//\1/
38657 q
38658 }
38659 /^X\(\/\/\)$/{
38660 s//\1/
38661 q
38662 }
38663 /^X\(\/\).*/{
38664 s//\1/
38665 q
38666 }
38667 s/.*/./; q'`
38668 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38669 # echo "creating $dirpart/$file"
38670 echo '# dummy' > "$dirpart/$file"
38671 done
38672 done
38673}
38674 ;;
38675 "libtool":C)
38676
38677 # See if we are running on zsh, and set the options which allow our
38678 # commands through without removal of \ escapes.
38679 if test -n "${ZSH_VERSION+set}" ; then
38680 setopt NO_GLOB_SUBST
38681 fi
38682
38683 cfgfile="${ofile}T"
38684 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38685 $RM "$cfgfile"
38686
38687 cat <<_LT_EOF >> "$cfgfile"
38688#! $SHELL
38689
38690# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38691# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38692# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38693# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38694#
38695# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038696# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38697# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038698# Written by Gordon Matzigkeit, 1996
38699#
38700# This file is part of GNU Libtool.
38701#
38702# GNU Libtool is free software; you can redistribute it and/or
38703# modify it under the terms of the GNU General Public License as
38704# published by the Free Software Foundation; either version 2 of
38705# the License, or (at your option) any later version.
38706#
38707# As a special exception to the GNU General Public License,
38708# if you distribute this file as part of a program or library that
38709# is built using GNU Libtool, you may include this file under the
38710# same distribution terms that you use for the rest of that program.
38711#
38712# GNU Libtool is distributed in the hope that it will be useful,
38713# but WITHOUT ANY WARRANTY; without even the implied warranty of
38714# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38715# GNU General Public License for more details.
38716#
38717# You should have received a copy of the GNU General Public License
38718# along with GNU Libtool; see the file COPYING. If not, a copy
38719# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38720# obtained by writing to the Free Software Foundation, Inc.,
38721# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38722
38723
38724# The names of the tagged configurations supported by this script.
38725available_tags="CXX "
38726
38727# ### BEGIN LIBTOOL CONFIG
38728
38729# A sed program that does not truncate output.
38730SED=$lt_SED
38731
38732# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38733Xsed="\$SED -e 1s/^X//"
38734
38735# A grep program that handles long lines.
38736GREP=$lt_GREP
38737
38738# An ERE matcher.
38739EGREP=$lt_EGREP
38740
38741# A literal string matcher.
38742FGREP=$lt_FGREP
38743
cristy0c60a692010-11-04 01:09:47 +000038744# Shell to use when invoking shell scripts.
38745SHELL=$lt_SHELL
38746
38747# An echo program that protects backslashes.
38748ECHO=$lt_ECHO
38749
cristy73bd4a52010-10-05 11:24:23 +000038750# Which release of libtool.m4 was used?
38751macro_version=$macro_version
38752macro_revision=$macro_revision
38753
38754# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038755AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038756
38757# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038758DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038759
38760# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038761OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038762
38763# Whether or not to build shared libraries.
38764build_libtool_libs=$enable_shared
38765
38766# Whether or not to build static libraries.
38767build_old_libs=$enable_static
38768
38769# What type of objects to build.
38770pic_mode=$pic_mode
38771
38772# Whether or not to optimize for fast installation.
38773fast_install=$enable_fast_install
38774
cristy99bd5232011-12-07 14:38:20 +000038775# The PATH separator for the build system.
38776PATH_SEPARATOR=$lt_PATH_SEPARATOR
38777
cristy73bd4a52010-10-05 11:24:23 +000038778# The host system.
38779host_alias=$host_alias
38780host=$host
38781host_os=$host_os
38782
38783# The build system.
38784build_alias=$build_alias
38785build=$build
38786build_os=$build_os
38787
38788# A BSD- or MS-compatible name lister.
38789NM=$lt_NM
38790
38791# Whether we need soft or hard links.
38792LN_S=$lt_LN_S
38793
38794# What is the maximum length of a command?
38795max_cmd_len=$max_cmd_len
38796
38797# Object file suffix (normally "o").
38798objext=$ac_objext
38799
38800# Executable file suffix (normally "").
38801exeext=$exeext
38802
38803# whether the shell understands "unset".
38804lt_unset=$lt_unset
38805
38806# turn spaces into newlines.
38807SP2NL=$lt_lt_SP2NL
38808
38809# turn newlines into spaces.
38810NL2SP=$lt_lt_NL2SP
38811
cristyda16f162011-02-19 23:52:17 +000038812# convert \$build file names to \$host format.
38813to_host_file_cmd=$lt_cv_to_host_file_cmd
38814
38815# convert \$build files to toolchain format.
38816to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38817
cristy73bd4a52010-10-05 11:24:23 +000038818# Method to check whether dependent libraries are shared objects.
38819deplibs_check_method=$lt_deplibs_check_method
38820
cristyda16f162011-02-19 23:52:17 +000038821# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038822file_magic_cmd=$lt_file_magic_cmd
38823
cristyda16f162011-02-19 23:52:17 +000038824# How to find potential files when deplibs_check_method = "file_magic".
38825file_magic_glob=$lt_file_magic_glob
38826
38827# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38828want_nocaseglob=$lt_want_nocaseglob
38829
38830# Command to associate shared and link libraries.
38831sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38832
cristy73bd4a52010-10-05 11:24:23 +000038833# The archiver.
38834AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038835
38836# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038837AR_FLAGS=$lt_AR_FLAGS
38838
cristyda16f162011-02-19 23:52:17 +000038839# How to feed a file listing to the archiver.
38840archiver_list_spec=$lt_archiver_list_spec
38841
cristy73bd4a52010-10-05 11:24:23 +000038842# A symbol stripping program.
38843STRIP=$lt_STRIP
38844
38845# Commands used to install an old-style archive.
38846RANLIB=$lt_RANLIB
38847old_postinstall_cmds=$lt_old_postinstall_cmds
38848old_postuninstall_cmds=$lt_old_postuninstall_cmds
38849
cristy0c60a692010-11-04 01:09:47 +000038850# Whether to use a lock for old archive extraction.
38851lock_old_archive_extraction=$lock_old_archive_extraction
38852
cristy73bd4a52010-10-05 11:24:23 +000038853# A C compiler.
38854LTCC=$lt_CC
38855
38856# LTCC compiler flags.
38857LTCFLAGS=$lt_CFLAGS
38858
38859# Take the output of nm and produce a listing of raw symbols and C names.
38860global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38861
38862# Transform the output of nm in a proper C declaration.
38863global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38864
38865# Transform the output of nm in a C name address pair.
38866global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38867
38868# Transform the output of nm in a C name address pair when lib prefix is needed.
38869global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38870
cristyda16f162011-02-19 23:52:17 +000038871# Specify filename containing input files for \$NM.
38872nm_file_list_spec=$lt_nm_file_list_spec
38873
38874# The root where to search for dependent libraries,and in which our libraries should be installed.
38875lt_sysroot=$lt_sysroot
38876
cristy73bd4a52010-10-05 11:24:23 +000038877# The name of the directory that contains temporary libtool files.
38878objdir=$objdir
38879
cristy73bd4a52010-10-05 11:24:23 +000038880# Used to examine libraries when file_magic_cmd begins with "file".
38881MAGIC_CMD=$MAGIC_CMD
38882
38883# Must we lock files when doing compilation?
38884need_locks=$lt_need_locks
38885
cristyda16f162011-02-19 23:52:17 +000038886# Manifest tool.
38887MANIFEST_TOOL=$lt_MANIFEST_TOOL
38888
cristy73bd4a52010-10-05 11:24:23 +000038889# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38890DSYMUTIL=$lt_DSYMUTIL
38891
38892# Tool to change global to local symbols on Mac OS X.
38893NMEDIT=$lt_NMEDIT
38894
38895# Tool to manipulate fat objects and archives on Mac OS X.
38896LIPO=$lt_LIPO
38897
38898# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38899OTOOL=$lt_OTOOL
38900
38901# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38902OTOOL64=$lt_OTOOL64
38903
38904# Old archive suffix (normally "a").
38905libext=$libext
38906
38907# Shared library suffix (normally ".so").
38908shrext_cmds=$lt_shrext_cmds
38909
38910# The commands to extract the exported symbol list from a shared archive.
38911extract_expsyms_cmds=$lt_extract_expsyms_cmds
38912
38913# Variables whose values should be saved in libtool wrapper scripts and
38914# restored at link time.
38915variables_saved_for_relink=$lt_variables_saved_for_relink
38916
38917# Do we need the "lib" prefix for modules?
38918need_lib_prefix=$need_lib_prefix
38919
38920# Do we need a version for libraries?
38921need_version=$need_version
38922
38923# Library versioning type.
38924version_type=$version_type
38925
38926# Shared library runtime path variable.
38927runpath_var=$runpath_var
38928
38929# Shared library path variable.
38930shlibpath_var=$shlibpath_var
38931
38932# Is shlibpath searched before the hard-coded library search path?
38933shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38934
38935# Format of library name prefix.
38936libname_spec=$lt_libname_spec
38937
38938# List of archive names. First name is the real one, the rest are links.
38939# The last name is the one that the linker finds with -lNAME
38940library_names_spec=$lt_library_names_spec
38941
38942# The coded name of the library, if different from the real name.
38943soname_spec=$lt_soname_spec
38944
cristy0c60a692010-11-04 01:09:47 +000038945# Permission mode override for installation of shared libraries.
38946install_override_mode=$lt_install_override_mode
38947
cristy73bd4a52010-10-05 11:24:23 +000038948# Command to use after installation of a shared archive.
38949postinstall_cmds=$lt_postinstall_cmds
38950
38951# Command to use after uninstallation of a shared archive.
38952postuninstall_cmds=$lt_postuninstall_cmds
38953
38954# Commands used to finish a libtool library installation in a directory.
38955finish_cmds=$lt_finish_cmds
38956
38957# As "finish_cmds", except a single script fragment to be evaled but
38958# not shown.
38959finish_eval=$lt_finish_eval
38960
38961# Whether we should hardcode library paths into libraries.
38962hardcode_into_libs=$hardcode_into_libs
38963
38964# Compile-time system search path for libraries.
38965sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38966
38967# Run-time system search path for libraries.
38968sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38969
38970# Whether dlopen is supported.
38971dlopen_support=$enable_dlopen
38972
38973# Whether dlopen of programs is supported.
38974dlopen_self=$enable_dlopen_self
38975
38976# Whether dlopen of statically linked programs is supported.
38977dlopen_self_static=$enable_dlopen_self_static
38978
38979# Commands to strip libraries.
38980old_striplib=$lt_old_striplib
38981striplib=$lt_striplib
38982
38983
38984# The linker used to build libraries.
38985LD=$lt_LD
38986
cristy0c60a692010-11-04 01:09:47 +000038987# How to create reloadable object files.
38988reload_flag=$lt_reload_flag
38989reload_cmds=$lt_reload_cmds
38990
cristy73bd4a52010-10-05 11:24:23 +000038991# Commands used to build an old-style archive.
38992old_archive_cmds=$lt_old_archive_cmds
38993
38994# A language specific compiler.
38995CC=$lt_compiler
38996
38997# Is the compiler the GNU compiler?
38998with_gcc=$GCC
38999
39000# Compiler flag to turn off builtin functions.
39001no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39002
cristy73bd4a52010-10-05 11:24:23 +000039003# Additional compiler flags for building library objects.
39004pic_flag=$lt_lt_prog_compiler_pic
39005
cristyda16f162011-02-19 23:52:17 +000039006# How to pass a linker flag through the compiler.
39007wl=$lt_lt_prog_compiler_wl
39008
cristy73bd4a52010-10-05 11:24:23 +000039009# Compiler flag to prevent dynamic linking.
39010link_static_flag=$lt_lt_prog_compiler_static
39011
39012# Does compiler simultaneously support -c and -o options?
39013compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39014
39015# Whether or not to add -lc for building shared libraries.
39016build_libtool_need_lc=$archive_cmds_need_lc
39017
39018# Whether or not to disallow shared libs when runtime libs are static.
39019allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39020
39021# Compiler flag to allow reflexive dlopens.
39022export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39023
39024# Compiler flag to generate shared objects directly from archives.
39025whole_archive_flag_spec=$lt_whole_archive_flag_spec
39026
39027# Whether the compiler copes with passing no objects directly.
39028compiler_needs_object=$lt_compiler_needs_object
39029
39030# Create an old-style archive from a shared archive.
39031old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39032
39033# Create a temporary old-style archive to link instead of a shared archive.
39034old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39035
39036# Commands used to build a shared archive.
39037archive_cmds=$lt_archive_cmds
39038archive_expsym_cmds=$lt_archive_expsym_cmds
39039
39040# Commands used to build a loadable module if different from building
39041# a shared archive.
39042module_cmds=$lt_module_cmds
39043module_expsym_cmds=$lt_module_expsym_cmds
39044
39045# Whether we are building with GNU ld or not.
39046with_gnu_ld=$lt_with_gnu_ld
39047
39048# Flag that allows shared libraries with undefined symbols to be built.
39049allow_undefined_flag=$lt_allow_undefined_flag
39050
39051# Flag that enforces no undefined symbols.
39052no_undefined_flag=$lt_no_undefined_flag
39053
39054# Flag to hardcode \$libdir into a binary during linking.
39055# This must work even if \$libdir does not exist
39056hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39057
cristy73bd4a52010-10-05 11:24:23 +000039058# Whether we need a single "-rpath" flag with a separated argument.
39059hardcode_libdir_separator=$lt_hardcode_libdir_separator
39060
39061# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39062# DIR into the resulting binary.
39063hardcode_direct=$hardcode_direct
39064
39065# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39066# DIR into the resulting binary and the resulting library dependency is
39067# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39068# library is relocated.
39069hardcode_direct_absolute=$hardcode_direct_absolute
39070
39071# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39072# into the resulting binary.
39073hardcode_minus_L=$hardcode_minus_L
39074
39075# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39076# into the resulting binary.
39077hardcode_shlibpath_var=$hardcode_shlibpath_var
39078
39079# Set to "yes" if building a shared library automatically hardcodes DIR
39080# into the library and all subsequent libraries and executables linked
39081# against it.
39082hardcode_automatic=$hardcode_automatic
39083
39084# Set to yes if linker adds runtime paths of dependent libraries
39085# to runtime path list.
39086inherit_rpath=$inherit_rpath
39087
39088# Whether libtool must link a program against all its dependency libraries.
39089link_all_deplibs=$link_all_deplibs
39090
cristy73bd4a52010-10-05 11:24:23 +000039091# Set to "yes" if exported symbols are required.
39092always_export_symbols=$always_export_symbols
39093
39094# The commands to list exported symbols.
39095export_symbols_cmds=$lt_export_symbols_cmds
39096
39097# Symbols that should not be listed in the preloaded symbols.
39098exclude_expsyms=$lt_exclude_expsyms
39099
39100# Symbols that must always be exported.
39101include_expsyms=$lt_include_expsyms
39102
39103# Commands necessary for linking programs (against libraries) with templates.
39104prelink_cmds=$lt_prelink_cmds
39105
cristyda16f162011-02-19 23:52:17 +000039106# Commands necessary for finishing linking programs.
39107postlink_cmds=$lt_postlink_cmds
39108
cristy73bd4a52010-10-05 11:24:23 +000039109# Specify filename containing input files.
39110file_list_spec=$lt_file_list_spec
39111
39112# How to hardcode a shared library path into an executable.
39113hardcode_action=$hardcode_action
39114
39115# The directories searched by this compiler when creating a shared library.
39116compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39117
39118# Dependencies to place before and after the objects being linked to
39119# create a shared library.
39120predep_objects=$lt_predep_objects
39121postdep_objects=$lt_postdep_objects
39122predeps=$lt_predeps
39123postdeps=$lt_postdeps
39124
39125# The library search path used internally by the compiler when linking
39126# a shared library.
39127compiler_lib_search_path=$lt_compiler_lib_search_path
39128
39129# ### END LIBTOOL CONFIG
39130
39131_LT_EOF
39132
39133 case $host_os in
39134 aix3*)
39135 cat <<\_LT_EOF >> "$cfgfile"
39136# AIX sometimes has problems with the GCC collect2 program. For some
39137# reason, if we set the COLLECT_NAMES environment variable, the problems
39138# vanish in a puff of smoke.
39139if test "X${COLLECT_NAMES+set}" != Xset; then
39140 COLLECT_NAMES=
39141 export COLLECT_NAMES
39142fi
39143_LT_EOF
39144 ;;
39145 esac
39146
39147
39148ltmain="$ac_aux_dir/ltmain.sh"
39149
39150
39151 # We use sed instead of cat because bash on DJGPP gets confused if
39152 # if finds mixed CR/LF and LF-only lines. Since sed operates in
39153 # text mode, it properly converts lines to CR/LF. This bash problem
39154 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000039155 sed '$q' "$ltmain" >> "$cfgfile" \
39156 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000039157
cristyda16f162011-02-19 23:52:17 +000039158 if test x"$xsi_shell" = xyes; then
39159 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
39160func_dirname ()\
39161{\
39162\ case ${1} in\
39163\ */*) func_dirname_result="${1%/*}${2}" ;;\
39164\ * ) func_dirname_result="${3}" ;;\
39165\ esac\
39166} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
39167 && mv -f "$cfgfile.tmp" "$cfgfile" \
39168 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39169test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039170
39171
cristyda16f162011-02-19 23:52:17 +000039172 sed -e '/^func_basename ()$/,/^} # func_basename /c\
39173func_basename ()\
39174{\
39175\ func_basename_result="${1##*/}"\
39176} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
39177 && mv -f "$cfgfile.tmp" "$cfgfile" \
39178 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39179test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039180
39181
cristyda16f162011-02-19 23:52:17 +000039182 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
39183func_dirname_and_basename ()\
39184{\
39185\ case ${1} in\
39186\ */*) func_dirname_result="${1%/*}${2}" ;;\
39187\ * ) func_dirname_result="${3}" ;;\
39188\ esac\
39189\ func_basename_result="${1##*/}"\
39190} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
39191 && mv -f "$cfgfile.tmp" "$cfgfile" \
39192 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39193test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039194
cristyda16f162011-02-19 23:52:17 +000039195
39196 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
39197func_stripname ()\
39198{\
39199\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39200\ # positional parameters, so assign one to ordinary parameter first.\
39201\ func_stripname_result=${3}\
39202\ func_stripname_result=${func_stripname_result#"${1}"}\
39203\ func_stripname_result=${func_stripname_result%"${2}"}\
39204} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39205 && mv -f "$cfgfile.tmp" "$cfgfile" \
39206 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39207test 0 -eq $? || _lt_function_replace_fail=:
39208
39209
39210 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39211func_split_long_opt ()\
39212{\
39213\ func_split_long_opt_name=${1%%=*}\
39214\ func_split_long_opt_arg=${1#*=}\
39215} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39216 && mv -f "$cfgfile.tmp" "$cfgfile" \
39217 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39218test 0 -eq $? || _lt_function_replace_fail=:
39219
39220
39221 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39222func_split_short_opt ()\
39223{\
39224\ func_split_short_opt_arg=${1#??}\
39225\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39226} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39227 && mv -f "$cfgfile.tmp" "$cfgfile" \
39228 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39229test 0 -eq $? || _lt_function_replace_fail=:
39230
39231
39232 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39233func_lo2o ()\
39234{\
39235\ case ${1} in\
39236\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39237\ *) func_lo2o_result=${1} ;;\
39238\ esac\
39239} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39240 && mv -f "$cfgfile.tmp" "$cfgfile" \
39241 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39242test 0 -eq $? || _lt_function_replace_fail=:
39243
39244
39245 sed -e '/^func_xform ()$/,/^} # func_xform /c\
39246func_xform ()\
39247{\
39248 func_xform_result=${1%.*}.lo\
39249} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39250 && mv -f "$cfgfile.tmp" "$cfgfile" \
39251 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39252test 0 -eq $? || _lt_function_replace_fail=:
39253
39254
39255 sed -e '/^func_arith ()$/,/^} # func_arith /c\
39256func_arith ()\
39257{\
39258 func_arith_result=$(( $* ))\
39259} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39260 && mv -f "$cfgfile.tmp" "$cfgfile" \
39261 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39262test 0 -eq $? || _lt_function_replace_fail=:
39263
39264
39265 sed -e '/^func_len ()$/,/^} # func_len /c\
39266func_len ()\
39267{\
39268 func_len_result=${#1}\
39269} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39270 && mv -f "$cfgfile.tmp" "$cfgfile" \
39271 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39272test 0 -eq $? || _lt_function_replace_fail=:
39273
39274fi
39275
39276if test x"$lt_shell_append" = xyes; then
39277 sed -e '/^func_append ()$/,/^} # func_append /c\
39278func_append ()\
39279{\
39280 eval "${1}+=\\${2}"\
39281} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39282 && mv -f "$cfgfile.tmp" "$cfgfile" \
39283 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39284test 0 -eq $? || _lt_function_replace_fail=:
39285
39286
39287 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39288func_append_quoted ()\
39289{\
39290\ func_quote_for_eval "${2}"\
39291\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39292} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39293 && mv -f "$cfgfile.tmp" "$cfgfile" \
39294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39295test 0 -eq $? || _lt_function_replace_fail=:
39296
39297
39298 # Save a `func_append' function call where possible by direct use of '+='
39299 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39300 && mv -f "$cfgfile.tmp" "$cfgfile" \
39301 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39302 test 0 -eq $? || _lt_function_replace_fail=:
39303else
39304 # Save a `func_append' function call even when '+=' is not available
39305 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39306 && mv -f "$cfgfile.tmp" "$cfgfile" \
39307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39308 test 0 -eq $? || _lt_function_replace_fail=:
39309fi
39310
39311if test x"$_lt_function_replace_fail" = x":"; then
39312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39313$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39314fi
39315
39316
39317 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000039318 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39319 chmod +x "$ofile"
39320
39321
39322 cat <<_LT_EOF >> "$ofile"
39323
39324# ### BEGIN LIBTOOL TAG CONFIG: CXX
39325
39326# The linker used to build libraries.
39327LD=$lt_LD_CXX
39328
cristy0c60a692010-11-04 01:09:47 +000039329# How to create reloadable object files.
39330reload_flag=$lt_reload_flag_CXX
39331reload_cmds=$lt_reload_cmds_CXX
39332
cristy73bd4a52010-10-05 11:24:23 +000039333# Commands used to build an old-style archive.
39334old_archive_cmds=$lt_old_archive_cmds_CXX
39335
39336# A language specific compiler.
39337CC=$lt_compiler_CXX
39338
39339# Is the compiler the GNU compiler?
39340with_gcc=$GCC_CXX
39341
39342# Compiler flag to turn off builtin functions.
39343no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39344
cristy73bd4a52010-10-05 11:24:23 +000039345# Additional compiler flags for building library objects.
39346pic_flag=$lt_lt_prog_compiler_pic_CXX
39347
cristyda16f162011-02-19 23:52:17 +000039348# How to pass a linker flag through the compiler.
39349wl=$lt_lt_prog_compiler_wl_CXX
39350
cristy73bd4a52010-10-05 11:24:23 +000039351# Compiler flag to prevent dynamic linking.
39352link_static_flag=$lt_lt_prog_compiler_static_CXX
39353
39354# Does compiler simultaneously support -c and -o options?
39355compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39356
39357# Whether or not to add -lc for building shared libraries.
39358build_libtool_need_lc=$archive_cmds_need_lc_CXX
39359
39360# Whether or not to disallow shared libs when runtime libs are static.
39361allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39362
39363# Compiler flag to allow reflexive dlopens.
39364export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39365
39366# Compiler flag to generate shared objects directly from archives.
39367whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39368
39369# Whether the compiler copes with passing no objects directly.
39370compiler_needs_object=$lt_compiler_needs_object_CXX
39371
39372# Create an old-style archive from a shared archive.
39373old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39374
39375# Create a temporary old-style archive to link instead of a shared archive.
39376old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39377
39378# Commands used to build a shared archive.
39379archive_cmds=$lt_archive_cmds_CXX
39380archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39381
39382# Commands used to build a loadable module if different from building
39383# a shared archive.
39384module_cmds=$lt_module_cmds_CXX
39385module_expsym_cmds=$lt_module_expsym_cmds_CXX
39386
39387# Whether we are building with GNU ld or not.
39388with_gnu_ld=$lt_with_gnu_ld_CXX
39389
39390# Flag that allows shared libraries with undefined symbols to be built.
39391allow_undefined_flag=$lt_allow_undefined_flag_CXX
39392
39393# Flag that enforces no undefined symbols.
39394no_undefined_flag=$lt_no_undefined_flag_CXX
39395
39396# Flag to hardcode \$libdir into a binary during linking.
39397# This must work even if \$libdir does not exist
39398hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39399
cristy73bd4a52010-10-05 11:24:23 +000039400# Whether we need a single "-rpath" flag with a separated argument.
39401hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39402
39403# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39404# DIR into the resulting binary.
39405hardcode_direct=$hardcode_direct_CXX
39406
39407# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39408# DIR into the resulting binary and the resulting library dependency is
39409# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39410# library is relocated.
39411hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39412
39413# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39414# into the resulting binary.
39415hardcode_minus_L=$hardcode_minus_L_CXX
39416
39417# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39418# into the resulting binary.
39419hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39420
39421# Set to "yes" if building a shared library automatically hardcodes DIR
39422# into the library and all subsequent libraries and executables linked
39423# against it.
39424hardcode_automatic=$hardcode_automatic_CXX
39425
39426# Set to yes if linker adds runtime paths of dependent libraries
39427# to runtime path list.
39428inherit_rpath=$inherit_rpath_CXX
39429
39430# Whether libtool must link a program against all its dependency libraries.
39431link_all_deplibs=$link_all_deplibs_CXX
39432
cristy73bd4a52010-10-05 11:24:23 +000039433# Set to "yes" if exported symbols are required.
39434always_export_symbols=$always_export_symbols_CXX
39435
39436# The commands to list exported symbols.
39437export_symbols_cmds=$lt_export_symbols_cmds_CXX
39438
39439# Symbols that should not be listed in the preloaded symbols.
39440exclude_expsyms=$lt_exclude_expsyms_CXX
39441
39442# Symbols that must always be exported.
39443include_expsyms=$lt_include_expsyms_CXX
39444
39445# Commands necessary for linking programs (against libraries) with templates.
39446prelink_cmds=$lt_prelink_cmds_CXX
39447
cristyda16f162011-02-19 23:52:17 +000039448# Commands necessary for finishing linking programs.
39449postlink_cmds=$lt_postlink_cmds_CXX
39450
cristy73bd4a52010-10-05 11:24:23 +000039451# Specify filename containing input files.
39452file_list_spec=$lt_file_list_spec_CXX
39453
39454# How to hardcode a shared library path into an executable.
39455hardcode_action=$hardcode_action_CXX
39456
39457# The directories searched by this compiler when creating a shared library.
39458compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39459
39460# Dependencies to place before and after the objects being linked to
39461# create a shared library.
39462predep_objects=$lt_predep_objects_CXX
39463postdep_objects=$lt_postdep_objects_CXX
39464predeps=$lt_predeps_CXX
39465postdeps=$lt_postdeps_CXX
39466
39467# The library search path used internally by the compiler when linking
39468# a shared library.
39469compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39470
39471# ### END LIBTOOL TAG CONFIG: CXX
39472_LT_EOF
39473
39474 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000039475 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000039476 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000039477 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000039478 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39479 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39480
39481 esac
39482done # for ac_tag
39483
39484
cristy8b350f62009-11-15 23:12:43 +000039485as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000039486_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000039487ac_clean_files=$ac_clean_files_save
39488
39489test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000039490 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039491
39492
39493# configure is writing to config.log, and then calls config.status.
39494# config.status does its own redirection, appending to config.log.
39495# Unfortunately, on DOS this fails, as config.log is still kept open
39496# by configure, so config.status won't be able to write to it; its
39497# output is simply discarded. So we exec the FD to /dev/null,
39498# effectively closing config.log, so it can be properly (re)opened and
39499# appended to by config.status. When coming back to configure, we
39500# need to make the FD available again.
39501if test "$no_create" != yes; then
39502 ac_cs_success=:
39503 ac_config_status_args=
39504 test "$silent" = yes &&
39505 ac_config_status_args="$ac_config_status_args --quiet"
39506 exec 5>/dev/null
39507 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39508 exec 5>>config.log
39509 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39510 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000039511 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000039512fi
39513if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000039514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000039515$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39516fi
39517
39518
cristy9af1cbf2014-12-28 22:03:09 +000039519# ==============================================================================
39520# ImageMagick Configuration
39521# ==============================================================================
39522{ $as_echo "$as_me:${as_lineno-$LINENO}:
39523==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039524ImageMagick is configured as follows. Please verify that this configuration
39525matches your expectations.
39526
cristy9af1cbf2014-12-28 22:03:09 +000039527 Host system type: $host
39528 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039529
39530 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039531 ------------------------------------------------------------------------------
39532 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39533 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39534 Module support --with-modules=$build_modules $build_modules
39535 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39536 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39537 High Dynamic Range Imagery
39538 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039539
cristy9af1cbf2014-12-28 22:03:09 +000039540 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039541
cristy9af1cbf2014-12-28 22:03:09 +000039542 Delegate Library Configuration:
39543 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39544 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39545 DJVU --with-djvu=$with_djvu $have_djvu
39546 DPS --with-dps=$with_dps $have_dps
39547 FFTW --with-fftw=$with_fftw $have_fftw
39548 FlashPIX --with-fpx=$with_fpx $have_fpx
39549 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39550 FreeType --with-freetype=$with_freetype $have_freetype
39551 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39552 Graphviz --with-gvc=$with_gvc $have_gvc
39553 JBIG --with-jbig=$with_jbig $have_jbig
39554 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39555 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
39556 LCMS v1 --with-lcms=$with_lcms $have_lcms
39557 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
39558 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
39559 LQR --with-lqr=$with_lqr $have_lqr
39560 LTDL --with-ltdl=$with_ltdl $have_ltdl
39561 LZMA --with-lzma=$with_lzma $have_lzma
39562 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39563 OpenEXR --with-openexr=$with_openexr $have_openexr
39564 PANGO --with-pango=$with_pango $have_pango
39565 PERL --with-perl=$with_perl $have_perl
39566 PNG --with-png=$with_png $have_png
39567 RSVG --with-rsvg=$with_rsvg $have_rsvg
39568 TIFF --with-tiff=$with_tiff $have_tiff
39569 WEBP --with-webp=$with_webp $have_webp
39570 WMF --with-wmf=$with_wmf $have_wmf
39571 X11 --with-x=$with_x $have_x
39572 XML --with-xml=$with_xml $have_xml
39573 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039574
cristy9af1cbf2014-12-28 22:03:09 +000039575 Delegate Program Configuration:
39576 GhostPCL None $PCLDelegate ($PCLVersion)
39577 GhostXPS None $XPSDelegate ($XPSVersion)
39578 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039579
cristy9af1cbf2014-12-28 22:03:09 +000039580 Font Configuration:
39581 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39582 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39583 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39584 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039585
cristy9af1cbf2014-12-28 22:03:09 +000039586 X11 Configuration:
39587 X_CFLAGS = $X_CFLAGS
39588 X_PRE_LIBS = $X_PRE_LIBS
39589 X_LIBS = $X_LIBS
39590 X_EXTRA_LIBS = $X_EXTRA_LIBS
39591
39592 Options used to compile and link:
39593 PREFIX = $PREFIX_DIR
39594 EXEC-PREFIX = $EXEC_PREFIX_DIR
39595 VERSION = $PACKAGE_VERSION
39596 CC = $CC
39597 CFLAGS = $CFLAGS
39598 CPPFLAGS = $CPPFLAGS
39599 PCFLAGS = $PCFLAGS
39600 DEFS = $DEFS
39601 LDFLAGS = $LDFLAGS
39602 LIBS = $LIBS
39603 CXX = $CXX
39604 CXXFLAGS = $CXXFLAGS
39605 FEATURES = $MAGICK_FEATURES
39606 DELEGATES = $MAGICK_DELEGATES
39607==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039608" >&5
cristy9af1cbf2014-12-28 22:03:09 +000039609$as_echo "$as_me:
39610==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039611ImageMagick is configured as follows. Please verify that this configuration
39612matches your expectations.
39613
cristy9af1cbf2014-12-28 22:03:09 +000039614 Host system type: $host
39615 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039616
39617 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039618 ------------------------------------------------------------------------------
39619 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39620 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39621 Module support --with-modules=$build_modules $build_modules
39622 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39623 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39624 High Dynamic Range Imagery
39625 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039626
cristy9af1cbf2014-12-28 22:03:09 +000039627 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039628
cristy9af1cbf2014-12-28 22:03:09 +000039629 Delegate Library Configuration:
39630 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39631 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39632 DJVU --with-djvu=$with_djvu $have_djvu
39633 DPS --with-dps=$with_dps $have_dps
39634 FFTW --with-fftw=$with_fftw $have_fftw
39635 FlashPIX --with-fpx=$with_fpx $have_fpx
39636 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39637 FreeType --with-freetype=$with_freetype $have_freetype
39638 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39639 Graphviz --with-gvc=$with_gvc $have_gvc
39640 JBIG --with-jbig=$with_jbig $have_jbig
39641 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39642 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
39643 LCMS v1 --with-lcms=$with_lcms $have_lcms
39644 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
39645 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
39646 LQR --with-lqr=$with_lqr $have_lqr
39647 LTDL --with-ltdl=$with_ltdl $have_ltdl
39648 LZMA --with-lzma=$with_lzma $have_lzma
39649 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39650 OpenEXR --with-openexr=$with_openexr $have_openexr
39651 PANGO --with-pango=$with_pango $have_pango
39652 PERL --with-perl=$with_perl $have_perl
39653 PNG --with-png=$with_png $have_png
39654 RSVG --with-rsvg=$with_rsvg $have_rsvg
39655 TIFF --with-tiff=$with_tiff $have_tiff
39656 WEBP --with-webp=$with_webp $have_webp
39657 WMF --with-wmf=$with_wmf $have_wmf
39658 X11 --with-x=$with_x $have_x
39659 XML --with-xml=$with_xml $have_xml
39660 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039661
cristy9af1cbf2014-12-28 22:03:09 +000039662 Delegate Program Configuration:
39663 GhostPCL None $PCLDelegate ($PCLVersion)
39664 GhostXPS None $XPSDelegate ($XPSVersion)
39665 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039666
cristy9af1cbf2014-12-28 22:03:09 +000039667 Font Configuration:
39668 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39669 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39670 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39671 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039672
cristy9af1cbf2014-12-28 22:03:09 +000039673 X11 Configuration:
39674 X_CFLAGS = $X_CFLAGS
39675 X_PRE_LIBS = $X_PRE_LIBS
39676 X_LIBS = $X_LIBS
39677 X_EXTRA_LIBS = $X_EXTRA_LIBS
39678
39679 Options used to compile and link:
39680 PREFIX = $PREFIX_DIR
39681 EXEC-PREFIX = $EXEC_PREFIX_DIR
39682 VERSION = $PACKAGE_VERSION
39683 CC = $CC
39684 CFLAGS = $CFLAGS
39685 CPPFLAGS = $CPPFLAGS
39686 PCFLAGS = $PCFLAGS
39687 DEFS = $DEFS
39688 LDFLAGS = $LDFLAGS
39689 LIBS = $LIBS
39690 CXX = $CXX
39691 CXXFLAGS = $CXXFLAGS
39692 FEATURES = $MAGICK_FEATURES
39693 DELEGATES = $MAGICK_DELEGATES
39694==============================================================================
39695" >&6;}