blob: 350dc1e3e9b79c3b816199e1e28325ec2402327f [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
687ghostscript_font_dir
688windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000690PrintDelegate
691ZipDelegate
692XPSDelegate
693WWWDecodeDelegate
694WMFDecodeDelegate
cristy86e86092013-08-04 17:43:57 +0000695WebPEncodeDelegate
696WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000697UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000699SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000701RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000702RMDelegate
703RLEEncodeDelegate
704PSDelegate
705POVDelegate
706PGPDecodeDelegate
707PCLDelegate
708MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000709MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000710MPEGEncodeDelegate
711MPEGDecodeDelegate
712MANDelegate
713LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000714LPRDelegate
715LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000716JXREncodeDelegate
717JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718ILBMEncodeDelegate
719ILBMDecodeDelegate
720HTMLDecodeDelegate
721HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000722GnuplotDecodeDelegate
723MogrifyDelegate
724DisplayDelegate
725ConvertDelegate
cristy3ed852e2009-09-05 21:47:34 +0000726EditorDelegate
727EchoDelegate
728DVIDecodeDelegate
729GVCDecodeDelegate
730DNGDecodeDelegate
731CatDelegate
cristy3ed852e2009-09-05 21:47:34 +0000732BrowseDelegate
733BZIPDelegate
734BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000735AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000736SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000737SHAREARCH_RELATIVE_PATH
738SHAREARCH_DIRNAME
739SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000740SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000741CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000742DOCUMENTATION_PATH
743FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000744FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000745CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000746CODER_DIRNAME
747MODULES_PATH
748MODULES_RELATIVE_PATH
749MODULES_DIRNAME
750MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000751LIB_BIN_DIR_PATH
752LIB_BIN_DIR_RELATIVE_PATH
753LIB_BIN_DIR
754LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000755LIBRARY_PATH
756EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000757INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000758INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000759PERLMAINCC
760XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000761XML_DELEGATE_FALSE
762XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000763xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000764WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000765WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766WMF_DELEGATE_FALSE
767WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000768WEBP_LIBS
769WEBP_DELEGATE_FALSE
770WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000771TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772TIFF_DELEGATE_FALSE
773TIFF_DELEGATE_TRUE
774CAIRO_DELEGATE_FALSE
775CAIRO_DELEGATE_TRUE
776RSVG_DELEGATE_FALSE
777RSVG_DELEGATE_TRUE
778CAIRO_SVG_LIBS
779CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000780RSVG_LIBS
781RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000782PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000783PNG_DELEGATE_FALSE
784PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000785PANGOCAIRO_DELEGATE_FALSE
786PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000787PANGO_DELEGATE_FALSE
788PANGO_DELEGATE_TRUE
789PANGO_LIBS
790PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000791OPENEXR_DELEGATE_FALSE
792OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000793OPENEXR_LIBS
794OPENEXR_CFLAGS
cristy854c9cf2013-08-10 21:03:06 +0000795MUPDF_LIBS
796MUPDF_DELEGATE_FALSE
797MUPDF_DELEGATE_TRUE
cristyfbb0ef02010-12-19 02:32:11 +0000798LZMA_DELEGATE_FALSE
799LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000800LZMA_LIBS
801LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000802LQR_DELEGATE_FALSE
803LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000804LQR_LIBS
805LQR_CFLAGS
806LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807LCMS_DELEGATE_FALSE
808LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810JP2_DELEGATE_FALSE
811JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000812JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813JPEG_DELEGATE_FALSE
814JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816JBIG_DELEGATE_FALSE
817JBIG_DELEGATE_TRUE
818GVC_DELEGATE_FALSE
819GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000820GVC_LIBS
821GVC_CFLAGS
822GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000823GS_DELEGATE_FALSE
824GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000825FREETYPE_DELEGATE_FALSE
826FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000827FREETYPE_LIBS
828FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000829FONTCONFIG_DELEGATE_FALSE
830FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000831FONTCONFIG_LIBS
832FONTCONFIG_CFLAGS
833FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834FPX_DELEGATE_FALSE
835FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000837FFTW_DELEGATE_FALSE
838FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000840DJVU_DELEGATE_FALSE
841DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000842DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000843DPS_DELEGATE_FALSE
844DPS_DELEGATE_TRUE
845AUTOTRACE_DELEGATE_FALSE
846AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000847AUTOTRACE_LIBS
848AUTOTRACE_CFLAGS
849LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000850WITH_LTDL_FALSE
851WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000852ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000853ZLIB_DELEGATE_FALSE
854ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000855XEXT_LIBS
856X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857X11_DELEGATE_FALSE
858X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000859X_EXTRA_LIBS
860X_LIBS
861X_PRE_LIBS
862X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000863XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000864BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000865BZLIB_DELEGATE_FALSE
866BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000867CCMALLOCDelegate
868UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000869HasUMEM_FALSE
870HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000871GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000872WITH_MAGICK_PLUS_PLUS_FALSE
873WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000874OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000875MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000876POW_LIB
877LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000878UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000879UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000880UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000881UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000882UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000883UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000884INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000885INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000886UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000887UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000888INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000889INT32_T
890UINT16_T
891INT16_T
892UINT8_T
893INT8_T
894LIBRARY_EXTRA_CPPFLAGS
895MODULE_EXTRA_CPPFLAGS
896LIBSTDCLDFLAGS
897PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000898MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000899MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000900QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000901LEGACY_SUPPORT_FALSE
902LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000903MAINT
904MAINTAINER_MODE_FALSE
905MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000906MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000907WITH_MODULES_FALSE
908WITH_MODULES_TRUE
909WITH_SHARED_LIBS_FALSE
910WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000911LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000912CXXCPP
913OTOOL64
914OTOOL
915LIPO
916NMEDIT
917DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000918MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000919RANLIB
cristyda16f162011-02-19 23:52:17 +0000920ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000921AR
922NM
923ac_ct_DUMPBIN
924DUMPBIN
925LIBTOOL
926OBJDUMP
927DLLTOOL
928AS
cristy3ed852e2009-09-05 21:47:34 +0000929LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000930CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000931CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000932OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000933THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000934PTHREAD_CFLAGS
935PTHREAD_LIBS
936PTHREAD_CC
937ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000938pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000939SHAREARCH_DIR
940INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000941WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000942USING_CL_FALSE
943USING_CL_TRUE
944CYGWIN_BUILD_FALSE
945CYGWIN_BUILD_TRUE
946WIN32_NATIVE_BUILD_FALSE
947WIN32_NATIVE_BUILD_TRUE
948WINGDI32_DELEGATE_FALSE
949WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000950GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000951HAVE_LD_VERSION_SCRIPT_FALSE
952HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000953PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000954LN_S
cristy3ed852e2009-09-05 21:47:34 +0000955LD
cristy73bd4a52010-10-05 11:24:23 +0000956FGREP
957SED
958am__fastdepCXX_FALSE
959am__fastdepCXX_TRUE
960CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000961ac_ct_CXX
962CXXFLAGS
963CXX
cristya0b81c32010-01-22 02:54:33 +0000964EGREP
965GREP
966CPP
cristy73bd4a52010-10-05 11:24:23 +0000967am__fastdepCC_FALSE
968am__fastdepCC_TRUE
969CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000970am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000971AMDEPBACKSLASH
972AMDEP_FALSE
973AMDEP_TRUE
974am__quote
975am__include
976DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000977OBJEXT
978EXEEXT
979ac_ct_CC
980CPPFLAGS
981LDFLAGS
982CFLAGS
983CC
984DIRSEP
985MAGICK_FILTER_MODULE_PATH
986MAGICK_CONFIGURE_BUILD_PATH
987MAGICK_CONFIGURE_SRC_PATH
988MAGICK_CODER_MODULE_PATH
989MAN_DIR
990INFO_DIR
991PERSISTINCLUDE_DIR
992INCLUDE_DIR
993LIB_DIR
994LOCALSTATE_DIR
995SHAREDSTATE_DIR
996SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000997DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000998DATA_DIR
999LIBEXEC_DIR
1000SBIN_DIR
1001BIN_DIR
1002EXEC_PREFIX_DIR
1003PREFIX_DIR
1004CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001005MAGICKPP_LIB_VERSION_TEXT
1006MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001007MAGICK_LIB_VERSION_NUMBER
1008MAGICK_LIB_VERSION_TEXT
1009MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001010AM_BACKSLASH
1011AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001012AM_DEFAULT_V
1013AM_V
cristy73bd4a52010-10-05 11:24:23 +00001014am__untar
1015am__tar
1016AMTAR
1017am__leading_dot
1018SET_MAKE
1019AWK
1020mkdir_p
1021MKDIR_P
1022INSTALL_STRIP_PROGRAM
1023STRIP
1024install_sh
1025MAKEINFO
1026AUTOHEADER
1027AUTOMAKE
1028AUTOCONF
1029ACLOCAL
1030VERSION
1031PACKAGE
1032CYGPATH_W
1033am__isrc
1034INSTALL_DATA
1035INSTALL_SCRIPT
1036INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001037PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001038PACKAGE_RELEASE_DATE
1039PACKAGE_LIB_VERSION_NUMBER
1040PACKAGE_LIB_VERSION
1041PACKAGE_CHANGE_DATE
1042PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001043PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001044MAGICKPP_LIBRARY_VERSION_INFO
1045MAGICKPP_LIBRARY_CURRENT_MIN
1046MAGICKPP_LIBRARY_AGE
1047MAGICKPP_LIBRARY_REVISION
1048MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001049MAGICK_LIBRARY_VERSION_INFO
1050MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001051MAGICK_LIBRARY_AGE
1052MAGICK_LIBRARY_REVISION
1053MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001054MAGICK_SVN_REVISION
1055MAGICK_VERSION
1056MAGICK_PATCHLEVEL_VERSION
1057MAGICK_MICRO_VERSION
1058MAGICK_MINOR_VERSION
1059MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001060MAGICK_TARGET_OS
1061MAGICK_TARGET_VENDOR
1062MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001063target_os
1064target_vendor
1065target_cpu
1066target
1067host_os
1068host_vendor
1069host_cpu
1070host
1071build_os
1072build_vendor
1073build_cpu
1074build
1075CONFIGURE_ARGS
1076DISTCHECK_CONFIG_FLAGS
1077target_alias
1078host_alias
1079build_alias
1080LIBS
1081ECHO_T
1082ECHO_N
1083ECHO_C
1084DEFS
1085mandir
1086localedir
1087libdir
1088psdir
1089pdfdir
1090dvidir
1091htmldir
1092infodir
1093docdir
1094oldincludedir
1095includedir
1096localstatedir
1097sharedstatedir
1098sysconfdir
1099datadir
1100datarootdir
1101libexecdir
1102sbindir
1103bindir
1104program_transform_name
1105prefix
1106exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001107PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001108PACKAGE_BUGREPORT
1109PACKAGE_STRING
1110PACKAGE_VERSION
1111PACKAGE_TARNAME
1112PACKAGE_NAME
1113PATH_SEPARATOR
1114SHELL'
1115ac_subst_files=''
1116ac_user_opts='
1117enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001118enable_silent_rules
1119enable_dependency_tracking
1120with_gnu_ld
1121with_dmalloc
cristy9b86f202012-11-28 21:55:35 +00001122enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001123enable_bounds_checking
1124enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001125with_includearch_dir
1126with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001127with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001128with_threads
1129enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001130enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001131enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001132enable_shared
1133enable_static
1134with_pic
1135enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001136with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001137enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001138with_modules
1139enable_delegate_build
1140enable_deprecated
1141enable_installed
1142enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001143enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001144enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001145enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001146enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001147enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001148enable_ccmalloc
1149enable_efence
1150enable_prof
1151enable_gprof
1152enable_gcov
1153with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001154enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001155with_quantum_depth
1156with_cache
1157with_frozenpaths
1158with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001159with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001160with_perl
1161with_perl_options
1162with_umem
1163with_libstdc
1164with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001165with_x
cristy3ed852e2009-09-05 21:47:34 +00001166with_zlib
1167with_autotrace
1168with_dps
1169with_djvu
cristy430a7312010-01-21 20:44:04 +00001170with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001171with_fftw
1172with_fpx
1173with_fontconfig
1174with_freetype
1175with_gslib
1176with_fontpath
1177with_gs_font_dir
1178with_gvc
1179with_jbig
1180with_jpeg
1181with_jp2
1182with_lcms
cristy71203402010-06-18 13:12:03 +00001183with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001184with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001185with_lzma
cristy854c9cf2013-08-10 21:03:06 +00001186with_mupdf
cristy3ed852e2009-09-05 21:47:34 +00001187with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001188with_pango
cristy3ed852e2009-09-05 21:47:34 +00001189with_png
1190with_rsvg
1191with_tiff
cristyb1860752011-03-14 00:27:46 +00001192with_webp
cristy3ed852e2009-09-05 21:47:34 +00001193with_windows_font_dir
1194with_wmf
1195with_xml
1196'
1197 ac_precious_vars='build_alias
1198host_alias
1199target_alias
1200CC
1201CFLAGS
1202LDFLAGS
1203LIBS
1204CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001205CPP
cristy3ed852e2009-09-05 21:47:34 +00001206CXX
1207CXXFLAGS
1208CCC
cristy73bd4a52010-10-05 11:24:23 +00001209PKG_CONFIG
1210CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001211XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001212AUTOTRACE_CFLAGS
1213AUTOTRACE_LIBS
1214FONTCONFIG_CFLAGS
1215FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001216FREETYPE_CFLAGS
1217FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001218GVC_CFLAGS
1219GVC_LIBS
1220LQR_CFLAGS
1221LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001222LZMA_CFLAGS
1223LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001224OPENEXR_CFLAGS
1225OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001226PANGO_CFLAGS
1227PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001228RSVG_CFLAGS
1229RSVG_LIBS
1230CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001231CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001232
1233
1234# Initialize some variables set by options.
1235ac_init_help=
1236ac_init_version=false
1237ac_unrecognized_opts=
1238ac_unrecognized_sep=
1239# The variables have the same names as the options, with
1240# dashes changed to underlines.
1241cache_file=/dev/null
1242exec_prefix=NONE
1243no_create=
1244no_recursion=
1245prefix=NONE
1246program_prefix=NONE
1247program_suffix=NONE
1248program_transform_name=s,x,x,
1249silent=
1250site=
1251srcdir=
1252verbose=
1253x_includes=NONE
1254x_libraries=NONE
1255
1256# Installation directory options.
1257# These are left unexpanded so users can "make install exec_prefix=/foo"
1258# and all the variables that are supposed to be based on exec_prefix
1259# by default will actually change.
1260# Use braces instead of parens because sh, perl, etc. also accept them.
1261# (The list follows the same order as the GNU Coding Standards.)
1262bindir='${exec_prefix}/bin'
1263sbindir='${exec_prefix}/sbin'
1264libexecdir='${exec_prefix}/libexec'
1265datarootdir='${prefix}/share'
1266datadir='${datarootdir}'
1267sysconfdir='${prefix}/etc'
1268sharedstatedir='${prefix}/com'
1269localstatedir='${prefix}/var'
1270includedir='${prefix}/include'
1271oldincludedir='/usr/include'
1272docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1273infodir='${datarootdir}/info'
1274htmldir='${docdir}'
1275dvidir='${docdir}'
1276pdfdir='${docdir}'
1277psdir='${docdir}'
1278libdir='${exec_prefix}/lib'
1279localedir='${datarootdir}/locale'
1280mandir='${datarootdir}/man'
1281
1282ac_prev=
1283ac_dashdash=
1284for ac_option
1285do
1286 # If the previous option needs an argument, assign it.
1287 if test -n "$ac_prev"; then
1288 eval $ac_prev=\$ac_option
1289 ac_prev=
1290 continue
1291 fi
1292
1293 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001294 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1295 *=) ac_optarg= ;;
1296 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001297 esac
1298
1299 # Accept the important Cygnus configure options, so we can diagnose typos.
1300
1301 case $ac_dashdash$ac_option in
1302 --)
1303 ac_dashdash=yes ;;
1304
1305 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1306 ac_prev=bindir ;;
1307 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1308 bindir=$ac_optarg ;;
1309
1310 -build | --build | --buil | --bui | --bu)
1311 ac_prev=build_alias ;;
1312 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1313 build_alias=$ac_optarg ;;
1314
1315 -cache-file | --cache-file | --cache-fil | --cache-fi \
1316 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1317 ac_prev=cache_file ;;
1318 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1319 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1320 cache_file=$ac_optarg ;;
1321
1322 --config-cache | -C)
1323 cache_file=config.cache ;;
1324
1325 -datadir | --datadir | --datadi | --datad)
1326 ac_prev=datadir ;;
1327 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1328 datadir=$ac_optarg ;;
1329
1330 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1331 | --dataroo | --dataro | --datar)
1332 ac_prev=datarootdir ;;
1333 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1334 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1335 datarootdir=$ac_optarg ;;
1336
1337 -disable-* | --disable-*)
1338 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1339 # Reject names that are not valid shell variable names.
1340 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001341 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001342 ac_useropt_orig=$ac_useropt
1343 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1344 case $ac_user_opts in
1345 *"
1346"enable_$ac_useropt"
1347"*) ;;
1348 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1349 ac_unrecognized_sep=', ';;
1350 esac
1351 eval enable_$ac_useropt=no ;;
1352
1353 -docdir | --docdir | --docdi | --doc | --do)
1354 ac_prev=docdir ;;
1355 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1356 docdir=$ac_optarg ;;
1357
1358 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1359 ac_prev=dvidir ;;
1360 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1361 dvidir=$ac_optarg ;;
1362
1363 -enable-* | --enable-*)
1364 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1365 # Reject names that are not valid shell variable names.
1366 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001367 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001368 ac_useropt_orig=$ac_useropt
1369 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1370 case $ac_user_opts in
1371 *"
1372"enable_$ac_useropt"
1373"*) ;;
1374 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1375 ac_unrecognized_sep=', ';;
1376 esac
1377 eval enable_$ac_useropt=\$ac_optarg ;;
1378
1379 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1380 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1381 | --exec | --exe | --ex)
1382 ac_prev=exec_prefix ;;
1383 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1384 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1385 | --exec=* | --exe=* | --ex=*)
1386 exec_prefix=$ac_optarg ;;
1387
1388 -gas | --gas | --ga | --g)
1389 # Obsolete; use --with-gas.
1390 with_gas=yes ;;
1391
1392 -help | --help | --hel | --he | -h)
1393 ac_init_help=long ;;
1394 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1395 ac_init_help=recursive ;;
1396 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1397 ac_init_help=short ;;
1398
1399 -host | --host | --hos | --ho)
1400 ac_prev=host_alias ;;
1401 -host=* | --host=* | --hos=* | --ho=*)
1402 host_alias=$ac_optarg ;;
1403
1404 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1405 ac_prev=htmldir ;;
1406 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1407 | --ht=*)
1408 htmldir=$ac_optarg ;;
1409
1410 -includedir | --includedir | --includedi | --included | --include \
1411 | --includ | --inclu | --incl | --inc)
1412 ac_prev=includedir ;;
1413 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1414 | --includ=* | --inclu=* | --incl=* | --inc=*)
1415 includedir=$ac_optarg ;;
1416
1417 -infodir | --infodir | --infodi | --infod | --info | --inf)
1418 ac_prev=infodir ;;
1419 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1420 infodir=$ac_optarg ;;
1421
1422 -libdir | --libdir | --libdi | --libd)
1423 ac_prev=libdir ;;
1424 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1425 libdir=$ac_optarg ;;
1426
1427 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1428 | --libexe | --libex | --libe)
1429 ac_prev=libexecdir ;;
1430 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1431 | --libexe=* | --libex=* | --libe=*)
1432 libexecdir=$ac_optarg ;;
1433
1434 -localedir | --localedir | --localedi | --localed | --locale)
1435 ac_prev=localedir ;;
1436 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1437 localedir=$ac_optarg ;;
1438
1439 -localstatedir | --localstatedir | --localstatedi | --localstated \
1440 | --localstate | --localstat | --localsta | --localst | --locals)
1441 ac_prev=localstatedir ;;
1442 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1443 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1444 localstatedir=$ac_optarg ;;
1445
1446 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1447 ac_prev=mandir ;;
1448 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1449 mandir=$ac_optarg ;;
1450
1451 -nfp | --nfp | --nf)
1452 # Obsolete; use --without-fp.
1453 with_fp=no ;;
1454
1455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1456 | --no-cr | --no-c | -n)
1457 no_create=yes ;;
1458
1459 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1460 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1461 no_recursion=yes ;;
1462
1463 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1464 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1465 | --oldin | --oldi | --old | --ol | --o)
1466 ac_prev=oldincludedir ;;
1467 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1468 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1469 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1470 oldincludedir=$ac_optarg ;;
1471
1472 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1473 ac_prev=prefix ;;
1474 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1475 prefix=$ac_optarg ;;
1476
1477 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1478 | --program-pre | --program-pr | --program-p)
1479 ac_prev=program_prefix ;;
1480 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1481 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1482 program_prefix=$ac_optarg ;;
1483
1484 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1485 | --program-suf | --program-su | --program-s)
1486 ac_prev=program_suffix ;;
1487 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1488 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1489 program_suffix=$ac_optarg ;;
1490
1491 -program-transform-name | --program-transform-name \
1492 | --program-transform-nam | --program-transform-na \
1493 | --program-transform-n | --program-transform- \
1494 | --program-transform | --program-transfor \
1495 | --program-transfo | --program-transf \
1496 | --program-trans | --program-tran \
1497 | --progr-tra | --program-tr | --program-t)
1498 ac_prev=program_transform_name ;;
1499 -program-transform-name=* | --program-transform-name=* \
1500 | --program-transform-nam=* | --program-transform-na=* \
1501 | --program-transform-n=* | --program-transform-=* \
1502 | --program-transform=* | --program-transfor=* \
1503 | --program-transfo=* | --program-transf=* \
1504 | --program-trans=* | --program-tran=* \
1505 | --progr-tra=* | --program-tr=* | --program-t=*)
1506 program_transform_name=$ac_optarg ;;
1507
1508 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1509 ac_prev=pdfdir ;;
1510 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1511 pdfdir=$ac_optarg ;;
1512
1513 -psdir | --psdir | --psdi | --psd | --ps)
1514 ac_prev=psdir ;;
1515 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1516 psdir=$ac_optarg ;;
1517
1518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1519 | -silent | --silent | --silen | --sile | --sil)
1520 silent=yes ;;
1521
1522 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1523 ac_prev=sbindir ;;
1524 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1525 | --sbi=* | --sb=*)
1526 sbindir=$ac_optarg ;;
1527
1528 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1529 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1530 | --sharedst | --shareds | --shared | --share | --shar \
1531 | --sha | --sh)
1532 ac_prev=sharedstatedir ;;
1533 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1534 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1535 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1536 | --sha=* | --sh=*)
1537 sharedstatedir=$ac_optarg ;;
1538
1539 -site | --site | --sit)
1540 ac_prev=site ;;
1541 -site=* | --site=* | --sit=*)
1542 site=$ac_optarg ;;
1543
1544 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1545 ac_prev=srcdir ;;
1546 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1547 srcdir=$ac_optarg ;;
1548
1549 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1550 | --syscon | --sysco | --sysc | --sys | --sy)
1551 ac_prev=sysconfdir ;;
1552 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1553 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1554 sysconfdir=$ac_optarg ;;
1555
1556 -target | --target | --targe | --targ | --tar | --ta | --t)
1557 ac_prev=target_alias ;;
1558 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1559 target_alias=$ac_optarg ;;
1560
1561 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1562 verbose=yes ;;
1563
1564 -version | --version | --versio | --versi | --vers | -V)
1565 ac_init_version=: ;;
1566
1567 -with-* | --with-*)
1568 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1569 # Reject names that are not valid shell variable names.
1570 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001571 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001572 ac_useropt_orig=$ac_useropt
1573 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1574 case $ac_user_opts in
1575 *"
1576"with_$ac_useropt"
1577"*) ;;
1578 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1579 ac_unrecognized_sep=', ';;
1580 esac
1581 eval with_$ac_useropt=\$ac_optarg ;;
1582
1583 -without-* | --without-*)
1584 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1585 # Reject names that are not valid shell variable names.
1586 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001587 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001588 ac_useropt_orig=$ac_useropt
1589 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1590 case $ac_user_opts in
1591 *"
1592"with_$ac_useropt"
1593"*) ;;
1594 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1595 ac_unrecognized_sep=', ';;
1596 esac
1597 eval with_$ac_useropt=no ;;
1598
1599 --x)
1600 # Obsolete; use --with-x.
1601 with_x=yes ;;
1602
1603 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1604 | --x-incl | --x-inc | --x-in | --x-i)
1605 ac_prev=x_includes ;;
1606 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1607 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1608 x_includes=$ac_optarg ;;
1609
1610 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1611 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1612 ac_prev=x_libraries ;;
1613 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1614 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1615 x_libraries=$ac_optarg ;;
1616
cristy98dddb52010-11-04 00:30:15 +00001617 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1618Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001619 ;;
1620
1621 *=*)
1622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1623 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001624 case $ac_envvar in #(
1625 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001626 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001627 esac
cristy3ed852e2009-09-05 21:47:34 +00001628 eval $ac_envvar=\$ac_optarg
1629 export $ac_envvar ;;
1630
1631 *)
1632 # FIXME: should be removed in autoconf 3.0.
1633 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1635 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001636 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001637 ;;
1638
1639 esac
1640done
1641
1642if test -n "$ac_prev"; then
1643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001644 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001645fi
1646
1647if test -n "$ac_unrecognized_opts"; then
1648 case $enable_option_checking in
1649 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001650 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001651 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1652 esac
1653fi
1654
1655# Check all directory arguments for consistency.
1656for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1657 datadir sysconfdir sharedstatedir localstatedir includedir \
1658 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1659 libdir localedir mandir
1660do
1661 eval ac_val=\$$ac_var
1662 # Remove trailing slashes.
1663 case $ac_val in
1664 */ )
1665 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1666 eval $ac_var=\$ac_val;;
1667 esac
1668 # Be sure to have absolute directory names.
1669 case $ac_val in
1670 [\\/$]* | ?:[\\/]* ) continue;;
1671 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1672 esac
cristy98dddb52010-11-04 00:30:15 +00001673 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001674done
1675
1676# There might be people who depend on the old broken behavior: `$host'
1677# used to hold the argument of --host etc.
1678# FIXME: To remove some day.
1679build=$build_alias
1680host=$host_alias
1681target=$target_alias
1682
1683# FIXME: To remove some day.
1684if test "x$host_alias" != x; then
1685 if test "x$build_alias" = x; then
1686 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001687 elif test "x$build_alias" != "x$host_alias"; then
1688 cross_compiling=yes
1689 fi
1690fi
1691
1692ac_tool_prefix=
1693test -n "$host_alias" && ac_tool_prefix=$host_alias-
1694
1695test "$silent" = yes && exec 6>/dev/null
1696
1697
1698ac_pwd=`pwd` && test -n "$ac_pwd" &&
1699ac_ls_di=`ls -di .` &&
1700ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001701 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001702test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001703 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001704
1705
1706# Find the source files, if location was not specified.
1707if test -z "$srcdir"; then
1708 ac_srcdir_defaulted=yes
1709 # Try the directory containing this script, then the parent directory.
1710 ac_confdir=`$as_dirname -- "$as_myself" ||
1711$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1712 X"$as_myself" : 'X\(//\)[^/]' \| \
1713 X"$as_myself" : 'X\(//\)$' \| \
1714 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1715$as_echo X"$as_myself" |
1716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1717 s//\1/
1718 q
1719 }
1720 /^X\(\/\/\)[^/].*/{
1721 s//\1/
1722 q
1723 }
1724 /^X\(\/\/\)$/{
1725 s//\1/
1726 q
1727 }
1728 /^X\(\/\).*/{
1729 s//\1/
1730 q
1731 }
1732 s/.*/./; q'`
1733 srcdir=$ac_confdir
1734 if test ! -r "$srcdir/$ac_unique_file"; then
1735 srcdir=..
1736 fi
1737else
1738 ac_srcdir_defaulted=no
1739fi
1740if test ! -r "$srcdir/$ac_unique_file"; then
1741 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001742 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001743fi
1744ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1745ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001746 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001747 pwd)`
1748# When building in place, set srcdir=.
1749if test "$ac_abs_confdir" = "$ac_pwd"; then
1750 srcdir=.
1751fi
1752# Remove unnecessary trailing slashes from srcdir.
1753# Double slashes in file names in object file debugging info
1754# mess up M-x gdb in Emacs.
1755case $srcdir in
1756*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1757esac
1758for ac_var in $ac_precious_vars; do
1759 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1760 eval ac_env_${ac_var}_value=\$${ac_var}
1761 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1762 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1763done
1764
1765#
1766# Report the --help message.
1767#
1768if test "$ac_init_help" = "long"; then
1769 # Omit some internal or obsolete options to make the list less imposing.
1770 # This message is too long to be a string in the A/UX 3.1 sh.
1771 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001772\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001773
1774Usage: $0 [OPTION]... [VAR=VALUE]...
1775
1776To assign environment variables (e.g., CC, CFLAGS...), specify them as
1777VAR=VALUE. See below for descriptions of some of the useful variables.
1778
1779Defaults for the options are specified in brackets.
1780
1781Configuration:
1782 -h, --help display this help and exit
1783 --help=short display options specific to this package
1784 --help=recursive display the short help of all the included packages
1785 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001786 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001787 --cache-file=FILE cache test results in FILE [disabled]
1788 -C, --config-cache alias for \`--cache-file=config.cache'
1789 -n, --no-create do not create output files
1790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1791
1792Installation directories:
1793 --prefix=PREFIX install architecture-independent files in PREFIX
1794 [$ac_default_prefix]
1795 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1796 [PREFIX]
1797
1798By default, \`make install' will install all the files in
1799\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1800an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1801for instance \`--prefix=\$HOME'.
1802
1803For better control, use the options below.
1804
1805Fine tuning of the installation directories:
1806 --bindir=DIR user executables [EPREFIX/bin]
1807 --sbindir=DIR system admin executables [EPREFIX/sbin]
1808 --libexecdir=DIR program executables [EPREFIX/libexec]
1809 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1810 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1811 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1812 --libdir=DIR object code libraries [EPREFIX/lib]
1813 --includedir=DIR C header files [PREFIX/include]
1814 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1815 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1816 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1817 --infodir=DIR info documentation [DATAROOTDIR/info]
1818 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1819 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001820 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001821 --htmldir=DIR html documentation [DOCDIR]
1822 --dvidir=DIR dvi documentation [DOCDIR]
1823 --pdfdir=DIR pdf documentation [DOCDIR]
1824 --psdir=DIR ps documentation [DOCDIR]
1825_ACEOF
1826
1827 cat <<\_ACEOF
1828
cristy73bd4a52010-10-05 11:24:23 +00001829Program names:
1830 --program-prefix=PREFIX prepend PREFIX to installed program names
1831 --program-suffix=SUFFIX append SUFFIX to installed program names
1832 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1833
cristy3ed852e2009-09-05 21:47:34 +00001834X features:
1835 --x-includes=DIR X include files are in DIR
1836 --x-libraries=DIR X library files are in DIR
1837
1838System types:
1839 --build=BUILD configure for building on BUILD [guessed]
1840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1841 --target=TARGET configure for building compilers for TARGET [HOST]
1842_ACEOF
1843fi
1844
1845if test -n "$ac_init_help"; then
1846 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001847 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001848 esac
1849 cat <<\_ACEOF
1850
1851Optional Features:
1852 --disable-option-checking ignore unrecognized --enable/--with options
1853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001855 --enable-silent-rules less verbose build output (undo: "make V=1")
1856 --disable-silent-rules verbose build output (undo: "make V=0")
1857 --enable-dependency-tracking
1858 do not reject slow dependency extractors
1859 --disable-dependency-tracking
1860 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001861 --enable-ld-version-script
1862 enable linker version script (default is enabled
1863 when possible)
cristya3824692012-03-30 17:22:07 +00001864 --enable-bounds-checking
1865 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001866 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001867 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001868 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001869 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001870 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001871 --enable-shared[=PKGS] build shared libraries [default=yes]
1872 --enable-static[=PKGS] build static libraries [default=yes]
1873 --enable-fast-install[=PKGS]
1874 optimize for fast installation [default=yes]
1875 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001876 --enable-delegate-build look for delegate libraries in build directory
1877 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001878 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001879 --disable-installed Formally install ImageMagick under PREFIX
1880 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001881 --enable-zero-configuration
1882 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001883 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001884 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001885 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001886 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001887 --enable-maintainer-mode
1888 enable make rules and dependencies not useful (and
1889 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001890 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001891 --enable-ccmalloc enable 'ccmalloc' memory debug support
1892 --enable-efence enable 'efence' memory debug support
1893 --enable-prof enable 'prof' profiling support
1894 --enable-gprof enable 'gprof' profiling support
1895 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001896 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001897 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001898
1899Optional Packages:
1900 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1901 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001902 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001903 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy670aa3c2011-11-03 00:54:00 +00001904 --includearch-dir=DIR ARCH specific include directory
1905 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001906 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001907 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001908 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001909 both]
cristyda16f162011-02-19 23:52:17 +00001910 --with-sysroot=DIR Search for dependent libraries within DIR
1911 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001912 --with-modules enable building dynamically loadable modules
1913 --with-method-prefix=PREFIX
1914 prefix MagickCore API methods
1915 --with-quantum-depth=DEPTH
1916 number of bits in a pixel quantum (default 16)
1917 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1918 memory)
1919 --with-frozenpaths freeze delegate paths
1920 --without-magick-plus-plus
1921 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001922 --with-package-release-name=NAME
1923 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001924 --with-perl enable build/install of PerlMagick
1925 --with-perl-options=OPTIONS
1926 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001927 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001928 --with-umem enable umem memory allocation library support
1929 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1930 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001931 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001932 --without-zlib disable ZLIB support
1933 --with-autotrace enable autotrace support
1934 --without-dps disable Display Postscript support
1935 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001936 --with-dejavu-font-dir=DIR
1937 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001938 --without-fftw disable FFTW support
1939 --without-fpx disable FlashPIX support
1940 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001941 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001942 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001943 --with-fontpath=DIR prepend to default font search path
1944 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001945 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001946 --without-jbig disable JBIG support
1947 --without-jpeg disable JPEG support
1948 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001949 --without-lcms disable lcms (v1.1X) support
1950 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001951 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001952 --without-lzma disable LZMA support
cristy854c9cf2013-08-10 21:03:06 +00001953 --with-mupdf enable MUPDF support
cristy3ed852e2009-09-05 21:47:34 +00001954 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001955 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001956 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001957 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001958 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001959 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001960 --with-windows-font-dir=DIR
1961 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001962 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001963 --without-xml disable XML support
1964
1965Some influential environment variables:
1966 CC C compiler command
1967 CFLAGS C compiler flags
1968 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1969 nonstandard directory <lib dir>
1970 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001971 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001972 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001973 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001974 CXX C++ compiler command
1975 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001976 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001977 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001978 XMKMF Path to xmkmf, Makefile generator for X Window System
1979 AUTOTRACE_CFLAGS
1980 C compiler flags for AUTOTRACE, overriding pkg-config
1981 AUTOTRACE_LIBS
1982 linker flags for AUTOTRACE, overriding pkg-config
1983 FONTCONFIG_CFLAGS
1984 C compiler flags for FONTCONFIG, overriding pkg-config
1985 FONTCONFIG_LIBS
1986 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001987 FREETYPE_CFLAGS
1988 C compiler flags for FREETYPE, overriding pkg-config
1989 FREETYPE_LIBS
1990 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001991 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1992 GVC_LIBS linker flags for GVC, overriding pkg-config
1993 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1994 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001995 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1996 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001997 OPENEXR_CFLAGS
1998 C compiler flags for OPENEXR, overriding pkg-config
1999 OPENEXR_LIBS
2000 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002001 PANGO_CFLAGS
2002 C compiler flags for PANGO, overriding pkg-config
2003 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002004 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2005 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2006 CAIRO_SVG_CFLAGS
2007 C compiler flags for CAIRO_SVG, overriding pkg-config
2008 CAIRO_SVG_LIBS
2009 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002010
2011Use these variables to override the choices made by `configure' or to help
2012it to find libraries and programs with nonstandard names/locations.
2013
2014Report bugs to <http://www.imagemagick.org>.
2015_ACEOF
2016ac_status=$?
2017fi
2018
2019if test "$ac_init_help" = "recursive"; then
2020 # If there are subdirs, report their specific --help.
2021 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2022 test -d "$ac_dir" ||
2023 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2024 continue
2025 ac_builddir=.
2026
2027case "$ac_dir" in
2028.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2029*)
2030 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2031 # A ".." for each directory in $ac_dir_suffix.
2032 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2033 case $ac_top_builddir_sub in
2034 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2035 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2036 esac ;;
2037esac
2038ac_abs_top_builddir=$ac_pwd
2039ac_abs_builddir=$ac_pwd$ac_dir_suffix
2040# for backward compatibility:
2041ac_top_builddir=$ac_top_build_prefix
2042
2043case $srcdir in
2044 .) # We are building in place.
2045 ac_srcdir=.
2046 ac_top_srcdir=$ac_top_builddir_sub
2047 ac_abs_top_srcdir=$ac_pwd ;;
2048 [\\/]* | ?:[\\/]* ) # Absolute name.
2049 ac_srcdir=$srcdir$ac_dir_suffix;
2050 ac_top_srcdir=$srcdir
2051 ac_abs_top_srcdir=$srcdir ;;
2052 *) # Relative name.
2053 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2054 ac_top_srcdir=$ac_top_build_prefix$srcdir
2055 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2056esac
2057ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2058
2059 cd "$ac_dir" || { ac_status=$?; continue; }
2060 # Check for guested configure.
2061 if test -f "$ac_srcdir/configure.gnu"; then
2062 echo &&
2063 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2064 elif test -f "$ac_srcdir/configure"; then
2065 echo &&
2066 $SHELL "$ac_srcdir/configure" --help=recursive
2067 else
2068 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2069 fi || ac_status=$?
2070 cd "$ac_pwd" || { ac_status=$?; break; }
2071 done
2072fi
2073
2074test -n "$ac_init_help" && exit $ac_status
2075if $ac_init_version; then
2076 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002077ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002078generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002079
cristy14fefe52012-05-21 00:59:18 +00002080Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002081This configure script is free software; the Free Software Foundation
2082gives unlimited permission to copy, distribute and modify it.
2083_ACEOF
2084 exit
2085fi
cristy8b350f62009-11-15 23:12:43 +00002086
2087## ------------------------ ##
2088## Autoconf initialization. ##
2089## ------------------------ ##
2090
2091# ac_fn_c_try_compile LINENO
2092# --------------------------
2093# Try to compile conftest.$ac_ext, and return whether this succeeded.
2094ac_fn_c_try_compile ()
2095{
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 rm -f conftest.$ac_objext
2098 if { { ac_try="$ac_compile"
2099case "(($ac_try" in
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2102esac
2103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2104$as_echo "$ac_try_echo"; } >&5
2105 (eval "$ac_compile") 2>conftest.err
2106 ac_status=$?
2107 if test -s conftest.err; then
2108 grep -v '^ *+' conftest.err >conftest.er1
2109 cat conftest.er1 >&5
2110 mv -f conftest.er1 conftest.err
2111 fi
2112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2113 test $ac_status = 0; } && {
2114 test -z "$ac_c_werror_flag" ||
2115 test ! -s conftest.err
2116 } && test -s conftest.$ac_objext; then :
2117 ac_retval=0
2118else
2119 $as_echo "$as_me: failed program was:" >&5
2120sed 's/^/| /' conftest.$ac_ext >&5
2121
2122 ac_retval=1
2123fi
cristyda16f162011-02-19 23:52:17 +00002124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002125 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002126
2127} # ac_fn_c_try_compile
2128
cristy95646052009-11-28 23:05:30 +00002129# ac_fn_c_try_cpp LINENO
2130# ----------------------
2131# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2132ac_fn_c_try_cpp ()
2133{
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 if { { ac_try="$ac_cpp conftest.$ac_ext"
2136case "(($ac_try" in
2137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2138 *) ac_try_echo=$ac_try;;
2139esac
2140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141$as_echo "$ac_try_echo"; } >&5
2142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2143 ac_status=$?
2144 if test -s conftest.err; then
2145 grep -v '^ *+' conftest.err >conftest.er1
2146 cat conftest.er1 >&5
2147 mv -f conftest.er1 conftest.err
2148 fi
2149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002150 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2152 test ! -s conftest.err
2153 }; then :
2154 ac_retval=0
2155else
2156 $as_echo "$as_me: failed program was:" >&5
2157sed 's/^/| /' conftest.$ac_ext >&5
2158
2159 ac_retval=1
2160fi
cristyda16f162011-02-19 23:52:17 +00002161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002162 as_fn_set_status $ac_retval
2163
2164} # ac_fn_c_try_cpp
2165
cristy8b350f62009-11-15 23:12:43 +00002166# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2167# -------------------------------------------------------
2168# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2169# the include files in INCLUDES and setting the cache variable VAR
2170# accordingly.
2171ac_fn_c_check_header_mongrel ()
2172{
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002174 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002177if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002178 $as_echo_n "(cached) " >&6
2179fi
2180eval ac_res=\$$3
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182$as_echo "$ac_res" >&6; }
2183else
2184 # Is the header compilable?
2185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2186$as_echo_n "checking $2 usability... " >&6; }
2187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188/* end confdefs.h. */
2189$4
2190#include <$2>
2191_ACEOF
2192if ac_fn_c_try_compile "$LINENO"; then :
2193 ac_header_compiler=yes
2194else
2195 ac_header_compiler=no
2196fi
2197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2199$as_echo "$ac_header_compiler" >&6; }
2200
2201# Is the header present?
2202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2203$as_echo_n "checking $2 presence... " >&6; }
2204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205/* end confdefs.h. */
2206#include <$2>
2207_ACEOF
2208if ac_fn_c_try_cpp "$LINENO"; then :
2209 ac_header_preproc=yes
2210else
2211 ac_header_preproc=no
2212fi
cristyda16f162011-02-19 23:52:17 +00002213rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2215$as_echo "$ac_header_preproc" >&6; }
2216
2217# So? What about this header?
2218case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2219 yes:no: )
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2221$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2223$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2224 ;;
2225 no:yes:* )
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2227$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2229$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2231$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2233$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2235$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002236( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002237## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002238## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002239 ) | sed "s/^/$as_me: WARNING: /" >&2
2240 ;;
2241esac
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2243$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002244if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002245 $as_echo_n "(cached) " >&6
2246else
2247 eval "$3=\$ac_header_compiler"
2248fi
2249eval ac_res=\$$3
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251$as_echo "$ac_res" >&6; }
2252fi
cristyda16f162011-02-19 23:52:17 +00002253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002254
2255} # ac_fn_c_check_header_mongrel
2256
2257# ac_fn_c_try_run LINENO
2258# ----------------------
2259# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2260# that executables *can* be run.
2261ac_fn_c_try_run ()
2262{
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 if { { ac_try="$ac_link"
2265case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268esac
2269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270$as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_link") 2>&5
2272 ac_status=$?
2273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2274 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2275 { { case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278esac
2279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280$as_echo "$ac_try_echo"; } >&5
2281 (eval "$ac_try") 2>&5
2282 ac_status=$?
2283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284 test $ac_status = 0; }; }; then :
2285 ac_retval=0
2286else
2287 $as_echo "$as_me: program exited with status $ac_status" >&5
2288 $as_echo "$as_me: failed program was:" >&5
2289sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 ac_retval=$ac_status
2292fi
2293 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002295 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002296
2297} # ac_fn_c_try_run
2298
2299# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2300# -------------------------------------------------------
2301# Tests whether HEADER exists and can be compiled using the include files in
2302# INCLUDES, setting the cache variable VAR accordingly.
2303ac_fn_c_check_header_compile ()
2304{
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2307$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002308if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002309 $as_echo_n "(cached) " >&6
2310else
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312/* end confdefs.h. */
2313$4
2314#include <$2>
2315_ACEOF
2316if ac_fn_c_try_compile "$LINENO"; then :
2317 eval "$3=yes"
2318else
2319 eval "$3=no"
2320fi
2321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322fi
2323eval ac_res=\$$3
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002326 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002327
2328} # ac_fn_c_check_header_compile
2329
cristya0b81c32010-01-22 02:54:33 +00002330# ac_fn_cxx_try_compile LINENO
2331# ----------------------------
2332# Try to compile conftest.$ac_ext, and return whether this succeeded.
2333ac_fn_cxx_try_compile ()
2334{
2335 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2336 rm -f conftest.$ac_objext
2337 if { { ac_try="$ac_compile"
2338case "(($ac_try" in
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2341esac
2342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2343$as_echo "$ac_try_echo"; } >&5
2344 (eval "$ac_compile") 2>conftest.err
2345 ac_status=$?
2346 if test -s conftest.err; then
2347 grep -v '^ *+' conftest.err >conftest.er1
2348 cat conftest.er1 >&5
2349 mv -f conftest.er1 conftest.err
2350 fi
2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352 test $ac_status = 0; } && {
2353 test -z "$ac_cxx_werror_flag" ||
2354 test ! -s conftest.err
2355 } && test -s conftest.$ac_objext; then :
2356 ac_retval=0
2357else
2358 $as_echo "$as_me: failed program was:" >&5
2359sed 's/^/| /' conftest.$ac_ext >&5
2360
2361 ac_retval=1
2362fi
cristyda16f162011-02-19 23:52:17 +00002363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002364 as_fn_set_status $ac_retval
2365
2366} # ac_fn_cxx_try_compile
2367
cristyd95b7a52013-10-23 13:12:53 +00002368# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2369# --------------------------------------------
2370# Tries to find the compile-time value of EXPR in a program that includes
2371# INCLUDES, setting VAR accordingly. Returns whether the value could be
2372# computed
2373ac_fn_c_compute_int ()
2374{
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 if test "$cross_compiling" = yes; then
2377 # Depending upon the size, compute the lo and hi bounds.
2378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379/* end confdefs.h. */
2380$4
2381int
2382main ()
2383{
2384static int test_array [1 - 2 * !(($2) >= 0)];
2385test_array [0] = 0;
2386return test_array [0];
2387
2388 ;
2389 return 0;
2390}
2391_ACEOF
2392if ac_fn_c_try_compile "$LINENO"; then :
2393 ac_lo=0 ac_mid=0
2394 while :; do
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396/* end confdefs.h. */
2397$4
2398int
2399main ()
2400{
2401static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2402test_array [0] = 0;
2403return test_array [0];
2404
2405 ;
2406 return 0;
2407}
2408_ACEOF
2409if ac_fn_c_try_compile "$LINENO"; then :
2410 ac_hi=$ac_mid; break
2411else
2412 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2413 if test $ac_lo -le $ac_mid; then
2414 ac_lo= ac_hi=
2415 break
2416 fi
2417 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2418fi
2419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 done
2421else
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423/* end confdefs.h. */
2424$4
2425int
2426main ()
2427{
2428static int test_array [1 - 2 * !(($2) < 0)];
2429test_array [0] = 0;
2430return test_array [0];
2431
2432 ;
2433 return 0;
2434}
2435_ACEOF
2436if ac_fn_c_try_compile "$LINENO"; then :
2437 ac_hi=-1 ac_mid=-1
2438 while :; do
2439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440/* end confdefs.h. */
2441$4
2442int
2443main ()
2444{
2445static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2446test_array [0] = 0;
2447return test_array [0];
2448
2449 ;
2450 return 0;
2451}
2452_ACEOF
2453if ac_fn_c_try_compile "$LINENO"; then :
2454 ac_lo=$ac_mid; break
2455else
2456 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2457 if test $ac_mid -le $ac_hi; then
2458 ac_lo= ac_hi=
2459 break
2460 fi
2461 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2462fi
2463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464 done
2465else
2466 ac_lo= ac_hi=
2467fi
2468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469fi
2470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471# Binary search between lo and hi bounds.
2472while test "x$ac_lo" != "x$ac_hi"; do
2473 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475/* end confdefs.h. */
2476$4
2477int
2478main ()
2479{
2480static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2481test_array [0] = 0;
2482return test_array [0];
2483
2484 ;
2485 return 0;
2486}
2487_ACEOF
2488if ac_fn_c_try_compile "$LINENO"; then :
2489 ac_hi=$ac_mid
2490else
2491 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2492fi
2493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494done
2495case $ac_lo in #((
2496?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2497'') ac_retval=1 ;;
2498esac
2499 else
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501/* end confdefs.h. */
2502$4
2503static long int longval () { return $2; }
2504static unsigned long int ulongval () { return $2; }
2505#include <stdio.h>
2506#include <stdlib.h>
2507int
2508main ()
2509{
2510
2511 FILE *f = fopen ("conftest.val", "w");
2512 if (! f)
2513 return 1;
2514 if (($2) < 0)
2515 {
2516 long int i = longval ();
2517 if (i != ($2))
2518 return 1;
2519 fprintf (f, "%ld", i);
2520 }
2521 else
2522 {
2523 unsigned long int i = ulongval ();
2524 if (i != ($2))
2525 return 1;
2526 fprintf (f, "%lu", i);
2527 }
2528 /* Do not output a trailing newline, as this causes \r\n confusion
2529 on some platforms. */
2530 return ferror (f) || fclose (f) != 0;
2531
2532 ;
2533 return 0;
2534}
2535_ACEOF
2536if ac_fn_c_try_run "$LINENO"; then :
2537 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2538else
2539 ac_retval=1
2540fi
2541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2542 conftest.$ac_objext conftest.beam conftest.$ac_ext
2543rm -f conftest.val
2544
2545 fi
2546 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2547 as_fn_set_status $ac_retval
2548
2549} # ac_fn_c_compute_int
2550
cristy8b350f62009-11-15 23:12:43 +00002551# ac_fn_c_try_link LINENO
2552# -----------------------
2553# Try to link conftest.$ac_ext, and return whether this succeeded.
2554ac_fn_c_try_link ()
2555{
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 rm -f conftest.$ac_objext conftest$ac_exeext
2558 if { { ac_try="$ac_link"
2559case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2562esac
2563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2564$as_echo "$ac_try_echo"; } >&5
2565 (eval "$ac_link") 2>conftest.err
2566 ac_status=$?
2567 if test -s conftest.err; then
2568 grep -v '^ *+' conftest.err >conftest.er1
2569 cat conftest.er1 >&5
2570 mv -f conftest.er1 conftest.err
2571 fi
2572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2573 test $ac_status = 0; } && {
2574 test -z "$ac_c_werror_flag" ||
2575 test ! -s conftest.err
2576 } && test -s conftest$ac_exeext && {
2577 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002578 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002579 }; then :
2580 ac_retval=0
2581else
2582 $as_echo "$as_me: failed program was:" >&5
2583sed 's/^/| /' conftest.$ac_ext >&5
2584
2585 ac_retval=1
2586fi
2587 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2588 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2589 # interfere with the next link command; also delete a directory that is
2590 # left behind by Apple's compiler. We do this before executing the actions.
2591 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002593 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002594
2595} # ac_fn_c_try_link
2596
cristy73bd4a52010-10-05 11:24:23 +00002597# ac_fn_c_check_func LINENO FUNC VAR
2598# ----------------------------------
2599# Tests whether FUNC exists, setting the cache variable VAR accordingly
2600ac_fn_c_check_func ()
2601{
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2604$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002605if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002606 $as_echo_n "(cached) " >&6
2607else
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609/* end confdefs.h. */
2610/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2612#define $2 innocuous_$2
2613
2614/* System header to define __stub macros and hopefully few prototypes,
2615 which can conflict with char $2 (); below.
2616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2617 <limits.h> exists even on freestanding compilers. */
2618
2619#ifdef __STDC__
2620# include <limits.h>
2621#else
2622# include <assert.h>
2623#endif
2624
2625#undef $2
2626
2627/* Override any GCC internal prototype to avoid an error.
2628 Use char because int might match the return type of a GCC
2629 builtin and then its argument prototype would still apply. */
2630#ifdef __cplusplus
2631extern "C"
2632#endif
2633char $2 ();
2634/* The GNU C library defines this for functions which it implements
2635 to always fail with ENOSYS. Some functions are actually named
2636 something starting with __ and the normal name is an alias. */
2637#if defined __stub_$2 || defined __stub___$2
2638choke me
2639#endif
2640
2641int
2642main ()
2643{
2644return $2 ();
2645 ;
2646 return 0;
2647}
2648_ACEOF
2649if ac_fn_c_try_link "$LINENO"; then :
2650 eval "$3=yes"
2651else
2652 eval "$3=no"
2653fi
2654rm -f core conftest.err conftest.$ac_objext \
2655 conftest$ac_exeext conftest.$ac_ext
2656fi
2657eval ac_res=\$$3
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2659$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002661
2662} # ac_fn_c_check_func
2663
2664# ac_fn_cxx_try_cpp LINENO
2665# ------------------------
2666# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2667ac_fn_cxx_try_cpp ()
2668{
2669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670 if { { ac_try="$ac_cpp conftest.$ac_ext"
2671case "(($ac_try" in
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2674esac
2675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2676$as_echo "$ac_try_echo"; } >&5
2677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2678 ac_status=$?
2679 if test -s conftest.err; then
2680 grep -v '^ *+' conftest.err >conftest.er1
2681 cat conftest.er1 >&5
2682 mv -f conftest.er1 conftest.err
2683 fi
2684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002685 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002686 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2687 test ! -s conftest.err
2688 }; then :
2689 ac_retval=0
2690else
2691 $as_echo "$as_me: failed program was:" >&5
2692sed 's/^/| /' conftest.$ac_ext >&5
2693
2694 ac_retval=1
2695fi
cristyda16f162011-02-19 23:52:17 +00002696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002697 as_fn_set_status $ac_retval
2698
2699} # ac_fn_cxx_try_cpp
2700
2701# ac_fn_cxx_try_link LINENO
2702# -------------------------
2703# Try to link conftest.$ac_ext, and return whether this succeeded.
2704ac_fn_cxx_try_link ()
2705{
2706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707 rm -f conftest.$ac_objext conftest$ac_exeext
2708 if { { ac_try="$ac_link"
2709case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712esac
2713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2714$as_echo "$ac_try_echo"; } >&5
2715 (eval "$ac_link") 2>conftest.err
2716 ac_status=$?
2717 if test -s conftest.err; then
2718 grep -v '^ *+' conftest.err >conftest.er1
2719 cat conftest.er1 >&5
2720 mv -f conftest.er1 conftest.err
2721 fi
2722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2723 test $ac_status = 0; } && {
2724 test -z "$ac_cxx_werror_flag" ||
2725 test ! -s conftest.err
2726 } && test -s conftest$ac_exeext && {
2727 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002728 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002729 }; then :
2730 ac_retval=0
2731else
2732 $as_echo "$as_me: failed program was:" >&5
2733sed 's/^/| /' conftest.$ac_ext >&5
2734
2735 ac_retval=1
2736fi
2737 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2738 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2739 # interfere with the next link command; also delete a directory that is
2740 # left behind by Apple's compiler. We do this before executing the actions.
2741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002743 as_fn_set_status $ac_retval
2744
2745} # ac_fn_cxx_try_link
2746
cristy8b350f62009-11-15 23:12:43 +00002747# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2748# -------------------------------------------
2749# Tests whether TYPE exists after having included INCLUDES, setting cache
2750# variable VAR accordingly.
2751ac_fn_c_check_type ()
2752{
2753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2755$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002756if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002757 $as_echo_n "(cached) " >&6
2758else
2759 eval "$3=no"
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761/* end confdefs.h. */
2762$4
2763int
2764main ()
2765{
2766if (sizeof ($2))
2767 return 0;
2768 ;
2769 return 0;
2770}
2771_ACEOF
2772if ac_fn_c_try_compile "$LINENO"; then :
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774/* end confdefs.h. */
2775$4
2776int
2777main ()
2778{
2779if (sizeof (($2)))
2780 return 0;
2781 ;
2782 return 0;
2783}
2784_ACEOF
2785if ac_fn_c_try_compile "$LINENO"; then :
2786
2787else
2788 eval "$3=yes"
2789fi
2790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791fi
2792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2793fi
2794eval ac_res=\$$3
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2796$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002798
2799} # ac_fn_c_check_type
2800
cristy92703d82010-04-26 00:18:18 +00002801# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2802# ----------------------------------------------------
2803# Tries to find if the field MEMBER exists in type AGGR, after including
2804# INCLUDES, setting cache variable VAR accordingly.
2805ac_fn_c_check_member ()
2806{
2807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2809$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002810if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002811 $as_echo_n "(cached) " >&6
2812else
2813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2814/* end confdefs.h. */
2815$5
2816int
2817main ()
2818{
2819static $2 ac_aggr;
2820if (ac_aggr.$3)
2821return 0;
2822 ;
2823 return 0;
2824}
2825_ACEOF
2826if ac_fn_c_try_compile "$LINENO"; then :
2827 eval "$4=yes"
2828else
2829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2830/* end confdefs.h. */
2831$5
2832int
2833main ()
2834{
2835static $2 ac_aggr;
2836if (sizeof ac_aggr.$3)
2837return 0;
2838 ;
2839 return 0;
2840}
2841_ACEOF
2842if ac_fn_c_try_compile "$LINENO"; then :
2843 eval "$4=yes"
2844else
2845 eval "$4=no"
2846fi
2847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848fi
2849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850fi
2851eval ac_res=\$$4
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2853$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002855
2856} # ac_fn_c_check_member
2857
cristy5eef09f2012-10-16 12:08:28 +00002858# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2859# ---------------------------------------------
2860# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2861# accordingly.
2862ac_fn_c_check_decl ()
2863{
2864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2865 as_decl_name=`echo $2|sed 's/ *(.*//'`
2866 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2868$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2869if eval \${$3+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871else
2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2873/* end confdefs.h. */
2874$4
2875int
2876main ()
2877{
2878#ifndef $as_decl_name
2879#ifdef __cplusplus
2880 (void) $as_decl_use;
2881#else
2882 (void) $as_decl_name;
2883#endif
2884#endif
2885
2886 ;
2887 return 0;
2888}
2889_ACEOF
2890if ac_fn_c_try_compile "$LINENO"; then :
2891 eval "$3=yes"
2892else
2893 eval "$3=no"
2894fi
2895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896fi
2897eval ac_res=\$$3
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2899$as_echo "$ac_res" >&6; }
2900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2901
2902} # ac_fn_c_check_decl
2903
cristy501c8042011-05-26 17:46:28 +00002904# ac_fn_c_find_intX_t LINENO BITS VAR
2905# -----------------------------------
2906# Finds a signed integer type with width BITS, setting cache variable VAR
2907# accordingly.
2908ac_fn_c_find_intX_t ()
2909{
2910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2912$as_echo_n "checking for int$2_t... " >&6; }
2913if eval \${$3+:} false; then :
2914 $as_echo_n "(cached) " >&6
2915else
2916 eval "$3=no"
2917 # Order is important - never check a type that is potentially smaller
2918 # than half of the expected target width.
2919 for ac_type in int$2_t 'int' 'long int' \
2920 'long long int' 'short int' 'signed char'; do
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922/* end confdefs.h. */
2923$ac_includes_default
2924 enum { N = $2 / 2 - 1 };
2925int
2926main ()
2927{
2928static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002929test_array [0] = 0;
2930return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002931
2932 ;
2933 return 0;
2934}
2935_ACEOF
2936if ac_fn_c_try_compile "$LINENO"; then :
2937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938/* end confdefs.h. */
2939$ac_includes_default
2940 enum { N = $2 / 2 - 1 };
2941int
2942main ()
2943{
2944static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2945 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002946test_array [0] = 0;
2947return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002948
2949 ;
2950 return 0;
2951}
2952_ACEOF
2953if ac_fn_c_try_compile "$LINENO"; then :
2954
2955else
2956 case $ac_type in #(
2957 int$2_t) :
2958 eval "$3=yes" ;; #(
2959 *) :
2960 eval "$3=\$ac_type" ;;
2961esac
2962fi
2963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2964fi
2965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966 if eval test \"x\$"$3"\" = x"no"; then :
2967
2968else
2969 break
2970fi
2971 done
2972fi
2973eval ac_res=\$$3
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2975$as_echo "$ac_res" >&6; }
2976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2977
2978} # ac_fn_c_find_intX_t
2979
2980# ac_fn_c_find_uintX_t LINENO BITS VAR
2981# ------------------------------------
2982# Finds an unsigned integer type with width BITS, setting cache variable VAR
2983# accordingly.
2984ac_fn_c_find_uintX_t ()
2985{
2986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2988$as_echo_n "checking for uint$2_t... " >&6; }
2989if eval \${$3+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991else
2992 eval "$3=no"
2993 # Order is important - never check a type that is potentially smaller
2994 # than half of the expected target width.
2995 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2996 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998/* end confdefs.h. */
2999$ac_includes_default
3000int
3001main ()
3002{
3003static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003004test_array [0] = 0;
3005return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003006
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011if ac_fn_c_try_compile "$LINENO"; then :
3012 case $ac_type in #(
3013 uint$2_t) :
3014 eval "$3=yes" ;; #(
3015 *) :
3016 eval "$3=\$ac_type" ;;
3017esac
3018fi
3019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3020 if eval test \"x\$"$3"\" = x"no"; then :
3021
3022else
3023 break
3024fi
3025 done
3026fi
3027eval ac_res=\$$3
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3029$as_echo "$ac_res" >&6; }
3030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3031
3032} # ac_fn_c_find_uintX_t
3033
cristy8b350f62009-11-15 23:12:43 +00003034# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3035# ---------------------------------------------------------
3036# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3037# the include files in INCLUDES and setting the cache variable VAR
3038# accordingly.
3039ac_fn_cxx_check_header_mongrel ()
3040{
3041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003042 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3044$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003045if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003046 $as_echo_n "(cached) " >&6
3047fi
3048eval ac_res=\$$3
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3050$as_echo "$ac_res" >&6; }
3051else
3052 # Is the header compilable?
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3054$as_echo_n "checking $2 usability... " >&6; }
3055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056/* end confdefs.h. */
3057$4
3058#include <$2>
3059_ACEOF
3060if ac_fn_cxx_try_compile "$LINENO"; then :
3061 ac_header_compiler=yes
3062else
3063 ac_header_compiler=no
3064fi
3065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3067$as_echo "$ac_header_compiler" >&6; }
3068
3069# Is the header present?
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3071$as_echo_n "checking $2 presence... " >&6; }
3072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073/* end confdefs.h. */
3074#include <$2>
3075_ACEOF
3076if ac_fn_cxx_try_cpp "$LINENO"; then :
3077 ac_header_preproc=yes
3078else
3079 ac_header_preproc=no
3080fi
cristyda16f162011-02-19 23:52:17 +00003081rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3083$as_echo "$ac_header_preproc" >&6; }
3084
3085# So? What about this header?
3086case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3087 yes:no: )
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3089$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3091$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3092 ;;
3093 no:yes:* )
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3095$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3097$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3099$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3101$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3103$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003104( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003105## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003106## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003107 ) | sed "s/^/$as_me: WARNING: /" >&2
3108 ;;
3109esac
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3111$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003112if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003113 $as_echo_n "(cached) " >&6
3114else
3115 eval "$3=\$ac_header_compiler"
3116fi
3117eval ac_res=\$$3
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3119$as_echo "$ac_res" >&6; }
3120fi
cristyda16f162011-02-19 23:52:17 +00003121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003122
3123} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003124cat >config.log <<_ACEOF
3125This file contains any messages produced by compilers while
3126running configure, to aid debugging if configure makes a mistake.
3127
cristy29eb34e2011-10-16 00:46:08 +00003128It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003129generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003130
3131 $ $0 $@
3132
3133_ACEOF
3134exec 5>>config.log
3135{
3136cat <<_ASUNAME
3137## --------- ##
3138## Platform. ##
3139## --------- ##
3140
3141hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3142uname -m = `(uname -m) 2>/dev/null || echo unknown`
3143uname -r = `(uname -r) 2>/dev/null || echo unknown`
3144uname -s = `(uname -s) 2>/dev/null || echo unknown`
3145uname -v = `(uname -v) 2>/dev/null || echo unknown`
3146
3147/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3148/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3149
3150/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3151/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3152/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3153/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3154/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3155/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3156/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3157
3158_ASUNAME
3159
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003165 $as_echo "PATH: $as_dir"
3166 done
cristy3ed852e2009-09-05 21:47:34 +00003167IFS=$as_save_IFS
3168
3169} >&5
3170
3171cat >&5 <<_ACEOF
3172
3173
3174## ----------- ##
3175## Core tests. ##
3176## ----------- ##
3177
3178_ACEOF
3179
3180
3181# Keep a trace of the command line.
3182# Strip out --no-create and --no-recursion so they do not pile up.
3183# Strip out --silent because we don't want to record it for future runs.
3184# Also quote any args containing shell meta-characters.
3185# Make two passes to allow for proper duplicate-argument suppression.
3186ac_configure_args=
3187ac_configure_args0=
3188ac_configure_args1=
3189ac_must_keep_next=false
3190for ac_pass in 1 2
3191do
3192 for ac_arg
3193 do
3194 case $ac_arg in
3195 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3197 | -silent | --silent | --silen | --sile | --sil)
3198 continue ;;
3199 *\'*)
3200 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3201 esac
3202 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003203 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003204 2)
cristy8b350f62009-11-15 23:12:43 +00003205 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003206 if test $ac_must_keep_next = true; then
3207 ac_must_keep_next=false # Got value, back to normal.
3208 else
3209 case $ac_arg in
3210 *=* | --config-cache | -C | -disable-* | --disable-* \
3211 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3212 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3213 | -with-* | --with-* | -without-* | --without-* | --x)
3214 case "$ac_configure_args0 " in
3215 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3216 esac
3217 ;;
3218 -* ) ac_must_keep_next=true ;;
3219 esac
3220 fi
cristy8b350f62009-11-15 23:12:43 +00003221 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003222 ;;
3223 esac
3224 done
3225done
cristy8b350f62009-11-15 23:12:43 +00003226{ ac_configure_args0=; unset ac_configure_args0;}
3227{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003228
3229# When interrupted or exit'd, cleanup temporary files, and complete
3230# config.log. We remove comments because anyway the quotes in there
3231# would cause problems or look ugly.
3232# WARNING: Use '\'' to represent an apostrophe within the trap.
3233# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3234trap 'exit_status=$?
3235 # Save into config.log some information that might help in debugging.
3236 {
3237 echo
3238
cristy98dddb52010-11-04 00:30:15 +00003239 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003240## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003241## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003242 echo
3243 # The following way of writing the cache mishandles newlines in values,
3244(
3245 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3246 eval ac_val=\$$ac_var
3247 case $ac_val in #(
3248 *${as_nl}*)
3249 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003250 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003251$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3252 esac
3253 case $ac_var in #(
3254 _ | IFS | as_nl) ;; #(
3255 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003256 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003257 esac ;;
3258 esac
3259 done
3260 (set) 2>&1 |
3261 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3262 *${as_nl}ac_space=\ *)
3263 sed -n \
3264 "s/'\''/'\''\\\\'\'''\''/g;
3265 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3266 ;; #(
3267 *)
3268 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3269 ;;
3270 esac |
3271 sort
3272)
3273 echo
3274
cristy98dddb52010-11-04 00:30:15 +00003275 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003276## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003277## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003278 echo
3279 for ac_var in $ac_subst_vars
3280 do
3281 eval ac_val=\$$ac_var
3282 case $ac_val in
3283 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3284 esac
3285 $as_echo "$ac_var='\''$ac_val'\''"
3286 done | sort
3287 echo
3288
3289 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003290 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003291## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003292## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003293 echo
3294 for ac_var in $ac_subst_files
3295 do
3296 eval ac_val=\$$ac_var
3297 case $ac_val in
3298 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3299 esac
3300 $as_echo "$ac_var='\''$ac_val'\''"
3301 done | sort
3302 echo
3303 fi
3304
3305 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003306 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003307## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003308## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003309 echo
3310 cat confdefs.h
3311 echo
3312 fi
3313 test "$ac_signal" != 0 &&
3314 $as_echo "$as_me: caught signal $ac_signal"
3315 $as_echo "$as_me: exit $exit_status"
3316 } >&5
3317 rm -f core *.core core.conftest.* &&
3318 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3319 exit $exit_status
3320' 0
3321for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003322 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003323done
3324ac_signal=0
3325
3326# confdefs.h avoids OS command line length limits that DEFS can exceed.
3327rm -f -r conftest* confdefs.h
3328
cristy8b350f62009-11-15 23:12:43 +00003329$as_echo "/* confdefs.h */" > confdefs.h
3330
cristy3ed852e2009-09-05 21:47:34 +00003331# Predefined preprocessor variables.
3332
3333cat >>confdefs.h <<_ACEOF
3334#define PACKAGE_NAME "$PACKAGE_NAME"
3335_ACEOF
3336
cristy3ed852e2009-09-05 21:47:34 +00003337cat >>confdefs.h <<_ACEOF
3338#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3339_ACEOF
3340
cristy3ed852e2009-09-05 21:47:34 +00003341cat >>confdefs.h <<_ACEOF
3342#define PACKAGE_VERSION "$PACKAGE_VERSION"
3343_ACEOF
3344
cristy3ed852e2009-09-05 21:47:34 +00003345cat >>confdefs.h <<_ACEOF
3346#define PACKAGE_STRING "$PACKAGE_STRING"
3347_ACEOF
3348
cristy3ed852e2009-09-05 21:47:34 +00003349cat >>confdefs.h <<_ACEOF
3350#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3351_ACEOF
3352
cristy8b350f62009-11-15 23:12:43 +00003353cat >>confdefs.h <<_ACEOF
3354#define PACKAGE_URL "$PACKAGE_URL"
3355_ACEOF
3356
cristy3ed852e2009-09-05 21:47:34 +00003357
3358# Let the site file select an alternate cache file if it wants to.
3359# Prefer an explicitly selected file to automatically selected ones.
3360ac_site_file1=NONE
3361ac_site_file2=NONE
3362if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003363 # We do not want a PATH search for config.site.
3364 case $CONFIG_SITE in #((
3365 -*) ac_site_file1=./$CONFIG_SITE;;
3366 */*) ac_site_file1=$CONFIG_SITE;;
3367 *) ac_site_file1=./$CONFIG_SITE;;
3368 esac
cristy3ed852e2009-09-05 21:47:34 +00003369elif test "x$prefix" != xNONE; then
3370 ac_site_file1=$prefix/share/config.site
3371 ac_site_file2=$prefix/etc/config.site
3372else
3373 ac_site_file1=$ac_default_prefix/share/config.site
3374 ac_site_file2=$ac_default_prefix/etc/config.site
3375fi
3376for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3377do
3378 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003379 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003380 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003381$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3382 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003383 . "$ac_site_file" \
3384 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386as_fn_error $? "failed to load site script $ac_site_file
3387See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003388 fi
3389done
3390
3391if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003392 # Some versions of bash will fail to source /dev/null (special files
3393 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3394 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003395 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003396$as_echo "$as_me: loading cache $cache_file" >&6;}
3397 case $cache_file in
3398 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3399 *) . "./$cache_file";;
3400 esac
3401 fi
3402else
cristy8b350f62009-11-15 23:12:43 +00003403 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003404$as_echo "$as_me: creating cache $cache_file" >&6;}
3405 >$cache_file
3406fi
3407
cristycd4c5312009-11-22 01:19:08 +00003408as_fn_append ac_header_list " stdlib.h"
3409as_fn_append ac_header_list " unistd.h"
3410as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003411# Check that the precious variables saved in the cache have kept the same
3412# value.
3413ac_cache_corrupted=false
3414for ac_var in $ac_precious_vars; do
3415 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3416 eval ac_new_set=\$ac_env_${ac_var}_set
3417 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3418 eval ac_new_val=\$ac_env_${ac_var}_value
3419 case $ac_old_set,$ac_new_set in
3420 set,)
cristy8b350f62009-11-15 23:12:43 +00003421 { $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 +00003422$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3423 ac_cache_corrupted=: ;;
3424 ,set)
cristy8b350f62009-11-15 23:12:43 +00003425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003426$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3427 ac_cache_corrupted=: ;;
3428 ,);;
3429 *)
3430 if test "x$ac_old_val" != "x$ac_new_val"; then
3431 # differences in whitespace do not lead to failure.
3432 ac_old_val_w=`echo x $ac_old_val`
3433 ac_new_val_w=`echo x $ac_new_val`
3434 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003436$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3437 ac_cache_corrupted=:
3438 else
cristy8b350f62009-11-15 23:12:43 +00003439 { $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 +00003440$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3441 eval $ac_var=\$ac_old_val
3442 fi
cristy8b350f62009-11-15 23:12:43 +00003443 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003444$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003445 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003446$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3447 fi;;
3448 esac
3449 # Pass precious variables to config.status.
3450 if test "$ac_new_set" = set; then
3451 case $ac_new_val in
3452 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3453 *) ac_arg=$ac_var=$ac_new_val ;;
3454 esac
3455 case " $ac_configure_args " in
3456 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003457 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003458 esac
3459 fi
3460done
3461if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003465$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003466 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003467fi
cristy8b350f62009-11-15 23:12:43 +00003468## -------------------- ##
3469## Main body of script. ##
3470## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003471
3472ac_ext=c
3473ac_cpp='$CPP $CPPFLAGS'
3474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477
3478
3479
3480ac_aux_dir=
3481for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003482 if test -f "$ac_dir/install-sh"; then
3483 ac_aux_dir=$ac_dir
3484 ac_install_sh="$ac_aux_dir/install-sh -c"
3485 break
3486 elif test -f "$ac_dir/install.sh"; then
3487 ac_aux_dir=$ac_dir
3488 ac_install_sh="$ac_aux_dir/install.sh -c"
3489 break
3490 elif test -f "$ac_dir/shtool"; then
3491 ac_aux_dir=$ac_dir
3492 ac_install_sh="$ac_aux_dir/shtool install -c"
3493 break
3494 fi
cristy3ed852e2009-09-05 21:47:34 +00003495done
3496if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003497 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003498fi
3499
3500# These three variables are undocumented and unsupported,
3501# and are intended to be withdrawn in a future Autoconf release.
3502# They can cause serious problems if a builder's source tree is in a directory
3503# whose full name contains unusual characters.
3504ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3505ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3506ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3507
3508
3509
3510
3511ac_config_headers="$ac_config_headers config/config.h"
3512
cristy24fc1fe2010-10-23 21:13:01 +00003513
cristy01ff9f32012-12-01 18:15:29 +00003514ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003515
cristy8d0ff762013-03-10 20:33:28 +00003516ac_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-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"
cristy3ed852e2009-09-05 21:47:34 +00003517
3518
3519#
3520# Save initial user-tunable values
3521#
3522USER_LIBS=$LIBS
3523for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3524 eval isset=\${$var+set}
3525 if test "$isset" = 'set'; then
3526 eval val=$`echo $var`
3527 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3528 fi
3529done
3530
3531
3532CONFIGURE_ARGS="$0 ${ac_configure_args}"
3533
3534
3535# Source file containing package/library versioning information.
3536. ${srcdir}/version.sh
3537
cristy15a88782010-01-31 23:24:49 +00003538echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003539# Make sure we can run config.sub.
3540$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003541 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003542
cristy8b350f62009-11-15 23:12:43 +00003543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003544$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003545if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003546 $as_echo_n "(cached) " >&6
3547else
3548 ac_build_alias=$build_alias
3549test "x$ac_build_alias" = x &&
3550 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3551test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003552 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003553ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003554 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003555
3556fi
cristy8b350f62009-11-15 23:12:43 +00003557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003558$as_echo "$ac_cv_build" >&6; }
3559case $ac_cv_build in
3560*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003561*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003562esac
3563build=$ac_cv_build
3564ac_save_IFS=$IFS; IFS='-'
3565set x $ac_cv_build
3566shift
3567build_cpu=$1
3568build_vendor=$2
3569shift; shift
3570# Remember, the first character of IFS is used to create $*,
3571# except with old shells:
3572build_os=$*
3573IFS=$ac_save_IFS
3574case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3575
3576
cristy8b350f62009-11-15 23:12:43 +00003577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003578$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003579if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003580 $as_echo_n "(cached) " >&6
3581else
3582 if test "x$host_alias" = x; then
3583 ac_cv_host=$ac_cv_build
3584else
3585 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003586 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003587fi
3588
3589fi
cristy8b350f62009-11-15 23:12:43 +00003590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003591$as_echo "$ac_cv_host" >&6; }
3592case $ac_cv_host in
3593*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003594*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003595esac
3596host=$ac_cv_host
3597ac_save_IFS=$IFS; IFS='-'
3598set x $ac_cv_host
3599shift
3600host_cpu=$1
3601host_vendor=$2
3602shift; shift
3603# Remember, the first character of IFS is used to create $*,
3604# except with old shells:
3605host_os=$*
3606IFS=$ac_save_IFS
3607case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3608
3609
cristy8b350f62009-11-15 23:12:43 +00003610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003611$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003612if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003613 $as_echo_n "(cached) " >&6
3614else
3615 if test "x$target_alias" = x; then
3616 ac_cv_target=$ac_cv_host
3617else
3618 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003619 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003620fi
3621
3622fi
cristy8b350f62009-11-15 23:12:43 +00003623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003624$as_echo "$ac_cv_target" >&6; }
3625case $ac_cv_target in
3626*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003627*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003628esac
3629target=$ac_cv_target
3630ac_save_IFS=$IFS; IFS='-'
3631set x $ac_cv_target
3632shift
3633target_cpu=$1
3634target_vendor=$2
3635shift; shift
3636# Remember, the first character of IFS is used to create $*,
3637# except with old shells:
3638target_os=$*
3639IFS=$ac_save_IFS
3640case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3641
3642
3643# The aliases save the names the user supplied, while $host etc.
3644# will get canonicalized.
3645test -n "$target_alias" &&
3646 test "$program_prefix$program_suffix$program_transform_name" = \
3647 NONENONEs,x,x, &&
3648 program_prefix=${target_alias}-
3649
cristy837d6dc2010-02-27 01:16:57 +00003650
3651
3652
cristy8be34142012-06-17 14:07:18 +00003653
cristy19615b82011-04-13 20:02:01 +00003654MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003655
3656
cristy27d53d62012-07-29 23:30:07 +00003657cat >>confdefs.h <<_ACEOF
3658#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3659_ACEOF
3660
3661
cristy19615b82011-04-13 20:02:01 +00003662MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003663
3664
cristy27d53d62012-07-29 23:30:07 +00003665cat >>confdefs.h <<_ACEOF
3666#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3667_ACEOF
3668
3669
cristy19615b82011-04-13 20:02:01 +00003670MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003671
3672
cristy27d53d62012-07-29 23:30:07 +00003673cat >>confdefs.h <<_ACEOF
3674#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3675_ACEOF
3676
3677
cristy37442762013-02-10 21:07:23 +00003678
3679# Substitute versioning
3680MAGICK_MAJOR_VERSION=7
3681
3682MAGICK_MINOR_VERSION=0
3683
3684MAGICK_MICRO_VERSION=0
3685
3686MAGICK_PATCHLEVEL_VERSION=0
3687
3688MAGICK_VERSION=7.0.0-0
3689
cristy99a003b2013-11-03 17:58:59 +00003690MAGICK_SVN_REVISION=13660M
cristy37442762013-02-10 21:07:23 +00003691
3692
cristy3ed852e2009-09-05 21:47:34 +00003693# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003694MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3695
3696MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3697
cristy37442762013-02-10 21:07:23 +00003698
cristy5ed9c6e2013-07-14 21:20:31 +00003699MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3700
3701MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3702
3703
cristyd694ca32011-03-27 21:42:54 +00003704
cristy3ed852e2009-09-05 21:47:34 +00003705# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3707$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003708# Reject unsafe characters in $srcdir or the absolute working directory
3709# name. Accept space and tab only in the latter.
3710am_lf='
3711'
3712case `pwd` in
3713 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003714 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003715esac
3716case $srcdir in
3717 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003718 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003719esac
cristy3ed852e2009-09-05 21:47:34 +00003720
cristyc0890a62012-07-19 00:18:20 +00003721# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003722# arguments. Must try -L first in case configure is actually a
3723# symlink; some systems play weird games with the mod time of symlinks
3724# (eg FreeBSD returns the mod time of the symlink's containing
3725# directory).
3726if (
cristyc0890a62012-07-19 00:18:20 +00003727 am_has_slept=no
3728 for am_try in 1 2; do
3729 echo "timestamp, slept: $am_has_slept" > conftest.file
3730 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3731 if test "$*" = "X"; then
3732 # -L didn't work.
3733 set X `ls -t "$srcdir/configure" conftest.file`
3734 fi
3735 if test "$*" != "X $srcdir/configure conftest.file" \
3736 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003737
cristyc0890a62012-07-19 00:18:20 +00003738 # If neither matched, then we have a broken ls. This can happen
3739 # if, for instance, CONFIG_SHELL is bash and it inherits a
3740 # broken ls alias from the environment. This has actually
3741 # happened. Such a system could not be considered "sane".
3742 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3743 alias in your environment" "$LINENO" 5
3744 fi
3745 if test "$2" = conftest.file || test $am_try -eq 2; then
3746 break
3747 fi
3748 # Just in case.
3749 sleep 1
3750 am_has_slept=yes
3751 done
cristy73bd4a52010-10-05 11:24:23 +00003752 test "$2" = conftest.file
3753 )
3754then
3755 # Ok.
3756 :
3757else
cristy98dddb52010-11-04 00:30:15 +00003758 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003759Check your system clock" "$LINENO" 5
3760fi
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3762$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003763# If we didn't sleep, we still need to ensure time stamps of config.status and
3764# generated files are strictly newer.
3765am_sleep_pid=
3766if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3767 ( sleep 1 ) &
3768 am_sleep_pid=$!
3769fi
cristy73bd4a52010-10-05 11:24:23 +00003770
cristyc0890a62012-07-19 00:18:20 +00003771rm -f conftest.file
3772
3773
cristy99a003b2013-11-03 17:58:59 +00003774am__api_version='1.13'
cristy73bd4a52010-10-05 11:24:23 +00003775
3776# Find a good install program. We prefer a C program (faster),
3777# so one script is as good as another. But avoid the broken or
3778# incompatible versions:
3779# SysV /etc/install, /usr/sbin/install
3780# SunOS /usr/etc/install
3781# IRIX /sbin/install
3782# AIX /bin/install
3783# AmigaOS /C/install, which installs bootblocks on floppy discs
3784# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3785# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3786# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3787# OS/2's system install, which has a completely different semantic
3788# ./install, which can be erroneously created by make from ./install.sh.
3789# Reject install programs that cannot install multiple files.
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3791$as_echo_n "checking for a BSD-compatible install... " >&6; }
3792if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003793if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003794 $as_echo_n "(cached) " >&6
3795else
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797for as_dir in $PATH
3798do
3799 IFS=$as_save_IFS
3800 test -z "$as_dir" && as_dir=.
3801 # Account for people who put trailing slashes in PATH elements.
3802case $as_dir/ in #((
3803 ./ | .// | /[cC]/* | \
3804 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3805 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3806 /usr/ucb/* ) ;;
3807 *)
3808 # OSF1 and SCO ODT 3.0 have their own names for install.
3809 # Don't use installbsd from OSF since it installs stuff as root
3810 # by default.
3811 for ac_prog in ginstall scoinst install; do
3812 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003813 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003814 if test $ac_prog = install &&
3815 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3816 # AIX install. It has an incompatible calling convention.
3817 :
3818 elif test $ac_prog = install &&
3819 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3820 # program-specific install script used by HP pwplus--don't use.
3821 :
3822 else
3823 rm -rf conftest.one conftest.two conftest.dir
3824 echo one > conftest.one
3825 echo two > conftest.two
3826 mkdir conftest.dir
3827 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3828 test -s conftest.one && test -s conftest.two &&
3829 test -s conftest.dir/conftest.one &&
3830 test -s conftest.dir/conftest.two
3831 then
3832 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3833 break 3
3834 fi
3835 fi
3836 fi
3837 done
3838 done
3839 ;;
3840esac
3841
3842 done
3843IFS=$as_save_IFS
3844
3845rm -rf conftest.one conftest.two conftest.dir
3846
3847fi
3848 if test "${ac_cv_path_install+set}" = set; then
3849 INSTALL=$ac_cv_path_install
3850 else
3851 # As a last resort, use the slow shell script. Don't cache a
3852 # value for INSTALL within a source directory, because that will
3853 # break other packages using the cache if that directory is
3854 # removed, or if the value is a relative name.
3855 INSTALL=$ac_install_sh
3856 fi
3857fi
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3859$as_echo "$INSTALL" >&6; }
3860
3861# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3862# It thinks the first close brace ends the variable substitution.
3863test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3864
3865test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3866
3867test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3868
3869test "$program_prefix" != NONE &&
3870 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3871# Use a double $ so make ignores it.
3872test "$program_suffix" != NONE &&
3873 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3874# Double any \ or $.
3875# By default was `s,x,x', remove it if useless.
3876ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3877program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3878
3879# expand $ac_aux_dir to an absolute path
3880am_aux_dir=`cd $ac_aux_dir && pwd`
3881
3882if test x"${MISSING+set}" != xset; then
3883 case $am_aux_dir in
3884 *\ * | *\ *)
3885 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3886 *)
3887 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3888 esac
3889fi
3890# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003891if eval "$MISSING --is-lightweight"; then
3892 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003893else
3894 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3896$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003897fi
3898
3899if test x"${install_sh}" != xset; then
3900 case $am_aux_dir in
3901 *\ * | *\ *)
3902 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3903 *)
3904 install_sh="\${SHELL} $am_aux_dir/install-sh"
3905 esac
3906fi
3907
cristyc0890a62012-07-19 00:18:20 +00003908# Installed binaries are usually stripped using 'strip' when the user
3909# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003910# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003911# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003912if test "$cross_compiling" != no; then
3913 if test -n "$ac_tool_prefix"; then
3914 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3915set dummy ${ac_tool_prefix}strip; ac_word=$2
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003918if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003919 $as_echo_n "(cached) " >&6
3920else
3921 if test -n "$STRIP"; then
3922 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3923else
3924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925for as_dir in $PATH
3926do
3927 IFS=$as_save_IFS
3928 test -z "$as_dir" && as_dir=.
3929 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003931 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 break 2
3934 fi
3935done
3936 done
3937IFS=$as_save_IFS
3938
3939fi
3940fi
3941STRIP=$ac_cv_prog_STRIP
3942if test -n "$STRIP"; then
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3944$as_echo "$STRIP" >&6; }
3945else
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947$as_echo "no" >&6; }
3948fi
3949
3950
3951fi
3952if test -z "$ac_cv_prog_STRIP"; then
3953 ac_ct_STRIP=$STRIP
3954 # Extract the first word of "strip", so it can be a program name with args.
3955set dummy strip; ac_word=$2
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003958if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003959 $as_echo_n "(cached) " >&6
3960else
3961 if test -n "$ac_ct_STRIP"; then
3962 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3963else
3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH
3966do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003971 ac_cv_prog_ac_ct_STRIP="strip"
3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 break 2
3974 fi
3975done
3976 done
3977IFS=$as_save_IFS
3978
3979fi
3980fi
3981ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3982if test -n "$ac_ct_STRIP"; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3984$as_echo "$ac_ct_STRIP" >&6; }
3985else
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987$as_echo "no" >&6; }
3988fi
3989
3990 if test "x$ac_ct_STRIP" = x; then
3991 STRIP=":"
3992 else
3993 case $cross_compiling:$ac_tool_warned in
3994yes:)
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3997ac_tool_warned=yes ;;
3998esac
3999 STRIP=$ac_ct_STRIP
4000 fi
4001else
4002 STRIP="$ac_cv_prog_STRIP"
4003fi
4004
4005fi
4006INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4007
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4009$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4010if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004011 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004012 $as_echo_n "(cached) " >&6
4013else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4016do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_prog in mkdir gmkdir; do
4020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004021 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004022 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4023 'mkdir (GNU coreutils) '* | \
4024 'mkdir (coreutils) '* | \
4025 'mkdir (fileutils) '4.1*)
4026 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4027 break 3;;
4028 esac
4029 done
4030 done
4031 done
4032IFS=$as_save_IFS
4033
4034fi
4035
4036 test -d ./--version && rmdir ./--version
4037 if test "${ac_cv_path_mkdir+set}" = set; then
4038 MKDIR_P="$ac_cv_path_mkdir -p"
4039 else
4040 # As a last resort, use the slow shell script. Don't cache a
4041 # value for MKDIR_P within a source directory, because that will
4042 # break other packages using the cache if that directory is
4043 # removed, or if the value is a relative name.
4044 MKDIR_P="$ac_install_sh -d"
4045 fi
4046fi
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4048$as_echo "$MKDIR_P" >&6; }
4049
cristy73bd4a52010-10-05 11:24:23 +00004050for ac_prog in gawk mawk nawk awk
4051do
4052 # Extract the first word of "$ac_prog", so it can be a program name with args.
4053set dummy $ac_prog; ac_word=$2
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4055$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004056if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004057 $as_echo_n "(cached) " >&6
4058else
4059 if test -n "$AWK"; then
4060 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4061else
4062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063for as_dir in $PATH
4064do
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004069 ac_cv_prog_AWK="$ac_prog"
4070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 break 2
4072 fi
4073done
4074 done
4075IFS=$as_save_IFS
4076
4077fi
4078fi
4079AWK=$ac_cv_prog_AWK
4080if test -n "$AWK"; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4082$as_echo "$AWK" >&6; }
4083else
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085$as_echo "no" >&6; }
4086fi
4087
4088
4089 test -n "$AWK" && break
4090done
4091
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4093$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4094set x ${MAKE-make}
4095ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004096if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004097 $as_echo_n "(cached) " >&6
4098else
4099 cat >conftest.make <<\_ACEOF
4100SHELL = /bin/sh
4101all:
4102 @echo '@@@%%%=$(MAKE)=@@@%%%'
4103_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004104# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004105case `${MAKE-make} -f conftest.make 2>/dev/null` in
4106 *@@@%%%=?*=@@@%%%*)
4107 eval ac_cv_prog_make_${ac_make}_set=yes;;
4108 *)
4109 eval ac_cv_prog_make_${ac_make}_set=no;;
4110esac
4111rm -f conftest.make
4112fi
4113if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4115$as_echo "yes" >&6; }
4116 SET_MAKE=
4117else
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119$as_echo "no" >&6; }
4120 SET_MAKE="MAKE=${MAKE-make}"
4121fi
4122
4123rm -rf .tst 2>/dev/null
4124mkdir .tst 2>/dev/null
4125if test -d .tst; then
4126 am__leading_dot=.
4127else
4128 am__leading_dot=_
4129fi
4130rmdir .tst 2>/dev/null
4131
cristya448bd22011-10-14 12:38:13 +00004132# Check whether --enable-silent-rules was given.
4133if test "${enable_silent_rules+set}" = set; then :
4134 enableval=$enable_silent_rules;
4135fi
4136
cristyc0890a62012-07-19 00:18:20 +00004137case $enable_silent_rules in # (((
4138 yes) AM_DEFAULT_VERBOSITY=0;;
4139 no) AM_DEFAULT_VERBOSITY=1;;
4140 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004141esac
cristyc3fb77b2012-02-06 01:49:41 +00004142am_make=${MAKE-make}
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4144$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4145if ${am_cv_make_support_nested_variables+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147else
4148 if $as_echo 'TRUE=$(BAR$(V))
4149BAR0=false
4150BAR1=true
4151V=1
4152am__doit:
4153 @$(TRUE)
4154.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4155 am_cv_make_support_nested_variables=yes
4156else
4157 am_cv_make_support_nested_variables=no
4158fi
4159fi
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4161$as_echo "$am_cv_make_support_nested_variables" >&6; }
4162if test $am_cv_make_support_nested_variables = yes; then
4163 AM_V='$(V)'
4164 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4165else
4166 AM_V=$AM_DEFAULT_VERBOSITY
4167 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4168fi
cristya448bd22011-10-14 12:38:13 +00004169AM_BACKSLASH='\'
4170
cristy73bd4a52010-10-05 11:24:23 +00004171if test "`cd $srcdir && pwd`" != "`pwd`"; then
4172 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4173 # is not polluted with repeated "-I."
4174 am__isrc=' -I$(srcdir)'
4175 # test to see if srcdir already configured
4176 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004177 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004178 fi
4179fi
4180
4181# test whether we have cygpath
4182if test -z "$CYGPATH_W"; then
4183 if (cygpath --version) >/dev/null 2>/dev/null; then
4184 CYGPATH_W='cygpath -w'
4185 else
4186 CYGPATH_W=echo
4187 fi
4188fi
4189
4190
4191# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004192 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004193 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004194
4195
cristya448bd22011-10-14 12:38:13 +00004196cat >>confdefs.h <<_ACEOF
4197#define PACKAGE "$PACKAGE"
4198_ACEOF
4199
4200
4201cat >>confdefs.h <<_ACEOF
4202#define VERSION "$VERSION"
4203_ACEOF
4204
cristy73bd4a52010-10-05 11:24:23 +00004205# Some tools Automake needs.
4206
4207ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4208
4209
4210AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4211
4212
4213AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4214
4215
4216AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4217
4218
4219MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4220
cristyc0890a62012-07-19 00:18:20 +00004221# For better backward compatibility. To be removed once Automake 1.9.x
4222# dies out for good. For more background, see:
4223# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4224# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4225mkdir_p='$(MKDIR_P)'
4226
cristy73bd4a52010-10-05 11:24:23 +00004227# We need awk for the "check" target. The system "awk" is bad on
4228# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004229# Always define AMTAR for backward compatibility. Yes, it's still used
4230# in the wild :-( We should find a proper way to deprecate it ...
4231AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004232
cristye69bdbe2013-05-03 21:40:44 +00004233
4234# We'll loop over all known methods to create a tar archive until one works.
4235_am_tools='gnutar pax cpio none'
4236
cristyc3fb77b2012-02-06 01:49:41 +00004237am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004238
4239
4240
4241
4242
cristy3ed852e2009-09-05 21:47:34 +00004243
cristye69bdbe2013-05-03 21:40:44 +00004244
cristy3ed852e2009-09-05 21:47:34 +00004245# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004246# Check whether --enable-silent-rules was given.
4247if test "${enable_silent_rules+set}" = set; then :
4248 enableval=$enable_silent_rules;
4249fi
4250
cristyc0890a62012-07-19 00:18:20 +00004251case $enable_silent_rules in # (((
4252 yes) AM_DEFAULT_VERBOSITY=0;;
4253 no) AM_DEFAULT_VERBOSITY=1;;
4254 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004255esac
cristyc3fb77b2012-02-06 01:49:41 +00004256am_make=${MAKE-make}
4257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4258$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4259if ${am_cv_make_support_nested_variables+:} false; then :
4260 $as_echo_n "(cached) " >&6
4261else
4262 if $as_echo 'TRUE=$(BAR$(V))
4263BAR0=false
4264BAR1=true
4265V=1
4266am__doit:
4267 @$(TRUE)
4268.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4269 am_cv_make_support_nested_variables=yes
4270else
4271 am_cv_make_support_nested_variables=no
4272fi
4273fi
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4275$as_echo "$am_cv_make_support_nested_variables" >&6; }
4276if test $am_cv_make_support_nested_variables = yes; then
4277 AM_V='$(V)'
4278 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4279else
4280 AM_V=$AM_DEFAULT_VERBOSITY
4281 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4282fi
cristy73bd4a52010-10-05 11:24:23 +00004283AM_BACKSLASH='\'
4284
cristy3ed852e2009-09-05 21:47:34 +00004285
cristy5ed9c6e2013-07-14 21:20:31 +00004286# versionning of library
cristy3ed852e2009-09-05 21:47:34 +00004287MAGICK_LIB_VERSION="0x"
4288if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4289 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4290fi
4291MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4292if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4293 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4294fi
4295MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4296if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4297 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4298fi
4299MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4300
4301
4302# Definition used to define MagickLibVersionText in version.h
4303MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4304
4305
4306# Definition used to define MagickLibVersionNumber in version.h
4307MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4308
4309
cristy5ed9c6e2013-07-14 21:20:31 +00004310MAGICKPP_LIB_VERSION="0x"
4311if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4312 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4313fi
4314MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4315if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4316 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4317fi
4318MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4319if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4320 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4321fi
4322MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4323
4324
4325# Definition used to define MagickLibVersionText in version.h
4326MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4327
4328
4329# Definition used to define MagickLibVersionNumber in version.h
4330MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4331
4332
4333
4334
cristy3ed852e2009-09-05 21:47:34 +00004335# Regenerate config.status if ChangeLog or version.sh is updated.
4336CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4337
4338
4339PERLMAINCC=$CC
4340
4341MAGICK_CFLAGS=''
4342MAGICK_CPPFLAGS=$CPPFLAGS_USER
4343MAGICK_PCFLAGS=$CPPFLAGS_USER
4344MAGICK_LDFLAGS=''
4345MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004346MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004347
4348#
4349# Evaluate shell variable equivalents to Makefile directory variables
4350#
4351if test "x$prefix" = xNONE; then
4352 prefix=$ac_default_prefix
4353fi
4354# Let make expand exec_prefix.
4355if test "x$exec_prefix" = xNONE; then
4356 exec_prefix='${prefix}'
4357fi
4358
4359#
4360eval "eval PREFIX_DIR=${prefix}"
4361
4362eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4363
4364eval "eval BIN_DIR=$bindir"
4365
4366eval "eval SBIN_DIR=$sbindir"
4367
4368eval "eval LIBEXEC_DIR=$libexecdir"
4369
4370eval "eval DATA_DIR=$datadir"
4371
cristy4e65ec22012-04-08 01:33:27 +00004372eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004373
cristy3ed852e2009-09-05 21:47:34 +00004374eval "eval SYSCONF_DIR=$sysconfdir"
4375
4376eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4377
4378eval "eval LOCALSTATE_DIR=$localstatedir"
4379
4380eval "eval LIB_DIR=$libdir"
4381
4382eval "eval INCLUDE_DIR=$includedir"
4383
4384eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4385
4386eval "eval INFO_DIR=$infodir"
4387
4388eval "eval MAN_DIR=$mandir"
4389
4390
4391# Get full paths to source and build directories
4392srcdirfull="`cd $srcdir && pwd`"
4393builddir="`pwd`"
4394
4395#
4396# Compute variables useful for running uninstalled software.
4397#
4398MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4399MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4400MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4401MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4402DIRSEP=':'
4403case "${build_os}" in
4404 mingw* )
4405 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4406 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4407 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4408 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4409 DIRSEP=';'
4410 ;;
4411esac
4412case "${host_os}" in
4413 mingw* )
4414 DIRSEP=';'
4415 ;;
4416esac
4417
4418
4419
4420
4421
4422
cristya0b81c32010-01-22 02:54:33 +00004423
4424#
4425# Enable OS features.
4426#
cristy73bd4a52010-10-05 11:24:23 +00004427DEPDIR="${am__leading_dot}deps"
4428
4429ac_config_commands="$ac_config_commands depfiles"
4430
4431
4432am_make=${MAKE-make}
4433cat > confinc << 'END'
4434am__doit:
4435 @echo this is the am__doit target
4436.PHONY: am__doit
4437END
4438# If we don't find an include directive, just comment out the code.
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4440$as_echo_n "checking for style of include used by $am_make... " >&6; }
4441am__include="#"
4442am__quote=
4443_am_result=none
4444# First try GNU make style include.
4445echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004446# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004447case `$am_make -s -f confmf 2> /dev/null` in #(
4448*the\ am__doit\ target*)
4449 am__include=include
4450 am__quote=
4451 _am_result=GNU
4452 ;;
4453esac
4454# Now try BSD make style include.
4455if test "$am__include" = "#"; then
4456 echo '.include "confinc"' > confmf
4457 case `$am_make -s -f confmf 2> /dev/null` in #(
4458 *the\ am__doit\ target*)
4459 am__include=.include
4460 am__quote="\""
4461 _am_result=BSD
4462 ;;
4463 esac
4464fi
4465
4466
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4468$as_echo "$_am_result" >&6; }
4469rm -f confinc confmf
4470
4471# Check whether --enable-dependency-tracking was given.
4472if test "${enable_dependency_tracking+set}" = set; then :
4473 enableval=$enable_dependency_tracking;
4474fi
4475
4476if test "x$enable_dependency_tracking" != xno; then
4477 am_depcomp="$ac_aux_dir/depcomp"
4478 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004479 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004480fi
4481 if test "x$enable_dependency_tracking" != xno; then
4482 AMDEP_TRUE=
4483 AMDEP_FALSE='#'
4484else
4485 AMDEP_TRUE='#'
4486 AMDEP_FALSE=
4487fi
4488
4489
cristy3ed852e2009-09-05 21:47:34 +00004490ac_ext=c
4491ac_cpp='$CPP $CPPFLAGS'
4492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4494ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495if test -n "$ac_tool_prefix"; then
4496 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4497set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004499$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004500if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004501 $as_echo_n "(cached) " >&6
4502else
4503 if test -n "$CC"; then
4504 ac_cv_prog_CC="$CC" # Let the user override the test.
4505else
4506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH
4508do
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004511 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004513 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004515 break 2
4516 fi
4517done
cristy8b350f62009-11-15 23:12:43 +00004518 done
cristy3ed852e2009-09-05 21:47:34 +00004519IFS=$as_save_IFS
4520
4521fi
4522fi
4523CC=$ac_cv_prog_CC
4524if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004526$as_echo "$CC" >&6; }
4527else
cristy8b350f62009-11-15 23:12:43 +00004528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004529$as_echo "no" >&6; }
4530fi
4531
4532
4533fi
4534if test -z "$ac_cv_prog_CC"; then
4535 ac_ct_CC=$CC
4536 # Extract the first word of "gcc", so it can be a program name with args.
4537set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004539$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004540if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004541 $as_echo_n "(cached) " >&6
4542else
4543 if test -n "$ac_ct_CC"; then
4544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4545else
4546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547for as_dir in $PATH
4548do
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004551 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004553 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004555 break 2
4556 fi
4557done
cristy8b350f62009-11-15 23:12:43 +00004558 done
cristy3ed852e2009-09-05 21:47:34 +00004559IFS=$as_save_IFS
4560
4561fi
4562fi
4563ac_ct_CC=$ac_cv_prog_ac_ct_CC
4564if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004566$as_echo "$ac_ct_CC" >&6; }
4567else
cristy8b350f62009-11-15 23:12:43 +00004568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004569$as_echo "no" >&6; }
4570fi
4571
4572 if test "x$ac_ct_CC" = x; then
4573 CC=""
4574 else
4575 case $cross_compiling:$ac_tool_warned in
4576yes:)
cristy8b350f62009-11-15 23:12:43 +00004577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4579ac_tool_warned=yes ;;
4580esac
4581 CC=$ac_ct_CC
4582 fi
4583else
4584 CC="$ac_cv_prog_CC"
4585fi
4586
4587if test -z "$CC"; then
4588 if test -n "$ac_tool_prefix"; then
4589 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4590set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004592$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004593if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004594 $as_echo_n "(cached) " >&6
4595else
4596 if test -n "$CC"; then
4597 ac_cv_prog_CC="$CC" # Let the user override the test.
4598else
4599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600for as_dir in $PATH
4601do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004604 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004606 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004608 break 2
4609 fi
4610done
cristy8b350f62009-11-15 23:12:43 +00004611 done
cristy3ed852e2009-09-05 21:47:34 +00004612IFS=$as_save_IFS
4613
4614fi
4615fi
4616CC=$ac_cv_prog_CC
4617if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004619$as_echo "$CC" >&6; }
4620else
cristy8b350f62009-11-15 23:12:43 +00004621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004622$as_echo "no" >&6; }
4623fi
4624
4625
4626 fi
4627fi
4628if test -z "$CC"; then
4629 # Extract the first word of "cc", so it can be a program name with args.
4630set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004632$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004633if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004634 $as_echo_n "(cached) " >&6
4635else
4636 if test -n "$CC"; then
4637 ac_cv_prog_CC="$CC" # Let the user override the test.
4638else
4639 ac_prog_rejected=no
4640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641for as_dir in $PATH
4642do
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004645 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004647 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4648 ac_prog_rejected=yes
4649 continue
4650 fi
4651 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004653 break 2
4654 fi
4655done
cristy8b350f62009-11-15 23:12:43 +00004656 done
cristy3ed852e2009-09-05 21:47:34 +00004657IFS=$as_save_IFS
4658
4659if test $ac_prog_rejected = yes; then
4660 # We found a bogon in the path, so make sure we never use it.
4661 set dummy $ac_cv_prog_CC
4662 shift
4663 if test $# != 0; then
4664 # We chose a different compiler from the bogus one.
4665 # However, it has the same basename, so the bogon will be chosen
4666 # first if we set CC to just the basename; use the full file name.
4667 shift
4668 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4669 fi
4670fi
4671fi
4672fi
4673CC=$ac_cv_prog_CC
4674if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004676$as_echo "$CC" >&6; }
4677else
cristy8b350f62009-11-15 23:12:43 +00004678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004679$as_echo "no" >&6; }
4680fi
4681
4682
4683fi
4684if test -z "$CC"; then
4685 if test -n "$ac_tool_prefix"; then
4686 for ac_prog in cl.exe
4687 do
4688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4689set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004691$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004692if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004693 $as_echo_n "(cached) " >&6
4694else
4695 if test -n "$CC"; then
4696 ac_cv_prog_CC="$CC" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004703 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004705 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004707 break 2
4708 fi
4709done
cristy8b350f62009-11-15 23:12:43 +00004710 done
cristy3ed852e2009-09-05 21:47:34 +00004711IFS=$as_save_IFS
4712
4713fi
4714fi
4715CC=$ac_cv_prog_CC
4716if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004718$as_echo "$CC" >&6; }
4719else
cristy8b350f62009-11-15 23:12:43 +00004720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004721$as_echo "no" >&6; }
4722fi
4723
4724
4725 test -n "$CC" && break
4726 done
4727fi
4728if test -z "$CC"; then
4729 ac_ct_CC=$CC
4730 for ac_prog in cl.exe
4731do
4732 # Extract the first word of "$ac_prog", so it can be a program name with args.
4733set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004735$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004736if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004737 $as_echo_n "(cached) " >&6
4738else
4739 if test -n "$ac_ct_CC"; then
4740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4741else
4742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH
4744do
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004747 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004749 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004751 break 2
4752 fi
4753done
cristy8b350f62009-11-15 23:12:43 +00004754 done
cristy3ed852e2009-09-05 21:47:34 +00004755IFS=$as_save_IFS
4756
4757fi
4758fi
4759ac_ct_CC=$ac_cv_prog_ac_ct_CC
4760if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004762$as_echo "$ac_ct_CC" >&6; }
4763else
cristy8b350f62009-11-15 23:12:43 +00004764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004765$as_echo "no" >&6; }
4766fi
4767
4768
4769 test -n "$ac_ct_CC" && break
4770done
4771
4772 if test "x$ac_ct_CC" = x; then
4773 CC=""
4774 else
4775 case $cross_compiling:$ac_tool_warned in
4776yes:)
cristy8b350f62009-11-15 23:12:43 +00004777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4779ac_tool_warned=yes ;;
4780esac
4781 CC=$ac_ct_CC
4782 fi
4783fi
4784
4785fi
4786
4787
cristy8b350f62009-11-15 23:12:43 +00004788test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004790as_fn_error $? "no acceptable C compiler found in \$PATH
4791See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004792
4793# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004794$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004795set X $ac_compile
4796ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004797for ac_option in --version -v -V -qversion; do
4798 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004799case "(($ac_try" in
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4802esac
cristy8b350f62009-11-15 23:12:43 +00004803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4804$as_echo "$ac_try_echo"; } >&5
4805 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004806 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004807 if test -s conftest.err; then
4808 sed '10a\
4809... rest of stderr output deleted ...
4810 10q' conftest.err >conftest.er1
4811 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004812 fi
cristycd4c5312009-11-22 01:19:08 +00004813 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4815 test $ac_status = 0; }
4816done
cristy3ed852e2009-09-05 21:47:34 +00004817
cristy8b350f62009-11-15 23:12:43 +00004818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004819/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004820
cristy3ed852e2009-09-05 21:47:34 +00004821int
4822main ()
4823{
4824
4825 ;
4826 return 0;
4827}
4828_ACEOF
4829ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004830ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004831# Try to create an executable without -o first, disregard a.out.
4832# It will help us diagnose broken compilers, and finding out an intuition
4833# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4835$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004836ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4837
4838# The possible output files:
4839ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4840
4841ac_rmfiles=
4842for ac_file in $ac_files
4843do
4844 case $ac_file in
4845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4846 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4847 esac
4848done
4849rm -f $ac_rmfiles
4850
cristy8b350f62009-11-15 23:12:43 +00004851if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004852case "(($ac_try" in
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4855esac
cristy8b350f62009-11-15 23:12:43 +00004856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4857$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004858 (eval "$ac_link_default") 2>&5
4859 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4861 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004862 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4863# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4864# in a Makefile. We should not override ac_cv_exeext if it was cached,
4865# so that the user can short-circuit this test for compilers unknown to
4866# Autoconf.
4867for ac_file in $ac_files ''
4868do
4869 test -f "$ac_file" || continue
4870 case $ac_file in
4871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4872 ;;
4873 [ab].out )
4874 # We found the default executable, but exeext='' is most
4875 # certainly right.
4876 break;;
4877 *.* )
cristy8b350f62009-11-15 23:12:43 +00004878 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004879 then :; else
4880 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4881 fi
4882 # We set ac_cv_exeext here because the later test for it is not
4883 # safe: cross compilers may not add the suffix if given an `-o'
4884 # argument, so we may need to know it at that point already.
4885 # Even if this section looks crufty: it has the advantage of
4886 # actually working.
4887 break;;
4888 * )
4889 break;;
4890 esac
4891done
4892test "$ac_cv_exeext" = no && ac_cv_exeext=
4893
4894else
4895 ac_file=''
4896fi
cristy8b350f62009-11-15 23:12:43 +00004897if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899$as_echo "no" >&6; }
4900$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004901sed 's/^/| /' conftest.$ac_ext >&5
4902
cristy8b350f62009-11-15 23:12:43 +00004903{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004905as_fn_error 77 "C compiler cannot create executables
4906See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004907else
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4909$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004910fi
cristycd4c5312009-11-22 01:19:08 +00004911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4912$as_echo_n "checking for C compiler default output file name... " >&6; }
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4914$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004915ac_exeext=$ac_cv_exeext
4916
cristycd4c5312009-11-22 01:19:08 +00004917rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004918ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004920$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004921if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004922case "(($ac_try" in
4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4925esac
cristy8b350f62009-11-15 23:12:43 +00004926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4927$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004928 (eval "$ac_link") 2>&5
4929 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4931 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004932 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4933# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4934# work properly (i.e., refer to `conftest.exe'), while it won't with
4935# `rm'.
4936for ac_file in conftest.exe conftest conftest.*; do
4937 test -f "$ac_file" || continue
4938 case $ac_file in
4939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4940 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4941 break;;
4942 * ) break;;
4943 esac
4944done
4945else
cristy8b350f62009-11-15 23:12:43 +00004946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004948as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4949See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004950fi
cristycd4c5312009-11-22 01:19:08 +00004951rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004953$as_echo "$ac_cv_exeext" >&6; }
4954
4955rm -f conftest.$ac_ext
4956EXEEXT=$ac_cv_exeext
4957ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959/* end confdefs.h. */
4960#include <stdio.h>
4961int
4962main ()
4963{
4964FILE *f = fopen ("conftest.out", "w");
4965 return ferror (f) || fclose (f) != 0;
4966
4967 ;
4968 return 0;
4969}
4970_ACEOF
4971ac_clean_files="$ac_clean_files conftest.out"
4972# Check that the compiler produces executables we can run. If not, either
4973# the compiler is broken, or we cross compile.
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4975$as_echo_n "checking whether we are cross compiling... " >&6; }
4976if test "$cross_compiling" != yes; then
4977 { { ac_try="$ac_link"
4978case "(($ac_try" in
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4981esac
4982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4983$as_echo "$ac_try_echo"; } >&5
4984 (eval "$ac_link") 2>&5
4985 ac_status=$?
4986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4987 test $ac_status = 0; }
4988 if { ac_try='./conftest$ac_cv_exeext'
4989 { { case "(($ac_try" in
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4992esac
4993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4994$as_echo "$ac_try_echo"; } >&5
4995 (eval "$ac_try") 2>&5
4996 ac_status=$?
4997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4998 test $ac_status = 0; }; }; then
4999 cross_compiling=no
5000 else
5001 if test "$cross_compiling" = maybe; then
5002 cross_compiling=yes
5003 else
5004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005006as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005007If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005008See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005009 fi
5010 fi
5011fi
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5013$as_echo "$cross_compiling" >&6; }
5014
5015rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5016ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005018$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005019if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005020 $as_echo_n "(cached) " >&6
5021else
cristy8b350f62009-11-15 23:12:43 +00005022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005023/* end confdefs.h. */
5024
5025int
5026main ()
5027{
5028
5029 ;
5030 return 0;
5031}
5032_ACEOF
5033rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005034if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005035case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5038esac
cristy8b350f62009-11-15 23:12:43 +00005039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5040$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005041 (eval "$ac_compile") 2>&5
5042 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5044 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005045 for ac_file in conftest.o conftest.obj conftest.*; do
5046 test -f "$ac_file" || continue;
5047 case $ac_file in
5048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5049 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5050 break;;
5051 esac
5052done
5053else
5054 $as_echo "$as_me: failed program was:" >&5
5055sed 's/^/| /' conftest.$ac_ext >&5
5056
cristy8b350f62009-11-15 23:12:43 +00005057{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005059as_fn_error $? "cannot compute suffix of object files: cannot compile
5060See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005061fi
cristy3ed852e2009-09-05 21:47:34 +00005062rm -f conftest.$ac_cv_objext conftest.$ac_ext
5063fi
cristy8b350f62009-11-15 23:12:43 +00005064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005065$as_echo "$ac_cv_objext" >&6; }
5066OBJEXT=$ac_cv_objext
5067ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005069$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005070if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005071 $as_echo_n "(cached) " >&6
5072else
cristy8b350f62009-11-15 23:12:43 +00005073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005074/* end confdefs.h. */
5075
5076int
5077main ()
5078{
5079#ifndef __GNUC__
5080 choke me
5081#endif
5082
5083 ;
5084 return 0;
5085}
5086_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005087if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005088 ac_compiler_gnu=yes
5089else
cristy8b350f62009-11-15 23:12:43 +00005090 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005091fi
cristy3ed852e2009-09-05 21:47:34 +00005092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5093ac_cv_c_compiler_gnu=$ac_compiler_gnu
5094
5095fi
cristy8b350f62009-11-15 23:12:43 +00005096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005097$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5098if test $ac_compiler_gnu = yes; then
5099 GCC=yes
5100else
5101 GCC=
5102fi
5103ac_test_CFLAGS=${CFLAGS+set}
5104ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005106$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005107if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005108 $as_echo_n "(cached) " >&6
5109else
5110 ac_save_c_werror_flag=$ac_c_werror_flag
5111 ac_c_werror_flag=yes
5112 ac_cv_prog_cc_g=no
5113 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005115/* end confdefs.h. */
5116
5117int
5118main ()
5119{
5120
5121 ;
5122 return 0;
5123}
5124_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005125if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005126 ac_cv_prog_cc_g=yes
5127else
cristy8b350f62009-11-15 23:12:43 +00005128 CFLAGS=""
5129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005130/* end confdefs.h. */
5131
5132int
5133main ()
5134{
5135
5136 ;
5137 return 0;
5138}
5139_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005140if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005141
cristy8b350f62009-11-15 23:12:43 +00005142else
5143 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005144 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005146/* end confdefs.h. */
5147
5148int
5149main ()
5150{
5151
5152 ;
5153 return 0;
5154}
5155_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005156if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005157 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005158fi
cristy3ed852e2009-09-05 21:47:34 +00005159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160fi
cristy3ed852e2009-09-05 21:47:34 +00005161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5162fi
cristy3ed852e2009-09-05 21:47:34 +00005163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164 ac_c_werror_flag=$ac_save_c_werror_flag
5165fi
cristy8b350f62009-11-15 23:12:43 +00005166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005167$as_echo "$ac_cv_prog_cc_g" >&6; }
5168if test "$ac_test_CFLAGS" = set; then
5169 CFLAGS=$ac_save_CFLAGS
5170elif test $ac_cv_prog_cc_g = yes; then
5171 if test "$GCC" = yes; then
5172 CFLAGS="-g -O2"
5173 else
5174 CFLAGS="-g"
5175 fi
5176else
5177 if test "$GCC" = yes; then
5178 CFLAGS="-O2"
5179 else
5180 CFLAGS=
5181 fi
5182fi
cristy8b350f62009-11-15 23:12:43 +00005183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005184$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005185if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005186 $as_echo_n "(cached) " >&6
5187else
5188 ac_cv_prog_cc_c89=no
5189ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005191/* end confdefs.h. */
5192#include <stdarg.h>
5193#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005194struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005195/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5196struct buf { int x; };
5197FILE * (*rcsopen) (struct buf *, struct stat *, int);
5198static char *e (p, i)
5199 char **p;
5200 int i;
5201{
5202 return p[i];
5203}
5204static char *f (char * (*g) (char **, int), char **p, ...)
5205{
5206 char *s;
5207 va_list v;
5208 va_start (v,p);
5209 s = g (p, va_arg (v,int));
5210 va_end (v);
5211 return s;
5212}
5213
5214/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5215 function prototypes and stuff, but not '\xHH' hex character constants.
5216 These don't provoke an error unfortunately, instead are silently treated
5217 as 'x'. The following induces an error, until -std is added to get
5218 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5219 array size at least. It's necessary to write '\x00'==0 to get something
5220 that's true only with -std. */
5221int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5222
5223/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5224 inside strings and character constants. */
5225#define FOO(x) 'x'
5226int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5227
5228int test (int i, double x);
5229struct s1 {int (*f) (int a);};
5230struct s2 {int (*f) (double a);};
5231int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5232int argc;
5233char **argv;
5234int
5235main ()
5236{
5237return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5238 ;
5239 return 0;
5240}
5241_ACEOF
5242for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5243 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5244do
5245 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005246 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005247 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005248fi
cristy3ed852e2009-09-05 21:47:34 +00005249rm -f core conftest.err conftest.$ac_objext
5250 test "x$ac_cv_prog_cc_c89" != "xno" && break
5251done
5252rm -f conftest.$ac_ext
5253CC=$ac_save_CC
5254
5255fi
5256# AC_CACHE_VAL
5257case "x$ac_cv_prog_cc_c89" in
5258 x)
cristy8b350f62009-11-15 23:12:43 +00005259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005260$as_echo "none needed" >&6; } ;;
5261 xno)
cristy8b350f62009-11-15 23:12:43 +00005262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005263$as_echo "unsupported" >&6; } ;;
5264 *)
5265 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005267$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5268esac
cristy8b350f62009-11-15 23:12:43 +00005269if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005270
cristy8b350f62009-11-15 23:12:43 +00005271fi
cristy3ed852e2009-09-05 21:47:34 +00005272
5273ac_ext=c
5274ac_cpp='$CPP $CPPFLAGS'
5275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5277ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005278
cristy73bd4a52010-10-05 11:24:23 +00005279depcc="$CC" am_compiler_list=
5280
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5282$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005283if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005284 $as_echo_n "(cached) " >&6
5285else
5286 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5287 # We make a subdir and do the tests there. Otherwise we can end up
5288 # making bogus files that we don't know about and never remove. For
5289 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005290 # making a dummy file named 'D' -- because '-MD' means "put the output
5291 # in D".
cristy7247bba2012-02-05 16:37:27 +00005292 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005293 mkdir conftest.dir
5294 # Copy depcomp to subdir because otherwise we won't find it if we're
5295 # using a relative directory.
5296 cp "$am_depcomp" conftest.dir
5297 cd conftest.dir
5298 # We will build objects and dependencies in a subdirectory because
5299 # it helps to detect inapplicable dependency modes. For instance
5300 # both Tru64's cc and ICC support -MD to output dependencies as a
5301 # side effect of compilation, but ICC will put the dependencies in
5302 # the current directory while Tru64 will put them in the object
5303 # directory.
5304 mkdir sub
5305
5306 am_cv_CC_dependencies_compiler_type=none
5307 if test "$am_compiler_list" = ""; then
5308 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5309 fi
5310 am__universal=false
5311 case " $depcc " in #(
5312 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5313 esac
5314
5315 for depmode in $am_compiler_list; do
5316 # Setup a source with many dependencies, because some compilers
5317 # like to wrap large dependency lists on column 80 (with \), and
5318 # we should not choose a depcomp mode which is confused by this.
5319 #
5320 # We need to recreate these files for each test, as the compiler may
5321 # overwrite some of them when testing with obscure command lines.
5322 # This happens at least with the AIX C compiler.
5323 : > sub/conftest.c
5324 for i in 1 2 3 4 5 6; do
5325 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005326 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5327 # Solaris 10 /bin/sh.
5328 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005329 done
5330 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5331
cristyc0890a62012-07-19 00:18:20 +00005332 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005333 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005334 # handle '-M -o', and we need to detect this. Also, some Intel
5335 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005336 am__obj=sub/conftest.${OBJEXT-o}
5337 am__minus_obj="-o $am__obj"
5338 case $depmode in
5339 gcc)
5340 # This depmode causes a compiler race in universal mode.
5341 test "$am__universal" = false || continue
5342 ;;
5343 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005344 # After this tag, mechanisms are not by side-effect, so they'll
5345 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005346 if test "x$enable_dependency_tracking" = xyes; then
5347 continue
5348 else
5349 break
5350 fi
5351 ;;
cristy7247bba2012-02-05 16:37:27 +00005352 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005353 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005354 # not run yet. These depmodes are late enough in the game, and
5355 # so weak that their functioning should not be impacted.
5356 am__obj=conftest.${OBJEXT-o}
5357 am__minus_obj=
5358 ;;
5359 none) break ;;
5360 esac
5361 if depmode=$depmode \
5362 source=sub/conftest.c object=$am__obj \
5363 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5364 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5365 >/dev/null 2>conftest.err &&
5366 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5367 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5368 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5369 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5370 # icc doesn't choke on unknown options, it will just issue warnings
5371 # or remarks (even with -Werror). So we grep stderr for any message
5372 # that says an option was ignored or not supported.
5373 # When given -MP, icc 7.0 and 7.1 complain thusly:
5374 # icc: Command line warning: ignoring option '-M'; no argument required
5375 # The diagnosis changed in icc 8.0:
5376 # icc: Command line remark: option '-MP' not supported
5377 if (grep 'ignoring option' conftest.err ||
5378 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5379 am_cv_CC_dependencies_compiler_type=$depmode
5380 break
5381 fi
5382 fi
5383 done
5384
5385 cd ..
5386 rm -rf conftest.dir
5387else
5388 am_cv_CC_dependencies_compiler_type=none
5389fi
5390
5391fi
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5393$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5394CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5395
5396 if
5397 test "x$enable_dependency_tracking" != xno \
5398 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5399 am__fastdepCC_TRUE=
5400 am__fastdepCC_FALSE='#'
5401else
5402 am__fastdepCC_TRUE='#'
5403 am__fastdepCC_FALSE=
5404fi
5405
5406
cristy3ed852e2009-09-05 21:47:34 +00005407
cristya0b81c32010-01-22 02:54:33 +00005408ac_ext=c
5409ac_cpp='$CPP $CPPFLAGS'
5410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5412ac_compiler_gnu=$ac_cv_c_compiler_gnu
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5414$as_echo_n "checking how to run the C preprocessor... " >&6; }
5415# On Suns, sometimes $CPP names a directory.
5416if test -n "$CPP" && test -d "$CPP"; then
5417 CPP=
5418fi
5419if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005420 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005421 $as_echo_n "(cached) " >&6
5422else
5423 # Double quotes because CPP needs to be expanded
5424 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5425 do
5426 ac_preproc_ok=false
5427for ac_c_preproc_warn_flag in '' yes
5428do
5429 # Use a header file that comes with gcc, so configuring glibc
5430 # with a fresh cross-compiler works.
5431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5432 # <limits.h> exists even on freestanding compilers.
5433 # On the NeXT, cc -E runs the code through the compiler's parser,
5434 # not just through cpp. "Syntax error" is here to catch this case.
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h. */
5437#ifdef __STDC__
5438# include <limits.h>
5439#else
5440# include <assert.h>
5441#endif
5442 Syntax error
5443_ACEOF
5444if ac_fn_c_try_cpp "$LINENO"; then :
5445
5446else
5447 # Broken: fails on valid input.
5448continue
5449fi
cristyda16f162011-02-19 23:52:17 +00005450rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005451
5452 # OK, works on sane cases. Now check whether nonexistent headers
5453 # can be detected and how.
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455/* end confdefs.h. */
5456#include <ac_nonexistent.h>
5457_ACEOF
5458if ac_fn_c_try_cpp "$LINENO"; then :
5459 # Broken: success on invalid input.
5460continue
5461else
5462 # Passes both tests.
5463ac_preproc_ok=:
5464break
5465fi
cristyda16f162011-02-19 23:52:17 +00005466rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005467
5468done
5469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005470rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005471if $ac_preproc_ok; then :
5472 break
5473fi
5474
5475 done
5476 ac_cv_prog_CPP=$CPP
5477
5478fi
5479 CPP=$ac_cv_prog_CPP
5480else
5481 ac_cv_prog_CPP=$CPP
5482fi
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5484$as_echo "$CPP" >&6; }
5485ac_preproc_ok=false
5486for ac_c_preproc_warn_flag in '' yes
5487do
5488 # Use a header file that comes with gcc, so configuring glibc
5489 # with a fresh cross-compiler works.
5490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5491 # <limits.h> exists even on freestanding compilers.
5492 # On the NeXT, cc -E runs the code through the compiler's parser,
5493 # not just through cpp. "Syntax error" is here to catch this case.
5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495/* end confdefs.h. */
5496#ifdef __STDC__
5497# include <limits.h>
5498#else
5499# include <assert.h>
5500#endif
5501 Syntax error
5502_ACEOF
5503if ac_fn_c_try_cpp "$LINENO"; then :
5504
5505else
5506 # Broken: fails on valid input.
5507continue
5508fi
cristyda16f162011-02-19 23:52:17 +00005509rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005510
5511 # OK, works on sane cases. Now check whether nonexistent headers
5512 # can be detected and how.
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514/* end confdefs.h. */
5515#include <ac_nonexistent.h>
5516_ACEOF
5517if ac_fn_c_try_cpp "$LINENO"; then :
5518 # Broken: success on invalid input.
5519continue
5520else
5521 # Passes both tests.
5522ac_preproc_ok=:
5523break
5524fi
cristyda16f162011-02-19 23:52:17 +00005525rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005526
5527done
5528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005529rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005530if $ac_preproc_ok; then :
5531
5532else
5533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005535as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5536See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005537fi
5538
5539ac_ext=c
5540ac_cpp='$CPP $CPPFLAGS'
5541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5543ac_compiler_gnu=$ac_cv_c_compiler_gnu
5544
5545
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5547$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005548if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005549 $as_echo_n "(cached) " >&6
5550else
5551 if test -z "$GREP"; then
5552 ac_path_GREP_found=false
5553 # Loop through the user's path and test for each of PROGNAME-LIST
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5556do
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_prog in grep ggrep; do
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005562 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005563# Check for GNU ac_path_GREP and select it if it is found.
5564 # Check for GNU $ac_path_GREP
5565case `"$ac_path_GREP" --version 2>&1` in
5566*GNU*)
5567 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5568*)
5569 ac_count=0
5570 $as_echo_n 0123456789 >"conftest.in"
5571 while :
5572 do
5573 cat "conftest.in" "conftest.in" >"conftest.tmp"
5574 mv "conftest.tmp" "conftest.in"
5575 cp "conftest.in" "conftest.nl"
5576 $as_echo 'GREP' >> "conftest.nl"
5577 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5578 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5579 as_fn_arith $ac_count + 1 && ac_count=$as_val
5580 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5581 # Best one so far, save it but keep looking for a better one
5582 ac_cv_path_GREP="$ac_path_GREP"
5583 ac_path_GREP_max=$ac_count
5584 fi
5585 # 10*(2^10) chars as input seems more than enough
5586 test $ac_count -gt 10 && break
5587 done
5588 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5589esac
5590
5591 $ac_path_GREP_found && break 3
5592 done
5593 done
5594 done
5595IFS=$as_save_IFS
5596 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005597 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005598 fi
5599else
5600 ac_cv_path_GREP=$GREP
5601fi
5602
5603fi
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5605$as_echo "$ac_cv_path_GREP" >&6; }
5606 GREP="$ac_cv_path_GREP"
5607
5608
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5610$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005611if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005612 $as_echo_n "(cached) " >&6
5613else
5614 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5615 then ac_cv_path_EGREP="$GREP -E"
5616 else
5617 if test -z "$EGREP"; then
5618 ac_path_EGREP_found=false
5619 # Loop through the user's path and test for each of PROGNAME-LIST
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5622do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_prog in egrep; do
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005628 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005629# Check for GNU ac_path_EGREP and select it if it is found.
5630 # Check for GNU $ac_path_EGREP
5631case `"$ac_path_EGREP" --version 2>&1` in
5632*GNU*)
5633 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5634*)
5635 ac_count=0
5636 $as_echo_n 0123456789 >"conftest.in"
5637 while :
5638 do
5639 cat "conftest.in" "conftest.in" >"conftest.tmp"
5640 mv "conftest.tmp" "conftest.in"
5641 cp "conftest.in" "conftest.nl"
5642 $as_echo 'EGREP' >> "conftest.nl"
5643 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5645 as_fn_arith $ac_count + 1 && ac_count=$as_val
5646 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5647 # Best one so far, save it but keep looking for a better one
5648 ac_cv_path_EGREP="$ac_path_EGREP"
5649 ac_path_EGREP_max=$ac_count
5650 fi
5651 # 10*(2^10) chars as input seems more than enough
5652 test $ac_count -gt 10 && break
5653 done
5654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5655esac
5656
5657 $ac_path_EGREP_found && break 3
5658 done
5659 done
5660 done
5661IFS=$as_save_IFS
5662 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005663 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005664 fi
5665else
5666 ac_cv_path_EGREP=$EGREP
5667fi
5668
5669 fi
5670fi
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5672$as_echo "$ac_cv_path_EGREP" >&6; }
5673 EGREP="$ac_cv_path_EGREP"
5674
5675
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5677$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005678if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005679 $as_echo_n "(cached) " >&6
5680else
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682/* end confdefs.h. */
5683#include <stdlib.h>
5684#include <stdarg.h>
5685#include <string.h>
5686#include <float.h>
5687
5688int
5689main ()
5690{
5691
5692 ;
5693 return 0;
5694}
5695_ACEOF
5696if ac_fn_c_try_compile "$LINENO"; then :
5697 ac_cv_header_stdc=yes
5698else
5699 ac_cv_header_stdc=no
5700fi
5701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702
5703if test $ac_cv_header_stdc = yes; then
5704 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706/* end confdefs.h. */
5707#include <string.h>
5708
5709_ACEOF
5710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5711 $EGREP "memchr" >/dev/null 2>&1; then :
5712
5713else
5714 ac_cv_header_stdc=no
5715fi
5716rm -f conftest*
5717
5718fi
5719
5720if test $ac_cv_header_stdc = yes; then
5721 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723/* end confdefs.h. */
5724#include <stdlib.h>
5725
5726_ACEOF
5727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5728 $EGREP "free" >/dev/null 2>&1; then :
5729
5730else
5731 ac_cv_header_stdc=no
5732fi
5733rm -f conftest*
5734
5735fi
5736
5737if test $ac_cv_header_stdc = yes; then
5738 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5739 if test "$cross_compiling" = yes; then :
5740 :
5741else
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743/* end confdefs.h. */
5744#include <ctype.h>
5745#include <stdlib.h>
5746#if ((' ' & 0x0FF) == 0x020)
5747# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5748# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5749#else
5750# define ISLOWER(c) \
5751 (('a' <= (c) && (c) <= 'i') \
5752 || ('j' <= (c) && (c) <= 'r') \
5753 || ('s' <= (c) && (c) <= 'z'))
5754# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5755#endif
5756
5757#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5758int
5759main ()
5760{
5761 int i;
5762 for (i = 0; i < 256; i++)
5763 if (XOR (islower (i), ISLOWER (i))
5764 || toupper (i) != TOUPPER (i))
5765 return 2;
5766 return 0;
5767}
5768_ACEOF
5769if ac_fn_c_try_run "$LINENO"; then :
5770
5771else
5772 ac_cv_header_stdc=no
5773fi
5774rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5775 conftest.$ac_objext conftest.beam conftest.$ac_ext
5776fi
5777
5778fi
5779fi
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5781$as_echo "$ac_cv_header_stdc" >&6; }
5782if test $ac_cv_header_stdc = yes; then
5783
5784$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5785
5786fi
5787
5788# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5789for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5790 inttypes.h stdint.h unistd.h
5791do :
5792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5793ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5794"
cristy98dddb52010-11-04 00:30:15 +00005795if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005796 cat >>confdefs.h <<_ACEOF
5797#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5798_ACEOF
5799
5800fi
5801
5802done
5803
5804
5805
5806 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 +00005807if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005808 MINIX=yes
5809else
5810 MINIX=
5811fi
5812
5813
5814 if test "$MINIX" = yes; then
5815
5816$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5817
5818
5819$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5820
5821
5822$as_echo "#define _MINIX 1" >>confdefs.h
5823
5824 fi
5825
5826
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5828$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005829if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005830 $as_echo_n "(cached) " >&6
5831else
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833/* end confdefs.h. */
5834
cristy14fefe52012-05-21 00:59:18 +00005835# define __EXTENSIONS__ 1
5836 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005837int
5838main ()
5839{
5840
5841 ;
5842 return 0;
5843}
5844_ACEOF
5845if ac_fn_c_try_compile "$LINENO"; then :
5846 ac_cv_safe_to_define___extensions__=yes
5847else
5848 ac_cv_safe_to_define___extensions__=no
5849fi
5850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851fi
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5853$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5854 test $ac_cv_safe_to_define___extensions__ = yes &&
5855 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5856
5857 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5858
5859 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5860
5861 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5862
5863 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5864
5865
5866
5867# Check for programs
5868ac_ext=c
5869ac_cpp='$CPP $CPPFLAGS'
5870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872ac_compiler_gnu=$ac_cv_c_compiler_gnu
5873if test -n "$ac_tool_prefix"; then
5874 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5875set dummy ${ac_tool_prefix}gcc; ac_word=$2
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005878if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005879 $as_echo_n "(cached) " >&6
5880else
5881 if test -n "$CC"; then
5882 ac_cv_prog_CC="$CC" # Let the user override the test.
5883else
5884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885for as_dir in $PATH
5886do
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005891 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 break 2
5894 fi
5895done
5896 done
5897IFS=$as_save_IFS
5898
5899fi
5900fi
5901CC=$ac_cv_prog_CC
5902if test -n "$CC"; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5904$as_echo "$CC" >&6; }
5905else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907$as_echo "no" >&6; }
5908fi
5909
5910
5911fi
5912if test -z "$ac_cv_prog_CC"; then
5913 ac_ct_CC=$CC
5914 # Extract the first word of "gcc", so it can be a program name with args.
5915set dummy gcc; ac_word=$2
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005918if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005919 $as_echo_n "(cached) " >&6
5920else
5921 if test -n "$ac_ct_CC"; then
5922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5923else
5924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925for as_dir in $PATH
5926do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005931 ac_cv_prog_ac_ct_CC="gcc"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935done
5936 done
5937IFS=$as_save_IFS
5938
5939fi
5940fi
5941ac_ct_CC=$ac_cv_prog_ac_ct_CC
5942if test -n "$ac_ct_CC"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5944$as_echo "$ac_ct_CC" >&6; }
5945else
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947$as_echo "no" >&6; }
5948fi
5949
5950 if test "x$ac_ct_CC" = x; then
5951 CC=""
5952 else
5953 case $cross_compiling:$ac_tool_warned in
5954yes:)
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5957ac_tool_warned=yes ;;
5958esac
5959 CC=$ac_ct_CC
5960 fi
5961else
5962 CC="$ac_cv_prog_CC"
5963fi
5964
5965if test -z "$CC"; then
5966 if test -n "$ac_tool_prefix"; then
5967 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5968set dummy ${ac_tool_prefix}cc; ac_word=$2
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005971if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005972 $as_echo_n "(cached) " >&6
5973else
5974 if test -n "$CC"; then
5975 ac_cv_prog_CC="$CC" # Let the user override the test.
5976else
5977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978for as_dir in $PATH
5979do
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005984 ac_cv_prog_CC="${ac_tool_prefix}cc"
5985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 break 2
5987 fi
5988done
5989 done
5990IFS=$as_save_IFS
5991
5992fi
5993fi
5994CC=$ac_cv_prog_CC
5995if test -n "$CC"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5997$as_echo "$CC" >&6; }
5998else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000$as_echo "no" >&6; }
6001fi
6002
6003
6004 fi
6005fi
6006if test -z "$CC"; then
6007 # Extract the first word of "cc", so it can be a program name with args.
6008set dummy cc; ac_word=$2
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006011if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006012 $as_echo_n "(cached) " >&6
6013else
6014 if test -n "$CC"; then
6015 ac_cv_prog_CC="$CC" # Let the user override the test.
6016else
6017 ac_prog_rejected=no
6018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019for as_dir in $PATH
6020do
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006025 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6026 ac_prog_rejected=yes
6027 continue
6028 fi
6029 ac_cv_prog_CC="cc"
6030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 break 2
6032 fi
6033done
6034 done
6035IFS=$as_save_IFS
6036
6037if test $ac_prog_rejected = yes; then
6038 # We found a bogon in the path, so make sure we never use it.
6039 set dummy $ac_cv_prog_CC
6040 shift
6041 if test $# != 0; then
6042 # We chose a different compiler from the bogus one.
6043 # However, it has the same basename, so the bogon will be chosen
6044 # first if we set CC to just the basename; use the full file name.
6045 shift
6046 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6047 fi
6048fi
6049fi
6050fi
6051CC=$ac_cv_prog_CC
6052if test -n "$CC"; then
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6054$as_echo "$CC" >&6; }
6055else
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057$as_echo "no" >&6; }
6058fi
6059
6060
6061fi
6062if test -z "$CC"; then
6063 if test -n "$ac_tool_prefix"; then
6064 for ac_prog in cl.exe
6065 do
6066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6067set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006070if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006071 $as_echo_n "(cached) " >&6
6072else
6073 if test -n "$CC"; then
6074 ac_cv_prog_CC="$CC" # Let the user override the test.
6075else
6076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077for as_dir in $PATH
6078do
6079 IFS=$as_save_IFS
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006083 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 break 2
6086 fi
6087done
6088 done
6089IFS=$as_save_IFS
6090
6091fi
6092fi
6093CC=$ac_cv_prog_CC
6094if test -n "$CC"; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6096$as_echo "$CC" >&6; }
6097else
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099$as_echo "no" >&6; }
6100fi
6101
6102
6103 test -n "$CC" && break
6104 done
6105fi
6106if test -z "$CC"; then
6107 ac_ct_CC=$CC
6108 for ac_prog in cl.exe
6109do
6110 # Extract the first word of "$ac_prog", so it can be a program name with args.
6111set dummy $ac_prog; ac_word=$2
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006114if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006115 $as_echo_n "(cached) " >&6
6116else
6117 if test -n "$ac_ct_CC"; then
6118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6119else
6120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121for as_dir in $PATH
6122do
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006127 ac_cv_prog_ac_ct_CC="$ac_prog"
6128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 break 2
6130 fi
6131done
6132 done
6133IFS=$as_save_IFS
6134
6135fi
6136fi
6137ac_ct_CC=$ac_cv_prog_ac_ct_CC
6138if test -n "$ac_ct_CC"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6140$as_echo "$ac_ct_CC" >&6; }
6141else
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143$as_echo "no" >&6; }
6144fi
6145
6146
6147 test -n "$ac_ct_CC" && break
6148done
6149
6150 if test "x$ac_ct_CC" = x; then
6151 CC=""
6152 else
6153 case $cross_compiling:$ac_tool_warned in
6154yes:)
6155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6157ac_tool_warned=yes ;;
6158esac
6159 CC=$ac_ct_CC
6160 fi
6161fi
6162
6163fi
6164
6165
6166test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006168as_fn_error $? "no acceptable C compiler found in \$PATH
6169See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006170
6171# Provide some information about the compiler.
6172$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6173set X $ac_compile
6174ac_compiler=$2
6175for ac_option in --version -v -V -qversion; do
6176 { { ac_try="$ac_compiler $ac_option >&5"
6177case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6180esac
6181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6182$as_echo "$ac_try_echo"; } >&5
6183 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6184 ac_status=$?
6185 if test -s conftest.err; then
6186 sed '10a\
6187... rest of stderr output deleted ...
6188 10q' conftest.err >conftest.er1
6189 cat conftest.er1 >&5
6190 fi
6191 rm -f conftest.er1 conftest.err
6192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6193 test $ac_status = 0; }
6194done
6195
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6197$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006198if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006199 $as_echo_n "(cached) " >&6
6200else
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202/* end confdefs.h. */
6203
6204int
6205main ()
6206{
6207#ifndef __GNUC__
6208 choke me
6209#endif
6210
6211 ;
6212 return 0;
6213}
6214_ACEOF
6215if ac_fn_c_try_compile "$LINENO"; then :
6216 ac_compiler_gnu=yes
6217else
6218 ac_compiler_gnu=no
6219fi
6220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221ac_cv_c_compiler_gnu=$ac_compiler_gnu
6222
6223fi
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6225$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6226if test $ac_compiler_gnu = yes; then
6227 GCC=yes
6228else
6229 GCC=
6230fi
6231ac_test_CFLAGS=${CFLAGS+set}
6232ac_save_CFLAGS=$CFLAGS
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6234$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006235if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006236 $as_echo_n "(cached) " >&6
6237else
6238 ac_save_c_werror_flag=$ac_c_werror_flag
6239 ac_c_werror_flag=yes
6240 ac_cv_prog_cc_g=no
6241 CFLAGS="-g"
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243/* end confdefs.h. */
6244
6245int
6246main ()
6247{
6248
6249 ;
6250 return 0;
6251}
6252_ACEOF
6253if ac_fn_c_try_compile "$LINENO"; then :
6254 ac_cv_prog_cc_g=yes
6255else
6256 CFLAGS=""
6257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6258/* end confdefs.h. */
6259
6260int
6261main ()
6262{
6263
6264 ;
6265 return 0;
6266}
6267_ACEOF
6268if ac_fn_c_try_compile "$LINENO"; then :
6269
6270else
6271 ac_c_werror_flag=$ac_save_c_werror_flag
6272 CFLAGS="-g"
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274/* end confdefs.h. */
6275
6276int
6277main ()
6278{
6279
6280 ;
6281 return 0;
6282}
6283_ACEOF
6284if ac_fn_c_try_compile "$LINENO"; then :
6285 ac_cv_prog_cc_g=yes
6286fi
6287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288fi
6289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290fi
6291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292 ac_c_werror_flag=$ac_save_c_werror_flag
6293fi
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6295$as_echo "$ac_cv_prog_cc_g" >&6; }
6296if test "$ac_test_CFLAGS" = set; then
6297 CFLAGS=$ac_save_CFLAGS
6298elif test $ac_cv_prog_cc_g = yes; then
6299 if test "$GCC" = yes; then
6300 CFLAGS="-g -O2"
6301 else
6302 CFLAGS="-g"
6303 fi
6304else
6305 if test "$GCC" = yes; then
6306 CFLAGS="-O2"
6307 else
6308 CFLAGS=
6309 fi
6310fi
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6312$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006313if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006314 $as_echo_n "(cached) " >&6
6315else
6316 ac_cv_prog_cc_c89=no
6317ac_save_CC=$CC
6318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319/* end confdefs.h. */
6320#include <stdarg.h>
6321#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006322struct stat;
cristya0b81c32010-01-22 02:54:33 +00006323/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6324struct buf { int x; };
6325FILE * (*rcsopen) (struct buf *, struct stat *, int);
6326static char *e (p, i)
6327 char **p;
6328 int i;
6329{
6330 return p[i];
6331}
6332static char *f (char * (*g) (char **, int), char **p, ...)
6333{
6334 char *s;
6335 va_list v;
6336 va_start (v,p);
6337 s = g (p, va_arg (v,int));
6338 va_end (v);
6339 return s;
6340}
6341
6342/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6343 function prototypes and stuff, but not '\xHH' hex character constants.
6344 These don't provoke an error unfortunately, instead are silently treated
6345 as 'x'. The following induces an error, until -std is added to get
6346 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6347 array size at least. It's necessary to write '\x00'==0 to get something
6348 that's true only with -std. */
6349int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6350
6351/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6352 inside strings and character constants. */
6353#define FOO(x) 'x'
6354int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6355
6356int test (int i, double x);
6357struct s1 {int (*f) (int a);};
6358struct s2 {int (*f) (double a);};
6359int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6360int argc;
6361char **argv;
6362int
6363main ()
6364{
6365return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6366 ;
6367 return 0;
6368}
6369_ACEOF
6370for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6371 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6372do
6373 CC="$ac_save_CC $ac_arg"
6374 if ac_fn_c_try_compile "$LINENO"; then :
6375 ac_cv_prog_cc_c89=$ac_arg
6376fi
6377rm -f core conftest.err conftest.$ac_objext
6378 test "x$ac_cv_prog_cc_c89" != "xno" && break
6379done
6380rm -f conftest.$ac_ext
6381CC=$ac_save_CC
6382
6383fi
6384# AC_CACHE_VAL
6385case "x$ac_cv_prog_cc_c89" in
6386 x)
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6388$as_echo "none needed" >&6; } ;;
6389 xno)
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6391$as_echo "unsupported" >&6; } ;;
6392 *)
6393 CC="$CC $ac_cv_prog_cc_c89"
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6395$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6396esac
6397if test "x$ac_cv_prog_cc_c89" != xno; then :
6398
6399fi
6400
6401ac_ext=c
6402ac_cpp='$CPP $CPPFLAGS'
6403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6405ac_compiler_gnu=$ac_cv_c_compiler_gnu
6406
cristy73bd4a52010-10-05 11:24:23 +00006407depcc="$CC" am_compiler_list=
6408
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6410$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006411if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006412 $as_echo_n "(cached) " >&6
6413else
6414 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6415 # We make a subdir and do the tests there. Otherwise we can end up
6416 # making bogus files that we don't know about and never remove. For
6417 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006418 # making a dummy file named 'D' -- because '-MD' means "put the output
6419 # in D".
cristy7247bba2012-02-05 16:37:27 +00006420 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006421 mkdir conftest.dir
6422 # Copy depcomp to subdir because otherwise we won't find it if we're
6423 # using a relative directory.
6424 cp "$am_depcomp" conftest.dir
6425 cd conftest.dir
6426 # We will build objects and dependencies in a subdirectory because
6427 # it helps to detect inapplicable dependency modes. For instance
6428 # both Tru64's cc and ICC support -MD to output dependencies as a
6429 # side effect of compilation, but ICC will put the dependencies in
6430 # the current directory while Tru64 will put them in the object
6431 # directory.
6432 mkdir sub
6433
6434 am_cv_CC_dependencies_compiler_type=none
6435 if test "$am_compiler_list" = ""; then
6436 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6437 fi
6438 am__universal=false
6439 case " $depcc " in #(
6440 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6441 esac
6442
6443 for depmode in $am_compiler_list; do
6444 # Setup a source with many dependencies, because some compilers
6445 # like to wrap large dependency lists on column 80 (with \), and
6446 # we should not choose a depcomp mode which is confused by this.
6447 #
6448 # We need to recreate these files for each test, as the compiler may
6449 # overwrite some of them when testing with obscure command lines.
6450 # This happens at least with the AIX C compiler.
6451 : > sub/conftest.c
6452 for i in 1 2 3 4 5 6; do
6453 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006454 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6455 # Solaris 10 /bin/sh.
6456 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006457 done
6458 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6459
cristyc0890a62012-07-19 00:18:20 +00006460 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006461 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006462 # handle '-M -o', and we need to detect this. Also, some Intel
6463 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006464 am__obj=sub/conftest.${OBJEXT-o}
6465 am__minus_obj="-o $am__obj"
6466 case $depmode in
6467 gcc)
6468 # This depmode causes a compiler race in universal mode.
6469 test "$am__universal" = false || continue
6470 ;;
6471 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006472 # After this tag, mechanisms are not by side-effect, so they'll
6473 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006474 if test "x$enable_dependency_tracking" = xyes; then
6475 continue
6476 else
6477 break
6478 fi
6479 ;;
cristy7247bba2012-02-05 16:37:27 +00006480 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006481 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006482 # not run yet. These depmodes are late enough in the game, and
6483 # so weak that their functioning should not be impacted.
6484 am__obj=conftest.${OBJEXT-o}
6485 am__minus_obj=
6486 ;;
6487 none) break ;;
6488 esac
6489 if depmode=$depmode \
6490 source=sub/conftest.c object=$am__obj \
6491 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6492 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6493 >/dev/null 2>conftest.err &&
6494 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6495 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6496 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6497 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6498 # icc doesn't choke on unknown options, it will just issue warnings
6499 # or remarks (even with -Werror). So we grep stderr for any message
6500 # that says an option was ignored or not supported.
6501 # When given -MP, icc 7.0 and 7.1 complain thusly:
6502 # icc: Command line warning: ignoring option '-M'; no argument required
6503 # The diagnosis changed in icc 8.0:
6504 # icc: Command line remark: option '-MP' not supported
6505 if (grep 'ignoring option' conftest.err ||
6506 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6507 am_cv_CC_dependencies_compiler_type=$depmode
6508 break
6509 fi
6510 fi
6511 done
6512
6513 cd ..
6514 rm -rf conftest.dir
6515else
6516 am_cv_CC_dependencies_compiler_type=none
6517fi
6518
6519fi
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6521$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6522CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6523
6524 if
6525 test "x$enable_dependency_tracking" != xno \
6526 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6527 am__fastdepCC_TRUE=
6528 am__fastdepCC_FALSE='#'
6529else
6530 am__fastdepCC_TRUE='#'
6531 am__fastdepCC_FALSE=
6532fi
6533
6534
cristy95646052009-11-28 23:05:30 +00006535ac_ext=cpp
6536ac_cpp='$CXXCPP $CPPFLAGS'
6537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6540if test -z "$CXX"; then
6541 if test -n "$CCC"; then
6542 CXX=$CCC
6543 else
6544 if test -n "$ac_tool_prefix"; then
6545 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6546 do
6547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6548set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006551if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006552 $as_echo_n "(cached) " >&6
6553else
6554 if test -n "$CXX"; then
6555 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6556else
6557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558for as_dir in $PATH
6559do
6560 IFS=$as_save_IFS
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006564 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 break 2
6567 fi
6568done
6569 done
6570IFS=$as_save_IFS
6571
6572fi
6573fi
6574CXX=$ac_cv_prog_CXX
6575if test -n "$CXX"; then
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6577$as_echo "$CXX" >&6; }
6578else
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580$as_echo "no" >&6; }
6581fi
6582
6583
6584 test -n "$CXX" && break
6585 done
6586fi
6587if test -z "$CXX"; then
6588 ac_ct_CXX=$CXX
6589 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6590do
6591 # Extract the first word of "$ac_prog", so it can be a program name with args.
6592set dummy $ac_prog; ac_word=$2
6593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006595if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006596 $as_echo_n "(cached) " >&6
6597else
6598 if test -n "$ac_ct_CXX"; then
6599 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6600else
6601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602for as_dir in $PATH
6603do
6604 IFS=$as_save_IFS
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006608 ac_cv_prog_ac_ct_CXX="$ac_prog"
6609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 break 2
6611 fi
6612done
6613 done
6614IFS=$as_save_IFS
6615
6616fi
6617fi
6618ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6619if test -n "$ac_ct_CXX"; then
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6621$as_echo "$ac_ct_CXX" >&6; }
6622else
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624$as_echo "no" >&6; }
6625fi
6626
6627
6628 test -n "$ac_ct_CXX" && break
6629done
6630
6631 if test "x$ac_ct_CXX" = x; then
6632 CXX="g++"
6633 else
6634 case $cross_compiling:$ac_tool_warned in
6635yes:)
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6638ac_tool_warned=yes ;;
6639esac
6640 CXX=$ac_ct_CXX
6641 fi
6642fi
6643
6644 fi
6645fi
6646# Provide some information about the compiler.
6647$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6648set X $ac_compile
6649ac_compiler=$2
6650for ac_option in --version -v -V -qversion; do
6651 { { ac_try="$ac_compiler $ac_option >&5"
6652case "(($ac_try" in
6653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6654 *) ac_try_echo=$ac_try;;
6655esac
6656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6657$as_echo "$ac_try_echo"; } >&5
6658 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6659 ac_status=$?
6660 if test -s conftest.err; then
6661 sed '10a\
6662... rest of stderr output deleted ...
6663 10q' conftest.err >conftest.er1
6664 cat conftest.er1 >&5
6665 fi
6666 rm -f conftest.er1 conftest.err
6667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6668 test $ac_status = 0; }
6669done
6670
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6672$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006673if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006674 $as_echo_n "(cached) " >&6
6675else
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677/* end confdefs.h. */
6678
6679int
6680main ()
6681{
6682#ifndef __GNUC__
6683 choke me
6684#endif
6685
6686 ;
6687 return 0;
6688}
6689_ACEOF
6690if ac_fn_cxx_try_compile "$LINENO"; then :
6691 ac_compiler_gnu=yes
6692else
6693 ac_compiler_gnu=no
6694fi
6695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6697
6698fi
6699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6700$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6701if test $ac_compiler_gnu = yes; then
6702 GXX=yes
6703else
6704 GXX=
6705fi
6706ac_test_CXXFLAGS=${CXXFLAGS+set}
6707ac_save_CXXFLAGS=$CXXFLAGS
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6709$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006710if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006711 $as_echo_n "(cached) " >&6
6712else
6713 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6714 ac_cxx_werror_flag=yes
6715 ac_cv_prog_cxx_g=no
6716 CXXFLAGS="-g"
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718/* end confdefs.h. */
6719
6720int
6721main ()
6722{
6723
6724 ;
6725 return 0;
6726}
6727_ACEOF
6728if ac_fn_cxx_try_compile "$LINENO"; then :
6729 ac_cv_prog_cxx_g=yes
6730else
6731 CXXFLAGS=""
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733/* end confdefs.h. */
6734
6735int
6736main ()
6737{
6738
6739 ;
6740 return 0;
6741}
6742_ACEOF
6743if ac_fn_cxx_try_compile "$LINENO"; then :
6744
6745else
6746 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6747 CXXFLAGS="-g"
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749/* end confdefs.h. */
6750
6751int
6752main ()
6753{
6754
6755 ;
6756 return 0;
6757}
6758_ACEOF
6759if ac_fn_cxx_try_compile "$LINENO"; then :
6760 ac_cv_prog_cxx_g=yes
6761fi
6762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763fi
6764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765fi
6766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6768fi
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6770$as_echo "$ac_cv_prog_cxx_g" >&6; }
6771if test "$ac_test_CXXFLAGS" = set; then
6772 CXXFLAGS=$ac_save_CXXFLAGS
6773elif test $ac_cv_prog_cxx_g = yes; then
6774 if test "$GXX" = yes; then
6775 CXXFLAGS="-g -O2"
6776 else
6777 CXXFLAGS="-g"
6778 fi
6779else
6780 if test "$GXX" = yes; then
6781 CXXFLAGS="-O2"
6782 else
6783 CXXFLAGS=
6784 fi
6785fi
6786ac_ext=c
6787ac_cpp='$CPP $CPPFLAGS'
6788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6790ac_compiler_gnu=$ac_cv_c_compiler_gnu
6791
cristy73bd4a52010-10-05 11:24:23 +00006792depcc="$CXX" am_compiler_list=
6793
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6795$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006796if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006797 $as_echo_n "(cached) " >&6
6798else
6799 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6800 # We make a subdir and do the tests there. Otherwise we can end up
6801 # making bogus files that we don't know about and never remove. For
6802 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006803 # making a dummy file named 'D' -- because '-MD' means "put the output
6804 # in D".
cristy7247bba2012-02-05 16:37:27 +00006805 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006806 mkdir conftest.dir
6807 # Copy depcomp to subdir because otherwise we won't find it if we're
6808 # using a relative directory.
6809 cp "$am_depcomp" conftest.dir
6810 cd conftest.dir
6811 # We will build objects and dependencies in a subdirectory because
6812 # it helps to detect inapplicable dependency modes. For instance
6813 # both Tru64's cc and ICC support -MD to output dependencies as a
6814 # side effect of compilation, but ICC will put the dependencies in
6815 # the current directory while Tru64 will put them in the object
6816 # directory.
6817 mkdir sub
6818
6819 am_cv_CXX_dependencies_compiler_type=none
6820 if test "$am_compiler_list" = ""; then
6821 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6822 fi
6823 am__universal=false
6824 case " $depcc " in #(
6825 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6826 esac
6827
6828 for depmode in $am_compiler_list; do
6829 # Setup a source with many dependencies, because some compilers
6830 # like to wrap large dependency lists on column 80 (with \), and
6831 # we should not choose a depcomp mode which is confused by this.
6832 #
6833 # We need to recreate these files for each test, as the compiler may
6834 # overwrite some of them when testing with obscure command lines.
6835 # This happens at least with the AIX C compiler.
6836 : > sub/conftest.c
6837 for i in 1 2 3 4 5 6; do
6838 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006839 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6840 # Solaris 10 /bin/sh.
6841 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006842 done
6843 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6844
cristyc0890a62012-07-19 00:18:20 +00006845 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006846 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006847 # handle '-M -o', and we need to detect this. Also, some Intel
6848 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006849 am__obj=sub/conftest.${OBJEXT-o}
6850 am__minus_obj="-o $am__obj"
6851 case $depmode in
6852 gcc)
6853 # This depmode causes a compiler race in universal mode.
6854 test "$am__universal" = false || continue
6855 ;;
6856 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006857 # After this tag, mechanisms are not by side-effect, so they'll
6858 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006859 if test "x$enable_dependency_tracking" = xyes; then
6860 continue
6861 else
6862 break
6863 fi
6864 ;;
cristy7247bba2012-02-05 16:37:27 +00006865 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006866 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006867 # not run yet. These depmodes are late enough in the game, and
6868 # so weak that their functioning should not be impacted.
6869 am__obj=conftest.${OBJEXT-o}
6870 am__minus_obj=
6871 ;;
6872 none) break ;;
6873 esac
6874 if depmode=$depmode \
6875 source=sub/conftest.c object=$am__obj \
6876 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6877 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6878 >/dev/null 2>conftest.err &&
6879 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6880 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6881 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6882 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6883 # icc doesn't choke on unknown options, it will just issue warnings
6884 # or remarks (even with -Werror). So we grep stderr for any message
6885 # that says an option was ignored or not supported.
6886 # When given -MP, icc 7.0 and 7.1 complain thusly:
6887 # icc: Command line warning: ignoring option '-M'; no argument required
6888 # The diagnosis changed in icc 8.0:
6889 # icc: Command line remark: option '-MP' not supported
6890 if (grep 'ignoring option' conftest.err ||
6891 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6892 am_cv_CXX_dependencies_compiler_type=$depmode
6893 break
6894 fi
6895 fi
6896 done
6897
6898 cd ..
6899 rm -rf conftest.dir
6900else
6901 am_cv_CXX_dependencies_compiler_type=none
6902fi
6903
6904fi
6905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6906$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6907CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6908
6909 if
6910 test "x$enable_dependency_tracking" != xno \
6911 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6912 am__fastdepCXX_TRUE=
6913 am__fastdepCXX_FALSE='#'
6914else
6915 am__fastdepCXX_TRUE='#'
6916 am__fastdepCXX_FALSE=
6917fi
6918
6919
cristy8b350f62009-11-15 23:12:43 +00006920 case $ac_cv_prog_cc_stdc in #(
6921 no) :
6922 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6923 *) :
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006925$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006926if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006927 $as_echo_n "(cached) " >&6
6928else
6929 ac_cv_prog_cc_c99=no
6930ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006932/* end confdefs.h. */
6933#include <stdarg.h>
6934#include <stdbool.h>
6935#include <stdlib.h>
6936#include <wchar.h>
6937#include <stdio.h>
6938
6939// Check varargs macros. These examples are taken from C99 6.10.3.5.
6940#define debug(...) fprintf (stderr, __VA_ARGS__)
6941#define showlist(...) puts (#__VA_ARGS__)
6942#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6943static void
6944test_varargs_macros (void)
6945{
6946 int x = 1234;
6947 int y = 5678;
6948 debug ("Flag");
6949 debug ("X = %d\n", x);
6950 showlist (The first, second, and third items.);
6951 report (x>y, "x is %d but y is %d", x, y);
6952}
6953
6954// Check long long types.
6955#define BIG64 18446744073709551615ull
6956#define BIG32 4294967295ul
6957#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6958#if !BIG_OK
6959 your preprocessor is broken;
6960#endif
6961#if BIG_OK
6962#else
6963 your preprocessor is broken;
6964#endif
6965static long long int bignum = -9223372036854775807LL;
6966static unsigned long long int ubignum = BIG64;
6967
6968struct incomplete_array
6969{
6970 int datasize;
6971 double data[];
6972};
6973
6974struct named_init {
6975 int number;
6976 const wchar_t *name;
6977 double average;
6978};
6979
6980typedef const char *ccp;
6981
6982static inline int
6983test_restrict (ccp restrict text)
6984{
6985 // See if C++-style comments work.
6986 // Iterate through items via the restricted pointer.
6987 // Also check for declarations in for loops.
6988 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6989 continue;
6990 return 0;
6991}
6992
6993// Check varargs and va_copy.
6994static void
6995test_varargs (const char *format, ...)
6996{
6997 va_list args;
6998 va_start (args, format);
6999 va_list args_copy;
7000 va_copy (args_copy, args);
7001
7002 const char *str;
7003 int number;
7004 float fnumber;
7005
7006 while (*format)
7007 {
7008 switch (*format++)
7009 {
7010 case 's': // string
7011 str = va_arg (args_copy, const char *);
7012 break;
7013 case 'd': // int
7014 number = va_arg (args_copy, int);
7015 break;
7016 case 'f': // float
7017 fnumber = va_arg (args_copy, double);
7018 break;
7019 default:
7020 break;
7021 }
7022 }
7023 va_end (args_copy);
7024 va_end (args);
7025}
7026
7027int
7028main ()
7029{
7030
7031 // Check bool.
7032 _Bool success = false;
7033
7034 // Check restrict.
7035 if (test_restrict ("String literal") == 0)
7036 success = true;
7037 char *restrict newvar = "Another string";
7038
7039 // Check varargs.
7040 test_varargs ("s, d' f .", "string", 65, 34.234);
7041 test_varargs_macros ();
7042
7043 // Check flexible array members.
7044 struct incomplete_array *ia =
7045 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7046 ia->datasize = 10;
7047 for (int i = 0; i < ia->datasize; ++i)
7048 ia->data[i] = i * 1.234;
7049
7050 // Check named initializers.
7051 struct named_init ni = {
7052 .number = 34,
7053 .name = L"Test wide string",
7054 .average = 543.34343,
7055 };
7056
7057 ni.number = 58;
7058
7059 int dynamic_array[ni.number];
7060 dynamic_array[ni.number - 1] = 543;
7061
7062 // work around unused variable warnings
7063 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7064 || dynamic_array[ni.number - 1] != 543);
7065
7066 ;
7067 return 0;
7068}
7069_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007070for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007071do
7072 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007073 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007074 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007075fi
cristy3ed852e2009-09-05 21:47:34 +00007076rm -f core conftest.err conftest.$ac_objext
7077 test "x$ac_cv_prog_cc_c99" != "xno" && break
7078done
7079rm -f conftest.$ac_ext
7080CC=$ac_save_CC
7081
7082fi
7083# AC_CACHE_VAL
7084case "x$ac_cv_prog_cc_c99" in
7085 x)
cristy8b350f62009-11-15 23:12:43 +00007086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007087$as_echo "none needed" >&6; } ;;
7088 xno)
cristy8b350f62009-11-15 23:12:43 +00007089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007090$as_echo "unsupported" >&6; } ;;
7091 *)
7092 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007094$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7095esac
cristy8b350f62009-11-15 23:12:43 +00007096if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007097 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7098else
cristy8b350f62009-11-15 23:12:43 +00007099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007100$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007101if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007102 $as_echo_n "(cached) " >&6
7103else
7104 ac_cv_prog_cc_c89=no
7105ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007107/* end confdefs.h. */
7108#include <stdarg.h>
7109#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007110struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007111/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7112struct buf { int x; };
7113FILE * (*rcsopen) (struct buf *, struct stat *, int);
7114static char *e (p, i)
7115 char **p;
7116 int i;
7117{
7118 return p[i];
7119}
7120static char *f (char * (*g) (char **, int), char **p, ...)
7121{
7122 char *s;
7123 va_list v;
7124 va_start (v,p);
7125 s = g (p, va_arg (v,int));
7126 va_end (v);
7127 return s;
7128}
7129
7130/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7131 function prototypes and stuff, but not '\xHH' hex character constants.
7132 These don't provoke an error unfortunately, instead are silently treated
7133 as 'x'. The following induces an error, until -std is added to get
7134 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7135 array size at least. It's necessary to write '\x00'==0 to get something
7136 that's true only with -std. */
7137int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7138
7139/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7140 inside strings and character constants. */
7141#define FOO(x) 'x'
7142int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7143
7144int test (int i, double x);
7145struct s1 {int (*f) (int a);};
7146struct s2 {int (*f) (double a);};
7147int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7148int argc;
7149char **argv;
7150int
7151main ()
7152{
7153return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7154 ;
7155 return 0;
7156}
7157_ACEOF
7158for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7159 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7160do
7161 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007162 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007163 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007164fi
cristy3ed852e2009-09-05 21:47:34 +00007165rm -f core conftest.err conftest.$ac_objext
7166 test "x$ac_cv_prog_cc_c89" != "xno" && break
7167done
7168rm -f conftest.$ac_ext
7169CC=$ac_save_CC
7170
7171fi
7172# AC_CACHE_VAL
7173case "x$ac_cv_prog_cc_c89" in
7174 x)
cristy8b350f62009-11-15 23:12:43 +00007175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007176$as_echo "none needed" >&6; } ;;
7177 xno)
cristy8b350f62009-11-15 23:12:43 +00007178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007179$as_echo "unsupported" >&6; } ;;
7180 *)
7181 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007183$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7184esac
cristy8b350f62009-11-15 23:12:43 +00007185if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007186 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7187else
7188 ac_cv_prog_cc_stdc=no
7189fi
7190
cristy3ed852e2009-09-05 21:47:34 +00007191fi
cristy3ed852e2009-09-05 21:47:34 +00007192 ;;
7193esac
cristy8b350f62009-11-15 23:12:43 +00007194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007195$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007196 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007197 $as_echo_n "(cached) " >&6
7198fi
7199
cristy8b350f62009-11-15 23:12:43 +00007200 case $ac_cv_prog_cc_stdc in #(
7201 no) :
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7203$as_echo "unsupported" >&6; } ;; #(
7204 '') :
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7206$as_echo "none needed" >&6; } ;; #(
7207 *) :
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007209$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7210esac
7211
cristy3ed852e2009-09-05 21:47:34 +00007212ac_ext=c
7213ac_cpp='$CPP $CPPFLAGS'
7214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7216ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007218$as_echo_n "checking how to run the C preprocessor... " >&6; }
7219# On Suns, sometimes $CPP names a directory.
7220if test -n "$CPP" && test -d "$CPP"; then
7221 CPP=
7222fi
7223if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007224 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007225 $as_echo_n "(cached) " >&6
7226else
7227 # Double quotes because CPP needs to be expanded
7228 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7229 do
7230 ac_preproc_ok=false
7231for ac_c_preproc_warn_flag in '' yes
7232do
7233 # Use a header file that comes with gcc, so configuring glibc
7234 # with a fresh cross-compiler works.
7235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7236 # <limits.h> exists even on freestanding compilers.
7237 # On the NeXT, cc -E runs the code through the compiler's parser,
7238 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007240/* end confdefs.h. */
7241#ifdef __STDC__
7242# include <limits.h>
7243#else
7244# include <assert.h>
7245#endif
7246 Syntax error
7247_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007248if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007249
cristy8b350f62009-11-15 23:12:43 +00007250else
cristy3ed852e2009-09-05 21:47:34 +00007251 # Broken: fails on valid input.
7252continue
7253fi
cristyda16f162011-02-19 23:52:17 +00007254rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007255
7256 # OK, works on sane cases. Now check whether nonexistent headers
7257 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007259/* end confdefs.h. */
7260#include <ac_nonexistent.h>
7261_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007262if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007263 # Broken: success on invalid input.
7264continue
7265else
cristy3ed852e2009-09-05 21:47:34 +00007266 # Passes both tests.
7267ac_preproc_ok=:
7268break
7269fi
cristyda16f162011-02-19 23:52:17 +00007270rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007271
7272done
7273# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007274rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007275if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007276 break
7277fi
7278
7279 done
7280 ac_cv_prog_CPP=$CPP
7281
7282fi
7283 CPP=$ac_cv_prog_CPP
7284else
7285 ac_cv_prog_CPP=$CPP
7286fi
cristy8b350f62009-11-15 23:12:43 +00007287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007288$as_echo "$CPP" >&6; }
7289ac_preproc_ok=false
7290for ac_c_preproc_warn_flag in '' yes
7291do
7292 # Use a header file that comes with gcc, so configuring glibc
7293 # with a fresh cross-compiler works.
7294 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7295 # <limits.h> exists even on freestanding compilers.
7296 # On the NeXT, cc -E runs the code through the compiler's parser,
7297 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007299/* end confdefs.h. */
7300#ifdef __STDC__
7301# include <limits.h>
7302#else
7303# include <assert.h>
7304#endif
7305 Syntax error
7306_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007307if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007308
cristy8b350f62009-11-15 23:12:43 +00007309else
cristy3ed852e2009-09-05 21:47:34 +00007310 # Broken: fails on valid input.
7311continue
7312fi
cristyda16f162011-02-19 23:52:17 +00007313rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007314
7315 # OK, works on sane cases. Now check whether nonexistent headers
7316 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007318/* end confdefs.h. */
7319#include <ac_nonexistent.h>
7320_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007321if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007322 # Broken: success on invalid input.
7323continue
7324else
cristy3ed852e2009-09-05 21:47:34 +00007325 # Passes both tests.
7326ac_preproc_ok=:
7327break
7328fi
cristyda16f162011-02-19 23:52:17 +00007329rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007330
7331done
7332# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007333rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007334if $ac_preproc_ok; then :
7335
cristy3ed852e2009-09-05 21:47:34 +00007336else
cristy8b350f62009-11-15 23:12:43 +00007337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007339as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7340See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007341fi
7342
7343ac_ext=c
7344ac_cpp='$CPP $CPPFLAGS'
7345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7347ac_compiler_gnu=$ac_cv_c_compiler_gnu
7348
cristy73bd4a52010-10-05 11:24:23 +00007349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7350$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007351if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007352 $as_echo_n "(cached) " >&6
7353else
7354 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7355 for ac_i in 1 2 3 4 5 6 7; do
7356 ac_script="$ac_script$as_nl$ac_script"
7357 done
7358 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7359 { ac_script=; unset ac_script;}
7360 if test -z "$SED"; then
7361 ac_path_SED_found=false
7362 # Loop through the user's path and test for each of PROGNAME-LIST
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_prog in sed gsed; do
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007371 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007372# Check for GNU ac_path_SED and select it if it is found.
7373 # Check for GNU $ac_path_SED
7374case `"$ac_path_SED" --version 2>&1` in
7375*GNU*)
7376 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7377*)
7378 ac_count=0
7379 $as_echo_n 0123456789 >"conftest.in"
7380 while :
7381 do
7382 cat "conftest.in" "conftest.in" >"conftest.tmp"
7383 mv "conftest.tmp" "conftest.in"
7384 cp "conftest.in" "conftest.nl"
7385 $as_echo '' >> "conftest.nl"
7386 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7388 as_fn_arith $ac_count + 1 && ac_count=$as_val
7389 if test $ac_count -gt ${ac_path_SED_max-0}; then
7390 # Best one so far, save it but keep looking for a better one
7391 ac_cv_path_SED="$ac_path_SED"
7392 ac_path_SED_max=$ac_count
7393 fi
7394 # 10*(2^10) chars as input seems more than enough
7395 test $ac_count -gt 10 && break
7396 done
7397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7398esac
7399
7400 $ac_path_SED_found && break 3
7401 done
7402 done
7403 done
7404IFS=$as_save_IFS
7405 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007406 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007407 fi
7408else
7409 ac_cv_path_SED=$SED
7410fi
7411
7412fi
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7414$as_echo "$ac_cv_path_SED" >&6; }
7415 SED="$ac_cv_path_SED"
7416 rm -f conftest.sed
7417
7418test -z "$SED" && SED=sed
7419Xsed="$SED -e 1s/^X//"
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7432$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007433if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007434 $as_echo_n "(cached) " >&6
7435else
7436 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7437 then ac_cv_path_FGREP="$GREP -F"
7438 else
7439 if test -z "$FGREP"; then
7440 ac_path_FGREP_found=false
7441 # Loop through the user's path and test for each of PROGNAME-LIST
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7444do
7445 IFS=$as_save_IFS
7446 test -z "$as_dir" && as_dir=.
7447 for ac_prog in fgrep; do
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007450 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007451# Check for GNU ac_path_FGREP and select it if it is found.
7452 # Check for GNU $ac_path_FGREP
7453case `"$ac_path_FGREP" --version 2>&1` in
7454*GNU*)
7455 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7456*)
7457 ac_count=0
7458 $as_echo_n 0123456789 >"conftest.in"
7459 while :
7460 do
7461 cat "conftest.in" "conftest.in" >"conftest.tmp"
7462 mv "conftest.tmp" "conftest.in"
7463 cp "conftest.in" "conftest.nl"
7464 $as_echo 'FGREP' >> "conftest.nl"
7465 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7466 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7467 as_fn_arith $ac_count + 1 && ac_count=$as_val
7468 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7469 # Best one so far, save it but keep looking for a better one
7470 ac_cv_path_FGREP="$ac_path_FGREP"
7471 ac_path_FGREP_max=$ac_count
7472 fi
7473 # 10*(2^10) chars as input seems more than enough
7474 test $ac_count -gt 10 && break
7475 done
7476 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7477esac
7478
7479 $ac_path_FGREP_found && break 3
7480 done
7481 done
7482 done
7483IFS=$as_save_IFS
7484 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007485 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007486 fi
7487else
7488 ac_cv_path_FGREP=$FGREP
7489fi
7490
7491 fi
7492fi
7493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7494$as_echo "$ac_cv_path_FGREP" >&6; }
7495 FGREP="$ac_cv_path_FGREP"
7496
7497
7498test -z "$GREP" && GREP=grep
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
cristy0c60a692010-11-04 01:09:47 +00007516ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7517ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7518ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7519
7520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7521$as_echo_n "checking how to print strings... " >&6; }
7522# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007523if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007524 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7525 ECHO='print -r --'
7526elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7527 ECHO='printf %s\n'
7528else
7529 # Use this function as a fallback that always works.
7530 func_fallback_echo ()
7531 {
7532 eval 'cat <<_LTECHO_EOF
7533$1
7534_LTECHO_EOF'
7535 }
7536 ECHO='func_fallback_echo'
7537fi
7538
7539# func_echo_all arg...
7540# Invoke $ECHO with all args, space-separated.
7541func_echo_all ()
7542{
7543 $ECHO ""
7544}
7545
7546case "$ECHO" in
7547 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7548$as_echo "printf" >&6; } ;;
7549 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7550$as_echo "print -r" >&6; } ;;
7551 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7552$as_echo "cat" >&6; } ;;
7553esac
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
cristy73bd4a52010-10-05 11:24:23 +00007568
7569
7570# Check whether --with-gnu-ld was given.
7571if test "${with_gnu_ld+set}" = set; then :
7572 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7573else
7574 with_gnu_ld=no
7575fi
7576
7577ac_prog=ld
7578if test "$GCC" = yes; then
7579 # Check if gcc -print-prog-name=ld gives a path.
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7581$as_echo_n "checking for ld used by $CC... " >&6; }
7582 case $host in
7583 *-*-mingw*)
7584 # gcc leaves a trailing carriage return which upsets mingw
7585 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7586 *)
7587 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7588 esac
7589 case $ac_prog in
7590 # Accept absolute paths.
7591 [\\/]* | ?:[\\/]*)
7592 re_direlt='/[^/][^/]*/\.\./'
7593 # Canonicalize the pathname of ld
7594 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7595 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7596 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7597 done
7598 test -z "$LD" && LD="$ac_prog"
7599 ;;
7600 "")
7601 # If it fails, then pretend we aren't using GCC.
7602 ac_prog=ld
7603 ;;
7604 *)
7605 # If it is relative, then search for the first ld in PATH.
7606 with_gnu_ld=unknown
7607 ;;
7608 esac
7609elif test "$with_gnu_ld" = yes; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7611$as_echo_n "checking for GNU ld... " >&6; }
7612else
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7614$as_echo_n "checking for non-GNU ld... " >&6; }
7615fi
cristyda16f162011-02-19 23:52:17 +00007616if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007617 $as_echo_n "(cached) " >&6
7618else
7619 if test -z "$LD"; then
7620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7621 for ac_dir in $PATH; do
7622 IFS="$lt_save_ifs"
7623 test -z "$ac_dir" && ac_dir=.
7624 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7625 lt_cv_path_LD="$ac_dir/$ac_prog"
7626 # Check to see if the program is GNU ld. I'd rather use --version,
7627 # but apparently some variants of GNU ld only accept -v.
7628 # Break only if it was the GNU/non-GNU ld that we prefer.
7629 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7630 *GNU* | *'with BFD'*)
7631 test "$with_gnu_ld" != no && break
7632 ;;
7633 *)
7634 test "$with_gnu_ld" != yes && break
7635 ;;
7636 esac
7637 fi
7638 done
7639 IFS="$lt_save_ifs"
7640else
7641 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7642fi
7643fi
7644
7645LD="$lt_cv_path_LD"
7646if test -n "$LD"; then
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7648$as_echo "$LD" >&6; }
7649else
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651$as_echo "no" >&6; }
7652fi
cristy98dddb52010-11-04 00:30:15 +00007653test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7655$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007656if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007657 $as_echo_n "(cached) " >&6
7658else
7659 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7660case `$LD -v 2>&1 </dev/null` in
7661*GNU* | *'with BFD'*)
7662 lt_cv_prog_gnu_ld=yes
7663 ;;
7664*)
7665 lt_cv_prog_gnu_ld=no
7666 ;;
7667esac
7668fi
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7670$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7671with_gnu_ld=$lt_cv_prog_gnu_ld
7672
7673
7674
7675
7676
7677
7678
7679
7680
cristy3ed852e2009-09-05 21:47:34 +00007681
cristy837d6dc2010-02-27 01:16:57 +00007682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7683$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007684if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007685 $as_echo_n "(cached) " >&6
7686else
7687 ac_cv_prog_cc_c99=no
7688ac_save_CC=$CC
7689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690/* end confdefs.h. */
7691#include <stdarg.h>
7692#include <stdbool.h>
7693#include <stdlib.h>
7694#include <wchar.h>
7695#include <stdio.h>
7696
7697// Check varargs macros. These examples are taken from C99 6.10.3.5.
7698#define debug(...) fprintf (stderr, __VA_ARGS__)
7699#define showlist(...) puts (#__VA_ARGS__)
7700#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7701static void
7702test_varargs_macros (void)
7703{
7704 int x = 1234;
7705 int y = 5678;
7706 debug ("Flag");
7707 debug ("X = %d\n", x);
7708 showlist (The first, second, and third items.);
7709 report (x>y, "x is %d but y is %d", x, y);
7710}
7711
7712// Check long long types.
7713#define BIG64 18446744073709551615ull
7714#define BIG32 4294967295ul
7715#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7716#if !BIG_OK
7717 your preprocessor is broken;
7718#endif
7719#if BIG_OK
7720#else
7721 your preprocessor is broken;
7722#endif
7723static long long int bignum = -9223372036854775807LL;
7724static unsigned long long int ubignum = BIG64;
7725
7726struct incomplete_array
7727{
7728 int datasize;
7729 double data[];
7730};
7731
7732struct named_init {
7733 int number;
7734 const wchar_t *name;
7735 double average;
7736};
7737
7738typedef const char *ccp;
7739
7740static inline int
7741test_restrict (ccp restrict text)
7742{
7743 // See if C++-style comments work.
7744 // Iterate through items via the restricted pointer.
7745 // Also check for declarations in for loops.
7746 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7747 continue;
7748 return 0;
7749}
7750
7751// Check varargs and va_copy.
7752static void
7753test_varargs (const char *format, ...)
7754{
7755 va_list args;
7756 va_start (args, format);
7757 va_list args_copy;
7758 va_copy (args_copy, args);
7759
7760 const char *str;
7761 int number;
7762 float fnumber;
7763
7764 while (*format)
7765 {
7766 switch (*format++)
7767 {
7768 case 's': // string
7769 str = va_arg (args_copy, const char *);
7770 break;
7771 case 'd': // int
7772 number = va_arg (args_copy, int);
7773 break;
7774 case 'f': // float
7775 fnumber = va_arg (args_copy, double);
7776 break;
7777 default:
7778 break;
7779 }
7780 }
7781 va_end (args_copy);
7782 va_end (args);
7783}
7784
7785int
7786main ()
7787{
7788
7789 // Check bool.
7790 _Bool success = false;
7791
7792 // Check restrict.
7793 if (test_restrict ("String literal") == 0)
7794 success = true;
7795 char *restrict newvar = "Another string";
7796
7797 // Check varargs.
7798 test_varargs ("s, d' f .", "string", 65, 34.234);
7799 test_varargs_macros ();
7800
7801 // Check flexible array members.
7802 struct incomplete_array *ia =
7803 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7804 ia->datasize = 10;
7805 for (int i = 0; i < ia->datasize; ++i)
7806 ia->data[i] = i * 1.234;
7807
7808 // Check named initializers.
7809 struct named_init ni = {
7810 .number = 34,
7811 .name = L"Test wide string",
7812 .average = 543.34343,
7813 };
7814
7815 ni.number = 58;
7816
7817 int dynamic_array[ni.number];
7818 dynamic_array[ni.number - 1] = 543;
7819
7820 // work around unused variable warnings
7821 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7822 || dynamic_array[ni.number - 1] != 543);
7823
7824 ;
7825 return 0;
7826}
7827_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007828for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007829do
7830 CC="$ac_save_CC $ac_arg"
7831 if ac_fn_c_try_compile "$LINENO"; then :
7832 ac_cv_prog_cc_c99=$ac_arg
7833fi
7834rm -f core conftest.err conftest.$ac_objext
7835 test "x$ac_cv_prog_cc_c99" != "xno" && break
7836done
7837rm -f conftest.$ac_ext
7838CC=$ac_save_CC
7839
7840fi
7841# AC_CACHE_VAL
7842case "x$ac_cv_prog_cc_c99" in
7843 x)
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7845$as_echo "none needed" >&6; } ;;
7846 xno)
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7848$as_echo "unsupported" >&6; } ;;
7849 *)
7850 CC="$CC $ac_cv_prog_cc_c99"
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7852$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7853esac
7854if test "x$ac_cv_prog_cc_c99" != xno; then :
7855
7856fi
7857
7858
cristy99a003b2013-11-03 17:58:59 +00007859if test "x$CC" != xcc; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7861$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7862else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7864$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7865fi
7866set dummy $CC; ac_cc=`$as_echo "$2" |
7867 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7868if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7869 $as_echo_n "(cached) " >&6
7870else
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872/* end confdefs.h. */
7873
7874int
7875main ()
7876{
7877
7878 ;
7879 return 0;
7880}
7881_ACEOF
7882# Make sure it works both with $CC and with simple cc.
7883# We do the test twice because some compilers refuse to overwrite an
7884# existing .o file with -o, though they will create one.
7885ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7886rm -f conftest2.*
7887if { { case "(($ac_try" in
7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889 *) ac_try_echo=$ac_try;;
7890esac
7891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7892$as_echo "$ac_try_echo"; } >&5
7893 (eval "$ac_try") 2>&5
7894 ac_status=$?
7895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7896 test $ac_status = 0; } &&
7897 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7900esac
7901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7902$as_echo "$ac_try_echo"; } >&5
7903 (eval "$ac_try") 2>&5
7904 ac_status=$?
7905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7906 test $ac_status = 0; };
7907then
7908 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7909 if test "x$CC" != xcc; then
7910 # Test first that cc exists at all.
7911 if { ac_try='cc -c conftest.$ac_ext >&5'
7912 { { case "(($ac_try" in
7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914 *) ac_try_echo=$ac_try;;
7915esac
7916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7917$as_echo "$ac_try_echo"; } >&5
7918 (eval "$ac_try") 2>&5
7919 ac_status=$?
7920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7921 test $ac_status = 0; }; }; then
7922 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7923 rm -f conftest2.*
7924 if { { case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7927esac
7928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7929$as_echo "$ac_try_echo"; } >&5
7930 (eval "$ac_try") 2>&5
7931 ac_status=$?
7932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7933 test $ac_status = 0; } &&
7934 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936 *) ac_try_echo=$ac_try;;
7937esac
7938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7939$as_echo "$ac_try_echo"; } >&5
7940 (eval "$ac_try") 2>&5
7941 ac_status=$?
7942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7943 test $ac_status = 0; };
7944 then
7945 # cc works too.
7946 :
7947 else
7948 # cc exists but doesn't like -o.
7949 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7950 fi
7951 fi
7952 fi
7953else
7954 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7955fi
7956rm -f core conftest*
7957
7958fi
7959if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7961$as_echo "yes" >&6; }
7962else
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964$as_echo "no" >&6; }
7965
7966$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7967
7968fi
7969
7970# FIXME: we rely on the cache variable name because
7971# there is no other way.
7972set dummy $CC
7973am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7974eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7975if test "$am_t" != yes; then
7976 # Losing compiler, so override with the script.
7977 # FIXME: It is wrong to rewrite CC.
7978 # But if we don't then we get into trouble of one sort or another.
7979 # A longer-term fix would be to have automake use am__CC in this case,
7980 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7981 CC="$am_aux_dir/compile $CC"
7982fi
7983
cristy73bd4a52010-10-05 11:24:23 +00007984
7985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7986$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007987if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007988 $as_echo_n "(cached) " >&6
7989else
7990 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007991 ac_ext=c
7992ac_cpp='$CPP $CPPFLAGS'
7993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995ac_compiler_gnu=$ac_cv_c_compiler_gnu
7996
7997 ac_save_CFLAGS="$CFLAGS"
7998for ac_arg in "-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" #
7999do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001/* end confdefs.h. */
8002
8003int
8004main ()
8005{
cristy24fc1fe2010-10-23 21:13:01 +00008006
cristy73bd4a52010-10-05 11:24:23 +00008007 ;
8008 return 0;
8009}
8010_ACEOF
8011if ac_fn_c_try_compile "$LINENO"; then :
8012 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8013fi
8014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8015done
8016 CFLAGS="$ac_save_CFLAGS"
8017 ac_ext=c
8018ac_cpp='$CPP $CPPFLAGS'
8019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8021ac_compiler_gnu=$ac_cv_c_compiler_gnu
8022
8023
8024fi
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8026$as_echo "$ac_cv_cflags_warn_all" >&6; }
8027case ".$ac_cv_cflags_warn_all" in
8028 .ok|.ok,*) ;;
8029 .|.no|.no,*)
8030 ;;
8031 *)
8032 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8033 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8034 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8035 ac_status=$?
8036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8037 test $ac_status = 0; }
8038 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8039 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8040 ac_status=$?
8041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8042 test $ac_status = 0; }
8043 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8044 fi
8045 ;;
nicolas6237c462010-10-05 06:11:49 +00008046esac
cristy3ed852e2009-09-05 21:47:34 +00008047
cristya0b81c32010-01-22 02:54:33 +00008048
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8050$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8051set x ${MAKE-make}
8052ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008053if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008054 $as_echo_n "(cached) " >&6
8055else
8056 cat >conftest.make <<\_ACEOF
8057SHELL = /bin/sh
8058all:
8059 @echo '@@@%%%=$(MAKE)=@@@%%%'
8060_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008061# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008062case `${MAKE-make} -f conftest.make 2>/dev/null` in
8063 *@@@%%%=?*=@@@%%%*)
8064 eval ac_cv_prog_make_${ac_make}_set=yes;;
8065 *)
8066 eval ac_cv_prog_make_${ac_make}_set=no;;
8067esac
8068rm -f conftest.make
8069fi
8070if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8072$as_echo "yes" >&6; }
8073 SET_MAKE=
8074else
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076$as_echo "no" >&6; }
8077 SET_MAKE="MAKE=${MAKE-make}"
8078fi
8079
cristy8b350f62009-11-15 23:12:43 +00008080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008081$as_echo_n "checking whether ln -s works... " >&6; }
8082LN_S=$as_ln_s
8083if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008085$as_echo "yes" >&6; }
8086else
cristy8b350f62009-11-15 23:12:43 +00008087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008088$as_echo "no, using $LN_S" >&6; }
8089fi
8090
cristy8d0ff762013-03-10 20:33:28 +00008091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8092$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8093if ${ac_cv_path_SED+:} false; then :
8094 $as_echo_n "(cached) " >&6
8095else
8096 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8097 for ac_i in 1 2 3 4 5 6 7; do
8098 ac_script="$ac_script$as_nl$ac_script"
8099 done
8100 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8101 { ac_script=; unset ac_script;}
8102 if test -z "$SED"; then
8103 ac_path_SED_found=false
8104 # Loop through the user's path and test for each of PROGNAME-LIST
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106for as_dir in $PATH
8107do
8108 IFS=$as_save_IFS
8109 test -z "$as_dir" && as_dir=.
8110 for ac_prog in sed gsed; do
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8113 as_fn_executable_p "$ac_path_SED" || continue
8114# Check for GNU ac_path_SED and select it if it is found.
8115 # Check for GNU $ac_path_SED
8116case `"$ac_path_SED" --version 2>&1` in
8117*GNU*)
8118 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8119*)
8120 ac_count=0
8121 $as_echo_n 0123456789 >"conftest.in"
8122 while :
8123 do
8124 cat "conftest.in" "conftest.in" >"conftest.tmp"
8125 mv "conftest.tmp" "conftest.in"
8126 cp "conftest.in" "conftest.nl"
8127 $as_echo '' >> "conftest.nl"
8128 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8129 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8130 as_fn_arith $ac_count + 1 && ac_count=$as_val
8131 if test $ac_count -gt ${ac_path_SED_max-0}; then
8132 # Best one so far, save it but keep looking for a better one
8133 ac_cv_path_SED="$ac_path_SED"
8134 ac_path_SED_max=$ac_count
8135 fi
8136 # 10*(2^10) chars as input seems more than enough
8137 test $ac_count -gt 10 && break
8138 done
8139 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8140esac
8141
8142 $ac_path_SED_found && break 3
8143 done
8144 done
8145 done
8146IFS=$as_save_IFS
8147 if test -z "$ac_cv_path_SED"; then
8148 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8149 fi
8150else
8151 ac_cv_path_SED=$SED
8152fi
8153
8154fi
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8156$as_echo "$ac_cv_path_SED" >&6; }
8157 SED="$ac_cv_path_SED"
8158 rm -f conftest.sed
8159
cristybc556452012-08-17 19:44:03 +00008160for ac_prog in gawk mawk nawk awk
8161do
8162 # Extract the first word of "$ac_prog", so it can be a program name with args.
8163set dummy $ac_prog; ac_word=$2
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165$as_echo_n "checking for $ac_word... " >&6; }
8166if ${ac_cv_prog_AWK+:} false; then :
8167 $as_echo_n "(cached) " >&6
8168else
8169 if test -n "$AWK"; then
8170 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8171else
8172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173for as_dir in $PATH
8174do
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8179 ac_cv_prog_AWK="$ac_prog"
8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 break 2
8182 fi
8183done
8184 done
8185IFS=$as_save_IFS
8186
8187fi
8188fi
8189AWK=$ac_cv_prog_AWK
8190if test -n "$AWK"; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8192$as_echo "$AWK" >&6; }
8193else
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195$as_echo "no" >&6; }
8196fi
8197
8198
8199 test -n "$AWK" && break
8200done
8201
cristy73bd4a52010-10-05 11:24:23 +00008202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8203$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8204
8205# Check whether --with-dmalloc was given.
8206if test "${with_dmalloc+set}" = set; then :
8207 withval=$with_dmalloc; if test "$withval" = yes; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8209$as_echo "yes" >&6; }
8210
8211$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8212
8213 LIBS="$LIBS -ldmalloc"
8214 LDFLAGS="$LDFLAGS -g"
8215else
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217$as_echo "no" >&6; }
8218fi
8219else
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221$as_echo "no" >&6; }
8222fi
8223
8224
8225
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8227$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008228if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008229 $as_echo_n "(cached) " >&6
8230else
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232/* end confdefs.h. */
8233#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008234 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008235 static void
8236 foo(void) {
8237 exit(1);
8238 }
8239
8240int
8241main ()
8242{
8243
8244 ;
8245 return 0;
8246}
8247_ACEOF
8248if ac_fn_c_try_compile "$LINENO"; then :
8249 ax_cv___attribute__=yes
8250else
8251 ax_cv___attribute__=no
8252
8253fi
8254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8255
8256fi
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8258$as_echo "$ax_cv___attribute__" >&6; }
8259 if test "$ax_cv___attribute__" = "yes"; then
8260
8261$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8262
8263 fi
8264
8265
8266
8267if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8268 if test -n "$ac_tool_prefix"; then
8269 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8270set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008273if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008274 $as_echo_n "(cached) " >&6
8275else
8276 case $PKG_CONFIG in
8277 [\\/]* | ?:[\\/]*)
8278 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8279 ;;
8280 *)
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282for as_dir in $PATH
8283do
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008288 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8291 fi
8292done
8293 done
8294IFS=$as_save_IFS
8295
8296 ;;
8297esac
8298fi
8299PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8300if test -n "$PKG_CONFIG"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8302$as_echo "$PKG_CONFIG" >&6; }
8303else
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305$as_echo "no" >&6; }
8306fi
8307
8308
8309fi
8310if test -z "$ac_cv_path_PKG_CONFIG"; then
8311 ac_pt_PKG_CONFIG=$PKG_CONFIG
8312 # Extract the first word of "pkg-config", so it can be a program name with args.
8313set dummy pkg-config; ac_word=$2
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008316if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008317 $as_echo_n "(cached) " >&6
8318else
8319 case $ac_pt_PKG_CONFIG in
8320 [\\/]* | ?:[\\/]*)
8321 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8322 ;;
8323 *)
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325for as_dir in $PATH
8326do
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008331 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 break 2
8334 fi
8335done
8336 done
8337IFS=$as_save_IFS
8338
8339 ;;
8340esac
8341fi
8342ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8343if test -n "$ac_pt_PKG_CONFIG"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8345$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8346else
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348$as_echo "no" >&6; }
8349fi
8350
8351 if test "x$ac_pt_PKG_CONFIG" = x; then
8352 PKG_CONFIG=""
8353 else
8354 case $cross_compiling:$ac_tool_warned in
8355yes:)
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8358ac_tool_warned=yes ;;
8359esac
8360 PKG_CONFIG=$ac_pt_PKG_CONFIG
8361 fi
8362else
8363 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8364fi
8365
8366fi
8367if test -n "$PKG_CONFIG"; then
8368 _pkg_min_version=0.9.0
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8370$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8371 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8373$as_echo "yes" >&6; }
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376$as_echo "no" >&6; }
8377 PKG_CONFIG=""
8378 fi
8379
8380fi
cristy3ed852e2009-09-05 21:47:34 +00008381
cristyd95b7a52013-10-23 13:12:53 +00008382# Test for 64-bit build.
8383# The cast to long int works around a bug in the HP C Compiler
8384# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8385# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8386# This bug is HP SR number 8606223364.
8387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8388$as_echo_n "checking size of size_t... " >&6; }
8389if ${ac_cv_sizeof_size_t+:} false; then :
8390 $as_echo_n "(cached) " >&6
8391else
8392 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
8393
8394else
8395 if test "$ac_cv_type_size_t" = yes; then
8396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8398as_fn_error 77 "cannot compute sizeof (size_t)
8399See \`config.log' for more details" "$LINENO" 5; }
8400 else
8401 ac_cv_sizeof_size_t=0
8402 fi
8403fi
8404
8405fi
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8407$as_echo "$ac_cv_sizeof_size_t" >&6; }
8408
8409
8410
8411cat >>confdefs.h <<_ACEOF
8412#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8413_ACEOF
8414
8415
8416
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8418$as_echo_n "checking for C compiler vendor... " >&6; }
8419if ${ax_cv_c_compiler_vendor+:} false; then :
8420 $as_echo_n "(cached) " >&6
8421else
8422 # note: don't check for gcc first since some other compilers define __GNUC__
8423 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8424 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8425 pathscale: __PATHCC__,__PATHSCALE__
8426 clang: __clang__
8427 gnu: __GNUC__
8428 sun: __SUNPRO_C,__SUNPRO_CC
8429 hp: __HP_cc,__HP_aCC
8430 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8431 borland: __BORLANDC__,__TURBOC__
8432 comeau: __COMO__
8433 cray: _CRAYC
8434 kai: __KCC
8435 lcc: __LCC__
8436 sgi: __sgi,sgi
8437 microsoft: _MSC_VER
8438 metrowerks: __MWERKS__
8439 watcom: __WATCOMC__
8440 portland: __PGI
8441 unknown: UNKNOWN"
8442 for ventest in $vendors; do
8443 case $ventest in
8444 *:) vendor=$ventest; continue ;;
8445 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8446 esac
8447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8448/* end confdefs.h. */
8449
8450int
8451main ()
8452{
8453
8454 #if !($vencpp)
8455 thisisanerror;
8456 #endif
8457
8458 ;
8459 return 0;
8460}
8461_ACEOF
8462if ac_fn_c_try_compile "$LINENO"; then :
8463 break
8464fi
8465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466 done
8467 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8468
8469fi
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8471$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8472
cristyd95b7a52013-10-23 13:12:53 +00008473# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
8474# compiler.
8475if test "$ax_cv_c_compiler_vendor" != "sun"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8477$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8478if ${ac_cv_cflags_warn_all+:} false; then :
8479 $as_echo_n "(cached) " >&6
8480else
8481 ac_cv_cflags_warn_all="no, unknown"
8482 ac_ext=c
8483ac_cpp='$CPP $CPPFLAGS'
8484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8486ac_compiler_gnu=$ac_cv_c_compiler_gnu
8487
8488 ac_save_CFLAGS="$CFLAGS"
8489for ac_arg in "-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" #
8490do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492/* end confdefs.h. */
8493
8494int
8495main ()
8496{
8497
8498 ;
8499 return 0;
8500}
8501_ACEOF
8502if ac_fn_c_try_compile "$LINENO"; then :
8503 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8504fi
8505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8506done
8507 CFLAGS="$ac_save_CFLAGS"
8508 ac_ext=c
8509ac_cpp='$CPP $CPPFLAGS'
8510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8512ac_compiler_gnu=$ac_cv_c_compiler_gnu
8513
8514
8515fi
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8517$as_echo "$ac_cv_cflags_warn_all" >&6; }
8518case ".$ac_cv_cflags_warn_all" in
8519 .ok|.ok,*) ;;
8520 .|.no|.no,*)
8521 ;;
8522 *)
8523 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8524 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8525 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8526 ac_status=$?
8527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8528 test $ac_status = 0; }
8529 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8530 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8531 ac_status=$?
8532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8533 test $ac_status = 0; }
8534 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8535 fi
8536 ;;
8537esac
8538
8539fi
8540
8541if test "x$GCC" = "xyes"; then
8542 CFLAGS="$CFLAGS -fexceptions"
8543 touch local.exp
8544else
8545 cat > local.exp <<EOF
8546set CC_FOR_TARGET "$CC"
8547EOF
8548fi
8549
cristy9b86f202012-11-28 21:55:35 +00008550# Check for linker script support
8551
8552 # Check whether --enable-ld-version-script was given.
8553if test "${enable_ld_version_script+set}" = set; then :
8554 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8555fi
8556
8557 if test -z "$have_ld_version_script"; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8559$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8560 save_LDFLAGS="$LDFLAGS"
8561 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8562 cat > conftest.map <<EOF
8563foo
8564EOF
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566/* end confdefs.h. */
8567
8568int
8569main ()
8570{
8571
8572 ;
8573 return 0;
8574}
8575_ACEOF
8576if ac_fn_c_try_link "$LINENO"; then :
8577 accepts_syntax_errors=yes
8578else
8579 accepts_syntax_errors=no
8580fi
8581rm -f core conftest.err conftest.$ac_objext \
8582 conftest$ac_exeext conftest.$ac_ext
8583 if test "$accepts_syntax_errors" = no; then
8584 cat > conftest.map <<EOF
8585VERS_1 {
8586 global: sym;
8587};
8588
8589VERS_2 {
8590 global: sym;
8591} VERS_1;
8592EOF
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594/* end confdefs.h. */
8595
8596int
8597main ()
8598{
8599
8600 ;
8601 return 0;
8602}
8603_ACEOF
8604if ac_fn_c_try_link "$LINENO"; then :
8605 have_ld_version_script=yes
8606else
8607 have_ld_version_script=no
8608fi
8609rm -f core conftest.err conftest.$ac_objext \
8610 conftest$ac_exeext conftest.$ac_ext
8611 else
8612 have_ld_version_script=no
8613 fi
8614 rm -f conftest.map
8615 LDFLAGS="$save_LDFLAGS"
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8617$as_echo "$have_ld_version_script" >&6; }
8618 fi
8619 if test "$have_ld_version_script" = "yes"; then
8620 HAVE_LD_VERSION_SCRIPT_TRUE=
8621 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8622else
8623 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8624 HAVE_LD_VERSION_SCRIPT_FALSE=
8625fi
8626
8627
8628
cristy3ed852e2009-09-05 21:47:34 +00008629#
cristy3ed852e2009-09-05 21:47:34 +00008630# Enable run-time checking.
8631#
8632# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008633if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008634 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8635else
8636 enable_bounds_checking='no'
8637fi
8638
8639
8640if test "$enable_bounds_checking" = yes; then
8641
cristy8b350f62009-11-15 23:12:43 +00008642$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008643
8644fi
8645
8646#
8647# Tests for Windows
8648#
8649
8650
8651
8652GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008653native_win32_build='no'
8654cygwin_build='no'
8655case "${host_os}" in
8656 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008657 cygwin_build='yes'
8658 GDI32_LIBS='-lgdi32'
8659 ;;
8660 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008661 native_win32_build='yes'
8662 GDI32_LIBS='-lgdi32'
8663 ;;
8664esac
8665if test "${GDI32_LIBS}x" != 'x'; then
8666
cristy8b350f62009-11-15 23:12:43 +00008667$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008668
8669fi
8670
cristy73bd4a52010-10-05 11:24:23 +00008671 if test "${GDI32_LIBS}x" != 'x' ; then
8672 WINGDI32_DELEGATE_TRUE=
8673 WINGDI32_DELEGATE_FALSE='#'
8674else
8675 WINGDI32_DELEGATE_TRUE='#'
8676 WINGDI32_DELEGATE_FALSE=
8677fi
8678
8679 if test "${native_win32_build}" = 'yes' ; then
8680 WIN32_NATIVE_BUILD_TRUE=
8681 WIN32_NATIVE_BUILD_FALSE='#'
8682else
8683 WIN32_NATIVE_BUILD_TRUE='#'
8684 WIN32_NATIVE_BUILD_FALSE=
8685fi
8686
8687 if test "${cygwin_build}" = 'yes' ; then
8688 CYGWIN_BUILD_TRUE=
8689 CYGWIN_BUILD_FALSE='#'
8690else
8691 CYGWIN_BUILD_TRUE='#'
8692 CYGWIN_BUILD_FALSE=
8693fi
8694
8695 if test "x${CC}" = 'xcl.exe' ; then
8696 USING_CL_TRUE=
8697 USING_CL_FALSE='#'
8698else
8699 USING_CL_TRUE='#'
8700 USING_CL_FALSE=
8701fi
8702
cristy3ed852e2009-09-05 21:47:34 +00008703
8704WinPathScript="${srcdirfull}/winpath.sh"
8705
8706
8707#
8708# Compiler flags tweaks
8709#
8710if test "${GCC}" != "yes"; then
8711 case "${host}" in
8712 *-*-hpux* )
8713 # aCC: HP ANSI C++ B3910B A.03.34
8714 CFLAGS="${CFLAGS} -Wp,-H30000"
8715 if test -n "${CXXFLAGS}"; then
8716 CXXFLAGS='-AA'
8717 else
8718 CXXFLAGS="${CXXFLAGS} -AA"
8719 fi
8720 ;;
8721 *-dec-osf5.* )
8722 # Compaq alphaev68-dec-osf5.1 compiler
8723 if test -n "${CXXFLAGS}"; then
8724 CXXFLAGS='-std strict_ansi -noimplicit_include'
8725 else
8726 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8727 fi
8728 esac
8729fi
8730
8731# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008733$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008734if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008735 $as_echo_n "(cached) " >&6
8736else
8737
8738im_cv_ld_lazyload='none'
8739case "${host}" in
8740 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8741 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8742 im_cv_ld_lazyload='-Wl,-zlazyload'
8743 fi
8744 ;;
8745esac
8746
8747fi
cristy8b350f62009-11-15 23:12:43 +00008748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008749$as_echo "$im_cv_ld_lazyload" >&6; }
8750if test "${im_cv_ld_lazyload}" != 'none' ; then
8751 if test -z "${LDFLAGS}" ; then
8752 LDFLAGS="${im_cv_ld_lazyload}"
8753 else
8754 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8755 fi
8756fi
8757
8758case "$host" in
cristyc37574e2013-02-16 01:04:55 +00008759 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00008760 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00008761 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008762if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008763 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8764else
8765 build_osxuniversal=no
8766fi
8767
8768
cristyc37574e2013-02-16 01:04:55 +00008769 if test "${build_osxuniversal}" != no ; then
8770 if test "$enable_dependency_tracking" != no ; then
8771 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008772Please re-run configure with these options:
8773 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008774 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00008775 fi
8776 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8777 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8778 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00008779 fi
8780 ;;
8781esac
8782
cristy0151ae12011-10-28 16:32:29 +00008783#
8784# ARCH specific include directory
8785#
8786
cristy670aa3c2011-11-03 00:54:00 +00008787# Check whether --with-includearch-dir was given.
8788if test "${with_includearch_dir+set}" = set; then :
8789 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008790else
cristy670aa3c2011-11-03 00:54:00 +00008791 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008792fi
8793
8794
cristyd286fd72013-02-24 19:25:33 +00008795eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008796
cristy0151ae12011-10-28 16:32:29 +00008797
8798#
8799# ARCH specific configuration directory
8800#
8801
cristy670aa3c2011-11-03 00:54:00 +00008802# Check whether --with-sharearch-dir was given.
8803if test "${with_sharearch_dir+set}" = set; then :
8804 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008805else
cristy408ebcd2011-11-14 01:36:57 +00008806 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008807fi
8808
8809
cristy670aa3c2011-11-03 00:54:00 +00008810eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008811
cristy0151ae12011-10-28 16:32:29 +00008812
cristy2ec87cc2013-02-18 17:46:50 +00008813# Path to the pkgconfig folder
8814
8815# Check whether --with-pkgconfigdir was given.
8816if test "${with_pkgconfigdir+set}" = set; then :
8817 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
8818else
8819 pkgconfigdir='${libdir}/pkgconfig'
8820fi
8821
8822
8823
cristy0151ae12011-10-28 16:32:29 +00008824#
cristy3ed852e2009-09-05 21:47:34 +00008825# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00008826#
8827# Find Posix threads library
8828#
cristy3ed852e2009-09-05 21:47:34 +00008829
8830# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008831if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008832 withval=$with_threads; with_threads=$withval
8833else
8834 with_threads='yes'
8835fi
8836
8837
cristy1ae5c992013-07-30 14:55:07 +00008838THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008839have_threads=no
8840if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008841
8842
cristy73bd4a52010-10-05 11:24:23 +00008843ac_ext=c
8844ac_cpp='$CPP $CPPFLAGS'
8845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8847ac_compiler_gnu=$ac_cv_c_compiler_gnu
8848
8849ax_pthread_ok=no
8850
8851# We used to check for pthread.h first, but this fails if pthread.h
8852# requires special compiler flags (e.g. on True64 or Sequent).
8853# It gets checked for in the link test anyway.
8854
8855# First of all, check if the user has set any of the PTHREAD_LIBS,
8856# etcetera environment variables, and if threads linking works using
8857# them:
8858if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8859 save_CFLAGS="$CFLAGS"
8860 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8861 save_LIBS="$LIBS"
8862 LIBS="$PTHREAD_LIBS $LIBS"
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8864$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866/* end confdefs.h. */
8867
8868/* Override any GCC internal prototype to avoid an error.
8869 Use char because int might match the return type of a GCC
8870 builtin and then its argument prototype would still apply. */
8871#ifdef __cplusplus
8872extern "C"
8873#endif
8874char pthread_join ();
8875int
8876main ()
8877{
8878return pthread_join ();
8879 ;
8880 return 0;
8881}
8882_ACEOF
8883if ac_fn_c_try_link "$LINENO"; then :
8884 ax_pthread_ok=yes
8885fi
8886rm -f core conftest.err conftest.$ac_objext \
8887 conftest$ac_exeext conftest.$ac_ext
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8889$as_echo "$ax_pthread_ok" >&6; }
8890 if test x"$ax_pthread_ok" = xno; then
8891 PTHREAD_LIBS=""
8892 PTHREAD_CFLAGS=""
8893 fi
8894 LIBS="$save_LIBS"
8895 CFLAGS="$save_CFLAGS"
8896fi
8897
8898# We must check for the threads library under a number of different
8899# names; the ordering is very important because some systems
8900# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8901# libraries is broken (non-POSIX).
8902
8903# Create a list of thread flags to try. Items starting with a "-" are
8904# C compiler flags, and other items are library names, except for "none"
8905# which indicates that we try without any flags at all, and "pthread-config"
8906# which is a program returning the flags for the Pth emulation library.
8907
cristy2ec87cc2013-02-18 17:46:50 +00008908ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008909
8910# The ordering *is* (sometimes) important. Some notes on the
8911# individual items follow:
8912
8913# pthreads: AIX (must check this before -lpthread)
8914# none: in case threads are in libc; should be tried before -Kthread and
8915# other compiler flags to prevent continual compiler warnings
8916# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8917# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8918# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8919# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8920# -pthreads: Solaris/gcc
8921# -mthreads: Mingw32/gcc, Lynx/gcc
8922# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8923# doesn't hurt to check since this sometimes defines pthreads too;
8924# also defines -D_REENTRANT)
8925# ... -mt is also the pthreads flag for HP/aCC
8926# pthread: Linux, etcetera
8927# --thread-safe: KAI C++
8928# pthread-config: use pthread-config program (for GNU Pth library)
8929
cristy2ec87cc2013-02-18 17:46:50 +00008930case ${host_os} in
8931 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00008932
8933 # On Solaris (at least, for some versions), libc contains stubbed
8934 # (non-functional) versions of the pthreads routines, so link-based
8935 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8936 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8937 # a function called by this macro, so we could check for that, but
8938 # who knows whether they'll stub that too in a future libc.) So,
8939 # we'll just look for -pthreads and -lpthread first:
8940
8941 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8942 ;;
8943
cristy2ec87cc2013-02-18 17:46:50 +00008944 darwin*)
cristya316db12011-10-24 00:49:45 +00008945 ax_pthread_flags="-pthread $ax_pthread_flags"
8946 ;;
cristy73bd4a52010-10-05 11:24:23 +00008947esac
8948
8949if test x"$ax_pthread_ok" = xno; then
8950for flag in $ax_pthread_flags; do
8951
8952 case $flag in
8953 none)
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8955$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8956 ;;
8957
8958 -*)
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8960$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8961 PTHREAD_CFLAGS="$flag"
8962 ;;
8963
cristya316db12011-10-24 00:49:45 +00008964 pthread-config)
8965 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008966set dummy pthread-config; ac_word=$2
8967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8968$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008969if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008970 $as_echo_n "(cached) " >&6
8971else
8972 if test -n "$ax_pthread_config"; then
8973 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8974else
8975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976for as_dir in $PATH
8977do
8978 IFS=$as_save_IFS
8979 test -z "$as_dir" && as_dir=.
8980 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008982 ac_cv_prog_ax_pthread_config="yes"
8983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8984 break 2
8985 fi
8986done
8987 done
8988IFS=$as_save_IFS
8989
8990 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8991fi
8992fi
8993ax_pthread_config=$ac_cv_prog_ax_pthread_config
8994if test -n "$ax_pthread_config"; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8996$as_echo "$ax_pthread_config" >&6; }
8997else
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999$as_echo "no" >&6; }
9000fi
9001
9002
cristya316db12011-10-24 00:49:45 +00009003 if test x"$ax_pthread_config" = xno; then continue; fi
9004 PTHREAD_CFLAGS="`pthread-config --cflags`"
9005 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9006 ;;
cristy73bd4a52010-10-05 11:24:23 +00009007
9008 *)
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9010$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9011 PTHREAD_LIBS="-l$flag"
9012 ;;
9013 esac
9014
9015 save_LIBS="$LIBS"
9016 save_CFLAGS="$CFLAGS"
9017 LIBS="$PTHREAD_LIBS $LIBS"
9018 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9019
9020 # Check for various functions. We must include pthread.h,
9021 # since some functions may be macros. (On the Sequent, we
9022 # need a special flag -Kthread to make this header compile.)
9023 # We check for pthread_join because it is in -lpthread on IRIX
9024 # while pthread_create is in libc. We check for pthread_attr_init
9025 # due to DEC craziness with -lpthreads. We check for
9026 # pthread_cleanup_push because it is one of the few pthread
9027 # functions on Solaris that doesn't have a non-functional libc stub.
9028 # We try pthread_create on general principles.
9029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030/* end confdefs.h. */
9031#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009032 static void routine(void *a) { a = 0; }
9033 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009034int
9035main ()
9036{
9037pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009038 pthread_create(&th, 0, start_routine, 0);
9039 pthread_join(th, 0);
9040 pthread_attr_init(&attr);
9041 pthread_cleanup_push(routine, 0);
9042 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009043 ;
9044 return 0;
9045}
9046_ACEOF
9047if ac_fn_c_try_link "$LINENO"; then :
9048 ax_pthread_ok=yes
9049fi
9050rm -f core conftest.err conftest.$ac_objext \
9051 conftest$ac_exeext conftest.$ac_ext
9052
9053 LIBS="$save_LIBS"
9054 CFLAGS="$save_CFLAGS"
9055
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9057$as_echo "$ax_pthread_ok" >&6; }
9058 if test "x$ax_pthread_ok" = xyes; then
9059 break;
9060 fi
9061
9062 PTHREAD_LIBS=""
9063 PTHREAD_CFLAGS=""
9064done
9065fi
9066
9067# Various other checks:
9068if test "x$ax_pthread_ok" = xyes; then
9069 save_LIBS="$LIBS"
9070 LIBS="$PTHREAD_LIBS $LIBS"
9071 save_CFLAGS="$CFLAGS"
9072 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9073
9074 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009076$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009077 attr_name=unknown
9078 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009080/* end confdefs.h. */
9081#include <pthread.h>
9082int
9083main ()
9084{
cristya316db12011-10-24 00:49:45 +00009085int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009086 ;
9087 return 0;
9088}
9089_ACEOF
9090if ac_fn_c_try_link "$LINENO"; then :
9091 attr_name=$attr; break
9092fi
9093rm -f core conftest.err conftest.$ac_objext \
9094 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009095 done
cristy73bd4a52010-10-05 11:24:23 +00009096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9097$as_echo "$attr_name" >&6; }
9098 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9099
9100cat >>confdefs.h <<_ACEOF
9101#define PTHREAD_CREATE_JOINABLE $attr_name
9102_ACEOF
9103
9104 fi
9105
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9107$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9108 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009109 case ${host_os} in
9110 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9111 osf* | hpux*) flag="-D_REENTRANT";;
9112 solaris*)
9113 if test "$GCC" = "yes"; then
9114 flag="-D_REENTRANT"
9115 else
9116 flag="-mt -D_REENTRANT"
9117 fi
9118 ;;
cristy73bd4a52010-10-05 11:24:23 +00009119 esac
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9121$as_echo "${flag}" >&6; }
9122 if test "x$flag" != xno; then
9123 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9124 fi
9125
cristya316db12011-10-24 00:49:45 +00009126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9127$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9128if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9129 $as_echo_n "(cached) " >&6
9130else
9131
9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133/* end confdefs.h. */
9134
9135 #include <pthread.h>
9136int
9137main ()
9138{
9139int i = PTHREAD_PRIO_INHERIT;
9140 ;
9141 return 0;
9142}
9143_ACEOF
9144if ac_fn_c_try_link "$LINENO"; then :
9145 ax_cv_PTHREAD_PRIO_INHERIT=yes
9146else
9147 ax_cv_PTHREAD_PRIO_INHERIT=no
9148fi
9149rm -f core conftest.err conftest.$ac_objext \
9150 conftest$ac_exeext conftest.$ac_ext
9151
9152fi
9153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9154$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9155 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9156
9157$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9158
9159fi
9160
cristy73bd4a52010-10-05 11:24:23 +00009161 LIBS="$save_LIBS"
9162 CFLAGS="$save_CFLAGS"
9163
cristy23493c42013-04-11 16:04:59 +00009164 # More AIX lossage: compile with *_r variant
9165 if test "x$GCC" != xyes; then
9166 case $host_os in
9167 aix*)
9168 case "x/$CC" in #(
9169 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9170 #handle absolute path differently from PATH based program lookup
9171 case "x$CC" in #(
9172 x/*) :
9173 if as_fn_executable_p ${CC}_r; then :
9174 PTHREAD_CC="${CC}_r"
9175fi ;; #(
9176 *) :
9177 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009178do
9179 # Extract the first word of "$ac_prog", so it can be a program name with args.
9180set dummy $ac_prog; ac_word=$2
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9182$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009183if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009184 $as_echo_n "(cached) " >&6
9185else
9186 if test -n "$PTHREAD_CC"; then
9187 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9188else
9189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9190for as_dir in $PATH
9191do
9192 IFS=$as_save_IFS
9193 test -z "$as_dir" && as_dir=.
9194 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009196 ac_cv_prog_PTHREAD_CC="$ac_prog"
9197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9198 break 2
9199 fi
9200done
9201 done
9202IFS=$as_save_IFS
9203
9204fi
9205fi
9206PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9207if test -n "$PTHREAD_CC"; then
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9209$as_echo "$PTHREAD_CC" >&6; }
9210else
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212$as_echo "no" >&6; }
9213fi
9214
9215
9216 test -n "$PTHREAD_CC" && break
9217done
cristy23493c42013-04-11 16:04:59 +00009218test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9219 ;;
9220esac ;; #(
9221 *) :
9222 ;;
9223esac
9224 ;;
9225 esac
cristya316db12011-10-24 00:49:45 +00009226 fi
cristy73bd4a52010-10-05 11:24:23 +00009227fi
9228
cristy23493c42013-04-11 16:04:59 +00009229test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9230
cristy73bd4a52010-10-05 11:24:23 +00009231
9232
9233
9234
9235# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9236if test x"$ax_pthread_ok" = xyes; then
9237
9238$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9239
9240 :
9241else
9242 ax_pthread_ok=no
9243
9244fi
9245ac_ext=c
9246ac_cpp='$CPP $CPPFLAGS'
9247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9249ac_compiler_gnu=$ac_cv_c_compiler_gnu
9250
9251
cristy7acf8fb2010-09-23 19:58:53 +00009252 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009253 have_threads=yes
9254 DEF_THREAD="$PTHREAD_CFLAGS"
9255 CFLAGS="$CFLAGS $DEF_THREAD"
9256 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009257 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009258 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009259 { $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 +00009260$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9261 CC="$PTHREAD_CC"
9262 fi
cristy55bf91c2010-09-24 00:29:41 +00009263
9264$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9265
cristy3ed852e2009-09-05 21:47:34 +00009266 fi
9267fi
cristy1ae5c992013-07-30 14:55:07 +00009268LIBS="$LIBS $THREAD_LIBS"
9269
cristy3ed852e2009-09-05 21:47:34 +00009270
9271# Enable support for OpenMP
9272if test "$have_threads" != 'yes'; then
9273 ac_cv_prog_c_openmp=unsupported
9274fi
9275
9276 OPENMP_CFLAGS=
9277 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009278if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009279 enableval=$enable_openmp;
9280fi
9281
9282 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009284$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009285if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009286 $as_echo_n "(cached) " >&6
9287else
cristy8b350f62009-11-15 23:12:43 +00009288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009290
9291#ifndef _OPENMP
9292 choke me
9293#endif
9294#include <omp.h>
9295int main () { return omp_get_num_threads (); }
9296
9297_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009298if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009299 ac_cv_prog_c_openmp='none needed'
9300else
cristy8b350f62009-11-15 23:12:43 +00009301 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009302 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9303 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009304 ac_save_CFLAGS=$CFLAGS
9305 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009308
9309#ifndef _OPENMP
9310 choke me
9311#endif
9312#include <omp.h>
9313int main () { return omp_get_num_threads (); }
9314
9315_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009316if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009317 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009318fi
cristy8b350f62009-11-15 23:12:43 +00009319rm -f core conftest.err conftest.$ac_objext \
9320 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009321 CFLAGS=$ac_save_CFLAGS
9322 if test "$ac_cv_prog_c_openmp" != unsupported; then
9323 break
9324 fi
9325 done
9326fi
cristy8b350f62009-11-15 23:12:43 +00009327rm -f core conftest.err conftest.$ac_objext \
9328 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009329fi
cristy8b350f62009-11-15 23:12:43 +00009330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009331$as_echo "$ac_cv_prog_c_openmp" >&6; }
9332 case $ac_cv_prog_c_openmp in #(
9333 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009334 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009335 *)
cristy8b350f62009-11-15 23:12:43 +00009336 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009337 esac
9338 fi
9339
9340
9341CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9342MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9343
cristy391f1ce2010-09-09 17:23:28 +00009344if test "$enable_openmp" != no; then
9345 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9346 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9347 fi
9348fi
cristy3ed852e2009-09-05 21:47:34 +00009349
cristy736173a2009-09-20 21:18:22 +00009350# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009351
9352
cristy73bd4a52010-10-05 11:24:23 +00009353ac_ext=c
9354ac_cpp='$CPP $CPPFLAGS'
9355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9357ac_compiler_gnu=$ac_cv_c_compiler_gnu
9358
9359ax_pthread_ok=no
9360
9361# We used to check for pthread.h first, but this fails if pthread.h
9362# requires special compiler flags (e.g. on True64 or Sequent).
9363# It gets checked for in the link test anyway.
9364
9365# First of all, check if the user has set any of the PTHREAD_LIBS,
9366# etcetera environment variables, and if threads linking works using
9367# them:
9368if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9369 save_CFLAGS="$CFLAGS"
9370 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9371 save_LIBS="$LIBS"
9372 LIBS="$PTHREAD_LIBS $LIBS"
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9374$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376/* end confdefs.h. */
9377
9378/* Override any GCC internal prototype to avoid an error.
9379 Use char because int might match the return type of a GCC
9380 builtin and then its argument prototype would still apply. */
9381#ifdef __cplusplus
9382extern "C"
9383#endif
9384char pthread_join ();
9385int
9386main ()
9387{
9388return pthread_join ();
9389 ;
9390 return 0;
9391}
9392_ACEOF
9393if ac_fn_c_try_link "$LINENO"; then :
9394 ax_pthread_ok=yes
9395fi
9396rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9399$as_echo "$ax_pthread_ok" >&6; }
9400 if test x"$ax_pthread_ok" = xno; then
9401 PTHREAD_LIBS=""
9402 PTHREAD_CFLAGS=""
9403 fi
9404 LIBS="$save_LIBS"
9405 CFLAGS="$save_CFLAGS"
9406fi
9407
9408# We must check for the threads library under a number of different
9409# names; the ordering is very important because some systems
9410# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9411# libraries is broken (non-POSIX).
9412
9413# Create a list of thread flags to try. Items starting with a "-" are
9414# C compiler flags, and other items are library names, except for "none"
9415# which indicates that we try without any flags at all, and "pthread-config"
9416# which is a program returning the flags for the Pth emulation library.
9417
cristy2ec87cc2013-02-18 17:46:50 +00009418ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009419
9420# The ordering *is* (sometimes) important. Some notes on the
9421# individual items follow:
9422
9423# pthreads: AIX (must check this before -lpthread)
9424# none: in case threads are in libc; should be tried before -Kthread and
9425# other compiler flags to prevent continual compiler warnings
9426# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9427# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9428# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9429# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9430# -pthreads: Solaris/gcc
9431# -mthreads: Mingw32/gcc, Lynx/gcc
9432# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9433# doesn't hurt to check since this sometimes defines pthreads too;
9434# also defines -D_REENTRANT)
9435# ... -mt is also the pthreads flag for HP/aCC
9436# pthread: Linux, etcetera
9437# --thread-safe: KAI C++
9438# pthread-config: use pthread-config program (for GNU Pth library)
9439
cristy2ec87cc2013-02-18 17:46:50 +00009440case ${host_os} in
9441 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009442
9443 # On Solaris (at least, for some versions), libc contains stubbed
9444 # (non-functional) versions of the pthreads routines, so link-based
9445 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9446 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9447 # a function called by this macro, so we could check for that, but
9448 # who knows whether they'll stub that too in a future libc.) So,
9449 # we'll just look for -pthreads and -lpthread first:
9450
9451 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9452 ;;
9453
cristy2ec87cc2013-02-18 17:46:50 +00009454 darwin*)
cristya316db12011-10-24 00:49:45 +00009455 ax_pthread_flags="-pthread $ax_pthread_flags"
9456 ;;
cristy73bd4a52010-10-05 11:24:23 +00009457esac
9458
9459if test x"$ax_pthread_ok" = xno; then
9460for flag in $ax_pthread_flags; do
9461
9462 case $flag in
9463 none)
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9465$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9466 ;;
9467
9468 -*)
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9470$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9471 PTHREAD_CFLAGS="$flag"
9472 ;;
9473
cristya316db12011-10-24 00:49:45 +00009474 pthread-config)
9475 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009476set dummy pthread-config; ac_word=$2
9477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9478$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009479if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009480 $as_echo_n "(cached) " >&6
9481else
9482 if test -n "$ax_pthread_config"; then
9483 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9484else
9485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9486for as_dir in $PATH
9487do
9488 IFS=$as_save_IFS
9489 test -z "$as_dir" && as_dir=.
9490 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009492 ac_cv_prog_ax_pthread_config="yes"
9493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9494 break 2
9495 fi
9496done
9497 done
9498IFS=$as_save_IFS
9499
9500 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9501fi
9502fi
9503ax_pthread_config=$ac_cv_prog_ax_pthread_config
9504if test -n "$ax_pthread_config"; then
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9506$as_echo "$ax_pthread_config" >&6; }
9507else
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509$as_echo "no" >&6; }
9510fi
9511
9512
cristya316db12011-10-24 00:49:45 +00009513 if test x"$ax_pthread_config" = xno; then continue; fi
9514 PTHREAD_CFLAGS="`pthread-config --cflags`"
9515 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9516 ;;
cristy73bd4a52010-10-05 11:24:23 +00009517
9518 *)
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9520$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9521 PTHREAD_LIBS="-l$flag"
9522 ;;
9523 esac
9524
9525 save_LIBS="$LIBS"
9526 save_CFLAGS="$CFLAGS"
9527 LIBS="$PTHREAD_LIBS $LIBS"
9528 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9529
9530 # Check for various functions. We must include pthread.h,
9531 # since some functions may be macros. (On the Sequent, we
9532 # need a special flag -Kthread to make this header compile.)
9533 # We check for pthread_join because it is in -lpthread on IRIX
9534 # while pthread_create is in libc. We check for pthread_attr_init
9535 # due to DEC craziness with -lpthreads. We check for
9536 # pthread_cleanup_push because it is one of the few pthread
9537 # functions on Solaris that doesn't have a non-functional libc stub.
9538 # We try pthread_create on general principles.
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540/* end confdefs.h. */
9541#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009542 static void routine(void *a) { a = 0; }
9543 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009544int
9545main ()
9546{
9547pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009548 pthread_create(&th, 0, start_routine, 0);
9549 pthread_join(th, 0);
9550 pthread_attr_init(&attr);
9551 pthread_cleanup_push(routine, 0);
9552 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009553 ;
9554 return 0;
9555}
9556_ACEOF
9557if ac_fn_c_try_link "$LINENO"; then :
9558 ax_pthread_ok=yes
9559fi
9560rm -f core conftest.err conftest.$ac_objext \
9561 conftest$ac_exeext conftest.$ac_ext
9562
9563 LIBS="$save_LIBS"
9564 CFLAGS="$save_CFLAGS"
9565
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9567$as_echo "$ax_pthread_ok" >&6; }
9568 if test "x$ax_pthread_ok" = xyes; then
9569 break;
9570 fi
9571
9572 PTHREAD_LIBS=""
9573 PTHREAD_CFLAGS=""
9574done
9575fi
9576
9577# Various other checks:
9578if test "x$ax_pthread_ok" = xyes; then
9579 save_LIBS="$LIBS"
9580 LIBS="$PTHREAD_LIBS $LIBS"
9581 save_CFLAGS="$CFLAGS"
9582 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9583
9584 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009586$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009587 attr_name=unknown
9588 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009590/* end confdefs.h. */
9591#include <pthread.h>
9592int
9593main ()
9594{
cristya316db12011-10-24 00:49:45 +00009595int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009596 ;
9597 return 0;
9598}
9599_ACEOF
9600if ac_fn_c_try_link "$LINENO"; then :
9601 attr_name=$attr; break
9602fi
9603rm -f core conftest.err conftest.$ac_objext \
9604 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009605 done
cristy73bd4a52010-10-05 11:24:23 +00009606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9607$as_echo "$attr_name" >&6; }
9608 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9609
9610cat >>confdefs.h <<_ACEOF
9611#define PTHREAD_CREATE_JOINABLE $attr_name
9612_ACEOF
9613
9614 fi
9615
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9617$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9618 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009619 case ${host_os} in
9620 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9621 osf* | hpux*) flag="-D_REENTRANT";;
9622 solaris*)
9623 if test "$GCC" = "yes"; then
9624 flag="-D_REENTRANT"
9625 else
9626 flag="-mt -D_REENTRANT"
9627 fi
9628 ;;
cristy73bd4a52010-10-05 11:24:23 +00009629 esac
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9631$as_echo "${flag}" >&6; }
9632 if test "x$flag" != xno; then
9633 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9634 fi
9635
cristya316db12011-10-24 00:49:45 +00009636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9637$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9638if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9639 $as_echo_n "(cached) " >&6
9640else
9641
9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9643/* end confdefs.h. */
9644
9645 #include <pthread.h>
9646int
9647main ()
9648{
9649int i = PTHREAD_PRIO_INHERIT;
9650 ;
9651 return 0;
9652}
9653_ACEOF
9654if ac_fn_c_try_link "$LINENO"; then :
9655 ax_cv_PTHREAD_PRIO_INHERIT=yes
9656else
9657 ax_cv_PTHREAD_PRIO_INHERIT=no
9658fi
9659rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661
9662fi
9663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9664$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9665 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9666
9667$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9668
9669fi
9670
cristy73bd4a52010-10-05 11:24:23 +00009671 LIBS="$save_LIBS"
9672 CFLAGS="$save_CFLAGS"
9673
cristy23493c42013-04-11 16:04:59 +00009674 # More AIX lossage: compile with *_r variant
9675 if test "x$GCC" != xyes; then
9676 case $host_os in
9677 aix*)
9678 case "x/$CC" in #(
9679 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9680 #handle absolute path differently from PATH based program lookup
9681 case "x$CC" in #(
9682 x/*) :
9683 if as_fn_executable_p ${CC}_r; then :
9684 PTHREAD_CC="${CC}_r"
9685fi ;; #(
9686 *) :
9687 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009688do
9689 # Extract the first word of "$ac_prog", so it can be a program name with args.
9690set dummy $ac_prog; ac_word=$2
9691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009693if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009694 $as_echo_n "(cached) " >&6
9695else
9696 if test -n "$PTHREAD_CC"; then
9697 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9698else
9699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700for as_dir in $PATH
9701do
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009706 ac_cv_prog_PTHREAD_CC="$ac_prog"
9707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 break 2
9709 fi
9710done
9711 done
9712IFS=$as_save_IFS
9713
9714fi
9715fi
9716PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9717if test -n "$PTHREAD_CC"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9719$as_echo "$PTHREAD_CC" >&6; }
9720else
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722$as_echo "no" >&6; }
9723fi
9724
9725
9726 test -n "$PTHREAD_CC" && break
9727done
cristy23493c42013-04-11 16:04:59 +00009728test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9729 ;;
9730esac ;; #(
9731 *) :
9732 ;;
9733esac
9734 ;;
9735 esac
cristya316db12011-10-24 00:49:45 +00009736 fi
cristy73bd4a52010-10-05 11:24:23 +00009737fi
9738
cristy23493c42013-04-11 16:04:59 +00009739test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9740
cristy73bd4a52010-10-05 11:24:23 +00009741
9742
9743
9744
9745# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9746if test x"$ax_pthread_ok" = xyes; then
9747
9748$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9749
9750 :
9751else
9752 ax_pthread_ok=no
9753
9754fi
9755ac_ext=c
9756ac_cpp='$CPP $CPPFLAGS'
9757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9759ac_compiler_gnu=$ac_cv_c_compiler_gnu
9760
9761
9762
9763# Check whether --enable-opencl was given.
9764if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009765 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009766else
cristy48794642012-09-02 15:19:08 +00009767 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009768fi
9769
9770
cristy48794642012-09-02 15:19:08 +00009771if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009772 ac_ext=c
9773ac_cpp='$CPP $CPPFLAGS'
9774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9776ac_compiler_gnu=$ac_cv_c_compiler_gnu
9777
cristy75314cc2012-09-15 23:08:29 +00009778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9779$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9780if ${ax_cv_c_compiler_ms+:} false; then :
9781 $as_echo_n "(cached) " >&6
9782else
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784/* end confdefs.h. */
9785
9786int
9787main ()
9788{
9789#ifndef _MSC_VER
9790 choke me
9791#endif
9792
9793 ;
9794 return 0;
9795}
9796_ACEOF
9797if ac_fn_c_try_compile "$LINENO"; then :
9798 ax_compiler_ms=yes
9799else
9800 ax_compiler_ms=no
9801fi
9802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803ax_cv_c_compiler_ms=$ax_compiler_ms
9804
9805fi
9806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9807$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009808 if test X$ax_compiler_ms = Xno; then :
9809 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9810fi
9811
9812 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +00009813 ax_save_CL_CFLAGS=$CL_CFLAGS
9814
9815 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +00009816 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9817 for ac_header in CL/cl.h OpenCL/cl.h
9818do :
9819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9820ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009821if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009822 cat >>confdefs.h <<_ACEOF
9823#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9824_ACEOF
cristyfdc7d122013-08-17 20:46:45 +00009825 found_opencl_header='yes'
9826 break;
9827else
9828 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +00009829fi
9830
9831done
9832
cristyfdc7d122013-08-17 20:46:45 +00009833
9834 if test X$found_opencl_header = Xno; then :
9835 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
9836 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
9837 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
9838 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
9839 for ac_header in CL/cl.h OpenCL/cl.h
9840do :
9841 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9842ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9843if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9844 cat >>confdefs.h <<_ACEOF
9845#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9846_ACEOF
9847 found_opencl_header='yes'
9848 break;
9849else
9850 found_opencl_header='no'
9851fi
9852
9853done
9854
9855
9856fi
9857
9858 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +00009859
9860 for ac_header in windows.h
9861do :
9862 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009863if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009864 cat >>confdefs.h <<_ACEOF
9865#define HAVE_WINDOWS_H 1
9866_ACEOF
9867
9868fi
9869
9870done
9871
9872
9873
9874
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9876$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009877if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009878 $as_echo_n "(cached) " >&6
9879else
9880 ax_cv_check_cl_libcl=no
9881 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +00009882 x86_64) ax_check_cl_libdir=lib64
9883 ax_check_cl_amd_libdir=x86_64
9884 ;;
9885 *) ax_check_cl_libdir=lib
9886 ax_check_cl_amd_libdir=x86
9887 ;;
cristy73bd4a52010-10-05 11:24:23 +00009888 esac
9889 ax_save_CPPFLAGS=$CPPFLAGS
9890 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9891 ax_save_LIBS=$LIBS
9892 LIBS=""
9893 ax_check_libs="-lOpenCL -lCL -lclparser"
9894 for ax_lib in $ax_check_libs; do
9895 if test X$ax_compiler_ms = Xyes; then :
9896 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9897else
9898 ax_try_lib=$ax_lib
9899fi
9900 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902/* end confdefs.h. */
9903
9904 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9905 # include <windows.h>
9906 # endif
9907 # ifdef HAVE_CL_CL_H
9908 # include <CL/cl.h>
9909 # elif defined(HAVE_OPENCL_CL_H)
9910 # include <OpenCL/cl.h>
9911 # else
9912 # error no CL.h
9913 # endif
9914int
9915main ()
9916{
9917clCreateContextFromType(0,0,0,0,0)
9918 ;
9919 return 0;
9920}
9921_ACEOF
9922if ac_fn_c_try_link "$LINENO"; then :
9923 ax_cv_check_cl_libcl=$ax_try_lib; break
9924else
9925 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"
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927/* end confdefs.h. */
9928
9929 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9930 # include <windows.h>
9931 # endif
9932 # ifdef HAVE_CL_CL_H
9933 # include <CL/cl.h>
9934 # elif defined(HAVE_OPENCL_CL_H)
9935 # include <OpenCL/cl.h>
9936 # else
9937 # error no CL.h
9938 # endif
9939int
9940main ()
9941{
9942clCreateContextFromType(0,0,0,0,0)
9943 ;
9944 return 0;
9945}
9946_ACEOF
9947if ac_fn_c_try_link "$LINENO"; then :
9948 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9949else
cristy78c5a0c2010-12-04 20:00:59 +00009950 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 +00009951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952/* end confdefs.h. */
9953
9954 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9955 # include <windows.h>
9956 # endif
9957 # ifdef HAVE_CL_CL_H
9958 # include <CL/cl.h>
9959 # elif defined(HAVE_OPENCL_CL_H)
9960 # include <OpenCL/cl.h>
9961 # else
9962 # error no CL.h
9963 # endif
9964int
9965main ()
9966{
9967clCreateContextFromType(0,0,0,0,0)
9968 ;
9969 return 0;
9970}
9971_ACEOF
9972if ac_fn_c_try_link "$LINENO"; then :
9973 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +00009974else
9975 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"
9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977/* end confdefs.h. */
9978
9979 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9980 # include <windows.h>
9981 # endif
9982 # ifdef HAVE_CL_CL_H
9983 # include <CL/cl.h>
9984 # elif defined(HAVE_OPENCL_CL_H)
9985 # include <OpenCL/cl.h>
9986 # else
9987 # error no CL.h
9988 # endif
9989int
9990main ()
9991{
9992clCreateContextFromType(0,0,0,0,0)
9993 ;
9994 return 0;
9995}
9996_ACEOF
9997if ac_fn_c_try_link "$LINENO"; then :
9998 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
9999
10000fi
10001rm -f core conftest.err conftest.$ac_objext \
10002 conftest$ac_exeext conftest.$ac_ext
10003
10004
cristy73bd4a52010-10-05 11:24:23 +000010005fi
10006rm -f core conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008fi
10009rm -f core conftest.err conftest.$ac_objext \
10010 conftest$ac_exeext conftest.$ac_ext
10011fi
10012rm -f core conftest.err conftest.$ac_objext \
10013 conftest$ac_exeext conftest.$ac_ext
10014 done
10015
cristyc3f8b8e2011-12-22 14:55:16 +000010016 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010017 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019/* end confdefs.h. */
10020
10021 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10022 # include <windows.h>
10023 # endif
10024 # ifdef HAVE_CL_CL_H
10025 # include <CL/cl.h>
10026 # elif defined(HAVE_OPENCL_CL_H)
10027 # include <OpenCL/cl.h>
10028 # else
10029 # error no CL.h
10030 # endif
10031int
10032main ()
10033{
10034clCreateContextFromType(0,0,0,0,0)
10035 ;
10036 return 0;
10037}
10038_ACEOF
10039if ac_fn_c_try_link "$LINENO"; then :
10040 ax_cv_check_cl_libcl=$LIBS
10041fi
10042rm -f core conftest.err conftest.$ac_objext \
10043 conftest$ac_exeext conftest.$ac_ext
10044fi
10045
10046 LIBS=$ax_save_LIBS
10047 CPPFLAGS=$ax_save_CPPFLAGS
10048fi
10049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10050$as_echo "$ax_cv_check_cl_libcl" >&6; }
10051
10052 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10053 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10054else
10055 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10056$as_echo "#define _OPENCL 1" >>confdefs.h
10057
10058fi
10059 ac_ext=c
10060ac_cpp='$CPP $CPPFLAGS'
10061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10063ac_compiler_gnu=$ac_cv_c_compiler_gnu
10064
10065fi
10066
10067
10068
10069
cristyc7083c12009-10-14 03:16:55 +000010070CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010071CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010072LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010073
cristy391f1ce2010-09-09 17:23:28 +000010074if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010075 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010076 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10077 fi
cristyfd9dcd42010-08-08 18:07:02 +000010078fi
cristy2e8b51d2009-10-17 18:26:15 +000010079
cristy3ed852e2009-09-05 21:47:34 +000010080########
10081#
10082# Check for large file support
10083#
10084########
10085# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010086if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010087 enableval=$enable_largefile;
10088fi
10089
10090if test "$enable_largefile" != no; then
10091
cristy8b350f62009-11-15 23:12:43 +000010092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010093$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010094if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010095 $as_echo_n "(cached) " >&6
10096else
10097 ac_cv_sys_largefile_CC=no
10098 if test "$GCC" != yes; then
10099 ac_save_CC=$CC
10100 while :; do
10101 # IRIX 6.2 and later do not support large files by default,
10102 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010104/* end confdefs.h. */
10105#include <sys/types.h>
10106 /* Check that off_t can represent 2**63 - 1 correctly.
10107 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10108 since some C++ compilers masquerading as C compilers
10109 incorrectly reject 9223372036854775807. */
10110#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10111 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10112 && LARGE_OFF_T % 2147483647 == 1)
10113 ? 1 : -1];
10114int
10115main ()
10116{
10117
10118 ;
10119 return 0;
10120}
10121_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010122 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010123 break
cristy3ed852e2009-09-05 21:47:34 +000010124fi
cristy3ed852e2009-09-05 21:47:34 +000010125rm -f core conftest.err conftest.$ac_objext
10126 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010127 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010128 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010129fi
cristy3ed852e2009-09-05 21:47:34 +000010130rm -f core conftest.err conftest.$ac_objext
10131 break
10132 done
10133 CC=$ac_save_CC
10134 rm -f conftest.$ac_ext
10135 fi
10136fi
cristy8b350f62009-11-15 23:12:43 +000010137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010138$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10139 if test "$ac_cv_sys_largefile_CC" != no; then
10140 CC=$CC$ac_cv_sys_largefile_CC
10141 fi
10142
cristy8b350f62009-11-15 23:12:43 +000010143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010144$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010145if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010146 $as_echo_n "(cached) " >&6
10147else
10148 while :; do
cristy8b350f62009-11-15 23:12:43 +000010149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010150/* end confdefs.h. */
10151#include <sys/types.h>
10152 /* Check that off_t can represent 2**63 - 1 correctly.
10153 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10154 since some C++ compilers masquerading as C compilers
10155 incorrectly reject 9223372036854775807. */
10156#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10157 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10158 && LARGE_OFF_T % 2147483647 == 1)
10159 ? 1 : -1];
10160int
10161main ()
10162{
10163
10164 ;
10165 return 0;
10166}
10167_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010168if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010169 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010170fi
cristy3ed852e2009-09-05 21:47:34 +000010171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010173/* end confdefs.h. */
10174#define _FILE_OFFSET_BITS 64
10175#include <sys/types.h>
10176 /* Check that off_t can represent 2**63 - 1 correctly.
10177 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10178 since some C++ compilers masquerading as C compilers
10179 incorrectly reject 9223372036854775807. */
10180#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10181 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10182 && LARGE_OFF_T % 2147483647 == 1)
10183 ? 1 : -1];
10184int
10185main ()
10186{
10187
10188 ;
10189 return 0;
10190}
10191_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010192if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010193 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010194fi
cristy3ed852e2009-09-05 21:47:34 +000010195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10196 ac_cv_sys_file_offset_bits=unknown
10197 break
10198done
10199fi
cristy8b350f62009-11-15 23:12:43 +000010200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010201$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10202case $ac_cv_sys_file_offset_bits in #(
10203 no | unknown) ;;
10204 *)
10205cat >>confdefs.h <<_ACEOF
10206#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10207_ACEOF
10208;;
10209esac
10210rm -rf conftest*
10211 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010213$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010214if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010215 $as_echo_n "(cached) " >&6
10216else
10217 while :; do
cristy8b350f62009-11-15 23:12:43 +000010218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010219/* end confdefs.h. */
10220#include <sys/types.h>
10221 /* Check that off_t can represent 2**63 - 1 correctly.
10222 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10223 since some C++ compilers masquerading as C compilers
10224 incorrectly reject 9223372036854775807. */
10225#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10226 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10227 && LARGE_OFF_T % 2147483647 == 1)
10228 ? 1 : -1];
10229int
10230main ()
10231{
10232
10233 ;
10234 return 0;
10235}
10236_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010237if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010238 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010239fi
cristy3ed852e2009-09-05 21:47:34 +000010240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010242/* end confdefs.h. */
10243#define _LARGE_FILES 1
10244#include <sys/types.h>
10245 /* Check that off_t can represent 2**63 - 1 correctly.
10246 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10247 since some C++ compilers masquerading as C compilers
10248 incorrectly reject 9223372036854775807. */
10249#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10250 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10251 && LARGE_OFF_T % 2147483647 == 1)
10252 ? 1 : -1];
10253int
10254main ()
10255{
10256
10257 ;
10258 return 0;
10259}
10260_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010261if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010262 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010263fi
cristy3ed852e2009-09-05 21:47:34 +000010264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10265 ac_cv_sys_large_files=unknown
10266 break
10267done
10268fi
cristy8b350f62009-11-15 23:12:43 +000010269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010270$as_echo "$ac_cv_sys_large_files" >&6; }
10271case $ac_cv_sys_large_files in #(
10272 no | unknown) ;;
10273 *)
10274cat >>confdefs.h <<_ACEOF
10275#define _LARGE_FILES $ac_cv_sys_large_files
10276_ACEOF
10277;;
10278esac
10279rm -rf conftest*
10280 fi
cristy14fefe52012-05-21 00:59:18 +000010281
10282
cristy3ed852e2009-09-05 21:47:34 +000010283fi
10284
cristy8b350f62009-11-15 23:12:43 +000010285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010286$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010287if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010288 $as_echo_n "(cached) " >&6
10289else
10290 while :; do
cristy8b350f62009-11-15 23:12:43 +000010291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010292/* end confdefs.h. */
10293#include <sys/types.h> /* for off_t */
10294 #include <stdio.h>
10295int
10296main ()
10297{
10298int (*fp) (FILE *, off_t, int) = fseeko;
10299 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10300 ;
10301 return 0;
10302}
10303_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010304if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010305 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010306fi
cristy8b350f62009-11-15 23:12:43 +000010307rm -f core conftest.err conftest.$ac_objext \
10308 conftest$ac_exeext conftest.$ac_ext
10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010310/* end confdefs.h. */
10311#define _LARGEFILE_SOURCE 1
10312#include <sys/types.h> /* for off_t */
10313 #include <stdio.h>
10314int
10315main ()
10316{
10317int (*fp) (FILE *, off_t, int) = fseeko;
10318 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10319 ;
10320 return 0;
10321}
10322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010323if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010324 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010325fi
cristy8b350f62009-11-15 23:12:43 +000010326rm -f core conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010328 ac_cv_sys_largefile_source=unknown
10329 break
10330done
10331fi
cristy8b350f62009-11-15 23:12:43 +000010332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010333$as_echo "$ac_cv_sys_largefile_source" >&6; }
10334case $ac_cv_sys_largefile_source in #(
10335 no | unknown) ;;
10336 *)
10337cat >>confdefs.h <<_ACEOF
10338#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10339_ACEOF
10340;;
10341esac
10342rm -rf conftest*
10343
10344# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10345# in glibc 2.1.3, but that breaks too many other things.
10346# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10347if test $ac_cv_sys_largefile_source != unknown; then
10348
cristy8b350f62009-11-15 23:12:43 +000010349$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010350
10351fi
10352
10353LFS_CPPFLAGS=''
10354if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010355 case $ac_cv_sys_file_offset_bits in
10356 no)
10357 # nothing to do here as the host supports LFS fine
10358 ;;
10359 unknown)
cristy8b350f62009-11-15 23:12:43 +000010360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010361$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010362 if test "$cross_compiling" = yes; then :
10363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010365as_fn_error $? "cannot run test program while cross compiling
10366See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010367else
cristy8b350f62009-11-15 23:12:43 +000010368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10369/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010370#include <unistd.h>
10371 main () {
10372 exit(!(sizeof(off_t) == 8));
10373 }
cristyda16f162011-02-19 23:52:17 +000010374int
10375main ()
10376{
10377
10378 ;
10379 return 0;
10380}
cristy3ed852e2009-09-05 21:47:34 +000010381_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010382if ac_fn_c_try_run "$LINENO"; then :
10383 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010384
cristyad38abe2012-12-23 23:03:21 +000010385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10386$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010387else
cristyad38abe2012-12-23 23:03:21 +000010388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10389$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010390fi
cristy8b350f62009-11-15 23:12:43 +000010391rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10392 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010393fi
10394
cristyc1e0cc12011-09-21 16:41:16 +000010395 ;;
10396 *)
10397 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10398 ;;
10399 esac
cristy3ed852e2009-09-05 21:47:34 +000010400 if test "$ac_cv_sys_large_files" != 'no'; then
10401 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10402 fi
10403 if test "$ac_cv_sys_largefile_source" != 'no'; then
10404 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10405 fi
10406fi
10407
10408
cristy3ed852e2009-09-05 21:47:34 +000010409# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010410enable_dlopen=yes
10411
10412
10413
10414case `pwd` in
10415 *\ * | *\ *)
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10417$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10418esac
10419
10420
10421
cristy99bd5232011-12-07 14:38:20 +000010422macro_version='2.4.2'
10423macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437ltmain="$ac_aux_dir/ltmain.sh"
10438
cristy0c60a692010-11-04 01:09:47 +000010439# Backslashify metacharacters that are still active within
10440# double-quoted strings.
10441sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10442
10443# Same as above, but do not quote variable references.
10444double_quote_subst='s/\(["`\\]\)/\\\1/g'
10445
10446# Sed substitution to delay expansion of an escaped shell variable in a
10447# double_quote_subst'ed string.
10448delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10449
10450# Sed substitution to delay expansion of an escaped single quote.
10451delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10452
10453# Sed substitution to avoid accidental globbing in evaled expressions
10454no_glob_subst='s/\*/\\\*/g'
10455
cristy73bd4a52010-10-05 11:24:23 +000010456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10457$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010458if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010459 $as_echo_n "(cached) " >&6
10460else
10461 if test -n "$NM"; then
10462 # Let the user override the test.
10463 lt_cv_path_NM="$NM"
10464else
10465 lt_nm_to_check="${ac_tool_prefix}nm"
10466 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10467 lt_nm_to_check="$lt_nm_to_check nm"
10468 fi
10469 for lt_tmp_nm in $lt_nm_to_check; do
10470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10471 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10472 IFS="$lt_save_ifs"
10473 test -z "$ac_dir" && ac_dir=.
10474 tmp_nm="$ac_dir/$lt_tmp_nm"
10475 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10476 # Check to see if the nm accepts a BSD-compat flag.
10477 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10478 # nm: unknown option "B" ignored
10479 # Tru64's nm complains that /dev/null is an invalid object file
10480 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10481 */dev/null* | *'Invalid file or object type'*)
10482 lt_cv_path_NM="$tmp_nm -B"
10483 break
10484 ;;
10485 *)
10486 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10487 */dev/null*)
10488 lt_cv_path_NM="$tmp_nm -p"
10489 break
10490 ;;
10491 *)
10492 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10493 continue # so that we can try to find one that supports BSD flags
10494 ;;
10495 esac
10496 ;;
10497 esac
10498 fi
10499 done
10500 IFS="$lt_save_ifs"
10501 done
10502 : ${lt_cv_path_NM=no}
10503fi
10504fi
10505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10506$as_echo "$lt_cv_path_NM" >&6; }
10507if test "$lt_cv_path_NM" != "no"; then
10508 NM="$lt_cv_path_NM"
10509else
10510 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010511 if test -n "$DUMPBIN"; then :
10512 # Let the user override the test.
10513 else
10514 if test -n "$ac_tool_prefix"; then
10515 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010516 do
10517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10518set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10520$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010521if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010522 $as_echo_n "(cached) " >&6
10523else
10524 if test -n "$DUMPBIN"; then
10525 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10526else
10527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528for as_dir in $PATH
10529do
10530 IFS=$as_save_IFS
10531 test -z "$as_dir" && as_dir=.
10532 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010534 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10536 break 2
10537 fi
10538done
10539 done
10540IFS=$as_save_IFS
10541
10542fi
10543fi
10544DUMPBIN=$ac_cv_prog_DUMPBIN
10545if test -n "$DUMPBIN"; then
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10547$as_echo "$DUMPBIN" >&6; }
10548else
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10550$as_echo "no" >&6; }
10551fi
10552
10553
10554 test -n "$DUMPBIN" && break
10555 done
10556fi
10557if test -z "$DUMPBIN"; then
10558 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010559 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010560do
10561 # Extract the first word of "$ac_prog", so it can be a program name with args.
10562set dummy $ac_prog; ac_word=$2
10563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10564$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010565if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010566 $as_echo_n "(cached) " >&6
10567else
10568 if test -n "$ac_ct_DUMPBIN"; then
10569 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10570else
10571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572for as_dir in $PATH
10573do
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010578 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 break 2
10581 fi
10582done
10583 done
10584IFS=$as_save_IFS
10585
10586fi
10587fi
10588ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10589if test -n "$ac_ct_DUMPBIN"; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10591$as_echo "$ac_ct_DUMPBIN" >&6; }
10592else
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594$as_echo "no" >&6; }
10595fi
10596
10597
10598 test -n "$ac_ct_DUMPBIN" && break
10599done
10600
10601 if test "x$ac_ct_DUMPBIN" = x; then
10602 DUMPBIN=":"
10603 else
10604 case $cross_compiling:$ac_tool_warned in
10605yes:)
10606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10608ac_tool_warned=yes ;;
10609esac
10610 DUMPBIN=$ac_ct_DUMPBIN
10611 fi
10612fi
10613
cristy0c60a692010-11-04 01:09:47 +000010614 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10615 *COFF*)
10616 DUMPBIN="$DUMPBIN -symbols"
10617 ;;
10618 *)
10619 DUMPBIN=:
10620 ;;
10621 esac
10622 fi
cristy73bd4a52010-10-05 11:24:23 +000010623
10624 if test "$DUMPBIN" != ":"; then
10625 NM="$DUMPBIN"
10626 fi
10627fi
10628test -z "$NM" && NM=nm
10629
10630
10631
10632
10633
10634
10635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10636$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010637if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010638 $as_echo_n "(cached) " >&6
10639else
10640 lt_cv_nm_interface="BSD nm"
10641 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010642 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010643 (eval "$ac_compile" 2>conftest.err)
10644 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010645 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010646 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10647 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010648 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010649 cat conftest.out >&5
10650 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10651 lt_cv_nm_interface="MS dumpbin"
10652 fi
10653 rm -f conftest*
10654fi
10655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10656$as_echo "$lt_cv_nm_interface" >&6; }
10657
10658# find the maximum length of command line arguments
10659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10660$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010661if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010662 $as_echo_n "(cached) " >&6
10663else
10664 i=0
10665 teststring="ABCD"
10666
10667 case $build_os in
10668 msdosdjgpp*)
10669 # On DJGPP, this test can blow up pretty badly due to problems in libc
10670 # (any single argument exceeding 2000 bytes causes a buffer overrun
10671 # during glob expansion). Even if it were fixed, the result of this
10672 # check would be larger than it should be.
10673 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10674 ;;
10675
10676 gnu*)
10677 # Under GNU Hurd, this test is not required because there is
10678 # no limit to the length of command line arguments.
10679 # Libtool will interpret -1 as no limit whatsoever
10680 lt_cv_sys_max_cmd_len=-1;
10681 ;;
10682
10683 cygwin* | mingw* | cegcc*)
10684 # On Win9x/ME, this test blows up -- it succeeds, but takes
10685 # about 5 minutes as the teststring grows exponentially.
10686 # Worse, since 9x/ME are not pre-emptively multitasking,
10687 # you end up with a "frozen" computer, even though with patience
10688 # the test eventually succeeds (with a max line length of 256k).
10689 # Instead, let's just punt: use the minimum linelength reported by
10690 # all of the supported platforms: 8192 (on NT/2K/XP).
10691 lt_cv_sys_max_cmd_len=8192;
10692 ;;
10693
cristy0c60a692010-11-04 01:09:47 +000010694 mint*)
10695 # On MiNT this can take a long time and run out of memory.
10696 lt_cv_sys_max_cmd_len=8192;
10697 ;;
10698
cristy73bd4a52010-10-05 11:24:23 +000010699 amigaos*)
10700 # On AmigaOS with pdksh, this test takes hours, literally.
10701 # So we just punt and use a minimum line length of 8192.
10702 lt_cv_sys_max_cmd_len=8192;
10703 ;;
10704
10705 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10706 # This has been around since 386BSD, at least. Likely further.
10707 if test -x /sbin/sysctl; then
10708 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10709 elif test -x /usr/sbin/sysctl; then
10710 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10711 else
10712 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10713 fi
10714 # And add a safety zone
10715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10717 ;;
10718
10719 interix*)
10720 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10721 lt_cv_sys_max_cmd_len=196608
10722 ;;
10723
cristy99bd5232011-12-07 14:38:20 +000010724 os2*)
10725 # The test takes a long time on OS/2.
10726 lt_cv_sys_max_cmd_len=8192
10727 ;;
10728
cristy73bd4a52010-10-05 11:24:23 +000010729 osf*)
10730 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10731 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10732 # nice to cause kernel panics so lets avoid the loop below.
10733 # First set a reasonable default.
10734 lt_cv_sys_max_cmd_len=16384
10735 #
10736 if test -x /sbin/sysconfig; then
10737 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10738 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10739 esac
10740 fi
10741 ;;
10742 sco3.2v5*)
10743 lt_cv_sys_max_cmd_len=102400
10744 ;;
10745 sysv5* | sco5v6* | sysv4.2uw2*)
10746 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10747 if test -n "$kargmax"; then
10748 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10749 else
10750 lt_cv_sys_max_cmd_len=32768
10751 fi
10752 ;;
10753 *)
10754 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10755 if test -n "$lt_cv_sys_max_cmd_len"; then
10756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10758 else
10759 # Make teststring a little bigger before we do anything with it.
10760 # a 1K string should be a reasonable start.
10761 for i in 1 2 3 4 5 6 7 8 ; do
10762 teststring=$teststring$teststring
10763 done
10764 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10765 # If test is not a shell built-in, we'll probably end up computing a
10766 # maximum length that is only half of the actual maximum length, but
10767 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010768 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010769 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010770 test $i != 17 # 1/2 MB should be enough
10771 do
10772 i=`expr $i + 1`
10773 teststring=$teststring$teststring
10774 done
10775 # Only check the string length outside the loop.
10776 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10777 teststring=
10778 # Add a significant safety factor because C++ compilers can tack on
10779 # massive amounts of additional arguments before passing them to the
10780 # linker. It appears as though 1/2 is a usable value.
10781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10782 fi
10783 ;;
10784 esac
10785
10786fi
10787
10788if test -n $lt_cv_sys_max_cmd_len ; then
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10790$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10791else
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10793$as_echo "none" >&6; }
10794fi
10795max_cmd_len=$lt_cv_sys_max_cmd_len
10796
10797
10798
10799
10800
10801
10802: ${CP="cp -f"}
10803: ${MV="mv -f"}
10804: ${RM="rm -f"}
10805
10806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10807$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10808# Try some XSI features
10809xsi_shell=no
10810( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010811 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10812 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010813 && eval 'test $(( 1 + 1 )) -eq 2 \
10814 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10815 && xsi_shell=yes
10816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10817$as_echo "$xsi_shell" >&6; }
10818
10819
10820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10821$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10822lt_shell_append=no
10823( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10824 >/dev/null 2>&1 \
10825 && lt_shell_append=yes
10826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10827$as_echo "$lt_shell_append" >&6; }
10828
10829
10830if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10831 lt_unset=unset
10832else
10833 lt_unset=false
10834fi
10835
10836
10837
10838
10839
10840# test EBCDIC or ASCII
10841case `echo X|tr X '\101'` in
10842 A) # ASCII based system
10843 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10844 lt_SP2NL='tr \040 \012'
10845 lt_NL2SP='tr \015\012 \040\040'
10846 ;;
10847 *) # EBCDIC based system
10848 lt_SP2NL='tr \100 \n'
10849 lt_NL2SP='tr \r\n \100\100'
10850 ;;
10851esac
10852
10853
10854
10855
10856
10857
10858
10859
10860
cristyda16f162011-02-19 23:52:17 +000010861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10862$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10863if ${lt_cv_to_host_file_cmd+:} false; then :
10864 $as_echo_n "(cached) " >&6
10865else
10866 case $host in
10867 *-*-mingw* )
10868 case $build in
10869 *-*-mingw* ) # actually msys
10870 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10871 ;;
10872 *-*-cygwin* )
10873 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10874 ;;
10875 * ) # otherwise, assume *nix
10876 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10877 ;;
10878 esac
10879 ;;
10880 *-*-cygwin* )
10881 case $build in
10882 *-*-mingw* ) # actually msys
10883 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10884 ;;
10885 *-*-cygwin* )
10886 lt_cv_to_host_file_cmd=func_convert_file_noop
10887 ;;
10888 * ) # otherwise, assume *nix
10889 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10890 ;;
10891 esac
10892 ;;
10893 * ) # unhandled hosts (and "normal" native builds)
10894 lt_cv_to_host_file_cmd=func_convert_file_noop
10895 ;;
10896esac
10897
10898fi
10899
10900to_host_file_cmd=$lt_cv_to_host_file_cmd
10901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10902$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10903
10904
10905
10906
10907
10908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10909$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10910if ${lt_cv_to_tool_file_cmd+:} false; then :
10911 $as_echo_n "(cached) " >&6
10912else
10913 #assume ordinary cross tools, or native build.
10914lt_cv_to_tool_file_cmd=func_convert_file_noop
10915case $host in
10916 *-*-mingw* )
10917 case $build in
10918 *-*-mingw* ) # actually msys
10919 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10920 ;;
10921 esac
10922 ;;
10923esac
10924
10925fi
10926
10927to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10929$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10930
10931
10932
10933
10934
cristy73bd4a52010-10-05 11:24:23 +000010935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10936$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010937if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010938 $as_echo_n "(cached) " >&6
10939else
10940 lt_cv_ld_reload_flag='-r'
10941fi
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10943$as_echo "$lt_cv_ld_reload_flag" >&6; }
10944reload_flag=$lt_cv_ld_reload_flag
10945case $reload_flag in
10946"" | " "*) ;;
10947*) reload_flag=" $reload_flag" ;;
10948esac
10949reload_cmds='$LD$reload_flag -o $output$reload_objs'
10950case $host_os in
cristyda16f162011-02-19 23:52:17 +000010951 cygwin* | mingw* | pw32* | cegcc*)
10952 if test "$GCC" != yes; then
10953 reload_cmds=false
10954 fi
10955 ;;
cristy73bd4a52010-10-05 11:24:23 +000010956 darwin*)
10957 if test "$GCC" = yes; then
10958 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10959 else
10960 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10961 fi
10962 ;;
10963esac
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973if test -n "$ac_tool_prefix"; then
10974 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10975set dummy ${ac_tool_prefix}objdump; ac_word=$2
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010978if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010979 $as_echo_n "(cached) " >&6
10980else
10981 if test -n "$OBJDUMP"; then
10982 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10983else
10984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985for as_dir in $PATH
10986do
10987 IFS=$as_save_IFS
10988 test -z "$as_dir" && as_dir=.
10989 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010991 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993 break 2
10994 fi
10995done
10996 done
10997IFS=$as_save_IFS
10998
10999fi
11000fi
11001OBJDUMP=$ac_cv_prog_OBJDUMP
11002if test -n "$OBJDUMP"; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11004$as_echo "$OBJDUMP" >&6; }
11005else
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007$as_echo "no" >&6; }
11008fi
11009
11010
11011fi
11012if test -z "$ac_cv_prog_OBJDUMP"; then
11013 ac_ct_OBJDUMP=$OBJDUMP
11014 # Extract the first word of "objdump", so it can be a program name with args.
11015set dummy objdump; ac_word=$2
11016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011018if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011019 $as_echo_n "(cached) " >&6
11020else
11021 if test -n "$ac_ct_OBJDUMP"; then
11022 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11023else
11024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025for as_dir in $PATH
11026do
11027 IFS=$as_save_IFS
11028 test -z "$as_dir" && as_dir=.
11029 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011031 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11033 break 2
11034 fi
11035done
11036 done
11037IFS=$as_save_IFS
11038
11039fi
11040fi
11041ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11042if test -n "$ac_ct_OBJDUMP"; then
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11044$as_echo "$ac_ct_OBJDUMP" >&6; }
11045else
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047$as_echo "no" >&6; }
11048fi
11049
11050 if test "x$ac_ct_OBJDUMP" = x; then
11051 OBJDUMP="false"
11052 else
11053 case $cross_compiling:$ac_tool_warned in
11054yes:)
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11057ac_tool_warned=yes ;;
11058esac
11059 OBJDUMP=$ac_ct_OBJDUMP
11060 fi
11061else
11062 OBJDUMP="$ac_cv_prog_OBJDUMP"
11063fi
11064
11065test -z "$OBJDUMP" && OBJDUMP=objdump
11066
11067
11068
11069
11070
11071
11072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11073$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011074if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011075 $as_echo_n "(cached) " >&6
11076else
11077 lt_cv_file_magic_cmd='$MAGIC_CMD'
11078lt_cv_file_magic_test_file=
11079lt_cv_deplibs_check_method='unknown'
11080# Need to set the preceding variable on all platforms that support
11081# interlibrary dependencies.
11082# 'none' -- dependencies not supported.
11083# `unknown' -- same as none, but documents that we really don't know.
11084# 'pass_all' -- all dependencies passed with no checks.
11085# 'test_compile' -- check by making test program.
11086# 'file_magic [[regex]]' -- check by looking for files in library path
11087# which responds to the $file_magic_cmd with a given extended regex.
11088# If you have `file' or equivalent on your system and you're not sure
11089# whether `pass_all' will *always* work, you probably want this one.
11090
11091case $host_os in
11092aix[4-9]*)
11093 lt_cv_deplibs_check_method=pass_all
11094 ;;
11095
11096beos*)
11097 lt_cv_deplibs_check_method=pass_all
11098 ;;
11099
11100bsdi[45]*)
11101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11102 lt_cv_file_magic_cmd='/usr/bin/file -L'
11103 lt_cv_file_magic_test_file=/shlib/libc.so
11104 ;;
11105
11106cygwin*)
11107 # func_win32_libid is a shell function defined in ltmain.sh
11108 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11109 lt_cv_file_magic_cmd='func_win32_libid'
11110 ;;
11111
11112mingw* | pw32*)
11113 # Base MSYS/MinGW do not provide the 'file' command needed by
11114 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11115 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011116 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11117 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011118 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11119 lt_cv_file_magic_cmd='func_win32_libid'
11120 else
cristy0c60a692010-11-04 01:09:47 +000011121 # Keep this pattern in sync with the one in func_win32_libid.
11122 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 +000011123 lt_cv_file_magic_cmd='$OBJDUMP -f'
11124 fi
11125 ;;
11126
cristy0c60a692010-11-04 01:09:47 +000011127cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011128 # use the weaker test based on 'objdump'. See mingw*.
11129 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11130 lt_cv_file_magic_cmd='$OBJDUMP -f'
11131 ;;
11132
11133darwin* | rhapsody*)
11134 lt_cv_deplibs_check_method=pass_all
11135 ;;
11136
11137freebsd* | dragonfly*)
11138 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11139 case $host_cpu in
11140 i*86 )
11141 # Not sure whether the presence of OpenBSD here was a mistake.
11142 # Let's accept both of them until this is cleared up.
11143 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11144 lt_cv_file_magic_cmd=/usr/bin/file
11145 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11146 ;;
11147 esac
11148 else
11149 lt_cv_deplibs_check_method=pass_all
11150 fi
11151 ;;
11152
11153gnu*)
11154 lt_cv_deplibs_check_method=pass_all
11155 ;;
11156
cristy0c60a692010-11-04 01:09:47 +000011157haiku*)
11158 lt_cv_deplibs_check_method=pass_all
11159 ;;
11160
cristy73bd4a52010-10-05 11:24:23 +000011161hpux10.20* | hpux11*)
11162 lt_cv_file_magic_cmd=/usr/bin/file
11163 case $host_cpu in
11164 ia64*)
11165 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11166 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11167 ;;
11168 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011169 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 +000011170 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11171 ;;
11172 *)
cristy0c60a692010-11-04 01:09:47 +000011173 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 +000011174 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11175 ;;
11176 esac
11177 ;;
11178
11179interix[3-9]*)
11180 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11182 ;;
11183
11184irix5* | irix6* | nonstopux*)
11185 case $LD in
11186 *-32|*"-32 ") libmagic=32-bit;;
11187 *-n32|*"-n32 ") libmagic=N32;;
11188 *-64|*"-64 ") libmagic=64-bit;;
11189 *) libmagic=never-match;;
11190 esac
11191 lt_cv_deplibs_check_method=pass_all
11192 ;;
11193
cristy99bd5232011-12-07 14:38:20 +000011194# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011195linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011196 lt_cv_deplibs_check_method=pass_all
11197 ;;
11198
11199netbsd*)
11200 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11202 else
11203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11204 fi
11205 ;;
11206
11207newos6*)
11208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11209 lt_cv_file_magic_cmd=/usr/bin/file
11210 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11211 ;;
11212
11213*nto* | *qnx*)
11214 lt_cv_deplibs_check_method=pass_all
11215 ;;
11216
11217openbsd*)
11218 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11220 else
11221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11222 fi
11223 ;;
11224
11225osf3* | osf4* | osf5*)
11226 lt_cv_deplibs_check_method=pass_all
11227 ;;
11228
11229rdos*)
11230 lt_cv_deplibs_check_method=pass_all
11231 ;;
11232
11233solaris*)
11234 lt_cv_deplibs_check_method=pass_all
11235 ;;
11236
11237sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11238 lt_cv_deplibs_check_method=pass_all
11239 ;;
11240
11241sysv4 | sysv4.3*)
11242 case $host_vendor in
11243 motorola)
11244 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]'
11245 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11246 ;;
11247 ncr)
11248 lt_cv_deplibs_check_method=pass_all
11249 ;;
11250 sequent)
11251 lt_cv_file_magic_cmd='/bin/file'
11252 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11253 ;;
11254 sni)
11255 lt_cv_file_magic_cmd='/bin/file'
11256 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11257 lt_cv_file_magic_test_file=/lib/libc.so
11258 ;;
11259 siemens)
11260 lt_cv_deplibs_check_method=pass_all
11261 ;;
11262 pc)
11263 lt_cv_deplibs_check_method=pass_all
11264 ;;
11265 esac
11266 ;;
11267
11268tpf*)
11269 lt_cv_deplibs_check_method=pass_all
11270 ;;
11271esac
11272
11273fi
11274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11275$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011276
11277file_magic_glob=
11278want_nocaseglob=no
11279if test "$build" = "$host"; then
11280 case $host_os in
11281 mingw* | pw32*)
11282 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11283 want_nocaseglob=yes
11284 else
11285 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11286 fi
11287 ;;
11288 esac
11289fi
11290
cristy73bd4a52010-10-05 11:24:23 +000011291file_magic_cmd=$lt_cv_file_magic_cmd
11292deplibs_check_method=$lt_cv_deplibs_check_method
11293test -z "$deplibs_check_method" && deplibs_check_method=unknown
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
cristyda16f162011-02-19 23:52:17 +000011306
11307
11308
11309
11310
11311
11312
11313
11314
11315
cristy73bd4a52010-10-05 11:24:23 +000011316if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011317 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11318set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11320$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011321if ${ac_cv_prog_DLLTOOL+:} false; then :
11322 $as_echo_n "(cached) " >&6
11323else
11324 if test -n "$DLLTOOL"; then
11325 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11326else
11327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328for as_dir in $PATH
11329do
11330 IFS=$as_save_IFS
11331 test -z "$as_dir" && as_dir=.
11332 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011334 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11336 break 2
11337 fi
11338done
11339 done
11340IFS=$as_save_IFS
11341
11342fi
11343fi
11344DLLTOOL=$ac_cv_prog_DLLTOOL
11345if test -n "$DLLTOOL"; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11347$as_echo "$DLLTOOL" >&6; }
11348else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350$as_echo "no" >&6; }
11351fi
11352
11353
11354fi
11355if test -z "$ac_cv_prog_DLLTOOL"; then
11356 ac_ct_DLLTOOL=$DLLTOOL
11357 # Extract the first word of "dlltool", so it can be a program name with args.
11358set dummy dlltool; ac_word=$2
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11360$as_echo_n "checking for $ac_word... " >&6; }
11361if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11362 $as_echo_n "(cached) " >&6
11363else
11364 if test -n "$ac_ct_DLLTOOL"; then
11365 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11366else
11367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11368for as_dir in $PATH
11369do
11370 IFS=$as_save_IFS
11371 test -z "$as_dir" && as_dir=.
11372 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011374 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11376 break 2
11377 fi
11378done
11379 done
11380IFS=$as_save_IFS
11381
11382fi
11383fi
11384ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11385if test -n "$ac_ct_DLLTOOL"; then
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11387$as_echo "$ac_ct_DLLTOOL" >&6; }
11388else
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390$as_echo "no" >&6; }
11391fi
11392
11393 if test "x$ac_ct_DLLTOOL" = x; then
11394 DLLTOOL="false"
11395 else
11396 case $cross_compiling:$ac_tool_warned in
11397yes:)
11398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11400ac_tool_warned=yes ;;
11401esac
11402 DLLTOOL=$ac_ct_DLLTOOL
11403 fi
11404else
11405 DLLTOOL="$ac_cv_prog_DLLTOOL"
11406fi
11407
11408test -z "$DLLTOOL" && DLLTOOL=dlltool
11409
11410
11411
11412
11413
11414
11415
11416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11417$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11418if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11419 $as_echo_n "(cached) " >&6
11420else
11421 lt_cv_sharedlib_from_linklib_cmd='unknown'
11422
11423case $host_os in
11424cygwin* | mingw* | pw32* | cegcc*)
11425 # two different shell functions defined in ltmain.sh
11426 # decide which to use based on capabilities of $DLLTOOL
11427 case `$DLLTOOL --help 2>&1` in
11428 *--identify-strict*)
11429 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11430 ;;
11431 *)
11432 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11433 ;;
11434 esac
11435 ;;
11436*)
11437 # fallback: assume linklib IS sharedlib
11438 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11439 ;;
11440esac
11441
11442fi
11443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11444$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11445sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11446test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11447
11448
11449
11450
11451
11452
11453
11454if test -n "$ac_tool_prefix"; then
11455 for ac_prog in ar
11456 do
11457 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11458set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11460$as_echo_n "checking for $ac_word... " >&6; }
11461if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011462 $as_echo_n "(cached) " >&6
11463else
11464 if test -n "$AR"; then
11465 ac_cv_prog_AR="$AR" # Let the user override the test.
11466else
11467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468for as_dir in $PATH
11469do
11470 IFS=$as_save_IFS
11471 test -z "$as_dir" && as_dir=.
11472 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011474 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11476 break 2
11477 fi
11478done
11479 done
11480IFS=$as_save_IFS
11481
11482fi
11483fi
11484AR=$ac_cv_prog_AR
11485if test -n "$AR"; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11487$as_echo "$AR" >&6; }
11488else
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490$as_echo "no" >&6; }
11491fi
11492
11493
cristyda16f162011-02-19 23:52:17 +000011494 test -n "$AR" && break
11495 done
cristy73bd4a52010-10-05 11:24:23 +000011496fi
cristyda16f162011-02-19 23:52:17 +000011497if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011498 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011499 for ac_prog in ar
11500do
11501 # Extract the first word of "$ac_prog", so it can be a program name with args.
11502set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11504$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011505if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011506 $as_echo_n "(cached) " >&6
11507else
11508 if test -n "$ac_ct_AR"; then
11509 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11510else
11511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512for as_dir in $PATH
11513do
11514 IFS=$as_save_IFS
11515 test -z "$as_dir" && as_dir=.
11516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011518 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11520 break 2
11521 fi
11522done
11523 done
11524IFS=$as_save_IFS
11525
11526fi
11527fi
11528ac_ct_AR=$ac_cv_prog_ac_ct_AR
11529if test -n "$ac_ct_AR"; then
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11531$as_echo "$ac_ct_AR" >&6; }
11532else
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534$as_echo "no" >&6; }
11535fi
11536
cristyda16f162011-02-19 23:52:17 +000011537
11538 test -n "$ac_ct_AR" && break
11539done
11540
cristy73bd4a52010-10-05 11:24:23 +000011541 if test "x$ac_ct_AR" = x; then
11542 AR="false"
11543 else
11544 case $cross_compiling:$ac_tool_warned in
11545yes:)
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11548ac_tool_warned=yes ;;
11549esac
11550 AR=$ac_ct_AR
11551 fi
cristy73bd4a52010-10-05 11:24:23 +000011552fi
11553
cristyda16f162011-02-19 23:52:17 +000011554: ${AR=ar}
11555: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
cristyda16f162011-02-19 23:52:17 +000011567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11568$as_echo_n "checking for archiver @FILE support... " >&6; }
11569if ${lt_cv_ar_at_file+:} false; then :
11570 $as_echo_n "(cached) " >&6
11571else
11572 lt_cv_ar_at_file=no
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574/* end confdefs.h. */
11575
11576int
11577main ()
11578{
11579
11580 ;
11581 return 0;
11582}
11583_ACEOF
11584if ac_fn_c_try_compile "$LINENO"; then :
11585 echo conftest.$ac_objext > conftest.lst
11586 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11588 (eval $lt_ar_try) 2>&5
11589 ac_status=$?
11590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11591 test $ac_status = 0; }
11592 if test "$ac_status" -eq 0; then
11593 # Ensure the archiver fails upon bogus file names.
11594 rm -f conftest.$ac_objext libconftest.a
11595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11596 (eval $lt_ar_try) 2>&5
11597 ac_status=$?
11598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11599 test $ac_status = 0; }
11600 if test "$ac_status" -ne 0; then
11601 lt_cv_ar_at_file=@
11602 fi
11603 fi
11604 rm -f conftest.* libconftest.a
11605
11606fi
11607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11608
11609fi
11610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11611$as_echo "$lt_cv_ar_at_file" >&6; }
11612
11613if test "x$lt_cv_ar_at_file" = xno; then
11614 archiver_list_spec=
11615else
11616 archiver_list_spec=$lt_cv_ar_at_file
11617fi
11618
11619
11620
11621
11622
11623
11624
cristy73bd4a52010-10-05 11:24:23 +000011625if test -n "$ac_tool_prefix"; then
11626 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11627set dummy ${ac_tool_prefix}strip; ac_word=$2
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11629$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011630if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011631 $as_echo_n "(cached) " >&6
11632else
11633 if test -n "$STRIP"; then
11634 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11635else
11636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11637for as_dir in $PATH
11638do
11639 IFS=$as_save_IFS
11640 test -z "$as_dir" && as_dir=.
11641 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011643 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11645 break 2
11646 fi
11647done
11648 done
11649IFS=$as_save_IFS
11650
11651fi
11652fi
11653STRIP=$ac_cv_prog_STRIP
11654if test -n "$STRIP"; then
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11656$as_echo "$STRIP" >&6; }
11657else
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659$as_echo "no" >&6; }
11660fi
11661
11662
11663fi
11664if test -z "$ac_cv_prog_STRIP"; then
11665 ac_ct_STRIP=$STRIP
11666 # Extract the first word of "strip", so it can be a program name with args.
11667set dummy strip; ac_word=$2
11668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11669$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011670if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011671 $as_echo_n "(cached) " >&6
11672else
11673 if test -n "$ac_ct_STRIP"; then
11674 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11675else
11676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11677for as_dir in $PATH
11678do
11679 IFS=$as_save_IFS
11680 test -z "$as_dir" && as_dir=.
11681 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011683 ac_cv_prog_ac_ct_STRIP="strip"
11684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11685 break 2
11686 fi
11687done
11688 done
11689IFS=$as_save_IFS
11690
11691fi
11692fi
11693ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11694if test -n "$ac_ct_STRIP"; then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11696$as_echo "$ac_ct_STRIP" >&6; }
11697else
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699$as_echo "no" >&6; }
11700fi
11701
11702 if test "x$ac_ct_STRIP" = x; then
11703 STRIP=":"
11704 else
11705 case $cross_compiling:$ac_tool_warned in
11706yes:)
11707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11709ac_tool_warned=yes ;;
11710esac
11711 STRIP=$ac_ct_STRIP
11712 fi
11713else
11714 STRIP="$ac_cv_prog_STRIP"
11715fi
11716
11717test -z "$STRIP" && STRIP=:
11718
11719
11720
11721
11722
11723
11724if test -n "$ac_tool_prefix"; then
11725 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11726set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11728$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011729if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011730 $as_echo_n "(cached) " >&6
11731else
11732 if test -n "$RANLIB"; then
11733 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11734else
11735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11736for as_dir in $PATH
11737do
11738 IFS=$as_save_IFS
11739 test -z "$as_dir" && as_dir=.
11740 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011742 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11744 break 2
11745 fi
11746done
11747 done
11748IFS=$as_save_IFS
11749
11750fi
11751fi
11752RANLIB=$ac_cv_prog_RANLIB
11753if test -n "$RANLIB"; then
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11755$as_echo "$RANLIB" >&6; }
11756else
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758$as_echo "no" >&6; }
11759fi
11760
11761
11762fi
11763if test -z "$ac_cv_prog_RANLIB"; then
11764 ac_ct_RANLIB=$RANLIB
11765 # Extract the first word of "ranlib", so it can be a program name with args.
11766set dummy ranlib; ac_word=$2
11767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11768$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011769if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011770 $as_echo_n "(cached) " >&6
11771else
11772 if test -n "$ac_ct_RANLIB"; then
11773 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11774else
11775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776for as_dir in $PATH
11777do
11778 IFS=$as_save_IFS
11779 test -z "$as_dir" && as_dir=.
11780 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011782 ac_cv_prog_ac_ct_RANLIB="ranlib"
11783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11784 break 2
11785 fi
11786done
11787 done
11788IFS=$as_save_IFS
11789
11790fi
11791fi
11792ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11793if test -n "$ac_ct_RANLIB"; then
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11795$as_echo "$ac_ct_RANLIB" >&6; }
11796else
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798$as_echo "no" >&6; }
11799fi
11800
11801 if test "x$ac_ct_RANLIB" = x; then
11802 RANLIB=":"
11803 else
11804 case $cross_compiling:$ac_tool_warned in
11805yes:)
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11808ac_tool_warned=yes ;;
11809esac
11810 RANLIB=$ac_ct_RANLIB
11811 fi
11812else
11813 RANLIB="$ac_cv_prog_RANLIB"
11814fi
11815
11816test -z "$RANLIB" && RANLIB=:
11817
11818
11819
11820
11821
11822
11823# Determine commands to create old-style static archives.
11824old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11825old_postinstall_cmds='chmod 644 $oldlib'
11826old_postuninstall_cmds=
11827
11828if test -n "$RANLIB"; then
11829 case $host_os in
11830 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011831 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011832 ;;
11833 *)
cristy99bd5232011-12-07 14:38:20 +000011834 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011835 ;;
11836 esac
cristy99bd5232011-12-07 14:38:20 +000011837 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011838fi
11839
cristy0c60a692010-11-04 01:09:47 +000011840case $host_os in
11841 darwin*)
11842 lock_old_archive_extraction=yes ;;
11843 *)
11844 lock_old_archive_extraction=no ;;
11845esac
11846
11847
11848
11849
11850
11851
cristy73bd4a52010-10-05 11:24:23 +000011852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885# If no C compiler was specified, use CC.
11886LTCC=${LTCC-"$CC"}
11887
11888# If no C compiler flags were specified, use CFLAGS.
11889LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11890
11891# Allow CC to be a program name with arguments.
11892compiler=$CC
11893
11894
11895# Check for command to grab the raw symbol name followed by C symbol from nm.
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11897$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011898if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011899 $as_echo_n "(cached) " >&6
11900else
11901
11902# These are sane defaults that work on at least a few old systems.
11903# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11904
11905# Character class describing NM global symbol codes.
11906symcode='[BCDEGRST]'
11907
11908# Regexp to match symbols that can be accessed directly from C.
11909sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11910
11911# Define system-specific variables.
11912case $host_os in
11913aix*)
11914 symcode='[BCDT]'
11915 ;;
11916cygwin* | mingw* | pw32* | cegcc*)
11917 symcode='[ABCDGISTW]'
11918 ;;
11919hpux*)
11920 if test "$host_cpu" = ia64; then
11921 symcode='[ABCDEGRST]'
11922 fi
11923 ;;
11924irix* | nonstopux*)
11925 symcode='[BCDEGRST]'
11926 ;;
11927osf*)
11928 symcode='[BCDEGQRST]'
11929 ;;
11930solaris*)
11931 symcode='[BDRT]'
11932 ;;
11933sco3.2v5*)
11934 symcode='[DT]'
11935 ;;
11936sysv4.2uw2*)
11937 symcode='[DT]'
11938 ;;
11939sysv5* | sco5v6* | unixware* | OpenUNIX*)
11940 symcode='[ABDT]'
11941 ;;
11942sysv4)
11943 symcode='[DFNSTU]'
11944 ;;
11945esac
11946
11947# If we're using GNU nm, then use its standard symbol codes.
11948case `$NM -V 2>&1` in
11949*GNU* | *'with BFD'*)
11950 symcode='[ABCDGIRSTW]' ;;
11951esac
11952
11953# Transform an extracted symbol line into a proper C declaration.
11954# Some systems (esp. on ia64) link data and code symbols differently,
11955# so use this general approach.
11956lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11957
11958# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011959lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11960lt_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 +000011961
11962# Handle CRLF in mingw tool chain
11963opt_cr=
11964case $build_os in
11965mingw*)
11966 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11967 ;;
11968esac
11969
11970# Try without a prefix underscore, then with it.
11971for ac_symprfx in "" "_"; do
11972
11973 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11974 symxfrm="\\1 $ac_symprfx\\2 \\2"
11975
11976 # Write the raw and C identifiers.
11977 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11978 # Fake it for dumpbin and say T for any non-static function
11979 # and D for any global variable.
11980 # Also find C++ and __fastcall symbols from MSVC++,
11981 # which start with @ or ?.
11982 lt_cv_sys_global_symbol_pipe="$AWK '"\
11983" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011984" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011985" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11986" \$ 0!~/External *\|/{next};"\
11987" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11988" {if(hide[section]) next};"\
11989" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11990" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11991" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11992" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11993" ' prfx=^$ac_symprfx"
11994 else
11995 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11996 fi
cristyda16f162011-02-19 23:52:17 +000011997 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011998
11999 # Check to see that the pipe works correctly.
12000 pipe_works=no
12001
12002 rm -f conftest*
12003 cat > conftest.$ac_ext <<_LT_EOF
12004#ifdef __cplusplus
12005extern "C" {
12006#endif
12007char nm_test_var;
12008void nm_test_func(void);
12009void nm_test_func(void){}
12010#ifdef __cplusplus
12011}
12012#endif
12013int main(){nm_test_var='a';nm_test_func();return(0);}
12014_LT_EOF
12015
12016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12017 (eval $ac_compile) 2>&5
12018 ac_status=$?
12019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12020 test $ac_status = 0; }; then
12021 # Now try to grab the symbols.
12022 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12024 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012025 ac_status=$?
12026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12027 test $ac_status = 0; } && test -s "$nlist"; then
12028 # Try sorting and uniquifying the output.
12029 if sort "$nlist" | uniq > "$nlist"T; then
12030 mv -f "$nlist"T "$nlist"
12031 else
12032 rm -f "$nlist"T
12033 fi
12034
12035 # Make sure that we snagged all the symbols we need.
12036 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12037 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12038 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012039/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12040#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12041/* DATA imports from DLLs on WIN32 con't be const, because runtime
12042 relocations are performed -- see ld's documentation on pseudo-relocs. */
12043# define LT_DLSYM_CONST
12044#elif defined(__osf__)
12045/* This system does not cope well with relocations in const data. */
12046# define LT_DLSYM_CONST
12047#else
12048# define LT_DLSYM_CONST const
12049#endif
12050
cristy73bd4a52010-10-05 11:24:23 +000012051#ifdef __cplusplus
12052extern "C" {
12053#endif
12054
12055_LT_EOF
12056 # Now generate the symbol file.
12057 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12058
12059 cat <<_LT_EOF >> conftest.$ac_ext
12060
12061/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012062LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012063 const char *name;
12064 void *address;
12065}
12066lt__PROGRAM__LTX_preloaded_symbols[] =
12067{
12068 { "@PROGRAM@", (void *) 0 },
12069_LT_EOF
12070 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12071 cat <<\_LT_EOF >> conftest.$ac_ext
12072 {0, (void *) 0}
12073};
12074
12075/* This works around a problem in FreeBSD linker */
12076#ifdef FREEBSD_WORKAROUND
12077static const void *lt_preloaded_setup() {
12078 return lt__PROGRAM__LTX_preloaded_symbols;
12079}
12080#endif
12081
12082#ifdef __cplusplus
12083}
12084#endif
12085_LT_EOF
12086 # Now try linking the two files.
12087 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012088 lt_globsym_save_LIBS=$LIBS
12089 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012090 LIBS="conftstm.$ac_objext"
12091 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12093 (eval $ac_link) 2>&5
12094 ac_status=$?
12095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12096 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12097 pipe_works=yes
12098 fi
cristyda16f162011-02-19 23:52:17 +000012099 LIBS=$lt_globsym_save_LIBS
12100 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012101 else
12102 echo "cannot find nm_test_func in $nlist" >&5
12103 fi
12104 else
12105 echo "cannot find nm_test_var in $nlist" >&5
12106 fi
12107 else
12108 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12109 fi
12110 else
12111 echo "$progname: failed program was:" >&5
12112 cat conftest.$ac_ext >&5
12113 fi
12114 rm -rf conftest* conftst*
12115
12116 # Do not use the global_symbol_pipe unless it works.
12117 if test "$pipe_works" = yes; then
12118 break
12119 else
12120 lt_cv_sys_global_symbol_pipe=
12121 fi
12122done
12123
12124fi
12125
12126if test -z "$lt_cv_sys_global_symbol_pipe"; then
12127 lt_cv_sys_global_symbol_to_cdecl=
12128fi
12129if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12131$as_echo "failed" >&6; }
12132else
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12134$as_echo "ok" >&6; }
12135fi
12136
cristyda16f162011-02-19 23:52:17 +000012137# Response file support.
12138if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12139 nm_file_list_spec='@'
12140elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12141 nm_file_list_spec='@'
12142fi
cristy73bd4a52010-10-05 11:24:23 +000012143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
cristyda16f162011-02-19 23:52:17 +000012164
12165
12166
12167
12168
12169
12170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12171$as_echo_n "checking for sysroot... " >&6; }
12172
12173# Check whether --with-sysroot was given.
12174if test "${with_sysroot+set}" = set; then :
12175 withval=$with_sysroot;
12176else
12177 with_sysroot=no
12178fi
12179
12180
12181lt_sysroot=
12182case ${with_sysroot} in #(
12183 yes)
12184 if test "$GCC" = yes; then
12185 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12186 fi
12187 ;; #(
12188 /*)
12189 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12190 ;; #(
12191 no|'')
12192 ;; #(
12193 *)
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12195$as_echo "${with_sysroot}" >&6; }
12196 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12197 ;;
12198esac
12199
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12201$as_echo "${lt_sysroot:-no}" >&6; }
12202
12203
12204
12205
12206
cristy73bd4a52010-10-05 11:24:23 +000012207# Check whether --enable-libtool-lock was given.
12208if test "${enable_libtool_lock+set}" = set; then :
12209 enableval=$enable_libtool_lock;
12210fi
12211
12212test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12213
12214# Some flags need to be propagated to the compiler or linker for good
12215# libtool support.
12216case $host in
12217ia64-*-hpux*)
12218 # Find out which ABI we are using.
12219 echo 'int i;' > conftest.$ac_ext
12220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12221 (eval $ac_compile) 2>&5
12222 ac_status=$?
12223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12224 test $ac_status = 0; }; then
12225 case `/usr/bin/file conftest.$ac_objext` in
12226 *ELF-32*)
12227 HPUX_IA64_MODE="32"
12228 ;;
12229 *ELF-64*)
12230 HPUX_IA64_MODE="64"
12231 ;;
12232 esac
12233 fi
12234 rm -rf conftest*
12235 ;;
12236*-*-irix6*)
12237 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012238 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12240 (eval $ac_compile) 2>&5
12241 ac_status=$?
12242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12243 test $ac_status = 0; }; then
12244 if test "$lt_cv_prog_gnu_ld" = yes; then
12245 case `/usr/bin/file conftest.$ac_objext` in
12246 *32-bit*)
12247 LD="${LD-ld} -melf32bsmip"
12248 ;;
12249 *N32*)
12250 LD="${LD-ld} -melf32bmipn32"
12251 ;;
12252 *64-bit*)
12253 LD="${LD-ld} -melf64bmip"
12254 ;;
12255 esac
12256 else
12257 case `/usr/bin/file conftest.$ac_objext` in
12258 *32-bit*)
12259 LD="${LD-ld} -32"
12260 ;;
12261 *N32*)
12262 LD="${LD-ld} -n32"
12263 ;;
12264 *64-bit*)
12265 LD="${LD-ld} -64"
12266 ;;
12267 esac
12268 fi
12269 fi
12270 rm -rf conftest*
12271 ;;
12272
cristyd95b7a52013-10-23 13:12:53 +000012273x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000012274s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12275 # Find out which ABI we are using.
12276 echo 'int i;' > conftest.$ac_ext
12277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12278 (eval $ac_compile) 2>&5
12279 ac_status=$?
12280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12281 test $ac_status = 0; }; then
12282 case `/usr/bin/file conftest.o` in
12283 *32-bit*)
12284 case $host in
12285 x86_64-*kfreebsd*-gnu)
12286 LD="${LD-ld} -m elf_i386_fbsd"
12287 ;;
12288 x86_64-*linux*)
12289 LD="${LD-ld} -m elf_i386"
12290 ;;
cristy99a003b2013-11-03 17:58:59 +000012291 powerpcle-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000012292 LD="${LD-ld} -m elf32lppclinux"
12293 ;;
cristy99a003b2013-11-03 17:58:59 +000012294 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012295 LD="${LD-ld} -m elf32ppclinux"
12296 ;;
12297 s390x-*linux*)
12298 LD="${LD-ld} -m elf_s390"
12299 ;;
12300 sparc64-*linux*)
12301 LD="${LD-ld} -m elf32_sparc"
12302 ;;
12303 esac
12304 ;;
12305 *64-bit*)
12306 case $host in
12307 x86_64-*kfreebsd*-gnu)
12308 LD="${LD-ld} -m elf_x86_64_fbsd"
12309 ;;
12310 x86_64-*linux*)
12311 LD="${LD-ld} -m elf_x86_64"
12312 ;;
cristyd95b7a52013-10-23 13:12:53 +000012313 powerpcle-*linux*)
12314 LD="${LD-ld} -m elf64lppc"
12315 ;;
12316 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012317 LD="${LD-ld} -m elf64ppc"
12318 ;;
12319 s390*-*linux*|s390*-*tpf*)
12320 LD="${LD-ld} -m elf64_s390"
12321 ;;
12322 sparc*-*linux*)
12323 LD="${LD-ld} -m elf64_sparc"
12324 ;;
12325 esac
12326 ;;
12327 esac
12328 fi
12329 rm -rf conftest*
12330 ;;
12331
12332*-*-sco3.2v5*)
12333 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12334 SAVE_CFLAGS="$CFLAGS"
12335 CFLAGS="$CFLAGS -belf"
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12337$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012338if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012339 $as_echo_n "(cached) " >&6
12340else
12341 ac_ext=c
12342ac_cpp='$CPP $CPPFLAGS'
12343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12345ac_compiler_gnu=$ac_cv_c_compiler_gnu
12346
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348/* end confdefs.h. */
12349
12350int
12351main ()
12352{
12353
12354 ;
12355 return 0;
12356}
12357_ACEOF
12358if ac_fn_c_try_link "$LINENO"; then :
12359 lt_cv_cc_needs_belf=yes
12360else
12361 lt_cv_cc_needs_belf=no
12362fi
12363rm -f core conftest.err conftest.$ac_objext \
12364 conftest$ac_exeext conftest.$ac_ext
12365 ac_ext=c
12366ac_cpp='$CPP $CPPFLAGS'
12367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12369ac_compiler_gnu=$ac_cv_c_compiler_gnu
12370
12371fi
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12373$as_echo "$lt_cv_cc_needs_belf" >&6; }
12374 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12375 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12376 CFLAGS="$SAVE_CFLAGS"
12377 fi
12378 ;;
cristy99bd5232011-12-07 14:38:20 +000012379*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012380 # Find out which ABI we are using.
12381 echo 'int i;' > conftest.$ac_ext
12382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12383 (eval $ac_compile) 2>&5
12384 ac_status=$?
12385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12386 test $ac_status = 0; }; then
12387 case `/usr/bin/file conftest.o` in
12388 *64-bit*)
12389 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012390 yes*)
12391 case $host in
12392 i?86-*-solaris*)
12393 LD="${LD-ld} -m elf_x86_64"
12394 ;;
12395 sparc*-*-solaris*)
12396 LD="${LD-ld} -m elf64_sparc"
12397 ;;
12398 esac
12399 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12400 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12401 LD="${LD-ld}_sol2"
12402 fi
12403 ;;
cristy73bd4a52010-10-05 11:24:23 +000012404 *)
12405 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12406 LD="${LD-ld} -64"
12407 fi
12408 ;;
12409 esac
12410 ;;
12411 esac
12412 fi
12413 rm -rf conftest*
12414 ;;
12415esac
12416
12417need_locks="$enable_libtool_lock"
12418
cristyda16f162011-02-19 23:52:17 +000012419if test -n "$ac_tool_prefix"; then
12420 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12421set dummy ${ac_tool_prefix}mt; ac_word=$2
12422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12423$as_echo_n "checking for $ac_word... " >&6; }
12424if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12425 $as_echo_n "(cached) " >&6
12426else
12427 if test -n "$MANIFEST_TOOL"; then
12428 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12429else
12430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12431for as_dir in $PATH
12432do
12433 IFS=$as_save_IFS
12434 test -z "$as_dir" && as_dir=.
12435 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012437 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12439 break 2
12440 fi
12441done
12442 done
12443IFS=$as_save_IFS
12444
12445fi
12446fi
12447MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12448if test -n "$MANIFEST_TOOL"; then
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12450$as_echo "$MANIFEST_TOOL" >&6; }
12451else
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453$as_echo "no" >&6; }
12454fi
12455
12456
12457fi
12458if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12459 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12460 # Extract the first word of "mt", so it can be a program name with args.
12461set dummy mt; ac_word=$2
12462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12463$as_echo_n "checking for $ac_word... " >&6; }
12464if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12465 $as_echo_n "(cached) " >&6
12466else
12467 if test -n "$ac_ct_MANIFEST_TOOL"; then
12468 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12469else
12470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471for as_dir in $PATH
12472do
12473 IFS=$as_save_IFS
12474 test -z "$as_dir" && as_dir=.
12475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012477 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12479 break 2
12480 fi
12481done
12482 done
12483IFS=$as_save_IFS
12484
12485fi
12486fi
12487ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12488if test -n "$ac_ct_MANIFEST_TOOL"; then
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12490$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12491else
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493$as_echo "no" >&6; }
12494fi
12495
12496 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12497 MANIFEST_TOOL=":"
12498 else
12499 case $cross_compiling:$ac_tool_warned in
12500yes:)
12501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12503ac_tool_warned=yes ;;
12504esac
12505 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12506 fi
12507else
12508 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12509fi
12510
12511test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12513$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12514if ${lt_cv_path_mainfest_tool+:} false; then :
12515 $as_echo_n "(cached) " >&6
12516else
12517 lt_cv_path_mainfest_tool=no
12518 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12519 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12520 cat conftest.err >&5
12521 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12522 lt_cv_path_mainfest_tool=yes
12523 fi
12524 rm -f conftest*
12525fi
12526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12527$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12528if test "x$lt_cv_path_mainfest_tool" != xyes; then
12529 MANIFEST_TOOL=:
12530fi
12531
12532
12533
12534
12535
cristy73bd4a52010-10-05 11:24:23 +000012536
12537 case $host_os in
12538 rhapsody* | darwin*)
12539 if test -n "$ac_tool_prefix"; then
12540 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12541set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012544if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012545 $as_echo_n "(cached) " >&6
12546else
12547 if test -n "$DSYMUTIL"; then
12548 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12549else
12550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12551for as_dir in $PATH
12552do
12553 IFS=$as_save_IFS
12554 test -z "$as_dir" && as_dir=.
12555 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012557 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12559 break 2
12560 fi
12561done
12562 done
12563IFS=$as_save_IFS
12564
12565fi
12566fi
12567DSYMUTIL=$ac_cv_prog_DSYMUTIL
12568if test -n "$DSYMUTIL"; then
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12570$as_echo "$DSYMUTIL" >&6; }
12571else
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573$as_echo "no" >&6; }
12574fi
12575
12576
12577fi
12578if test -z "$ac_cv_prog_DSYMUTIL"; then
12579 ac_ct_DSYMUTIL=$DSYMUTIL
12580 # Extract the first word of "dsymutil", so it can be a program name with args.
12581set dummy dsymutil; ac_word=$2
12582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12583$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012584if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012585 $as_echo_n "(cached) " >&6
12586else
12587 if test -n "$ac_ct_DSYMUTIL"; then
12588 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12589else
12590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12591for as_dir in $PATH
12592do
12593 IFS=$as_save_IFS
12594 test -z "$as_dir" && as_dir=.
12595 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012597 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12599 break 2
12600 fi
12601done
12602 done
12603IFS=$as_save_IFS
12604
12605fi
12606fi
12607ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12608if test -n "$ac_ct_DSYMUTIL"; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12610$as_echo "$ac_ct_DSYMUTIL" >&6; }
12611else
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613$as_echo "no" >&6; }
12614fi
12615
12616 if test "x$ac_ct_DSYMUTIL" = x; then
12617 DSYMUTIL=":"
12618 else
12619 case $cross_compiling:$ac_tool_warned in
12620yes:)
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12623ac_tool_warned=yes ;;
12624esac
12625 DSYMUTIL=$ac_ct_DSYMUTIL
12626 fi
12627else
12628 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12629fi
12630
12631 if test -n "$ac_tool_prefix"; then
12632 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12633set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012636if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012637 $as_echo_n "(cached) " >&6
12638else
12639 if test -n "$NMEDIT"; then
12640 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12641else
12642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12643for as_dir in $PATH
12644do
12645 IFS=$as_save_IFS
12646 test -z "$as_dir" && as_dir=.
12647 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012649 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12651 break 2
12652 fi
12653done
12654 done
12655IFS=$as_save_IFS
12656
12657fi
12658fi
12659NMEDIT=$ac_cv_prog_NMEDIT
12660if test -n "$NMEDIT"; then
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12662$as_echo "$NMEDIT" >&6; }
12663else
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665$as_echo "no" >&6; }
12666fi
12667
12668
12669fi
12670if test -z "$ac_cv_prog_NMEDIT"; then
12671 ac_ct_NMEDIT=$NMEDIT
12672 # Extract the first word of "nmedit", so it can be a program name with args.
12673set dummy nmedit; ac_word=$2
12674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12675$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012676if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012677 $as_echo_n "(cached) " >&6
12678else
12679 if test -n "$ac_ct_NMEDIT"; then
12680 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12681else
12682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12683for as_dir in $PATH
12684do
12685 IFS=$as_save_IFS
12686 test -z "$as_dir" && as_dir=.
12687 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012689 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12691 break 2
12692 fi
12693done
12694 done
12695IFS=$as_save_IFS
12696
12697fi
12698fi
12699ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12700if test -n "$ac_ct_NMEDIT"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12702$as_echo "$ac_ct_NMEDIT" >&6; }
12703else
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705$as_echo "no" >&6; }
12706fi
12707
12708 if test "x$ac_ct_NMEDIT" = x; then
12709 NMEDIT=":"
12710 else
12711 case $cross_compiling:$ac_tool_warned in
12712yes:)
12713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12715ac_tool_warned=yes ;;
12716esac
12717 NMEDIT=$ac_ct_NMEDIT
12718 fi
12719else
12720 NMEDIT="$ac_cv_prog_NMEDIT"
12721fi
12722
12723 if test -n "$ac_tool_prefix"; then
12724 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12725set dummy ${ac_tool_prefix}lipo; ac_word=$2
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012728if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012729 $as_echo_n "(cached) " >&6
12730else
12731 if test -n "$LIPO"; then
12732 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12733else
12734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735for as_dir in $PATH
12736do
12737 IFS=$as_save_IFS
12738 test -z "$as_dir" && as_dir=.
12739 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012741 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12743 break 2
12744 fi
12745done
12746 done
12747IFS=$as_save_IFS
12748
12749fi
12750fi
12751LIPO=$ac_cv_prog_LIPO
12752if test -n "$LIPO"; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12754$as_echo "$LIPO" >&6; }
12755else
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757$as_echo "no" >&6; }
12758fi
12759
12760
12761fi
12762if test -z "$ac_cv_prog_LIPO"; then
12763 ac_ct_LIPO=$LIPO
12764 # Extract the first word of "lipo", so it can be a program name with args.
12765set dummy lipo; ac_word=$2
12766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12767$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012768if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012769 $as_echo_n "(cached) " >&6
12770else
12771 if test -n "$ac_ct_LIPO"; then
12772 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12773else
12774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775for as_dir in $PATH
12776do
12777 IFS=$as_save_IFS
12778 test -z "$as_dir" && as_dir=.
12779 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012781 ac_cv_prog_ac_ct_LIPO="lipo"
12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 break 2
12784 fi
12785done
12786 done
12787IFS=$as_save_IFS
12788
12789fi
12790fi
12791ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12792if test -n "$ac_ct_LIPO"; then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12794$as_echo "$ac_ct_LIPO" >&6; }
12795else
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797$as_echo "no" >&6; }
12798fi
12799
12800 if test "x$ac_ct_LIPO" = x; then
12801 LIPO=":"
12802 else
12803 case $cross_compiling:$ac_tool_warned in
12804yes:)
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12807ac_tool_warned=yes ;;
12808esac
12809 LIPO=$ac_ct_LIPO
12810 fi
12811else
12812 LIPO="$ac_cv_prog_LIPO"
12813fi
12814
12815 if test -n "$ac_tool_prefix"; then
12816 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12817set dummy ${ac_tool_prefix}otool; ac_word=$2
12818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12819$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012820if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012821 $as_echo_n "(cached) " >&6
12822else
12823 if test -n "$OTOOL"; then
12824 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12825else
12826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827for as_dir in $PATH
12828do
12829 IFS=$as_save_IFS
12830 test -z "$as_dir" && as_dir=.
12831 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012833 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12835 break 2
12836 fi
12837done
12838 done
12839IFS=$as_save_IFS
12840
12841fi
12842fi
12843OTOOL=$ac_cv_prog_OTOOL
12844if test -n "$OTOOL"; then
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12846$as_echo "$OTOOL" >&6; }
12847else
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849$as_echo "no" >&6; }
12850fi
12851
12852
12853fi
12854if test -z "$ac_cv_prog_OTOOL"; then
12855 ac_ct_OTOOL=$OTOOL
12856 # Extract the first word of "otool", so it can be a program name with args.
12857set dummy otool; ac_word=$2
12858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12859$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012860if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012861 $as_echo_n "(cached) " >&6
12862else
12863 if test -n "$ac_ct_OTOOL"; then
12864 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12865else
12866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867for as_dir in $PATH
12868do
12869 IFS=$as_save_IFS
12870 test -z "$as_dir" && as_dir=.
12871 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012873 ac_cv_prog_ac_ct_OTOOL="otool"
12874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12875 break 2
12876 fi
12877done
12878 done
12879IFS=$as_save_IFS
12880
12881fi
12882fi
12883ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12884if test -n "$ac_ct_OTOOL"; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12886$as_echo "$ac_ct_OTOOL" >&6; }
12887else
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889$as_echo "no" >&6; }
12890fi
12891
12892 if test "x$ac_ct_OTOOL" = x; then
12893 OTOOL=":"
12894 else
12895 case $cross_compiling:$ac_tool_warned in
12896yes:)
12897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12899ac_tool_warned=yes ;;
12900esac
12901 OTOOL=$ac_ct_OTOOL
12902 fi
12903else
12904 OTOOL="$ac_cv_prog_OTOOL"
12905fi
12906
12907 if test -n "$ac_tool_prefix"; then
12908 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12909set dummy ${ac_tool_prefix}otool64; ac_word=$2
12910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12911$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012912if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012913 $as_echo_n "(cached) " >&6
12914else
12915 if test -n "$OTOOL64"; then
12916 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12917else
12918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12919for as_dir in $PATH
12920do
12921 IFS=$as_save_IFS
12922 test -z "$as_dir" && as_dir=.
12923 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012925 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12927 break 2
12928 fi
12929done
12930 done
12931IFS=$as_save_IFS
12932
12933fi
12934fi
12935OTOOL64=$ac_cv_prog_OTOOL64
12936if test -n "$OTOOL64"; then
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12938$as_echo "$OTOOL64" >&6; }
12939else
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941$as_echo "no" >&6; }
12942fi
12943
12944
12945fi
12946if test -z "$ac_cv_prog_OTOOL64"; then
12947 ac_ct_OTOOL64=$OTOOL64
12948 # Extract the first word of "otool64", so it can be a program name with args.
12949set dummy otool64; ac_word=$2
12950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12951$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012952if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012953 $as_echo_n "(cached) " >&6
12954else
12955 if test -n "$ac_ct_OTOOL64"; then
12956 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12957else
12958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12959for as_dir in $PATH
12960do
12961 IFS=$as_save_IFS
12962 test -z "$as_dir" && as_dir=.
12963 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012965 ac_cv_prog_ac_ct_OTOOL64="otool64"
12966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12967 break 2
12968 fi
12969done
12970 done
12971IFS=$as_save_IFS
12972
12973fi
12974fi
12975ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12976if test -n "$ac_ct_OTOOL64"; then
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12978$as_echo "$ac_ct_OTOOL64" >&6; }
12979else
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12981$as_echo "no" >&6; }
12982fi
12983
12984 if test "x$ac_ct_OTOOL64" = x; then
12985 OTOOL64=":"
12986 else
12987 case $cross_compiling:$ac_tool_warned in
12988yes:)
12989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12991ac_tool_warned=yes ;;
12992esac
12993 OTOOL64=$ac_ct_OTOOL64
12994 fi
12995else
12996 OTOOL64="$ac_cv_prog_OTOOL64"
12997fi
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13026$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013027if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013028 $as_echo_n "(cached) " >&6
13029else
13030 lt_cv_apple_cc_single_mod=no
13031 if test -z "${LT_MULTI_MODULE}"; then
13032 # By default we will add the -single_module flag. You can override
13033 # by either setting the environment variable LT_MULTI_MODULE
13034 # non-empty at configure time, or by adding -multi_module to the
13035 # link flags.
13036 rm -rf libconftest.dylib*
13037 echo "int foo(void){return 1;}" > conftest.c
13038 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13039-dynamiclib -Wl,-single_module conftest.c" >&5
13040 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13041 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13042 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013043 # If there is a non-empty error log, and "single_module"
13044 # appears in it, assume the flag caused a linker warning
13045 if test -s conftest.err && $GREP single_module conftest.err; then
13046 cat conftest.err >&5
13047 # Otherwise, if the output was created with a 0 exit code from
13048 # the compiler, it worked.
13049 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013050 lt_cv_apple_cc_single_mod=yes
13051 else
13052 cat conftest.err >&5
13053 fi
13054 rm -rf libconftest.dylib*
13055 rm -f conftest.*
13056 fi
13057fi
13058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13059$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013060
cristy73bd4a52010-10-05 11:24:23 +000013061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13062$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013063if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013064 $as_echo_n "(cached) " >&6
13065else
13066 lt_cv_ld_exported_symbols_list=no
13067 save_LDFLAGS=$LDFLAGS
13068 echo "_main" > conftest.sym
13069 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071/* end confdefs.h. */
13072
13073int
13074main ()
13075{
13076
13077 ;
13078 return 0;
13079}
13080_ACEOF
13081if ac_fn_c_try_link "$LINENO"; then :
13082 lt_cv_ld_exported_symbols_list=yes
13083else
13084 lt_cv_ld_exported_symbols_list=no
13085fi
13086rm -f core conftest.err conftest.$ac_objext \
13087 conftest$ac_exeext conftest.$ac_ext
13088 LDFLAGS="$save_LDFLAGS"
13089
13090fi
13091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13092$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013093
cristy0c60a692010-11-04 01:09:47 +000013094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13095$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013096if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013097 $as_echo_n "(cached) " >&6
13098else
13099 lt_cv_ld_force_load=no
13100 cat > conftest.c << _LT_EOF
13101int forced_loaded() { return 2;}
13102_LT_EOF
13103 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13104 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13105 echo "$AR cru libconftest.a conftest.o" >&5
13106 $AR cru libconftest.a conftest.o 2>&5
13107 echo "$RANLIB libconftest.a" >&5
13108 $RANLIB libconftest.a 2>&5
13109 cat > conftest.c << _LT_EOF
13110int main() { return 0;}
13111_LT_EOF
13112 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13113 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13114 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013115 if test -s conftest.err && $GREP force_load conftest.err; then
13116 cat conftest.err >&5
13117 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013118 lt_cv_ld_force_load=yes
13119 else
13120 cat conftest.err >&5
13121 fi
13122 rm -f conftest.err libconftest.a conftest conftest.c
13123 rm -rf conftest.dSYM
13124
13125fi
13126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13127$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013128 case $host_os in
13129 rhapsody* | darwin1.[012])
13130 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13131 darwin1.*)
13132 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13133 darwin*) # darwin 5.x on
13134 # if running on 10.5 or later, the deployment target defaults
13135 # to the OS version, if on x86, and 10.4, the deployment
13136 # target defaults to 10.4. Don't you love it?
13137 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13138 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13139 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13140 10.[012]*)
13141 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13142 10.*)
13143 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13144 esac
13145 ;;
13146 esac
13147 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13148 _lt_dar_single_mod='$single_module'
13149 fi
13150 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13151 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13152 else
13153 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13154 fi
cristy0c60a692010-11-04 01:09:47 +000013155 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013156 _lt_dsymutil='~$DSYMUTIL $lib || :'
13157 else
13158 _lt_dsymutil=
13159 fi
13160 ;;
13161 esac
13162
13163for ac_header in dlfcn.h
13164do :
13165 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13166"
cristyda16f162011-02-19 23:52:17 +000013167if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013168 cat >>confdefs.h <<_ACEOF
13169#define HAVE_DLFCN_H 1
13170_ACEOF
13171
13172fi
13173
13174done
13175
13176
13177
cristy73bd4a52010-10-05 11:24:23 +000013178
cristyda16f162011-02-19 23:52:17 +000013179func_stripname_cnf ()
13180{
13181 case ${2} in
13182 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13183 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13184 esac
13185} # func_stripname_cnf
13186
13187
13188
cristy73bd4a52010-10-05 11:24:23 +000013189
13190
13191# Set options
13192enable_win32_dll=yes
13193
13194case $host in
cristy0c60a692010-11-04 01:09:47 +000013195*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013196 if test -n "$ac_tool_prefix"; then
13197 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13198set dummy ${ac_tool_prefix}as; ac_word=$2
13199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13200$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013201if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013202 $as_echo_n "(cached) " >&6
13203else
13204 if test -n "$AS"; then
13205 ac_cv_prog_AS="$AS" # Let the user override the test.
13206else
13207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13208for as_dir in $PATH
13209do
13210 IFS=$as_save_IFS
13211 test -z "$as_dir" && as_dir=.
13212 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013214 ac_cv_prog_AS="${ac_tool_prefix}as"
13215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13216 break 2
13217 fi
13218done
13219 done
13220IFS=$as_save_IFS
13221
13222fi
13223fi
13224AS=$ac_cv_prog_AS
13225if test -n "$AS"; then
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13227$as_echo "$AS" >&6; }
13228else
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230$as_echo "no" >&6; }
13231fi
13232
13233
13234fi
13235if test -z "$ac_cv_prog_AS"; then
13236 ac_ct_AS=$AS
13237 # Extract the first word of "as", so it can be a program name with args.
13238set dummy as; ac_word=$2
13239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13240$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013241if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013242 $as_echo_n "(cached) " >&6
13243else
13244 if test -n "$ac_ct_AS"; then
13245 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13246else
13247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13248for as_dir in $PATH
13249do
13250 IFS=$as_save_IFS
13251 test -z "$as_dir" && as_dir=.
13252 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013254 ac_cv_prog_ac_ct_AS="as"
13255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13256 break 2
13257 fi
13258done
13259 done
13260IFS=$as_save_IFS
13261
13262fi
13263fi
13264ac_ct_AS=$ac_cv_prog_ac_ct_AS
13265if test -n "$ac_ct_AS"; then
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13267$as_echo "$ac_ct_AS" >&6; }
13268else
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270$as_echo "no" >&6; }
13271fi
13272
13273 if test "x$ac_ct_AS" = x; then
13274 AS="false"
13275 else
13276 case $cross_compiling:$ac_tool_warned in
13277yes:)
13278{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13280ac_tool_warned=yes ;;
13281esac
13282 AS=$ac_ct_AS
13283 fi
13284else
13285 AS="$ac_cv_prog_AS"
13286fi
13287
13288 if test -n "$ac_tool_prefix"; then
13289 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13290set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13292$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013293if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013294 $as_echo_n "(cached) " >&6
13295else
13296 if test -n "$DLLTOOL"; then
13297 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13298else
13299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13300for as_dir in $PATH
13301do
13302 IFS=$as_save_IFS
13303 test -z "$as_dir" && as_dir=.
13304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013306 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13308 break 2
13309 fi
13310done
13311 done
13312IFS=$as_save_IFS
13313
13314fi
13315fi
13316DLLTOOL=$ac_cv_prog_DLLTOOL
13317if test -n "$DLLTOOL"; then
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13319$as_echo "$DLLTOOL" >&6; }
13320else
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322$as_echo "no" >&6; }
13323fi
13324
13325
13326fi
13327if test -z "$ac_cv_prog_DLLTOOL"; then
13328 ac_ct_DLLTOOL=$DLLTOOL
13329 # Extract the first word of "dlltool", so it can be a program name with args.
13330set dummy dlltool; ac_word=$2
13331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13332$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013333if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013334 $as_echo_n "(cached) " >&6
13335else
13336 if test -n "$ac_ct_DLLTOOL"; then
13337 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13338else
13339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13340for as_dir in $PATH
13341do
13342 IFS=$as_save_IFS
13343 test -z "$as_dir" && as_dir=.
13344 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013346 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13348 break 2
13349 fi
13350done
13351 done
13352IFS=$as_save_IFS
13353
13354fi
13355fi
13356ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13357if test -n "$ac_ct_DLLTOOL"; then
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13359$as_echo "$ac_ct_DLLTOOL" >&6; }
13360else
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13362$as_echo "no" >&6; }
13363fi
13364
13365 if test "x$ac_ct_DLLTOOL" = x; then
13366 DLLTOOL="false"
13367 else
13368 case $cross_compiling:$ac_tool_warned in
13369yes:)
13370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13372ac_tool_warned=yes ;;
13373esac
13374 DLLTOOL=$ac_ct_DLLTOOL
13375 fi
13376else
13377 DLLTOOL="$ac_cv_prog_DLLTOOL"
13378fi
13379
13380 if test -n "$ac_tool_prefix"; then
13381 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13382set dummy ${ac_tool_prefix}objdump; ac_word=$2
13383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13384$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013385if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013386 $as_echo_n "(cached) " >&6
13387else
13388 if test -n "$OBJDUMP"; then
13389 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13390else
13391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13392for as_dir in $PATH
13393do
13394 IFS=$as_save_IFS
13395 test -z "$as_dir" && as_dir=.
13396 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013398 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13400 break 2
13401 fi
13402done
13403 done
13404IFS=$as_save_IFS
13405
13406fi
13407fi
13408OBJDUMP=$ac_cv_prog_OBJDUMP
13409if test -n "$OBJDUMP"; then
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13411$as_echo "$OBJDUMP" >&6; }
13412else
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13414$as_echo "no" >&6; }
13415fi
13416
13417
13418fi
13419if test -z "$ac_cv_prog_OBJDUMP"; then
13420 ac_ct_OBJDUMP=$OBJDUMP
13421 # Extract the first word of "objdump", so it can be a program name with args.
13422set dummy objdump; ac_word=$2
13423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013425if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013426 $as_echo_n "(cached) " >&6
13427else
13428 if test -n "$ac_ct_OBJDUMP"; then
13429 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13430else
13431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432for as_dir in $PATH
13433do
13434 IFS=$as_save_IFS
13435 test -z "$as_dir" && as_dir=.
13436 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013438 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13440 break 2
13441 fi
13442done
13443 done
13444IFS=$as_save_IFS
13445
13446fi
13447fi
13448ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13449if test -n "$ac_ct_OBJDUMP"; then
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13451$as_echo "$ac_ct_OBJDUMP" >&6; }
13452else
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454$as_echo "no" >&6; }
13455fi
13456
13457 if test "x$ac_ct_OBJDUMP" = x; then
13458 OBJDUMP="false"
13459 else
13460 case $cross_compiling:$ac_tool_warned in
13461yes:)
13462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13464ac_tool_warned=yes ;;
13465esac
13466 OBJDUMP=$ac_ct_OBJDUMP
13467 fi
13468else
13469 OBJDUMP="$ac_cv_prog_OBJDUMP"
13470fi
13471
13472 ;;
13473esac
13474
13475test -z "$AS" && AS=as
13476
13477
13478
13479
13480
13481test -z "$DLLTOOL" && DLLTOOL=dlltool
13482
13483
13484
13485
13486
13487test -z "$OBJDUMP" && OBJDUMP=objdump
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497 # Check whether --enable-shared was given.
13498if test "${enable_shared+set}" = set; then :
13499 enableval=$enable_shared; p=${PACKAGE-default}
13500 case $enableval in
13501 yes) enable_shared=yes ;;
13502 no) enable_shared=no ;;
13503 *)
13504 enable_shared=no
13505 # Look at the argument we got. We use all the common list separators.
13506 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13507 for pkg in $enableval; do
13508 IFS="$lt_save_ifs"
13509 if test "X$pkg" = "X$p"; then
13510 enable_shared=yes
13511 fi
13512 done
13513 IFS="$lt_save_ifs"
13514 ;;
13515 esac
13516else
13517 enable_shared=yes
13518fi
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528 # Check whether --enable-static was given.
13529if test "${enable_static+set}" = set; then :
13530 enableval=$enable_static; p=${PACKAGE-default}
13531 case $enableval in
13532 yes) enable_static=yes ;;
13533 no) enable_static=no ;;
13534 *)
13535 enable_static=no
13536 # Look at the argument we got. We use all the common list separators.
13537 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13538 for pkg in $enableval; do
13539 IFS="$lt_save_ifs"
13540 if test "X$pkg" = "X$p"; then
13541 enable_static=yes
13542 fi
13543 done
13544 IFS="$lt_save_ifs"
13545 ;;
13546 esac
13547else
13548 enable_static=yes
13549fi
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560# Check whether --with-pic was given.
13561if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013562 withval=$with_pic; lt_p=${PACKAGE-default}
13563 case $withval in
13564 yes|no) pic_mode=$withval ;;
13565 *)
13566 pic_mode=default
13567 # Look at the argument we got. We use all the common list separators.
13568 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13569 for lt_pkg in $withval; do
13570 IFS="$lt_save_ifs"
13571 if test "X$lt_pkg" = "X$lt_p"; then
13572 pic_mode=yes
13573 fi
13574 done
13575 IFS="$lt_save_ifs"
13576 ;;
13577 esac
cristy73bd4a52010-10-05 11:24:23 +000013578else
13579 pic_mode=default
13580fi
13581
13582
13583test -z "$pic_mode" && pic_mode=default
13584
13585
13586
13587
13588
13589
13590
13591 # Check whether --enable-fast-install was given.
13592if test "${enable_fast_install+set}" = set; then :
13593 enableval=$enable_fast_install; p=${PACKAGE-default}
13594 case $enableval in
13595 yes) enable_fast_install=yes ;;
13596 no) enable_fast_install=no ;;
13597 *)
13598 enable_fast_install=no
13599 # Look at the argument we got. We use all the common list separators.
13600 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13601 for pkg in $enableval; do
13602 IFS="$lt_save_ifs"
13603 if test "X$pkg" = "X$p"; then
13604 enable_fast_install=yes
13605 fi
13606 done
13607 IFS="$lt_save_ifs"
13608 ;;
13609 esac
13610else
13611 enable_fast_install=yes
13612fi
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624# This can be used to rebuild libtool when needed
13625LIBTOOL_DEPS="$ltmain"
13626
13627# Always use our own libtool.
13628LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
cristy0c60a692010-11-04 01:09:47 +000013654
cristy99bd5232011-12-07 14:38:20 +000013655
13656
13657
13658
cristy73bd4a52010-10-05 11:24:23 +000013659test -z "$LN_S" && LN_S="ln -s"
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674if test -n "${ZSH_VERSION+set}" ; then
13675 setopt NO_GLOB_SUBST
13676fi
13677
13678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13679$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013680if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013681 $as_echo_n "(cached) " >&6
13682else
13683 rm -f .libs 2>/dev/null
13684mkdir .libs 2>/dev/null
13685if test -d .libs; then
13686 lt_cv_objdir=.libs
13687else
13688 # MS-DOS does not allow filenames that begin with a dot.
13689 lt_cv_objdir=_libs
13690fi
13691rmdir .libs 2>/dev/null
13692fi
13693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13694$as_echo "$lt_cv_objdir" >&6; }
13695objdir=$lt_cv_objdir
13696
13697
13698
13699
13700
13701cat >>confdefs.h <<_ACEOF
13702#define LT_OBJDIR "$lt_cv_objdir/"
13703_ACEOF
13704
13705
13706
13707
cristy73bd4a52010-10-05 11:24:23 +000013708case $host_os in
13709aix3*)
13710 # AIX sometimes has problems with the GCC collect2 program. For some
13711 # reason, if we set the COLLECT_NAMES environment variable, the problems
13712 # vanish in a puff of smoke.
13713 if test "X${COLLECT_NAMES+set}" != Xset; then
13714 COLLECT_NAMES=
13715 export COLLECT_NAMES
13716 fi
13717 ;;
13718esac
13719
cristy73bd4a52010-10-05 11:24:23 +000013720# Global variables:
13721ofile=libtool
13722can_build_shared=yes
13723
13724# All known linkers require a `.a' archive for static linking (except MSVC,
13725# which needs '.lib').
13726libext=a
13727
13728with_gnu_ld="$lt_cv_prog_gnu_ld"
13729
13730old_CC="$CC"
13731old_CFLAGS="$CFLAGS"
13732
13733# Set sane defaults for various variables
13734test -z "$CC" && CC=cc
13735test -z "$LTCC" && LTCC=$CC
13736test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13737test -z "$LD" && LD=ld
13738test -z "$ac_objext" && ac_objext=o
13739
13740for cc_temp in $compiler""; do
13741 case $cc_temp in
13742 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13743 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13744 \-*) ;;
13745 *) break;;
13746 esac
13747done
cristy0c60a692010-11-04 01:09:47 +000013748cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013749
13750
13751# Only perform the check for file, if the check method requires it
13752test -z "$MAGIC_CMD" && MAGIC_CMD=file
13753case $deplibs_check_method in
13754file_magic*)
13755 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13757$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013758if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013759 $as_echo_n "(cached) " >&6
13760else
13761 case $MAGIC_CMD in
13762[\\/*] | ?:[\\/]*)
13763 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13764 ;;
13765*)
13766 lt_save_MAGIC_CMD="$MAGIC_CMD"
13767 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13768 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13769 for ac_dir in $ac_dummy; do
13770 IFS="$lt_save_ifs"
13771 test -z "$ac_dir" && ac_dir=.
13772 if test -f $ac_dir/${ac_tool_prefix}file; then
13773 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13774 if test -n "$file_magic_test_file"; then
13775 case $deplibs_check_method in
13776 "file_magic "*)
13777 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13778 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13779 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13780 $EGREP "$file_magic_regex" > /dev/null; then
13781 :
13782 else
13783 cat <<_LT_EOF 1>&2
13784
13785*** Warning: the command libtool uses to detect shared libraries,
13786*** $file_magic_cmd, produces output that libtool cannot recognize.
13787*** The result is that libtool may fail to recognize shared libraries
13788*** as such. This will affect the creation of libtool libraries that
13789*** depend on shared libraries, but programs linked with such libtool
13790*** libraries will work regardless of this problem. Nevertheless, you
13791*** may want to report the problem to your system manager and/or to
13792*** bug-libtool@gnu.org
13793
13794_LT_EOF
13795 fi ;;
13796 esac
13797 fi
13798 break
13799 fi
13800 done
13801 IFS="$lt_save_ifs"
13802 MAGIC_CMD="$lt_save_MAGIC_CMD"
13803 ;;
13804esac
13805fi
13806
13807MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13808if test -n "$MAGIC_CMD"; then
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13810$as_echo "$MAGIC_CMD" >&6; }
13811else
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13813$as_echo "no" >&6; }
13814fi
13815
13816
13817
13818
13819
13820if test -z "$lt_cv_path_MAGIC_CMD"; then
13821 if test -n "$ac_tool_prefix"; then
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13823$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013824if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013825 $as_echo_n "(cached) " >&6
13826else
13827 case $MAGIC_CMD in
13828[\\/*] | ?:[\\/]*)
13829 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13830 ;;
13831*)
13832 lt_save_MAGIC_CMD="$MAGIC_CMD"
13833 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13834 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13835 for ac_dir in $ac_dummy; do
13836 IFS="$lt_save_ifs"
13837 test -z "$ac_dir" && ac_dir=.
13838 if test -f $ac_dir/file; then
13839 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13840 if test -n "$file_magic_test_file"; then
13841 case $deplibs_check_method in
13842 "file_magic "*)
13843 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13844 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13845 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13846 $EGREP "$file_magic_regex" > /dev/null; then
13847 :
13848 else
13849 cat <<_LT_EOF 1>&2
13850
13851*** Warning: the command libtool uses to detect shared libraries,
13852*** $file_magic_cmd, produces output that libtool cannot recognize.
13853*** The result is that libtool may fail to recognize shared libraries
13854*** as such. This will affect the creation of libtool libraries that
13855*** depend on shared libraries, but programs linked with such libtool
13856*** libraries will work regardless of this problem. Nevertheless, you
13857*** may want to report the problem to your system manager and/or to
13858*** bug-libtool@gnu.org
13859
13860_LT_EOF
13861 fi ;;
13862 esac
13863 fi
13864 break
13865 fi
13866 done
13867 IFS="$lt_save_ifs"
13868 MAGIC_CMD="$lt_save_MAGIC_CMD"
13869 ;;
13870esac
13871fi
13872
13873MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13874if test -n "$MAGIC_CMD"; then
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13876$as_echo "$MAGIC_CMD" >&6; }
13877else
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13879$as_echo "no" >&6; }
13880fi
13881
13882
13883 else
13884 MAGIC_CMD=:
13885 fi
13886fi
13887
13888 fi
13889 ;;
13890esac
13891
13892# Use C for the default configuration in the libtool script
13893
13894lt_save_CC="$CC"
13895ac_ext=c
13896ac_cpp='$CPP $CPPFLAGS'
13897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13899ac_compiler_gnu=$ac_cv_c_compiler_gnu
13900
13901
13902# Source file extension for C test sources.
13903ac_ext=c
13904
13905# Object file extension for compiled C test sources.
13906objext=o
13907objext=$objext
13908
13909# Code to be used in simple compile tests
13910lt_simple_compile_test_code="int some_variable = 0;"
13911
13912# Code to be used in simple link tests
13913lt_simple_link_test_code='int main(){return(0);}'
13914
13915
13916
13917
13918
13919
13920
13921# If no C compiler was specified, use CC.
13922LTCC=${LTCC-"$CC"}
13923
13924# If no C compiler flags were specified, use CFLAGS.
13925LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13926
13927# Allow CC to be a program name with arguments.
13928compiler=$CC
13929
13930# Save the default compiler, since it gets overwritten when the other
13931# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13932compiler_DEFAULT=$CC
13933
13934# save warnings/boilerplate of simple test code
13935ac_outfile=conftest.$ac_objext
13936echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13937eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13938_lt_compiler_boilerplate=`cat conftest.err`
13939$RM conftest*
13940
13941ac_outfile=conftest.$ac_objext
13942echo "$lt_simple_link_test_code" >conftest.$ac_ext
13943eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13944_lt_linker_boilerplate=`cat conftest.err`
13945$RM -r conftest*
13946
13947
13948## CAVEAT EMPTOR:
13949## There is no encapsulation within the following macros, do not change
13950## the running order or otherwise move them around unless you know exactly
13951## what you are doing...
13952if test -n "$compiler"; then
13953
13954lt_prog_compiler_no_builtin_flag=
13955
13956if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013957 case $cc_basename in
13958 nvcc*)
13959 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13960 *)
13961 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13962 esac
cristy73bd4a52010-10-05 11:24:23 +000013963
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13965$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013966if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013967 $as_echo_n "(cached) " >&6
13968else
13969 lt_cv_prog_compiler_rtti_exceptions=no
13970 ac_outfile=conftest.$ac_objext
13971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13972 lt_compiler_flag="-fno-rtti -fno-exceptions"
13973 # Insert the option either (1) after the last *FLAGS variable, or
13974 # (2) before a word containing "conftest.", or (3) at the end.
13975 # Note that $ac_compile itself does not contain backslashes and begins
13976 # with a dollar sign (not a hyphen), so the echo should work correctly.
13977 # The option is referenced via a variable to avoid confusing sed.
13978 lt_compile=`echo "$ac_compile" | $SED \
13979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13981 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013983 (eval "$lt_compile" 2>conftest.err)
13984 ac_status=$?
13985 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013987 if (exit $ac_status) && test -s "$ac_outfile"; then
13988 # The compiler can only warn and ignore the option if not recognized
13989 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13992 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13993 lt_cv_prog_compiler_rtti_exceptions=yes
13994 fi
13995 fi
13996 $RM conftest*
13997
13998fi
13999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14000$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14001
14002if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14003 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14004else
14005 :
14006fi
14007
14008fi
14009
14010
14011
14012
14013
14014
14015 lt_prog_compiler_wl=
14016lt_prog_compiler_pic=
14017lt_prog_compiler_static=
14018
cristy73bd4a52010-10-05 11:24:23 +000014019
14020 if test "$GCC" = yes; then
14021 lt_prog_compiler_wl='-Wl,'
14022 lt_prog_compiler_static='-static'
14023
14024 case $host_os in
14025 aix*)
14026 # All AIX code is PIC.
14027 if test "$host_cpu" = ia64; then
14028 # AIX 5 now supports IA64 processor
14029 lt_prog_compiler_static='-Bstatic'
14030 fi
14031 ;;
14032
14033 amigaos*)
14034 case $host_cpu in
14035 powerpc)
14036 # see comment about AmigaOS4 .so support
14037 lt_prog_compiler_pic='-fPIC'
14038 ;;
14039 m68k)
14040 # FIXME: we need at least 68020 code to build shared libraries, but
14041 # adding the `-m68020' flag to GCC prevents building anything better,
14042 # like `-m68040'.
14043 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14044 ;;
14045 esac
14046 ;;
14047
14048 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14049 # PIC is the default for these OSes.
14050 ;;
14051
14052 mingw* | cygwin* | pw32* | os2* | cegcc*)
14053 # This hack is so that the source file can tell whether it is being
14054 # built for inclusion in a dll (and should export symbols for example).
14055 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14056 # (--disable-auto-import) libraries
14057 lt_prog_compiler_pic='-DDLL_EXPORT'
14058 ;;
14059
14060 darwin* | rhapsody*)
14061 # PIC is the default on this platform
14062 # Common symbols not allowed in MH_DYLIB files
14063 lt_prog_compiler_pic='-fno-common'
14064 ;;
14065
cristy0c60a692010-11-04 01:09:47 +000014066 haiku*)
14067 # PIC is the default for Haiku.
14068 # The "-static" flag exists, but is broken.
14069 lt_prog_compiler_static=
14070 ;;
14071
cristy73bd4a52010-10-05 11:24:23 +000014072 hpux*)
14073 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14074 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14075 # sets the default TLS model and affects inlining.
14076 case $host_cpu in
14077 hppa*64*)
14078 # +Z the default
14079 ;;
14080 *)
14081 lt_prog_compiler_pic='-fPIC'
14082 ;;
14083 esac
14084 ;;
14085
14086 interix[3-9]*)
14087 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14088 # Instead, we relocate shared libraries at runtime.
14089 ;;
14090
14091 msdosdjgpp*)
14092 # Just because we use GCC doesn't mean we suddenly get shared libraries
14093 # on systems that don't support them.
14094 lt_prog_compiler_can_build_shared=no
14095 enable_shared=no
14096 ;;
14097
14098 *nto* | *qnx*)
14099 # QNX uses GNU C++, but need to define -shared option too, otherwise
14100 # it will coredump.
14101 lt_prog_compiler_pic='-fPIC -shared'
14102 ;;
14103
14104 sysv4*MP*)
14105 if test -d /usr/nec; then
14106 lt_prog_compiler_pic=-Kconform_pic
14107 fi
14108 ;;
14109
14110 *)
14111 lt_prog_compiler_pic='-fPIC'
14112 ;;
14113 esac
cristy0c60a692010-11-04 01:09:47 +000014114
14115 case $cc_basename in
14116 nvcc*) # Cuda Compiler Driver 2.2
14117 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014118 if test -n "$lt_prog_compiler_pic"; then
14119 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14120 fi
cristy0c60a692010-11-04 01:09:47 +000014121 ;;
14122 esac
cristy73bd4a52010-10-05 11:24:23 +000014123 else
14124 # PORTME Check for flag to pass linker flags through the system compiler.
14125 case $host_os in
14126 aix*)
14127 lt_prog_compiler_wl='-Wl,'
14128 if test "$host_cpu" = ia64; then
14129 # AIX 5 now supports IA64 processor
14130 lt_prog_compiler_static='-Bstatic'
14131 else
14132 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14133 fi
14134 ;;
14135
14136 mingw* | cygwin* | pw32* | os2* | cegcc*)
14137 # This hack is so that the source file can tell whether it is being
14138 # built for inclusion in a dll (and should export symbols for example).
14139 lt_prog_compiler_pic='-DDLL_EXPORT'
14140 ;;
14141
14142 hpux9* | hpux10* | hpux11*)
14143 lt_prog_compiler_wl='-Wl,'
14144 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14145 # not for PA HP-UX.
14146 case $host_cpu in
14147 hppa*64*|ia64*)
14148 # +Z the default
14149 ;;
14150 *)
14151 lt_prog_compiler_pic='+Z'
14152 ;;
14153 esac
14154 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14155 lt_prog_compiler_static='${wl}-a ${wl}archive'
14156 ;;
14157
14158 irix5* | irix6* | nonstopux*)
14159 lt_prog_compiler_wl='-Wl,'
14160 # PIC (with -KPIC) is the default.
14161 lt_prog_compiler_static='-non_shared'
14162 ;;
14163
cristy0c60a692010-11-04 01:09:47 +000014164 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014165 case $cc_basename in
14166 # old Intel for x86_64 which still supported -KPIC.
14167 ecc*)
14168 lt_prog_compiler_wl='-Wl,'
14169 lt_prog_compiler_pic='-KPIC'
14170 lt_prog_compiler_static='-static'
14171 ;;
14172 # icc used to be incompatible with GCC.
14173 # ICC 10 doesn't accept -KPIC any more.
14174 icc* | ifort*)
14175 lt_prog_compiler_wl='-Wl,'
14176 lt_prog_compiler_pic='-fPIC'
14177 lt_prog_compiler_static='-static'
14178 ;;
14179 # Lahey Fortran 8.1.
14180 lf95*)
14181 lt_prog_compiler_wl='-Wl,'
14182 lt_prog_compiler_pic='--shared'
14183 lt_prog_compiler_static='--static'
14184 ;;
cristyda16f162011-02-19 23:52:17 +000014185 nagfor*)
14186 # NAG Fortran compiler
14187 lt_prog_compiler_wl='-Wl,-Wl,,'
14188 lt_prog_compiler_pic='-PIC'
14189 lt_prog_compiler_static='-Bstatic'
14190 ;;
cristy0c60a692010-11-04 01:09:47 +000014191 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014192 # Portland Group compilers (*not* the Pentium gcc compiler,
14193 # which looks to be a dead project)
14194 lt_prog_compiler_wl='-Wl,'
14195 lt_prog_compiler_pic='-fpic'
14196 lt_prog_compiler_static='-Bstatic'
14197 ;;
14198 ccc*)
14199 lt_prog_compiler_wl='-Wl,'
14200 # All Alpha code is PIC.
14201 lt_prog_compiler_static='-non_shared'
14202 ;;
cristy0c60a692010-11-04 01:09:47 +000014203 xl* | bgxl* | bgf* | mpixl*)
14204 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014205 lt_prog_compiler_wl='-Wl,'
14206 lt_prog_compiler_pic='-qpic'
14207 lt_prog_compiler_static='-qstaticlink'
14208 ;;
14209 *)
14210 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014211 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014212 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14213 lt_prog_compiler_pic='-KPIC'
14214 lt_prog_compiler_static='-Bstatic'
14215 lt_prog_compiler_wl=''
14216 ;;
cristy99bd5232011-12-07 14:38:20 +000014217 *Sun\ F* | *Sun*Fortran*)
14218 lt_prog_compiler_pic='-KPIC'
14219 lt_prog_compiler_static='-Bstatic'
14220 lt_prog_compiler_wl='-Qoption ld '
14221 ;;
cristy73bd4a52010-10-05 11:24:23 +000014222 *Sun\ C*)
14223 # Sun C 5.9
14224 lt_prog_compiler_pic='-KPIC'
14225 lt_prog_compiler_static='-Bstatic'
14226 lt_prog_compiler_wl='-Wl,'
14227 ;;
cristy99bd5232011-12-07 14:38:20 +000014228 *Intel*\ [CF]*Compiler*)
14229 lt_prog_compiler_wl='-Wl,'
14230 lt_prog_compiler_pic='-fPIC'
14231 lt_prog_compiler_static='-static'
14232 ;;
14233 *Portland\ Group*)
14234 lt_prog_compiler_wl='-Wl,'
14235 lt_prog_compiler_pic='-fpic'
14236 lt_prog_compiler_static='-Bstatic'
14237 ;;
cristy73bd4a52010-10-05 11:24:23 +000014238 esac
14239 ;;
14240 esac
14241 ;;
14242
14243 newsos6)
14244 lt_prog_compiler_pic='-KPIC'
14245 lt_prog_compiler_static='-Bstatic'
14246 ;;
14247
14248 *nto* | *qnx*)
14249 # QNX uses GNU C++, but need to define -shared option too, otherwise
14250 # it will coredump.
14251 lt_prog_compiler_pic='-fPIC -shared'
14252 ;;
14253
14254 osf3* | osf4* | osf5*)
14255 lt_prog_compiler_wl='-Wl,'
14256 # All OSF/1 code is PIC.
14257 lt_prog_compiler_static='-non_shared'
14258 ;;
14259
14260 rdos*)
14261 lt_prog_compiler_static='-non_shared'
14262 ;;
14263
14264 solaris*)
14265 lt_prog_compiler_pic='-KPIC'
14266 lt_prog_compiler_static='-Bstatic'
14267 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014268 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014269 lt_prog_compiler_wl='-Qoption ld ';;
14270 *)
14271 lt_prog_compiler_wl='-Wl,';;
14272 esac
14273 ;;
14274
14275 sunos4*)
14276 lt_prog_compiler_wl='-Qoption ld '
14277 lt_prog_compiler_pic='-PIC'
14278 lt_prog_compiler_static='-Bstatic'
14279 ;;
14280
14281 sysv4 | sysv4.2uw2* | sysv4.3*)
14282 lt_prog_compiler_wl='-Wl,'
14283 lt_prog_compiler_pic='-KPIC'
14284 lt_prog_compiler_static='-Bstatic'
14285 ;;
14286
14287 sysv4*MP*)
14288 if test -d /usr/nec ;then
14289 lt_prog_compiler_pic='-Kconform_pic'
14290 lt_prog_compiler_static='-Bstatic'
14291 fi
14292 ;;
14293
14294 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14295 lt_prog_compiler_wl='-Wl,'
14296 lt_prog_compiler_pic='-KPIC'
14297 lt_prog_compiler_static='-Bstatic'
14298 ;;
14299
14300 unicos*)
14301 lt_prog_compiler_wl='-Wl,'
14302 lt_prog_compiler_can_build_shared=no
14303 ;;
14304
14305 uts4*)
14306 lt_prog_compiler_pic='-pic'
14307 lt_prog_compiler_static='-Bstatic'
14308 ;;
14309
14310 *)
14311 lt_prog_compiler_can_build_shared=no
14312 ;;
14313 esac
14314 fi
14315
14316case $host_os in
14317 # For platforms which do not support PIC, -DPIC is meaningless:
14318 *djgpp*)
14319 lt_prog_compiler_pic=
14320 ;;
14321 *)
14322 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14323 ;;
14324esac
cristy73bd4a52010-10-05 11:24:23 +000014325
cristyda16f162011-02-19 23:52:17 +000014326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14327$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14328if ${lt_cv_prog_compiler_pic+:} false; then :
14329 $as_echo_n "(cached) " >&6
14330else
14331 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14332fi
14333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14334$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14335lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014336
14337#
14338# Check to make sure the PIC flag actually works.
14339#
14340if test -n "$lt_prog_compiler_pic"; then
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14342$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014343if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014344 $as_echo_n "(cached) " >&6
14345else
14346 lt_cv_prog_compiler_pic_works=no
14347 ac_outfile=conftest.$ac_objext
14348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14349 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14350 # Insert the option either (1) after the last *FLAGS variable, or
14351 # (2) before a word containing "conftest.", or (3) at the end.
14352 # Note that $ac_compile itself does not contain backslashes and begins
14353 # with a dollar sign (not a hyphen), so the echo should work correctly.
14354 # The option is referenced via a variable to avoid confusing sed.
14355 lt_compile=`echo "$ac_compile" | $SED \
14356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14358 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014359 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014360 (eval "$lt_compile" 2>conftest.err)
14361 ac_status=$?
14362 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014364 if (exit $ac_status) && test -s "$ac_outfile"; then
14365 # The compiler can only warn and ignore the option if not recognized
14366 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014367 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14369 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14370 lt_cv_prog_compiler_pic_works=yes
14371 fi
14372 fi
14373 $RM conftest*
14374
14375fi
14376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14377$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14378
14379if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14380 case $lt_prog_compiler_pic in
14381 "" | " "*) ;;
14382 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14383 esac
14384else
14385 lt_prog_compiler_pic=
14386 lt_prog_compiler_can_build_shared=no
14387fi
14388
14389fi
14390
14391
14392
14393
14394
14395
cristyda16f162011-02-19 23:52:17 +000014396
14397
14398
14399
14400
cristy73bd4a52010-10-05 11:24:23 +000014401#
14402# Check to make sure the static flag actually works.
14403#
14404wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14406$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014407if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014408 $as_echo_n "(cached) " >&6
14409else
14410 lt_cv_prog_compiler_static_works=no
14411 save_LDFLAGS="$LDFLAGS"
14412 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14413 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14414 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14415 # The linker can only warn and ignore the option if not recognized
14416 # So say no if there are warnings
14417 if test -s conftest.err; then
14418 # Append any errors to the config.log.
14419 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014420 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14422 if diff conftest.exp conftest.er2 >/dev/null; then
14423 lt_cv_prog_compiler_static_works=yes
14424 fi
14425 else
14426 lt_cv_prog_compiler_static_works=yes
14427 fi
14428 fi
14429 $RM -r conftest*
14430 LDFLAGS="$save_LDFLAGS"
14431
14432fi
14433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14434$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14435
14436if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14437 :
14438else
14439 lt_prog_compiler_static=
14440fi
14441
14442
14443
14444
14445
14446
14447
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14449$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014450if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014451 $as_echo_n "(cached) " >&6
14452else
14453 lt_cv_prog_compiler_c_o=no
14454 $RM -r conftest 2>/dev/null
14455 mkdir conftest
14456 cd conftest
14457 mkdir out
14458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14459
14460 lt_compiler_flag="-o out/conftest2.$ac_objext"
14461 # Insert the option either (1) after the last *FLAGS variable, or
14462 # (2) before a word containing "conftest.", or (3) at the end.
14463 # Note that $ac_compile itself does not contain backslashes and begins
14464 # with a dollar sign (not a hyphen), so the echo should work correctly.
14465 lt_compile=`echo "$ac_compile" | $SED \
14466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14468 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014470 (eval "$lt_compile" 2>out/conftest.err)
14471 ac_status=$?
14472 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014474 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14475 then
14476 # The compiler can only warn and ignore the option if not recognized
14477 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014478 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014479 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14480 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14481 lt_cv_prog_compiler_c_o=yes
14482 fi
14483 fi
14484 chmod u+w . 2>&5
14485 $RM conftest*
14486 # SGI C++ compiler will create directory out/ii_files/ for
14487 # template instantiation
14488 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14489 $RM out/* && rmdir out
14490 cd ..
14491 $RM -r conftest
14492 $RM conftest*
14493
14494fi
14495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14496$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14497
14498
14499
14500
14501
14502
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14504$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014505if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014506 $as_echo_n "(cached) " >&6
14507else
14508 lt_cv_prog_compiler_c_o=no
14509 $RM -r conftest 2>/dev/null
14510 mkdir conftest
14511 cd conftest
14512 mkdir out
14513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14514
14515 lt_compiler_flag="-o out/conftest2.$ac_objext"
14516 # Insert the option either (1) after the last *FLAGS variable, or
14517 # (2) before a word containing "conftest.", or (3) at the end.
14518 # Note that $ac_compile itself does not contain backslashes and begins
14519 # with a dollar sign (not a hyphen), so the echo should work correctly.
14520 lt_compile=`echo "$ac_compile" | $SED \
14521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14523 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014524 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014525 (eval "$lt_compile" 2>out/conftest.err)
14526 ac_status=$?
14527 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014529 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14530 then
14531 # The compiler can only warn and ignore the option if not recognized
14532 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014533 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014534 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14535 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14536 lt_cv_prog_compiler_c_o=yes
14537 fi
14538 fi
14539 chmod u+w . 2>&5
14540 $RM conftest*
14541 # SGI C++ compiler will create directory out/ii_files/ for
14542 # template instantiation
14543 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14544 $RM out/* && rmdir out
14545 cd ..
14546 $RM -r conftest
14547 $RM conftest*
14548
14549fi
14550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14551$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14552
14553
14554
14555
14556hard_links="nottested"
14557if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14558 # do not overwrite the value of need_locks provided by the user
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14560$as_echo_n "checking if we can lock with hard links... " >&6; }
14561 hard_links=yes
14562 $RM conftest*
14563 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14564 touch conftest.a
14565 ln conftest.a conftest.b 2>&5 || hard_links=no
14566 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14568$as_echo "$hard_links" >&6; }
14569 if test "$hard_links" = no; then
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14571$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14572 need_locks=warn
14573 fi
14574else
14575 need_locks=no
14576fi
14577
14578
14579
14580
14581
14582
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14584$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14585
14586 runpath_var=
14587 allow_undefined_flag=
14588 always_export_symbols=no
14589 archive_cmds=
14590 archive_expsym_cmds=
14591 compiler_needs_object=no
14592 enable_shared_with_static_runtimes=no
14593 export_dynamic_flag_spec=
14594 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14595 hardcode_automatic=no
14596 hardcode_direct=no
14597 hardcode_direct_absolute=no
14598 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014599 hardcode_libdir_separator=
14600 hardcode_minus_L=no
14601 hardcode_shlibpath_var=unsupported
14602 inherit_rpath=no
14603 link_all_deplibs=unknown
14604 module_cmds=
14605 module_expsym_cmds=
14606 old_archive_from_new_cmds=
14607 old_archive_from_expsyms_cmds=
14608 thread_safe_flag_spec=
14609 whole_archive_flag_spec=
14610 # include_expsyms should be a list of space-separated symbols to be *always*
14611 # included in the symbol list
14612 include_expsyms=
14613 # exclude_expsyms can be an extended regexp of symbols to exclude
14614 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14615 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14616 # as well as any symbol that contains `d'.
14617 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14618 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14619 # platforms (ab)use it in PIC code, but their linkers get confused if
14620 # the symbol is explicitly referenced. Since portable code cannot
14621 # rely on this symbol name, it's probably fine to never include it in
14622 # preloaded symbol tables.
14623 # Exclude shared library initialization/finalization symbols.
14624 extract_expsyms_cmds=
14625
14626 case $host_os in
14627 cygwin* | mingw* | pw32* | cegcc*)
14628 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14629 # When not using gcc, we currently assume that we are using
14630 # Microsoft Visual C++.
14631 if test "$GCC" != yes; then
14632 with_gnu_ld=no
14633 fi
14634 ;;
14635 interix*)
14636 # we just hope/assume this is gcc and not c89 (= MSVC++)
14637 with_gnu_ld=yes
14638 ;;
14639 openbsd*)
14640 with_gnu_ld=no
14641 ;;
14642 esac
14643
14644 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014645
14646 # On some targets, GNU ld is compatible enough with the native linker
14647 # that we're better off using the native interface for both.
14648 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014649 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014650 case $host_os in
14651 aix*)
14652 # The AIX port of GNU ld has always aspired to compatibility
14653 # with the native linker. However, as the warning in the GNU ld
14654 # block says, versions before 2.19.5* couldn't really create working
14655 # shared libraries, regardless of the interface used.
14656 case `$LD -v 2>&1` in
14657 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14658 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14659 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14660 *)
14661 lt_use_gnu_ld_interface=yes
14662 ;;
14663 esac
14664 ;;
14665 *)
14666 lt_use_gnu_ld_interface=yes
14667 ;;
14668 esac
14669 fi
14670
14671 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014672 # If archive_cmds runs LD, not CC, wlarc should be empty
14673 wlarc='${wl}'
14674
14675 # Set some defaults for GNU ld with shared library support. These
14676 # are reset later if shared libraries are not supported. Putting them
14677 # here allows them to be overridden if necessary.
14678 runpath_var=LD_RUN_PATH
14679 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14680 export_dynamic_flag_spec='${wl}--export-dynamic'
14681 # ancient GNU ld didn't support --whole-archive et. al.
14682 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14683 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14684 else
14685 whole_archive_flag_spec=
14686 fi
14687 supports_anon_versioning=no
14688 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014689 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014690 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14691 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14692 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14693 *\ 2.11.*) ;; # other 2.11 versions
14694 *) supports_anon_versioning=yes ;;
14695 esac
14696
14697 # See if GNU ld supports shared libraries.
14698 case $host_os in
14699 aix[3-9]*)
14700 # On AIX/PPC, the GNU linker is very broken
14701 if test "$host_cpu" != ia64; then
14702 ld_shlibs=no
14703 cat <<_LT_EOF 1>&2
14704
cristy0c60a692010-11-04 01:09:47 +000014705*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014706*** to be unable to reliably create shared libraries on AIX.
14707*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014708*** really care for shared libraries, you may want to install binutils
14709*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14710*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014711
14712_LT_EOF
14713 fi
14714 ;;
14715
14716 amigaos*)
14717 case $host_cpu in
14718 powerpc)
14719 # see comment about AmigaOS4 .so support
14720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14721 archive_expsym_cmds=''
14722 ;;
14723 m68k)
14724 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)'
14725 hardcode_libdir_flag_spec='-L$libdir'
14726 hardcode_minus_L=yes
14727 ;;
14728 esac
14729 ;;
14730
14731 beos*)
14732 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14733 allow_undefined_flag=unsupported
14734 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14735 # support --undefined. This deserves some investigation. FIXME
14736 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14737 else
14738 ld_shlibs=no
14739 fi
14740 ;;
14741
14742 cygwin* | mingw* | pw32* | cegcc*)
14743 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14744 # as there is no search path for DLLs.
14745 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014746 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014747 allow_undefined_flag=unsupported
14748 always_export_symbols=no
14749 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014750 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'
14751 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 +000014752
14753 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14755 # If the export-symbols file already is a .def file (1st line
14756 # is EXPORTS), use it as is; otherwise, prepend...
14757 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14758 cp $export_symbols $output_objdir/$soname.def;
14759 else
14760 echo EXPORTS > $output_objdir/$soname.def;
14761 cat $export_symbols >> $output_objdir/$soname.def;
14762 fi~
14763 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14764 else
14765 ld_shlibs=no
14766 fi
14767 ;;
14768
cristy0c60a692010-11-04 01:09:47 +000014769 haiku*)
14770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14771 link_all_deplibs=yes
14772 ;;
14773
cristy73bd4a52010-10-05 11:24:23 +000014774 interix[3-9]*)
14775 hardcode_direct=no
14776 hardcode_shlibpath_var=no
14777 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14778 export_dynamic_flag_spec='${wl}-E'
14779 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14780 # Instead, shared libraries are loaded at an image base (0x10000000 by
14781 # default) and relocated if they conflict, which is a slow very memory
14782 # consuming and fragmenting process. To avoid this, we pick a random,
14783 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14784 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14785 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14786 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'
14787 ;;
14788
cristy0c60a692010-11-04 01:09:47 +000014789 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014790 tmp_diet=no
14791 if test "$host_os" = linux-dietlibc; then
14792 case $cc_basename in
14793 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14794 esac
14795 fi
14796 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14797 && test "$tmp_diet" = no
14798 then
cristyda16f162011-02-19 23:52:17 +000014799 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014800 tmp_sharedflag='-shared'
14801 case $cc_basename,$host_cpu in
14802 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014803 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 +000014804 tmp_addflag=' $pic_flag'
14805 ;;
cristy0c60a692010-11-04 01:09:47 +000014806 pgf77* | pgf90* | pgf95* | pgfortran*)
14807 # Portland Group f77 and f90 compilers
14808 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 +000014809 tmp_addflag=' $pic_flag -Mnomain' ;;
14810 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14811 tmp_addflag=' -i_dynamic' ;;
14812 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14813 tmp_addflag=' -i_dynamic -nofor_main' ;;
14814 ifc* | ifort*) # Intel Fortran compiler
14815 tmp_addflag=' -nofor_main' ;;
14816 lf95*) # Lahey Fortran 8.1
14817 whole_archive_flag_spec=
14818 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014819 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014820 tmp_sharedflag='-qmkshrobj'
14821 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014822 nvcc*) # Cuda Compiler Driver 2.2
14823 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'
14824 compiler_needs_object=yes
14825 ;;
cristy73bd4a52010-10-05 11:24:23 +000014826 esac
14827 case `$CC -V 2>&1 | sed 5q` in
14828 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014829 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 +000014830 compiler_needs_object=yes
14831 tmp_sharedflag='-G' ;;
14832 *Sun\ F*) # Sun Fortran 8.3
14833 tmp_sharedflag='-G' ;;
14834 esac
14835 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14836
14837 if test "x$supports_anon_versioning" = xyes; then
14838 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14839 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14840 echo "local: *; };" >> $output_objdir/$libname.ver~
14841 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14842 fi
14843
14844 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014845 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014846 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14847 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014849 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014850 if test "x$supports_anon_versioning" = xyes; then
14851 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14852 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14853 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014854 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014855 fi
14856 ;;
14857 esac
14858 else
14859 ld_shlibs=no
14860 fi
14861 ;;
14862
14863 netbsd*)
14864 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14865 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14866 wlarc=
14867 else
cristyda16f162011-02-19 23:52:17 +000014868 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14869 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 +000014870 fi
14871 ;;
14872
14873 solaris*)
14874 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14875 ld_shlibs=no
14876 cat <<_LT_EOF 1>&2
14877
14878*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14879*** create shared libraries on Solaris systems. Therefore, libtool
14880*** is disabling shared libraries support. We urge you to upgrade GNU
14881*** binutils to release 2.9.1 or newer. Another option is to modify
14882*** your PATH or compiler configuration so that the native linker is
14883*** used, and then restart.
14884
14885_LT_EOF
14886 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014887 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14888 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 +000014889 else
14890 ld_shlibs=no
14891 fi
14892 ;;
14893
14894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14895 case `$LD -v 2>&1` in
14896 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14897 ld_shlibs=no
14898 cat <<_LT_EOF 1>&2
14899
14900*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14901*** reliably create shared libraries on SCO systems. Therefore, libtool
14902*** is disabling shared libraries support. We urge you to upgrade GNU
14903*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14904*** your PATH or compiler configuration so that the native linker is
14905*** used, and then restart.
14906
14907_LT_EOF
14908 ;;
14909 *)
14910 # For security reasons, it is highly recommended that you always
14911 # use absolute paths for naming shared libraries, and exclude the
14912 # DT_RUNPATH tag from executables and libraries. But doing so
14913 # requires that you compile everything twice, which is a pain.
14914 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14917 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14918 else
14919 ld_shlibs=no
14920 fi
14921 ;;
14922 esac
14923 ;;
14924
14925 sunos4*)
14926 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14927 wlarc=
14928 hardcode_direct=yes
14929 hardcode_shlibpath_var=no
14930 ;;
14931
14932 *)
14933 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014934 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14935 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 +000014936 else
14937 ld_shlibs=no
14938 fi
14939 ;;
14940 esac
14941
14942 if test "$ld_shlibs" = no; then
14943 runpath_var=
14944 hardcode_libdir_flag_spec=
14945 export_dynamic_flag_spec=
14946 whole_archive_flag_spec=
14947 fi
14948 else
14949 # PORTME fill in a description of your system's linker (not GNU ld)
14950 case $host_os in
14951 aix3*)
14952 allow_undefined_flag=unsupported
14953 always_export_symbols=yes
14954 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'
14955 # Note: this linker hardcodes the directories in LIBPATH if there
14956 # are no directories specified by -L.
14957 hardcode_minus_L=yes
14958 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14959 # Neither direct hardcoding nor static linking is supported with a
14960 # broken collect2.
14961 hardcode_direct=unsupported
14962 fi
14963 ;;
14964
14965 aix[4-9]*)
14966 if test "$host_cpu" = ia64; then
14967 # On IA64, the linker does run time linking by default, so we don't
14968 # have to do anything special.
14969 aix_use_runtimelinking=no
14970 exp_sym_flag='-Bexport'
14971 no_entry_flag=""
14972 else
14973 # If we're using GNU nm, then we don't want the "-C" option.
14974 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014975 # Also, AIX nm treats weak defined symbols like other global
14976 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014977 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014978 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 +000014979 else
14980 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'
14981 fi
14982 aix_use_runtimelinking=no
14983
14984 # Test if we are trying to use run time linking or normal
14985 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14986 # need to do runtime linking.
14987 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14988 for ld_flag in $LDFLAGS; do
14989 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14990 aix_use_runtimelinking=yes
14991 break
14992 fi
14993 done
14994 ;;
14995 esac
14996
14997 exp_sym_flag='-bexport'
14998 no_entry_flag='-bnoentry'
14999 fi
15000
15001 # When large executables or shared objects are built, AIX ld can
15002 # have problems creating the table of contents. If linking a library
15003 # or program results in "error TOC overflow" add -mminimal-toc to
15004 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15005 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15006
15007 archive_cmds=''
15008 hardcode_direct=yes
15009 hardcode_direct_absolute=yes
15010 hardcode_libdir_separator=':'
15011 link_all_deplibs=yes
15012 file_list_spec='${wl}-f,'
15013
15014 if test "$GCC" = yes; then
15015 case $host_os in aix4.[012]|aix4.[012].*)
15016 # We only want to do this on AIX 4.2 and lower, the check
15017 # below for broken collect2 doesn't work under 4.3+
15018 collect2name=`${CC} -print-prog-name=collect2`
15019 if test -f "$collect2name" &&
15020 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15021 then
15022 # We have reworked collect2
15023 :
15024 else
15025 # We have old collect2
15026 hardcode_direct=unsupported
15027 # It fails to find uninstalled libraries when the uninstalled
15028 # path is not listed in the libpath. Setting hardcode_minus_L
15029 # to unsupported forces relinking
15030 hardcode_minus_L=yes
15031 hardcode_libdir_flag_spec='-L$libdir'
15032 hardcode_libdir_separator=
15033 fi
15034 ;;
15035 esac
15036 shared_flag='-shared'
15037 if test "$aix_use_runtimelinking" = yes; then
15038 shared_flag="$shared_flag "'${wl}-G'
15039 fi
15040 else
15041 # not using gcc
15042 if test "$host_cpu" = ia64; then
15043 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15044 # chokes on -Wl,-G. The following line is correct:
15045 shared_flag='-G'
15046 else
15047 if test "$aix_use_runtimelinking" = yes; then
15048 shared_flag='${wl}-G'
15049 else
15050 shared_flag='${wl}-bM:SRE'
15051 fi
15052 fi
15053 fi
15054
15055 export_dynamic_flag_spec='${wl}-bexpall'
15056 # It seems that -bexpall does not export symbols beginning with
15057 # underscore (_), so it is better to generate a list of symbols to export.
15058 always_export_symbols=yes
15059 if test "$aix_use_runtimelinking" = yes; then
15060 # Warning - without using the other runtime loading flags (-brtl),
15061 # -berok will link without error, but may produce a broken library.
15062 allow_undefined_flag='-berok'
15063 # Determine the default libpath from the value encoded in an
15064 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015065 if test "${lt_cv_aix_libpath+set}" = set; then
15066 aix_libpath=$lt_cv_aix_libpath
15067else
15068 if ${lt_cv_aix_libpath_+:} false; then :
15069 $as_echo_n "(cached) " >&6
15070else
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015072/* end confdefs.h. */
15073
15074int
15075main ()
15076{
15077
15078 ;
15079 return 0;
15080}
15081_ACEOF
15082if ac_fn_c_try_link "$LINENO"; then :
15083
cristyda16f162011-02-19 23:52:17 +000015084 lt_aix_libpath_sed='
15085 /Import File Strings/,/^$/ {
15086 /^0/ {
15087 s/^0 *\([^ ]*\) *$/\1/
15088 p
15089 }
15090 }'
15091 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15092 # Check for a 64-bit object if we didn't find anything.
15093 if test -z "$lt_cv_aix_libpath_"; then
15094 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15095 fi
cristy73bd4a52010-10-05 11:24:23 +000015096fi
15097rm -f core conftest.err conftest.$ac_objext \
15098 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015099 if test -z "$lt_cv_aix_libpath_"; then
15100 lt_cv_aix_libpath_="/usr/lib:/lib"
15101 fi
15102
15103fi
15104
15105 aix_libpath=$lt_cv_aix_libpath_
15106fi
cristy73bd4a52010-10-05 11:24:23 +000015107
15108 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015109 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 +000015110 else
15111 if test "$host_cpu" = ia64; then
15112 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15113 allow_undefined_flag="-z nodefs"
15114 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"
15115 else
15116 # Determine the default libpath from the value encoded in an
15117 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015118 if test "${lt_cv_aix_libpath+set}" = set; then
15119 aix_libpath=$lt_cv_aix_libpath
15120else
15121 if ${lt_cv_aix_libpath_+:} false; then :
15122 $as_echo_n "(cached) " >&6
15123else
15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015125/* end confdefs.h. */
15126
15127int
15128main ()
15129{
15130
15131 ;
15132 return 0;
15133}
15134_ACEOF
15135if ac_fn_c_try_link "$LINENO"; then :
15136
cristyda16f162011-02-19 23:52:17 +000015137 lt_aix_libpath_sed='
15138 /Import File Strings/,/^$/ {
15139 /^0/ {
15140 s/^0 *\([^ ]*\) *$/\1/
15141 p
15142 }
15143 }'
15144 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15145 # Check for a 64-bit object if we didn't find anything.
15146 if test -z "$lt_cv_aix_libpath_"; then
15147 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15148 fi
cristy73bd4a52010-10-05 11:24:23 +000015149fi
15150rm -f core conftest.err conftest.$ac_objext \
15151 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015152 if test -z "$lt_cv_aix_libpath_"; then
15153 lt_cv_aix_libpath_="/usr/lib:/lib"
15154 fi
15155
15156fi
15157
15158 aix_libpath=$lt_cv_aix_libpath_
15159fi
cristy73bd4a52010-10-05 11:24:23 +000015160
15161 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15162 # Warning - without using the other run time loading flags,
15163 # -berok will link without error, but may produce a broken library.
15164 no_undefined_flag=' ${wl}-bernotok'
15165 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015166 if test "$with_gnu_ld" = yes; then
15167 # We only use this code for GNU lds that support --whole-archive.
15168 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15169 else
15170 # Exported symbols can be pulled into shared objects from archives
15171 whole_archive_flag_spec='$convenience'
15172 fi
cristy73bd4a52010-10-05 11:24:23 +000015173 archive_cmds_need_lc=yes
15174 # This is similar to how AIX traditionally builds its shared libraries.
15175 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'
15176 fi
15177 fi
15178 ;;
15179
15180 amigaos*)
15181 case $host_cpu in
15182 powerpc)
15183 # see comment about AmigaOS4 .so support
15184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15185 archive_expsym_cmds=''
15186 ;;
15187 m68k)
15188 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)'
15189 hardcode_libdir_flag_spec='-L$libdir'
15190 hardcode_minus_L=yes
15191 ;;
15192 esac
15193 ;;
15194
15195 bsdi[45]*)
15196 export_dynamic_flag_spec=-rdynamic
15197 ;;
15198
15199 cygwin* | mingw* | pw32* | cegcc*)
15200 # When not using gcc, we currently assume that we are using
15201 # Microsoft Visual C++.
15202 # hardcode_libdir_flag_spec is actually meaningless, as there is
15203 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015204 case $cc_basename in
15205 cl*)
15206 # Native MSVC
15207 hardcode_libdir_flag_spec=' '
15208 allow_undefined_flag=unsupported
15209 always_export_symbols=yes
15210 file_list_spec='@'
15211 # Tell ltmain to make .lib files, not .a files.
15212 libext=lib
15213 # Tell ltmain to make .dll files, not .so files.
15214 shrext_cmds=".dll"
15215 # FIXME: Setting linknames here is a bad hack.
15216 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15217 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15218 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15219 else
15220 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15221 fi~
15222 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15223 linknames='
15224 # The linker will not automatically build a static lib if we build a DLL.
15225 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15226 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015227 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015228 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15229 # Don't use ranlib
15230 old_postinstall_cmds='chmod 644 $oldlib'
15231 postlink_cmds='lt_outputfile="@OUTPUT@"~
15232 lt_tool_outputfile="@TOOL_OUTPUT@"~
15233 case $lt_outputfile in
15234 *.exe|*.EXE) ;;
15235 *)
15236 lt_outputfile="$lt_outputfile.exe"
15237 lt_tool_outputfile="$lt_tool_outputfile.exe"
15238 ;;
15239 esac~
15240 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15241 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15242 $RM "$lt_outputfile.manifest";
15243 fi'
15244 ;;
15245 *)
15246 # Assume MSVC wrapper
15247 hardcode_libdir_flag_spec=' '
15248 allow_undefined_flag=unsupported
15249 # Tell ltmain to make .lib files, not .a files.
15250 libext=lib
15251 # Tell ltmain to make .dll files, not .so files.
15252 shrext_cmds=".dll"
15253 # FIXME: Setting linknames here is a bad hack.
15254 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15255 # The linker will automatically build a .lib file if we build a DLL.
15256 old_archive_from_new_cmds='true'
15257 # FIXME: Should let the user specify the lib program.
15258 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15259 enable_shared_with_static_runtimes=yes
15260 ;;
15261 esac
cristy73bd4a52010-10-05 11:24:23 +000015262 ;;
15263
15264 darwin* | rhapsody*)
15265
15266
15267 archive_cmds_need_lc=no
15268 hardcode_direct=no
15269 hardcode_automatic=yes
15270 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015271 if test "$lt_cv_ld_force_load" = "yes"; then
15272 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 +000015273
cristy0c60a692010-11-04 01:09:47 +000015274 else
15275 whole_archive_flag_spec=''
15276 fi
cristy73bd4a52010-10-05 11:24:23 +000015277 link_all_deplibs=yes
15278 allow_undefined_flag="$_lt_dar_allow_undefined"
15279 case $cc_basename in
15280 ifort*) _lt_dar_can_shared=yes ;;
15281 *) _lt_dar_can_shared=$GCC ;;
15282 esac
15283 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015284 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015285 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15286 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15287 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}"
15288 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}"
15289
15290 else
15291 ld_shlibs=no
15292 fi
15293
15294 ;;
15295
15296 dgux*)
15297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15298 hardcode_libdir_flag_spec='-L$libdir'
15299 hardcode_shlibpath_var=no
15300 ;;
15301
cristy73bd4a52010-10-05 11:24:23 +000015302 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15303 # support. Future versions do this automatically, but an explicit c++rt0.o
15304 # does not break anything, and helps significantly (at the cost of a little
15305 # extra space).
15306 freebsd2.2*)
15307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15308 hardcode_libdir_flag_spec='-R$libdir'
15309 hardcode_direct=yes
15310 hardcode_shlibpath_var=no
15311 ;;
15312
15313 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015314 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15316 hardcode_direct=yes
15317 hardcode_minus_L=yes
15318 hardcode_shlibpath_var=no
15319 ;;
15320
15321 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15322 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015324 hardcode_libdir_flag_spec='-R$libdir'
15325 hardcode_direct=yes
15326 hardcode_shlibpath_var=no
15327 ;;
15328
15329 hpux9*)
15330 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015331 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 +000015332 else
15333 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'
15334 fi
15335 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15336 hardcode_libdir_separator=:
15337 hardcode_direct=yes
15338
15339 # hardcode_minus_L: Not really in the search PATH,
15340 # but as the default location of the library.
15341 hardcode_minus_L=yes
15342 export_dynamic_flag_spec='${wl}-E'
15343 ;;
15344
15345 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015346 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015347 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 +000015348 else
15349 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15350 fi
15351 if test "$with_gnu_ld" = no; then
15352 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015353 hardcode_libdir_separator=:
15354 hardcode_direct=yes
15355 hardcode_direct_absolute=yes
15356 export_dynamic_flag_spec='${wl}-E'
15357 # hardcode_minus_L: Not really in the search PATH,
15358 # but as the default location of the library.
15359 hardcode_minus_L=yes
15360 fi
15361 ;;
15362
15363 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015364 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015365 case $host_cpu in
15366 hppa*64*)
15367 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15368 ;;
15369 ia64*)
cristyda16f162011-02-19 23:52:17 +000015370 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015371 ;;
15372 *)
cristyda16f162011-02-19 23:52:17 +000015373 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 +000015374 ;;
15375 esac
15376 else
15377 case $host_cpu in
15378 hppa*64*)
15379 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15380 ;;
15381 ia64*)
15382 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15383 ;;
15384 *)
cristy0c60a692010-11-04 01:09:47 +000015385
15386 # Older versions of the 11.00 compiler do not understand -b yet
15387 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15389$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015390if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015391 $as_echo_n "(cached) " >&6
15392else
15393 lt_cv_prog_compiler__b=no
15394 save_LDFLAGS="$LDFLAGS"
15395 LDFLAGS="$LDFLAGS -b"
15396 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15397 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15398 # The linker can only warn and ignore the option if not recognized
15399 # So say no if there are warnings
15400 if test -s conftest.err; then
15401 # Append any errors to the config.log.
15402 cat conftest.err 1>&5
15403 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15405 if diff conftest.exp conftest.er2 >/dev/null; then
15406 lt_cv_prog_compiler__b=yes
15407 fi
15408 else
15409 lt_cv_prog_compiler__b=yes
15410 fi
15411 fi
15412 $RM -r conftest*
15413 LDFLAGS="$save_LDFLAGS"
15414
15415fi
15416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15417$as_echo "$lt_cv_prog_compiler__b" >&6; }
15418
15419if test x"$lt_cv_prog_compiler__b" = xyes; then
15420 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15421else
15422 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15423fi
15424
cristy73bd4a52010-10-05 11:24:23 +000015425 ;;
15426 esac
15427 fi
15428 if test "$with_gnu_ld" = no; then
15429 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15430 hardcode_libdir_separator=:
15431
15432 case $host_cpu in
15433 hppa*64*|ia64*)
15434 hardcode_direct=no
15435 hardcode_shlibpath_var=no
15436 ;;
15437 *)
15438 hardcode_direct=yes
15439 hardcode_direct_absolute=yes
15440 export_dynamic_flag_spec='${wl}-E'
15441
15442 # hardcode_minus_L: Not really in the search PATH,
15443 # but as the default location of the library.
15444 hardcode_minus_L=yes
15445 ;;
15446 esac
15447 fi
15448 ;;
15449
15450 irix5* | irix6* | nonstopux*)
15451 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015452 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 +000015453 # Try to use the -exported_symbol ld option, if it does not
15454 # work, assume that -exports_file does not work either and
15455 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015456 # This should be the same for all languages, so no per-tag cache variable.
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15458$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15459if ${lt_cv_irix_exported_symbol+:} false; then :
15460 $as_echo_n "(cached) " >&6
15461else
15462 save_LDFLAGS="$LDFLAGS"
15463 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015465/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015466int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015467_ACEOF
15468if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015469 lt_cv_irix_exported_symbol=yes
15470else
15471 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015472fi
15473rm -f core conftest.err conftest.$ac_objext \
15474 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015475 LDFLAGS="$save_LDFLAGS"
15476fi
15477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15478$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15479 if test "$lt_cv_irix_exported_symbol" = yes; then
15480 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'
15481 fi
cristy73bd4a52010-10-05 11:24:23 +000015482 else
cristy0c60a692010-11-04 01:09:47 +000015483 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'
15484 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 +000015485 fi
15486 archive_cmds_need_lc='no'
15487 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15488 hardcode_libdir_separator=:
15489 inherit_rpath=yes
15490 link_all_deplibs=yes
15491 ;;
15492
15493 netbsd*)
15494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15496 else
15497 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15498 fi
15499 hardcode_libdir_flag_spec='-R$libdir'
15500 hardcode_direct=yes
15501 hardcode_shlibpath_var=no
15502 ;;
15503
15504 newsos6)
15505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15506 hardcode_direct=yes
15507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15508 hardcode_libdir_separator=:
15509 hardcode_shlibpath_var=no
15510 ;;
15511
15512 *nto* | *qnx*)
15513 ;;
15514
15515 openbsd*)
15516 if test -f /usr/libexec/ld.so; then
15517 hardcode_direct=yes
15518 hardcode_shlibpath_var=no
15519 hardcode_direct_absolute=yes
15520 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15521 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15522 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15523 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15524 export_dynamic_flag_spec='${wl}-E'
15525 else
15526 case $host_os in
15527 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15529 hardcode_libdir_flag_spec='-R$libdir'
15530 ;;
15531 *)
15532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15533 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15534 ;;
15535 esac
15536 fi
15537 else
15538 ld_shlibs=no
15539 fi
15540 ;;
15541
15542 os2*)
15543 hardcode_libdir_flag_spec='-L$libdir'
15544 hardcode_minus_L=yes
15545 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015546 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 +000015547 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15548 ;;
15549
15550 osf3*)
15551 if test "$GCC" = yes; then
15552 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015553 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 +000015554 else
15555 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015556 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 +000015557 fi
15558 archive_cmds_need_lc='no'
15559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15560 hardcode_libdir_separator=:
15561 ;;
15562
15563 osf4* | osf5*) # as osf3* with the addition of -msym flag
15564 if test "$GCC" = yes; then
15565 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015566 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 +000015567 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15568 else
15569 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015570 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 +000015571 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 +000015572 $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 +000015573
15574 # Both c and cxx compiler support -rpath directly
15575 hardcode_libdir_flag_spec='-rpath $libdir'
15576 fi
15577 archive_cmds_need_lc='no'
15578 hardcode_libdir_separator=:
15579 ;;
15580
15581 solaris*)
15582 no_undefined_flag=' -z defs'
15583 if test "$GCC" = yes; then
15584 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015585 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 +000015586 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 +000015587 $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 +000015588 else
15589 case `$CC -V 2>&1` in
15590 *"Compilers 5.0"*)
15591 wlarc=''
15592 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15593 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15594 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15595 ;;
15596 *)
15597 wlarc='${wl}'
15598 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15599 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15600 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15601 ;;
15602 esac
15603 fi
15604 hardcode_libdir_flag_spec='-R$libdir'
15605 hardcode_shlibpath_var=no
15606 case $host_os in
15607 solaris2.[0-5] | solaris2.[0-5].*) ;;
15608 *)
15609 # The compiler driver will combine and reorder linker options,
15610 # but understands `-z linker_flag'. GCC discards it without `$wl',
15611 # but is careful enough not to reorder.
15612 # Supported since Solaris 2.6 (maybe 2.5.1?)
15613 if test "$GCC" = yes; then
15614 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15615 else
15616 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15617 fi
15618 ;;
15619 esac
15620 link_all_deplibs=yes
15621 ;;
15622
15623 sunos4*)
15624 if test "x$host_vendor" = xsequent; then
15625 # Use $CC to link under sequent, because it throws in some extra .o
15626 # files that make .init and .fini sections work.
15627 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15628 else
15629 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15630 fi
15631 hardcode_libdir_flag_spec='-L$libdir'
15632 hardcode_direct=yes
15633 hardcode_minus_L=yes
15634 hardcode_shlibpath_var=no
15635 ;;
15636
15637 sysv4)
15638 case $host_vendor in
15639 sni)
15640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15641 hardcode_direct=yes # is this really true???
15642 ;;
15643 siemens)
15644 ## LD is ld it makes a PLAMLIB
15645 ## CC just makes a GrossModule.
15646 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15647 reload_cmds='$CC -r -o $output$reload_objs'
15648 hardcode_direct=no
15649 ;;
15650 motorola)
15651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15652 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15653 ;;
15654 esac
15655 runpath_var='LD_RUN_PATH'
15656 hardcode_shlibpath_var=no
15657 ;;
15658
15659 sysv4.3*)
15660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15661 hardcode_shlibpath_var=no
15662 export_dynamic_flag_spec='-Bexport'
15663 ;;
15664
15665 sysv4*MP*)
15666 if test -d /usr/nec; then
15667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15668 hardcode_shlibpath_var=no
15669 runpath_var=LD_RUN_PATH
15670 hardcode_runpath_var=yes
15671 ld_shlibs=yes
15672 fi
15673 ;;
15674
15675 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15676 no_undefined_flag='${wl}-z,text'
15677 archive_cmds_need_lc=no
15678 hardcode_shlibpath_var=no
15679 runpath_var='LD_RUN_PATH'
15680
15681 if test "$GCC" = yes; then
15682 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15683 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15684 else
15685 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15686 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15687 fi
15688 ;;
15689
15690 sysv5* | sco3.2v5* | sco5v6*)
15691 # Note: We can NOT use -z defs as we might desire, because we do not
15692 # link with -lc, and that would cause any symbols used from libc to
15693 # always be unresolved, which means just about no library would
15694 # ever link correctly. If we're not using GNU ld we use -z text
15695 # though, which does catch some bad symbols but isn't as heavy-handed
15696 # as -z defs.
15697 no_undefined_flag='${wl}-z,text'
15698 allow_undefined_flag='${wl}-z,nodefs'
15699 archive_cmds_need_lc=no
15700 hardcode_shlibpath_var=no
15701 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15702 hardcode_libdir_separator=':'
15703 link_all_deplibs=yes
15704 export_dynamic_flag_spec='${wl}-Bexport'
15705 runpath_var='LD_RUN_PATH'
15706
15707 if test "$GCC" = yes; then
15708 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15709 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15710 else
15711 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15712 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15713 fi
15714 ;;
15715
15716 uts4*)
15717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15718 hardcode_libdir_flag_spec='-L$libdir'
15719 hardcode_shlibpath_var=no
15720 ;;
15721
15722 *)
15723 ld_shlibs=no
15724 ;;
15725 esac
15726
15727 if test x$host_vendor = xsni; then
15728 case $host in
15729 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15730 export_dynamic_flag_spec='${wl}-Blargedynsym'
15731 ;;
15732 esac
15733 fi
15734 fi
15735
15736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15737$as_echo "$ld_shlibs" >&6; }
15738test "$ld_shlibs" = no && can_build_shared=no
15739
15740with_gnu_ld=$with_gnu_ld
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756#
15757# Do we need to explicitly link libc?
15758#
15759case "x$archive_cmds_need_lc" in
15760x|xyes)
15761 # Assume -lc should be added
15762 archive_cmds_need_lc=yes
15763
15764 if test "$enable_shared" = yes && test "$GCC" = yes; then
15765 case $archive_cmds in
15766 *'~'*)
15767 # FIXME: we may have to deal with multi-command sequences.
15768 ;;
15769 '$CC '*)
15770 # Test whether the compiler implicitly links with -lc since on some
15771 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15772 # to ld, don't add -lc before -lgcc.
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15774$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015775if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015776 $as_echo_n "(cached) " >&6
15777else
15778 $RM conftest*
15779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015780
cristy0c60a692010-11-04 01:09:47 +000015781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015782 (eval $ac_compile) 2>&5
15783 ac_status=$?
15784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15785 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015786 soname=conftest
15787 lib=conftest
15788 libobjs=conftest.$ac_objext
15789 deplibs=
15790 wl=$lt_prog_compiler_wl
15791 pic_flag=$lt_prog_compiler_pic
15792 compiler_flags=-v
15793 linker_flags=-v
15794 verstring=
15795 output_objdir=.
15796 libname=conftest
15797 lt_save_allow_undefined_flag=$allow_undefined_flag
15798 allow_undefined_flag=
15799 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 +000015800 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15801 ac_status=$?
15802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15803 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015804 then
15805 lt_cv_archive_cmds_need_lc=no
15806 else
15807 lt_cv_archive_cmds_need_lc=yes
15808 fi
15809 allow_undefined_flag=$lt_save_allow_undefined_flag
15810 else
15811 cat conftest.err 1>&5
15812 fi
15813 $RM conftest*
15814
15815fi
15816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15817$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15818 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015819 ;;
15820 esac
15821 fi
15822 ;;
15823esac
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
cristy73bd4a52010-10-05 11:24:23 +000015976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15977$as_echo_n "checking dynamic linker characteristics... " >&6; }
15978
15979if test "$GCC" = yes; then
15980 case $host_os in
15981 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15982 *) lt_awk_arg="/^libraries:/" ;;
15983 esac
cristy0c60a692010-11-04 01:09:47 +000015984 case $host_os in
15985 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15986 *) lt_sed_strip_eq="s,=/,/,g" ;;
15987 esac
15988 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15989 case $lt_search_path_spec in
15990 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015991 # if the path contains ";" then we assume it to be the separator
15992 # otherwise default to the standard path separator (i.e. ":") - it is
15993 # assumed that no part of a normal pathname contains ";" but that should
15994 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015995 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15996 ;;
15997 *)
15998 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15999 ;;
16000 esac
cristy73bd4a52010-10-05 11:24:23 +000016001 # Ok, now we have the path, separated by spaces, we can step through it
16002 # and add multilib dir if necessary.
16003 lt_tmp_lt_search_path_spec=
16004 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16005 for lt_sys_path in $lt_search_path_spec; do
16006 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16007 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16008 else
16009 test -d "$lt_sys_path" && \
16010 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16011 fi
16012 done
cristy0c60a692010-11-04 01:09:47 +000016013 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016014BEGIN {RS=" "; FS="/|\n";} {
16015 lt_foo="";
16016 lt_count=0;
16017 for (lt_i = NF; lt_i > 0; lt_i--) {
16018 if ($lt_i != "" && $lt_i != ".") {
16019 if ($lt_i == "..") {
16020 lt_count++;
16021 } else {
16022 if (lt_count == 0) {
16023 lt_foo="/" $lt_i lt_foo;
16024 } else {
16025 lt_count--;
16026 }
16027 }
16028 }
16029 }
16030 if (lt_foo != "") { lt_freq[lt_foo]++; }
16031 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16032}'`
cristy0c60a692010-11-04 01:09:47 +000016033 # AWK program above erroneously prepends '/' to C:/dos/paths
16034 # for these hosts.
16035 case $host_os in
16036 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16037 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16038 esac
16039 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016040else
16041 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16042fi
16043library_names_spec=
16044libname_spec='lib$name'
16045soname_spec=
16046shrext_cmds=".so"
16047postinstall_cmds=
16048postuninstall_cmds=
16049finish_cmds=
16050finish_eval=
16051shlibpath_var=
16052shlibpath_overrides_runpath=unknown
16053version_type=none
16054dynamic_linker="$host_os ld.so"
16055sys_lib_dlsearch_path_spec="/lib /usr/lib"
16056need_lib_prefix=unknown
16057hardcode_into_libs=no
16058
16059# when you set need_version to no, make sure it does not cause -set_version
16060# flags to be left without arguments
16061need_version=unknown
16062
16063case $host_os in
16064aix3*)
cristy99bd5232011-12-07 14:38:20 +000016065 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016066 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16067 shlibpath_var=LIBPATH
16068
16069 # AIX 3 has no versioning support, so we append a major version to the name.
16070 soname_spec='${libname}${release}${shared_ext}$major'
16071 ;;
16072
16073aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016074 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016075 need_lib_prefix=no
16076 need_version=no
16077 hardcode_into_libs=yes
16078 if test "$host_cpu" = ia64; then
16079 # AIX 5 supports IA64
16080 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16081 shlibpath_var=LD_LIBRARY_PATH
16082 else
16083 # With GCC up to 2.95.x, collect2 would create an import file
16084 # for dependence libraries. The import file would start with
16085 # the line `#! .'. This would cause the generated library to
16086 # depend on `.', always an invalid library. This was fixed in
16087 # development snapshots of GCC prior to 3.0.
16088 case $host_os in
16089 aix4 | aix4.[01] | aix4.[01].*)
16090 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16091 echo ' yes '
16092 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16093 :
16094 else
16095 can_build_shared=no
16096 fi
16097 ;;
16098 esac
16099 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16100 # soname into executable. Probably we can add versioning support to
16101 # collect2, so additional links can be useful in future.
16102 if test "$aix_use_runtimelinking" = yes; then
16103 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16104 # instead of lib<name>.a to let people know that these are not
16105 # typical AIX shared libraries.
16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16107 else
16108 # We preserve .a as extension for shared libraries through AIX4.2
16109 # and later when we are not doing run time linking.
16110 library_names_spec='${libname}${release}.a $libname.a'
16111 soname_spec='${libname}${release}${shared_ext}$major'
16112 fi
16113 shlibpath_var=LIBPATH
16114 fi
16115 ;;
16116
16117amigaos*)
16118 case $host_cpu in
16119 powerpc)
16120 # Since July 2007 AmigaOS4 officially supports .so libraries.
16121 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16123 ;;
16124 m68k)
16125 library_names_spec='$libname.ixlibrary $libname.a'
16126 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016127 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 +000016128 ;;
16129 esac
16130 ;;
16131
16132beos*)
16133 library_names_spec='${libname}${shared_ext}'
16134 dynamic_linker="$host_os ld.so"
16135 shlibpath_var=LIBRARY_PATH
16136 ;;
16137
16138bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016139 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016140 need_version=no
16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16142 soname_spec='${libname}${release}${shared_ext}$major'
16143 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16144 shlibpath_var=LD_LIBRARY_PATH
16145 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16146 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16147 # the default ld.so.conf also contains /usr/contrib/lib and
16148 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16149 # libtool to hard-code these into programs
16150 ;;
16151
16152cygwin* | mingw* | pw32* | cegcc*)
16153 version_type=windows
16154 shrext_cmds=".dll"
16155 need_version=no
16156 need_lib_prefix=no
16157
cristyda16f162011-02-19 23:52:17 +000016158 case $GCC,$cc_basename in
16159 yes,*)
16160 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016161 library_names_spec='$libname.dll.a'
16162 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16163 postinstall_cmds='base_file=`basename \${file}`~
16164 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16165 dldir=$destdir/`dirname \$dlpath`~
16166 test -d \$dldir || mkdir -p \$dldir~
16167 $install_prog $dir/$dlname \$dldir/$dlname~
16168 chmod a+x \$dldir/$dlname~
16169 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16170 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16171 fi'
16172 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16173 dlpath=$dir/\$dldll~
16174 $RM \$dlpath'
16175 shlibpath_overrides_runpath=yes
16176
16177 case $host_os in
16178 cygwin*)
16179 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16180 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016181
16182 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016183 ;;
16184 mingw* | cegcc*)
16185 # MinGW DLLs use traditional 'lib' prefix
16186 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016187 ;;
16188 pw32*)
16189 # pw32 DLLs use 'pw' prefix rather than 'lib'
16190 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16191 ;;
16192 esac
cristyda16f162011-02-19 23:52:17 +000016193 dynamic_linker='Win32 ld.exe'
16194 ;;
16195
16196 *,cl*)
16197 # Native MSVC
16198 libname_spec='$name'
16199 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16200 library_names_spec='${libname}.dll.lib'
16201
16202 case $build_os in
16203 mingw*)
16204 sys_lib_search_path_spec=
16205 lt_save_ifs=$IFS
16206 IFS=';'
16207 for lt_path in $LIB
16208 do
16209 IFS=$lt_save_ifs
16210 # Let DOS variable expansion print the short 8.3 style file name.
16211 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16212 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16213 done
16214 IFS=$lt_save_ifs
16215 # Convert to MSYS style.
16216 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16217 ;;
16218 cygwin*)
16219 # Convert to unix form, then to dos form, then back to unix form
16220 # but this time dos style (no spaces!) so that the unix form looks
16221 # like /cygdrive/c/PROGRA~1:/cygdr...
16222 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16223 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16224 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16225 ;;
16226 *)
16227 sys_lib_search_path_spec="$LIB"
16228 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16229 # It is most probably a Windows format PATH.
16230 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16231 else
16232 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16233 fi
16234 # FIXME: find the short name or the path components, as spaces are
16235 # common. (e.g. "Program Files" -> "PROGRA~1")
16236 ;;
16237 esac
16238
16239 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16240 postinstall_cmds='base_file=`basename \${file}`~
16241 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16242 dldir=$destdir/`dirname \$dlpath`~
16243 test -d \$dldir || mkdir -p \$dldir~
16244 $install_prog $dir/$dlname \$dldir/$dlname'
16245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16246 dlpath=$dir/\$dldll~
16247 $RM \$dlpath'
16248 shlibpath_overrides_runpath=yes
16249 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016250 ;;
16251
16252 *)
cristyda16f162011-02-19 23:52:17 +000016253 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016254 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016255 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016256 ;;
16257 esac
cristy73bd4a52010-10-05 11:24:23 +000016258 # FIXME: first we should search . and the directory the executable is in
16259 shlibpath_var=PATH
16260 ;;
16261
16262darwin* | rhapsody*)
16263 dynamic_linker="$host_os dyld"
16264 version_type=darwin
16265 need_lib_prefix=no
16266 need_version=no
16267 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16268 soname_spec='${libname}${release}${major}$shared_ext'
16269 shlibpath_overrides_runpath=yes
16270 shlibpath_var=DYLD_LIBRARY_PATH
16271 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16272
16273 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16274 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16275 ;;
16276
16277dgux*)
cristy99bd5232011-12-07 14:38:20 +000016278 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016279 need_lib_prefix=no
16280 need_version=no
16281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16282 soname_spec='${libname}${release}${shared_ext}$major'
16283 shlibpath_var=LD_LIBRARY_PATH
16284 ;;
16285
cristy73bd4a52010-10-05 11:24:23 +000016286freebsd* | dragonfly*)
16287 # DragonFly does not have aout. When/if they implement a new
16288 # versioning mechanism, adjust this.
16289 if test -x /usr/bin/objformat; then
16290 objformat=`/usr/bin/objformat`
16291 else
16292 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016293 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016294 *) objformat=elf ;;
16295 esac
16296 fi
16297 version_type=freebsd-$objformat
16298 case $version_type in
16299 freebsd-elf*)
16300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16301 need_version=no
16302 need_lib_prefix=no
16303 ;;
16304 freebsd-*)
16305 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16306 need_version=yes
16307 ;;
16308 esac
16309 shlibpath_var=LD_LIBRARY_PATH
16310 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016311 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016312 shlibpath_overrides_runpath=yes
16313 ;;
16314 freebsd3.[01]* | freebsdelf3.[01]*)
16315 shlibpath_overrides_runpath=yes
16316 hardcode_into_libs=yes
16317 ;;
16318 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16319 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16320 shlibpath_overrides_runpath=no
16321 hardcode_into_libs=yes
16322 ;;
16323 *) # from 4.6 on, and DragonFly
16324 shlibpath_overrides_runpath=yes
16325 hardcode_into_libs=yes
16326 ;;
16327 esac
16328 ;;
16329
16330gnu*)
cristy99bd5232011-12-07 14:38:20 +000016331 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016332 need_lib_prefix=no
16333 need_version=no
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16335 soname_spec='${libname}${release}${shared_ext}$major'
16336 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016337 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016338 hardcode_into_libs=yes
16339 ;;
16340
cristy0c60a692010-11-04 01:09:47 +000016341haiku*)
cristy99bd5232011-12-07 14:38:20 +000016342 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016343 need_lib_prefix=no
16344 need_version=no
16345 dynamic_linker="$host_os runtime_loader"
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16347 soname_spec='${libname}${release}${shared_ext}$major'
16348 shlibpath_var=LIBRARY_PATH
16349 shlibpath_overrides_runpath=yes
16350 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16351 hardcode_into_libs=yes
16352 ;;
16353
cristy73bd4a52010-10-05 11:24:23 +000016354hpux9* | hpux10* | hpux11*)
16355 # Give a soname corresponding to the major version so that dld.sl refuses to
16356 # link against other versions.
16357 version_type=sunos
16358 need_lib_prefix=no
16359 need_version=no
16360 case $host_cpu in
16361 ia64*)
16362 shrext_cmds='.so'
16363 hardcode_into_libs=yes
16364 dynamic_linker="$host_os dld.so"
16365 shlibpath_var=LD_LIBRARY_PATH
16366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16368 soname_spec='${libname}${release}${shared_ext}$major'
16369 if test "X$HPUX_IA64_MODE" = X32; then
16370 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16371 else
16372 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16373 fi
16374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16375 ;;
16376 hppa*64*)
16377 shrext_cmds='.sl'
16378 hardcode_into_libs=yes
16379 dynamic_linker="$host_os dld.sl"
16380 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16381 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16383 soname_spec='${libname}${release}${shared_ext}$major'
16384 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16386 ;;
16387 *)
16388 shrext_cmds='.sl'
16389 dynamic_linker="$host_os dld.sl"
16390 shlibpath_var=SHLIB_PATH
16391 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393 soname_spec='${libname}${release}${shared_ext}$major'
16394 ;;
16395 esac
cristy0c60a692010-11-04 01:09:47 +000016396 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016397 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016398 # or fails outright, so override atomically:
16399 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016400 ;;
16401
16402interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016403 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016404 need_lib_prefix=no
16405 need_version=no
16406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16407 soname_spec='${libname}${release}${shared_ext}$major'
16408 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16409 shlibpath_var=LD_LIBRARY_PATH
16410 shlibpath_overrides_runpath=no
16411 hardcode_into_libs=yes
16412 ;;
16413
16414irix5* | irix6* | nonstopux*)
16415 case $host_os in
16416 nonstopux*) version_type=nonstopux ;;
16417 *)
16418 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016419 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016420 else
16421 version_type=irix
16422 fi ;;
16423 esac
16424 need_lib_prefix=no
16425 need_version=no
16426 soname_spec='${libname}${release}${shared_ext}$major'
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16428 case $host_os in
16429 irix5* | nonstopux*)
16430 libsuff= shlibsuff=
16431 ;;
16432 *)
16433 case $LD in # libtool.m4 will add one of these switches to LD
16434 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16435 libsuff= shlibsuff= libmagic=32-bit;;
16436 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16437 libsuff=32 shlibsuff=N32 libmagic=N32;;
16438 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16439 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16440 *) libsuff= shlibsuff= libmagic=never-match;;
16441 esac
16442 ;;
16443 esac
16444 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16445 shlibpath_overrides_runpath=no
16446 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16447 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16448 hardcode_into_libs=yes
16449 ;;
16450
16451# No shared lib support for Linux oldld, aout, or coff.
16452linux*oldld* | linux*aout* | linux*coff*)
16453 dynamic_linker=no
16454 ;;
16455
cristy99bd5232011-12-07 14:38:20 +000016456# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016457linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016458 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016459 need_lib_prefix=no
16460 need_version=no
16461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16462 soname_spec='${libname}${release}${shared_ext}$major'
16463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16464 shlibpath_var=LD_LIBRARY_PATH
16465 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016466
cristy73bd4a52010-10-05 11:24:23 +000016467 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016468 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016469 $as_echo_n "(cached) " >&6
16470else
16471 lt_cv_shlibpath_overrides_runpath=no
16472 save_LDFLAGS=$LDFLAGS
16473 save_libdir=$libdir
16474 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16475 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016477/* end confdefs.h. */
16478
16479int
16480main ()
16481{
16482
16483 ;
16484 return 0;
16485}
16486_ACEOF
16487if ac_fn_c_try_link "$LINENO"; then :
16488 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016489 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016490fi
16491fi
16492rm -f core conftest.err conftest.$ac_objext \
16493 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016494 LDFLAGS=$save_LDFLAGS
16495 libdir=$save_libdir
16496
16497fi
16498
16499 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016500
16501 # This implies no fast_install, which is unacceptable.
16502 # Some rework will be needed to allow for fast_install
16503 # before this can be enabled.
16504 hardcode_into_libs=yes
16505
16506 # Add ABI-specific directories to the system library path.
16507 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16508
16509 # Append ld.so.conf contents to the search path
16510 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016511 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 +000016512 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016513
cristy73bd4a52010-10-05 11:24:23 +000016514 fi
16515
16516 # We used to test for /lib/ld.so.1 and disable shared libraries on
16517 # powerpc, because MkLinux only supported shared libraries with the
16518 # GNU dynamic linker. Since this was broken with cross compilers,
16519 # most powerpc-linux boxes support dynamic linking these days and
16520 # people can always --disable-shared, the test was removed, and we
16521 # assume the GNU/Linux dynamic linker is in use.
16522 dynamic_linker='GNU/Linux ld.so'
16523 ;;
16524
16525netbsd*)
16526 version_type=sunos
16527 need_lib_prefix=no
16528 need_version=no
16529 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16532 dynamic_linker='NetBSD (a.out) ld.so'
16533 else
16534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16535 soname_spec='${libname}${release}${shared_ext}$major'
16536 dynamic_linker='NetBSD ld.elf_so'
16537 fi
16538 shlibpath_var=LD_LIBRARY_PATH
16539 shlibpath_overrides_runpath=yes
16540 hardcode_into_libs=yes
16541 ;;
16542
16543newsos6)
cristy99bd5232011-12-07 14:38:20 +000016544 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16546 shlibpath_var=LD_LIBRARY_PATH
16547 shlibpath_overrides_runpath=yes
16548 ;;
16549
16550*nto* | *qnx*)
16551 version_type=qnx
16552 need_lib_prefix=no
16553 need_version=no
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 shlibpath_var=LD_LIBRARY_PATH
16557 shlibpath_overrides_runpath=no
16558 hardcode_into_libs=yes
16559 dynamic_linker='ldqnx.so'
16560 ;;
16561
16562openbsd*)
16563 version_type=sunos
16564 sys_lib_dlsearch_path_spec="/usr/lib"
16565 need_lib_prefix=no
16566 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16567 case $host_os in
16568 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16569 *) need_version=no ;;
16570 esac
16571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16573 shlibpath_var=LD_LIBRARY_PATH
16574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16575 case $host_os in
16576 openbsd2.[89] | openbsd2.[89].*)
16577 shlibpath_overrides_runpath=no
16578 ;;
16579 *)
16580 shlibpath_overrides_runpath=yes
16581 ;;
16582 esac
16583 else
16584 shlibpath_overrides_runpath=yes
16585 fi
16586 ;;
16587
16588os2*)
16589 libname_spec='$name'
16590 shrext_cmds=".dll"
16591 need_lib_prefix=no
16592 library_names_spec='$libname${shared_ext} $libname.a'
16593 dynamic_linker='OS/2 ld.exe'
16594 shlibpath_var=LIBPATH
16595 ;;
16596
16597osf3* | osf4* | osf5*)
16598 version_type=osf
16599 need_lib_prefix=no
16600 need_version=no
16601 soname_spec='${libname}${release}${shared_ext}$major'
16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603 shlibpath_var=LD_LIBRARY_PATH
16604 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16605 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16606 ;;
16607
16608rdos*)
16609 dynamic_linker=no
16610 ;;
16611
16612solaris*)
cristy99bd5232011-12-07 14:38:20 +000016613 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016614 need_lib_prefix=no
16615 need_version=no
16616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16617 soname_spec='${libname}${release}${shared_ext}$major'
16618 shlibpath_var=LD_LIBRARY_PATH
16619 shlibpath_overrides_runpath=yes
16620 hardcode_into_libs=yes
16621 # ldd complains unless libraries are executable
16622 postinstall_cmds='chmod +x $lib'
16623 ;;
16624
16625sunos4*)
16626 version_type=sunos
16627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16628 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16629 shlibpath_var=LD_LIBRARY_PATH
16630 shlibpath_overrides_runpath=yes
16631 if test "$with_gnu_ld" = yes; then
16632 need_lib_prefix=no
16633 fi
16634 need_version=yes
16635 ;;
16636
16637sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016638 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16640 soname_spec='${libname}${release}${shared_ext}$major'
16641 shlibpath_var=LD_LIBRARY_PATH
16642 case $host_vendor in
16643 sni)
16644 shlibpath_overrides_runpath=no
16645 need_lib_prefix=no
16646 runpath_var=LD_RUN_PATH
16647 ;;
16648 siemens)
16649 need_lib_prefix=no
16650 ;;
16651 motorola)
16652 need_lib_prefix=no
16653 need_version=no
16654 shlibpath_overrides_runpath=no
16655 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16656 ;;
16657 esac
16658 ;;
16659
16660sysv4*MP*)
16661 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016662 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016663 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16664 soname_spec='$libname${shared_ext}.$major'
16665 shlibpath_var=LD_LIBRARY_PATH
16666 fi
16667 ;;
16668
16669sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16670 version_type=freebsd-elf
16671 need_lib_prefix=no
16672 need_version=no
16673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16674 soname_spec='${libname}${release}${shared_ext}$major'
16675 shlibpath_var=LD_LIBRARY_PATH
16676 shlibpath_overrides_runpath=yes
16677 hardcode_into_libs=yes
16678 if test "$with_gnu_ld" = yes; then
16679 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16680 else
16681 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16682 case $host_os in
16683 sco3.2v5*)
16684 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16685 ;;
16686 esac
16687 fi
16688 sys_lib_dlsearch_path_spec='/usr/lib'
16689 ;;
16690
16691tpf*)
16692 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016693 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016694 need_lib_prefix=no
16695 need_version=no
16696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16697 shlibpath_var=LD_LIBRARY_PATH
16698 shlibpath_overrides_runpath=no
16699 hardcode_into_libs=yes
16700 ;;
16701
16702uts4*)
cristy99bd5232011-12-07 14:38:20 +000016703 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16705 soname_spec='${libname}${release}${shared_ext}$major'
16706 shlibpath_var=LD_LIBRARY_PATH
16707 ;;
16708
16709*)
16710 dynamic_linker=no
16711 ;;
16712esac
16713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16714$as_echo "$dynamic_linker" >&6; }
16715test "$dynamic_linker" = no && can_build_shared=no
16716
16717variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16718if test "$GCC" = yes; then
16719 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16720fi
16721
16722if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16723 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16724fi
16725if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16726 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16727fi
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
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
cristy0c60a692010-11-04 01:09:47 +000016815
16816
16817
16818
16819
cristy73bd4a52010-10-05 11:24:23 +000016820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16821$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16822hardcode_action=
16823if test -n "$hardcode_libdir_flag_spec" ||
16824 test -n "$runpath_var" ||
16825 test "X$hardcode_automatic" = "Xyes" ; then
16826
16827 # We can hardcode non-existent directories.
16828 if test "$hardcode_direct" != no &&
16829 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16830 # have to relink, otherwise we might link with an installed library
16831 # when we should be linking with a yet-to-be-installed one
16832 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16833 test "$hardcode_minus_L" != no; then
16834 # Linking always hardcodes the temporary library directory.
16835 hardcode_action=relink
16836 else
16837 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16838 hardcode_action=immediate
16839 fi
16840else
16841 # We cannot hardcode anything, or else we can only hardcode existing
16842 # directories.
16843 hardcode_action=unsupported
16844fi
16845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16846$as_echo "$hardcode_action" >&6; }
16847
16848if test "$hardcode_action" = relink ||
16849 test "$inherit_rpath" = yes; then
16850 # Fast installation is not supported
16851 enable_fast_install=no
16852elif test "$shlibpath_overrides_runpath" = yes ||
16853 test "$enable_shared" = no; then
16854 # Fast installation is not necessary
16855 enable_fast_install=needless
16856fi
16857
16858
16859
16860
16861
16862
16863 if test "x$enable_dlopen" != xyes; then
16864 enable_dlopen=unknown
16865 enable_dlopen_self=unknown
16866 enable_dlopen_self_static=unknown
16867else
16868 lt_cv_dlopen=no
16869 lt_cv_dlopen_libs=
16870
16871 case $host_os in
16872 beos*)
16873 lt_cv_dlopen="load_add_on"
16874 lt_cv_dlopen_libs=
16875 lt_cv_dlopen_self=yes
16876 ;;
16877
16878 mingw* | pw32* | cegcc*)
16879 lt_cv_dlopen="LoadLibrary"
16880 lt_cv_dlopen_libs=
16881 ;;
16882
16883 cygwin*)
16884 lt_cv_dlopen="dlopen"
16885 lt_cv_dlopen_libs=
16886 ;;
16887
16888 darwin*)
16889 # if libdl is installed we need to link against it
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16891$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016892if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016893 $as_echo_n "(cached) " >&6
16894else
16895 ac_check_lib_save_LIBS=$LIBS
16896LIBS="-ldl $LIBS"
16897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898/* end confdefs.h. */
16899
16900/* Override any GCC internal prototype to avoid an error.
16901 Use char because int might match the return type of a GCC
16902 builtin and then its argument prototype would still apply. */
16903#ifdef __cplusplus
16904extern "C"
16905#endif
16906char dlopen ();
16907int
16908main ()
16909{
16910return dlopen ();
16911 ;
16912 return 0;
16913}
16914_ACEOF
16915if ac_fn_c_try_link "$LINENO"; then :
16916 ac_cv_lib_dl_dlopen=yes
16917else
16918 ac_cv_lib_dl_dlopen=no
16919fi
16920rm -f core conftest.err conftest.$ac_objext \
16921 conftest$ac_exeext conftest.$ac_ext
16922LIBS=$ac_check_lib_save_LIBS
16923fi
16924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16925$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016926if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016927 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16928else
16929
16930 lt_cv_dlopen="dyld"
16931 lt_cv_dlopen_libs=
16932 lt_cv_dlopen_self=yes
16933
16934fi
16935
16936 ;;
16937
16938 *)
16939 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016940if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016941 lt_cv_dlopen="shl_load"
16942else
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16944$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016945if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016946 $as_echo_n "(cached) " >&6
16947else
16948 ac_check_lib_save_LIBS=$LIBS
16949LIBS="-ldld $LIBS"
16950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951/* end confdefs.h. */
16952
16953/* Override any GCC internal prototype to avoid an error.
16954 Use char because int might match the return type of a GCC
16955 builtin and then its argument prototype would still apply. */
16956#ifdef __cplusplus
16957extern "C"
16958#endif
16959char shl_load ();
16960int
16961main ()
16962{
16963return shl_load ();
16964 ;
16965 return 0;
16966}
16967_ACEOF
16968if ac_fn_c_try_link "$LINENO"; then :
16969 ac_cv_lib_dld_shl_load=yes
16970else
16971 ac_cv_lib_dld_shl_load=no
16972fi
16973rm -f core conftest.err conftest.$ac_objext \
16974 conftest$ac_exeext conftest.$ac_ext
16975LIBS=$ac_check_lib_save_LIBS
16976fi
16977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16978$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016979if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016980 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16981else
16982 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016983if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016984 lt_cv_dlopen="dlopen"
16985else
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16987$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016988if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016989 $as_echo_n "(cached) " >&6
16990else
16991 ac_check_lib_save_LIBS=$LIBS
16992LIBS="-ldl $LIBS"
16993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994/* end confdefs.h. */
16995
16996/* Override any GCC internal prototype to avoid an error.
16997 Use char because int might match the return type of a GCC
16998 builtin and then its argument prototype would still apply. */
16999#ifdef __cplusplus
17000extern "C"
17001#endif
17002char dlopen ();
17003int
17004main ()
17005{
17006return dlopen ();
17007 ;
17008 return 0;
17009}
17010_ACEOF
17011if ac_fn_c_try_link "$LINENO"; then :
17012 ac_cv_lib_dl_dlopen=yes
17013else
17014 ac_cv_lib_dl_dlopen=no
17015fi
17016rm -f core conftest.err conftest.$ac_objext \
17017 conftest$ac_exeext conftest.$ac_ext
17018LIBS=$ac_check_lib_save_LIBS
17019fi
17020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17021$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017022if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17024else
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17026$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017027if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017028 $as_echo_n "(cached) " >&6
17029else
17030 ac_check_lib_save_LIBS=$LIBS
17031LIBS="-lsvld $LIBS"
17032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033/* end confdefs.h. */
17034
17035/* Override any GCC internal prototype to avoid an error.
17036 Use char because int might match the return type of a GCC
17037 builtin and then its argument prototype would still apply. */
17038#ifdef __cplusplus
17039extern "C"
17040#endif
17041char dlopen ();
17042int
17043main ()
17044{
17045return dlopen ();
17046 ;
17047 return 0;
17048}
17049_ACEOF
17050if ac_fn_c_try_link "$LINENO"; then :
17051 ac_cv_lib_svld_dlopen=yes
17052else
17053 ac_cv_lib_svld_dlopen=no
17054fi
17055rm -f core conftest.err conftest.$ac_objext \
17056 conftest$ac_exeext conftest.$ac_ext
17057LIBS=$ac_check_lib_save_LIBS
17058fi
17059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17060$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017061if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017062 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17063else
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17065$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017066if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017067 $as_echo_n "(cached) " >&6
17068else
17069 ac_check_lib_save_LIBS=$LIBS
17070LIBS="-ldld $LIBS"
17071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17072/* end confdefs.h. */
17073
17074/* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17077#ifdef __cplusplus
17078extern "C"
17079#endif
17080char dld_link ();
17081int
17082main ()
17083{
17084return dld_link ();
17085 ;
17086 return 0;
17087}
17088_ACEOF
17089if ac_fn_c_try_link "$LINENO"; then :
17090 ac_cv_lib_dld_dld_link=yes
17091else
17092 ac_cv_lib_dld_dld_link=no
17093fi
17094rm -f core conftest.err conftest.$ac_objext \
17095 conftest$ac_exeext conftest.$ac_ext
17096LIBS=$ac_check_lib_save_LIBS
17097fi
17098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17099$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017100if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017101 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17102fi
17103
17104
17105fi
17106
17107
17108fi
17109
17110
17111fi
17112
17113
17114fi
17115
17116
17117fi
17118
17119 ;;
17120 esac
17121
17122 if test "x$lt_cv_dlopen" != xno; then
17123 enable_dlopen=yes
17124 else
17125 enable_dlopen=no
17126 fi
17127
17128 case $lt_cv_dlopen in
17129 dlopen)
17130 save_CPPFLAGS="$CPPFLAGS"
17131 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17132
17133 save_LDFLAGS="$LDFLAGS"
17134 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17135
17136 save_LIBS="$LIBS"
17137 LIBS="$lt_cv_dlopen_libs $LIBS"
17138
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17140$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017141if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017142 $as_echo_n "(cached) " >&6
17143else
17144 if test "$cross_compiling" = yes; then :
17145 lt_cv_dlopen_self=cross
17146else
17147 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17148 lt_status=$lt_dlunknown
17149 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017150#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017151#include "confdefs.h"
17152
17153#if HAVE_DLFCN_H
17154#include <dlfcn.h>
17155#endif
17156
17157#include <stdio.h>
17158
17159#ifdef RTLD_GLOBAL
17160# define LT_DLGLOBAL RTLD_GLOBAL
17161#else
17162# ifdef DL_GLOBAL
17163# define LT_DLGLOBAL DL_GLOBAL
17164# else
17165# define LT_DLGLOBAL 0
17166# endif
17167#endif
17168
17169/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17170 find out it does not work in some platform. */
17171#ifndef LT_DLLAZY_OR_NOW
17172# ifdef RTLD_LAZY
17173# define LT_DLLAZY_OR_NOW RTLD_LAZY
17174# else
17175# ifdef DL_LAZY
17176# define LT_DLLAZY_OR_NOW DL_LAZY
17177# else
17178# ifdef RTLD_NOW
17179# define LT_DLLAZY_OR_NOW RTLD_NOW
17180# else
17181# ifdef DL_NOW
17182# define LT_DLLAZY_OR_NOW DL_NOW
17183# else
17184# define LT_DLLAZY_OR_NOW 0
17185# endif
17186# endif
17187# endif
17188# endif
17189#endif
17190
cristy0c60a692010-11-04 01:09:47 +000017191/* When -fvisbility=hidden is used, assume the code has been annotated
17192 correspondingly for the symbols needed. */
17193#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017194int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017195#endif
17196
cristyda16f162011-02-19 23:52:17 +000017197int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017198int main ()
17199{
17200 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17201 int status = $lt_dlunknown;
17202
17203 if (self)
17204 {
17205 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017206 else
17207 {
17208 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17209 else puts (dlerror ());
17210 }
cristy73bd4a52010-10-05 11:24:23 +000017211 /* dlclose (self); */
17212 }
17213 else
17214 puts (dlerror ());
17215
17216 return status;
17217}
17218_LT_EOF
17219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17220 (eval $ac_link) 2>&5
17221 ac_status=$?
17222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17223 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17224 (./conftest; exit; ) >&5 2>/dev/null
17225 lt_status=$?
17226 case x$lt_status in
17227 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17228 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17229 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17230 esac
17231 else :
17232 # compilation failed
17233 lt_cv_dlopen_self=no
17234 fi
17235fi
17236rm -fr conftest*
17237
17238
17239fi
17240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17241$as_echo "$lt_cv_dlopen_self" >&6; }
17242
17243 if test "x$lt_cv_dlopen_self" = xyes; then
17244 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17246$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017247if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017248 $as_echo_n "(cached) " >&6
17249else
17250 if test "$cross_compiling" = yes; then :
17251 lt_cv_dlopen_self_static=cross
17252else
17253 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17254 lt_status=$lt_dlunknown
17255 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017256#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017257#include "confdefs.h"
17258
17259#if HAVE_DLFCN_H
17260#include <dlfcn.h>
17261#endif
17262
17263#include <stdio.h>
17264
17265#ifdef RTLD_GLOBAL
17266# define LT_DLGLOBAL RTLD_GLOBAL
17267#else
17268# ifdef DL_GLOBAL
17269# define LT_DLGLOBAL DL_GLOBAL
17270# else
17271# define LT_DLGLOBAL 0
17272# endif
17273#endif
17274
17275/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17276 find out it does not work in some platform. */
17277#ifndef LT_DLLAZY_OR_NOW
17278# ifdef RTLD_LAZY
17279# define LT_DLLAZY_OR_NOW RTLD_LAZY
17280# else
17281# ifdef DL_LAZY
17282# define LT_DLLAZY_OR_NOW DL_LAZY
17283# else
17284# ifdef RTLD_NOW
17285# define LT_DLLAZY_OR_NOW RTLD_NOW
17286# else
17287# ifdef DL_NOW
17288# define LT_DLLAZY_OR_NOW DL_NOW
17289# else
17290# define LT_DLLAZY_OR_NOW 0
17291# endif
17292# endif
17293# endif
17294# endif
17295#endif
17296
cristy0c60a692010-11-04 01:09:47 +000017297/* When -fvisbility=hidden is used, assume the code has been annotated
17298 correspondingly for the symbols needed. */
17299#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017300int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017301#endif
17302
cristyda16f162011-02-19 23:52:17 +000017303int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017304int main ()
17305{
17306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17307 int status = $lt_dlunknown;
17308
17309 if (self)
17310 {
17311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017312 else
17313 {
17314 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17315 else puts (dlerror ());
17316 }
cristy73bd4a52010-10-05 11:24:23 +000017317 /* dlclose (self); */
17318 }
17319 else
17320 puts (dlerror ());
17321
17322 return status;
17323}
17324_LT_EOF
17325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17326 (eval $ac_link) 2>&5
17327 ac_status=$?
17328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17329 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17330 (./conftest; exit; ) >&5 2>/dev/null
17331 lt_status=$?
17332 case x$lt_status in
17333 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17334 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17335 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17336 esac
17337 else :
17338 # compilation failed
17339 lt_cv_dlopen_self_static=no
17340 fi
17341fi
17342rm -fr conftest*
17343
17344
17345fi
17346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17347$as_echo "$lt_cv_dlopen_self_static" >&6; }
17348 fi
17349
17350 CPPFLAGS="$save_CPPFLAGS"
17351 LDFLAGS="$save_LDFLAGS"
17352 LIBS="$save_LIBS"
17353 ;;
17354 esac
17355
17356 case $lt_cv_dlopen_self in
17357 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17358 *) enable_dlopen_self=unknown ;;
17359 esac
17360
17361 case $lt_cv_dlopen_self_static in
17362 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17363 *) enable_dlopen_self_static=unknown ;;
17364 esac
17365fi
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383striplib=
17384old_striplib=
17385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17386$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17387if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17388 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17389 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17391$as_echo "yes" >&6; }
17392else
17393# FIXME - insert some real tests, host_os isn't really good enough
17394 case $host_os in
17395 darwin*)
17396 if test -n "$STRIP" ; then
17397 striplib="$STRIP -x"
17398 old_striplib="$STRIP -S"
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17400$as_echo "yes" >&6; }
17401 else
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17403$as_echo "no" >&6; }
17404 fi
17405 ;;
17406 *)
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17408$as_echo "no" >&6; }
17409 ;;
17410 esac
17411fi
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424 # Report which library types will actually be built
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17426$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17428$as_echo "$can_build_shared" >&6; }
17429
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17431$as_echo_n "checking whether to build shared libraries... " >&6; }
17432 test "$can_build_shared" = "no" && enable_shared=no
17433
17434 # On AIX, shared libraries and static libraries use the same namespace, and
17435 # are all built from PIC.
17436 case $host_os in
17437 aix3*)
17438 test "$enable_shared" = yes && enable_static=no
17439 if test -n "$RANLIB"; then
17440 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17441 postinstall_cmds='$RANLIB $lib'
17442 fi
17443 ;;
17444
17445 aix[4-9]*)
17446 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17447 test "$enable_shared" = yes && enable_static=no
17448 fi
17449 ;;
17450 esac
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17452$as_echo "$enable_shared" >&6; }
17453
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17455$as_echo_n "checking whether to build static libraries... " >&6; }
17456 # Make sure either enable_shared or enable_static is yes.
17457 test "$enable_shared" = yes || enable_static=yes
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17459$as_echo "$enable_static" >&6; }
17460
17461
17462
17463
17464fi
17465ac_ext=c
17466ac_cpp='$CPP $CPPFLAGS'
17467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17469ac_compiler_gnu=$ac_cv_c_compiler_gnu
17470
17471CC="$lt_save_CC"
17472
cristy0c60a692010-11-04 01:09:47 +000017473 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17474 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17475 (test "X$CXX" != "Xg++"))) ; then
17476 ac_ext=cpp
17477ac_cpp='$CXXCPP $CPPFLAGS'
17478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17482$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17483if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017484 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017485 $as_echo_n "(cached) " >&6
17486else
17487 # Double quotes because CXXCPP needs to be expanded
17488 for CXXCPP in "$CXX -E" "/lib/cpp"
17489 do
17490 ac_preproc_ok=false
17491for ac_cxx_preproc_warn_flag in '' yes
17492do
17493 # Use a header file that comes with gcc, so configuring glibc
17494 # with a fresh cross-compiler works.
17495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17496 # <limits.h> exists even on freestanding compilers.
17497 # On the NeXT, cc -E runs the code through the compiler's parser,
17498 # not just through cpp. "Syntax error" is here to catch this case.
17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500/* end confdefs.h. */
17501#ifdef __STDC__
17502# include <limits.h>
17503#else
17504# include <assert.h>
17505#endif
17506 Syntax error
17507_ACEOF
17508if ac_fn_cxx_try_cpp "$LINENO"; then :
17509
17510else
17511 # Broken: fails on valid input.
17512continue
17513fi
cristyda16f162011-02-19 23:52:17 +000017514rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017515
17516 # OK, works on sane cases. Now check whether nonexistent headers
17517 # can be detected and how.
17518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17519/* end confdefs.h. */
17520#include <ac_nonexistent.h>
17521_ACEOF
17522if ac_fn_cxx_try_cpp "$LINENO"; then :
17523 # Broken: success on invalid input.
17524continue
17525else
17526 # Passes both tests.
17527ac_preproc_ok=:
17528break
17529fi
cristyda16f162011-02-19 23:52:17 +000017530rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017531
17532done
17533# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017534rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017535if $ac_preproc_ok; then :
17536 break
17537fi
17538
17539 done
17540 ac_cv_prog_CXXCPP=$CXXCPP
17541
17542fi
17543 CXXCPP=$ac_cv_prog_CXXCPP
17544else
17545 ac_cv_prog_CXXCPP=$CXXCPP
17546fi
17547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17548$as_echo "$CXXCPP" >&6; }
17549ac_preproc_ok=false
17550for ac_cxx_preproc_warn_flag in '' yes
17551do
17552 # Use a header file that comes with gcc, so configuring glibc
17553 # with a fresh cross-compiler works.
17554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17555 # <limits.h> exists even on freestanding compilers.
17556 # On the NeXT, cc -E runs the code through the compiler's parser,
17557 # not just through cpp. "Syntax error" is here to catch this case.
17558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17559/* end confdefs.h. */
17560#ifdef __STDC__
17561# include <limits.h>
17562#else
17563# include <assert.h>
17564#endif
17565 Syntax error
17566_ACEOF
17567if ac_fn_cxx_try_cpp "$LINENO"; then :
17568
17569else
17570 # Broken: fails on valid input.
17571continue
17572fi
cristyda16f162011-02-19 23:52:17 +000017573rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017574
17575 # OK, works on sane cases. Now check whether nonexistent headers
17576 # can be detected and how.
17577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17578/* end confdefs.h. */
17579#include <ac_nonexistent.h>
17580_ACEOF
17581if ac_fn_cxx_try_cpp "$LINENO"; then :
17582 # Broken: success on invalid input.
17583continue
17584else
17585 # Passes both tests.
17586ac_preproc_ok=:
17587break
17588fi
cristyda16f162011-02-19 23:52:17 +000017589rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017590
17591done
17592# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017593rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017594if $ac_preproc_ok; then :
17595
17596else
17597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17599as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17600See \`config.log' for more details" "$LINENO" 5; }
17601fi
17602
17603ac_ext=c
17604ac_cpp='$CPP $CPPFLAGS'
17605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17607ac_compiler_gnu=$ac_cv_c_compiler_gnu
17608
17609else
17610 _lt_caught_CXX_error=yes
17611fi
cristy73bd4a52010-10-05 11:24:23 +000017612
17613ac_ext=cpp
17614ac_cpp='$CXXCPP $CPPFLAGS'
17615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17618
17619archive_cmds_need_lc_CXX=no
17620allow_undefined_flag_CXX=
17621always_export_symbols_CXX=no
17622archive_expsym_cmds_CXX=
17623compiler_needs_object_CXX=no
17624export_dynamic_flag_spec_CXX=
17625hardcode_direct_CXX=no
17626hardcode_direct_absolute_CXX=no
17627hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017628hardcode_libdir_separator_CXX=
17629hardcode_minus_L_CXX=no
17630hardcode_shlibpath_var_CXX=unsupported
17631hardcode_automatic_CXX=no
17632inherit_rpath_CXX=no
17633module_cmds_CXX=
17634module_expsym_cmds_CXX=
17635link_all_deplibs_CXX=unknown
17636old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017637reload_flag_CXX=$reload_flag
17638reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017639no_undefined_flag_CXX=
17640whole_archive_flag_spec_CXX=
17641enable_shared_with_static_runtimes_CXX=no
17642
17643# Source file extension for C++ test sources.
17644ac_ext=cpp
17645
17646# Object file extension for compiled C++ test sources.
17647objext=o
17648objext_CXX=$objext
17649
17650# No sense in running all these tests if we already determined that
17651# the CXX compiler isn't working. Some variables (like enable_shared)
17652# are currently assumed to apply to all compilers on this platform,
17653# and will be corrupted by setting them based on a non-working compiler.
17654if test "$_lt_caught_CXX_error" != yes; then
17655 # Code to be used in simple compile tests
17656 lt_simple_compile_test_code="int some_variable = 0;"
17657
17658 # Code to be used in simple link tests
17659 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17660
17661 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17662
17663
17664
17665
17666
17667
17668# If no C compiler was specified, use CC.
17669LTCC=${LTCC-"$CC"}
17670
17671# If no C compiler flags were specified, use CFLAGS.
17672LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17673
17674# Allow CC to be a program name with arguments.
17675compiler=$CC
17676
17677
17678 # save warnings/boilerplate of simple test code
17679 ac_outfile=conftest.$ac_objext
17680echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17681eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17682_lt_compiler_boilerplate=`cat conftest.err`
17683$RM conftest*
17684
17685 ac_outfile=conftest.$ac_objext
17686echo "$lt_simple_link_test_code" >conftest.$ac_ext
17687eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17688_lt_linker_boilerplate=`cat conftest.err`
17689$RM -r conftest*
17690
17691
17692 # Allow CC to be a program name with arguments.
17693 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017694 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017695 lt_save_LD=$LD
17696 lt_save_GCC=$GCC
17697 GCC=$GXX
17698 lt_save_with_gnu_ld=$with_gnu_ld
17699 lt_save_path_LD=$lt_cv_path_LD
17700 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17701 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17702 else
17703 $as_unset lt_cv_prog_gnu_ld
17704 fi
17705 if test -n "${lt_cv_path_LDCXX+set}"; then
17706 lt_cv_path_LD=$lt_cv_path_LDCXX
17707 else
17708 $as_unset lt_cv_path_LD
17709 fi
17710 test -z "${LDCXX+set}" || LD=$LDCXX
17711 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017712 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017713 compiler=$CC
17714 compiler_CXX=$CC
17715 for cc_temp in $compiler""; do
17716 case $cc_temp in
17717 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17718 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17719 \-*) ;;
17720 *) break;;
17721 esac
17722done
cristy0c60a692010-11-04 01:09:47 +000017723cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017724
17725
17726 if test -n "$compiler"; then
17727 # We don't want -fno-exception when compiling C++ code, so set the
17728 # no_builtin_flag separately
17729 if test "$GXX" = yes; then
17730 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17731 else
17732 lt_prog_compiler_no_builtin_flag_CXX=
17733 fi
17734
17735 if test "$GXX" = yes; then
17736 # Set up default GNU C++ configuration
17737
17738
17739
17740# Check whether --with-gnu-ld was given.
17741if test "${with_gnu_ld+set}" = set; then :
17742 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17743else
17744 with_gnu_ld=no
17745fi
17746
17747ac_prog=ld
17748if test "$GCC" = yes; then
17749 # Check if gcc -print-prog-name=ld gives a path.
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17751$as_echo_n "checking for ld used by $CC... " >&6; }
17752 case $host in
17753 *-*-mingw*)
17754 # gcc leaves a trailing carriage return which upsets mingw
17755 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17756 *)
17757 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17758 esac
17759 case $ac_prog in
17760 # Accept absolute paths.
17761 [\\/]* | ?:[\\/]*)
17762 re_direlt='/[^/][^/]*/\.\./'
17763 # Canonicalize the pathname of ld
17764 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17765 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17766 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17767 done
17768 test -z "$LD" && LD="$ac_prog"
17769 ;;
17770 "")
17771 # If it fails, then pretend we aren't using GCC.
17772 ac_prog=ld
17773 ;;
17774 *)
17775 # If it is relative, then search for the first ld in PATH.
17776 with_gnu_ld=unknown
17777 ;;
17778 esac
17779elif test "$with_gnu_ld" = yes; then
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17781$as_echo_n "checking for GNU ld... " >&6; }
17782else
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17784$as_echo_n "checking for non-GNU ld... " >&6; }
17785fi
cristyda16f162011-02-19 23:52:17 +000017786if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017787 $as_echo_n "(cached) " >&6
17788else
17789 if test -z "$LD"; then
17790 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17791 for ac_dir in $PATH; do
17792 IFS="$lt_save_ifs"
17793 test -z "$ac_dir" && ac_dir=.
17794 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17795 lt_cv_path_LD="$ac_dir/$ac_prog"
17796 # Check to see if the program is GNU ld. I'd rather use --version,
17797 # but apparently some variants of GNU ld only accept -v.
17798 # Break only if it was the GNU/non-GNU ld that we prefer.
17799 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17800 *GNU* | *'with BFD'*)
17801 test "$with_gnu_ld" != no && break
17802 ;;
17803 *)
17804 test "$with_gnu_ld" != yes && break
17805 ;;
17806 esac
17807 fi
17808 done
17809 IFS="$lt_save_ifs"
17810else
17811 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17812fi
17813fi
17814
17815LD="$lt_cv_path_LD"
17816if test -n "$LD"; then
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17818$as_echo "$LD" >&6; }
17819else
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17821$as_echo "no" >&6; }
17822fi
cristy98dddb52010-11-04 00:30:15 +000017823test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17825$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017826if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017827 $as_echo_n "(cached) " >&6
17828else
17829 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17830case `$LD -v 2>&1 </dev/null` in
17831*GNU* | *'with BFD'*)
17832 lt_cv_prog_gnu_ld=yes
17833 ;;
17834*)
17835 lt_cv_prog_gnu_ld=no
17836 ;;
17837esac
17838fi
17839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17840$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17841with_gnu_ld=$lt_cv_prog_gnu_ld
17842
17843
17844
17845
17846
17847
17848
17849 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17850 # archiving commands below assume that GNU ld is being used.
17851 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017852 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17853 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 +000017854
17855 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17856 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17857
17858 # If archive_cmds runs LD, not CC, wlarc should be empty
17859 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17860 # investigate it a little bit more. (MM)
17861 wlarc='${wl}'
17862
17863 # ancient GNU ld didn't support --whole-archive et. al.
17864 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17865 $GREP 'no-whole-archive' > /dev/null; then
17866 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17867 else
17868 whole_archive_flag_spec_CXX=
17869 fi
17870 else
17871 with_gnu_ld=no
17872 wlarc=
17873
17874 # A generic and very simple default shared library creation
17875 # command for GNU C++ for the case where it uses the native
17876 # linker, instead of GNU ld. If possible, this setting should
17877 # overridden to take advantage of the native linker features on
17878 # the platform it is being used on.
17879 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17880 fi
17881
17882 # Commands to make compiler produce verbose output that lists
17883 # what "hidden" libraries, object files and flags are used when
17884 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017885 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017886
17887 else
17888 GXX=no
17889 with_gnu_ld=no
17890 wlarc=
17891 fi
17892
17893 # PORTME: fill in a description of your system's C++ link characteristics
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17895$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17896 ld_shlibs_CXX=yes
17897 case $host_os in
17898 aix3*)
17899 # FIXME: insert proper C++ library support
17900 ld_shlibs_CXX=no
17901 ;;
17902 aix[4-9]*)
17903 if test "$host_cpu" = ia64; then
17904 # On IA64, the linker does run time linking by default, so we don't
17905 # have to do anything special.
17906 aix_use_runtimelinking=no
17907 exp_sym_flag='-Bexport'
17908 no_entry_flag=""
17909 else
17910 aix_use_runtimelinking=no
17911
17912 # Test if we are trying to use run time linking or normal
17913 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17914 # need to do runtime linking.
17915 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17916 for ld_flag in $LDFLAGS; do
17917 case $ld_flag in
17918 *-brtl*)
17919 aix_use_runtimelinking=yes
17920 break
17921 ;;
17922 esac
17923 done
17924 ;;
17925 esac
17926
17927 exp_sym_flag='-bexport'
17928 no_entry_flag='-bnoentry'
17929 fi
17930
17931 # When large executables or shared objects are built, AIX ld can
17932 # have problems creating the table of contents. If linking a library
17933 # or program results in "error TOC overflow" add -mminimal-toc to
17934 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17935 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17936
17937 archive_cmds_CXX=''
17938 hardcode_direct_CXX=yes
17939 hardcode_direct_absolute_CXX=yes
17940 hardcode_libdir_separator_CXX=':'
17941 link_all_deplibs_CXX=yes
17942 file_list_spec_CXX='${wl}-f,'
17943
17944 if test "$GXX" = yes; then
17945 case $host_os in aix4.[012]|aix4.[012].*)
17946 # We only want to do this on AIX 4.2 and lower, the check
17947 # below for broken collect2 doesn't work under 4.3+
17948 collect2name=`${CC} -print-prog-name=collect2`
17949 if test -f "$collect2name" &&
17950 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17951 then
17952 # We have reworked collect2
17953 :
17954 else
17955 # We have old collect2
17956 hardcode_direct_CXX=unsupported
17957 # It fails to find uninstalled libraries when the uninstalled
17958 # path is not listed in the libpath. Setting hardcode_minus_L
17959 # to unsupported forces relinking
17960 hardcode_minus_L_CXX=yes
17961 hardcode_libdir_flag_spec_CXX='-L$libdir'
17962 hardcode_libdir_separator_CXX=
17963 fi
17964 esac
17965 shared_flag='-shared'
17966 if test "$aix_use_runtimelinking" = yes; then
17967 shared_flag="$shared_flag "'${wl}-G'
17968 fi
17969 else
17970 # not using gcc
17971 if test "$host_cpu" = ia64; then
17972 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17973 # chokes on -Wl,-G. The following line is correct:
17974 shared_flag='-G'
17975 else
17976 if test "$aix_use_runtimelinking" = yes; then
17977 shared_flag='${wl}-G'
17978 else
17979 shared_flag='${wl}-bM:SRE'
17980 fi
17981 fi
17982 fi
17983
17984 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17985 # It seems that -bexpall does not export symbols beginning with
17986 # underscore (_), so it is better to generate a list of symbols to
17987 # export.
17988 always_export_symbols_CXX=yes
17989 if test "$aix_use_runtimelinking" = yes; then
17990 # Warning - without using the other runtime loading flags (-brtl),
17991 # -berok will link without error, but may produce a broken library.
17992 allow_undefined_flag_CXX='-berok'
17993 # Determine the default libpath from the value encoded in an empty
17994 # executable.
cristyda16f162011-02-19 23:52:17 +000017995 if test "${lt_cv_aix_libpath+set}" = set; then
17996 aix_libpath=$lt_cv_aix_libpath
17997else
17998 if ${lt_cv_aix_libpath__CXX+:} false; then :
17999 $as_echo_n "(cached) " >&6
18000else
18001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018002/* end confdefs.h. */
18003
18004int
18005main ()
18006{
18007
18008 ;
18009 return 0;
18010}
18011_ACEOF
18012if ac_fn_cxx_try_link "$LINENO"; then :
18013
cristyda16f162011-02-19 23:52:17 +000018014 lt_aix_libpath_sed='
18015 /Import File Strings/,/^$/ {
18016 /^0/ {
18017 s/^0 *\([^ ]*\) *$/\1/
18018 p
18019 }
18020 }'
18021 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18022 # Check for a 64-bit object if we didn't find anything.
18023 if test -z "$lt_cv_aix_libpath__CXX"; then
18024 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18025 fi
cristy73bd4a52010-10-05 11:24:23 +000018026fi
18027rm -f core conftest.err conftest.$ac_objext \
18028 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018029 if test -z "$lt_cv_aix_libpath__CXX"; then
18030 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18031 fi
18032
18033fi
18034
18035 aix_libpath=$lt_cv_aix_libpath__CXX
18036fi
cristy73bd4a52010-10-05 11:24:23 +000018037
18038 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18039
cristy0c60a692010-11-04 01:09:47 +000018040 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 +000018041 else
18042 if test "$host_cpu" = ia64; then
18043 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18044 allow_undefined_flag_CXX="-z nodefs"
18045 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"
18046 else
18047 # Determine the default libpath from the value encoded in an
18048 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018049 if test "${lt_cv_aix_libpath+set}" = set; then
18050 aix_libpath=$lt_cv_aix_libpath
18051else
18052 if ${lt_cv_aix_libpath__CXX+:} false; then :
18053 $as_echo_n "(cached) " >&6
18054else
18055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018056/* end confdefs.h. */
18057
18058int
18059main ()
18060{
18061
18062 ;
18063 return 0;
18064}
18065_ACEOF
18066if ac_fn_cxx_try_link "$LINENO"; then :
18067
cristyda16f162011-02-19 23:52:17 +000018068 lt_aix_libpath_sed='
18069 /Import File Strings/,/^$/ {
18070 /^0/ {
18071 s/^0 *\([^ ]*\) *$/\1/
18072 p
18073 }
18074 }'
18075 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18076 # Check for a 64-bit object if we didn't find anything.
18077 if test -z "$lt_cv_aix_libpath__CXX"; then
18078 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18079 fi
cristy73bd4a52010-10-05 11:24:23 +000018080fi
18081rm -f core conftest.err conftest.$ac_objext \
18082 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018083 if test -z "$lt_cv_aix_libpath__CXX"; then
18084 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18085 fi
18086
18087fi
18088
18089 aix_libpath=$lt_cv_aix_libpath__CXX
18090fi
cristy73bd4a52010-10-05 11:24:23 +000018091
18092 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18093 # Warning - without using the other run time loading flags,
18094 # -berok will link without error, but may produce a broken library.
18095 no_undefined_flag_CXX=' ${wl}-bernotok'
18096 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018097 if test "$with_gnu_ld" = yes; then
18098 # We only use this code for GNU lds that support --whole-archive.
18099 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18100 else
18101 # Exported symbols can be pulled into shared objects from archives
18102 whole_archive_flag_spec_CXX='$convenience'
18103 fi
cristy73bd4a52010-10-05 11:24:23 +000018104 archive_cmds_need_lc_CXX=yes
18105 # This is similar to how AIX traditionally builds its shared
18106 # libraries.
18107 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'
18108 fi
18109 fi
18110 ;;
18111
18112 beos*)
18113 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18114 allow_undefined_flag_CXX=unsupported
18115 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18116 # support --undefined. This deserves some investigation. FIXME
18117 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18118 else
18119 ld_shlibs_CXX=no
18120 fi
18121 ;;
18122
18123 chorus*)
18124 case $cc_basename in
18125 *)
18126 # FIXME: insert proper C++ library support
18127 ld_shlibs_CXX=no
18128 ;;
18129 esac
18130 ;;
18131
18132 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018133 case $GXX,$cc_basename in
18134 ,cl* | no,cl*)
18135 # Native MSVC
18136 # hardcode_libdir_flag_spec is actually meaningless, as there is
18137 # no search path for DLLs.
18138 hardcode_libdir_flag_spec_CXX=' '
18139 allow_undefined_flag_CXX=unsupported
18140 always_export_symbols_CXX=yes
18141 file_list_spec_CXX='@'
18142 # Tell ltmain to make .lib files, not .a files.
18143 libext=lib
18144 # Tell ltmain to make .dll files, not .so files.
18145 shrext_cmds=".dll"
18146 # FIXME: Setting linknames here is a bad hack.
18147 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18148 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18149 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18150 else
18151 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18152 fi~
18153 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18154 linknames='
18155 # The linker will not automatically build a static lib if we build a DLL.
18156 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18157 enable_shared_with_static_runtimes_CXX=yes
18158 # Don't use ranlib
18159 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18160 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18161 lt_tool_outputfile="@TOOL_OUTPUT@"~
18162 case $lt_outputfile in
18163 *.exe|*.EXE) ;;
18164 *)
18165 lt_outputfile="$lt_outputfile.exe"
18166 lt_tool_outputfile="$lt_tool_outputfile.exe"
18167 ;;
18168 esac~
18169 func_to_tool_file "$lt_outputfile"~
18170 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18171 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18172 $RM "$lt_outputfile.manifest";
18173 fi'
18174 ;;
18175 *)
18176 # g++
18177 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18178 # as there is no search path for DLLs.
18179 hardcode_libdir_flag_spec_CXX='-L$libdir'
18180 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18181 allow_undefined_flag_CXX=unsupported
18182 always_export_symbols_CXX=no
18183 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018184
cristyda16f162011-02-19 23:52:17 +000018185 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18186 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'
18187 # If the export-symbols file already is a .def file (1st line
18188 # is EXPORTS), use it as is; otherwise, prepend...
18189 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18190 cp $export_symbols $output_objdir/$soname.def;
18191 else
18192 echo EXPORTS > $output_objdir/$soname.def;
18193 cat $export_symbols >> $output_objdir/$soname.def;
18194 fi~
18195 $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'
18196 else
18197 ld_shlibs_CXX=no
18198 fi
18199 ;;
18200 esac
18201 ;;
cristy73bd4a52010-10-05 11:24:23 +000018202 darwin* | rhapsody*)
18203
18204
18205 archive_cmds_need_lc_CXX=no
18206 hardcode_direct_CXX=no
18207 hardcode_automatic_CXX=yes
18208 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018209 if test "$lt_cv_ld_force_load" = "yes"; then
18210 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 +000018211
cristy0c60a692010-11-04 01:09:47 +000018212 else
18213 whole_archive_flag_spec_CXX=''
18214 fi
cristy73bd4a52010-10-05 11:24:23 +000018215 link_all_deplibs_CXX=yes
18216 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18217 case $cc_basename in
18218 ifort*) _lt_dar_can_shared=yes ;;
18219 *) _lt_dar_can_shared=$GCC ;;
18220 esac
18221 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018222 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018223 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}"
18224 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18225 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}"
18226 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}"
18227 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18228 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}"
18229 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}"
18230 fi
18231
18232 else
18233 ld_shlibs_CXX=no
18234 fi
18235
18236 ;;
18237
18238 dgux*)
18239 case $cc_basename in
18240 ec++*)
18241 # FIXME: insert proper C++ library support
18242 ld_shlibs_CXX=no
18243 ;;
18244 ghcx*)
18245 # Green Hills C++ Compiler
18246 # FIXME: insert proper C++ library support
18247 ld_shlibs_CXX=no
18248 ;;
18249 *)
18250 # FIXME: insert proper C++ library support
18251 ld_shlibs_CXX=no
18252 ;;
18253 esac
18254 ;;
18255
cristy99bd5232011-12-07 14:38:20 +000018256 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018257 # C++ shared libraries reported to be fairly broken before
18258 # switch to ELF
18259 ld_shlibs_CXX=no
18260 ;;
18261
18262 freebsd-elf*)
18263 archive_cmds_need_lc_CXX=no
18264 ;;
18265
18266 freebsd* | dragonfly*)
18267 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18268 # conventions
18269 ld_shlibs_CXX=yes
18270 ;;
18271
18272 gnu*)
18273 ;;
18274
cristy0c60a692010-11-04 01:09:47 +000018275 haiku*)
18276 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18277 link_all_deplibs_CXX=yes
18278 ;;
18279
cristy73bd4a52010-10-05 11:24:23 +000018280 hpux9*)
18281 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18282 hardcode_libdir_separator_CXX=:
18283 export_dynamic_flag_spec_CXX='${wl}-E'
18284 hardcode_direct_CXX=yes
18285 hardcode_minus_L_CXX=yes # Not in the search PATH,
18286 # but as the default
18287 # location of the library.
18288
18289 case $cc_basename in
18290 CC*)
18291 # FIXME: insert proper C++ library support
18292 ld_shlibs_CXX=no
18293 ;;
18294 aCC*)
18295 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'
18296 # Commands to make compiler produce verbose output that lists
18297 # what "hidden" libraries, object files and flags are used when
18298 # linking a shared library.
18299 #
18300 # There doesn't appear to be a way to prevent this compiler from
18301 # explicitly linking system object files so we need to strip them
18302 # from the output so that they don't get included in the library
18303 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018304 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 +000018305 ;;
18306 *)
18307 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018308 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 +000018309 else
18310 # FIXME: insert proper C++ library support
18311 ld_shlibs_CXX=no
18312 fi
18313 ;;
18314 esac
18315 ;;
18316
18317 hpux10*|hpux11*)
18318 if test $with_gnu_ld = no; then
18319 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18320 hardcode_libdir_separator_CXX=:
18321
18322 case $host_cpu in
18323 hppa*64*|ia64*)
18324 ;;
18325 *)
18326 export_dynamic_flag_spec_CXX='${wl}-E'
18327 ;;
18328 esac
18329 fi
18330 case $host_cpu in
18331 hppa*64*|ia64*)
18332 hardcode_direct_CXX=no
18333 hardcode_shlibpath_var_CXX=no
18334 ;;
18335 *)
18336 hardcode_direct_CXX=yes
18337 hardcode_direct_absolute_CXX=yes
18338 hardcode_minus_L_CXX=yes # Not in the search PATH,
18339 # but as the default
18340 # location of the library.
18341 ;;
18342 esac
18343
18344 case $cc_basename in
18345 CC*)
18346 # FIXME: insert proper C++ library support
18347 ld_shlibs_CXX=no
18348 ;;
18349 aCC*)
18350 case $host_cpu in
18351 hppa*64*)
18352 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18353 ;;
18354 ia64*)
18355 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18356 ;;
18357 *)
18358 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18359 ;;
18360 esac
18361 # Commands to make compiler produce verbose output that lists
18362 # what "hidden" libraries, object files and flags are used when
18363 # linking a shared library.
18364 #
18365 # There doesn't appear to be a way to prevent this compiler from
18366 # explicitly linking system object files so we need to strip them
18367 # from the output so that they don't get included in the library
18368 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018369 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 +000018370 ;;
18371 *)
18372 if test "$GXX" = yes; then
18373 if test $with_gnu_ld = no; then
18374 case $host_cpu in
18375 hppa*64*)
18376 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18377 ;;
18378 ia64*)
cristyda16f162011-02-19 23:52:17 +000018379 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 +000018380 ;;
18381 *)
cristyda16f162011-02-19 23:52:17 +000018382 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 +000018383 ;;
18384 esac
18385 fi
18386 else
18387 # FIXME: insert proper C++ library support
18388 ld_shlibs_CXX=no
18389 fi
18390 ;;
18391 esac
18392 ;;
18393
18394 interix[3-9]*)
18395 hardcode_direct_CXX=no
18396 hardcode_shlibpath_var_CXX=no
18397 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18398 export_dynamic_flag_spec_CXX='${wl}-E'
18399 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18400 # Instead, shared libraries are loaded at an image base (0x10000000 by
18401 # default) and relocated if they conflict, which is a slow very memory
18402 # consuming and fragmenting process. To avoid this, we pick a random,
18403 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18404 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18405 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'
18406 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'
18407 ;;
18408 irix5* | irix6*)
18409 case $cc_basename in
18410 CC*)
18411 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018412 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 +000018413
18414 # Archives containing C++ object files must be created using
18415 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18416 # necessary to make sure instantiated templates are included
18417 # in the archive.
18418 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18419 ;;
18420 *)
18421 if test "$GXX" = yes; then
18422 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018423 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 +000018424 else
cristyda16f162011-02-19 23:52:17 +000018425 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 +000018426 fi
18427 fi
18428 link_all_deplibs_CXX=yes
18429 ;;
18430 esac
18431 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18432 hardcode_libdir_separator_CXX=:
18433 inherit_rpath_CXX=yes
18434 ;;
18435
cristy0c60a692010-11-04 01:09:47 +000018436 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018437 case $cc_basename in
18438 KCC*)
18439 # Kuck and Associates, Inc. (KAI) C++ Compiler
18440
18441 # KCC will only create a shared library if the output file
18442 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18443 # to its proper name (with version) after linking.
18444 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'
18445 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'
18446 # Commands to make compiler produce verbose output that lists
18447 # what "hidden" libraries, object files and flags are used when
18448 # linking a shared library.
18449 #
18450 # There doesn't appear to be a way to prevent this compiler from
18451 # explicitly linking system object files so we need to strip them
18452 # from the output so that they don't get included in the library
18453 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018454 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 +000018455
18456 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18457 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18458
18459 # Archives containing C++ object files must be created using
18460 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18461 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18462 ;;
18463 icpc* | ecpc* )
18464 # Intel C++
18465 with_gnu_ld=yes
18466 # version 8.0 and above of icpc choke on multiply defined symbols
18467 # if we add $predep_objects and $postdep_objects, however 7.1 and
18468 # earlier do not add the objects themselves.
18469 case `$CC -V 2>&1` in
18470 *"Version 7."*)
18471 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18472 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'
18473 ;;
18474 *) # Version 8.0 or newer
18475 tmp_idyn=
18476 case $host_cpu in
18477 ia64*) tmp_idyn=' -i_dynamic';;
18478 esac
18479 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18480 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'
18481 ;;
18482 esac
18483 archive_cmds_need_lc_CXX=no
18484 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18485 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18486 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18487 ;;
18488 pgCC* | pgcpp*)
18489 # Portland Group C++ compiler
18490 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018491 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018492 prelink_cmds_CXX='tpldir=Template.dir~
18493 rm -rf $tpldir~
18494 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018495 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018496 old_archive_cmds_CXX='tpldir=Template.dir~
18497 rm -rf $tpldir~
18498 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018499 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018500 $RANLIB $oldlib'
18501 archive_cmds_CXX='tpldir=Template.dir~
18502 rm -rf $tpldir~
18503 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018504 $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 +000018505 archive_expsym_cmds_CXX='tpldir=Template.dir~
18506 rm -rf $tpldir~
18507 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018508 $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 +000018509 ;;
cristy0c60a692010-11-04 01:09:47 +000018510 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018511 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18512 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'
18513 ;;
18514 esac
18515
18516 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18517 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018518 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 +000018519 ;;
18520 cxx*)
18521 # Compaq C++
18522 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18523 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'
18524
18525 runpath_var=LD_RUN_PATH
18526 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18527 hardcode_libdir_separator_CXX=:
18528
18529 # Commands to make compiler produce verbose output that lists
18530 # what "hidden" libraries, object files and flags are used when
18531 # linking a shared library.
18532 #
18533 # There doesn't appear to be a way to prevent this compiler from
18534 # explicitly linking system object files so we need to strip them
18535 # from the output so that they don't get included in the library
18536 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018537 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 +000018538 ;;
cristy0c60a692010-11-04 01:09:47 +000018539 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018540 # IBM XL 8.0 on PPC, with GNU ld
18541 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18542 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18543 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18544 if test "x$supports_anon_versioning" = xyes; then
18545 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18546 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18547 echo "local: *; };" >> $output_objdir/$libname.ver~
18548 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18549 fi
18550 ;;
18551 *)
18552 case `$CC -V 2>&1 | sed 5q` in
18553 *Sun\ C*)
18554 # Sun C++ 5.9
18555 no_undefined_flag_CXX=' -zdefs'
18556 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18557 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'
18558 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018559 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 +000018560 compiler_needs_object_CXX=yes
18561
18562 # Not sure whether something based on
18563 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18564 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018565 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018566
18567 # Archives containing C++ object files must be created using
18568 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18569 # necessary to make sure instantiated templates are included
18570 # in the archive.
18571 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18572 ;;
18573 esac
18574 ;;
18575 esac
18576 ;;
18577
18578 lynxos*)
18579 # FIXME: insert proper C++ library support
18580 ld_shlibs_CXX=no
18581 ;;
18582
18583 m88k*)
18584 # FIXME: insert proper C++ library support
18585 ld_shlibs_CXX=no
18586 ;;
18587
18588 mvs*)
18589 case $cc_basename in
18590 cxx*)
18591 # FIXME: insert proper C++ library support
18592 ld_shlibs_CXX=no
18593 ;;
18594 *)
18595 # FIXME: insert proper C++ library support
18596 ld_shlibs_CXX=no
18597 ;;
18598 esac
18599 ;;
18600
18601 netbsd*)
18602 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18603 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18604 wlarc=
18605 hardcode_libdir_flag_spec_CXX='-R$libdir'
18606 hardcode_direct_CXX=yes
18607 hardcode_shlibpath_var_CXX=no
18608 fi
18609 # Workaround some broken pre-1.5 toolchains
18610 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18611 ;;
18612
18613 *nto* | *qnx*)
18614 ld_shlibs_CXX=yes
18615 ;;
18616
18617 openbsd2*)
18618 # C++ shared libraries are fairly broken
18619 ld_shlibs_CXX=no
18620 ;;
18621
18622 openbsd*)
18623 if test -f /usr/libexec/ld.so; then
18624 hardcode_direct_CXX=yes
18625 hardcode_shlibpath_var_CXX=no
18626 hardcode_direct_absolute_CXX=yes
18627 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18628 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18629 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18630 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18631 export_dynamic_flag_spec_CXX='${wl}-E'
18632 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18633 fi
cristy0c60a692010-11-04 01:09:47 +000018634 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018635 else
18636 ld_shlibs_CXX=no
18637 fi
18638 ;;
18639
18640 osf3* | osf4* | osf5*)
18641 case $cc_basename in
18642 KCC*)
18643 # Kuck and Associates, Inc. (KAI) C++ Compiler
18644
18645 # KCC will only create a shared library if the output file
18646 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18647 # to its proper name (with version) after linking.
18648 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'
18649
18650 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18651 hardcode_libdir_separator_CXX=:
18652
18653 # Archives containing C++ object files must be created using
18654 # the KAI C++ compiler.
18655 case $host in
18656 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18657 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18658 esac
18659 ;;
18660 RCC*)
18661 # Rational C++ 2.4.1
18662 # FIXME: insert proper C++ library support
18663 ld_shlibs_CXX=no
18664 ;;
18665 cxx*)
18666 case $host in
18667 osf3*)
18668 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018669 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 +000018670 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18671 ;;
18672 *)
18673 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018674 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 +000018675 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18676 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018677 $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 +000018678 $RM $lib.exp'
18679 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18680 ;;
18681 esac
18682
18683 hardcode_libdir_separator_CXX=:
18684
18685 # Commands to make compiler produce verbose output that lists
18686 # what "hidden" libraries, object files and flags are used when
18687 # linking a shared library.
18688 #
18689 # There doesn't appear to be a way to prevent this compiler from
18690 # explicitly linking system object files so we need to strip them
18691 # from the output so that they don't get included in the library
18692 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018693 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 +000018694 ;;
18695 *)
18696 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18697 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18698 case $host in
18699 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018700 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 +000018701 ;;
18702 *)
cristyda16f162011-02-19 23:52:17 +000018703 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 +000018704 ;;
18705 esac
18706
18707 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18708 hardcode_libdir_separator_CXX=:
18709
18710 # Commands to make compiler produce verbose output that lists
18711 # what "hidden" libraries, object files and flags are used when
18712 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018713 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018714
18715 else
18716 # FIXME: insert proper C++ library support
18717 ld_shlibs_CXX=no
18718 fi
18719 ;;
18720 esac
18721 ;;
18722
18723 psos*)
18724 # FIXME: insert proper C++ library support
18725 ld_shlibs_CXX=no
18726 ;;
18727
18728 sunos4*)
18729 case $cc_basename in
18730 CC*)
18731 # Sun C++ 4.x
18732 # FIXME: insert proper C++ library support
18733 ld_shlibs_CXX=no
18734 ;;
18735 lcc*)
18736 # Lucid
18737 # FIXME: insert proper C++ library support
18738 ld_shlibs_CXX=no
18739 ;;
18740 *)
18741 # FIXME: insert proper C++ library support
18742 ld_shlibs_CXX=no
18743 ;;
18744 esac
18745 ;;
18746
18747 solaris*)
18748 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018749 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018750 # Sun C++ 4.2, 5.x and Centerline C++
18751 archive_cmds_need_lc_CXX=yes
18752 no_undefined_flag_CXX=' -zdefs'
18753 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18754 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18755 $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'
18756
18757 hardcode_libdir_flag_spec_CXX='-R$libdir'
18758 hardcode_shlibpath_var_CXX=no
18759 case $host_os in
18760 solaris2.[0-5] | solaris2.[0-5].*) ;;
18761 *)
18762 # The compiler driver will combine and reorder linker options,
18763 # but understands `-z linker_flag'.
18764 # Supported since Solaris 2.6 (maybe 2.5.1?)
18765 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18766 ;;
18767 esac
18768 link_all_deplibs_CXX=yes
18769
cristy0c60a692010-11-04 01:09:47 +000018770 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018771
18772 # Archives containing C++ object files must be created using
18773 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18774 # necessary to make sure instantiated templates are included
18775 # in the archive.
18776 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18777 ;;
18778 gcx*)
18779 # Green Hills C++ Compiler
18780 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18781
18782 # The C++ compiler must be used to create the archive.
18783 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18784 ;;
18785 *)
18786 # GNU C++ compiler with Solaris linker
18787 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18788 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18789 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018790 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 +000018791 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 +000018792 $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 +000018793
18794 # Commands to make compiler produce verbose output that lists
18795 # what "hidden" libraries, object files and flags are used when
18796 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018797 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018798 else
18799 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18800 # platform.
18801 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18802 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18803 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18804
18805 # Commands to make compiler produce verbose output that lists
18806 # what "hidden" libraries, object files and flags are used when
18807 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018808 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018809 fi
18810
18811 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18812 case $host_os in
18813 solaris2.[0-5] | solaris2.[0-5].*) ;;
18814 *)
18815 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18816 ;;
18817 esac
18818 fi
18819 ;;
18820 esac
18821 ;;
18822
18823 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18824 no_undefined_flag_CXX='${wl}-z,text'
18825 archive_cmds_need_lc_CXX=no
18826 hardcode_shlibpath_var_CXX=no
18827 runpath_var='LD_RUN_PATH'
18828
18829 case $cc_basename in
18830 CC*)
18831 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18832 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18833 ;;
18834 *)
18835 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18836 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18837 ;;
18838 esac
18839 ;;
18840
18841 sysv5* | sco3.2v5* | sco5v6*)
18842 # Note: We can NOT use -z defs as we might desire, because we do not
18843 # link with -lc, and that would cause any symbols used from libc to
18844 # always be unresolved, which means just about no library would
18845 # ever link correctly. If we're not using GNU ld we use -z text
18846 # though, which does catch some bad symbols but isn't as heavy-handed
18847 # as -z defs.
18848 no_undefined_flag_CXX='${wl}-z,text'
18849 allow_undefined_flag_CXX='${wl}-z,nodefs'
18850 archive_cmds_need_lc_CXX=no
18851 hardcode_shlibpath_var_CXX=no
18852 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18853 hardcode_libdir_separator_CXX=':'
18854 link_all_deplibs_CXX=yes
18855 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18856 runpath_var='LD_RUN_PATH'
18857
18858 case $cc_basename in
18859 CC*)
18860 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18861 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 +000018862 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18863 '"$old_archive_cmds_CXX"
18864 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18865 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018866 ;;
18867 *)
18868 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18869 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18870 ;;
18871 esac
18872 ;;
18873
18874 tandem*)
18875 case $cc_basename in
18876 NCC*)
18877 # NonStop-UX NCC 3.20
18878 # FIXME: insert proper C++ library support
18879 ld_shlibs_CXX=no
18880 ;;
18881 *)
18882 # FIXME: insert proper C++ library support
18883 ld_shlibs_CXX=no
18884 ;;
18885 esac
18886 ;;
18887
18888 vxworks*)
18889 # FIXME: insert proper C++ library support
18890 ld_shlibs_CXX=no
18891 ;;
18892
18893 *)
18894 # FIXME: insert proper C++ library support
18895 ld_shlibs_CXX=no
18896 ;;
18897 esac
18898
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18900$as_echo "$ld_shlibs_CXX" >&6; }
18901 test "$ld_shlibs_CXX" = no && can_build_shared=no
18902
18903 GCC_CXX="$GXX"
18904 LD_CXX="$LD"
18905
18906 ## CAVEAT EMPTOR:
18907 ## There is no encapsulation within the following macros, do not change
18908 ## the running order or otherwise move them around unless you know exactly
18909 ## what you are doing...
18910 # Dependencies to place before and after the object being linked:
18911predep_objects_CXX=
18912postdep_objects_CXX=
18913predeps_CXX=
18914postdeps_CXX=
18915compiler_lib_search_path_CXX=
18916
18917cat > conftest.$ac_ext <<_LT_EOF
18918class Foo
18919{
18920public:
18921 Foo (void) { a = 0; }
18922private:
18923 int a;
18924};
18925_LT_EOF
18926
cristyda16f162011-02-19 23:52:17 +000018927
18928_lt_libdeps_save_CFLAGS=$CFLAGS
18929case "$CC $CFLAGS " in #(
18930*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18931*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018932*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018933esac
18934
cristy73bd4a52010-10-05 11:24:23 +000018935if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18936 (eval $ac_compile) 2>&5
18937 ac_status=$?
18938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18939 test $ac_status = 0; }; then
18940 # Parse the compiler output and extract the necessary
18941 # objects, libraries and library flags.
18942
18943 # Sentinel used to keep track of whether or not we are before
18944 # the conftest object file.
18945 pre_test_object_deps_done=no
18946
18947 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018948 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018949
18950 -L* | -R* | -l*)
18951 # Some compilers place space between "-{L,R}" and the path.
18952 # Remove the space.
18953 if test $p = "-L" ||
18954 test $p = "-R"; then
18955 prev=$p
18956 continue
cristy73bd4a52010-10-05 11:24:23 +000018957 fi
18958
cristyda16f162011-02-19 23:52:17 +000018959 # Expand the sysroot to ease extracting the directories later.
18960 if test -z "$prev"; then
18961 case $p in
18962 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18963 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18964 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18965 esac
18966 fi
18967 case $p in
18968 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18969 esac
cristy73bd4a52010-10-05 11:24:23 +000018970 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018971 case ${prev} in
18972 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018973 # Internal compiler library paths should come after those
18974 # provided the user. The postdeps already come after the
18975 # user supplied libs so there is no need to process them.
18976 if test -z "$compiler_lib_search_path_CXX"; then
18977 compiler_lib_search_path_CXX="${prev}${p}"
18978 else
18979 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18980 fi
18981 ;;
18982 # The "-l" case would never come before the object being
18983 # linked, so don't bother handling this case.
18984 esac
18985 else
18986 if test -z "$postdeps_CXX"; then
18987 postdeps_CXX="${prev}${p}"
18988 else
18989 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18990 fi
18991 fi
cristyda16f162011-02-19 23:52:17 +000018992 prev=
cristy73bd4a52010-10-05 11:24:23 +000018993 ;;
18994
cristyda16f162011-02-19 23:52:17 +000018995 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018996 *.$objext)
18997 # This assumes that the test object file only shows up
18998 # once in the compiler output.
18999 if test "$p" = "conftest.$objext"; then
19000 pre_test_object_deps_done=yes
19001 continue
19002 fi
19003
19004 if test "$pre_test_object_deps_done" = no; then
19005 if test -z "$predep_objects_CXX"; then
19006 predep_objects_CXX="$p"
19007 else
19008 predep_objects_CXX="$predep_objects_CXX $p"
19009 fi
19010 else
19011 if test -z "$postdep_objects_CXX"; then
19012 postdep_objects_CXX="$p"
19013 else
19014 postdep_objects_CXX="$postdep_objects_CXX $p"
19015 fi
19016 fi
19017 ;;
19018
19019 *) ;; # Ignore the rest.
19020
19021 esac
19022 done
19023
19024 # Clean up.
19025 rm -f a.out a.exe
19026else
19027 echo "libtool.m4: error: problem compiling CXX test program"
19028fi
19029
19030$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019031CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019032
19033# PORTME: override above test on systems where it is broken
19034case $host_os in
19035interix[3-9]*)
19036 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19037 # hack all around it, let's just trust "g++" to DTRT.
19038 predep_objects_CXX=
19039 postdep_objects_CXX=
19040 postdeps_CXX=
19041 ;;
19042
19043linux*)
19044 case `$CC -V 2>&1 | sed 5q` in
19045 *Sun\ C*)
19046 # Sun C++ 5.9
19047
19048 # The more standards-conforming stlport4 library is
19049 # incompatible with the Cstd library. Avoid specifying
19050 # it if it's in CXXFLAGS. Ignore libCrun as
19051 # -library=stlport4 depends on it.
19052 case " $CXX $CXXFLAGS " in
19053 *" -library=stlport4 "*)
19054 solaris_use_stlport4=yes
19055 ;;
19056 esac
19057
19058 if test "$solaris_use_stlport4" != yes; then
19059 postdeps_CXX='-library=Cstd -library=Crun'
19060 fi
19061 ;;
19062 esac
19063 ;;
19064
19065solaris*)
19066 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019067 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019068 # The more standards-conforming stlport4 library is
19069 # incompatible with the Cstd library. Avoid specifying
19070 # it if it's in CXXFLAGS. Ignore libCrun as
19071 # -library=stlport4 depends on it.
19072 case " $CXX $CXXFLAGS " in
19073 *" -library=stlport4 "*)
19074 solaris_use_stlport4=yes
19075 ;;
19076 esac
19077
19078 # Adding this requires a known-good setup of shared libraries for
19079 # Sun compiler versions before 5.6, else PIC objects from an old
19080 # archive will be linked into the output, leading to subtle bugs.
19081 if test "$solaris_use_stlport4" != yes; then
19082 postdeps_CXX='-library=Cstd -library=Crun'
19083 fi
19084 ;;
19085 esac
19086 ;;
19087esac
19088
19089
19090case " $postdeps_CXX " in
19091*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19092esac
19093 compiler_lib_search_dirs_CXX=
19094if test -n "${compiler_lib_search_path_CXX}"; then
19095 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19096fi
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128 lt_prog_compiler_wl_CXX=
19129lt_prog_compiler_pic_CXX=
19130lt_prog_compiler_static_CXX=
19131
cristy73bd4a52010-10-05 11:24:23 +000019132
19133 # C++ specific cases for pic, static, wl, etc.
19134 if test "$GXX" = yes; then
19135 lt_prog_compiler_wl_CXX='-Wl,'
19136 lt_prog_compiler_static_CXX='-static'
19137
19138 case $host_os in
19139 aix*)
19140 # All AIX code is PIC.
19141 if test "$host_cpu" = ia64; then
19142 # AIX 5 now supports IA64 processor
19143 lt_prog_compiler_static_CXX='-Bstatic'
19144 fi
19145 ;;
19146
19147 amigaos*)
19148 case $host_cpu in
19149 powerpc)
19150 # see comment about AmigaOS4 .so support
19151 lt_prog_compiler_pic_CXX='-fPIC'
19152 ;;
19153 m68k)
19154 # FIXME: we need at least 68020 code to build shared libraries, but
19155 # adding the `-m68020' flag to GCC prevents building anything better,
19156 # like `-m68040'.
19157 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19158 ;;
19159 esac
19160 ;;
19161
19162 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19163 # PIC is the default for these OSes.
19164 ;;
19165 mingw* | cygwin* | os2* | pw32* | cegcc*)
19166 # This hack is so that the source file can tell whether it is being
19167 # built for inclusion in a dll (and should export symbols for example).
19168 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19169 # (--disable-auto-import) libraries
19170 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19171 ;;
19172 darwin* | rhapsody*)
19173 # PIC is the default on this platform
19174 # Common symbols not allowed in MH_DYLIB files
19175 lt_prog_compiler_pic_CXX='-fno-common'
19176 ;;
19177 *djgpp*)
19178 # DJGPP does not support shared libraries at all
19179 lt_prog_compiler_pic_CXX=
19180 ;;
cristy0c60a692010-11-04 01:09:47 +000019181 haiku*)
19182 # PIC is the default for Haiku.
19183 # The "-static" flag exists, but is broken.
19184 lt_prog_compiler_static_CXX=
19185 ;;
cristy73bd4a52010-10-05 11:24:23 +000019186 interix[3-9]*)
19187 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19188 # Instead, we relocate shared libraries at runtime.
19189 ;;
19190 sysv4*MP*)
19191 if test -d /usr/nec; then
19192 lt_prog_compiler_pic_CXX=-Kconform_pic
19193 fi
19194 ;;
19195 hpux*)
19196 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19197 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19198 # sets the default TLS model and affects inlining.
19199 case $host_cpu in
19200 hppa*64*)
19201 ;;
19202 *)
19203 lt_prog_compiler_pic_CXX='-fPIC'
19204 ;;
19205 esac
19206 ;;
19207 *qnx* | *nto*)
19208 # QNX uses GNU C++, but need to define -shared option too, otherwise
19209 # it will coredump.
19210 lt_prog_compiler_pic_CXX='-fPIC -shared'
19211 ;;
19212 *)
19213 lt_prog_compiler_pic_CXX='-fPIC'
19214 ;;
19215 esac
19216 else
19217 case $host_os in
19218 aix[4-9]*)
19219 # All AIX code is PIC.
19220 if test "$host_cpu" = ia64; then
19221 # AIX 5 now supports IA64 processor
19222 lt_prog_compiler_static_CXX='-Bstatic'
19223 else
19224 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19225 fi
19226 ;;
19227 chorus*)
19228 case $cc_basename in
19229 cxch68*)
19230 # Green Hills C++ Compiler
19231 # _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"
19232 ;;
19233 esac
19234 ;;
cristyda16f162011-02-19 23:52:17 +000019235 mingw* | cygwin* | os2* | pw32* | cegcc*)
19236 # This hack is so that the source file can tell whether it is being
19237 # built for inclusion in a dll (and should export symbols for example).
19238 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19239 ;;
cristy73bd4a52010-10-05 11:24:23 +000019240 dgux*)
19241 case $cc_basename in
19242 ec++*)
19243 lt_prog_compiler_pic_CXX='-KPIC'
19244 ;;
19245 ghcx*)
19246 # Green Hills C++ Compiler
19247 lt_prog_compiler_pic_CXX='-pic'
19248 ;;
19249 *)
19250 ;;
19251 esac
19252 ;;
19253 freebsd* | dragonfly*)
19254 # FreeBSD uses GNU C++
19255 ;;
19256 hpux9* | hpux10* | hpux11*)
19257 case $cc_basename in
19258 CC*)
19259 lt_prog_compiler_wl_CXX='-Wl,'
19260 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19261 if test "$host_cpu" != ia64; then
19262 lt_prog_compiler_pic_CXX='+Z'
19263 fi
19264 ;;
19265 aCC*)
19266 lt_prog_compiler_wl_CXX='-Wl,'
19267 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19268 case $host_cpu in
19269 hppa*64*|ia64*)
19270 # +Z the default
19271 ;;
19272 *)
19273 lt_prog_compiler_pic_CXX='+Z'
19274 ;;
19275 esac
19276 ;;
19277 *)
19278 ;;
19279 esac
19280 ;;
19281 interix*)
19282 # This is c89, which is MS Visual C++ (no shared libs)
19283 # Anyone wants to do a port?
19284 ;;
19285 irix5* | irix6* | nonstopux*)
19286 case $cc_basename in
19287 CC*)
19288 lt_prog_compiler_wl_CXX='-Wl,'
19289 lt_prog_compiler_static_CXX='-non_shared'
19290 # CC pic flag -KPIC is the default.
19291 ;;
19292 *)
19293 ;;
19294 esac
19295 ;;
cristy0c60a692010-11-04 01:09:47 +000019296 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019297 case $cc_basename in
19298 KCC*)
19299 # KAI C++ Compiler
19300 lt_prog_compiler_wl_CXX='--backend -Wl,'
19301 lt_prog_compiler_pic_CXX='-fPIC'
19302 ;;
19303 ecpc* )
19304 # old Intel C++ for x86_64 which still supported -KPIC.
19305 lt_prog_compiler_wl_CXX='-Wl,'
19306 lt_prog_compiler_pic_CXX='-KPIC'
19307 lt_prog_compiler_static_CXX='-static'
19308 ;;
19309 icpc* )
19310 # Intel C++, used to be incompatible with GCC.
19311 # ICC 10 doesn't accept -KPIC any more.
19312 lt_prog_compiler_wl_CXX='-Wl,'
19313 lt_prog_compiler_pic_CXX='-fPIC'
19314 lt_prog_compiler_static_CXX='-static'
19315 ;;
19316 pgCC* | pgcpp*)
19317 # Portland Group C++ compiler
19318 lt_prog_compiler_wl_CXX='-Wl,'
19319 lt_prog_compiler_pic_CXX='-fpic'
19320 lt_prog_compiler_static_CXX='-Bstatic'
19321 ;;
19322 cxx*)
19323 # Compaq C++
19324 # Make sure the PIC flag is empty. It appears that all Alpha
19325 # Linux and Compaq Tru64 Unix objects are PIC.
19326 lt_prog_compiler_pic_CXX=
19327 lt_prog_compiler_static_CXX='-non_shared'
19328 ;;
cristy0c60a692010-11-04 01:09:47 +000019329 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19330 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019331 lt_prog_compiler_wl_CXX='-Wl,'
19332 lt_prog_compiler_pic_CXX='-qpic'
19333 lt_prog_compiler_static_CXX='-qstaticlink'
19334 ;;
19335 *)
19336 case `$CC -V 2>&1 | sed 5q` in
19337 *Sun\ C*)
19338 # Sun C++ 5.9
19339 lt_prog_compiler_pic_CXX='-KPIC'
19340 lt_prog_compiler_static_CXX='-Bstatic'
19341 lt_prog_compiler_wl_CXX='-Qoption ld '
19342 ;;
19343 esac
19344 ;;
19345 esac
19346 ;;
19347 lynxos*)
19348 ;;
19349 m88k*)
19350 ;;
19351 mvs*)
19352 case $cc_basename in
19353 cxx*)
19354 lt_prog_compiler_pic_CXX='-W c,exportall'
19355 ;;
19356 *)
19357 ;;
19358 esac
19359 ;;
19360 netbsd*)
19361 ;;
19362 *qnx* | *nto*)
19363 # QNX uses GNU C++, but need to define -shared option too, otherwise
19364 # it will coredump.
19365 lt_prog_compiler_pic_CXX='-fPIC -shared'
19366 ;;
19367 osf3* | osf4* | osf5*)
19368 case $cc_basename in
19369 KCC*)
19370 lt_prog_compiler_wl_CXX='--backend -Wl,'
19371 ;;
19372 RCC*)
19373 # Rational C++ 2.4.1
19374 lt_prog_compiler_pic_CXX='-pic'
19375 ;;
19376 cxx*)
19377 # Digital/Compaq C++
19378 lt_prog_compiler_wl_CXX='-Wl,'
19379 # Make sure the PIC flag is empty. It appears that all Alpha
19380 # Linux and Compaq Tru64 Unix objects are PIC.
19381 lt_prog_compiler_pic_CXX=
19382 lt_prog_compiler_static_CXX='-non_shared'
19383 ;;
19384 *)
19385 ;;
19386 esac
19387 ;;
19388 psos*)
19389 ;;
19390 solaris*)
19391 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019392 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019393 # Sun C++ 4.2, 5.x and Centerline C++
19394 lt_prog_compiler_pic_CXX='-KPIC'
19395 lt_prog_compiler_static_CXX='-Bstatic'
19396 lt_prog_compiler_wl_CXX='-Qoption ld '
19397 ;;
19398 gcx*)
19399 # Green Hills C++ Compiler
19400 lt_prog_compiler_pic_CXX='-PIC'
19401 ;;
19402 *)
19403 ;;
19404 esac
19405 ;;
19406 sunos4*)
19407 case $cc_basename in
19408 CC*)
19409 # Sun C++ 4.x
19410 lt_prog_compiler_pic_CXX='-pic'
19411 lt_prog_compiler_static_CXX='-Bstatic'
19412 ;;
19413 lcc*)
19414 # Lucid
19415 lt_prog_compiler_pic_CXX='-pic'
19416 ;;
19417 *)
19418 ;;
19419 esac
19420 ;;
19421 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19422 case $cc_basename in
19423 CC*)
19424 lt_prog_compiler_wl_CXX='-Wl,'
19425 lt_prog_compiler_pic_CXX='-KPIC'
19426 lt_prog_compiler_static_CXX='-Bstatic'
19427 ;;
19428 esac
19429 ;;
19430 tandem*)
19431 case $cc_basename in
19432 NCC*)
19433 # NonStop-UX NCC 3.20
19434 lt_prog_compiler_pic_CXX='-KPIC'
19435 ;;
19436 *)
19437 ;;
19438 esac
19439 ;;
19440 vxworks*)
19441 ;;
19442 *)
19443 lt_prog_compiler_can_build_shared_CXX=no
19444 ;;
19445 esac
19446 fi
19447
19448case $host_os in
19449 # For platforms which do not support PIC, -DPIC is meaningless:
19450 *djgpp*)
19451 lt_prog_compiler_pic_CXX=
19452 ;;
19453 *)
19454 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19455 ;;
19456esac
cristy73bd4a52010-10-05 11:24:23 +000019457
cristyda16f162011-02-19 23:52:17 +000019458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19459$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19460if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19461 $as_echo_n "(cached) " >&6
19462else
19463 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19464fi
19465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19466$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19467lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019468
19469#
19470# Check to make sure the PIC flag actually works.
19471#
19472if test -n "$lt_prog_compiler_pic_CXX"; then
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19474$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019475if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019476 $as_echo_n "(cached) " >&6
19477else
19478 lt_cv_prog_compiler_pic_works_CXX=no
19479 ac_outfile=conftest.$ac_objext
19480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19481 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19482 # Insert the option either (1) after the last *FLAGS variable, or
19483 # (2) before a word containing "conftest.", or (3) at the end.
19484 # Note that $ac_compile itself does not contain backslashes and begins
19485 # with a dollar sign (not a hyphen), so the echo should work correctly.
19486 # The option is referenced via a variable to avoid confusing sed.
19487 lt_compile=`echo "$ac_compile" | $SED \
19488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19490 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019491 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019492 (eval "$lt_compile" 2>conftest.err)
19493 ac_status=$?
19494 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019496 if (exit $ac_status) && test -s "$ac_outfile"; then
19497 # The compiler can only warn and ignore the option if not recognized
19498 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19502 lt_cv_prog_compiler_pic_works_CXX=yes
19503 fi
19504 fi
19505 $RM conftest*
19506
19507fi
19508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19509$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19510
19511if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19512 case $lt_prog_compiler_pic_CXX in
19513 "" | " "*) ;;
19514 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19515 esac
19516else
19517 lt_prog_compiler_pic_CXX=
19518 lt_prog_compiler_can_build_shared_CXX=no
19519fi
19520
19521fi
19522
19523
19524
cristyda16f162011-02-19 23:52:17 +000019525
19526
cristy73bd4a52010-10-05 11:24:23 +000019527#
19528# Check to make sure the static flag actually works.
19529#
19530wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19532$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019533if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019534 $as_echo_n "(cached) " >&6
19535else
19536 lt_cv_prog_compiler_static_works_CXX=no
19537 save_LDFLAGS="$LDFLAGS"
19538 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19539 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19540 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19541 # The linker can only warn and ignore the option if not recognized
19542 # So say no if there are warnings
19543 if test -s conftest.err; then
19544 # Append any errors to the config.log.
19545 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019546 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19548 if diff conftest.exp conftest.er2 >/dev/null; then
19549 lt_cv_prog_compiler_static_works_CXX=yes
19550 fi
19551 else
19552 lt_cv_prog_compiler_static_works_CXX=yes
19553 fi
19554 fi
19555 $RM -r conftest*
19556 LDFLAGS="$save_LDFLAGS"
19557
19558fi
19559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19560$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19561
19562if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19563 :
19564else
19565 lt_prog_compiler_static_CXX=
19566fi
19567
19568
19569
19570
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19572$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019573if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019574 $as_echo_n "(cached) " >&6
19575else
19576 lt_cv_prog_compiler_c_o_CXX=no
19577 $RM -r conftest 2>/dev/null
19578 mkdir conftest
19579 cd conftest
19580 mkdir out
19581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19582
19583 lt_compiler_flag="-o out/conftest2.$ac_objext"
19584 # Insert the option either (1) after the last *FLAGS variable, or
19585 # (2) before a word containing "conftest.", or (3) at the end.
19586 # Note that $ac_compile itself does not contain backslashes and begins
19587 # with a dollar sign (not a hyphen), so the echo should work correctly.
19588 lt_compile=`echo "$ac_compile" | $SED \
19589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19591 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019592 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019593 (eval "$lt_compile" 2>out/conftest.err)
19594 ac_status=$?
19595 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019597 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19598 then
19599 # The compiler can only warn and ignore the option if not recognized
19600 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019601 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019602 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19603 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19604 lt_cv_prog_compiler_c_o_CXX=yes
19605 fi
19606 fi
19607 chmod u+w . 2>&5
19608 $RM conftest*
19609 # SGI C++ compiler will create directory out/ii_files/ for
19610 # template instantiation
19611 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19612 $RM out/* && rmdir out
19613 cd ..
19614 $RM -r conftest
19615 $RM conftest*
19616
19617fi
19618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19619$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19620
19621
19622
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19624$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019625if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019626 $as_echo_n "(cached) " >&6
19627else
19628 lt_cv_prog_compiler_c_o_CXX=no
19629 $RM -r conftest 2>/dev/null
19630 mkdir conftest
19631 cd conftest
19632 mkdir out
19633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19634
19635 lt_compiler_flag="-o out/conftest2.$ac_objext"
19636 # Insert the option either (1) after the last *FLAGS variable, or
19637 # (2) before a word containing "conftest.", or (3) at the end.
19638 # Note that $ac_compile itself does not contain backslashes and begins
19639 # with a dollar sign (not a hyphen), so the echo should work correctly.
19640 lt_compile=`echo "$ac_compile" | $SED \
19641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19643 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019644 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019645 (eval "$lt_compile" 2>out/conftest.err)
19646 ac_status=$?
19647 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019649 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19650 then
19651 # The compiler can only warn and ignore the option if not recognized
19652 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019653 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019654 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19655 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19656 lt_cv_prog_compiler_c_o_CXX=yes
19657 fi
19658 fi
19659 chmod u+w . 2>&5
19660 $RM conftest*
19661 # SGI C++ compiler will create directory out/ii_files/ for
19662 # template instantiation
19663 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19664 $RM out/* && rmdir out
19665 cd ..
19666 $RM -r conftest
19667 $RM conftest*
19668
19669fi
19670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19671$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19672
19673
19674
19675
19676hard_links="nottested"
19677if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19678 # do not overwrite the value of need_locks provided by the user
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19680$as_echo_n "checking if we can lock with hard links... " >&6; }
19681 hard_links=yes
19682 $RM conftest*
19683 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19684 touch conftest.a
19685 ln conftest.a conftest.b 2>&5 || hard_links=no
19686 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19688$as_echo "$hard_links" >&6; }
19689 if test "$hard_links" = no; then
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19691$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19692 need_locks=warn
19693 fi
19694else
19695 need_locks=no
19696fi
19697
19698
19699
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19701$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19702
19703 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019704 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019705 case $host_os in
19706 aix[4-9]*)
19707 # If we're using GNU nm, then we don't want the "-C" option.
19708 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019709 # Also, AIX nm treats weak defined symbols like other global defined
19710 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019711 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019712 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 +000019713 else
19714 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'
19715 fi
19716 ;;
19717 pw32*)
19718 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019719 ;;
cristy73bd4a52010-10-05 11:24:23 +000019720 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019721 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019722 cl*)
19723 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19724 ;;
cristyda16f162011-02-19 23:52:17 +000019725 *)
19726 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'
19727 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19728 ;;
19729 esac
19730 ;;
cristy73bd4a52010-10-05 11:24:23 +000019731 *)
19732 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019733 ;;
cristy73bd4a52010-10-05 11:24:23 +000019734 esac
cristy73bd4a52010-10-05 11:24:23 +000019735
19736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19737$as_echo "$ld_shlibs_CXX" >&6; }
19738test "$ld_shlibs_CXX" = no && can_build_shared=no
19739
19740with_gnu_ld_CXX=$with_gnu_ld
19741
19742
19743
19744
19745
19746
19747#
19748# Do we need to explicitly link libc?
19749#
19750case "x$archive_cmds_need_lc_CXX" in
19751x|xyes)
19752 # Assume -lc should be added
19753 archive_cmds_need_lc_CXX=yes
19754
19755 if test "$enable_shared" = yes && test "$GCC" = yes; then
19756 case $archive_cmds_CXX in
19757 *'~'*)
19758 # FIXME: we may have to deal with multi-command sequences.
19759 ;;
19760 '$CC '*)
19761 # Test whether the compiler implicitly links with -lc since on some
19762 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19763 # to ld, don't add -lc before -lgcc.
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19765$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019766if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019767 $as_echo_n "(cached) " >&6
19768else
19769 $RM conftest*
19770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019771
cristy0c60a692010-11-04 01:09:47 +000019772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019773 (eval $ac_compile) 2>&5
19774 ac_status=$?
19775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19776 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019777 soname=conftest
19778 lib=conftest
19779 libobjs=conftest.$ac_objext
19780 deplibs=
19781 wl=$lt_prog_compiler_wl_CXX
19782 pic_flag=$lt_prog_compiler_pic_CXX
19783 compiler_flags=-v
19784 linker_flags=-v
19785 verstring=
19786 output_objdir=.
19787 libname=conftest
19788 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19789 allow_undefined_flag_CXX=
19790 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 +000019791 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19792 ac_status=$?
19793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19794 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019795 then
19796 lt_cv_archive_cmds_need_lc_CXX=no
19797 else
19798 lt_cv_archive_cmds_need_lc_CXX=yes
19799 fi
19800 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19801 else
19802 cat conftest.err 1>&5
19803 fi
19804 $RM conftest*
19805
19806fi
19807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19808$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19809 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019810 ;;
19811 esac
19812 fi
19813 ;;
19814esac
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
cristy73bd4a52010-10-05 11:24:23 +000019877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19878$as_echo_n "checking dynamic linker characteristics... " >&6; }
19879
19880library_names_spec=
19881libname_spec='lib$name'
19882soname_spec=
19883shrext_cmds=".so"
19884postinstall_cmds=
19885postuninstall_cmds=
19886finish_cmds=
19887finish_eval=
19888shlibpath_var=
19889shlibpath_overrides_runpath=unknown
19890version_type=none
19891dynamic_linker="$host_os ld.so"
19892sys_lib_dlsearch_path_spec="/lib /usr/lib"
19893need_lib_prefix=unknown
19894hardcode_into_libs=no
19895
19896# when you set need_version to no, make sure it does not cause -set_version
19897# flags to be left without arguments
19898need_version=unknown
19899
19900case $host_os in
19901aix3*)
cristy99bd5232011-12-07 14:38:20 +000019902 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019903 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19904 shlibpath_var=LIBPATH
19905
19906 # AIX 3 has no versioning support, so we append a major version to the name.
19907 soname_spec='${libname}${release}${shared_ext}$major'
19908 ;;
19909
19910aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019911 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019912 need_lib_prefix=no
19913 need_version=no
19914 hardcode_into_libs=yes
19915 if test "$host_cpu" = ia64; then
19916 # AIX 5 supports IA64
19917 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19918 shlibpath_var=LD_LIBRARY_PATH
19919 else
19920 # With GCC up to 2.95.x, collect2 would create an import file
19921 # for dependence libraries. The import file would start with
19922 # the line `#! .'. This would cause the generated library to
19923 # depend on `.', always an invalid library. This was fixed in
19924 # development snapshots of GCC prior to 3.0.
19925 case $host_os in
19926 aix4 | aix4.[01] | aix4.[01].*)
19927 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19928 echo ' yes '
19929 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19930 :
19931 else
19932 can_build_shared=no
19933 fi
19934 ;;
19935 esac
19936 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19937 # soname into executable. Probably we can add versioning support to
19938 # collect2, so additional links can be useful in future.
19939 if test "$aix_use_runtimelinking" = yes; then
19940 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19941 # instead of lib<name>.a to let people know that these are not
19942 # typical AIX shared libraries.
19943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19944 else
19945 # We preserve .a as extension for shared libraries through AIX4.2
19946 # and later when we are not doing run time linking.
19947 library_names_spec='${libname}${release}.a $libname.a'
19948 soname_spec='${libname}${release}${shared_ext}$major'
19949 fi
19950 shlibpath_var=LIBPATH
19951 fi
19952 ;;
19953
19954amigaos*)
19955 case $host_cpu in
19956 powerpc)
19957 # Since July 2007 AmigaOS4 officially supports .so libraries.
19958 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19960 ;;
19961 m68k)
19962 library_names_spec='$libname.ixlibrary $libname.a'
19963 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019964 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 +000019965 ;;
19966 esac
19967 ;;
19968
19969beos*)
19970 library_names_spec='${libname}${shared_ext}'
19971 dynamic_linker="$host_os ld.so"
19972 shlibpath_var=LIBRARY_PATH
19973 ;;
19974
19975bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019976 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019977 need_version=no
19978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19979 soname_spec='${libname}${release}${shared_ext}$major'
19980 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19981 shlibpath_var=LD_LIBRARY_PATH
19982 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19983 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19984 # the default ld.so.conf also contains /usr/contrib/lib and
19985 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19986 # libtool to hard-code these into programs
19987 ;;
19988
19989cygwin* | mingw* | pw32* | cegcc*)
19990 version_type=windows
19991 shrext_cmds=".dll"
19992 need_version=no
19993 need_lib_prefix=no
19994
cristyda16f162011-02-19 23:52:17 +000019995 case $GCC,$cc_basename in
19996 yes,*)
19997 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019998 library_names_spec='$libname.dll.a'
19999 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20000 postinstall_cmds='base_file=`basename \${file}`~
20001 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20002 dldir=$destdir/`dirname \$dlpath`~
20003 test -d \$dldir || mkdir -p \$dldir~
20004 $install_prog $dir/$dlname \$dldir/$dlname~
20005 chmod a+x \$dldir/$dlname~
20006 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20007 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20008 fi'
20009 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20010 dlpath=$dir/\$dldll~
20011 $RM \$dlpath'
20012 shlibpath_overrides_runpath=yes
20013
20014 case $host_os in
20015 cygwin*)
20016 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20017 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020018
cristy73bd4a52010-10-05 11:24:23 +000020019 ;;
20020 mingw* | cegcc*)
20021 # MinGW DLLs use traditional 'lib' prefix
20022 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020023 ;;
20024 pw32*)
20025 # pw32 DLLs use 'pw' prefix rather than 'lib'
20026 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20027 ;;
20028 esac
cristyda16f162011-02-19 23:52:17 +000020029 dynamic_linker='Win32 ld.exe'
20030 ;;
20031
20032 *,cl*)
20033 # Native MSVC
20034 libname_spec='$name'
20035 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20036 library_names_spec='${libname}.dll.lib'
20037
20038 case $build_os in
20039 mingw*)
20040 sys_lib_search_path_spec=
20041 lt_save_ifs=$IFS
20042 IFS=';'
20043 for lt_path in $LIB
20044 do
20045 IFS=$lt_save_ifs
20046 # Let DOS variable expansion print the short 8.3 style file name.
20047 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20048 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20049 done
20050 IFS=$lt_save_ifs
20051 # Convert to MSYS style.
20052 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20053 ;;
20054 cygwin*)
20055 # Convert to unix form, then to dos form, then back to unix form
20056 # but this time dos style (no spaces!) so that the unix form looks
20057 # like /cygdrive/c/PROGRA~1:/cygdr...
20058 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20059 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20060 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20061 ;;
20062 *)
20063 sys_lib_search_path_spec="$LIB"
20064 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20065 # It is most probably a Windows format PATH.
20066 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20067 else
20068 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20069 fi
20070 # FIXME: find the short name or the path components, as spaces are
20071 # common. (e.g. "Program Files" -> "PROGRA~1")
20072 ;;
20073 esac
20074
20075 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20076 postinstall_cmds='base_file=`basename \${file}`~
20077 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20078 dldir=$destdir/`dirname \$dlpath`~
20079 test -d \$dldir || mkdir -p \$dldir~
20080 $install_prog $dir/$dlname \$dldir/$dlname'
20081 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20082 dlpath=$dir/\$dldll~
20083 $RM \$dlpath'
20084 shlibpath_overrides_runpath=yes
20085 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020086 ;;
20087
20088 *)
cristyda16f162011-02-19 23:52:17 +000020089 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020090 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020091 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020092 ;;
20093 esac
cristy73bd4a52010-10-05 11:24:23 +000020094 # FIXME: first we should search . and the directory the executable is in
20095 shlibpath_var=PATH
20096 ;;
20097
20098darwin* | rhapsody*)
20099 dynamic_linker="$host_os dyld"
20100 version_type=darwin
20101 need_lib_prefix=no
20102 need_version=no
20103 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20104 soname_spec='${libname}${release}${major}$shared_ext'
20105 shlibpath_overrides_runpath=yes
20106 shlibpath_var=DYLD_LIBRARY_PATH
20107 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20108
20109 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20110 ;;
20111
20112dgux*)
cristy99bd5232011-12-07 14:38:20 +000020113 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020114 need_lib_prefix=no
20115 need_version=no
20116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20117 soname_spec='${libname}${release}${shared_ext}$major'
20118 shlibpath_var=LD_LIBRARY_PATH
20119 ;;
20120
cristy73bd4a52010-10-05 11:24:23 +000020121freebsd* | dragonfly*)
20122 # DragonFly does not have aout. When/if they implement a new
20123 # versioning mechanism, adjust this.
20124 if test -x /usr/bin/objformat; then
20125 objformat=`/usr/bin/objformat`
20126 else
20127 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020128 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020129 *) objformat=elf ;;
20130 esac
20131 fi
20132 version_type=freebsd-$objformat
20133 case $version_type in
20134 freebsd-elf*)
20135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20136 need_version=no
20137 need_lib_prefix=no
20138 ;;
20139 freebsd-*)
20140 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20141 need_version=yes
20142 ;;
20143 esac
20144 shlibpath_var=LD_LIBRARY_PATH
20145 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020146 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020147 shlibpath_overrides_runpath=yes
20148 ;;
20149 freebsd3.[01]* | freebsdelf3.[01]*)
20150 shlibpath_overrides_runpath=yes
20151 hardcode_into_libs=yes
20152 ;;
20153 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20154 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20155 shlibpath_overrides_runpath=no
20156 hardcode_into_libs=yes
20157 ;;
20158 *) # from 4.6 on, and DragonFly
20159 shlibpath_overrides_runpath=yes
20160 hardcode_into_libs=yes
20161 ;;
20162 esac
20163 ;;
20164
20165gnu*)
cristy99bd5232011-12-07 14:38:20 +000020166 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020167 need_lib_prefix=no
20168 need_version=no
20169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20170 soname_spec='${libname}${release}${shared_ext}$major'
20171 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020172 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020173 hardcode_into_libs=yes
20174 ;;
20175
cristy0c60a692010-11-04 01:09:47 +000020176haiku*)
cristy99bd5232011-12-07 14:38:20 +000020177 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020178 need_lib_prefix=no
20179 need_version=no
20180 dynamic_linker="$host_os runtime_loader"
20181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20182 soname_spec='${libname}${release}${shared_ext}$major'
20183 shlibpath_var=LIBRARY_PATH
20184 shlibpath_overrides_runpath=yes
20185 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20186 hardcode_into_libs=yes
20187 ;;
20188
cristy73bd4a52010-10-05 11:24:23 +000020189hpux9* | hpux10* | hpux11*)
20190 # Give a soname corresponding to the major version so that dld.sl refuses to
20191 # link against other versions.
20192 version_type=sunos
20193 need_lib_prefix=no
20194 need_version=no
20195 case $host_cpu in
20196 ia64*)
20197 shrext_cmds='.so'
20198 hardcode_into_libs=yes
20199 dynamic_linker="$host_os dld.so"
20200 shlibpath_var=LD_LIBRARY_PATH
20201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20203 soname_spec='${libname}${release}${shared_ext}$major'
20204 if test "X$HPUX_IA64_MODE" = X32; then
20205 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20206 else
20207 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20208 fi
20209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20210 ;;
20211 hppa*64*)
20212 shrext_cmds='.sl'
20213 hardcode_into_libs=yes
20214 dynamic_linker="$host_os dld.sl"
20215 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20218 soname_spec='${libname}${release}${shared_ext}$major'
20219 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20221 ;;
20222 *)
20223 shrext_cmds='.sl'
20224 dynamic_linker="$host_os dld.sl"
20225 shlibpath_var=SHLIB_PATH
20226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20228 soname_spec='${libname}${release}${shared_ext}$major'
20229 ;;
20230 esac
cristy0c60a692010-11-04 01:09:47 +000020231 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020232 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020233 # or fails outright, so override atomically:
20234 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020235 ;;
20236
20237interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020238 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020239 need_lib_prefix=no
20240 need_version=no
20241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20242 soname_spec='${libname}${release}${shared_ext}$major'
20243 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20244 shlibpath_var=LD_LIBRARY_PATH
20245 shlibpath_overrides_runpath=no
20246 hardcode_into_libs=yes
20247 ;;
20248
20249irix5* | irix6* | nonstopux*)
20250 case $host_os in
20251 nonstopux*) version_type=nonstopux ;;
20252 *)
20253 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020254 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020255 else
20256 version_type=irix
20257 fi ;;
20258 esac
20259 need_lib_prefix=no
20260 need_version=no
20261 soname_spec='${libname}${release}${shared_ext}$major'
20262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20263 case $host_os in
20264 irix5* | nonstopux*)
20265 libsuff= shlibsuff=
20266 ;;
20267 *)
20268 case $LD in # libtool.m4 will add one of these switches to LD
20269 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20270 libsuff= shlibsuff= libmagic=32-bit;;
20271 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20272 libsuff=32 shlibsuff=N32 libmagic=N32;;
20273 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20274 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20275 *) libsuff= shlibsuff= libmagic=never-match;;
20276 esac
20277 ;;
20278 esac
20279 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20280 shlibpath_overrides_runpath=no
20281 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20282 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20283 hardcode_into_libs=yes
20284 ;;
20285
20286# No shared lib support for Linux oldld, aout, or coff.
20287linux*oldld* | linux*aout* | linux*coff*)
20288 dynamic_linker=no
20289 ;;
20290
cristy99bd5232011-12-07 14:38:20 +000020291# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020292linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020293 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020294 need_lib_prefix=no
20295 need_version=no
20296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20297 soname_spec='${libname}${release}${shared_ext}$major'
20298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20299 shlibpath_var=LD_LIBRARY_PATH
20300 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020301
cristy73bd4a52010-10-05 11:24:23 +000020302 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020303 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020304 $as_echo_n "(cached) " >&6
20305else
20306 lt_cv_shlibpath_overrides_runpath=no
20307 save_LDFLAGS=$LDFLAGS
20308 save_libdir=$libdir
20309 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20310 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020312/* end confdefs.h. */
20313
20314int
20315main ()
20316{
20317
20318 ;
20319 return 0;
20320}
20321_ACEOF
20322if ac_fn_cxx_try_link "$LINENO"; then :
20323 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020324 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020325fi
20326fi
20327rm -f core conftest.err conftest.$ac_objext \
20328 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020329 LDFLAGS=$save_LDFLAGS
20330 libdir=$save_libdir
20331
20332fi
20333
20334 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020335
20336 # This implies no fast_install, which is unacceptable.
20337 # Some rework will be needed to allow for fast_install
20338 # before this can be enabled.
20339 hardcode_into_libs=yes
20340
20341 # Add ABI-specific directories to the system library path.
20342 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20343
20344 # Append ld.so.conf contents to the search path
20345 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020346 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 +000020347 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020348
cristy73bd4a52010-10-05 11:24:23 +000020349 fi
20350
20351 # We used to test for /lib/ld.so.1 and disable shared libraries on
20352 # powerpc, because MkLinux only supported shared libraries with the
20353 # GNU dynamic linker. Since this was broken with cross compilers,
20354 # most powerpc-linux boxes support dynamic linking these days and
20355 # people can always --disable-shared, the test was removed, and we
20356 # assume the GNU/Linux dynamic linker is in use.
20357 dynamic_linker='GNU/Linux ld.so'
20358 ;;
20359
20360netbsd*)
20361 version_type=sunos
20362 need_lib_prefix=no
20363 need_version=no
20364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20367 dynamic_linker='NetBSD (a.out) ld.so'
20368 else
20369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20370 soname_spec='${libname}${release}${shared_ext}$major'
20371 dynamic_linker='NetBSD ld.elf_so'
20372 fi
20373 shlibpath_var=LD_LIBRARY_PATH
20374 shlibpath_overrides_runpath=yes
20375 hardcode_into_libs=yes
20376 ;;
20377
20378newsos6)
cristy99bd5232011-12-07 14:38:20 +000020379 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20381 shlibpath_var=LD_LIBRARY_PATH
20382 shlibpath_overrides_runpath=yes
20383 ;;
20384
20385*nto* | *qnx*)
20386 version_type=qnx
20387 need_lib_prefix=no
20388 need_version=no
20389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20390 soname_spec='${libname}${release}${shared_ext}$major'
20391 shlibpath_var=LD_LIBRARY_PATH
20392 shlibpath_overrides_runpath=no
20393 hardcode_into_libs=yes
20394 dynamic_linker='ldqnx.so'
20395 ;;
20396
20397openbsd*)
20398 version_type=sunos
20399 sys_lib_dlsearch_path_spec="/usr/lib"
20400 need_lib_prefix=no
20401 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20402 case $host_os in
20403 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20404 *) need_version=no ;;
20405 esac
20406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20408 shlibpath_var=LD_LIBRARY_PATH
20409 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20410 case $host_os in
20411 openbsd2.[89] | openbsd2.[89].*)
20412 shlibpath_overrides_runpath=no
20413 ;;
20414 *)
20415 shlibpath_overrides_runpath=yes
20416 ;;
20417 esac
20418 else
20419 shlibpath_overrides_runpath=yes
20420 fi
20421 ;;
20422
20423os2*)
20424 libname_spec='$name'
20425 shrext_cmds=".dll"
20426 need_lib_prefix=no
20427 library_names_spec='$libname${shared_ext} $libname.a'
20428 dynamic_linker='OS/2 ld.exe'
20429 shlibpath_var=LIBPATH
20430 ;;
20431
20432osf3* | osf4* | osf5*)
20433 version_type=osf
20434 need_lib_prefix=no
20435 need_version=no
20436 soname_spec='${libname}${release}${shared_ext}$major'
20437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20438 shlibpath_var=LD_LIBRARY_PATH
20439 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20440 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20441 ;;
20442
20443rdos*)
20444 dynamic_linker=no
20445 ;;
20446
20447solaris*)
cristy99bd5232011-12-07 14:38:20 +000020448 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020449 need_lib_prefix=no
20450 need_version=no
20451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20452 soname_spec='${libname}${release}${shared_ext}$major'
20453 shlibpath_var=LD_LIBRARY_PATH
20454 shlibpath_overrides_runpath=yes
20455 hardcode_into_libs=yes
20456 # ldd complains unless libraries are executable
20457 postinstall_cmds='chmod +x $lib'
20458 ;;
20459
20460sunos4*)
20461 version_type=sunos
20462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20463 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20464 shlibpath_var=LD_LIBRARY_PATH
20465 shlibpath_overrides_runpath=yes
20466 if test "$with_gnu_ld" = yes; then
20467 need_lib_prefix=no
20468 fi
20469 need_version=yes
20470 ;;
20471
20472sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020473 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20475 soname_spec='${libname}${release}${shared_ext}$major'
20476 shlibpath_var=LD_LIBRARY_PATH
20477 case $host_vendor in
20478 sni)
20479 shlibpath_overrides_runpath=no
20480 need_lib_prefix=no
20481 runpath_var=LD_RUN_PATH
20482 ;;
20483 siemens)
20484 need_lib_prefix=no
20485 ;;
20486 motorola)
20487 need_lib_prefix=no
20488 need_version=no
20489 shlibpath_overrides_runpath=no
20490 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20491 ;;
20492 esac
20493 ;;
20494
20495sysv4*MP*)
20496 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020497 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020498 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20499 soname_spec='$libname${shared_ext}.$major'
20500 shlibpath_var=LD_LIBRARY_PATH
20501 fi
20502 ;;
20503
20504sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20505 version_type=freebsd-elf
20506 need_lib_prefix=no
20507 need_version=no
20508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20509 soname_spec='${libname}${release}${shared_ext}$major'
20510 shlibpath_var=LD_LIBRARY_PATH
20511 shlibpath_overrides_runpath=yes
20512 hardcode_into_libs=yes
20513 if test "$with_gnu_ld" = yes; then
20514 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20515 else
20516 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20517 case $host_os in
20518 sco3.2v5*)
20519 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20520 ;;
20521 esac
20522 fi
20523 sys_lib_dlsearch_path_spec='/usr/lib'
20524 ;;
20525
20526tpf*)
20527 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020528 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020529 need_lib_prefix=no
20530 need_version=no
20531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20532 shlibpath_var=LD_LIBRARY_PATH
20533 shlibpath_overrides_runpath=no
20534 hardcode_into_libs=yes
20535 ;;
20536
20537uts4*)
cristy99bd5232011-12-07 14:38:20 +000020538 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20540 soname_spec='${libname}${release}${shared_ext}$major'
20541 shlibpath_var=LD_LIBRARY_PATH
20542 ;;
20543
20544*)
20545 dynamic_linker=no
20546 ;;
20547esac
20548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20549$as_echo "$dynamic_linker" >&6; }
20550test "$dynamic_linker" = no && can_build_shared=no
20551
20552variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20553if test "$GCC" = yes; then
20554 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20555fi
20556
20557if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20558 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20559fi
20560if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20561 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20562fi
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
cristy0c60a692010-11-04 01:09:47 +000020599
20600
cristy73bd4a52010-10-05 11:24:23 +000020601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20602$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20603hardcode_action_CXX=
20604if test -n "$hardcode_libdir_flag_spec_CXX" ||
20605 test -n "$runpath_var_CXX" ||
20606 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20607
20608 # We can hardcode non-existent directories.
20609 if test "$hardcode_direct_CXX" != no &&
20610 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20611 # have to relink, otherwise we might link with an installed library
20612 # when we should be linking with a yet-to-be-installed one
20613 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20614 test "$hardcode_minus_L_CXX" != no; then
20615 # Linking always hardcodes the temporary library directory.
20616 hardcode_action_CXX=relink
20617 else
20618 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20619 hardcode_action_CXX=immediate
20620 fi
20621else
20622 # We cannot hardcode anything, or else we can only hardcode existing
20623 # directories.
20624 hardcode_action_CXX=unsupported
20625fi
20626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20627$as_echo "$hardcode_action_CXX" >&6; }
20628
20629if test "$hardcode_action_CXX" = relink ||
20630 test "$inherit_rpath_CXX" = yes; then
20631 # Fast installation is not supported
20632 enable_fast_install=no
20633elif test "$shlibpath_overrides_runpath" = yes ||
20634 test "$enable_shared" = no; then
20635 # Fast installation is not necessary
20636 enable_fast_install=needless
20637fi
20638
20639
20640
20641
20642
20643
20644
20645 fi # test -n "$compiler"
20646
20647 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020648 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020649 LDCXX=$LD
20650 LD=$lt_save_LD
20651 GCC=$lt_save_GCC
20652 with_gnu_ld=$lt_save_with_gnu_ld
20653 lt_cv_path_LDCXX=$lt_cv_path_LD
20654 lt_cv_path_LD=$lt_save_path_LD
20655 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20656 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20657fi # test "$_lt_caught_CXX_error" != yes
20658
20659ac_ext=c
20660ac_cpp='$CPP $CPPFLAGS'
20661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20663ac_compiler_gnu=$ac_cv_c_compiler_gnu
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
cristy99bd5232011-12-07 14:38:20 +000020677
20678
cristy73bd4a52010-10-05 11:24:23 +000020679 ac_config_commands="$ac_config_commands libtool"
20680
20681
20682
20683
20684# Only expand once:
20685
20686
20687
cristy3ed852e2009-09-05 21:47:34 +000020688
20689
cristy3ed852e2009-09-05 21:47:34 +000020690# Check to see if building shared libraries
20691libtool_build_shared_libs='no'
20692if test "$enable_shared" = 'yes'; then
20693 libtool_build_shared_libs='yes'
20694fi
20695
20696# Check to see if building static libraries
20697libtool_build_static_libs='no'
20698if test "$enable_static" = 'yes'; then
20699 libtool_build_static_libs='yes'
20700fi
20701
cristy73bd4a52010-10-05 11:24:23 +000020702 if test "${libtool_build_shared_libs}" = 'yes'; then
20703 WITH_SHARED_LIBS_TRUE=
20704 WITH_SHARED_LIBS_FALSE='#'
20705else
20706 WITH_SHARED_LIBS_TRUE='#'
20707 WITH_SHARED_LIBS_FALSE=
20708fi
20709
cristy3ed852e2009-09-05 21:47:34 +000020710#
20711# Enable support for building loadable modules
20712#
cristyaf4cbf32012-10-16 23:47:41 +000020713build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020714
20715# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020716if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020717 withval=$with_modules; with_modules=$withval
20718else
cristy5a1cefd2010-01-06 20:42:35 +000020719 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020720fi
20721
20722
20723# Only allow building loadable modules if we are building shared libraries
20724if test "$with_modules" != 'no' ; then
20725 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020726 { $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 +000020727$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020728 build_modules='no'
20729 else
20730 build_modules='yes'
20731 fi
cristy3ed852e2009-09-05 21:47:34 +000020732fi
cristyc6722092012-10-14 00:19:31 +000020733if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020734
cristy8b350f62009-11-15 23:12:43 +000020735$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020736
cristyfa161182012-12-19 15:45:28 +000020737 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020738fi
cristyc6722092012-10-14 00:19:31 +000020739 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020740 WITH_MODULES_TRUE=
20741 WITH_MODULES_FALSE='#'
20742else
20743 WITH_MODULES_TRUE='#'
20744 WITH_MODULES_FALSE=
20745fi
20746
cristy3ed852e2009-09-05 21:47:34 +000020747
cristy3ed852e2009-09-05 21:47:34 +000020748# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020749# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020750# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020751if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020752 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20753else
20754 enable_delegate_build='no'
20755fi
20756
20757
20758# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020759if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020760 enableval=$enable_deprecated; enable_deprecated=$enableval
20761else
20762 enable_deprecated='no'
20763fi
20764
20765
20766if test "$enable_deprecated" = 'yes'; then
20767
cristy8b350f62009-11-15 23:12:43 +000020768$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020769
20770else
20771 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20772fi
20773
20774# Build a version of ImageMagick which operates uninstalled.
20775# Used to build distributions located via MAGICK_HOME / executable path
20776# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020777if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020778 enableval=$enable_installed; enable_installed=$enableval
20779else
20780 enable_installed='yes'
20781fi
20782
20783
20784if test "$enable_installed" = 'yes'; then
20785
cristy8b350f62009-11-15 23:12:43 +000020786$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020787
20788else
20789 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20790fi
20791
20792# Permit enciphering and deciphering image pixels.
20793# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020794if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020795 enableval=$enable_cipher; enable_cipher=$enableval
20796else
20797 enable_cipher='yes'
20798fi
20799
20800
20801if test "$enable_cipher" = 'yes'; then
20802
cristy8b350f62009-11-15 23:12:43 +000020803$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020804
20805fi
20806
cristy6e3607c2011-09-13 13:59:17 +000020807# Build a zero-configuration version of ImageMagick.
20808# Check whether --enable-zero-configuration was given.
20809if test "${enable_zero_configuration+set}" = set; then :
20810 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020811else
cristy6e3607c2011-09-13 13:59:17 +000020812 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020813fi
20814
20815
cristy6e3607c2011-09-13 13:59:17 +000020816if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020817
cristy6e3607c2011-09-13 13:59:17 +000020818$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020819
cristy81af5702011-09-13 14:20:58 +000020820 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020821fi
20822
20823# Build a high dynamic range version of ImageMagick.
20824# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020825if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020826 enableval=$enable_hdri; enable_hdri=$enableval
20827else
cristy191c0b72012-08-12 16:29:52 +000020828 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000020829fi
20830
20831
20832MAGICK_HDRI=""
20833if test "$enable_hdri" = 'yes'; then
20834 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000020835 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000020836 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000020837else
20838 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000020839fi
20840
cristye52f12f2012-12-31 15:32:36 +000020841cat >>confdefs.h <<_ACEOF
20842#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
20843_ACEOF
20844
20845MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
20846CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000020847CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000020848
cristy3ed852e2009-09-05 21:47:34 +000020849# Build a version of ImageMagick with assert statements.
20850# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020851if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020852 enableval=$enable_assert; enable_assert=$enableval
20853else
20854 enable_assert='yes'
20855fi
20856
20857
20858if test "$enable_assert" = 'no'; then
20859
cristy8b350f62009-11-15 23:12:43 +000020860$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020861
20862fi
20863
cristya448bd22011-10-14 12:38:13 +000020864# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000020865
20866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20867$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20868 # Check whether --enable-maintainer-mode was given.
20869if test "${enable_maintainer_mode+set}" = set; then :
20870 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20871else
20872 USE_MAINTAINER_MODE=no
20873fi
20874
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20876$as_echo "$USE_MAINTAINER_MODE" >&6; }
20877 if test $USE_MAINTAINER_MODE = yes; then
20878 MAINTAINER_MODE_TRUE=
20879 MAINTAINER_MODE_FALSE='#'
20880else
20881 MAINTAINER_MODE_TRUE='#'
20882 MAINTAINER_MODE_FALSE=
20883fi
20884
20885 MAINT=$MAINTAINER_MODE_TRUE
20886
20887
cristy3ed852e2009-09-05 21:47:34 +000020888
cristy944e51f2013-04-16 18:45:02 +000020889# Enable hugepages support
20890# Check whether --enable-hugepages was given.
20891if test "${enable_hugepages+set}" = set; then :
20892 enableval=$enable_hugepages; enable_hugepages=$enableval
20893else
20894 enable_hugepages='no'
20895fi
20896
20897
cristy3ed852e2009-09-05 21:47:34 +000020898# Enable ccmalloc memory debugging support
20899# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020900if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020901 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20902else
20903 enable_ccmalloc='no'
20904fi
20905
20906
20907# Enable Electric Fence memory debugging support
20908# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020909if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020910 enableval=$enable_efence; enable_efence=$enableval
20911else
20912 enable_efence='no'
20913fi
20914
20915
20916# Enable prof-based profiling support
20917# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020918if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020919 enableval=$enable_prof; enable_prof=$enableval
20920else
20921 enable_prof='no'
20922fi
20923
20924
20925# Enable gprof-based profiling support
20926# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020927if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020928 enableval=$enable_gprof; enable_gprof=$enableval
20929else
20930 enable_gprof='no'
20931fi
20932
20933
20934# Enable gcov-based profiling support
20935# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020936if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020937 enableval=$enable_gcov; enable_gcov=$enableval
20938else
20939 enable_gcov='no'
20940fi
20941
20942
20943enable_profiling='no'
20944if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20945 enable_profiling='yes'
20946 if test "$libtool_build_shared_libs" = 'yes'; then
20947 echo "Warning: Can not profile code using shared libraries"
20948 fi
20949fi
20950
20951# Magick API method prefix
20952
20953# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020954if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000020955 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000020956else
cristyfc3d0222012-02-07 15:05:57 +000020957 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000020958fi
20959
20960
cristyfc3d0222012-02-07 15:05:57 +000020961if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000020962
20963cat >>confdefs.h <<_ACEOF
20964#define NAMESPACE_PREFIX $with_method_prefix
20965_ACEOF
20966
cristyfc3d0222012-02-07 15:05:57 +000020967 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000020968fi
20969
cristy71d8c202012-03-20 17:05:01 +000020970# Enable legacy support (default no)
20971# Check whether --enable-legacy-support was given.
20972if test "${enable_legacy_support+set}" = set; then :
20973 enableval=$enable_legacy_support; with_legacy_support=$enableval
20974else
20975 with_legacy_support='no'
20976fi
20977
20978 if test "$with_legacy_support" != 'no'; then
20979 LEGACY_SUPPORT_TRUE=
20980 LEGACY_SUPPORT_FALSE='#'
20981else
20982 LEGACY_SUPPORT_TRUE='#'
20983 LEGACY_SUPPORT_FALSE=
20984fi
20985
20986
cristy3ed852e2009-09-05 21:47:34 +000020987# Number of bits in a Quantum
20988
20989# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020990if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020991 withval=$with_quantum_depth; with_quantum_depth=$withval
20992else
20993 with_quantum_depth=16
20994fi
20995
20996
20997if test "$with_quantum_depth" != '8'; then
20998 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20999fi
21000
21001case "${with_quantum_depth}" in
21002 8 ) ;;
21003 16 ) ;;
21004 32 ) ;;
21005 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021006 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021007esac
21008QUANTUM_DEPTH="$with_quantum_depth"
21009
21010cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021011#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021012_ACEOF
21013
cristya371edf2013-02-06 13:42:17 +000021014MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021015CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021016CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021017
cristy01ff9f32012-12-01 18:15:29 +000021018# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021019MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021020if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021021 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021022fi
cristy01ff9f32012-12-01 18:15:29 +000021023
21024
cristy3ed852e2009-09-05 21:47:34 +000021025# Set pixel cache threshold
21026
21027# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021028if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021029 withval=$with_cache; with_cache=$withval
21030else
21031 with_cache=''
21032fi
21033
21034
21035if test "$with_cache" != ''; then
21036
21037cat >>confdefs.h <<_ACEOF
21038#define PixelCacheThreshold $with_cache
21039_ACEOF
21040
21041 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21042fi
21043
21044# Disable/Enable support for full delegate paths
21045
21046# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021047if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021048 withval=$with_frozenpaths; with_frozenpaths=$withval
21049else
21050 with_frozenpaths='no'
21051fi
21052
21053
21054# Enable build/install of Magick++
21055
21056# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021057if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021058 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21059else
21060 with_magick_plus_plus='yes'
21061fi
21062
21063
cristy3a75f062012-09-08 23:29:40 +000021064# Encode the this name into the shared library.
21065
21066# Check whether --with-package-release-name was given.
21067if test "${with_package_release_name+set}" = set; then :
21068 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21069fi
21070
21071
21072
cristy3ed852e2009-09-05 21:47:34 +000021073# Disable build/install of PerlMagick.
21074
21075# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021076if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021077 withval=$with_perl; with_perl=$withval
21078else
cristyb5f4e2f2010-04-25 00:49:11 +000021079 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021080fi
21081
21082
21083# Options to pass when configuring PerlMagick
21084
21085# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021086if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021087 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021088fi
21089
21090
cristy3ed852e2009-09-05 21:47:34 +000021091
21092# Enable umem, object-caching memory allocation library.
21093
21094# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021095if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021096 withval=$with_umem; with_umem=$withval
21097else
21098 with_umem='no'
21099fi
21100
21101if test "$with_umem" != 'yes' ; then
21102 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21103fi
21104
21105#
21106# Specify path to shared libstdc++ if not in normal location
21107#
21108
21109# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021110if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021111 withval=$with_libstdc; with_libstdc=$withval
21112else
21113 with_libstdc=''
21114fi
21115
21116
21117if test "$with_libstdc" != ''; then
21118 if test -d "$with_libstdc"; then
21119 LIBSTDCLDFLAGS="-L$with_libstdc"
21120 fi
21121fi
21122
21123
21124# Does gcc required -traditional?
21125if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021127$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021128if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021129 $as_echo_n "(cached) " >&6
21130else
21131 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021133/* end confdefs.h. */
21134#include <sgtty.h>
21135Autoconf TIOCGETP
21136_ACEOF
21137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021138 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021139 ac_cv_prog_gcc_traditional=yes
21140else
21141 ac_cv_prog_gcc_traditional=no
21142fi
21143rm -f conftest*
21144
21145
21146 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021148/* end confdefs.h. */
21149#include <termio.h>
21150Autoconf TCGETA
21151_ACEOF
21152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021153 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021154 ac_cv_prog_gcc_traditional=yes
21155fi
21156rm -f conftest*
21157
21158 fi
21159fi
cristy8b350f62009-11-15 23:12:43 +000021160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021161$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21162 if test $ac_cv_prog_gcc_traditional = yes; then
21163 CC="$CC -traditional"
21164 fi
21165fi
21166
21167
21168########
21169#
21170# Set defines required to build DLLs and modules using MinGW
21171#
21172########
21173# These options are set for multi-thread DLL module build
21174# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21175# module: _DLL
21176# executable/Magick++: _DLL _MAGICKMOD_
21177MODULE_EXTRA_CPPFLAGS=''
21178LIBRARY_EXTRA_CPPFLAGS=''
21179if test "${native_win32_build}" = 'yes'; then
21180 if test "${libtool_build_shared_libs}" = 'yes'; then
21181 CPPFLAGS="$CPPFLAGS -D_DLL"
21182 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21183 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21184 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021185 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021186 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21187 else
21188 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21189 fi
21190 else
21191 CPPFLAGS="$CPPFLAGS -D_LIB"
21192 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21193 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21194 fi
21195 if test "$with_threads" = 'yes'; then
21196 CPPFLAGS="$CPPFLAGS -D_MT"
21197 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21198 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21199 fi
21200fi
21201
21202
21203
21204# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021206$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021207if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021208 $as_echo_n "(cached) " >&6
21209else
cristy8b350f62009-11-15 23:12:43 +000021210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021211/* end confdefs.h. */
21212#include <stdlib.h>
21213#include <stdarg.h>
21214#include <string.h>
21215#include <float.h>
21216
21217int
21218main ()
21219{
21220
21221 ;
21222 return 0;
21223}
21224_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021225if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021226 ac_cv_header_stdc=yes
21227else
cristy8b350f62009-11-15 23:12:43 +000021228 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021229fi
cristy3ed852e2009-09-05 21:47:34 +000021230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21231
21232if test $ac_cv_header_stdc = yes; then
21233 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021235/* end confdefs.h. */
21236#include <string.h>
21237
21238_ACEOF
21239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021240 $EGREP "memchr" >/dev/null 2>&1; then :
21241
cristy3ed852e2009-09-05 21:47:34 +000021242else
21243 ac_cv_header_stdc=no
21244fi
21245rm -f conftest*
21246
21247fi
21248
21249if test $ac_cv_header_stdc = yes; then
21250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021252/* end confdefs.h. */
21253#include <stdlib.h>
21254
21255_ACEOF
21256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021257 $EGREP "free" >/dev/null 2>&1; then :
21258
cristy3ed852e2009-09-05 21:47:34 +000021259else
21260 ac_cv_header_stdc=no
21261fi
21262rm -f conftest*
21263
21264fi
21265
21266if test $ac_cv_header_stdc = yes; then
21267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021268 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021269 :
21270else
cristy8b350f62009-11-15 23:12:43 +000021271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021272/* end confdefs.h. */
21273#include <ctype.h>
21274#include <stdlib.h>
21275#if ((' ' & 0x0FF) == 0x020)
21276# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21277# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21278#else
21279# define ISLOWER(c) \
21280 (('a' <= (c) && (c) <= 'i') \
21281 || ('j' <= (c) && (c) <= 'r') \
21282 || ('s' <= (c) && (c) <= 'z'))
21283# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21284#endif
21285
21286#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21287int
21288main ()
21289{
21290 int i;
21291 for (i = 0; i < 256; i++)
21292 if (XOR (islower (i), ISLOWER (i))
21293 || toupper (i) != TOUPPER (i))
21294 return 2;
21295 return 0;
21296}
21297_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021298if ac_fn_c_try_run "$LINENO"; then :
21299
cristy3ed852e2009-09-05 21:47:34 +000021300else
cristy8b350f62009-11-15 23:12:43 +000021301 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021302fi
cristy8b350f62009-11-15 23:12:43 +000021303rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21304 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021305fi
21306
cristy3ed852e2009-09-05 21:47:34 +000021307fi
21308fi
cristy8b350f62009-11-15 23:12:43 +000021309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021310$as_echo "$ac_cv_header_stdc" >&6; }
21311if test $ac_cv_header_stdc = yes; then
21312
cristy8b350f62009-11-15 23:12:43 +000021313$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021314
21315fi
21316
21317if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021318 { $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 +000021319 header files. Compilation cannot proceed. Please install the ANSI C
21320 headers and rerun this script." >&5
21321$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21322 header files. Compilation cannot proceed. Please install the ANSI C
21323 headers and rerun this script." >&2;};
21324fi
cristya0b81c32010-01-22 02:54:33 +000021325
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21327$as_echo_n "checking whether to enable assertions... " >&6; }
21328 # Check whether --enable-assert was given.
21329if test "${enable_assert+set}" = set; then :
21330 enableval=$enable_assert; ac_enable_assert=$enableval
21331 if test "x$enableval" = xno; then :
21332
21333$as_echo "#define NDEBUG 1" >>confdefs.h
21334
21335elif test "x$enableval" != xyes; then :
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21337$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21338 ac_enable_assert=yes
21339fi
21340else
21341 ac_enable_assert=yes
21342fi
21343
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21345$as_echo "$ac_enable_assert" >&6; }
21346
cristy3ed852e2009-09-05 21:47:34 +000021347ac_header_dirent=no
21348for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21349 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021351$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021352if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021353 $as_echo_n "(cached) " >&6
21354else
cristy8b350f62009-11-15 23:12:43 +000021355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021356/* end confdefs.h. */
21357#include <sys/types.h>
21358#include <$ac_hdr>
21359
21360int
21361main ()
21362{
21363if ((DIR *) 0)
21364return 0;
21365 ;
21366 return 0;
21367}
21368_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021369if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021370 eval "$as_ac_Header=yes"
21371else
cristy8b350f62009-11-15 23:12:43 +000021372 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021373fi
cristy3ed852e2009-09-05 21:47:34 +000021374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21375fi
cristy8b350f62009-11-15 23:12:43 +000021376eval ac_res=\$$as_ac_Header
21377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021378$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021379if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021380 cat >>confdefs.h <<_ACEOF
21381#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21382_ACEOF
21383
21384ac_header_dirent=$ac_hdr; break
21385fi
21386
21387done
21388# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21389if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021391$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021392if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021393 $as_echo_n "(cached) " >&6
21394else
21395 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021397/* end confdefs.h. */
21398
21399/* Override any GCC internal prototype to avoid an error.
21400 Use char because int might match the return type of a GCC
21401 builtin and then its argument prototype would still apply. */
21402#ifdef __cplusplus
21403extern "C"
21404#endif
21405char opendir ();
21406int
21407main ()
21408{
21409return opendir ();
21410 ;
21411 return 0;
21412}
21413_ACEOF
21414for ac_lib in '' dir; do
21415 if test -z "$ac_lib"; then
21416 ac_res="none required"
21417 else
21418 ac_res=-l$ac_lib
21419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21420 fi
cristy8b350f62009-11-15 23:12:43 +000021421 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021422 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021423fi
cristy8b350f62009-11-15 23:12:43 +000021424rm -f core conftest.err conftest.$ac_objext \
21425 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021426 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021427 break
21428fi
21429done
cristyda16f162011-02-19 23:52:17 +000021430if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021431
cristy3ed852e2009-09-05 21:47:34 +000021432else
21433 ac_cv_search_opendir=no
21434fi
21435rm conftest.$ac_ext
21436LIBS=$ac_func_search_save_LIBS
21437fi
cristy8b350f62009-11-15 23:12:43 +000021438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021439$as_echo "$ac_cv_search_opendir" >&6; }
21440ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021441if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21443
21444fi
21445
21446else
cristy8b350f62009-11-15 23:12:43 +000021447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021448$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021449if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021450 $as_echo_n "(cached) " >&6
21451else
21452 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021454/* end confdefs.h. */
21455
21456/* Override any GCC internal prototype to avoid an error.
21457 Use char because int might match the return type of a GCC
21458 builtin and then its argument prototype would still apply. */
21459#ifdef __cplusplus
21460extern "C"
21461#endif
21462char opendir ();
21463int
21464main ()
21465{
21466return opendir ();
21467 ;
21468 return 0;
21469}
21470_ACEOF
21471for ac_lib in '' x; do
21472 if test -z "$ac_lib"; then
21473 ac_res="none required"
21474 else
21475 ac_res=-l$ac_lib
21476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21477 fi
cristy8b350f62009-11-15 23:12:43 +000021478 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021479 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021480fi
cristy8b350f62009-11-15 23:12:43 +000021481rm -f core conftest.err conftest.$ac_objext \
21482 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021483 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021484 break
21485fi
21486done
cristyda16f162011-02-19 23:52:17 +000021487if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021488
cristy3ed852e2009-09-05 21:47:34 +000021489else
21490 ac_cv_search_opendir=no
21491fi
21492rm conftest.$ac_ext
21493LIBS=$ac_func_search_save_LIBS
21494fi
cristy8b350f62009-11-15 23:12:43 +000021495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021496$as_echo "$ac_cv_search_opendir" >&6; }
21497ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021498if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21500
21501fi
21502
21503fi
21504
21505
21506# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021507for 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 +000021508do :
21509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21510ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021511if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021512 cat >>confdefs.h <<_ACEOF
21513#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21514_ACEOF
21515
21516fi
21517
21518done
21519
21520
21521########
21522#
21523# Checks for typedefs, structures, and compiler characteristics.
21524#
21525########
21526
cristy8b350f62009-11-15 23:12:43 +000021527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021528$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021529if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021530 $as_echo_n "(cached) " >&6
21531else
cristy8b350f62009-11-15 23:12:43 +000021532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021533/* end confdefs.h. */
21534
cristy14fefe52012-05-21 00:59:18 +000021535 #include <stdbool.h>
21536 #ifndef bool
21537 "error: bool is not defined"
21538 #endif
21539 #ifndef false
21540 "error: false is not defined"
21541 #endif
21542 #if false
21543 "error: false is not 0"
21544 #endif
21545 #ifndef true
21546 "error: true is not defined"
21547 #endif
21548 #if true != 1
21549 "error: true is not 1"
21550 #endif
21551 #ifndef __bool_true_false_are_defined
21552 "error: __bool_true_false_are_defined is not defined"
21553 #endif
cristy3ed852e2009-09-05 21:47:34 +000021554
cristy14fefe52012-05-21 00:59:18 +000021555 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021556
cristy14fefe52012-05-21 00:59:18 +000021557 char a[true == 1 ? 1 : -1];
21558 char b[false == 0 ? 1 : -1];
21559 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21560 char d[(bool) 0.5 == true ? 1 : -1];
21561 /* See body of main program for 'e'. */
21562 char f[(_Bool) 0.0 == false ? 1 : -1];
21563 char g[true];
21564 char h[sizeof (_Bool)];
21565 char i[sizeof s.t];
21566 enum { j = false, k = true, l = false * true, m = true * 256 };
21567 /* The following fails for
21568 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21569 _Bool n[m];
21570 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21571 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21572 /* Catch a bug in an HP-UX C compiler. See
21573 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21574 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21575 */
21576 _Bool q = true;
21577 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021578
21579int
21580main ()
21581{
21582
cristy14fefe52012-05-21 00:59:18 +000021583 bool e = &s;
21584 *pq |= q;
21585 *pq |= ! q;
21586 /* Refer to every declared value, to avoid compiler optimizations. */
21587 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21588 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021589
21590 ;
21591 return 0;
21592}
21593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021594if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021595 ac_cv_header_stdbool_h=yes
21596else
cristy8b350f62009-11-15 23:12:43 +000021597 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021598fi
cristy3ed852e2009-09-05 21:47:34 +000021599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21600fi
cristy8b350f62009-11-15 23:12:43 +000021601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021602$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021603 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021604if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021605
21606cat >>confdefs.h <<_ACEOF
21607#define HAVE__BOOL 1
21608_ACEOF
21609
21610
21611fi
21612
cristy14fefe52012-05-21 00:59:18 +000021613
cristy3ed852e2009-09-05 21:47:34 +000021614if test $ac_cv_header_stdbool_h = yes; then
21615
cristy8b350f62009-11-15 23:12:43 +000021616$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021617
21618fi
21619
cristy8b350f62009-11-15 23:12:43 +000021620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021621$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021622if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021623 $as_echo_n "(cached) " >&6
21624else
cristy8b350f62009-11-15 23:12:43 +000021625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021626/* end confdefs.h. */
21627
21628int
21629main ()
21630{
21631
21632volatile int x;
21633int * volatile y = (int *) 0;
21634return !x && !y;
21635 ;
21636 return 0;
21637}
21638_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021639if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021640 ac_cv_c_volatile=yes
21641else
cristy8b350f62009-11-15 23:12:43 +000021642 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021643fi
cristy3ed852e2009-09-05 21:47:34 +000021644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21645fi
cristy8b350f62009-11-15 23:12:43 +000021646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021647$as_echo "$ac_cv_c_volatile" >&6; }
21648if test $ac_cv_c_volatile = no; then
21649
cristy8b350f62009-11-15 23:12:43 +000021650$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021651
21652fi
21653
cristy8b350f62009-11-15 23:12:43 +000021654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021655$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021656if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021657 $as_echo_n "(cached) " >&6
21658else
cristy8b350f62009-11-15 23:12:43 +000021659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021660/* end confdefs.h. */
21661#define x(y) #y
21662
21663char *s = x(teststring);
21664_ACEOF
21665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021666 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021667 ac_cv_c_stringize=no
21668else
21669 ac_cv_c_stringize=yes
21670fi
21671rm -f conftest*
21672
21673fi
cristy8b350f62009-11-15 23:12:43 +000021674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021675$as_echo "$ac_cv_c_stringize" >&6; }
21676if test $ac_cv_c_stringize = yes; then
21677
cristy8b350f62009-11-15 23:12:43 +000021678$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021679
21680fi
21681
cristy8b350f62009-11-15 23:12:43 +000021682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021683$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021684if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021685 $as_echo_n "(cached) " >&6
21686else
cristy8b350f62009-11-15 23:12:43 +000021687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021688/* end confdefs.h. */
21689#include <sys/types.h>
21690#include <sys/stat.h>
21691
21692#if defined S_ISBLK && defined S_IFDIR
21693extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21694#endif
21695
21696#if defined S_ISBLK && defined S_IFCHR
21697extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21698#endif
21699
21700#if defined S_ISLNK && defined S_IFREG
21701extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21702#endif
21703
21704#if defined S_ISSOCK && defined S_IFREG
21705extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21706#endif
21707
21708_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021709if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021710 ac_cv_header_stat_broken=no
21711else
cristy8b350f62009-11-15 23:12:43 +000021712 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021713fi
cristy3ed852e2009-09-05 21:47:34 +000021714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21715fi
cristy8b350f62009-11-15 23:12:43 +000021716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021717$as_echo "$ac_cv_header_stat_broken" >&6; }
21718if test $ac_cv_header_stat_broken = yes; then
21719
cristy8b350f62009-11-15 23:12:43 +000021720$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021721
21722fi
21723
cristy8b350f62009-11-15 23:12:43 +000021724{ $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 +000021725$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021726if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021727 $as_echo_n "(cached) " >&6
21728else
cristy8b350f62009-11-15 23:12:43 +000021729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021730/* end confdefs.h. */
21731#include <sys/types.h>
21732#include <sys/time.h>
21733#include <time.h>
21734
21735int
21736main ()
21737{
21738if ((struct tm *) 0)
21739return 0;
21740 ;
21741 return 0;
21742}
21743_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021744if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021745 ac_cv_header_time=yes
21746else
cristy8b350f62009-11-15 23:12:43 +000021747 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021748fi
cristy3ed852e2009-09-05 21:47:34 +000021749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21750fi
cristy8b350f62009-11-15 23:12:43 +000021751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021752$as_echo "$ac_cv_header_time" >&6; }
21753if test $ac_cv_header_time = yes; then
21754
cristy8b350f62009-11-15 23:12:43 +000021755$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021756
21757fi
21758
cristy8b350f62009-11-15 23:12:43 +000021759{ $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 +000021760$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021761if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021762 $as_echo_n "(cached) " >&6
21763else
cristy8b350f62009-11-15 23:12:43 +000021764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021765/* end confdefs.h. */
21766#include <sys/types.h>
21767#include <time.h>
21768
21769int
21770main ()
21771{
21772struct tm tm;
21773 int *p = &tm.tm_sec;
21774 return !p;
21775 ;
21776 return 0;
21777}
21778_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021779if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021780 ac_cv_struct_tm=time.h
21781else
cristy8b350f62009-11-15 23:12:43 +000021782 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021783fi
cristy3ed852e2009-09-05 21:47:34 +000021784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21785fi
cristy8b350f62009-11-15 23:12:43 +000021786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021787$as_echo "$ac_cv_struct_tm" >&6; }
21788if test $ac_cv_struct_tm = sys/time.h; then
21789
cristy8b350f62009-11-15 23:12:43 +000021790$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021791
21792fi
21793
cristy92703d82010-04-26 00:18:18 +000021794ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21795#include <$ac_cv_struct_tm>
21796
21797"
cristyda16f162011-02-19 23:52:17 +000021798if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021799
21800cat >>confdefs.h <<_ACEOF
21801#define HAVE_STRUCT_TM_TM_ZONE 1
21802_ACEOF
21803
21804
21805fi
21806
21807if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21808
21809$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21810
21811else
21812 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21813"
cristyda16f162011-02-19 23:52:17 +000021814if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021815 ac_have_decl=1
21816else
21817 ac_have_decl=0
21818fi
21819
21820cat >>confdefs.h <<_ACEOF
21821#define HAVE_DECL_TZNAME $ac_have_decl
21822_ACEOF
21823
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21825$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021826if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021827 $as_echo_n "(cached) " >&6
21828else
21829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21830/* end confdefs.h. */
21831#include <time.h>
21832#if !HAVE_DECL_TZNAME
21833extern char *tzname[];
21834#endif
21835
21836int
21837main ()
21838{
21839return tzname[0][0];
21840 ;
21841 return 0;
21842}
21843_ACEOF
21844if ac_fn_c_try_link "$LINENO"; then :
21845 ac_cv_var_tzname=yes
21846else
21847 ac_cv_var_tzname=no
21848fi
21849rm -f core conftest.err conftest.$ac_objext \
21850 conftest$ac_exeext conftest.$ac_ext
21851fi
21852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21853$as_echo "$ac_cv_var_tzname" >&6; }
21854 if test $ac_cv_var_tzname = yes; then
21855
21856$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21857
21858 fi
21859fi
21860
cristy8b350f62009-11-15 23:12:43 +000021861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021862$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021863if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021864 $as_echo_n "(cached) " >&6
21865else
21866 echo '#! /bin/cat
21867exit 69
21868' >conftest
21869chmod u+x conftest
21870(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21871if test $? -ne 69; then
21872 ac_cv_sys_interpreter=yes
21873else
21874 ac_cv_sys_interpreter=no
21875fi
21876rm -f conftest
21877fi
cristy8b350f62009-11-15 23:12:43 +000021878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021879$as_echo "$ac_cv_sys_interpreter" >&6; }
21880interpval=$ac_cv_sys_interpreter
21881
21882
cristye80f9cb2013-01-09 01:09:31 +000021883#
21884# Checks for language qualifiers and semantics.
21885#
21886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21887$as_echo_n "checking whether char is unsigned... " >&6; }
21888if ${ac_cv_c_char_unsigned+:} false; then :
21889 $as_echo_n "(cached) " >&6
21890else
21891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21892/* end confdefs.h. */
21893$ac_includes_default
21894int
21895main ()
21896{
21897static int test_array [1 - 2 * !(((char) -1) < 0)];
21898test_array [0] = 0;
21899return test_array [0];
21900
21901 ;
21902 return 0;
21903}
21904_ACEOF
21905if ac_fn_c_try_compile "$LINENO"; then :
21906 ac_cv_c_char_unsigned=no
21907else
21908 ac_cv_c_char_unsigned=yes
21909fi
21910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21911fi
21912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21913$as_echo "$ac_cv_c_char_unsigned" >&6; }
21914if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21915 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21916
21917fi
21918
21919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21920$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21921if ${ac_cv_c_const+:} false; then :
21922 $as_echo_n "(cached) " >&6
21923else
21924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21925/* end confdefs.h. */
21926
21927int
21928main ()
21929{
21930
21931#ifndef __cplusplus
21932 /* Ultrix mips cc rejects this sort of thing. */
21933 typedef int charset[2];
21934 const charset cs = { 0, 0 };
21935 /* SunOS 4.1.1 cc rejects this. */
21936 char const *const *pcpcc;
21937 char **ppc;
21938 /* NEC SVR4.0.2 mips cc rejects this. */
21939 struct point {int x, y;};
21940 static struct point const zero = {0,0};
21941 /* AIX XL C 1.02.0.0 rejects this.
21942 It does not let you subtract one const X* pointer from another in
21943 an arm of an if-expression whose if-part is not a constant
21944 expression */
21945 const char *g = "string";
21946 pcpcc = &g + (g ? g-g : 0);
21947 /* HPUX 7.0 cc rejects these. */
21948 ++pcpcc;
21949 ppc = (char**) pcpcc;
21950 pcpcc = (char const *const *) ppc;
21951 { /* SCO 3.2v4 cc rejects this sort of thing. */
21952 char tx;
21953 char *t = &tx;
21954 char const *s = 0 ? (char *) 0 : (char const *) 0;
21955
21956 *t++ = 0;
21957 if (s) return 0;
21958 }
21959 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21960 int x[] = {25, 17};
21961 const int *foo = &x[0];
21962 ++foo;
21963 }
21964 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21965 typedef const int *iptr;
21966 iptr p = 0;
21967 ++p;
21968 }
21969 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
21970 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21971 struct s { int j; const int *ap[3]; } bx;
21972 struct s *b = &bx; b->j = 5;
21973 }
21974 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21975 const int foo = 10;
21976 if (!foo) return 0;
21977 }
21978 return !cs[0] && !zero.x;
21979#endif
21980
21981 ;
21982 return 0;
21983}
21984_ACEOF
21985if ac_fn_c_try_compile "$LINENO"; then :
21986 ac_cv_c_const=yes
21987else
21988 ac_cv_c_const=no
21989fi
21990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21991fi
21992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
21993$as_echo "$ac_cv_c_const" >&6; }
21994if test $ac_cv_c_const = no; then
21995
21996$as_echo "#define const /**/" >>confdefs.h
21997
21998fi
21999
cristy8b350f62009-11-15 23:12:43 +000022000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022001$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022002if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022003 $as_echo_n "(cached) " >&6
22004else
22005 ac_cv_c_inline=no
22006for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022008/* end confdefs.h. */
22009#ifndef __cplusplus
22010typedef int foo_t;
22011static $ac_kw foo_t static_foo () {return 0; }
22012$ac_kw foo_t foo () {return 0; }
22013#endif
22014
22015_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022016if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022017 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022018fi
cristy3ed852e2009-09-05 21:47:34 +000022019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22020 test "$ac_cv_c_inline" != no && break
22021done
22022
22023fi
cristy8b350f62009-11-15 23:12:43 +000022024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022025$as_echo "$ac_cv_c_inline" >&6; }
22026
cristy3ed852e2009-09-05 21:47:34 +000022027case $ac_cv_c_inline in
22028 inline | yes) ;;
22029 *)
22030 case $ac_cv_c_inline in
22031 no) ac_val=;;
22032 *) ac_val=$ac_cv_c_inline;;
22033 esac
22034 cat >>confdefs.h <<_ACEOF
22035#ifndef __cplusplus
22036#define inline $ac_val
22037#endif
22038_ACEOF
22039 ;;
22040esac
22041
cristy8b350f62009-11-15 23:12:43 +000022042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022043$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022044if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022045 $as_echo_n "(cached) " >&6
22046else
22047 ac_cv_c_restrict=no
22048 # The order here caters to the fact that C++ does not require restrict.
22049 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022051/* end confdefs.h. */
22052typedef int * int_ptr;
22053 int foo (int_ptr $ac_kw ip) {
22054 return ip[0];
22055 }
22056int
22057main ()
22058{
22059int s[1];
22060 int * $ac_kw t = s;
22061 t[0] = 0;
22062 return foo(t)
22063 ;
22064 return 0;
22065}
22066_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022067if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022068 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022069fi
cristy3ed852e2009-09-05 21:47:34 +000022070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22071 test "$ac_cv_c_restrict" != no && break
22072 done
22073
22074fi
cristy8b350f62009-11-15 23:12:43 +000022075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022076$as_echo "$ac_cv_c_restrict" >&6; }
22077
cristy3ed852e2009-09-05 21:47:34 +000022078 case $ac_cv_c_restrict in
22079 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022080 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022081 ;;
22082 *) cat >>confdefs.h <<_ACEOF
22083#define restrict $ac_cv_c_restrict
22084_ACEOF
22085 ;;
22086 esac
22087
cristye80f9cb2013-01-09 01:09:31 +000022088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22089$as_echo_n "checking for working volatile... " >&6; }
22090if ${ac_cv_c_volatile+:} false; then :
22091 $as_echo_n "(cached) " >&6
22092else
22093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22094/* end confdefs.h. */
22095
22096int
22097main ()
22098{
22099
22100volatile int x;
22101int * volatile y = (int *) 0;
22102return !x && !y;
22103 ;
22104 return 0;
22105}
22106_ACEOF
22107if ac_fn_c_try_compile "$LINENO"; then :
22108 ac_cv_c_volatile=yes
22109else
22110 ac_cv_c_volatile=no
22111fi
22112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22113fi
22114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22115$as_echo "$ac_cv_c_volatile" >&6; }
22116if test $ac_cv_c_volatile = no; then
22117
22118$as_echo "#define volatile /**/" >>confdefs.h
22119
22120fi
22121
cristy3ed852e2009-09-05 21:47:34 +000022122
22123# If words are stored with the most significant byte first (like
22124# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022126$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022127if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022128 $as_echo_n "(cached) " >&6
22129else
22130 ac_cv_c_bigendian=unknown
22131 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022133/* end confdefs.h. */
22134#ifndef __APPLE_CC__
22135 not a universal capable compiler
22136 #endif
22137 typedef int dummy;
22138
22139_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022140if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022141
22142 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022143 # there are at least two -arch flags with different values.
22144 ac_arch=
22145 ac_prev=
22146 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22147 if test -n "$ac_prev"; then
22148 case $ac_word in
22149 i?86 | x86_64 | ppc | ppc64)
22150 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22151 ac_arch=$ac_word
22152 else
22153 ac_cv_c_bigendian=universal
22154 break
22155 fi
22156 ;;
22157 esac
22158 ac_prev=
22159 elif test "x$ac_word" = "x-arch"; then
22160 ac_prev=arch
22161 fi
22162 done
cristy3ed852e2009-09-05 21:47:34 +000022163fi
cristy3ed852e2009-09-05 21:47:34 +000022164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22165 if test $ac_cv_c_bigendian = unknown; then
22166 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022168/* end confdefs.h. */
22169#include <sys/types.h>
22170 #include <sys/param.h>
22171
22172int
22173main ()
22174{
22175#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22176 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22177 && LITTLE_ENDIAN)
22178 bogus endian macros
22179 #endif
22180
22181 ;
22182 return 0;
22183}
22184_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022185if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022186 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022188/* end confdefs.h. */
22189#include <sys/types.h>
22190 #include <sys/param.h>
22191
22192int
22193main ()
22194{
22195#if BYTE_ORDER != BIG_ENDIAN
22196 not big endian
22197 #endif
22198
22199 ;
22200 return 0;
22201}
22202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022203if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022204 ac_cv_c_bigendian=yes
22205else
cristy8b350f62009-11-15 23:12:43 +000022206 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022207fi
cristy3ed852e2009-09-05 21:47:34 +000022208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022209fi
cristy3ed852e2009-09-05 21:47:34 +000022210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22211 fi
22212 if test $ac_cv_c_bigendian = unknown; then
22213 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022215/* end confdefs.h. */
22216#include <limits.h>
22217
22218int
22219main ()
22220{
22221#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22222 bogus endian macros
22223 #endif
22224
22225 ;
22226 return 0;
22227}
22228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022229if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022230 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022232/* end confdefs.h. */
22233#include <limits.h>
22234
22235int
22236main ()
22237{
22238#ifndef _BIG_ENDIAN
22239 not big endian
22240 #endif
22241
22242 ;
22243 return 0;
22244}
22245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022246if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022247 ac_cv_c_bigendian=yes
22248else
cristy8b350f62009-11-15 23:12:43 +000022249 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022250fi
cristy3ed852e2009-09-05 21:47:34 +000022251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022252fi
cristy3ed852e2009-09-05 21:47:34 +000022253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22254 fi
22255 if test $ac_cv_c_bigendian = unknown; then
22256 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022257 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022258 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022260/* end confdefs.h. */
22261short int ascii_mm[] =
22262 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22263 short int ascii_ii[] =
22264 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22265 int use_ascii (int i) {
22266 return ascii_mm[i] + ascii_ii[i];
22267 }
22268 short int ebcdic_ii[] =
22269 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22270 short int ebcdic_mm[] =
22271 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22272 int use_ebcdic (int i) {
22273 return ebcdic_mm[i] + ebcdic_ii[i];
22274 }
22275 extern int foo;
22276
22277int
22278main ()
22279{
22280return use_ascii (foo) == use_ebcdic (foo);
22281 ;
22282 return 0;
22283}
22284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022285if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022286 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22287 ac_cv_c_bigendian=yes
22288 fi
22289 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22290 if test "$ac_cv_c_bigendian" = unknown; then
22291 ac_cv_c_bigendian=no
22292 else
22293 # finding both strings is unlikely to happen, but who knows?
22294 ac_cv_c_bigendian=unknown
22295 fi
22296 fi
cristy3ed852e2009-09-05 21:47:34 +000022297fi
cristy3ed852e2009-09-05 21:47:34 +000022298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22299else
cristy8b350f62009-11-15 23:12:43 +000022300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022301/* end confdefs.h. */
22302$ac_includes_default
22303int
22304main ()
22305{
22306
22307 /* Are we little or big endian? From Harbison&Steele. */
22308 union
22309 {
22310 long int l;
22311 char c[sizeof (long int)];
22312 } u;
22313 u.l = 1;
22314 return u.c[sizeof (long int) - 1] == 1;
22315
22316 ;
22317 return 0;
22318}
22319_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022320if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022321 ac_cv_c_bigendian=no
22322else
cristy8b350f62009-11-15 23:12:43 +000022323 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022324fi
cristy8b350f62009-11-15 23:12:43 +000022325rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22326 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022327fi
22328
cristy3ed852e2009-09-05 21:47:34 +000022329 fi
22330fi
cristy8b350f62009-11-15 23:12:43 +000022331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022332$as_echo "$ac_cv_c_bigendian" >&6; }
22333 case $ac_cv_c_bigendian in #(
22334 yes)
cristy8b350f62009-11-15 23:12:43 +000022335 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022336;; #(
22337 no)
22338 ;; #(
22339 universal)
22340
cristy8b350f62009-11-15 23:12:43 +000022341$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022342
22343 ;; #(
22344 *)
cristy98dddb52010-11-04 00:30:15 +000022345 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022346 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022347 esac
22348
22349
cristy501c8042011-05-26 17:46:28 +000022350# Define to a suitable type, if standard headers do not define it.
22351ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22352case $ac_cv_c_int8_t in #(
22353 no|yes) ;; #(
22354 *)
cristy3ed852e2009-09-05 21:47:34 +000022355
22356cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022357#define int8_t $ac_cv_c_int8_t
22358_ACEOF
22359;;
22360esac
22361
22362ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22363case $ac_cv_c_int16_t in #(
22364 no|yes) ;; #(
22365 *)
22366
22367cat >>confdefs.h <<_ACEOF
22368#define int16_t $ac_cv_c_int16_t
22369_ACEOF
22370;;
22371esac
22372
22373ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22374case $ac_cv_c_int32_t in #(
22375 no|yes) ;; #(
22376 *)
22377
22378cat >>confdefs.h <<_ACEOF
22379#define int32_t $ac_cv_c_int32_t
22380_ACEOF
22381;;
22382esac
22383
22384ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22385case $ac_cv_c_int64_t in #(
22386 no|yes) ;; #(
22387 *)
22388
22389cat >>confdefs.h <<_ACEOF
22390#define int64_t $ac_cv_c_int64_t
22391_ACEOF
22392;;
22393esac
22394
22395
cristy045228a2013-06-23 11:00:16 +000022396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22397$as_echo_n "checking for unsigned long long int... " >&6; }
22398if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022399 $as_echo_n "(cached) " >&6
22400else
cristy045228a2013-06-23 11:00:16 +000022401 ac_cv_type_unsigned_long_long_int=yes
22402 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022404/* end confdefs.h. */
22405
22406 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022407 implementations with broken preprocessors. Perhaps this can
22408 be revisited in 2012. In the meantime, code should not expect
22409 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022410 /* Test literals. */
22411 long long int ll = 9223372036854775807ll;
22412 long long int nll = -9223372036854775807LL;
22413 unsigned long long int ull = 18446744073709551615ULL;
22414 /* Test constant expressions. */
22415 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022416 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022417 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022418 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022419 int i = 63;
22420int
22421main ()
22422{
22423/* Test availability of runtime routines for shift and division. */
22424 long long int llmax = 9223372036854775807ll;
22425 unsigned long long int ullmax = 18446744073709551615ull;
22426 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022427 | (llmax / ll) | (llmax % ll)
22428 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22429 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022430 ;
22431 return 0;
22432}
22433
22434_ACEOF
22435if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022436
22437else
22438 ac_cv_type_unsigned_long_long_int=no
22439fi
22440rm -f core conftest.err conftest.$ac_objext \
22441 conftest$ac_exeext conftest.$ac_ext
22442 fi
22443fi
22444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22445$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22446 if test $ac_cv_type_unsigned_long_long_int = yes; then
22447
22448$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22449
22450 fi
22451
22452
22453
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22455$as_echo_n "checking for long long int... " >&6; }
22456if ${ac_cv_type_long_long_int+:} false; then :
22457 $as_echo_n "(cached) " >&6
22458else
cristy501c8042011-05-26 17:46:28 +000022459 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022460 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022461 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22462 if test $ac_cv_type_long_long_int = yes; then
22463 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022464 :
cristy501c8042011-05-26 17:46:28 +000022465else
22466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22467/* end confdefs.h. */
22468#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022469 #ifndef LLONG_MAX
22470 # define HALF \
22471 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22472 # define LLONG_MAX (HALF - 1 + HALF)
22473 #endif
cristy501c8042011-05-26 17:46:28 +000022474int
22475main ()
22476{
22477long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022478 int i;
22479 for (i = 0; ; i++)
22480 {
22481 long long int m = n << i;
22482 if (m >> i != n)
22483 return 1;
22484 if (LLONG_MAX / 2 < m)
22485 break;
22486 }
22487 return 0;
cristy501c8042011-05-26 17:46:28 +000022488 ;
22489 return 0;
22490}
22491_ACEOF
22492if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022493
cristy501c8042011-05-26 17:46:28 +000022494else
22495 ac_cv_type_long_long_int=no
22496fi
22497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22498 conftest.$ac_objext conftest.beam conftest.$ac_ext
22499fi
22500
cristy5ed9c6e2013-07-14 21:20:31 +000022501 fi
cristy045228a2013-06-23 11:00:16 +000022502 fi
cristy501c8042011-05-26 17:46:28 +000022503fi
22504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22505$as_echo "$ac_cv_type_long_long_int" >&6; }
22506 if test $ac_cv_type_long_long_int = yes; then
22507
22508$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22509
22510 fi
22511
22512
22513
22514 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22515if test "x$ac_cv_type_intmax_t" = xyes; then :
22516
22517$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22518
22519else
22520 test $ac_cv_type_long_long_int = yes \
22521 && ac_type='long long int' \
22522 || ac_type='long int'
22523
22524cat >>confdefs.h <<_ACEOF
22525#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022526_ACEOF
22527
22528fi
22529
22530
cristy501c8042011-05-26 17:46:28 +000022531
22532 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22533if test "x$ac_cv_type_intptr_t" = xyes; then :
22534
22535$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022536
cristy3ed852e2009-09-05 21:47:34 +000022537else
cristy501c8042011-05-26 17:46:28 +000022538 for ac_type in 'int' 'long int' 'long long int'; do
22539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22540/* end confdefs.h. */
22541$ac_includes_default
22542int
22543main ()
22544{
22545static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022546test_array [0] = 0;
22547return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022548
22549 ;
22550 return 0;
22551}
22552_ACEOF
22553if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022554
22555cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022556#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022557_ACEOF
22558
cristy501c8042011-05-26 17:46:28 +000022559 ac_type=
22560fi
22561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22562 test -z "$ac_type" && break
22563 done
cristy3ed852e2009-09-05 21:47:34 +000022564fi
22565
22566
cristy3ed852e2009-09-05 21:47:34 +000022567
cristy501c8042011-05-26 17:46:28 +000022568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22569$as_echo_n "checking for long double... " >&6; }
22570if ${ac_cv_type_long_double+:} false; then :
22571 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022572else
cristy501c8042011-05-26 17:46:28 +000022573 if test "$GCC" = yes; then
22574 ac_cv_type_long_double=yes
22575 else
22576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22577/* end confdefs.h. */
22578/* The Stardent Vistra knows sizeof (long double), but does
22579 not support it. */
22580 long double foo = 0.0L;
22581int
22582main ()
22583{
22584static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22585 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022586test_array [0] = 0;
22587return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022588
cristy501c8042011-05-26 17:46:28 +000022589 ;
22590 return 0;
22591}
cristy3ed852e2009-09-05 21:47:34 +000022592_ACEOF
cristy501c8042011-05-26 17:46:28 +000022593if ac_fn_c_try_compile "$LINENO"; then :
22594 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022595else
cristy501c8042011-05-26 17:46:28 +000022596 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022597fi
cristy501c8042011-05-26 17:46:28 +000022598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22599 fi
cristy3ed852e2009-09-05 21:47:34 +000022600fi
cristy501c8042011-05-26 17:46:28 +000022601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22602$as_echo "$ac_cv_type_long_double" >&6; }
22603 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022604
cristy501c8042011-05-26 17:46:28 +000022605$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022606
cristy501c8042011-05-26 17:46:28 +000022607 fi
22608
cristy3ed852e2009-09-05 21:47:34 +000022609
cristy8b350f62009-11-15 23:12:43 +000022610 { $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 +000022611$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022612if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022613 $as_echo_n "(cached) " >&6
22614else
cristy8b350f62009-11-15 23:12:43 +000022615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022616/* end confdefs.h. */
22617#include <float.h>
22618 long double const a[] =
22619 {
22620 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22621 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22622 };
22623 long double
22624 f (long double x)
22625 {
22626 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22627 + (x ? f (x) : 'c'));
22628 }
22629
22630int
22631main ()
22632{
22633static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22634 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22635 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22636 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22637 && (int) LDBL_EPSILON == 0
22638 )];
cristy14fefe52012-05-21 00:59:18 +000022639test_array [0] = 0;
22640return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022641
22642 ;
22643 return 0;
22644}
22645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022646if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022647 ac_cv_type_long_double_wider=yes
22648else
cristy8b350f62009-11-15 23:12:43 +000022649 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022650fi
cristy3ed852e2009-09-05 21:47:34 +000022651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22652fi
cristy8b350f62009-11-15 23:12:43 +000022653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022654$as_echo "$ac_cv_type_long_double_wider" >&6; }
22655 if test $ac_cv_type_long_double_wider = yes; then
22656
cristy8b350f62009-11-15 23:12:43 +000022657$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022658
22659 fi
22660
22661
cristy045228a2013-06-23 11:00:16 +000022662
cristy501c8042011-05-26 17:46:28 +000022663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22664$as_echo_n "checking for long long int... " >&6; }
22665if ${ac_cv_type_long_long_int+:} false; then :
22666 $as_echo_n "(cached) " >&6
22667else
cristy501c8042011-05-26 17:46:28 +000022668 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022669 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022670 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22671 if test $ac_cv_type_long_long_int = yes; then
22672 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022673 :
cristy501c8042011-05-26 17:46:28 +000022674else
22675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22676/* end confdefs.h. */
22677#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022678 #ifndef LLONG_MAX
22679 # define HALF \
22680 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22681 # define LLONG_MAX (HALF - 1 + HALF)
22682 #endif
cristy501c8042011-05-26 17:46:28 +000022683int
22684main ()
22685{
22686long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022687 int i;
22688 for (i = 0; ; i++)
22689 {
22690 long long int m = n << i;
22691 if (m >> i != n)
22692 return 1;
22693 if (LLONG_MAX / 2 < m)
22694 break;
22695 }
22696 return 0;
cristy501c8042011-05-26 17:46:28 +000022697 ;
22698 return 0;
22699}
22700_ACEOF
22701if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022702
cristy501c8042011-05-26 17:46:28 +000022703else
22704 ac_cv_type_long_long_int=no
22705fi
22706rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22707 conftest.$ac_objext conftest.beam conftest.$ac_ext
22708fi
22709
cristy5ed9c6e2013-07-14 21:20:31 +000022710 fi
cristy045228a2013-06-23 11:00:16 +000022711 fi
cristy501c8042011-05-26 17:46:28 +000022712fi
22713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22714$as_echo "$ac_cv_type_long_long_int" >&6; }
22715 if test $ac_cv_type_long_long_int = yes; then
22716
22717$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22718
22719 fi
22720
22721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22722$as_echo_n "checking for mbstate_t... " >&6; }
22723if ${ac_cv_type_mbstate_t+:} false; then :
22724 $as_echo_n "(cached) " >&6
22725else
22726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22727/* end confdefs.h. */
22728$ac_includes_default
22729# include <wchar.h>
22730int
22731main ()
22732{
22733mbstate_t x; return sizeof x;
22734 ;
22735 return 0;
22736}
22737_ACEOF
22738if ac_fn_c_try_compile "$LINENO"; then :
22739 ac_cv_type_mbstate_t=yes
22740else
22741 ac_cv_type_mbstate_t=no
22742fi
22743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22744fi
22745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22746$as_echo "$ac_cv_type_mbstate_t" >&6; }
22747 if test $ac_cv_type_mbstate_t = yes; then
22748
22749$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22750
22751 else
22752
22753$as_echo "#define mbstate_t int" >>confdefs.h
22754
22755 fi
22756ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22757if test "x$ac_cv_type_mode_t" = xyes; then :
22758
22759else
22760
22761cat >>confdefs.h <<_ACEOF
22762#define mode_t int
22763_ACEOF
22764
22765fi
22766
22767ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22768if test "x$ac_cv_type_off_t" = xyes; then :
22769
22770else
22771
22772cat >>confdefs.h <<_ACEOF
22773#define off_t long int
22774_ACEOF
22775
22776fi
22777
22778ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22779if test "x$ac_cv_type_pid_t" = xyes; then :
22780
22781else
22782
22783cat >>confdefs.h <<_ACEOF
22784#define pid_t int
22785_ACEOF
22786
22787fi
22788
22789ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22790if test "x$ac_cv_type_size_t" = xyes; then :
22791
22792else
22793
22794cat >>confdefs.h <<_ACEOF
22795#define size_t unsigned int
22796_ACEOF
22797
22798fi
22799
22800ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22801if test "x$ac_cv_type_ssize_t" = xyes; then :
22802
22803else
22804
22805cat >>confdefs.h <<_ACEOF
22806#define ssize_t int
22807_ACEOF
22808
22809fi
22810
22811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22812$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22813if ${ac_cv_type_uid_t+:} false; then :
22814 $as_echo_n "(cached) " >&6
22815else
22816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22817/* end confdefs.h. */
22818#include <sys/types.h>
22819
22820_ACEOF
22821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22822 $EGREP "uid_t" >/dev/null 2>&1; then :
22823 ac_cv_type_uid_t=yes
22824else
22825 ac_cv_type_uid_t=no
22826fi
22827rm -f conftest*
22828
22829fi
22830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22831$as_echo "$ac_cv_type_uid_t" >&6; }
22832if test $ac_cv_type_uid_t = no; then
22833
22834$as_echo "#define uid_t int" >>confdefs.h
22835
22836
22837$as_echo "#define gid_t int" >>confdefs.h
22838
22839fi
22840
22841ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22842case $ac_cv_c_uint8_t in #(
22843 no|yes) ;; #(
22844 *)
22845
22846$as_echo "#define _UINT8_T 1" >>confdefs.h
22847
22848
22849cat >>confdefs.h <<_ACEOF
22850#define uint8_t $ac_cv_c_uint8_t
22851_ACEOF
22852;;
22853 esac
22854
22855ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22856case $ac_cv_c_uint16_t in #(
22857 no|yes) ;; #(
22858 *)
22859
22860
22861cat >>confdefs.h <<_ACEOF
22862#define uint16_t $ac_cv_c_uint16_t
22863_ACEOF
22864;;
22865 esac
22866
22867ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22868case $ac_cv_c_uint32_t in #(
22869 no|yes) ;; #(
22870 *)
22871
22872$as_echo "#define _UINT32_T 1" >>confdefs.h
22873
22874
22875cat >>confdefs.h <<_ACEOF
22876#define uint32_t $ac_cv_c_uint32_t
22877_ACEOF
22878;;
22879 esac
22880
22881ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22882case $ac_cv_c_uint64_t in #(
22883 no|yes) ;; #(
22884 *)
22885
22886$as_echo "#define _UINT64_T 1" >>confdefs.h
22887
22888
22889cat >>confdefs.h <<_ACEOF
22890#define uint64_t $ac_cv_c_uint64_t
22891_ACEOF
22892;;
22893 esac
22894
22895
cristy501c8042011-05-26 17:46:28 +000022896
22897 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22898if test "x$ac_cv_type_uintmax_t" = xyes; then :
22899
22900$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22901
22902else
22903 test $ac_cv_type_unsigned_long_long_int = yes \
22904 && ac_type='unsigned long long int' \
22905 || ac_type='unsigned long int'
22906
22907cat >>confdefs.h <<_ACEOF
22908#define uintmax_t $ac_type
22909_ACEOF
22910
22911fi
22912
22913
22914
22915 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
22916if test "x$ac_cv_type_uintptr_t" = xyes; then :
22917
22918$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
22919
22920else
22921 for ac_type in 'unsigned int' 'unsigned long int' \
22922 'unsigned long long int'; do
22923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22924/* end confdefs.h. */
22925$ac_includes_default
22926int
22927main ()
22928{
22929static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022930test_array [0] = 0;
22931return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022932
22933 ;
22934 return 0;
22935}
22936_ACEOF
22937if ac_fn_c_try_compile "$LINENO"; then :
22938
22939cat >>confdefs.h <<_ACEOF
22940#define uintptr_t $ac_type
22941_ACEOF
22942
22943 ac_type=
22944fi
22945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22946 test -z "$ac_type" && break
22947 done
22948fi
22949
22950
22951
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22953$as_echo_n "checking for unsigned long long int... " >&6; }
22954if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22955 $as_echo_n "(cached) " >&6
22956else
cristy045228a2013-06-23 11:00:16 +000022957 ac_cv_type_unsigned_long_long_int=yes
22958 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022960/* end confdefs.h. */
22961
22962 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022963 implementations with broken preprocessors. Perhaps this can
22964 be revisited in 2012. In the meantime, code should not expect
22965 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022966 /* Test literals. */
22967 long long int ll = 9223372036854775807ll;
22968 long long int nll = -9223372036854775807LL;
22969 unsigned long long int ull = 18446744073709551615ULL;
22970 /* Test constant expressions. */
22971 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022972 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022973 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022974 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022975 int i = 63;
22976int
22977main ()
22978{
22979/* Test availability of runtime routines for shift and division. */
22980 long long int llmax = 9223372036854775807ll;
22981 unsigned long long int ullmax = 18446744073709551615ull;
22982 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022983 | (llmax / ll) | (llmax % ll)
22984 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22985 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022986 ;
22987 return 0;
22988}
22989
22990_ACEOF
22991if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022992
cristy501c8042011-05-26 17:46:28 +000022993else
22994 ac_cv_type_unsigned_long_long_int=no
22995fi
22996rm -f core conftest.err conftest.$ac_objext \
22997 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000022998 fi
cristy501c8042011-05-26 17:46:28 +000022999fi
23000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23001$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23002 if test $ac_cv_type_unsigned_long_long_int = yes; then
23003
23004$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23005
23006 fi
23007
23008
cristyfec31822013-05-23 12:32:12 +000023009# Float_t and double_t are intended to be the the most efficient type.
23010ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23011"
23012if test "x$ac_cv_type_float_t" = xyes; then :
23013
23014cat >>confdefs.h <<_ACEOF
23015#define HAVE_FLOAT_T 1
23016_ACEOF
23017
23018
23019fi
23020
23021ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23022"
23023if test "x$ac_cv_type_double_t" = xyes; then :
23024
23025cat >>confdefs.h <<_ACEOF
23026#define HAVE_DOUBLE_T 1
23027_ACEOF
23028
23029
23030fi
23031
23032# The cast to long int works around a bug in the HP C Compiler
23033# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23034# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23035# This bug is HP SR number 8606223364.
23036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23037$as_echo_n "checking size of float_t... " >&6; }
23038if ${ac_cv_sizeof_float_t+:} false; then :
23039 $as_echo_n "(cached) " >&6
23040else
23041 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23042"; then :
23043
23044else
23045 if test "$ac_cv_type_float_t" = yes; then
23046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23048as_fn_error 77 "cannot compute sizeof (float_t)
23049See \`config.log' for more details" "$LINENO" 5; }
23050 else
23051 ac_cv_sizeof_float_t=0
23052 fi
23053fi
23054
23055fi
23056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23057$as_echo "$ac_cv_sizeof_float_t" >&6; }
23058
23059
23060
23061cat >>confdefs.h <<_ACEOF
23062#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23063_ACEOF
23064
23065
23066# The cast to long int works around a bug in the HP C Compiler
23067# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23068# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23069# This bug is HP SR number 8606223364.
23070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23071$as_echo_n "checking size of double_t... " >&6; }
23072if ${ac_cv_sizeof_double_t+:} false; then :
23073 $as_echo_n "(cached) " >&6
23074else
23075 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23076"; then :
23077
23078else
23079 if test "$ac_cv_type_double_t" = yes; then
23080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23082as_fn_error 77 "cannot compute sizeof (double_t)
23083See \`config.log' for more details" "$LINENO" 5; }
23084 else
23085 ac_cv_sizeof_double_t=0
23086 fi
23087fi
23088
23089fi
23090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23091$as_echo "$ac_cv_sizeof_double_t" >&6; }
23092
23093
23094
23095cat >>confdefs.h <<_ACEOF
23096#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23097_ACEOF
23098
23099
23100
cristy9b86f202012-11-28 21:55:35 +000023101# Get size of float, double and long double for comparaison.
23102# The cast to long int works around a bug in the HP C Compiler
23103# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23104# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23105# This bug is HP SR number 8606223364.
23106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23107$as_echo_n "checking size of float... " >&6; }
23108if ${ac_cv_sizeof_float+:} false; then :
23109 $as_echo_n "(cached) " >&6
23110else
23111 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23112
23113else
23114 if test "$ac_cv_type_float" = yes; then
23115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23117as_fn_error 77 "cannot compute sizeof (float)
23118See \`config.log' for more details" "$LINENO" 5; }
23119 else
23120 ac_cv_sizeof_float=0
23121 fi
23122fi
23123
23124fi
23125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23126$as_echo "$ac_cv_sizeof_float" >&6; }
23127
23128
23129
23130cat >>confdefs.h <<_ACEOF
23131#define SIZEOF_FLOAT $ac_cv_sizeof_float
23132_ACEOF
23133
23134
23135# The cast to long int works around a bug in the HP C Compiler
23136# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23137# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23138# This bug is HP SR number 8606223364.
23139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23140$as_echo_n "checking size of double... " >&6; }
23141if ${ac_cv_sizeof_double+:} false; then :
23142 $as_echo_n "(cached) " >&6
23143else
23144 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23145
23146else
23147 if test "$ac_cv_type_double" = yes; then
23148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23150as_fn_error 77 "cannot compute sizeof (double)
23151See \`config.log' for more details" "$LINENO" 5; }
23152 else
23153 ac_cv_sizeof_double=0
23154 fi
23155fi
23156
23157fi
23158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23159$as_echo "$ac_cv_sizeof_double" >&6; }
23160
23161
23162
23163cat >>confdefs.h <<_ACEOF
23164#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23165_ACEOF
23166
23167
cristyfec31822013-05-23 12:32:12 +000023168# The cast to long int works around a bug in the HP C Compiler
23169# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23170# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23171# This bug is HP SR number 8606223364.
23172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23173$as_echo_n "checking size of long double... " >&6; }
23174if ${ac_cv_sizeof_long_double+:} false; then :
23175 $as_echo_n "(cached) " >&6
23176else
23177 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23178
23179else
23180 if test "$ac_cv_type_long_double" = yes; then
23181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23183as_fn_error 77 "cannot compute sizeof (long double)
23184See \`config.log' for more details" "$LINENO" 5; }
23185 else
23186 ac_cv_sizeof_long_double=0
23187 fi
23188fi
23189
23190fi
23191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23192$as_echo "$ac_cv_sizeof_long_double" >&6; }
23193
23194
23195
23196cat >>confdefs.h <<_ACEOF
23197#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23198_ACEOF
23199
23200
cristyf0cf9a22012-10-24 12:05:01 +000023201
cristy3ed852e2009-09-05 21:47:34 +000023202# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23203# The cast to long int works around a bug in the HP C Compiler
23204# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23205# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23206# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023208$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023209if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023210 $as_echo_n "(cached) " >&6
23211else
cristy8b350f62009-11-15 23:12:43 +000023212 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 +000023213
cristy3ed852e2009-09-05 21:47:34 +000023214else
cristy8b350f62009-11-15 23:12:43 +000023215 if test "$ac_cv_type_signed_short" = yes; then
23216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023218as_fn_error 77 "cannot compute sizeof (signed short)
23219See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023220 else
23221 ac_cv_sizeof_signed_short=0
23222 fi
23223fi
cristy8b350f62009-11-15 23:12:43 +000023224
cristy3ed852e2009-09-05 21:47:34 +000023225fi
cristy8b350f62009-11-15 23:12:43 +000023226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023227$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23228
23229
23230
23231cat >>confdefs.h <<_ACEOF
23232#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23233_ACEOF
23234
23235
23236
23237# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23238# The cast to long int works around a bug in the HP C Compiler
23239# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23240# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23241# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023243$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023244if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023245 $as_echo_n "(cached) " >&6
23246else
cristy8b350f62009-11-15 23:12:43 +000023247 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 +000023248
cristy3ed852e2009-09-05 21:47:34 +000023249else
cristy8b350f62009-11-15 23:12:43 +000023250 if test "$ac_cv_type_unsigned_short" = yes; then
23251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023253as_fn_error 77 "cannot compute sizeof (unsigned short)
23254See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023255 else
23256 ac_cv_sizeof_unsigned_short=0
23257 fi
23258fi
cristy8b350f62009-11-15 23:12:43 +000023259
cristy3ed852e2009-09-05 21:47:34 +000023260fi
cristy8b350f62009-11-15 23:12:43 +000023261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023262$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23263
23264
23265
23266cat >>confdefs.h <<_ACEOF
23267#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23268_ACEOF
23269
23270
23271
23272# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23273# The cast to long int works around a bug in the HP C Compiler
23274# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23275# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23276# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023278$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023279if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023280 $as_echo_n "(cached) " >&6
23281else
cristy8b350f62009-11-15 23:12:43 +000023282 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 +000023283
cristy3ed852e2009-09-05 21:47:34 +000023284else
cristy8b350f62009-11-15 23:12:43 +000023285 if test "$ac_cv_type_signed_int" = yes; then
23286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023288as_fn_error 77 "cannot compute sizeof (signed int)
23289See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023290 else
23291 ac_cv_sizeof_signed_int=0
23292 fi
23293fi
cristy8b350f62009-11-15 23:12:43 +000023294
cristy3ed852e2009-09-05 21:47:34 +000023295fi
cristy8b350f62009-11-15 23:12:43 +000023296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023297$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23298
23299
23300
23301cat >>confdefs.h <<_ACEOF
23302#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23303_ACEOF
23304
23305
23306
23307# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23308# The cast to long int works around a bug in the HP C Compiler
23309# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23310# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23311# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023313$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023314if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023315 $as_echo_n "(cached) " >&6
23316else
cristy8b350f62009-11-15 23:12:43 +000023317 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 +000023318
cristy3ed852e2009-09-05 21:47:34 +000023319else
cristy8b350f62009-11-15 23:12:43 +000023320 if test "$ac_cv_type_unsigned_int" = yes; then
23321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023323as_fn_error 77 "cannot compute sizeof (unsigned int)
23324See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023325 else
23326 ac_cv_sizeof_unsigned_int=0
23327 fi
23328fi
cristy8b350f62009-11-15 23:12:43 +000023329
cristy3ed852e2009-09-05 21:47:34 +000023330fi
cristy8b350f62009-11-15 23:12:43 +000023331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023332$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23333
23334
23335
23336cat >>confdefs.h <<_ACEOF
23337#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23338_ACEOF
23339
23340
23341
23342# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23343# The cast to long int works around a bug in the HP C Compiler
23344# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23345# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23346# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023348$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023349if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023350 $as_echo_n "(cached) " >&6
23351else
cristy8b350f62009-11-15 23:12:43 +000023352 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 +000023353
cristy3ed852e2009-09-05 21:47:34 +000023354else
cristy8b350f62009-11-15 23:12:43 +000023355 if test "$ac_cv_type_signed_long" = yes; then
23356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023358as_fn_error 77 "cannot compute sizeof (signed long)
23359See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023360 else
23361 ac_cv_sizeof_signed_long=0
23362 fi
23363fi
cristy8b350f62009-11-15 23:12:43 +000023364
cristy3ed852e2009-09-05 21:47:34 +000023365fi
cristy8b350f62009-11-15 23:12:43 +000023366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023367$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23368
23369
23370
23371cat >>confdefs.h <<_ACEOF
23372#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23373_ACEOF
23374
23375
23376
23377# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23378# The cast to long int works around a bug in the HP C Compiler
23379# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23380# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23381# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023383$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023384if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023385 $as_echo_n "(cached) " >&6
23386else
cristy8b350f62009-11-15 23:12:43 +000023387 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 +000023388
cristy3ed852e2009-09-05 21:47:34 +000023389else
cristy8b350f62009-11-15 23:12:43 +000023390 if test "$ac_cv_type_unsigned_long" = yes; then
23391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023393as_fn_error 77 "cannot compute sizeof (unsigned long)
23394See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023395 else
23396 ac_cv_sizeof_unsigned_long=0
23397 fi
23398fi
cristy8b350f62009-11-15 23:12:43 +000023399
cristy3ed852e2009-09-05 21:47:34 +000023400fi
cristy8b350f62009-11-15 23:12:43 +000023401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023402$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23403
23404
23405
23406cat >>confdefs.h <<_ACEOF
23407#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23408_ACEOF
23409
23410
23411
23412# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23413# 'signed long long' is not supported then the value defined is zero.
23414# The cast to long int works around a bug in the HP C Compiler
23415# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23416# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23417# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023419$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023420if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023421 $as_echo_n "(cached) " >&6
23422else
cristy8b350f62009-11-15 23:12:43 +000023423 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 +000023424
cristy3ed852e2009-09-05 21:47:34 +000023425else
cristy8b350f62009-11-15 23:12:43 +000023426 if test "$ac_cv_type_signed_long_long" = yes; then
23427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023429as_fn_error 77 "cannot compute sizeof (signed long long)
23430See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023431 else
23432 ac_cv_sizeof_signed_long_long=0
23433 fi
23434fi
cristy8b350f62009-11-15 23:12:43 +000023435
cristy3ed852e2009-09-05 21:47:34 +000023436fi
cristy8b350f62009-11-15 23:12:43 +000023437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023438$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23439
23440
23441
23442cat >>confdefs.h <<_ACEOF
23443#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23444_ACEOF
23445
23446
23447
23448# Obtain size of a 'unsigned long long' and define as
23449# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23450# supported then the value defined is zero.
23451# The cast to long int works around a bug in the HP C Compiler
23452# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23453# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23454# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023456$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023457if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023458 $as_echo_n "(cached) " >&6
23459else
cristy8b350f62009-11-15 23:12:43 +000023460 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 +000023461
cristy3ed852e2009-09-05 21:47:34 +000023462else
cristy8b350f62009-11-15 23:12:43 +000023463 if test "$ac_cv_type_unsigned_long_long" = yes; then
23464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023466as_fn_error 77 "cannot compute sizeof (unsigned long long)
23467See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023468 else
23469 ac_cv_sizeof_unsigned_long_long=0
23470 fi
23471fi
cristy8b350f62009-11-15 23:12:43 +000023472
cristy3ed852e2009-09-05 21:47:34 +000023473fi
cristy8b350f62009-11-15 23:12:43 +000023474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023475$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23476
23477
23478
23479cat >>confdefs.h <<_ACEOF
23480#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23481_ACEOF
23482
23483
23484
cristyfec31822013-05-23 12:32:12 +000023485# Obtain size of off_t and define as SIZEOF_OFF_T
23486# The cast to long int works around a bug in the HP C Compiler
23487# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23488# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23489# This bug is HP SR number 8606223364.
23490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23491$as_echo_n "checking size of off_t... " >&6; }
23492if ${ac_cv_sizeof_off_t+:} false; then :
23493 $as_echo_n "(cached) " >&6
23494else
23495 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23496
23497else
23498 if test "$ac_cv_type_off_t" = yes; then
23499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23501as_fn_error 77 "cannot compute sizeof (off_t)
23502See \`config.log' for more details" "$LINENO" 5; }
23503 else
23504 ac_cv_sizeof_off_t=0
23505 fi
23506fi
23507
23508fi
23509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23510$as_echo "$ac_cv_sizeof_off_t" >&6; }
23511
23512
23513
23514cat >>confdefs.h <<_ACEOF
23515#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23516_ACEOF
23517
23518
23519
23520# Obtain size of size_t and define as SIZEOF_SIZE_T
23521# The cast to long int works around a bug in the HP C Compiler
23522# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23523# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23524# This bug is HP SR number 8606223364.
23525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23526$as_echo_n "checking size of size_t... " >&6; }
23527if ${ac_cv_sizeof_size_t+:} false; then :
23528 $as_echo_n "(cached) " >&6
23529else
23530 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23531
23532else
23533 if test "$ac_cv_type_size_t" = yes; then
23534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23536as_fn_error 77 "cannot compute sizeof (size_t)
23537See \`config.log' for more details" "$LINENO" 5; }
23538 else
23539 ac_cv_sizeof_size_t=0
23540 fi
23541fi
23542
23543fi
23544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23545$as_echo "$ac_cv_sizeof_size_t" >&6; }
23546
23547
23548
23549cat >>confdefs.h <<_ACEOF
23550#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23551_ACEOF
23552
23553
23554
23555# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23556# The cast to long int works around a bug in the HP C Compiler
23557# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23558# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23559# This bug is HP SR number 8606223364.
23560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23561$as_echo_n "checking size of ssize_t... " >&6; }
23562if ${ac_cv_sizeof_ssize_t+:} false; then :
23563 $as_echo_n "(cached) " >&6
23564else
23565 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23566
23567else
23568 if test "$ac_cv_type_ssize_t" = yes; then
23569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23571as_fn_error 77 "cannot compute sizeof (ssize_t)
23572See \`config.log' for more details" "$LINENO" 5; }
23573 else
23574 ac_cv_sizeof_ssize_t=0
23575 fi
23576fi
23577
23578fi
23579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23580$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23581
23582
23583
23584cat >>confdefs.h <<_ACEOF
23585#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23586_ACEOF
23587
23588
23589
cristy3ed852e2009-09-05 21:47:34 +000023590# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23591# The cast to long int works around a bug in the HP C Compiler
23592# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23593# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23594# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023596$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023597if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023598 $as_echo_n "(cached) " >&6
23599else
cristy8b350f62009-11-15 23:12:43 +000023600 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 +000023601
cristy3ed852e2009-09-05 21:47:34 +000023602else
cristy8b350f62009-11-15 23:12:43 +000023603 if test "$ac_cv_type_unsigned_intp" = yes; then
23604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023606as_fn_error 77 "cannot compute sizeof (unsigned int*)
23607See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023608 else
23609 ac_cv_sizeof_unsigned_intp=0
23610 fi
23611fi
cristy8b350f62009-11-15 23:12:43 +000023612
cristy3ed852e2009-09-05 21:47:34 +000023613fi
cristy8b350f62009-11-15 23:12:43 +000023614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023615$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23616
23617
23618
23619cat >>confdefs.h <<_ACEOF
23620#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23621_ACEOF
23622
23623
23624
23625#
23626# Compute sized types for current CPU and compiler options.
23627#
23628
cristy8b350f62009-11-15 23:12:43 +000023629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023630$as_echo_n "checking for signed 8-bit type... " >&6; }
23631INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23633$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023634
23635
cristy8b350f62009-11-15 23:12:43 +000023636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023637$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23638UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23640$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023641
23642
cristy8b350f62009-11-15 23:12:43 +000023643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023644$as_echo_n "checking for signed 16-bit type... " >&6; }
23645INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23647$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023648
23649
cristy8b350f62009-11-15 23:12:43 +000023650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023651$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23652UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23654$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023655
23656
cristy8b350f62009-11-15 23:12:43 +000023657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023658$as_echo_n "checking for signed 32-bit type... " >&6; }
23659INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023660INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023661if test $ac_cv_sizeof_signed_int -eq 4; then
23662 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023663 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023664elif test $ac_cv_sizeof_signed_long -eq 4; then
23665 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023666 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023667fi
cristyad38abe2012-12-23 23:03:21 +000023668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23669$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023670
23671
cristy6d5e20f2011-04-25 13:48:54 +000023672
cristy8b350f62009-11-15 23:12:43 +000023673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023674$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23675UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023676UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023677if test $ac_cv_sizeof_unsigned_int -eq 4; then
23678 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023679 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023680elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23681 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023682 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023683fi
cristyad38abe2012-12-23 23:03:21 +000023684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23685$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023686
23687
cristy6d5e20f2011-04-25 13:48:54 +000023688
cristy8b350f62009-11-15 23:12:43 +000023689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023690$as_echo_n "checking for signed 64-bit type... " >&6; }
23691INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023692INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023693if test $ac_cv_sizeof_signed_long -eq 8; then
23694 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023695 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023696elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23697 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023698 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023699fi
cristy3a99dcf2011-12-17 01:29:40 +000023700case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023701 mingw* )
23702 INT64_F='"I64"'
23703 ;;
23704esac
cristyad38abe2012-12-23 23:03:21 +000023705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23706$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023707
23708
cristy6d5e20f2011-04-25 13:48:54 +000023709
cristy8b350f62009-11-15 23:12:43 +000023710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023711$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23712UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023713UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023714if test $ac_cv_sizeof_unsigned_long -eq 8; then
23715 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023716 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023717elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23718 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023719 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023720fi
cristy3a99dcf2011-12-17 01:29:40 +000023721case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023722 mingw* )
23723 UINT64_F='"I64"'
23724 ;;
23725esac
cristyad38abe2012-12-23 23:03:21 +000023726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23727$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023728
23729
cristy6d5e20f2011-04-25 13:48:54 +000023730
cristy8b350f62009-11-15 23:12:43 +000023731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023732$as_echo_n "checking for unsigned maximum type... " >&6; }
23733UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023734UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023735if test "$UINT64_T" != 'none'; then
23736 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023737 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023738elif test "$UINT32_T" != 'none'; then
23739 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023740 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023741fi
cristyad38abe2012-12-23 23:03:21 +000023742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23743$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023744
23745
cristy6d5e20f2011-04-25 13:48:54 +000023746
cristy8b350f62009-11-15 23:12:43 +000023747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023748$as_echo_n "checking for pointer difference type... " >&6; }
23749UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023750UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023751if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23752 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023753 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023754elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23755 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023756 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023757fi
cristyad38abe2012-12-23 23:03:21 +000023758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23759$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023760
23761
cristy6d5e20f2011-04-25 13:48:54 +000023762
cristy8b350f62009-11-15 23:12:43 +000023763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023764$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023766/* end confdefs.h. */
23767
23768int
23769main ()
23770{
23771{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23772 ;
23773 return 0;
23774}
23775_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023776if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23778$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023779else
cristyad38abe2012-12-23 23:03:21 +000023780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23781$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023783$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023785/* end confdefs.h. */
23786
23787int
23788main ()
23789{
23790{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23791 ;
23792 return 0;
23793}
23794_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023795if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23797$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023798
cristy8b350f62009-11-15 23:12:43 +000023799$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023800
23801else
cristyad38abe2012-12-23 23:03:21 +000023802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23803$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023804
cristy8b350f62009-11-15 23:12:43 +000023805$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023806
23807fi
cristy3ed852e2009-09-05 21:47:34 +000023808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23809fi
cristy3ed852e2009-09-05 21:47:34 +000023810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23811
23812########
23813#
23814# Check for functions
23815#
23816########
cristy8b350f62009-11-15 23:12:43 +000023817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023818$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023819if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023820 $as_echo_n "(cached) " >&6
23821else
cristy8b350f62009-11-15 23:12:43 +000023822 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023823 ac_cv_func_closedir_void=yes
23824else
cristy8b350f62009-11-15 23:12:43 +000023825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023826/* end confdefs.h. */
23827$ac_includes_default
23828#include <$ac_header_dirent>
23829#ifndef __cplusplus
23830int closedir ();
23831#endif
23832
23833int
23834main ()
23835{
23836return closedir (opendir (".")) != 0;
23837 ;
23838 return 0;
23839}
23840_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023841if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023842 ac_cv_func_closedir_void=no
23843else
cristy8b350f62009-11-15 23:12:43 +000023844 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023845fi
cristy8b350f62009-11-15 23:12:43 +000023846rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23847 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023848fi
23849
cristy3ed852e2009-09-05 21:47:34 +000023850fi
cristy8b350f62009-11-15 23:12:43 +000023851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023852$as_echo "$ac_cv_func_closedir_void" >&6; }
23853if test $ac_cv_func_closedir_void = yes; then
23854
cristy8b350f62009-11-15 23:12:43 +000023855$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023856
23857fi
23858
cristycd4c5312009-11-22 01:19:08 +000023859
23860
23861
23862 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023863do :
23864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023865ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23866"
cristy98dddb52010-11-04 00:30:15 +000023867if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023868 cat >>confdefs.h <<_ACEOF
23869#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23870_ACEOF
23871
23872fi
23873
23874done
23875
cristycd4c5312009-11-22 01:19:08 +000023876
23877
23878
23879
23880
23881
23882
cristy3ed852e2009-09-05 21:47:34 +000023883for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023884do :
23885 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023886if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023887 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023888#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023889_ACEOF
23890
23891fi
23892done
23893
cristy8b350f62009-11-15 23:12:43 +000023894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023895$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023896if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023897 $as_echo_n "(cached) " >&6
23898else
cristy8b350f62009-11-15 23:12:43 +000023899 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023900 ac_cv_func_mmap_fixed_mapped=no
23901else
cristy8b350f62009-11-15 23:12:43 +000023902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023903/* end confdefs.h. */
23904$ac_includes_default
23905/* malloc might have been renamed as rpl_malloc. */
23906#undef malloc
23907
23908/* Thanks to Mike Haertel and Jim Avera for this test.
23909 Here is a matrix of mmap possibilities:
23910 mmap private not fixed
23911 mmap private fixed at somewhere currently unmapped
23912 mmap private fixed at somewhere already mapped
23913 mmap shared not fixed
23914 mmap shared fixed at somewhere currently unmapped
23915 mmap shared fixed at somewhere already mapped
23916 For private mappings, we should verify that changes cannot be read()
23917 back from the file, nor mmap's back from the file at a different
23918 address. (There have been systems where private was not correctly
23919 implemented like the infamous i386 svr4.0, and systems where the
23920 VM page cache was not coherent with the file system buffer cache
23921 like early versions of FreeBSD and possibly contemporary NetBSD.)
23922 For shared mappings, we should conversely verify that changes get
23923 propagated back to all the places they're supposed to be.
23924
23925 Grep wants private fixed already mapped.
23926 The main things grep needs to know about mmap are:
23927 * does it exist and is it safe to write into the mmap'd area
23928 * how to use it (BSD variants) */
23929
23930#include <fcntl.h>
23931#include <sys/mman.h>
23932
23933#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23934char *malloc ();
23935#endif
23936
23937/* This mess was copied from the GNU getpagesize.h. */
23938#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000023939# ifdef _SC_PAGESIZE
23940# define getpagesize() sysconf(_SC_PAGESIZE)
23941# else /* no _SC_PAGESIZE */
23942# ifdef HAVE_SYS_PARAM_H
23943# include <sys/param.h>
23944# ifdef EXEC_PAGESIZE
23945# define getpagesize() EXEC_PAGESIZE
23946# else /* no EXEC_PAGESIZE */
23947# ifdef NBPG
23948# define getpagesize() NBPG * CLSIZE
23949# ifndef CLSIZE
23950# define CLSIZE 1
23951# endif /* no CLSIZE */
23952# else /* no NBPG */
23953# ifdef NBPC
23954# define getpagesize() NBPC
23955# else /* no NBPC */
23956# ifdef PAGESIZE
23957# define getpagesize() PAGESIZE
23958# endif /* PAGESIZE */
23959# endif /* no NBPC */
23960# endif /* no NBPG */
23961# endif /* no EXEC_PAGESIZE */
23962# else /* no HAVE_SYS_PARAM_H */
23963# define getpagesize() 8192 /* punt totally */
23964# endif /* no HAVE_SYS_PARAM_H */
23965# endif /* no _SC_PAGESIZE */
23966
23967#endif /* no HAVE_GETPAGESIZE */
23968
23969int
23970main ()
23971{
23972 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000023973 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000023974 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000023975 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000023976
23977 pagesize = getpagesize ();
23978
23979 /* First, make a file with some known garbage in it. */
23980 data = (char *) malloc (pagesize);
23981 if (!data)
23982 return 1;
23983 for (i = 0; i < pagesize; ++i)
23984 *(data + i) = rand ();
23985 umask (0);
23986 fd = creat ("conftest.mmap", 0600);
23987 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023988 return 2;
cristy3ed852e2009-09-05 21:47:34 +000023989 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023990 return 3;
cristy3ed852e2009-09-05 21:47:34 +000023991 close (fd);
23992
cristycd4c5312009-11-22 01:19:08 +000023993 /* Next, check that the tail of a page is zero-filled. File must have
23994 non-zero length, otherwise we risk SIGBUS for entire page. */
23995 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23996 if (fd2 < 0)
23997 return 4;
cristyc54f5d42009-11-27 21:36:31 +000023998 cdata2 = "";
23999 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024000 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024001 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024002 if (data2 == MAP_FAILED)
24003 return 6;
24004 for (i = 0; i < pagesize; ++i)
24005 if (*(data2 + i))
24006 return 7;
24007 close (fd2);
24008 if (munmap (data2, pagesize))
24009 return 8;
24010
cristy3ed852e2009-09-05 21:47:34 +000024011 /* Next, try to mmap the file at a fixed address which already has
24012 something else allocated at it. If we can, also make sure that
24013 we see the same garbage. */
24014 fd = open ("conftest.mmap", O_RDWR);
24015 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024016 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024017 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24018 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024019 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024020 for (i = 0; i < pagesize; ++i)
24021 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024022 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024023
24024 /* Finally, make sure that changes to the mapped area do not
24025 percolate back to the file as seen by read(). (This is a bug on
24026 some variants of i386 svr4.0.) */
24027 for (i = 0; i < pagesize; ++i)
24028 *(data2 + i) = *(data2 + i) + 1;
24029 data3 = (char *) malloc (pagesize);
24030 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024031 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024032 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024033 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024034 for (i = 0; i < pagesize; ++i)
24035 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024036 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024037 close (fd);
24038 return 0;
24039}
24040_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024041if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024042 ac_cv_func_mmap_fixed_mapped=yes
24043else
cristy8b350f62009-11-15 23:12:43 +000024044 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024045fi
cristy8b350f62009-11-15 23:12:43 +000024046rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24047 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024048fi
24049
cristy3ed852e2009-09-05 21:47:34 +000024050fi
cristy8b350f62009-11-15 23:12:43 +000024051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024052$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24053if test $ac_cv_func_mmap_fixed_mapped = yes; then
24054
cristy8b350f62009-11-15 23:12:43 +000024055$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024056
24057fi
cristycd4c5312009-11-22 01:19:08 +000024058rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024059
cristy3ed852e2009-09-05 21:47:34 +000024060for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024061do :
24062 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024063if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024064 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024065#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024066_ACEOF
24067
24068fi
24069
24070done
24071
cristy3ed852e2009-09-05 21:47:34 +000024072for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024073do :
24074 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24075ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024076if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024077 cat >>confdefs.h <<_ACEOF
24078#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24079_ACEOF
24080
24081fi
24082done
24083
24084if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024086$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024087if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024088 $as_echo_n "(cached) " >&6
24089else
cristy8b350f62009-11-15 23:12:43 +000024090 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024091 ac_cv_func_fork_works=cross
24092else
cristy8b350f62009-11-15 23:12:43 +000024093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024094/* end confdefs.h. */
24095$ac_includes_default
24096int
24097main ()
24098{
24099
24100 /* By Ruediger Kuhlmann. */
24101 return fork () < 0;
24102
24103 ;
24104 return 0;
24105}
24106_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024107if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024108 ac_cv_func_fork_works=yes
24109else
cristy8b350f62009-11-15 23:12:43 +000024110 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024111fi
cristy8b350f62009-11-15 23:12:43 +000024112rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24113 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024114fi
24115
cristy3ed852e2009-09-05 21:47:34 +000024116fi
cristy8b350f62009-11-15 23:12:43 +000024117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024118$as_echo "$ac_cv_func_fork_works" >&6; }
24119
24120else
24121 ac_cv_func_fork_works=$ac_cv_func_fork
24122fi
24123if test "x$ac_cv_func_fork_works" = xcross; then
24124 case $host in
24125 *-*-amigaos* | *-*-msdosdjgpp*)
24126 # Override, as these systems have only a dummy fork() stub
24127 ac_cv_func_fork_works=no
24128 ;;
24129 *)
24130 ac_cv_func_fork_works=yes
24131 ;;
24132 esac
cristy8b350f62009-11-15 23:12:43 +000024133 { $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 +000024134$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24135fi
24136ac_cv_func_vfork_works=$ac_cv_func_vfork
24137if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024139$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024140if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024141 $as_echo_n "(cached) " >&6
24142else
cristy8b350f62009-11-15 23:12:43 +000024143 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024144 ac_cv_func_vfork_works=cross
24145else
cristy8b350f62009-11-15 23:12:43 +000024146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024147/* end confdefs.h. */
24148/* Thanks to Paul Eggert for this test. */
24149$ac_includes_default
24150#include <sys/wait.h>
24151#ifdef HAVE_VFORK_H
24152# include <vfork.h>
24153#endif
24154/* On some sparc systems, changes by the child to local and incoming
24155 argument registers are propagated back to the parent. The compiler
24156 is told about this with #include <vfork.h>, but some compilers
24157 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24158 static variable whose address is put into a register that is
24159 clobbered by the vfork. */
24160static void
24161#ifdef __cplusplus
24162sparc_address_test (int arg)
24163# else
24164sparc_address_test (arg) int arg;
24165#endif
24166{
24167 static pid_t child;
24168 if (!child) {
24169 child = vfork ();
24170 if (child < 0) {
24171 perror ("vfork");
24172 _exit(2);
24173 }
24174 if (!child) {
24175 arg = getpid();
24176 write(-1, "", 0);
24177 _exit (arg);
24178 }
24179 }
24180}
24181
24182int
24183main ()
24184{
24185 pid_t parent = getpid ();
24186 pid_t child;
24187
24188 sparc_address_test (0);
24189
24190 child = vfork ();
24191
24192 if (child == 0) {
24193 /* Here is another test for sparc vfork register problems. This
24194 test uses lots of local variables, at least as many local
24195 variables as main has allocated so far including compiler
24196 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24197 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24198 reuse the register of parent for one of the local variables,
24199 since it will think that parent can't possibly be used any more
24200 in this routine. Assigning to the local variable will thus
24201 munge parent in the parent process. */
24202 pid_t
24203 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24204 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24205 /* Convince the compiler that p..p7 are live; otherwise, it might
24206 use the same hardware register for all 8 local variables. */
24207 if (p != p1 || p != p2 || p != p3 || p != p4
24208 || p != p5 || p != p6 || p != p7)
24209 _exit(1);
24210
24211 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24212 from child file descriptors. If the child closes a descriptor
24213 before it execs or exits, this munges the parent's descriptor
24214 as well. Test for this by closing stdout in the child. */
24215 _exit(close(fileno(stdout)) != 0);
24216 } else {
24217 int status;
24218 struct stat st;
24219
24220 while (wait(&status) != child)
24221 ;
24222 return (
24223 /* Was there some problem with vforking? */
24224 child < 0
24225
24226 /* Did the child fail? (This shouldn't happen.) */
24227 || status
24228
24229 /* Did the vfork/compiler bug occur? */
24230 || parent != getpid()
24231
24232 /* Did the file descriptor bug occur? */
24233 || fstat(fileno(stdout), &st) != 0
24234 );
24235 }
24236}
24237_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024238if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024239 ac_cv_func_vfork_works=yes
24240else
cristy8b350f62009-11-15 23:12:43 +000024241 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024242fi
cristy8b350f62009-11-15 23:12:43 +000024243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24244 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024245fi
24246
cristy3ed852e2009-09-05 21:47:34 +000024247fi
cristy8b350f62009-11-15 23:12:43 +000024248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024249$as_echo "$ac_cv_func_vfork_works" >&6; }
24250
24251fi;
24252if test "x$ac_cv_func_fork_works" = xcross; then
24253 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024254 { $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 +000024255$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24256fi
24257
24258if test "x$ac_cv_func_vfork_works" = xyes; then
24259
cristy8b350f62009-11-15 23:12:43 +000024260$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024261
24262else
24263
cristy8b350f62009-11-15 23:12:43 +000024264$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024265
24266fi
24267if test "x$ac_cv_func_fork_works" = xyes; then
24268
cristy8b350f62009-11-15 23:12:43 +000024269$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024270
24271fi
24272
cristy8b350f62009-11-15 23:12:43 +000024273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024274$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024275if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024276 $as_echo_n "(cached) " >&6
24277else
cristy8b350f62009-11-15 23:12:43 +000024278 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024279 ac_cv_func_memcmp_working=no
24280else
cristy8b350f62009-11-15 23:12:43 +000024281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024282/* end confdefs.h. */
24283$ac_includes_default
24284int
24285main ()
24286{
24287
24288 /* Some versions of memcmp are not 8-bit clean. */
24289 char c0 = '\100', c1 = '\200', c2 = '\201';
24290 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24291 return 1;
24292
24293 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24294 or more and with at least one buffer not starting on a 4-byte boundary.
24295 William Lewis provided this test program. */
24296 {
24297 char foo[21];
24298 char bar[21];
24299 int i;
24300 for (i = 0; i < 4; i++)
24301 {
24302 char *a = foo + i;
24303 char *b = bar + i;
24304 strcpy (a, "--------01111111");
24305 strcpy (b, "--------10000000");
24306 if (memcmp (a, b, 16) >= 0)
24307 return 1;
24308 }
24309 return 0;
24310 }
24311
24312 ;
24313 return 0;
24314}
24315_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024316if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024317 ac_cv_func_memcmp_working=yes
24318else
cristy8b350f62009-11-15 23:12:43 +000024319 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024320fi
cristy8b350f62009-11-15 23:12:43 +000024321rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24322 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024323fi
24324
cristy3ed852e2009-09-05 21:47:34 +000024325fi
cristy8b350f62009-11-15 23:12:43 +000024326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024327$as_echo "$ac_cv_func_memcmp_working" >&6; }
24328test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24329 *" memcmp.$ac_objext "* ) ;;
24330 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24331 ;;
24332esac
24333
24334
cristy3ed852e2009-09-05 21:47:34 +000024335for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024336do :
24337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24338ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024339if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024340 cat >>confdefs.h <<_ACEOF
24341#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24342_ACEOF
24343
24344fi
24345
24346done
24347
cristy8b350f62009-11-15 23:12:43 +000024348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024349$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024350if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024351 $as_echo_n "(cached) " >&6
24352else
24353 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24354 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24355 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024357/* end confdefs.h. */
24358$ac_includes_default
24359#ifdef HAVE_SYS_SELECT_H
24360# include <sys/select.h>
24361#endif
24362#ifdef HAVE_SYS_SOCKET_H
24363# include <sys/socket.h>
24364#endif
24365
24366int
24367main ()
24368{
24369extern int select ($ac_arg1,
24370 $ac_arg234, $ac_arg234, $ac_arg234,
24371 $ac_arg5);
24372 ;
24373 return 0;
24374}
24375_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024376if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024377 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024378fi
cristy3ed852e2009-09-05 21:47:34 +000024379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24380 done
24381 done
24382done
24383# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024384: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024385
24386fi
cristy8b350f62009-11-15 23:12:43 +000024387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024388$as_echo "$ac_cv_func_select_args" >&6; }
24389ac_save_IFS=$IFS; IFS=','
24390set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24391IFS=$ac_save_IFS
24392shift
24393
24394cat >>confdefs.h <<_ACEOF
24395#define SELECT_TYPE_ARG1 $1
24396_ACEOF
24397
24398
24399cat >>confdefs.h <<_ACEOF
24400#define SELECT_TYPE_ARG234 ($2)
24401_ACEOF
24402
24403
24404cat >>confdefs.h <<_ACEOF
24405#define SELECT_TYPE_ARG5 ($3)
24406_ACEOF
24407
24408rm -f conftest*
24409
cristyda16f162011-02-19 23:52:17 +000024410if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024411 $as_echo_n "(cached) " >&6
24412else
24413 ac_cv_func_setvbuf_reversed=no
24414fi
24415
24416
cristy8b350f62009-11-15 23:12:43 +000024417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024418$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024419if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024420 $as_echo_n "(cached) " >&6
24421else
cristy8b350f62009-11-15 23:12:43 +000024422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024423/* end confdefs.h. */
24424#include <sys/types.h>
24425#include <signal.h>
24426
24427int
24428main ()
24429{
24430return *(signal (0, 0)) (0) == 1;
24431 ;
24432 return 0;
24433}
24434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024435if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024436 ac_cv_type_signal=int
24437else
cristy8b350f62009-11-15 23:12:43 +000024438 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024439fi
cristy3ed852e2009-09-05 21:47:34 +000024440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24441fi
cristy8b350f62009-11-15 23:12:43 +000024442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024443$as_echo "$ac_cv_type_signal" >&6; }
24444
24445cat >>confdefs.h <<_ACEOF
24446#define RETSIGTYPE $ac_cv_type_signal
24447_ACEOF
24448
24449
cristy8b350f62009-11-15 23:12:43 +000024450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024451$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024452if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024453 $as_echo_n "(cached) " >&6
24454else
cristy8b350f62009-11-15 23:12:43 +000024455 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024456 ac_cv_func_strtod=no
24457else
cristy8b350f62009-11-15 23:12:43 +000024458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024459/* end confdefs.h. */
24460
24461$ac_includes_default
24462#ifndef strtod
24463double strtod ();
24464#endif
24465int
24466main()
24467{
24468 {
24469 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24470 char *string = " +69";
24471 char *term;
24472 double value;
24473 value = strtod (string, &term);
24474 if (value != 69 || term != (string + 4))
24475 return 1;
24476 }
24477
24478 {
24479 /* Under Solaris 2.4, strtod returns the wrong value for the
24480 terminating character under some conditions. */
24481 char *string = "NaN";
24482 char *term;
24483 strtod (string, &term);
24484 if (term != string && *(term - 1) == 0)
24485 return 1;
24486 }
24487 return 0;
24488}
24489
24490_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024491if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024492 ac_cv_func_strtod=yes
24493else
cristy8b350f62009-11-15 23:12:43 +000024494 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024495fi
cristy8b350f62009-11-15 23:12:43 +000024496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24497 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024498fi
24499
cristy3ed852e2009-09-05 21:47:34 +000024500fi
cristy8b350f62009-11-15 23:12:43 +000024501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024502$as_echo "$ac_cv_func_strtod" >&6; }
24503if test $ac_cv_func_strtod = no; then
24504 case " $LIBOBJS " in
24505 *" strtod.$ac_objext "* ) ;;
24506 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24507 ;;
24508esac
24509
cristy8b350f62009-11-15 23:12:43 +000024510ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024511if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024512
cristy3ed852e2009-09-05 21:47:34 +000024513fi
24514
cristy3ed852e2009-09-05 21:47:34 +000024515if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024517$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024518if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024519 $as_echo_n "(cached) " >&6
24520else
24521 ac_check_lib_save_LIBS=$LIBS
24522LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024524/* end confdefs.h. */
24525
24526/* Override any GCC internal prototype to avoid an error.
24527 Use char because int might match the return type of a GCC
24528 builtin and then its argument prototype would still apply. */
24529#ifdef __cplusplus
24530extern "C"
24531#endif
24532char pow ();
24533int
24534main ()
24535{
24536return pow ();
24537 ;
24538 return 0;
24539}
24540_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024541if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024542 ac_cv_lib_m_pow=yes
24543else
cristy8b350f62009-11-15 23:12:43 +000024544 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024545fi
cristy8b350f62009-11-15 23:12:43 +000024546rm -f core conftest.err conftest.$ac_objext \
24547 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024548LIBS=$ac_check_lib_save_LIBS
24549fi
cristy8b350f62009-11-15 23:12:43 +000024550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024551$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024552if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024553 POW_LIB=-lm
24554else
cristy8b350f62009-11-15 23:12:43 +000024555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024556$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24557fi
24558
24559fi
24560
24561fi
24562
cristy7d4a1d62011-10-13 15:54:12 +000024563ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24564if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24565 ac_have_decl=1
24566else
24567 ac_have_decl=0
24568fi
24569
24570cat >>confdefs.h <<_ACEOF
24571#define HAVE_DECL_STRERROR_R $ac_have_decl
24572_ACEOF
24573
24574for ac_func in strerror_r
24575do :
24576 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24577if test "x$ac_cv_func_strerror_r" = xyes; then :
24578 cat >>confdefs.h <<_ACEOF
24579#define HAVE_STRERROR_R 1
24580_ACEOF
24581
24582fi
24583done
24584
24585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24586$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24587if ${ac_cv_func_strerror_r_char_p+:} false; then :
24588 $as_echo_n "(cached) " >&6
24589else
24590
24591 ac_cv_func_strerror_r_char_p=no
24592 if test $ac_cv_have_decl_strerror_r = yes; then
24593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24594/* end confdefs.h. */
24595$ac_includes_default
24596int
24597main ()
24598{
24599
24600 char buf[100];
24601 char x = *strerror_r (0, buf, sizeof buf);
24602 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024603 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024604
24605 ;
24606 return 0;
24607}
24608_ACEOF
24609if ac_fn_c_try_compile "$LINENO"; then :
24610 ac_cv_func_strerror_r_char_p=yes
24611fi
24612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24613 else
24614 # strerror_r is not declared. Choose between
24615 # systems that have relatively inaccessible declarations for the
24616 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24617 # former has a strerror_r that returns char*, while the latter
24618 # has a strerror_r that returns `int'.
24619 # This test should segfault on the DEC system.
24620 if test "$cross_compiling" = yes; then :
24621 :
24622else
24623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24624/* end confdefs.h. */
24625$ac_includes_default
24626 extern char *strerror_r ();
24627int
24628main ()
24629{
24630char buf[100];
24631 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024632 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024633 ;
24634 return 0;
24635}
24636_ACEOF
24637if ac_fn_c_try_run "$LINENO"; then :
24638 ac_cv_func_strerror_r_char_p=yes
24639fi
24640rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24641 conftest.$ac_objext conftest.beam conftest.$ac_ext
24642fi
24643
24644 fi
24645
24646fi
24647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24648$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24649if test $ac_cv_func_strerror_r_char_p = yes; then
24650
24651$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24652
24653fi
24654
cristy3ed852e2009-09-05 21:47:34 +000024655for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024656do :
24657 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024658if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024659 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024660#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024661_ACEOF
24662
cristy8b350f62009-11-15 23:12:43 +000024663ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024664if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024665
cristy8b350f62009-11-15 23:12:43 +000024666$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024667
24668fi
24669
24670fi
24671done
24672
24673
24674
cristy161b9262010-03-20 19:34:32 +000024675#
24676# Find math library
24677#
24678MATH_LIBS=''
24679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24680$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024681if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024682 $as_echo_n "(cached) " >&6
24683else
24684 ac_check_lib_save_LIBS=$LIBS
24685LIBS="-lm $LIBS"
24686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24687/* end confdefs.h. */
24688
24689/* Override any GCC internal prototype to avoid an error.
24690 Use char because int might match the return type of a GCC
24691 builtin and then its argument prototype would still apply. */
24692#ifdef __cplusplus
24693extern "C"
24694#endif
24695char sqrt ();
24696int
24697main ()
24698{
24699return sqrt ();
24700 ;
24701 return 0;
24702}
24703_ACEOF
24704if ac_fn_c_try_link "$LINENO"; then :
24705 ac_cv_lib_m_sqrt=yes
24706else
24707 ac_cv_lib_m_sqrt=no
24708fi
24709rm -f core conftest.err conftest.$ac_objext \
24710 conftest$ac_exeext conftest.$ac_ext
24711LIBS=$ac_check_lib_save_LIBS
24712fi
24713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24714$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024715if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024716 MATH_LIBS="-lm"
24717fi
24718
24719LIBS="$MATH_LIBS $LIBS"
24720
24721
cristy85572162013-01-04 19:19:32 +000024722#
24723# Find socket library
24724#
cristy8a5d7f42013-01-06 15:24:33 +000024725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
24726$as_echo_n "checking for library containing gethostbyname... " >&6; }
24727if ${ac_cv_search_gethostbyname+:} false; then :
24728 $as_echo_n "(cached) " >&6
24729else
24730 ac_func_search_save_LIBS=$LIBS
24731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24732/* end confdefs.h. */
24733
24734/* Override any GCC internal prototype to avoid an error.
24735 Use char because int might match the return type of a GCC
24736 builtin and then its argument prototype would still apply. */
24737#ifdef __cplusplus
24738extern "C"
24739#endif
24740char gethostbyname ();
24741int
24742main ()
24743{
24744return gethostbyname ();
24745 ;
24746 return 0;
24747}
24748_ACEOF
24749for ac_lib in '' resolv nsl; do
24750 if test -z "$ac_lib"; then
24751 ac_res="none required"
24752 else
24753 ac_res=-l$ac_lib
24754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24755 fi
24756 if ac_fn_c_try_link "$LINENO"; then :
24757 ac_cv_search_gethostbyname=$ac_res
24758fi
24759rm -f core conftest.err conftest.$ac_objext \
24760 conftest$ac_exeext
24761 if ${ac_cv_search_gethostbyname+:} false; then :
24762 break
24763fi
24764done
24765if ${ac_cv_search_gethostbyname+:} false; then :
24766
24767else
24768 ac_cv_search_gethostbyname=no
24769fi
24770rm conftest.$ac_ext
24771LIBS=$ac_func_search_save_LIBS
24772fi
24773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
24774$as_echo "$ac_cv_search_gethostbyname" >&6; }
24775ac_res=$ac_cv_search_gethostbyname
24776if test "$ac_res" != no; then :
24777 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24778
24779fi
24780
cristy85572162013-01-04 19:19:32 +000024781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
24782$as_echo_n "checking for library containing socket... " >&6; }
24783if ${ac_cv_search_socket+:} false; then :
24784 $as_echo_n "(cached) " >&6
24785else
24786 ac_func_search_save_LIBS=$LIBS
24787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24788/* end confdefs.h. */
24789
24790/* Override any GCC internal prototype to avoid an error.
24791 Use char because int might match the return type of a GCC
24792 builtin and then its argument prototype would still apply. */
24793#ifdef __cplusplus
24794extern "C"
24795#endif
24796char socket ();
24797int
24798main ()
24799{
24800return socket ();
24801 ;
24802 return 0;
24803}
24804_ACEOF
24805for ac_lib in '' socket; do
24806 if test -z "$ac_lib"; then
24807 ac_res="none required"
24808 else
24809 ac_res=-l$ac_lib
24810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24811 fi
24812 if ac_fn_c_try_link "$LINENO"; then :
24813 ac_cv_search_socket=$ac_res
24814fi
24815rm -f core conftest.err conftest.$ac_objext \
24816 conftest$ac_exeext
24817 if ${ac_cv_search_socket+:} false; then :
24818 break
24819fi
24820done
24821if ${ac_cv_search_socket+:} false; then :
24822
24823else
24824 ac_cv_search_socket=no
24825fi
24826rm conftest.$ac_ext
24827LIBS=$ac_func_search_save_LIBS
24828fi
24829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
24830$as_echo "$ac_cv_search_socket" >&6; }
24831ac_res=$ac_cv_search_socket
24832if test "$ac_res" != no; then :
24833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24834
cristy85572162013-01-04 19:19:32 +000024835
cristy8a5d7f42013-01-06 15:24:33 +000024836$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000024837
cristy03f187e2013-01-24 00:22:19 +000024838 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000024839
24840fi
24841
24842
24843for 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 +000024844do :
24845 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24846ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024847if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024848 cat >>confdefs.h <<_ACEOF
24849#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24850_ACEOF
24851
24852fi
24853done
24854
24855
cristye43a45e2009-09-28 14:49:00 +000024856#
24857# Check for clock_gettime().
24858#
cristy8b350f62009-11-15 23:12:43 +000024859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024860$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024861if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024862 $as_echo_n "(cached) " >&6
24863else
24864 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024866/* end confdefs.h. */
24867
24868/* Override any GCC internal prototype to avoid an error.
24869 Use char because int might match the return type of a GCC
24870 builtin and then its argument prototype would still apply. */
24871#ifdef __cplusplus
24872extern "C"
24873#endif
24874char clock_gettime ();
24875int
24876main ()
24877{
24878return clock_gettime ();
24879 ;
24880 return 0;
24881}
24882_ACEOF
24883for ac_lib in '' rt; do
24884 if test -z "$ac_lib"; then
24885 ac_res="none required"
24886 else
24887 ac_res=-l$ac_lib
24888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24889 fi
cristy8b350f62009-11-15 23:12:43 +000024890 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024891 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024892fi
cristy8b350f62009-11-15 23:12:43 +000024893rm -f core conftest.err conftest.$ac_objext \
24894 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024895 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024896 break
24897fi
24898done
cristyda16f162011-02-19 23:52:17 +000024899if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024900
cristye43a45e2009-09-28 14:49:00 +000024901else
24902 ac_cv_search_clock_gettime=no
24903fi
24904rm conftest.$ac_ext
24905LIBS=$ac_func_search_save_LIBS
24906fi
cristy8b350f62009-11-15 23:12:43 +000024907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024908$as_echo "$ac_cv_search_clock_gettime" >&6; }
24909ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024910if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24912
24913
cristy8b350f62009-11-15 23:12:43 +000024914$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024915
cristy8b350f62009-11-15 23:12:43 +000024916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024917$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024919/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024920
24921 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024922int
24923main ()
24924{
24925clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024926 ;
24927 return 0;
24928}
24929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024930if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024931
cristyad38abe2012-12-23 23:03:21 +000024932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24933$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000024934
cristy8b350f62009-11-15 23:12:43 +000024935$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024936
24937
24938else
cristyad38abe2012-12-23 23:03:21 +000024939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24940$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000024941
24942fi
cristye43a45e2009-09-28 14:49:00 +000024943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24944
24945else
24946
cristy8b350f62009-11-15 23:12:43 +000024947 for ac_func in gettimeofday ftime
24948do :
24949 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24950ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024951if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024952 cat >>confdefs.h <<_ACEOF
24953#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24954_ACEOF
24955 break
24956fi
24957done
24958
24959
24960
24961fi
24962
24963
cristy3ed852e2009-09-05 21:47:34 +000024964########
24965#
24966# Check for function prototypes
24967#
24968########
24969
cristy8b350f62009-11-15 23:12:43 +000024970ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024971#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024972"
cristyda16f162011-02-19 23:52:17 +000024973if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024974 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024975else
cristy8b350f62009-11-15 23:12:43 +000024976 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024977fi
24978
cristy3ed852e2009-09-05 21:47:34 +000024979cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024980#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024981_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024982ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024983#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024984"
cristyda16f162011-02-19 23:52:17 +000024985if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024986 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024987else
cristy8b350f62009-11-15 23:12:43 +000024988 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024989fi
24990
cristy3ed852e2009-09-05 21:47:34 +000024991cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024992#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024993_ACEOF
24994
24995
cristy8b350f62009-11-15 23:12:43 +000024996ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024997#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024998"
cristyda16f162011-02-19 23:52:17 +000024999if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025000 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025001else
cristy8b350f62009-11-15 23:12:43 +000025002 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025003fi
25004
cristy3ed852e2009-09-05 21:47:34 +000025005cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025006#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025007_ACEOF
25008
25009
cristy8b350f62009-11-15 23:12:43 +000025010ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025011#include <stdio.h>
25012#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025013"
cristyda16f162011-02-19 23:52:17 +000025014if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025015 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025016else
cristy8b350f62009-11-15 23:12:43 +000025017 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025018fi
25019
cristy3ed852e2009-09-05 21:47:34 +000025020cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025021#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025022_ACEOF
25023
25024
cristy3ed852e2009-09-05 21:47:34 +000025025########
25026#
25027# C++ Support Tests (For Magick++)
25028#
25029########
25030have_magick_plus_plus='no'
25031if test "$with_magick_plus_plus" = 'yes'; then
25032 OLIBS="$LIBS"
25033 LIBS=''
25034 ac_ext=cpp
25035ac_cpp='$CXXCPP $CPPFLAGS'
25036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25039
25040
25041 # Full set of headers used...
25042 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25043 # functional iomanip iosfwd iostream iterator list string strstream utility
25044 ac_ext=cpp
25045ac_cpp='$CXXCPP $CPPFLAGS'
25046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25049
25050 ac_ext=cpp
25051ac_cpp='$CXXCPP $CPPFLAGS'
25052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25055if test -z "$CXX"; then
25056 if test -n "$CCC"; then
25057 CXX=$CCC
25058 else
25059 if test -n "$ac_tool_prefix"; then
25060 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25061 do
25062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25063set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025065$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025066if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025067 $as_echo_n "(cached) " >&6
25068else
25069 if test -n "$CXX"; then
25070 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25071else
25072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25073for as_dir in $PATH
25074do
25075 IFS=$as_save_IFS
25076 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025077 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025079 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025081 break 2
25082 fi
25083done
cristy8b350f62009-11-15 23:12:43 +000025084 done
cristy3ed852e2009-09-05 21:47:34 +000025085IFS=$as_save_IFS
25086
25087fi
25088fi
25089CXX=$ac_cv_prog_CXX
25090if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025092$as_echo "$CXX" >&6; }
25093else
cristy8b350f62009-11-15 23:12:43 +000025094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025095$as_echo "no" >&6; }
25096fi
25097
25098
25099 test -n "$CXX" && break
25100 done
25101fi
25102if test -z "$CXX"; then
25103 ac_ct_CXX=$CXX
25104 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25105do
25106 # Extract the first word of "$ac_prog", so it can be a program name with args.
25107set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025109$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025110if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025111 $as_echo_n "(cached) " >&6
25112else
25113 if test -n "$ac_ct_CXX"; then
25114 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25115else
25116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25117for as_dir in $PATH
25118do
25119 IFS=$as_save_IFS
25120 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025121 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025123 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025125 break 2
25126 fi
25127done
cristy8b350f62009-11-15 23:12:43 +000025128 done
cristy3ed852e2009-09-05 21:47:34 +000025129IFS=$as_save_IFS
25130
25131fi
25132fi
25133ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25134if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025136$as_echo "$ac_ct_CXX" >&6; }
25137else
cristy8b350f62009-11-15 23:12:43 +000025138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025139$as_echo "no" >&6; }
25140fi
25141
25142
25143 test -n "$ac_ct_CXX" && break
25144done
25145
25146 if test "x$ac_ct_CXX" = x; then
25147 CXX="g++"
25148 else
25149 case $cross_compiling:$ac_tool_warned in
25150yes:)
cristy8b350f62009-11-15 23:12:43 +000025151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25153ac_tool_warned=yes ;;
25154esac
25155 CXX=$ac_ct_CXX
25156 fi
25157fi
25158
25159 fi
25160fi
25161# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025162$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025163set X $ac_compile
25164ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025165for ac_option in --version -v -V -qversion; do
25166 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025167case "(($ac_try" in
25168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25169 *) ac_try_echo=$ac_try;;
25170esac
cristy8b350f62009-11-15 23:12:43 +000025171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25172$as_echo "$ac_try_echo"; } >&5
25173 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025174 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025175 if test -s conftest.err; then
25176 sed '10a\
25177... rest of stderr output deleted ...
25178 10q' conftest.err >conftest.er1
25179 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025180 fi
cristycd4c5312009-11-22 01:19:08 +000025181 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25183 test $ac_status = 0; }
25184done
cristy3ed852e2009-09-05 21:47:34 +000025185
cristy8b350f62009-11-15 23:12:43 +000025186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025187$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025188if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025189 $as_echo_n "(cached) " >&6
25190else
cristy8b350f62009-11-15 23:12:43 +000025191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025192/* end confdefs.h. */
25193
25194int
25195main ()
25196{
25197#ifndef __GNUC__
25198 choke me
25199#endif
25200
25201 ;
25202 return 0;
25203}
25204_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025205if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025206 ac_compiler_gnu=yes
25207else
cristy8b350f62009-11-15 23:12:43 +000025208 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025209fi
cristy3ed852e2009-09-05 21:47:34 +000025210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25211ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25212
25213fi
cristy8b350f62009-11-15 23:12:43 +000025214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025215$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25216if test $ac_compiler_gnu = yes; then
25217 GXX=yes
25218else
25219 GXX=
25220fi
25221ac_test_CXXFLAGS=${CXXFLAGS+set}
25222ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025224$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025225if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025226 $as_echo_n "(cached) " >&6
25227else
25228 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25229 ac_cxx_werror_flag=yes
25230 ac_cv_prog_cxx_g=no
25231 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025233/* end confdefs.h. */
25234
25235int
25236main ()
25237{
25238
25239 ;
25240 return 0;
25241}
25242_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025243if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025244 ac_cv_prog_cxx_g=yes
25245else
cristy8b350f62009-11-15 23:12:43 +000025246 CXXFLAGS=""
25247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025248/* end confdefs.h. */
25249
25250int
25251main ()
25252{
25253
25254 ;
25255 return 0;
25256}
25257_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025258if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025259
cristy8b350f62009-11-15 23:12:43 +000025260else
25261 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025262 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025264/* end confdefs.h. */
25265
25266int
25267main ()
25268{
25269
25270 ;
25271 return 0;
25272}
25273_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025274if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025275 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025276fi
cristy3ed852e2009-09-05 21:47:34 +000025277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25278fi
cristy3ed852e2009-09-05 21:47:34 +000025279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25280fi
cristy3ed852e2009-09-05 21:47:34 +000025281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25282 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25283fi
cristy8b350f62009-11-15 23:12:43 +000025284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025285$as_echo "$ac_cv_prog_cxx_g" >&6; }
25286if test "$ac_test_CXXFLAGS" = set; then
25287 CXXFLAGS=$ac_save_CXXFLAGS
25288elif test $ac_cv_prog_cxx_g = yes; then
25289 if test "$GXX" = yes; then
25290 CXXFLAGS="-g -O2"
25291 else
25292 CXXFLAGS="-g"
25293 fi
25294else
25295 if test "$GXX" = yes; then
25296 CXXFLAGS="-O2"
25297 else
25298 CXXFLAGS=
25299 fi
25300fi
25301ac_ext=cpp
25302ac_cpp='$CXXCPP $CPPFLAGS'
25303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25306
cristy73bd4a52010-10-05 11:24:23 +000025307depcc="$CXX" am_compiler_list=
25308
25309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25310$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025311if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025312 $as_echo_n "(cached) " >&6
25313else
25314 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25315 # We make a subdir and do the tests there. Otherwise we can end up
25316 # making bogus files that we don't know about and never remove. For
25317 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025318 # making a dummy file named 'D' -- because '-MD' means "put the output
25319 # in D".
cristy7247bba2012-02-05 16:37:27 +000025320 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025321 mkdir conftest.dir
25322 # Copy depcomp to subdir because otherwise we won't find it if we're
25323 # using a relative directory.
25324 cp "$am_depcomp" conftest.dir
25325 cd conftest.dir
25326 # We will build objects and dependencies in a subdirectory because
25327 # it helps to detect inapplicable dependency modes. For instance
25328 # both Tru64's cc and ICC support -MD to output dependencies as a
25329 # side effect of compilation, but ICC will put the dependencies in
25330 # the current directory while Tru64 will put them in the object
25331 # directory.
25332 mkdir sub
25333
25334 am_cv_CXX_dependencies_compiler_type=none
25335 if test "$am_compiler_list" = ""; then
25336 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25337 fi
25338 am__universal=false
25339 case " $depcc " in #(
25340 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25341 esac
25342
25343 for depmode in $am_compiler_list; do
25344 # Setup a source with many dependencies, because some compilers
25345 # like to wrap large dependency lists on column 80 (with \), and
25346 # we should not choose a depcomp mode which is confused by this.
25347 #
25348 # We need to recreate these files for each test, as the compiler may
25349 # overwrite some of them when testing with obscure command lines.
25350 # This happens at least with the AIX C compiler.
25351 : > sub/conftest.c
25352 for i in 1 2 3 4 5 6; do
25353 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025354 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25355 # Solaris 10 /bin/sh.
25356 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025357 done
25358 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25359
cristyc0890a62012-07-19 00:18:20 +000025360 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025361 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025362 # handle '-M -o', and we need to detect this. Also, some Intel
25363 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025364 am__obj=sub/conftest.${OBJEXT-o}
25365 am__minus_obj="-o $am__obj"
25366 case $depmode in
25367 gcc)
25368 # This depmode causes a compiler race in universal mode.
25369 test "$am__universal" = false || continue
25370 ;;
25371 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025372 # After this tag, mechanisms are not by side-effect, so they'll
25373 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025374 if test "x$enable_dependency_tracking" = xyes; then
25375 continue
25376 else
25377 break
25378 fi
25379 ;;
cristy7247bba2012-02-05 16:37:27 +000025380 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025381 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025382 # not run yet. These depmodes are late enough in the game, and
25383 # so weak that their functioning should not be impacted.
25384 am__obj=conftest.${OBJEXT-o}
25385 am__minus_obj=
25386 ;;
25387 none) break ;;
25388 esac
25389 if depmode=$depmode \
25390 source=sub/conftest.c object=$am__obj \
25391 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25392 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25393 >/dev/null 2>conftest.err &&
25394 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25395 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25396 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25397 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25398 # icc doesn't choke on unknown options, it will just issue warnings
25399 # or remarks (even with -Werror). So we grep stderr for any message
25400 # that says an option was ignored or not supported.
25401 # When given -MP, icc 7.0 and 7.1 complain thusly:
25402 # icc: Command line warning: ignoring option '-M'; no argument required
25403 # The diagnosis changed in icc 8.0:
25404 # icc: Command line remark: option '-MP' not supported
25405 if (grep 'ignoring option' conftest.err ||
25406 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25407 am_cv_CXX_dependencies_compiler_type=$depmode
25408 break
25409 fi
25410 fi
25411 done
25412
25413 cd ..
25414 rm -rf conftest.dir
25415else
25416 am_cv_CXX_dependencies_compiler_type=none
25417fi
25418
25419fi
25420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25421$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25422CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25423
25424 if
25425 test "x$enable_dependency_tracking" != xno \
25426 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25427 am__fastdepCXX_TRUE=
25428 am__fastdepCXX_FALSE='#'
25429else
25430 am__fastdepCXX_TRUE='#'
25431 am__fastdepCXX_FALSE=
25432fi
25433
25434
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25436$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025437if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025438 $as_echo_n "(cached) " >&6
25439else
25440
25441 ac_ext=cpp
25442ac_cpp='$CXXCPP $CPPFLAGS'
25443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25446
25447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25448/* end confdefs.h. */
25449
25450int f(int x){return 1;}
25451int f(char x){return 1;}
25452int f(bool x){return 1;}
25453
25454int
25455main ()
25456{
25457bool b = true; return f(b);
25458 ;
25459 return 0;
25460}
25461_ACEOF
25462if ac_fn_cxx_try_compile "$LINENO"; then :
25463 ax_cv_cxx_bool=yes
25464else
25465 ax_cv_cxx_bool=no
25466fi
25467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25468 ac_ext=cpp
25469ac_cpp='$CXXCPP $CPPFLAGS'
25470ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25471ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25472ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25473
25474
25475fi
25476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25477$as_echo "$ax_cv_cxx_bool" >&6; }
25478if test "$ax_cv_cxx_bool" = yes; then
25479
25480$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25481
25482fi
25483
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25485$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025486if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025487 $as_echo_n "(cached) " >&6
25488else
25489
25490 ac_ext=cpp
25491ac_cpp='$CXXCPP $CPPFLAGS'
25492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25495
25496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25497/* end confdefs.h. */
25498namespace Outer { namespace Inner { int i = 0; }}
25499int
25500main ()
25501{
25502using namespace Outer::Inner; return i;
25503 ;
25504 return 0;
25505}
25506_ACEOF
25507if ac_fn_cxx_try_compile "$LINENO"; then :
25508 ax_cv_cxx_namespaces=yes
25509else
25510 ax_cv_cxx_namespaces=no
25511fi
25512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25513 ac_ext=cpp
25514ac_cpp='$CXXCPP $CPPFLAGS'
25515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25518
25519
25520fi
25521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25522$as_echo "$ax_cv_cxx_namespaces" >&6; }
25523if test "$ax_cv_cxx_namespaces" = yes; then
25524
25525$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25526
25527fi
25528
25529
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25531$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025532if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025533 $as_echo_n "(cached) " >&6
25534else
25535
25536 ac_ext=cpp
25537ac_cpp='$CXXCPP $CPPFLAGS'
25538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25541
25542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25543/* end confdefs.h. */
25544#include <iostream>
25545 std::istream& is = std::cin;
25546int
25547main ()
25548{
25549
25550 ;
25551 return 0;
25552}
25553_ACEOF
25554if ac_fn_cxx_try_compile "$LINENO"; then :
25555 ax_cv_cxx_have_std_namespace=yes
25556else
25557 ax_cv_cxx_have_std_namespace=no
25558fi
25559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25560 ac_ext=cpp
25561ac_cpp='$CXXCPP $CPPFLAGS'
25562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25565
25566
25567fi
25568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25569$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25570 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25571
25572$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25573
25574 fi
25575
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25577$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025578if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025579 $as_echo_n "(cached) " >&6
25580else
25581
25582
25583 ac_ext=cpp
25584ac_cpp='$CXXCPP $CPPFLAGS'
25585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25588
25589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25590/* end confdefs.h. */
25591#include <iostream>
25592#include <map>
25593#include <iomanip>
25594#include <cmath>
25595#ifdef HAVE_NAMESPACES
25596using namespace std;
25597#endif
25598int
25599main ()
25600{
25601return 0;
25602 ;
25603 return 0;
25604}
25605_ACEOF
25606if ac_fn_cxx_try_compile "$LINENO"; then :
25607 ac_cv_cxx_have_std_libs=yes
25608else
25609 ac_cv_cxx_have_std_libs=no
25610fi
25611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25612 ac_ext=cpp
25613ac_cpp='$CXXCPP $CPPFLAGS'
25614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25617
25618
25619fi
25620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25621$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25622if test "$ac_cv_cxx_have_std_libs" = yes; then
25623
25624$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25625
25626fi
25627
cristy3ed852e2009-09-05 21:47:34 +000025628
25629 OPENMP_CXXFLAGS=
25630 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025631if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025632 enableval=$enable_openmp;
25633fi
25634
25635 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25637$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025638if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025639 $as_echo_n "(cached) " >&6
25640else
cristy8b350f62009-11-15 23:12:43 +000025641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25642/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025643
25644#ifndef _OPENMP
25645 choke me
25646#endif
25647#include <omp.h>
25648int main () { return omp_get_num_threads (); }
25649
25650_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025651if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025652 ac_cv_prog_cxx_openmp='none needed'
25653else
cristy8b350f62009-11-15 23:12:43 +000025654 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025655 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25656 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025657 ac_save_CXXFLAGS=$CXXFLAGS
25658 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25660/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025661
25662#ifndef _OPENMP
25663 choke me
25664#endif
25665#include <omp.h>
25666int main () { return omp_get_num_threads (); }
25667
25668_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025669if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025670 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025671fi
cristy8b350f62009-11-15 23:12:43 +000025672rm -f core conftest.err conftest.$ac_objext \
25673 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025674 CXXFLAGS=$ac_save_CXXFLAGS
25675 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25676 break
25677 fi
25678 done
25679fi
cristy8b350f62009-11-15 23:12:43 +000025680rm -f core conftest.err conftest.$ac_objext \
25681 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025682fi
cristy8b350f62009-11-15 23:12:43 +000025683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025684$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25685 case $ac_cv_prog_cxx_openmp in #(
25686 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025687 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025688 *)
cristy8b350f62009-11-15 23:12:43 +000025689 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025690 esac
25691 fi
25692
25693
25694 ac_ext=c
25695ac_cpp='$CPP $CPPFLAGS'
25696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25698ac_compiler_gnu=$ac_cv_c_compiler_gnu
25699
25700
cristy8b350f62009-11-15 23:12:43 +000025701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025702$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25703 if \
cristy964cb7f2010-04-25 23:18:00 +000025704 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025705 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025706 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025707 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025708 have_magick_plus_plus='yes'
25709 else
25710 have_magick_plus_plus='no (failed tests)'
25711 fi
cristyad38abe2012-12-23 23:03:21 +000025712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
25713$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025714 LIBS="$OLIBS"
25715fi
cristy73bd4a52010-10-05 11:24:23 +000025716 if test "$have_magick_plus_plus" = 'yes'; then
25717 WITH_MAGICK_PLUS_PLUS_TRUE=
25718 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25719else
25720 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25721 WITH_MAGICK_PLUS_PLUS_FALSE=
25722fi
25723
cristy3ed852e2009-09-05 21:47:34 +000025724
25725# Only check for delegate libraries in subdirectories if requested.
25726if test "$enable_delegate_build" != 'no'; then
25727 # Check for delegate sub-directories and add -I & -L options as required.
25728 # This presumes that delegates are installed as detailed in the ImageMagick
25729 # README. If delegates are installed in a standard location where the
25730 # compiler will automatically find them then these options should not be
25731 # required.
25732
25733 #
25734 # Most delegates have includes in the same directory as the library, but not all...
25735 #
25736 # Includes
cristyfdc7d122013-08-17 20:46:45 +000025737 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick mupdf png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025738 if test -d "$builddir/$dir"; then
25739 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25740 else
25741 if test -d "$srcdirfull/$dir"; then
25742 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25743 fi
25744 fi
25745 done
25746
25747 # Libraries
cristyfdc7d122013-08-17 20:46:45 +000025748 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick mupdf png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025749 if test -d "$builddir/$dir/.libs"; then
25750 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25751 else
25752 if test -d "$srcdirfull/$dir/.libs"; then
25753 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25754 fi
25755 fi
25756 if test -d "$builddir/$dir"; then
25757 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25758 else
25759 if test -d "$srcdirfull/$dir"; then
25760 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25761 fi
25762 fi
25763 done
25764fi
25765
25766# Assume that delegate headers reside under same directory as ImageMagick
25767# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000025768MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000025769
25770#
25771# Find the X11 RGB database
25772#
cristy8b350f62009-11-15 23:12:43 +000025773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025774$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025775if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025776 $as_echo_n "(cached) " >&6
25777else
25778 # Look for the header file in a standard set of common directories.
25779# Check X11 before X11Rn because it is often a symlink to the current release.
25780 for ac_dir in \
25781 /lib/usr/lib/X11 \
25782 /usr/X11/lib \
25783 /usr/X11R4/lib \
25784 /usr/X11R5/lib \
25785 /usr/X11R6/lib \
25786 /usr/X11R7/lib \
25787 /usr/X386/lib \
25788 /usr/XFree86/lib/X11 \
25789 /usr/athena/lib \
25790 /usr/lib \
25791 /usr/lib/X11 \
25792 /usr/lib/X11R4 \
25793 /usr/lib/X11R5 \
25794 /usr/lib/X11R6 \
25795 /usr/lib/X11R7 \
25796 /usr/local/X11/lib \
25797 /usr/local/X11R4/lib \
25798 /usr/local/X11R5/lib \
25799 /usr/local/X11R6/lib \
25800 /usr/local/lib \
25801 /usr/local/lib/X11 \
25802 /usr/local/lib/X11R4 \
25803 /usr/local/lib/X11R5 \
25804 /usr/local/lib/X11R6 \
25805 /usr/local/lib/X11R7 \
25806 /usr/local/x11r5/lib \
25807 /usr/lpp/Xamples/lib \
25808 /usr/openwin/lib \
25809 /usr/openwin/share/lib \
25810 /usr/unsupported/lib \
25811 /usr/x386/lib \
25812 ; do
25813 if test -f "$ac_dir/X11/rgb.txt"; then
25814 im_cv_x_configure="$ac_dir/X11/"
25815 break
25816 elif test -f "$ac_dir/rgb.txt"; then
25817 im_cv_x_configure="$ac_dir/"
25818 break
25819 fi
25820
25821 done
25822fi
cristy8b350f62009-11-15 23:12:43 +000025823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025824$as_echo "$im_cv_x_configure" >&6; }
25825X11_CONFIGURE_PATH="$im_cv_x_configure"
25826case "${build_os}" in
25827 mingw* )
25828 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25829 ;;
25830esac
25831
25832cat >>confdefs.h <<_ACEOF
25833#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25834_ACEOF
25835
25836
25837#
25838# Find OpenMP library
25839#
25840GOMP_LIBS=''
25841if test "$enable_openmp" != 'no'; then
25842 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000025843 # Open64 (passes for GCC but uses different OpenMP implementation)
25844 if test "x$GOMP_LIBS" = x ; then
25845 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
25847$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
25848if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
25849 $as_echo_n "(cached) " >&6
25850else
25851 ac_check_lib_save_LIBS=$LIBS
25852LIBS="-lopenmp $LIBS"
25853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25854/* end confdefs.h. */
25855
25856/* Override any GCC internal prototype to avoid an error.
25857 Use char because int might match the return type of a GCC
25858 builtin and then its argument prototype would still apply. */
25859#ifdef __cplusplus
25860extern "C"
25861#endif
25862char omp_get_num_procs ();
25863int
25864main ()
25865{
25866return omp_get_num_procs ();
25867 ;
25868 return 0;
25869}
25870_ACEOF
25871if ac_fn_c_try_link "$LINENO"; then :
25872 ac_cv_lib_openmp_omp_get_num_procs=yes
25873else
25874 ac_cv_lib_openmp_omp_get_num_procs=no
25875fi
25876rm -f core conftest.err conftest.$ac_objext \
25877 conftest$ac_exeext conftest.$ac_ext
25878LIBS=$ac_check_lib_save_LIBS
25879fi
25880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
25881$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
25882if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
25883 GOMP_LIBS="-lopenmp"
25884fi
25885
25886 fi
25887 fi
25888 # GCC
25889 if test "x$GOMP_LIBS" = x ; then
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025891$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025892if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025893 $as_echo_n "(cached) " >&6
25894else
25895 ac_check_lib_save_LIBS=$LIBS
25896LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025898/* end confdefs.h. */
25899
25900/* Override any GCC internal prototype to avoid an error.
25901 Use char because int might match the return type of a GCC
25902 builtin and then its argument prototype would still apply. */
25903#ifdef __cplusplus
25904extern "C"
25905#endif
25906char GOMP_parallel_start ();
25907int
25908main ()
25909{
25910return GOMP_parallel_start ();
25911 ;
25912 return 0;
25913}
25914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025915if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025916 ac_cv_lib_gomp_GOMP_parallel_start=yes
25917else
cristy8b350f62009-11-15 23:12:43 +000025918 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025919fi
cristy8b350f62009-11-15 23:12:43 +000025920rm -f core conftest.err conftest.$ac_objext \
25921 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025922LIBS=$ac_check_lib_save_LIBS
25923fi
cristy8b350f62009-11-15 23:12:43 +000025924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025925$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025926if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025927 GOMP_LIBS="-lgomp"
25928fi
cristy18307f12011-12-30 01:20:16 +000025929
25930 fi
cristy3ed852e2009-09-05 21:47:34 +000025931 else
cristy18307f12011-12-30 01:20:16 +000025932 # Sun CC
25933 if test "x$GOMP_LIBS" = x ; then
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025935$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025936if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025937 $as_echo_n "(cached) " >&6
25938else
25939 ac_check_lib_save_LIBS=$LIBS
25940LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025942/* end confdefs.h. */
25943
25944/* Override any GCC internal prototype to avoid an error.
25945 Use char because int might match the return type of a GCC
25946 builtin and then its argument prototype would still apply. */
25947#ifdef __cplusplus
25948extern "C"
25949#endif
25950char sunw_mp_register_warn ();
25951int
25952main ()
25953{
25954return sunw_mp_register_warn ();
25955 ;
25956 return 0;
25957}
25958_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025959if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025960 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25961else
cristy8b350f62009-11-15 23:12:43 +000025962 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025963fi
cristy8b350f62009-11-15 23:12:43 +000025964rm -f core conftest.err conftest.$ac_objext \
25965 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025966LIBS=$ac_check_lib_save_LIBS
25967fi
cristy8b350f62009-11-15 23:12:43 +000025968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025969$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025970if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025971 GOMP_LIBS="-lmtsk"
25972fi
cristy18307f12011-12-30 01:20:16 +000025973
25974 fi
25975 # AIX xlc
25976 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000025977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025978$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025979if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025980 $as_echo_n "(cached) " >&6
25981else
25982 ac_check_lib_save_LIBS=$LIBS
25983LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025985/* end confdefs.h. */
25986
25987/* Override any GCC internal prototype to avoid an error.
25988 Use char because int might match the return type of a GCC
25989 builtin and then its argument prototype would still apply. */
25990#ifdef __cplusplus
25991extern "C"
25992#endif
25993char _xlsmpFlush ();
25994int
25995main ()
25996{
25997return _xlsmpFlush ();
25998 ;
25999 return 0;
26000}
26001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026002if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026003 ac_cv_lib_xlsmp__xlsmpFlush=yes
26004else
cristy8b350f62009-11-15 23:12:43 +000026005 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026006fi
cristy8b350f62009-11-15 23:12:43 +000026007rm -f core conftest.err conftest.$ac_objext \
26008 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026009LIBS=$ac_check_lib_save_LIBS
26010fi
cristy8b350f62009-11-15 23:12:43 +000026011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026012$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026013if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026014 GOMP_LIBS="-lxlsmp"
26015fi
cristy18307f12011-12-30 01:20:16 +000026016
26017 fi
26018 # SGI IRIX 6.5 MIPSpro C/C++
26019 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026021$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026022if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026023 $as_echo_n "(cached) " >&6
26024else
26025 ac_check_lib_save_LIBS=$LIBS
26026LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026028/* end confdefs.h. */
26029
26030/* Override any GCC internal prototype to avoid an error.
26031 Use char because int might match the return type of a GCC
26032 builtin and then its argument prototype would still apply. */
26033#ifdef __cplusplus
26034extern "C"
26035#endif
26036char mp_destroy ();
26037int
26038main ()
26039{
26040return mp_destroy ();
26041 ;
26042 return 0;
26043}
26044_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026045if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026046 ac_cv_lib_mp_mp_destroy=yes
26047else
cristy8b350f62009-11-15 23:12:43 +000026048 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026049fi
cristy8b350f62009-11-15 23:12:43 +000026050rm -f core conftest.err conftest.$ac_objext \
26051 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026052LIBS=$ac_check_lib_save_LIBS
26053fi
cristy8b350f62009-11-15 23:12:43 +000026054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026055$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026056if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026057 GOMP_LIBS="-lmp"
26058fi
cristy18307f12011-12-30 01:20:16 +000026059
26060 fi
cristy3ed852e2009-09-05 21:47:34 +000026061 fi
26062 LIBS="$GOMP_LIBS $LIBS"
26063fi
26064
26065
cristy3ed852e2009-09-05 21:47:34 +000026066
26067
26068#
26069# Check for umem.
26070#
26071have_umem='no'
26072UMEM_LIBS=''
26073if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026075$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26077$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026078 failed=0
26079 passed=0
cristy8b350f62009-11-15 23:12:43 +000026080 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026081if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026082 passed=`expr $passed + 1`
26083else
26084 failed=`expr $failed + 1`
26085fi
26086
26087
cristy8b350f62009-11-15 23:12:43 +000026088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026089$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026090if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026091 $as_echo_n "(cached) " >&6
26092else
26093 ac_check_lib_save_LIBS=$LIBS
26094LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026096/* end confdefs.h. */
26097
26098/* Override any GCC internal prototype to avoid an error.
26099 Use char because int might match the return type of a GCC
26100 builtin and then its argument prototype would still apply. */
26101#ifdef __cplusplus
26102extern "C"
26103#endif
26104char umem_alloc ();
26105int
26106main ()
26107{
26108return umem_alloc ();
26109 ;
26110 return 0;
26111}
26112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026113if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026114 ac_cv_lib_umem_umem_alloc=yes
26115else
cristy8b350f62009-11-15 23:12:43 +000026116 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026117fi
cristy8b350f62009-11-15 23:12:43 +000026118rm -f core conftest.err conftest.$ac_objext \
26119 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026120LIBS=$ac_check_lib_save_LIBS
26121fi
cristy8b350f62009-11-15 23:12:43 +000026122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026123$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026124if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026125 passed=`expr $passed + 1`
26126else
26127 failed=`expr $failed + 1`
26128fi
26129
cristy8b350f62009-11-15 23:12:43 +000026130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026131$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026132if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026133 $as_echo_n "(cached) " >&6
26134else
26135 ac_check_lib_save_LIBS=$LIBS
26136LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026138/* end confdefs.h. */
26139
26140/* Override any GCC internal prototype to avoid an error.
26141 Use char because int might match the return type of a GCC
26142 builtin and then its argument prototype would still apply. */
26143#ifdef __cplusplus
26144extern "C"
26145#endif
26146char umem_free ();
26147int
26148main ()
26149{
26150return umem_free ();
26151 ;
26152 return 0;
26153}
26154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026155if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026156 ac_cv_lib_umem_umem_free=yes
26157else
cristy8b350f62009-11-15 23:12:43 +000026158 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026159fi
cristy8b350f62009-11-15 23:12:43 +000026160rm -f core conftest.err conftest.$ac_objext \
26161 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026162LIBS=$ac_check_lib_save_LIBS
26163fi
cristy8b350f62009-11-15 23:12:43 +000026164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026165$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026166if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026167 passed=`expr $passed + 1`
26168else
26169 failed=`expr $failed + 1`
26170fi
26171
cristy8b350f62009-11-15 23:12:43 +000026172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026173$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26174 if test $passed -gt 0; then
26175 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26177$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026178 have_umem='no (failed tests)'
26179 else
26180 UMEM_LIBS='-lumem'
26181 LIBS="$UMEM_LIBS $LIBS"
26182
cristy8b350f62009-11-15 23:12:43 +000026183$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026184
cristyad38abe2012-12-23 23:03:21 +000026185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26186$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026187 have_umem='yes'
26188 fi
26189 else
cristyad38abe2012-12-23 23:03:21 +000026190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26191$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026192 fi
26193fi
cristy73bd4a52010-10-05 11:24:23 +000026194 if test "$have_umem" = 'yes'; then
26195 HasUMEM_TRUE=
26196 HasUMEM_FALSE='#'
26197else
26198 HasUMEM_TRUE='#'
26199 HasUMEM_FALSE=
26200fi
26201
cristy3ed852e2009-09-05 21:47:34 +000026202
26203
26204#
26205# Add support for ccmalloc memory debugging library if requested
26206#
26207have_ccmalloc='no'
26208CCMALLOC_LIBS=''
26209if test "$enable_ccmalloc" = 'yes'; then
26210 # Extract the first word of "ccmalloc", so it can be a program name with args.
26211set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026214if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026215 $as_echo_n "(cached) " >&6
26216else
26217 case $CCMALLOCDelegate in
26218 [\\/]* | ?:[\\/]*)
26219 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26220 ;;
26221 *)
26222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26223for as_dir in $PATH
26224do
26225 IFS=$as_save_IFS
26226 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026227 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026229 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026231 break 2
26232 fi
26233done
cristy8b350f62009-11-15 23:12:43 +000026234 done
cristy3ed852e2009-09-05 21:47:34 +000026235IFS=$as_save_IFS
26236
26237 ;;
26238esac
26239fi
26240CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26241if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026243$as_echo "$CCMALLOCDelegate" >&6; }
26244else
cristy8b350f62009-11-15 23:12:43 +000026245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026246$as_echo "no" >&6; }
26247fi
26248
26249
26250 if test -n "$CCMALLOCDelegate"; then
26251 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26252 OLIBS="$LIBS"
26253 # Assume that gcc is used with ccmalloc.
26254 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026256$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026257if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026258 $as_echo_n "(cached) " >&6
26259else
26260 ac_check_lib_save_LIBS=$LIBS
26261LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026263/* end confdefs.h. */
26264
26265/* Override any GCC internal prototype to avoid an error.
26266 Use char because int might match the return type of a GCC
26267 builtin and then its argument prototype would still apply. */
26268#ifdef __cplusplus
26269extern "C"
26270#endif
26271char ccmalloc_malloc ();
26272int
26273main ()
26274{
26275return ccmalloc_malloc ();
26276 ;
26277 return 0;
26278}
26279_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026280if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026281 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26282else
cristy8b350f62009-11-15 23:12:43 +000026283 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026284fi
cristy8b350f62009-11-15 23:12:43 +000026285rm -f core conftest.err conftest.$ac_objext \
26286 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026287LIBS=$ac_check_lib_save_LIBS
26288fi
cristy8b350f62009-11-15 23:12:43 +000026289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026290$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026291if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026292 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26293fi
26294
26295 if test -n "$CCMALLOC_LIBS"; then
26296 LIBS="$OLIBS"
26297 LIBS="$LIBS $CCMALLOC_LIBS"
26298 have_ccmalloc='yes'
26299 else
26300 LIBS="$OLIBS"
26301 fi
26302 fi
26303fi
26304
26305#
cristy944e51f2013-04-16 18:45:02 +000026306# Add support for 'huge pages' if requested
26307#
26308if test "x$enable_hugepages" != "xno"; then :
26309
26310
26311$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26312
26313
26314fi
26315
26316#
cristy3ed852e2009-09-05 21:47:34 +000026317# Add support for efence memory debugging library if requested
26318#
26319if test "$enable_efence" = 'yes'; then
26320 EFENCE_LIBS='-lefence'
26321 LIBS="$EFENCE_LIBS $LIBS"
26322fi
26323
cristy3ed852e2009-09-05 21:47:34 +000026324
26325#
26326# Check for BZLIB
26327#
26328
26329
26330# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026331if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026332 withval=$with_bzlib; with_bzlib=$withval
26333else
26334 with_bzlib='yes'
26335fi
26336
26337
26338if test "$with_bzlib" != 'yes'; then
26339 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26340fi
26341
26342have_bzlib='no'
26343if test "$with_bzlib" != 'no'; then
26344 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26346$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026348$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26350$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026351 failed=0
26352 passed=0
26353 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026354 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026355if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026356 passed=`expr $passed + 1`
26357else
26358 failed=`expr $failed + 1`
26359fi
26360
26361
cristy8b350f62009-11-15 23:12:43 +000026362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026363$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026364if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026365 $as_echo_n "(cached) " >&6
26366else
26367 ac_check_lib_save_LIBS=$LIBS
26368LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026370/* end confdefs.h. */
26371
26372/* Override any GCC internal prototype to avoid an error.
26373 Use char because int might match the return type of a GCC
26374 builtin and then its argument prototype would still apply. */
26375#ifdef __cplusplus
26376extern "C"
26377#endif
26378char BZ2_bzDecompress ();
26379int
26380main ()
26381{
26382return BZ2_bzDecompress ();
26383 ;
26384 return 0;
26385}
26386_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026387if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026388 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26389else
cristy8b350f62009-11-15 23:12:43 +000026390 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026391fi
cristy8b350f62009-11-15 23:12:43 +000026392rm -f core conftest.err conftest.$ac_objext \
26393 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026394LIBS=$ac_check_lib_save_LIBS
26395fi
cristy8b350f62009-11-15 23:12:43 +000026396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026397$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026398if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026399 found_libbz=`expr $found_libbz + 1`
26400fi
26401
26402 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026404$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026405if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026406 $as_echo_n "(cached) " >&6
26407else
26408 ac_check_lib_save_LIBS=$LIBS
26409LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026411/* end confdefs.h. */
26412
26413/* Override any GCC internal prototype to avoid an error.
26414 Use char because int might match the return type of a GCC
26415 builtin and then its argument prototype would still apply. */
26416#ifdef __cplusplus
26417extern "C"
26418#endif
26419char _imp__BZ2_decompress ();
26420int
26421main ()
26422{
26423return _imp__BZ2_decompress ();
26424 ;
26425 return 0;
26426}
26427_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026428if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026429 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26430else
cristy8b350f62009-11-15 23:12:43 +000026431 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026432fi
cristy8b350f62009-11-15 23:12:43 +000026433rm -f core conftest.err conftest.$ac_objext \
26434 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026435LIBS=$ac_check_lib_save_LIBS
26436fi
cristy8b350f62009-11-15 23:12:43 +000026437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026438$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026439if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026440 found_libbz=`expr $found_libbz + 1`
26441fi
26442
26443 fi
26444 if test $found_libbz -gt 0; then
26445 passed=`expr $passed + 1`
26446 else
26447 failed=`expr $failed + 1`
26448 fi
cristy8b350f62009-11-15 23:12:43 +000026449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026450$as_echo_n "checking if BZLIB package is complete... " >&6; }
26451 if test $passed -gt 0; then
26452 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26454$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026455 have_bzlib='no (failed tests)'
26456 else
26457 BZLIB_LIBS='-lbz2'
26458 LIBS="$BZLIB_LIBS $LIBS"
26459
cristy8b350f62009-11-15 23:12:43 +000026460$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026461
cristyad38abe2012-12-23 23:03:21 +000026462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26463$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026464 have_bzlib='yes'
26465 fi
26466 else
cristyad38abe2012-12-23 23:03:21 +000026467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26468$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026469 fi
26470fi
cristy73bd4a52010-10-05 11:24:23 +000026471 if test "$have_bzlib" = 'yes'; then
26472 BZLIB_DELEGATE_TRUE=
26473 BZLIB_DELEGATE_FALSE='#'
26474else
26475 BZLIB_DELEGATE_TRUE='#'
26476 BZLIB_DELEGATE_FALSE=
26477fi
26478
cristy3ed852e2009-09-05 21:47:34 +000026479
26480
26481#
26482# Find the X11 include and library directories.
26483#
26484IPC_LIBS=''
26485X11_LIBS=''
26486XEXT_LIBS=''
26487XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026489$as_echo_n "checking for X... " >&6; }
26490
26491
26492# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026493if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026494 withval=$with_x;
26495fi
26496
26497# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26498if test "x$with_x" = xno; then
26499 # The user explicitly disabled X.
26500 have_x=disabled
26501else
26502 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026503 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026504 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026505 $as_echo_n "(cached) " >&6
26506else
26507 # One or both of the vars are not set, and there is no cached value.
26508ac_x_includes=no ac_x_libraries=no
26509rm -f -r conftest.dir
26510if mkdir conftest.dir; then
26511 cd conftest.dir
26512 cat >Imakefile <<'_ACEOF'
26513incroot:
26514 @echo incroot='${INCROOT}'
26515usrlibdir:
26516 @echo usrlibdir='${USRLIBDIR}'
26517libdir:
26518 @echo libdir='${LIBDIR}'
26519_ACEOF
26520 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026521 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026522 for ac_var in incroot usrlibdir libdir; do
26523 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26524 done
26525 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26526 for ac_extension in a so sl dylib la dll; do
26527 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26528 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26529 ac_im_usrlibdir=$ac_im_libdir; break
26530 fi
26531 done
26532 # Screen out bogus values from the imake configuration. They are
26533 # bogus both because they are the default anyway, and because
26534 # using them would break gcc on systems where it needs fixed includes.
26535 case $ac_im_incroot in
26536 /usr/include) ac_x_includes= ;;
26537 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26538 esac
26539 case $ac_im_usrlibdir in
26540 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26541 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26542 esac
26543 fi
26544 cd ..
26545 rm -f -r conftest.dir
26546fi
26547
26548# Standard set of common directories for X headers.
26549# Check X11 before X11Rn because it is often a symlink to the current release.
26550ac_x_header_dirs='
26551/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026552/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026553/usr/X11R6/include
26554/usr/X11R5/include
26555/usr/X11R4/include
26556
26557/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026558/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026559/usr/include/X11R6
26560/usr/include/X11R5
26561/usr/include/X11R4
26562
26563/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026564/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026565/usr/local/X11R6/include
26566/usr/local/X11R5/include
26567/usr/local/X11R4/include
26568
26569/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026570/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026571/usr/local/include/X11R6
26572/usr/local/include/X11R5
26573/usr/local/include/X11R4
26574
26575/usr/X386/include
26576/usr/x386/include
26577/usr/XFree86/include/X11
26578
26579/usr/include
26580/usr/local/include
26581/usr/unsupported/include
26582/usr/athena/include
26583/usr/local/x11r5/include
26584/usr/lpp/Xamples/include
26585
26586/usr/openwin/include
26587/usr/openwin/share/include'
26588
26589if test "$ac_x_includes" = no; then
26590 # Guess where to find include files, by looking for Xlib.h.
26591 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026593/* end confdefs.h. */
26594#include <X11/Xlib.h>
26595_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026596if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026597 # We can compile using X headers with no special include directory.
26598ac_x_includes=
26599else
cristyc7083c12009-10-14 03:16:55 +000026600 for ac_dir in $ac_x_header_dirs; do
26601 if test -r "$ac_dir/X11/Xlib.h"; then
26602 ac_x_includes=$ac_dir
26603 break
26604 fi
26605done
26606fi
cristyda16f162011-02-19 23:52:17 +000026607rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026608fi # $ac_x_includes = no
26609
26610if test "$ac_x_libraries" = no; then
26611 # Check for the libraries.
26612 # See if we find them without any special options.
26613 # Don't add to $LIBS permanently.
26614 ac_save_LIBS=$LIBS
26615 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026617/* end confdefs.h. */
26618#include <X11/Xlib.h>
26619int
26620main ()
26621{
26622XrmInitialize ()
26623 ;
26624 return 0;
26625}
26626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026627if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026628 LIBS=$ac_save_LIBS
26629# We can link X programs with no special library path.
26630ac_x_libraries=
26631else
cristy8b350f62009-11-15 23:12:43 +000026632 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026633for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26634do
26635 # Don't even attempt the hair of trying to link an X program!
26636 for ac_extension in a so sl dylib la dll; do
26637 if test -r "$ac_dir/libX11.$ac_extension"; then
26638 ac_x_libraries=$ac_dir
26639 break 2
26640 fi
26641 done
26642done
26643fi
cristy8b350f62009-11-15 23:12:43 +000026644rm -f core conftest.err conftest.$ac_objext \
26645 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026646fi # $ac_x_libraries = no
26647
26648case $ac_x_includes,$ac_x_libraries in #(
26649 no,* | *,no | *\'*)
26650 # Didn't find X, or a directory has "'" in its name.
26651 ac_cv_have_x="have_x=no";; #(
26652 *)
26653 # Record where we found X for the cache.
26654 ac_cv_have_x="have_x=yes\
26655 ac_x_includes='$ac_x_includes'\
26656 ac_x_libraries='$ac_x_libraries'"
26657esac
26658fi
26659;; #(
26660 *) have_x=yes;;
26661 esac
26662 eval "$ac_cv_have_x"
26663fi # $with_x != no
26664
26665if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026667$as_echo "$have_x" >&6; }
26668 no_x=yes
26669else
26670 # If each of the values was on the command line, it overrides each guess.
26671 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26672 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26673 # Update the cache value to reflect the command line values.
26674 ac_cv_have_x="have_x=yes\
26675 ac_x_includes='$x_includes'\
26676 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026678$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26679fi
26680
cristy3ed852e2009-09-05 21:47:34 +000026681if test "$no_x" = yes; then
26682 # Not all programs may use this symbol, but it does not hurt to define it.
26683
cristy8b350f62009-11-15 23:12:43 +000026684$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026685
26686 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26687else
26688 if test -n "$x_includes"; then
26689 X_CFLAGS="$X_CFLAGS -I$x_includes"
26690 fi
26691
26692 # It would also be nice to do this for all -L options, not just this one.
26693 if test -n "$x_libraries"; then
26694 X_LIBS="$X_LIBS -L$x_libraries"
26695 # For Solaris; some versions of Sun CC require a space after -R and
26696 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026698$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26699 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26700 ac_xsave_c_werror_flag=$ac_c_werror_flag
26701 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026703/* end confdefs.h. */
26704
26705int
26706main ()
26707{
26708
26709 ;
26710 return 0;
26711}
26712_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026713if ac_fn_c_try_link "$LINENO"; then :
26714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026715$as_echo "no" >&6; }
26716 X_LIBS="$X_LIBS -R$x_libraries"
26717else
cristy8b350f62009-11-15 23:12:43 +000026718 LIBS="$ac_xsave_LIBS -R $x_libraries"
26719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026720/* end confdefs.h. */
26721
26722int
26723main ()
26724{
26725
26726 ;
26727 return 0;
26728}
26729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026730if ac_fn_c_try_link "$LINENO"; then :
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026732$as_echo "yes" >&6; }
26733 X_LIBS="$X_LIBS -R $x_libraries"
26734else
cristy8b350f62009-11-15 23:12:43 +000026735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026736$as_echo "neither works" >&6; }
26737fi
cristy8b350f62009-11-15 23:12:43 +000026738rm -f core conftest.err conftest.$ac_objext \
26739 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026740fi
cristy8b350f62009-11-15 23:12:43 +000026741rm -f core conftest.err conftest.$ac_objext \
26742 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026743 ac_c_werror_flag=$ac_xsave_c_werror_flag
26744 LIBS=$ac_xsave_LIBS
26745 fi
26746
26747 # Check for system-dependent libraries X programs must link with.
26748 # Do this before checking for the system-independent R6 libraries
26749 # (-lICE), since we may need -lsocket or whatever for X linking.
26750
26751 if test "$ISC" = yes; then
26752 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26753 else
26754 # Martyn Johnson says this is needed for Ultrix, if the X
26755 # libraries were built with DECnet support. And Karl Berry says
26756 # the Alpha needs dnet_stub (dnet does not exist).
26757 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026759/* end confdefs.h. */
26760
26761/* Override any GCC internal prototype to avoid an error.
26762 Use char because int might match the return type of a GCC
26763 builtin and then its argument prototype would still apply. */
26764#ifdef __cplusplus
26765extern "C"
26766#endif
26767char XOpenDisplay ();
26768int
26769main ()
26770{
26771return XOpenDisplay ();
26772 ;
26773 return 0;
26774}
26775_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026776if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026777
cristy8b350f62009-11-15 23:12:43 +000026778else
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026780$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026781if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026782 $as_echo_n "(cached) " >&6
26783else
26784 ac_check_lib_save_LIBS=$LIBS
26785LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026787/* end confdefs.h. */
26788
26789/* Override any GCC internal prototype to avoid an error.
26790 Use char because int might match the return type of a GCC
26791 builtin and then its argument prototype would still apply. */
26792#ifdef __cplusplus
26793extern "C"
26794#endif
26795char dnet_ntoa ();
26796int
26797main ()
26798{
26799return dnet_ntoa ();
26800 ;
26801 return 0;
26802}
26803_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026804if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026805 ac_cv_lib_dnet_dnet_ntoa=yes
26806else
cristy8b350f62009-11-15 23:12:43 +000026807 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026808fi
cristy8b350f62009-11-15 23:12:43 +000026809rm -f core conftest.err conftest.$ac_objext \
26810 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026811LIBS=$ac_check_lib_save_LIBS
26812fi
cristy8b350f62009-11-15 23:12:43 +000026813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026814$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026815if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026816 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26817fi
26818
26819 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026821$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026822if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026823 $as_echo_n "(cached) " >&6
26824else
26825 ac_check_lib_save_LIBS=$LIBS
26826LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026828/* end confdefs.h. */
26829
26830/* Override any GCC internal prototype to avoid an error.
26831 Use char because int might match the return type of a GCC
26832 builtin and then its argument prototype would still apply. */
26833#ifdef __cplusplus
26834extern "C"
26835#endif
26836char dnet_ntoa ();
26837int
26838main ()
26839{
26840return dnet_ntoa ();
26841 ;
26842 return 0;
26843}
26844_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026845if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026846 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26847else
cristy8b350f62009-11-15 23:12:43 +000026848 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026849fi
cristy8b350f62009-11-15 23:12:43 +000026850rm -f core conftest.err conftest.$ac_objext \
26851 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026852LIBS=$ac_check_lib_save_LIBS
26853fi
cristy8b350f62009-11-15 23:12:43 +000026854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026855$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026856if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026857 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26858fi
26859
26860 fi
26861fi
cristy8b350f62009-11-15 23:12:43 +000026862rm -f core conftest.err conftest.$ac_objext \
26863 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026864 LIBS="$ac_xsave_LIBS"
26865
26866 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26867 # to get the SysV transport functions.
26868 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26869 # needs -lnsl.
26870 # The nsl library prevents programs from opening the X display
26871 # on Irix 5.2, according to T.E. Dickey.
26872 # The functions gethostbyname, getservbyname, and inet_addr are
26873 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026874 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026875if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026876
cristy3ed852e2009-09-05 21:47:34 +000026877fi
26878
cristy3ed852e2009-09-05 21:47:34 +000026879 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026881$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026882if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026883 $as_echo_n "(cached) " >&6
26884else
26885 ac_check_lib_save_LIBS=$LIBS
26886LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026888/* end confdefs.h. */
26889
26890/* Override any GCC internal prototype to avoid an error.
26891 Use char because int might match the return type of a GCC
26892 builtin and then its argument prototype would still apply. */
26893#ifdef __cplusplus
26894extern "C"
26895#endif
26896char gethostbyname ();
26897int
26898main ()
26899{
26900return gethostbyname ();
26901 ;
26902 return 0;
26903}
26904_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026905if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026906 ac_cv_lib_nsl_gethostbyname=yes
26907else
cristy8b350f62009-11-15 23:12:43 +000026908 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026909fi
cristy8b350f62009-11-15 23:12:43 +000026910rm -f core conftest.err conftest.$ac_objext \
26911 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026912LIBS=$ac_check_lib_save_LIBS
26913fi
cristy8b350f62009-11-15 23:12:43 +000026914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026915$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026916if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026917 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26918fi
26919
26920 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026922$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026923if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026924 $as_echo_n "(cached) " >&6
26925else
26926 ac_check_lib_save_LIBS=$LIBS
26927LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026929/* end confdefs.h. */
26930
26931/* Override any GCC internal prototype to avoid an error.
26932 Use char because int might match the return type of a GCC
26933 builtin and then its argument prototype would still apply. */
26934#ifdef __cplusplus
26935extern "C"
26936#endif
26937char gethostbyname ();
26938int
26939main ()
26940{
26941return gethostbyname ();
26942 ;
26943 return 0;
26944}
26945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026946if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026947 ac_cv_lib_bsd_gethostbyname=yes
26948else
cristy8b350f62009-11-15 23:12:43 +000026949 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026950fi
cristy8b350f62009-11-15 23:12:43 +000026951rm -f core conftest.err conftest.$ac_objext \
26952 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026953LIBS=$ac_check_lib_save_LIBS
26954fi
cristy8b350f62009-11-15 23:12:43 +000026955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026956$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026957if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026958 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26959fi
26960
26961 fi
26962 fi
26963
26964 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26965 # socket/setsockopt and other routines are undefined under SCO ODT
26966 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26967 # on later versions), says Simon Leinen: it contains gethostby*
26968 # variants that don't use the name server (or something). -lsocket
26969 # must be given before -lnsl if both are needed. We assume that
26970 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026971 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026972if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026973
cristy3ed852e2009-09-05 21:47:34 +000026974fi
26975
cristy3ed852e2009-09-05 21:47:34 +000026976 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026978$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026979if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026980 $as_echo_n "(cached) " >&6
26981else
26982 ac_check_lib_save_LIBS=$LIBS
26983LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026985/* end confdefs.h. */
26986
26987/* Override any GCC internal prototype to avoid an error.
26988 Use char because int might match the return type of a GCC
26989 builtin and then its argument prototype would still apply. */
26990#ifdef __cplusplus
26991extern "C"
26992#endif
26993char connect ();
26994int
26995main ()
26996{
26997return connect ();
26998 ;
26999 return 0;
27000}
27001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027002if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027003 ac_cv_lib_socket_connect=yes
27004else
cristy8b350f62009-11-15 23:12:43 +000027005 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027006fi
cristy8b350f62009-11-15 23:12:43 +000027007rm -f core conftest.err conftest.$ac_objext \
27008 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027009LIBS=$ac_check_lib_save_LIBS
27010fi
cristy8b350f62009-11-15 23:12:43 +000027011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027012$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027013if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027014 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27015fi
27016
27017 fi
27018
27019 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027020 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027021if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027022
cristy3ed852e2009-09-05 21:47:34 +000027023fi
27024
cristy3ed852e2009-09-05 21:47:34 +000027025 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027027$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027028if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027029 $as_echo_n "(cached) " >&6
27030else
27031 ac_check_lib_save_LIBS=$LIBS
27032LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027034/* end confdefs.h. */
27035
27036/* Override any GCC internal prototype to avoid an error.
27037 Use char because int might match the return type of a GCC
27038 builtin and then its argument prototype would still apply. */
27039#ifdef __cplusplus
27040extern "C"
27041#endif
27042char remove ();
27043int
27044main ()
27045{
27046return remove ();
27047 ;
27048 return 0;
27049}
27050_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027051if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027052 ac_cv_lib_posix_remove=yes
27053else
cristy8b350f62009-11-15 23:12:43 +000027054 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027055fi
cristy8b350f62009-11-15 23:12:43 +000027056rm -f core conftest.err conftest.$ac_objext \
27057 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027058LIBS=$ac_check_lib_save_LIBS
27059fi
cristy8b350f62009-11-15 23:12:43 +000027060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027061$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027062if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027063 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27064fi
27065
27066 fi
27067
27068 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027069 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027070if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027071
cristy3ed852e2009-09-05 21:47:34 +000027072fi
27073
cristy3ed852e2009-09-05 21:47:34 +000027074 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027076$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027077if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027078 $as_echo_n "(cached) " >&6
27079else
27080 ac_check_lib_save_LIBS=$LIBS
27081LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027083/* end confdefs.h. */
27084
27085/* Override any GCC internal prototype to avoid an error.
27086 Use char because int might match the return type of a GCC
27087 builtin and then its argument prototype would still apply. */
27088#ifdef __cplusplus
27089extern "C"
27090#endif
27091char shmat ();
27092int
27093main ()
27094{
27095return shmat ();
27096 ;
27097 return 0;
27098}
27099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027100if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027101 ac_cv_lib_ipc_shmat=yes
27102else
cristy8b350f62009-11-15 23:12:43 +000027103 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027104fi
cristy8b350f62009-11-15 23:12:43 +000027105rm -f core conftest.err conftest.$ac_objext \
27106 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027107LIBS=$ac_check_lib_save_LIBS
27108fi
cristy8b350f62009-11-15 23:12:43 +000027109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027110$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027111if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027112 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27113fi
27114
27115 fi
27116 fi
27117
27118 # Check for libraries that X11R6 Xt/Xaw programs need.
27119 ac_save_LDFLAGS=$LDFLAGS
27120 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27121 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27122 # check for ICE first), but we must link in the order -lSM -lICE or
27123 # we get undefined symbols. So assume we have SM if we have ICE.
27124 # These have to be linked with before -lX11, unlike the other
27125 # libraries we check for below, so use a different variable.
27126 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027128$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027129if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027130 $as_echo_n "(cached) " >&6
27131else
27132 ac_check_lib_save_LIBS=$LIBS
27133LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027135/* end confdefs.h. */
27136
27137/* Override any GCC internal prototype to avoid an error.
27138 Use char because int might match the return type of a GCC
27139 builtin and then its argument prototype would still apply. */
27140#ifdef __cplusplus
27141extern "C"
27142#endif
27143char IceConnectionNumber ();
27144int
27145main ()
27146{
27147return IceConnectionNumber ();
27148 ;
27149 return 0;
27150}
27151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027152if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027153 ac_cv_lib_ICE_IceConnectionNumber=yes
27154else
cristy8b350f62009-11-15 23:12:43 +000027155 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027156fi
cristy8b350f62009-11-15 23:12:43 +000027157rm -f core conftest.err conftest.$ac_objext \
27158 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027159LIBS=$ac_check_lib_save_LIBS
27160fi
cristy8b350f62009-11-15 23:12:43 +000027161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027162$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027163if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027164 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27165fi
27166
27167 LDFLAGS=$ac_save_LDFLAGS
27168
27169fi
27170
27171if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27173$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027175$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27177$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027178 LDFLAGS="$LDFLAGS $X_LIBS"
27179 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27180 LIBS="$X11_LIBS $LIBS"
27181 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27182
27183
cristy8b350f62009-11-15 23:12:43 +000027184$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027185
27186 #
27187 # Check for X11 shared memory extension
27188 #
27189 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027190 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027191if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027192 have_shmctl='yes'
27193fi
27194
27195 if test "$have_shmctl" != 'yes'; then
27196 PERSIST_LIBS=$LIBS
27197 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027199/* end confdefs.h. */
27200
27201/* Override any GCC internal prototype to avoid an error.
27202 Use char because int might match the return type of a GCC
27203 builtin and then its argument prototype would still apply. */
27204#ifdef __cplusplus
27205extern "C"
27206#endif
27207char shmctl ();
27208int
27209main ()
27210{
27211return shmctl ();
27212 ;
27213 return 0;
27214}
27215_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027216if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027217 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027218fi
cristy8b350f62009-11-15 23:12:43 +000027219rm -f core conftest.err conftest.$ac_objext \
27220 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027221 LIBS=$PERSIST_LIBS
27222 fi
27223
27224 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027226$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027227if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027228 $as_echo_n "(cached) " >&6
27229else
27230 ac_check_lib_save_LIBS=$LIBS
27231LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027233/* end confdefs.h. */
27234
27235/* Override any GCC internal prototype to avoid an error.
27236 Use char because int might match the return type of a GCC
27237 builtin and then its argument prototype would still apply. */
27238#ifdef __cplusplus
27239extern "C"
27240#endif
27241char XShmAttach ();
27242int
27243main ()
27244{
27245return XShmAttach ();
27246 ;
27247 return 0;
27248}
27249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027250if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027251 ac_cv_lib_Xext_XShmAttach=yes
27252else
cristy8b350f62009-11-15 23:12:43 +000027253 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027254fi
cristy8b350f62009-11-15 23:12:43 +000027255rm -f core conftest.err conftest.$ac_objext \
27256 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027257LIBS=$ac_check_lib_save_LIBS
27258fi
cristy8b350f62009-11-15 23:12:43 +000027259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027260$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027261if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027262 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027263$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027264
27265fi
27266
27267 fi
27268
27269 #
27270 # Check for X11 shape extension
27271 #
cristy8b350f62009-11-15 23:12:43 +000027272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027273$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027274if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027275 $as_echo_n "(cached) " >&6
27276else
27277 ac_check_lib_save_LIBS=$LIBS
27278LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027280/* end confdefs.h. */
27281
27282/* Override any GCC internal prototype to avoid an error.
27283 Use char because int might match the return type of a GCC
27284 builtin and then its argument prototype would still apply. */
27285#ifdef __cplusplus
27286extern "C"
27287#endif
27288char XShapeCombineMask ();
27289int
27290main ()
27291{
27292return XShapeCombineMask ();
27293 ;
27294 return 0;
27295}
27296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027297if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027298 ac_cv_lib_Xext_XShapeCombineMask=yes
27299else
cristy8b350f62009-11-15 23:12:43 +000027300 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027301fi
cristy8b350f62009-11-15 23:12:43 +000027302rm -f core conftest.err conftest.$ac_objext \
27303 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027304LIBS=$ac_check_lib_save_LIBS
27305fi
cristy8b350f62009-11-15 23:12:43 +000027306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027307$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027308if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027309 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027310$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027311
27312fi
27313
cristy8b350f62009-11-15 23:12:43 +000027314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027315$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027316if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027317 $as_echo_n "(cached) " >&6
27318else
27319 ac_check_lib_save_LIBS=$LIBS
27320LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027322/* end confdefs.h. */
27323
27324/* Override any GCC internal prototype to avoid an error.
27325 Use char because int might match the return type of a GCC
27326 builtin and then its argument prototype would still apply. */
27327#ifdef __cplusplus
27328extern "C"
27329#endif
27330char XtSetEventDispatcher ();
27331int
27332main ()
27333{
27334return XtSetEventDispatcher ();
27335 ;
27336 return 0;
27337}
27338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027339if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027340 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27341else
cristy8b350f62009-11-15 23:12:43 +000027342 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027343fi
cristy8b350f62009-11-15 23:12:43 +000027344rm -f core conftest.err conftest.$ac_objext \
27345 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027346LIBS=$ac_check_lib_save_LIBS
27347fi
cristy8b350f62009-11-15 23:12:43 +000027348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027349$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027350if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027351 XT_LIBS='-lXt'
27352fi
27353
27354 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27355fi
27356if test "$no_x" != 'yes'; then
27357 have_x='yes'
27358else
27359 have_x='no'
27360fi
cristy73bd4a52010-10-05 11:24:23 +000027361 if test "$have_x" = 'yes'; then
27362 X11_DELEGATE_TRUE=
27363 X11_DELEGATE_FALSE='#'
27364else
27365 X11_DELEGATE_TRUE='#'
27366 X11_DELEGATE_FALSE=
27367fi
27368
cristy3ed852e2009-09-05 21:47:34 +000027369
27370
27371
27372
27373#
27374# Check for ZLIB
27375#
27376
27377# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027378if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027379 withval=$with_zlib; with_zlib=$withval
27380else
27381 with_zlib='yes'
27382fi
27383
27384
27385if test "$with_zlib" != 'yes'; then
27386 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27387fi
27388
27389have_zlib='no'
27390ZLIB_LIBS=''
27391if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27393$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027395$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27397$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027398 ZLIB_LIBS=''
27399 failed=0
27400 passed=0
cristy8b350f62009-11-15 23:12:43 +000027401 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027402if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027403 passed=`expr $passed + 1`
27404else
27405 failed=`expr $failed + 1`
27406fi
27407
27408
cristy8b350f62009-11-15 23:12:43 +000027409 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027410if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027411 passed=`expr $passed + 1`
27412else
27413 failed=`expr $failed + 1`
27414fi
27415
27416
cristy8b350f62009-11-15 23:12:43 +000027417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027418$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027419if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027420 $as_echo_n "(cached) " >&6
27421else
27422 ac_check_lib_save_LIBS=$LIBS
27423LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027425/* end confdefs.h. */
27426
27427/* Override any GCC internal prototype to avoid an error.
27428 Use char because int might match the return type of a GCC
27429 builtin and then its argument prototype would still apply. */
27430#ifdef __cplusplus
27431extern "C"
27432#endif
27433char compress ();
27434int
27435main ()
27436{
27437return compress ();
27438 ;
27439 return 0;
27440}
27441_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027442if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027443 ac_cv_lib_z_compress=yes
27444else
cristy8b350f62009-11-15 23:12:43 +000027445 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027446fi
cristy8b350f62009-11-15 23:12:43 +000027447rm -f core conftest.err conftest.$ac_objext \
27448 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027449LIBS=$ac_check_lib_save_LIBS
27450fi
cristy8b350f62009-11-15 23:12:43 +000027451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027452$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027453if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027454 passed=`expr $passed + 1`
27455else
27456 failed=`expr $failed + 1`
27457fi
27458
cristy8b350f62009-11-15 23:12:43 +000027459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027460$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027461if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027462 $as_echo_n "(cached) " >&6
27463else
27464 ac_check_lib_save_LIBS=$LIBS
27465LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027467/* end confdefs.h. */
27468
27469/* Override any GCC internal prototype to avoid an error.
27470 Use char because int might match the return type of a GCC
27471 builtin and then its argument prototype would still apply. */
27472#ifdef __cplusplus
27473extern "C"
27474#endif
27475char uncompress ();
27476int
27477main ()
27478{
27479return uncompress ();
27480 ;
27481 return 0;
27482}
27483_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027484if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027485 ac_cv_lib_z_uncompress=yes
27486else
cristy8b350f62009-11-15 23:12:43 +000027487 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027488fi
cristy8b350f62009-11-15 23:12:43 +000027489rm -f core conftest.err conftest.$ac_objext \
27490 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027491LIBS=$ac_check_lib_save_LIBS
27492fi
cristy8b350f62009-11-15 23:12:43 +000027493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027494$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027495if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027496 passed=`expr $passed + 1`
27497else
27498 failed=`expr $failed + 1`
27499fi
27500
cristy8b350f62009-11-15 23:12:43 +000027501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027502$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027503if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027504 $as_echo_n "(cached) " >&6
27505else
27506 ac_check_lib_save_LIBS=$LIBS
27507LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027509/* end confdefs.h. */
27510
27511/* Override any GCC internal prototype to avoid an error.
27512 Use char because int might match the return type of a GCC
27513 builtin and then its argument prototype would still apply. */
27514#ifdef __cplusplus
27515extern "C"
27516#endif
27517char deflate ();
27518int
27519main ()
27520{
27521return deflate ();
27522 ;
27523 return 0;
27524}
27525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027526if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027527 ac_cv_lib_z_deflate=yes
27528else
cristy8b350f62009-11-15 23:12:43 +000027529 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027530fi
cristy8b350f62009-11-15 23:12:43 +000027531rm -f core conftest.err conftest.$ac_objext \
27532 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027533LIBS=$ac_check_lib_save_LIBS
27534fi
cristy8b350f62009-11-15 23:12:43 +000027535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027536$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027537if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027538 passed=`expr $passed + 1`
27539else
27540 failed=`expr $failed + 1`
27541fi
27542
cristy8b350f62009-11-15 23:12:43 +000027543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027544$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027545if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027546 $as_echo_n "(cached) " >&6
27547else
27548 ac_check_lib_save_LIBS=$LIBS
27549LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027551/* end confdefs.h. */
27552
27553/* Override any GCC internal prototype to avoid an error.
27554 Use char because int might match the return type of a GCC
27555 builtin and then its argument prototype would still apply. */
27556#ifdef __cplusplus
27557extern "C"
27558#endif
27559char inflate ();
27560int
27561main ()
27562{
27563return inflate ();
27564 ;
27565 return 0;
27566}
27567_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027568if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027569 ac_cv_lib_z_inflate=yes
27570else
cristy8b350f62009-11-15 23:12:43 +000027571 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027572fi
cristy8b350f62009-11-15 23:12:43 +000027573rm -f core conftest.err conftest.$ac_objext \
27574 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027575LIBS=$ac_check_lib_save_LIBS
27576fi
cristy8b350f62009-11-15 23:12:43 +000027577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027578$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027579if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027580 passed=`expr $passed + 1`
27581else
27582 failed=`expr $failed + 1`
27583fi
27584
cristy8b350f62009-11-15 23:12:43 +000027585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027586$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027587if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027588 $as_echo_n "(cached) " >&6
27589else
27590 ac_check_lib_save_LIBS=$LIBS
27591LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027593/* end confdefs.h. */
27594
27595/* Override any GCC internal prototype to avoid an error.
27596 Use char because int might match the return type of a GCC
27597 builtin and then its argument prototype would still apply. */
27598#ifdef __cplusplus
27599extern "C"
27600#endif
27601char gzseek ();
27602int
27603main ()
27604{
27605return gzseek ();
27606 ;
27607 return 0;
27608}
27609_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027610if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027611 ac_cv_lib_z_gzseek=yes
27612else
cristy8b350f62009-11-15 23:12:43 +000027613 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027614fi
cristy8b350f62009-11-15 23:12:43 +000027615rm -f core conftest.err conftest.$ac_objext \
27616 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027617LIBS=$ac_check_lib_save_LIBS
27618fi
cristy8b350f62009-11-15 23:12:43 +000027619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027620$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027621if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027622 passed=`expr $passed + 1`
27623else
27624 failed=`expr $failed + 1`
27625fi
27626
cristy8b350f62009-11-15 23:12:43 +000027627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027628$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027629if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027630 $as_echo_n "(cached) " >&6
27631else
27632 ac_check_lib_save_LIBS=$LIBS
27633LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027635/* end confdefs.h. */
27636
27637/* Override any GCC internal prototype to avoid an error.
27638 Use char because int might match the return type of a GCC
27639 builtin and then its argument prototype would still apply. */
27640#ifdef __cplusplus
27641extern "C"
27642#endif
27643char gztell ();
27644int
27645main ()
27646{
27647return gztell ();
27648 ;
27649 return 0;
27650}
27651_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027652if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027653 ac_cv_lib_z_gztell=yes
27654else
cristy8b350f62009-11-15 23:12:43 +000027655 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027656fi
cristy8b350f62009-11-15 23:12:43 +000027657rm -f core conftest.err conftest.$ac_objext \
27658 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027659LIBS=$ac_check_lib_save_LIBS
27660fi
cristy8b350f62009-11-15 23:12:43 +000027661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027662$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027663if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027664 passed=`expr $passed + 1`
27665else
27666 failed=`expr $failed + 1`
27667fi
27668
cristy8b350f62009-11-15 23:12:43 +000027669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027670$as_echo_n "checking if ZLIB package is complete... " >&6; }
27671 if test $passed -gt 0; then
27672 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27674$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027675 have_zlib='no (failed tests)'
27676 else
27677 ZLIB_LIBS='-lz'
27678 LIBS="$ZLIB_LIBS $LIBS"
27679
cristy8b350f62009-11-15 23:12:43 +000027680$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027681
cristyad38abe2012-12-23 23:03:21 +000027682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27683$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027684 have_zlib='yes'
27685 fi
27686 else
cristyad38abe2012-12-23 23:03:21 +000027687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27688$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027689 fi
27690fi
cristy73bd4a52010-10-05 11:24:23 +000027691 if test "$have_zlib" = 'yes'; then
27692 ZLIB_DELEGATE_TRUE=
27693 ZLIB_DELEGATE_FALSE='#'
27694else
27695 ZLIB_DELEGATE_TRUE='#'
27696 ZLIB_DELEGATE_FALSE=
27697fi
27698
cristy3ed852e2009-09-05 21:47:34 +000027699
27700
cristy5eef09f2012-10-16 12:08:28 +000027701# whether modules are built or not.
27702with_ltdl='yes'
27703have_ltdl='no'
27704LTDL_LIBS=''
27705if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000027706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27707$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000027708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
27709$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27711$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000027712 failed=0
27713 passed=0
27714 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
27715if test "x$ac_cv_header_ltdl_h" = xyes; then :
27716 passed=`expr $passed + 1`
27717else
27718 failed=`expr $failed + 1`
27719fi
27720
27721
27722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
27723$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
27724if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
27725 $as_echo_n "(cached) " >&6
27726else
27727 ac_check_lib_save_LIBS=$LIBS
27728LIBS="-lltdl $LIBS"
27729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27730/* end confdefs.h. */
27731
27732/* Override any GCC internal prototype to avoid an error.
27733 Use char because int might match the return type of a GCC
27734 builtin and then its argument prototype would still apply. */
27735#ifdef __cplusplus
27736extern "C"
27737#endif
27738char lt_dlinit ();
27739int
27740main ()
27741{
27742return lt_dlinit ();
27743 ;
27744 return 0;
27745}
27746_ACEOF
27747if ac_fn_c_try_link "$LINENO"; then :
27748 ac_cv_lib_ltdl_lt_dlinit=yes
27749else
27750 ac_cv_lib_ltdl_lt_dlinit=no
27751fi
27752rm -f core conftest.err conftest.$ac_objext \
27753 conftest$ac_exeext conftest.$ac_ext
27754LIBS=$ac_check_lib_save_LIBS
27755fi
27756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
27757$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
27758if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
27759 passed=`expr $passed + 1`
27760else
27761 failed=`expr $failed + 1`
27762fi
27763
27764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
27765$as_echo_n "checking if libltdl package is complete... " >&6; }
27766 if test $passed -gt 0 ; then
27767 if test $failed -gt 0 ; then
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27769$as_echo "no -- some components failed test" >&6; }
27770 have_ltdl='no (failed tests)'
27771 else
27772 LTDL_LIBS='-lltdl'
27773 LIBS="$LTDL_LIBS $LIBS"
27774
27775$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
27776
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27778$as_echo "yes" >&6; }
27779 have_ltdl='yes'
27780 fi
27781 else
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27783$as_echo "no" >&6; }
27784 fi
cristyaf4cbf32012-10-16 23:47:41 +000027785 if test "$have_ltdl" != 'yes' ; then
27786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27788as_fn_error 1 "libltdl is required for modules build
27789See \`config.log' for more details" "$LINENO" 5; }
27790 fi
cristy5eef09f2012-10-16 12:08:28 +000027791fi
27792 if test "$have_ltdl" != 'no'; then
27793 WITH_LTDL_TRUE=
27794 WITH_LTDL_FALSE='#'
27795else
27796 WITH_LTDL_TRUE='#'
27797 WITH_LTDL_FALSE=
27798fi
27799
27800
cristy3ed852e2009-09-05 21:47:34 +000027801#
27802# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27803#
27804LIB_DL=''
27805if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027807$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027808if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027809 $as_echo_n "(cached) " >&6
27810else
27811 ac_check_lib_save_LIBS=$LIBS
27812LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027814/* end confdefs.h. */
27815
27816/* Override any GCC internal prototype to avoid an error.
27817 Use char because int might match the return type of a GCC
27818 builtin and then its argument prototype would still apply. */
27819#ifdef __cplusplus
27820extern "C"
27821#endif
27822char dlopen ();
27823int
27824main ()
27825{
27826return dlopen ();
27827 ;
27828 return 0;
27829}
27830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027831if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027832 ac_cv_lib_dl_dlopen=yes
27833else
cristy8b350f62009-11-15 23:12:43 +000027834 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027835fi
cristy8b350f62009-11-15 23:12:43 +000027836rm -f core conftest.err conftest.$ac_objext \
27837 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027838LIBS=$ac_check_lib_save_LIBS
27839fi
cristy8b350f62009-11-15 23:12:43 +000027840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027841$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027842if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027843 LIB_DL='-ldl'
27844fi
27845
27846 LIBS="$LIB_DL $LIBS"
27847fi
27848
27849
27850
27851#
27852# Check for Autotrace delegate library.
27853#
27854
27855# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027856if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027857 withval=$with_autotrace; with_autotrace=$withval
27858else
27859 with_autotrace='no'
27860fi
27861
27862
27863if test "$with_autotrace" != 'yes'; then
27864 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27865fi
27866
27867have_autotrace='no'
27868AUTOTRACE_CFLAGS=""
27869AUTOTRACE_LIBS=""
27870AUTOTRACE_PKG=""
27871if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000027872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27873$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027874
27875pkg_failed=no
27876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27877$as_echo_n "checking for AUTOTRACE... " >&6; }
27878
27879if test -n "$AUTOTRACE_CFLAGS"; then
27880 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27881 elif test -n "$PKG_CONFIG"; then
27882 if test -n "$PKG_CONFIG" && \
27883 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27884 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27885 ac_status=$?
27886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27887 test $ac_status = 0; }; then
27888 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27889else
27890 pkg_failed=yes
27891fi
27892 else
27893 pkg_failed=untried
27894fi
27895if test -n "$AUTOTRACE_LIBS"; then
27896 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27897 elif test -n "$PKG_CONFIG"; then
27898 if test -n "$PKG_CONFIG" && \
27899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27900 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27901 ac_status=$?
27902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27903 test $ac_status = 0; }; then
27904 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27905else
27906 pkg_failed=yes
27907fi
27908 else
27909 pkg_failed=untried
27910fi
27911
27912
27913
27914if test $pkg_failed = yes; then
27915
27916if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27917 _pkg_short_errors_supported=yes
27918else
27919 _pkg_short_errors_supported=no
27920fi
27921 if test $_pkg_short_errors_supported = yes; then
27922 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27923 else
27924 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27925 fi
27926 # Put the nasty error message in config.log where it belongs
27927 echo "$AUTOTRACE_PKG_ERRORS" >&5
27928
27929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27930$as_echo "no" >&6; }
27931 have_autotrace=no
27932elif test $pkg_failed = untried; then
27933 have_autotrace=no
27934else
27935 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27936 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27938$as_echo "yes" >&6; }
27939 have_autotrace=yes
27940fi
cristyad38abe2012-12-23 23:03:21 +000027941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27942$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027943fi
27944
27945if test "$have_autotrace" = 'yes'; then
27946 failed=0
27947
cristy8b350f62009-11-15 23:12:43 +000027948$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027949
cristyc6722092012-10-14 00:19:31 +000027950 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000027951 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000027952 fi
27953fi
27954
cristy73bd4a52010-10-05 11:24:23 +000027955 if test "$have_autotrace" = 'yes'; then
27956 AUTOTRACE_DELEGATE_TRUE=
27957 AUTOTRACE_DELEGATE_FALSE='#'
27958else
27959 AUTOTRACE_DELEGATE_TRUE='#'
27960 AUTOTRACE_DELEGATE_FALSE=
27961fi
27962
cristy3ed852e2009-09-05 21:47:34 +000027963
27964
27965
27966
27967#
27968# Check for Display Postscript delegate library.
27969#
27970
27971# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027972if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027973 withval=$with_dps; with_dps=$withval
27974else
27975 with_dps='yes'
27976fi
27977
27978
27979if test "$with_dps" != 'yes'; then
27980 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27981fi
27982
27983have_dps='no'
27984DPS_LIBS=''
27985if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27987$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027989$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27991$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027992 failed=0
27993 passed=0
27994 PERSIST_CPPFLAGS="$CPPFLAGS"
27995 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027996 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 +000027997if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027998 passed=`expr $passed + 1`
27999else
28000 failed=`expr $failed + 1`
28001fi
28002
28003
28004 # DPS issues:
28005 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28006 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28007 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28008 # ImageMagick itself doesn't use -lXt.
28009 have_libdps='no'
28010 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028012$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028013if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028014 $as_echo_n "(cached) " >&6
28015else
28016 ac_check_lib_save_LIBS=$LIBS
28017LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028019/* end confdefs.h. */
28020
28021/* Override any GCC internal prototype to avoid an error.
28022 Use char because int might match the return type of a GCC
28023 builtin and then its argument prototype would still apply. */
28024#ifdef __cplusplus
28025extern "C"
28026#endif
28027char DPSInitialize ();
28028int
28029main ()
28030{
28031return DPSInitialize ();
28032 ;
28033 return 0;
28034}
28035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028036if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028037 ac_cv_lib_dps_DPSInitialize=yes
28038else
cristy8b350f62009-11-15 23:12:43 +000028039 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028040fi
cristy8b350f62009-11-15 23:12:43 +000028041rm -f core conftest.err conftest.$ac_objext \
28042 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028043LIBS=$ac_check_lib_save_LIBS
28044fi
cristy8b350f62009-11-15 23:12:43 +000028045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028046$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028047if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028048 have_libdps='yes'
28049else
28050 have_libdps='no'
28051fi
28052
28053 if test "$have_libdps" != 'yes'; then
28054 # Unset cache variable so we can try again.
28055 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028057$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028058if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028059 $as_echo_n "(cached) " >&6
28060else
28061 ac_check_lib_save_LIBS=$LIBS
28062LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028064/* end confdefs.h. */
28065
28066/* Override any GCC internal prototype to avoid an error.
28067 Use char because int might match the return type of a GCC
28068 builtin and then its argument prototype would still apply. */
28069#ifdef __cplusplus
28070extern "C"
28071#endif
28072char DPSInitialize ();
28073int
28074main ()
28075{
28076return DPSInitialize ();
28077 ;
28078 return 0;
28079}
28080_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028081if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028082 ac_cv_lib_dps_DPSInitialize=yes
28083else
cristy8b350f62009-11-15 23:12:43 +000028084 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028085fi
cristy8b350f62009-11-15 23:12:43 +000028086rm -f core conftest.err conftest.$ac_objext \
28087 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028088LIBS=$ac_check_lib_save_LIBS
28089fi
cristy8b350f62009-11-15 23:12:43 +000028090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028091$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028092if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028093 have_libdps='yes'
28094else
28095 have_libdps='no'
28096fi
28097
28098 if test "$have_libdps" = 'yes'; then
28099 LIBDPS_XT='-lXt'
28100 fi
28101 fi
28102 if test "$have_libdps" = 'yes'; then
28103 passed=`expr $passed + 1`
28104 else
28105 failed=`expr $failed + 1`
28106 fi
cristy8b350f62009-11-15 23:12:43 +000028107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028108$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028109if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028110 $as_echo_n "(cached) " >&6
28111else
28112 ac_check_lib_save_LIBS=$LIBS
28113LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028115/* end confdefs.h. */
28116
28117/* Override any GCC internal prototype to avoid an error.
28118 Use char because int might match the return type of a GCC
28119 builtin and then its argument prototype would still apply. */
28120#ifdef __cplusplus
28121extern "C"
28122#endif
28123char XDPSPixelsPerPoint ();
28124int
28125main ()
28126{
28127return XDPSPixelsPerPoint ();
28128 ;
28129 return 0;
28130}
28131_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028132if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028133 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28134else
cristy8b350f62009-11-15 23:12:43 +000028135 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028136fi
cristy8b350f62009-11-15 23:12:43 +000028137rm -f core conftest.err conftest.$ac_objext \
28138 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028139LIBS=$ac_check_lib_save_LIBS
28140fi
cristy8b350f62009-11-15 23:12:43 +000028141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028142$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028143if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028144 passed=`expr $passed + 1`
28145else
28146 failed=`expr $failed + 1`
28147fi
28148
cristy8b350f62009-11-15 23:12:43 +000028149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028150$as_echo_n "checking if DPS package is complete... " >&6; }
28151 if test $passed -gt 0; then
28152 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28154$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028155 have_dps='no (failed tests)'
28156 CPPFLAGS="$PERSIST_CPPFLAGS"
28157 else
28158 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28159 LIBS="$DPS_LIBS $LIBS"
28160
cristy8b350f62009-11-15 23:12:43 +000028161$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028162
cristyad38abe2012-12-23 23:03:21 +000028163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28164$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028165 have_dps='yes'
28166 fi
28167 else
cristyad38abe2012-12-23 23:03:21 +000028168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28169$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028170 CPPFLAGS=$PERSIST_CPPFLAGS
28171 fi
28172fi
cristy73bd4a52010-10-05 11:24:23 +000028173 if test "$have_dps" = 'yes'; then
28174 DPS_DELEGATE_TRUE=
28175 DPS_DELEGATE_FALSE='#'
28176else
28177 DPS_DELEGATE_TRUE='#'
28178 DPS_DELEGATE_FALSE=
28179fi
28180
cristy3ed852e2009-09-05 21:47:34 +000028181
28182
28183
28184#
28185# Check for DJVU delegate library.
28186#
28187
28188# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028189if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028190 withval=$with_djvu; with_djvu=$withval
28191else
28192 with_djvu='yes'
28193fi
28194
28195
28196if test "$with_djvu" != 'yes'; then
28197 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28198fi
28199
28200have_djvu='no'
28201DJVU_LIBS=''
28202if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28204$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028206$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28208$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028209 failed=0
28210 passed=0
cristy8b350f62009-11-15 23:12:43 +000028211 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028212if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028213 passed=`expr $passed + 1`
28214else
28215 failed=`expr $failed + 1`
28216fi
28217
28218
cristy8b350f62009-11-15 23:12:43 +000028219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028220$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028221if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028222 $as_echo_n "(cached) " >&6
28223else
28224 ac_check_lib_save_LIBS=$LIBS
28225LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028227/* end confdefs.h. */
28228
28229/* Override any GCC internal prototype to avoid an error.
28230 Use char because int might match the return type of a GCC
28231 builtin and then its argument prototype would still apply. */
28232#ifdef __cplusplus
28233extern "C"
28234#endif
28235char ddjvu_context_create ();
28236int
28237main ()
28238{
28239return ddjvu_context_create ();
28240 ;
28241 return 0;
28242}
28243_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028244if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028245 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28246else
cristy8b350f62009-11-15 23:12:43 +000028247 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028248fi
cristy8b350f62009-11-15 23:12:43 +000028249rm -f core conftest.err conftest.$ac_objext \
28250 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028251LIBS=$ac_check_lib_save_LIBS
28252fi
cristy8b350f62009-11-15 23:12:43 +000028253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028254$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028255if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028256 passed=`expr $passed + 1`
28257else
28258 failed=`expr $failed + 1`
28259fi
28260
cristy8b350f62009-11-15 23:12:43 +000028261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028262$as_echo_n "checking if DJVU package is complete... " >&6; }
28263 if test $passed -gt 0; then
28264 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28266$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028267 have_djvu='no (failed tests)'
28268 else
28269 DJVU_LIBS='-ldjvulibre'
28270 LIBS="$DJVU_LIBS $LIBS"
28271
cristy8b350f62009-11-15 23:12:43 +000028272$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028273
cristyad38abe2012-12-23 23:03:21 +000028274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28275$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028276 have_djvu='yes'
28277 fi
28278 else
cristyad38abe2012-12-23 23:03:21 +000028279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28280$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028281 fi
28282fi
cristy73bd4a52010-10-05 11:24:23 +000028283 if test "$have_djvu" = 'yes'; then
28284 DJVU_DELEGATE_TRUE=
28285 DJVU_DELEGATE_FALSE='#'
28286else
28287 DJVU_DELEGATE_TRUE='#'
28288 DJVU_DELEGATE_FALSE=
28289fi
28290
cristy3ed852e2009-09-05 21:47:34 +000028291
28292
28293
28294#
cristy430a7312010-01-21 20:44:04 +000028295# Set DejaVu font directory.
28296#
28297
28298# Check whether --with-dejavu-font-dir was given.
28299if test "${with_dejavu_font_dir+set}" = set; then :
28300 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28301else
28302 with_dejavu_font_dir='default'
28303fi
28304
28305
28306if test "$with_dejavu_font_dir" != 'default'; then
28307 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28308fi
28309
28310
28311#
cristy3ed852e2009-09-05 21:47:34 +000028312# Check for FFTW delegate library.
28313#
28314
28315# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028316if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028317 withval=$with_fftw; with_fftw=$withval
28318else
28319 with_fftw='yes'
28320fi
28321
28322
28323if test "$with_fftw" != 'yes'; then
28324 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28325fi
28326
cristy81beccd2011-10-03 18:17:24 +000028327have_fftw='no'
28328FFTW_LIBS=''
28329if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28331$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28333$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28335$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028336 failed=0
28337 passed=0
28338 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28339if test "x$ac_cv_header_fftw3_h" = xyes; then :
28340 passed=`expr $passed + 1`
28341else
28342 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028343fi
28344
cristy81beccd2011-10-03 18:17:24 +000028345
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28347$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28348if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28349 $as_echo_n "(cached) " >&6
28350else
28351 ac_check_lib_save_LIBS=$LIBS
28352LIBS="-lfftw3 $LIBS"
28353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28354/* end confdefs.h. */
28355
28356/* Override any GCC internal prototype to avoid an error.
28357 Use char because int might match the return type of a GCC
28358 builtin and then its argument prototype would still apply. */
28359#ifdef __cplusplus
28360extern "C"
28361#endif
28362char fftw_execute ();
28363int
28364main ()
28365{
28366return fftw_execute ();
28367 ;
28368 return 0;
28369}
28370_ACEOF
28371if ac_fn_c_try_link "$LINENO"; then :
28372 ac_cv_lib_fftw3_fftw_execute=yes
28373else
28374 ac_cv_lib_fftw3_fftw_execute=no
28375fi
28376rm -f core conftest.err conftest.$ac_objext \
28377 conftest$ac_exeext conftest.$ac_ext
28378LIBS=$ac_check_lib_save_LIBS
28379fi
28380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28381$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28382if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28383 passed=`expr $passed + 1`
28384else
28385 failed=`expr $failed + 1`
28386fi
28387
28388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28389$as_echo_n "checking if FFTW package is complete... " >&6; }
28390 if test $passed -gt 0; then
28391 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28393$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028394 have_fftw='no (failed tests)'
28395 else
28396 FFTW_LIBS='-lfftw3'
28397 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028398
cristy8b350f62009-11-15 23:12:43 +000028399$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028400
cristyad38abe2012-12-23 23:03:21 +000028401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28402$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028403 have_fftw='yes'
28404 fi
28405 else
cristyad38abe2012-12-23 23:03:21 +000028406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28407$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028408 fi
28409fi
cristy73bd4a52010-10-05 11:24:23 +000028410 if test "$have_fftw" = 'yes'; then
28411 FFTW_DELEGATE_TRUE=
28412 FFTW_DELEGATE_FALSE='#'
28413else
28414 FFTW_DELEGATE_TRUE='#'
28415 FFTW_DELEGATE_FALSE=
28416fi
28417
cristy3ed852e2009-09-05 21:47:34 +000028418
28419
28420
28421#
28422# Check for FlashPIX delegate library.
28423#
28424
28425# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028426if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028427 withval=$with_fpx; with_fpx=$withval
28428else
28429 with_fpx='yes'
28430fi
28431
28432
28433if test "$with_fpx" != 'yes'; then
28434 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28435fi
28436
28437have_fpx='no'
28438FPX_LIBS=''
28439if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28441$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028443$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28445$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028446 failed=0
28447 passed=0
28448 ac_ext=cpp
28449ac_cpp='$CXXCPP $CPPFLAGS'
28450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28453
28454
cristy8b350f62009-11-15 23:12:43 +000028455ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028456if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028457 passed=`expr $passed + 1`
28458else
28459 failed=`expr $failed + 1`
28460fi
28461
28462
cristy8b350f62009-11-15 23:12:43 +000028463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028464$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028465if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028466 $as_echo_n "(cached) " >&6
28467else
28468 ac_check_lib_save_LIBS=$LIBS
28469LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028471/* end confdefs.h. */
28472
28473/* Override any GCC internal prototype to avoid an error.
28474 Use char because int might match the return type of a GCC
28475 builtin and then its argument prototype would still apply. */
28476#ifdef __cplusplus
28477extern "C"
28478#endif
28479char FPX_OpenImageByFilename ();
28480int
28481main ()
28482{
28483return FPX_OpenImageByFilename ();
28484 ;
28485 return 0;
28486}
28487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028488if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028489 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28490else
cristy8b350f62009-11-15 23:12:43 +000028491 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028492fi
cristy8b350f62009-11-15 23:12:43 +000028493rm -f core conftest.err conftest.$ac_objext \
28494 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028495LIBS=$ac_check_lib_save_LIBS
28496fi
cristy8b350f62009-11-15 23:12:43 +000028497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028498$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028499if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028500 passed=`expr $passed + 1`
28501else
28502 failed=`expr $failed + 1`
28503fi
28504
28505 ac_ext=c
28506ac_cpp='$CPP $CPPFLAGS'
28507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28509ac_compiler_gnu=$ac_cv_c_compiler_gnu
28510
cristy8b350f62009-11-15 23:12:43 +000028511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028512$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28513 if test $passed -gt 0; then
28514 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28516$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028517 have_fpx='no (failed tests)'
28518 else
28519 FPX_LIBS='-lfpx'
28520
cristy8b350f62009-11-15 23:12:43 +000028521$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028522
cristyad38abe2012-12-23 23:03:21 +000028523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28524$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028525 have_fpx='yes'
28526 PERLMAINCC="$CXX"
28527 fi
28528 else
cristyad38abe2012-12-23 23:03:21 +000028529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28530$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028531 fi
28532fi
cristy73bd4a52010-10-05 11:24:23 +000028533 if test "$have_fpx" = 'yes'; then
28534 FPX_DELEGATE_TRUE=
28535 FPX_DELEGATE_FALSE='#'
28536else
28537 FPX_DELEGATE_TRUE='#'
28538 FPX_DELEGATE_FALSE=
28539fi
28540
cristy3ed852e2009-09-05 21:47:34 +000028541
28542
28543
28544#
28545# Check for fontconfig delegate library.
28546#
28547
28548# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028549if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028550 withval=$with_fontconfig; with_fontconfig=$withval
28551else
cristyfc3d0222012-02-07 15:05:57 +000028552 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028553fi
28554
28555
28556if test "$with_fontconfig" != 'yes'; then
28557 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28558fi
28559
28560have_fontconfig='no'
28561FONTCONFIG_CFLAGS=""
28562FONTCONFIG_LIBS=""
28563FONTCONFIG_PKG=""
28564if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28566$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028567
28568pkg_failed=no
28569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28570$as_echo_n "checking for FONTCONFIG... " >&6; }
28571
28572if test -n "$FONTCONFIG_CFLAGS"; then
28573 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28574 elif test -n "$PKG_CONFIG"; then
28575 if test -n "$PKG_CONFIG" && \
28576 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28577 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28578 ac_status=$?
28579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28580 test $ac_status = 0; }; then
28581 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28582else
28583 pkg_failed=yes
28584fi
28585 else
28586 pkg_failed=untried
28587fi
28588if test -n "$FONTCONFIG_LIBS"; then
28589 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28590 elif test -n "$PKG_CONFIG"; then
28591 if test -n "$PKG_CONFIG" && \
28592 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28593 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28594 ac_status=$?
28595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28596 test $ac_status = 0; }; then
28597 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28598else
28599 pkg_failed=yes
28600fi
28601 else
28602 pkg_failed=untried
28603fi
28604
28605
28606
28607if test $pkg_failed = yes; then
28608
28609if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28610 _pkg_short_errors_supported=yes
28611else
28612 _pkg_short_errors_supported=no
28613fi
28614 if test $_pkg_short_errors_supported = yes; then
28615 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28616 else
28617 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28618 fi
28619 # Put the nasty error message in config.log where it belongs
28620 echo "$FONTCONFIG_PKG_ERRORS" >&5
28621
28622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28623$as_echo "no" >&6; }
28624 have_fontconfig=no
28625elif test $pkg_failed = untried; then
28626 have_fontconfig=no
28627else
28628 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28629 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28631$as_echo "yes" >&6; }
28632 have_fontconfig=yes
28633fi
cristyad38abe2012-12-23 23:03:21 +000028634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28635$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028636fi
28637
28638if test "$have_fontconfig" = 'yes'; then
28639
cristy8b350f62009-11-15 23:12:43 +000028640$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028641
cristyc6722092012-10-14 00:19:31 +000028642 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028643 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028644 fi
cristy3ed852e2009-09-05 21:47:34 +000028645fi
28646
cristy73bd4a52010-10-05 11:24:23 +000028647 if test "$have_fontconfig" = 'yes'; then
28648 FONTCONFIG_DELEGATE_TRUE=
28649 FONTCONFIG_DELEGATE_FALSE='#'
28650else
28651 FONTCONFIG_DELEGATE_TRUE='#'
28652 FONTCONFIG_DELEGATE_FALSE=
28653fi
28654
cristy3ed852e2009-09-05 21:47:34 +000028655
28656
28657
28658
28659#
cristy03f187e2013-01-24 00:22:19 +000028660# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028661#
28662
28663# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028664if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028665 withval=$with_freetype; with_freetype=$withval
28666else
28667 with_freetype='yes'
28668fi
28669
28670
cristy3ed852e2009-09-05 21:47:34 +000028671if test "$with_freetype" != 'yes'; then
28672 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28673fi
28674
cristy81beccd2011-10-03 18:17:24 +000028675have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000028676FREETYPE_CFLAGS=""
28677FREETYPE_LIBS=""
28678FREETYPE_PKG=""
28679if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28681$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000028682
28683pkg_failed=no
28684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
28685$as_echo_n "checking for FREETYPE... " >&6; }
28686
28687if test -n "$FREETYPE_CFLAGS"; then
28688 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
28689 elif test -n "$PKG_CONFIG"; then
28690 if test -n "$PKG_CONFIG" && \
28691 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
28692 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
28693 ac_status=$?
28694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28695 test $ac_status = 0; }; then
28696 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
28697else
28698 pkg_failed=yes
28699fi
28700 else
28701 pkg_failed=untried
28702fi
28703if test -n "$FREETYPE_LIBS"; then
28704 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
28705 elif test -n "$PKG_CONFIG"; then
28706 if test -n "$PKG_CONFIG" && \
28707 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
28708 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
28709 ac_status=$?
28710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28711 test $ac_status = 0; }; then
28712 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
28713else
28714 pkg_failed=yes
28715fi
28716 else
28717 pkg_failed=untried
28718fi
28719
28720
28721
28722if test $pkg_failed = yes; then
28723
28724if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28725 _pkg_short_errors_supported=yes
28726else
28727 _pkg_short_errors_supported=no
28728fi
28729 if test $_pkg_short_errors_supported = yes; then
28730 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
28731 else
28732 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
28733 fi
28734 # Put the nasty error message in config.log where it belongs
28735 echo "$FREETYPE_PKG_ERRORS" >&5
28736
28737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28738$as_echo "no" >&6; }
28739 have_freetype=no
28740elif test $pkg_failed = untried; then
28741 have_freetype=no
28742else
28743 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
28744 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
28745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28746$as_echo "yes" >&6; }
28747 have_freetype=yes
28748fi
cristyad38abe2012-12-23 23:03:21 +000028749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28750$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028751fi
28752
cristy03f187e2013-01-24 00:22:19 +000028753if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028754
cristy8b350f62009-11-15 23:12:43 +000028755$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028756
cristy03f187e2013-01-24 00:22:19 +000028757 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028758fi
cristy03f187e2013-01-24 00:22:19 +000028759
cristy73bd4a52010-10-05 11:24:23 +000028760 if test "$have_freetype" = 'yes'; then
28761 FREETYPE_DELEGATE_TRUE=
28762 FREETYPE_DELEGATE_FALSE='#'
28763else
28764 FREETYPE_DELEGATE_TRUE='#'
28765 FREETYPE_DELEGATE_FALSE=
28766fi
28767
cristy3ed852e2009-09-05 21:47:34 +000028768
28769
28770
cristy03f187e2013-01-24 00:22:19 +000028771
cristy3ed852e2009-09-05 21:47:34 +000028772#
28773# Check for Ghostscript library or framework.
28774#
28775# Test for iapi.h & test for gsapi_new_instance in -lgs
28776# or -framework Ghostscript
28777
28778
28779# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028780if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028781 withval=$with_gslib; with_gslib=$withval
28782else
28783 with_gslib='no'
28784fi
28785
28786
cristyb7931f12009-09-25 10:22:21 +000028787gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028788if test "$with_gslib" != 'yes'; then
28789 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28790fi
28791
28792have_gslib='no'
28793GS_LIBS=''
28794if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28796$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028798$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28800$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000028801 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028802 failed=0
28803 passed=0
cristy8b350f62009-11-15 23:12:43 +000028804 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 +000028805if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028806 passed=`expr $passed + 1`
28807else
28808 failed=`expr $failed + 1`
28809fi
28810
28811
cristy8b350f62009-11-15 23:12:43 +000028812 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 +000028813if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028814 passed=`expr $passed + 1`
28815else
28816 failed=`expr $failed + 1`
28817fi
28818
28819
cristy73bd4a52010-10-05 11:24:23 +000028820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28821$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028822if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028823 $as_echo_n "(cached) " >&6
28824else
28825 ac_check_framework_save_LIBS=$LIBS
28826LIBS="-framework Ghostscript $LIBS"
28827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28828/* end confdefs.h. */
28829
28830/* Override any GCC internal prototype to avoid an error.
28831 Use char because int might match the return type of a GCC
28832 builtin and then its argument prototype would still apply. */
28833#ifdef __cplusplus
28834extern "C"
28835#endif
28836char gsapi_new_instance ();
28837int
28838main ()
28839{
28840return gsapi_new_instance ();
28841 ;
28842 return 0;
28843}
28844_ACEOF
28845if ac_fn_c_try_link "$LINENO"; then :
28846 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28847else
28848 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28849fi
28850rm -f core conftest.err conftest.$ac_objext \
28851 conftest$ac_exeext conftest.$ac_ext
28852LIBS=$ac_check_framework_save_LIBS
28853fi
28854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28855$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28856if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28857 framework=`expr $framework + 1`
28858else
28859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028860$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028861if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028862 $as_echo_n "(cached) " >&6
28863else
28864 ac_check_lib_save_LIBS=$LIBS
28865LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028867/* end confdefs.h. */
28868
28869/* Override any GCC internal prototype to avoid an error.
28870 Use char because int might match the return type of a GCC
28871 builtin and then its argument prototype would still apply. */
28872#ifdef __cplusplus
28873extern "C"
28874#endif
28875char gsapi_new_instance ();
28876int
28877main ()
28878{
28879return gsapi_new_instance ();
28880 ;
28881 return 0;
28882}
28883_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028884if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028885 ac_cv_lib_gs_gsapi_new_instance=yes
28886else
cristy8b350f62009-11-15 23:12:43 +000028887 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028888fi
cristy8b350f62009-11-15 23:12:43 +000028889rm -f core conftest.err conftest.$ac_objext \
28890 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028891LIBS=$ac_check_lib_save_LIBS
28892fi
cristy8b350f62009-11-15 23:12:43 +000028893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028894$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028895if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028896 passed=`expr $passed + 1`
28897else
28898 failed=`expr $failed + 1`
28899fi
cristy73bd4a52010-10-05 11:24:23 +000028900
28901fi
cristy8b350f62009-11-15 23:12:43 +000028902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028903$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28904 if test $passed -gt 0; then
28905 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28907$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028908 have_gslib='no (failed tests)'
28909 else
28910 if test $framework -gt 0; then
28911 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028912 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000028913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
28914$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028915 else
cristyad38abe2012-12-23 23:03:21 +000028916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
28917$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028918 GS_LIBS='-lgs'
28919 fi
28920 LIBS="$GS_LIBS $LIBS"
28921
cristy8b350f62009-11-15 23:12:43 +000028922$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028923
28924 have_gslib='yes'
28925 fi
28926 else
cristyad38abe2012-12-23 23:03:21 +000028927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28928$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028929 fi
28930fi
cristy73bd4a52010-10-05 11:24:23 +000028931 if test "$have_gslib" = 'yes'; then
28932 GS_DELEGATE_TRUE=
28933 GS_DELEGATE_FALSE='#'
28934else
28935 GS_DELEGATE_TRUE='#'
28936 GS_DELEGATE_FALSE=
28937fi
28938
cristy3ed852e2009-09-05 21:47:34 +000028939
28940
28941# Set default font search path
28942
28943# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028944if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028945 withval=$with_fontpath; with_fontpath=$withval
28946else
28947 with_fontpath=''
28948fi
28949
28950
28951if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28952 with_fontpath=''
28953else
28954
28955cat >>confdefs.h <<_ACEOF
28956#define MAGICK_FONT_PATH "$with_fontpath"
28957_ACEOF
28958
28959fi
28960if test "$with_fontpath=" != ''; then
28961 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28962fi
28963
28964# Set Ghostscript font directory
28965
28966# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028967if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028968 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28969else
28970 with_gs_font_dir='default'
28971fi
28972
28973
28974if test "$with_gs_font_dir" != 'default'; then
28975 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28976fi
28977
28978
28979#
28980# Check for GVC delegate library.
28981#
28982
28983# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000028984if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028985 withval=$with_gvc; with_gvc=$withval
28986else
cristy1b70dc82012-07-01 23:15:05 +000028987 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000028988fi
28989
28990
28991if test "$with_gvc" != 'yes'; then
28992 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28993fi
28994
28995GVC_PKG=""
28996if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28998$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028999
29000pkg_failed=no
29001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29002$as_echo_n "checking for GVC... " >&6; }
29003
29004if test -n "$GVC_CFLAGS"; then
29005 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29006 elif test -n "$PKG_CONFIG"; then
29007 if test -n "$PKG_CONFIG" && \
29008 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29009 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29010 ac_status=$?
29011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29012 test $ac_status = 0; }; then
29013 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29014else
29015 pkg_failed=yes
29016fi
29017 else
29018 pkg_failed=untried
29019fi
29020if test -n "$GVC_LIBS"; then
29021 pkg_cv_GVC_LIBS="$GVC_LIBS"
29022 elif test -n "$PKG_CONFIG"; then
29023 if test -n "$PKG_CONFIG" && \
29024 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29025 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29026 ac_status=$?
29027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29028 test $ac_status = 0; }; then
29029 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29030else
29031 pkg_failed=yes
29032fi
29033 else
29034 pkg_failed=untried
29035fi
29036
29037
29038
29039if test $pkg_failed = yes; then
29040
29041if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29042 _pkg_short_errors_supported=yes
29043else
29044 _pkg_short_errors_supported=no
29045fi
29046 if test $_pkg_short_errors_supported = yes; then
29047 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29048 else
29049 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29050 fi
29051 # Put the nasty error message in config.log where it belongs
29052 echo "$GVC_PKG_ERRORS" >&5
29053
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29055$as_echo "no" >&6; }
29056 have_gvc=no
29057elif test $pkg_failed = untried; then
29058 have_gvc=no
29059else
29060 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29061 GVC_LIBS=$pkg_cv_GVC_LIBS
29062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29063$as_echo "yes" >&6; }
29064 have_gvc=yes
29065fi
cristyad38abe2012-12-23 23:03:21 +000029066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29067$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029068fi
29069
29070if test "$have_gvc" = 'yes'; then
29071
cristy8b350f62009-11-15 23:12:43 +000029072$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029073
cristyc6722092012-10-14 00:19:31 +000029074 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029075 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29076 fi
29077fi
29078
cristy73bd4a52010-10-05 11:24:23 +000029079 if test "$have_gvc" = 'yes'; then
29080 GVC_DELEGATE_TRUE=
29081 GVC_DELEGATE_FALSE='#'
29082else
29083 GVC_DELEGATE_TRUE='#'
29084 GVC_DELEGATE_FALSE=
29085fi
29086
cristy3ed852e2009-09-05 21:47:34 +000029087
29088
29089
29090
29091#
29092# Check for JBIG delegate library.
29093#
29094
29095
29096# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029097if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029098 withval=$with_jbig; with_jbig=$withval
29099else
29100 with_jbig='yes'
29101fi
29102
29103
29104have_jbig='no'
29105JBIG_LIBS=''
29106if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29108$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029110$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29112$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029113 failed=0
29114 passed=0
cristy8b350f62009-11-15 23:12:43 +000029115 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029116if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029117 passed=`expr $passed + 1`
29118else
29119 failed=`expr $failed + 1`
29120fi
29121
29122
cristy8b350f62009-11-15 23:12:43 +000029123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029124$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029125if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029126 $as_echo_n "(cached) " >&6
29127else
29128 ac_check_lib_save_LIBS=$LIBS
29129LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029131/* end confdefs.h. */
29132
29133/* Override any GCC internal prototype to avoid an error.
29134 Use char because int might match the return type of a GCC
29135 builtin and then its argument prototype would still apply. */
29136#ifdef __cplusplus
29137extern "C"
29138#endif
29139char jbg_dec_init ();
29140int
29141main ()
29142{
29143return jbg_dec_init ();
29144 ;
29145 return 0;
29146}
29147_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029148if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029149 ac_cv_lib_jbig_jbg_dec_init=yes
29150else
cristy8b350f62009-11-15 23:12:43 +000029151 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029152fi
cristy8b350f62009-11-15 23:12:43 +000029153rm -f core conftest.err conftest.$ac_objext \
29154 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029155LIBS=$ac_check_lib_save_LIBS
29156fi
cristy8b350f62009-11-15 23:12:43 +000029157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029158$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029159if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029160 passed=`expr $passed + 1`
29161else
29162 failed=`expr $failed + 1`
29163fi
29164
cristy8b350f62009-11-15 23:12:43 +000029165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029166$as_echo_n "checking if JBIG package is complete... " >&6; }
29167 if test $passed -gt 0; then
29168 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29170$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029171 have_jbig='no (failed tests)'
29172 else
29173 JBIG_LIBS='-ljbig'
29174 LIBS="$JBIG_LIBS $LIBS"
29175
cristy8b350f62009-11-15 23:12:43 +000029176$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029177
cristyad38abe2012-12-23 23:03:21 +000029178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29179$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029180 have_jbig='yes'
29181 fi
29182 else
cristyad38abe2012-12-23 23:03:21 +000029183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29184$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029185 fi
29186fi
cristy73bd4a52010-10-05 11:24:23 +000029187 if test "$have_jbig" = 'yes'; then
29188 JBIG_DELEGATE_TRUE=
29189 JBIG_DELEGATE_FALSE='#'
29190else
29191 JBIG_DELEGATE_TRUE='#'
29192 JBIG_DELEGATE_FALSE=
29193fi
29194
cristy3ed852e2009-09-05 21:47:34 +000029195
29196
29197
29198#
29199# Check for JPEG delegate library.
29200#
29201
29202# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029203if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029204 withval=$with_jpeg; with_jpeg=$withval
29205else
29206 with_jpeg='yes'
29207fi
29208
29209
29210if test "$with_jpeg" != 'yes'; then
29211 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29212fi
29213
29214have_jpeg='no'
29215JPEG_LIBS=''
29216if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29218$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029220$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29222$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029223 failed=0
29224 passed=0
cristy8b350f62009-11-15 23:12:43 +000029225 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029226if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029227 passed=`expr $passed + 1`
29228else
29229 failed=`expr $failed + 1`
29230fi
29231
29232
cristy8b350f62009-11-15 23:12:43 +000029233 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029234if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029235 passed=`expr $passed + 1`
29236else
29237 failed=`expr $failed + 1`
29238fi
29239
29240
cristy8b350f62009-11-15 23:12:43 +000029241 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029242if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029243 passed=`expr $passed + 1`
29244else
29245 failed=`expr $failed + 1`
29246fi
29247
29248
cristy8b350f62009-11-15 23:12:43 +000029249 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029250if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029251 passed=`expr $passed + 1`
29252else
29253 failed=`expr $failed + 1`
29254fi
29255
29256
cristy8b350f62009-11-15 23:12:43 +000029257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029258$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029259if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029260 $as_echo_n "(cached) " >&6
29261else
29262 ac_check_lib_save_LIBS=$LIBS
29263LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029265/* end confdefs.h. */
29266
29267/* Override any GCC internal prototype to avoid an error.
29268 Use char because int might match the return type of a GCC
29269 builtin and then its argument prototype would still apply. */
29270#ifdef __cplusplus
29271extern "C"
29272#endif
29273char jpeg_read_header ();
29274int
29275main ()
29276{
29277return jpeg_read_header ();
29278 ;
29279 return 0;
29280}
29281_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029282if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029283 ac_cv_lib_jpeg_jpeg_read_header=yes
29284else
cristy8b350f62009-11-15 23:12:43 +000029285 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029286fi
cristy8b350f62009-11-15 23:12:43 +000029287rm -f core conftest.err conftest.$ac_objext \
29288 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029289LIBS=$ac_check_lib_save_LIBS
29290fi
cristy8b350f62009-11-15 23:12:43 +000029291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029292$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029293if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029294 passed=`expr $passed + 1`
29295else
29296 failed=`expr $failed + 1`
29297fi
29298
29299
29300# Test for compatible JPEG library
29301if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029303$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029304if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029305 $as_echo_n "(cached) " >&6
29306else
cristy8b350f62009-11-15 23:12:43 +000029307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029308/* end confdefs.h. */
29309#include <stdio.h>
29310#include <stdlib.h>
29311#include <jpeglib.h>
29312
29313int
29314main ()
29315{
29316
29317#if JPEG_LIB_VERSION < 62
29318#error IJG JPEG library must be version 6b or newer!
29319#endif
29320return 0;
29321
29322 ;
29323 return 0;
29324}
29325_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029326if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029327 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29328else
cristy8b350f62009-11-15 23:12:43 +000029329 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029330fi
cristy3ed852e2009-09-05 21:47:34 +000029331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29332fi
cristy8b350f62009-11-15 23:12:43 +000029333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029334$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29335fi
cristy8b350f62009-11-15 23:12:43 +000029336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029337$as_echo_n "checking if JPEG package is complete... " >&6; }
29338 if test $passed -gt 0; then
29339 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29341$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029342 have_jpeg='no (failed tests)'
29343 else
29344 JPEG_LIBS='-ljpeg'
29345 LIBS="$JPEG_LIBS $LIBS"
29346
cristy8b350f62009-11-15 23:12:43 +000029347$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029348
cristyad38abe2012-12-23 23:03:21 +000029349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29350$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029351 have_jpeg='yes'
29352 fi
29353 else
cristyad38abe2012-12-23 23:03:21 +000029354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29355$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029356 fi
29357fi
cristy73bd4a52010-10-05 11:24:23 +000029358 if test "$have_jpeg" = 'yes'; then
29359 JPEG_DELEGATE_TRUE=
29360 JPEG_DELEGATE_FALSE='#'
29361else
29362 JPEG_DELEGATE_TRUE='#'
29363 JPEG_DELEGATE_FALSE=
29364fi
29365
cristy3ed852e2009-09-05 21:47:34 +000029366
29367
29368
29369#
29370# Check for JPEG Version 2 delegate library.
29371#
29372
29373# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029374if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029375 withval=$with_jp2; with_jp2=$withval
29376else
29377 with_jp2='yes'
29378fi
29379
29380
29381if test "$with_jp2" != 'yes'; then
29382 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29383fi
29384
29385have_jp2='no'
29386JP2_LIBS=''
29387if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29389$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029391$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29393$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029394 failed=0
29395 passed=0
cristy8b350f62009-11-15 23:12:43 +000029396 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029397if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029398 passed=`expr $passed + 1`
29399else
29400 failed=`expr $failed + 1`
29401fi
29402
29403
cristy8b350f62009-11-15 23:12:43 +000029404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029405$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029406if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029407 $as_echo_n "(cached) " >&6
29408else
29409 ac_check_lib_save_LIBS=$LIBS
29410LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029412/* end confdefs.h. */
29413
29414/* Override any GCC internal prototype to avoid an error.
29415 Use char because int might match the return type of a GCC
29416 builtin and then its argument prototype would still apply. */
29417#ifdef __cplusplus
29418extern "C"
29419#endif
29420char jas_stream_fopen ();
29421int
29422main ()
29423{
29424return jas_stream_fopen ();
29425 ;
29426 return 0;
29427}
29428_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029429if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029430 ac_cv_lib_jasper_jas_stream_fopen=yes
29431else
cristy8b350f62009-11-15 23:12:43 +000029432 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029433fi
cristy8b350f62009-11-15 23:12:43 +000029434rm -f core conftest.err conftest.$ac_objext \
29435 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029436LIBS=$ac_check_lib_save_LIBS
29437fi
cristy8b350f62009-11-15 23:12:43 +000029438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029439$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029440if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029441 passed=`expr $passed + 1`
29442else
29443 failed=`expr $failed + 1`
29444fi
29445
cristy8b350f62009-11-15 23:12:43 +000029446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029447$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29448 if test $passed -gt 0; then
29449 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29451$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029452 have_jp2='no (failed tests)'
29453 else
29454 JP2_LIBS='-ljasper'
29455 LIBS="$JP2_LIBS $LIBS"
29456
cristy8b350f62009-11-15 23:12:43 +000029457$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029458
cristyad38abe2012-12-23 23:03:21 +000029459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29460$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029461 have_jp2='yes'
29462 fi
29463 else
cristyad38abe2012-12-23 23:03:21 +000029464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29465$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029466 fi
29467fi
cristy73bd4a52010-10-05 11:24:23 +000029468 if test "$have_jp2" = 'yes'; then
29469 JP2_DELEGATE_TRUE=
29470 JP2_DELEGATE_FALSE='#'
29471else
29472 JP2_DELEGATE_TRUE='#'
29473 JP2_DELEGATE_FALSE=
29474fi
29475
cristy3ed852e2009-09-05 21:47:34 +000029476
29477
29478
29479#
29480# Check for LCMS delegate library.
29481#
cristy71203402010-06-18 13:12:03 +000029482# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029483
29484# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029485if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029486 withval=$with_lcms; with_lcms=$withval
29487else
29488 with_lcms='yes'
29489fi
29490
cristy71203402010-06-18 13:12:03 +000029491if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029492 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29493fi
29494
cristy71203402010-06-18 13:12:03 +000029495# Disable LCMS2.
29496
29497# Check whether --with-lcms2 was given.
29498if test "${with_lcms2+set}" = set; then :
29499 withval=$with_lcms2; with_lcms2=$withval
29500else
29501 with_lcms2='yes'
29502fi
29503
29504if test "$with_lcms2" != 'yes' ; then
29505 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29506fi
29507
29508have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029509LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029510if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29512$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29514$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29516$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029517 failed=0
29518 passed=0
29519 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029520
29521 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029522 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029523if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029524 have_lcms_header='yes'
29525fi
29526
29527
29528 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029529
29530$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29531
cristy71203402010-06-18 13:12:03 +000029532 passed=`expr $passed + 1`
29533 fi
29534
29535 # Check for <lcms2/lcms2.h)
29536 if test "$have_lcms_header" != 'yes'; then
29537 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 +000029538if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029539 have_lcms_header='yes'
29540fi
29541
29542
cristy71203402010-06-18 13:12:03 +000029543 if test "$have_lcms_header" = 'yes'; then
29544 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029545
cristy71203402010-06-18 13:12:03 +000029546$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029547
cristy71203402010-06-18 13:12:03 +000029548 fi
cristyd09bcf92010-03-25 03:04:45 +000029549 fi
cristy71203402010-06-18 13:12:03 +000029550
29551 # Failed to find lcms header?
29552 if test "$have_lcms_header" != 'yes'; then
29553 failed=`expr $failed + 1`
29554 fi
29555
29556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29557$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029558if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029559 $as_echo_n "(cached) " >&6
29560else
29561 ac_check_lib_save_LIBS=$LIBS
29562LIBS="-llcms2 $LIBS"
29563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29564/* end confdefs.h. */
29565
29566/* Override any GCC internal prototype to avoid an error.
29567 Use char because int might match the return type of a GCC
29568 builtin and then its argument prototype would still apply. */
29569#ifdef __cplusplus
29570extern "C"
29571#endif
cristy71203402010-06-18 13:12:03 +000029572char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029573int
29574main ()
29575{
cristy71203402010-06-18 13:12:03 +000029576return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029577 ;
29578 return 0;
29579}
29580_ACEOF
29581if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029582 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029583else
cristy71203402010-06-18 13:12:03 +000029584 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029585fi
29586rm -f core conftest.err conftest.$ac_objext \
29587 conftest$ac_exeext conftest.$ac_ext
29588LIBS=$ac_check_lib_save_LIBS
29589fi
cristy71203402010-06-18 13:12:03 +000029590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29591$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029592if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029593 passed=`expr $passed + 1`
29594else
29595 failed=`expr $failed + 1`
29596fi
29597
cristy71203402010-06-18 13:12:03 +000029598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29599$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029600 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029601 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29603$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029604 have_lcms2='no (failed tests)'
29605 else
29606 LCMS_LIBS='-llcms2'
29607 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29609$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029610 have_lcms2='yes'
29611 fi
cristyd09bcf92010-03-25 03:04:45 +000029612 else
cristyad38abe2012-12-23 23:03:21 +000029613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29614$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029615 fi
29616fi
29617
cristy71203402010-06-18 13:12:03 +000029618#
29619# Check for LCMS v1 (1.11 or later)
29620#
29621if test $have_lcms2 = 'yes'; then
29622 with_lcms='no'
29623fi
29624
29625have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029626if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29628$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29630$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29632$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029633 failed=0
29634 passed=0
29635 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029636
29637 # Check for <lcms.h>
29638 if test "$have_lcms_header" != 'yes'; then
29639 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029640if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029641 have_lcms_header='yes'
29642fi
29643
29644
cristy71203402010-06-18 13:12:03 +000029645 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029646 passed=`expr $passed + 1`
29647
cristy8b350f62009-11-15 23:12:43 +000029648$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029649
cristy71203402010-06-18 13:12:03 +000029650 fi
29651 fi
29652
29653 # Check for <lcms/lcms.h>
29654 if test "$have_lcms_header" != 'yes'; then
29655 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 +000029656if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029657 have_lcms_header='yes'
29658fi
29659
29660
cristy71203402010-06-18 13:12:03 +000029661 if test "$have_lcms_header" = 'yes'; then
29662 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029663
cristy8b350f62009-11-15 23:12:43 +000029664$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029665
cristy71203402010-06-18 13:12:03 +000029666 fi
cristy3ed852e2009-09-05 21:47:34 +000029667 fi
cristy71203402010-06-18 13:12:03 +000029668
29669 # Failed to find lcms header?
29670 if test "$have_lcms_header" != 'yes'; then
29671 failed=`expr $failed + 1`
29672 fi
29673
29674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29675$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029676if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029677 $as_echo_n "(cached) " >&6
29678else
29679 ac_check_lib_save_LIBS=$LIBS
29680LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029682/* end confdefs.h. */
29683
29684/* Override any GCC internal prototype to avoid an error.
29685 Use char because int might match the return type of a GCC
29686 builtin and then its argument prototype would still apply. */
29687#ifdef __cplusplus
29688extern "C"
29689#endif
cristy71203402010-06-18 13:12:03 +000029690char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029691int
29692main ()
29693{
cristy71203402010-06-18 13:12:03 +000029694return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029695 ;
29696 return 0;
29697}
29698_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029699if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029700 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029701else
cristy71203402010-06-18 13:12:03 +000029702 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029703fi
cristy8b350f62009-11-15 23:12:43 +000029704rm -f core conftest.err conftest.$ac_objext \
29705 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029706LIBS=$ac_check_lib_save_LIBS
29707fi
cristy71203402010-06-18 13:12:03 +000029708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29709$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029710if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029711 passed=`expr $passed + 1`
29712else
29713 failed=`expr $failed + 1`
29714fi
29715
cristy8b350f62009-11-15 23:12:43 +000029716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029717$as_echo_n "checking if LCMS package is complete... " >&6; }
29718 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029719 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29721$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029722 have_lcms='no (failed tests)'
29723 else
29724 LCMS_LIBS='-llcms'
29725 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29727$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029728 have_lcms='yes'
29729 fi
cristy3ed852e2009-09-05 21:47:34 +000029730 else
cristyad38abe2012-12-23 23:03:21 +000029731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29732$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029733 fi
29734fi
cristy71203402010-06-18 13:12:03 +000029735
cristy73bd4a52010-10-05 11:24:23 +000029736 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29737 LCMS_DELEGATE_TRUE=
29738 LCMS_DELEGATE_FALSE='#'
29739else
29740 LCMS_DELEGATE_TRUE='#'
29741 LCMS_DELEGATE_FALSE=
29742fi
29743
cristy71203402010-06-18 13:12:03 +000029744if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29745
29746$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29747
29748fi
29749
cristy3ed852e2009-09-05 21:47:34 +000029750
29751
29752
29753#
29754# Check for the LQR (Liquid Rescale) delegate library.
29755#
29756
29757# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029758if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029759 withval=$with_lqr; with_lqr=$withval
29760else
29761 with_lqr='yes'
29762fi
29763
29764
29765if test "$with_lqr" != 'yes'; then
29766 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29767fi
29768
29769have_lqr='no'
29770LQR_CFLAGS=""
29771LQR_LIBS=""
29772LQR_PKG=""
29773if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29775$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029776
29777pkg_failed=no
29778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29779$as_echo_n "checking for LQR... " >&6; }
29780
29781if test -n "$LQR_CFLAGS"; then
29782 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29783 elif test -n "$PKG_CONFIG"; then
29784 if test -n "$PKG_CONFIG" && \
29785 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29786 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29787 ac_status=$?
29788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29789 test $ac_status = 0; }; then
29790 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29791else
29792 pkg_failed=yes
29793fi
29794 else
29795 pkg_failed=untried
29796fi
29797if test -n "$LQR_LIBS"; then
29798 pkg_cv_LQR_LIBS="$LQR_LIBS"
29799 elif test -n "$PKG_CONFIG"; then
29800 if test -n "$PKG_CONFIG" && \
29801 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29802 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29803 ac_status=$?
29804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29805 test $ac_status = 0; }; then
29806 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29807else
29808 pkg_failed=yes
29809fi
29810 else
29811 pkg_failed=untried
29812fi
29813
29814
29815
29816if test $pkg_failed = yes; then
29817
29818if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29819 _pkg_short_errors_supported=yes
29820else
29821 _pkg_short_errors_supported=no
29822fi
29823 if test $_pkg_short_errors_supported = yes; then
29824 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29825 else
29826 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29827 fi
29828 # Put the nasty error message in config.log where it belongs
29829 echo "$LQR_PKG_ERRORS" >&5
29830
29831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29832$as_echo "no" >&6; }
29833 have_lqr=no
29834elif test $pkg_failed = untried; then
29835 have_lqr=no
29836else
29837 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29838 LQR_LIBS=$pkg_cv_LQR_LIBS
29839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29840$as_echo "yes" >&6; }
29841 have_lqr=yes
29842fi
cristyad38abe2012-12-23 23:03:21 +000029843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29844$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029845fi
29846
29847if test "$have_lqr" = 'yes'; then
29848
cristy8b350f62009-11-15 23:12:43 +000029849$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029850
29851 CFLAGS="$LQR_CFLAGS $CFLAGS"
29852fi
29853
cristy73bd4a52010-10-05 11:24:23 +000029854 if test "$have_lqr" = 'yes'; then
29855 LQR_DELEGATE_TRUE=
29856 LQR_DELEGATE_FALSE='#'
29857else
29858 LQR_DELEGATE_TRUE='#'
29859 LQR_DELEGATE_FALSE=
29860fi
29861
cristy3ed852e2009-09-05 21:47:34 +000029862
29863
29864
29865
cristy81beccd2011-10-03 18:17:24 +000029866# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000029867
29868# Check whether --with-lzma was given.
29869if test "${with_lzma+set}" = set; then :
29870 withval=$with_lzma; with_lzma=$withval
29871else
29872 with_lzma='yes'
29873fi
29874
cristy81beccd2011-10-03 18:17:24 +000029875if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000029876 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29877fi
29878
cristyb94e5002011-11-14 13:20:10 +000029879LZMA_PKG=""
29880if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29882$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000029883
29884pkg_failed=no
29885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000029886$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000029887
29888if test -n "$LZMA_CFLAGS"; then
29889 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
29890 elif test -n "$PKG_CONFIG"; then
29891 if test -n "$PKG_CONFIG" && \
29892 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
29893 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
29894 ac_status=$?
29895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29896 test $ac_status = 0; }; then
29897 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
29898else
29899 pkg_failed=yes
29900fi
29901 else
29902 pkg_failed=untried
29903fi
29904if test -n "$LZMA_LIBS"; then
29905 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
29906 elif test -n "$PKG_CONFIG"; then
29907 if test -n "$PKG_CONFIG" && \
29908 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
29909 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
29910 ac_status=$?
29911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29912 test $ac_status = 0; }; then
29913 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
29914else
29915 pkg_failed=yes
29916fi
29917 else
29918 pkg_failed=untried
29919fi
29920
29921
29922
29923if test $pkg_failed = yes; then
29924
29925if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29926 _pkg_short_errors_supported=yes
29927else
29928 _pkg_short_errors_supported=no
29929fi
29930 if test $_pkg_short_errors_supported = yes; then
29931 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
29932 else
29933 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
29934 fi
29935 # Put the nasty error message in config.log where it belongs
29936 echo "$LZMA_PKG_ERRORS" >&5
29937
29938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29939$as_echo "no" >&6; }
29940 have_lzma=no
29941elif test $pkg_failed = untried; then
29942 have_lzma=no
29943else
29944 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
29945 LZMA_LIBS=$pkg_cv_LZMA_LIBS
29946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29947$as_echo "yes" >&6; }
29948 have_lzma=yes
29949fi
cristyad38abe2012-12-23 23:03:21 +000029950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29951$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000029952fi
29953
cristyb94e5002011-11-14 13:20:10 +000029954if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000029955
29956$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29957
cristyc6722092012-10-14 00:19:31 +000029958 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000029959 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000029960 fi
cristyfbb0ef02010-12-19 02:32:11 +000029961fi
cristyb94e5002011-11-14 13:20:10 +000029962
cristyfbb0ef02010-12-19 02:32:11 +000029963 if test "$have_lzma" = 'yes'; then
29964 LZMA_DELEGATE_TRUE=
29965 LZMA_DELEGATE_FALSE='#'
29966else
29967 LZMA_DELEGATE_TRUE='#'
29968 LZMA_DELEGATE_FALSE=
29969fi
29970
29971
29972
29973
cristyb94e5002011-11-14 13:20:10 +000029974
cristy3ed852e2009-09-05 21:47:34 +000029975#
cristy854c9cf2013-08-10 21:03:06 +000029976# Check for MUPDF delegate library.
29977#
29978
29979# Check whether --with-mupdf was given.
29980if test "${with_mupdf+set}" = set; then :
29981 withval=$with_mupdf; with_mupdf=$withval
29982else
29983 with_mupdf='no'
29984fi
29985
29986
29987if test "$with_mupdf" != 'yes'; then
29988 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-mupdf=$with_mupdf "
29989fi
29990
29991have_mupdf='no'
29992MUPDF_LIBS=''
29993if test "$with_mupdf" != 'no'; then
29994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29995$as_echo "-------------------------------------------------------------" >&6; }
29996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MUPDF" >&5
29997$as_echo_n "checking for MUPDF... " >&6; }
29998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29999$as_echo "" >&6; }
30000 failed=0
30001 passed=0
30002 ac_fn_c_check_header_mongrel "$LINENO" "mupdf/fitz.h" "ac_cv_header_mupdf_fitz_h" "$ac_includes_default"
30003if test "x$ac_cv_header_mupdf_fitz_h" = xyes; then :
30004 passed=`expr $passed + 1`
30005else
30006 failed=`expr $failed + 1`
30007fi
30008
30009
30010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fz_new_context in -lmupdf" >&5
30011$as_echo_n "checking for fz_new_context in -lmupdf... " >&6; }
30012if ${ac_cv_lib_mupdf_fz_new_context+:} false; then :
30013 $as_echo_n "(cached) " >&6
30014else
30015 ac_check_lib_save_LIBS=$LIBS
30016LIBS="-lmupdf -lmupdf $FREETYPE_LIBS $LIBS"
30017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30018/* end confdefs.h. */
30019
30020/* Override any GCC internal prototype to avoid an error.
30021 Use char because int might match the return type of a GCC
30022 builtin and then its argument prototype would still apply. */
30023#ifdef __cplusplus
30024extern "C"
30025#endif
30026char fz_new_context ();
30027int
30028main ()
30029{
30030return fz_new_context ();
30031 ;
30032 return 0;
30033}
30034_ACEOF
30035if ac_fn_c_try_link "$LINENO"; then :
30036 ac_cv_lib_mupdf_fz_new_context=yes
30037else
30038 ac_cv_lib_mupdf_fz_new_context=no
30039fi
30040rm -f core conftest.err conftest.$ac_objext \
30041 conftest$ac_exeext conftest.$ac_ext
30042LIBS=$ac_check_lib_save_LIBS
30043fi
30044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mupdf_fz_new_context" >&5
30045$as_echo "$ac_cv_lib_mupdf_fz_new_context" >&6; }
30046if test "x$ac_cv_lib_mupdf_fz_new_context" = xyes; then :
30047 passed=`expr $passed + 1`
30048else
30049 failed=`expr $failed + 1`
30050fi
30051
30052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MUPDF package is complete" >&5
30053$as_echo_n "checking if MUPDF package is complete... " >&6; }
30054 if test $passed -gt 0; then
30055 if test $failed -gt 0; then
30056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30057$as_echo "no -- some components failed test" >&6; }
30058 have_mupdf='no (failed tests)'
30059 else
30060 MUPDF_LIBS='-lmupdf'
30061 LIBS="$MUPDF_LIBS $LIBS"
30062
30063$as_echo "#define MUPDF_DELEGATE 1" >>confdefs.h
30064
30065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30066$as_echo "yes" >&6; }
30067 have_mupdf='yes'
30068 fi
30069 else
30070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30071$as_echo "no" >&6; }
30072 fi
30073fi
30074 if test "$have_mupdf" = 'yes'; then
30075 MUPDF_DELEGATE_TRUE=
30076 MUPDF_DELEGATE_FALSE='#'
30077else
30078 MUPDF_DELEGATE_TRUE='#'
30079 MUPDF_DELEGATE_FALSE=
30080fi
30081
30082
30083
30084
30085#
cristy3ed852e2009-09-05 21:47:34 +000030086# Check for the OpenEXR delegate library.
30087#
30088
30089# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030090if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030091 withval=$with_openexr; with_openexr=$withval
30092else
30093 with_openexr='yes'
30094fi
30095
30096
30097if test "$with_openexr" != 'yes'; then
30098 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30099fi
30100
30101have_openexr='no'
30102OPENEXR_CFLAGS=""
30103OPENEXR_LIBS=""
30104OPENEXR_PKG=""
30105if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30107$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030108
30109pkg_failed=no
30110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30111$as_echo_n "checking for OPENEXR... " >&6; }
30112
30113if test -n "$OPENEXR_CFLAGS"; then
30114 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30115 elif test -n "$PKG_CONFIG"; then
30116 if test -n "$PKG_CONFIG" && \
30117 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30118 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30119 ac_status=$?
30120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30121 test $ac_status = 0; }; then
30122 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30123else
30124 pkg_failed=yes
30125fi
30126 else
30127 pkg_failed=untried
30128fi
30129if test -n "$OPENEXR_LIBS"; then
30130 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30131 elif test -n "$PKG_CONFIG"; then
30132 if test -n "$PKG_CONFIG" && \
30133 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30134 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30135 ac_status=$?
30136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30137 test $ac_status = 0; }; then
30138 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30139else
30140 pkg_failed=yes
30141fi
30142 else
30143 pkg_failed=untried
30144fi
30145
30146
30147
30148if test $pkg_failed = yes; then
30149
30150if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30151 _pkg_short_errors_supported=yes
30152else
30153 _pkg_short_errors_supported=no
30154fi
30155 if test $_pkg_short_errors_supported = yes; then
30156 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30157 else
30158 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30159 fi
30160 # Put the nasty error message in config.log where it belongs
30161 echo "$OPENEXR_PKG_ERRORS" >&5
30162
30163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30164$as_echo "no" >&6; }
30165 have_openexr=no
30166elif test $pkg_failed = untried; then
30167 have_openexr=no
30168else
30169 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30170 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30172$as_echo "yes" >&6; }
30173 have_openexr=yes
30174fi
cristyad38abe2012-12-23 23:03:21 +000030175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30176$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030177fi
30178
30179if test "$have_openexr" = 'yes'; then
30180
cristy8b350f62009-11-15 23:12:43 +000030181$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030182
cristyc6722092012-10-14 00:19:31 +000030183 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030184 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30185 fi
30186fi
30187
cristy73bd4a52010-10-05 11:24:23 +000030188 if test "$have_openexr" = 'yes'; then
30189 OPENEXR_DELEGATE_TRUE=
30190 OPENEXR_DELEGATE_FALSE='#'
30191else
30192 OPENEXR_DELEGATE_TRUE='#'
30193 OPENEXR_DELEGATE_FALSE=
30194fi
30195
cristy3ed852e2009-09-05 21:47:34 +000030196
30197
30198
30199
30200#
cristy41cbe8a2011-10-27 01:35:18 +000030201# Check for PANGO delegate library.
30202#
30203
30204# Check whether --with-pango was given.
30205if test "${with_pango+set}" = set; then :
30206 withval=$with_pango; with_pango=$withval
30207else
cristyfc3d0222012-02-07 15:05:57 +000030208 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030209fi
30210
30211
30212if test "$with_pango" != 'yes'; then
30213 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30214fi
30215
30216have_pango='no'
cristya054b762012-03-26 23:16:00 +000030217have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030218PANGO_CFLAGS=""
30219PANGO_LIBS=""
30220PANGO_PKG=""
30221if test "x$with_pango" = "xyes"; then
30222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30223$as_echo "-------------------------------------------------------------" >&6; }
30224
30225pkg_failed=no
30226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30227$as_echo_n "checking for PANGO... " >&6; }
30228
30229if test -n "$PANGO_CFLAGS"; then
30230 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30231 elif test -n "$PKG_CONFIG"; then
30232 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030233 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30234 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030235 ac_status=$?
30236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30237 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030238 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030239else
30240 pkg_failed=yes
30241fi
30242 else
30243 pkg_failed=untried
30244fi
30245if test -n "$PANGO_LIBS"; then
30246 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30247 elif test -n "$PKG_CONFIG"; then
30248 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030249 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30250 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030251 ac_status=$?
30252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30253 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030254 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030255else
30256 pkg_failed=yes
30257fi
30258 else
30259 pkg_failed=untried
30260fi
30261
30262
30263
30264if test $pkg_failed = yes; then
30265
30266if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30267 _pkg_short_errors_supported=yes
30268else
30269 _pkg_short_errors_supported=no
30270fi
30271 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030272 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030273 else
cristya054b762012-03-26 23:16:00 +000030274 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030275 fi
30276 # Put the nasty error message in config.log where it belongs
30277 echo "$PANGO_PKG_ERRORS" >&5
30278
30279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30280$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030281 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030282elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030283 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030284else
30285 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30286 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30288$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030289 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030290fi
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30292$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030293
30294pkg_failed=no
30295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30296$as_echo_n "checking for PANGO... " >&6; }
30297
30298if test -n "$PANGO_CFLAGS"; then
30299 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30300 elif test -n "$PKG_CONFIG"; then
30301 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030302 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30303 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030304 ac_status=$?
30305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30306 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030307 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030308else
30309 pkg_failed=yes
30310fi
30311 else
30312 pkg_failed=untried
30313fi
30314if test -n "$PANGO_LIBS"; then
30315 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30316 elif test -n "$PKG_CONFIG"; then
30317 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030318 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30319 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030320 ac_status=$?
30321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30322 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030323 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030324else
30325 pkg_failed=yes
30326fi
30327 else
30328 pkg_failed=untried
30329fi
30330
30331
30332
30333if test $pkg_failed = yes; then
30334
30335if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30336 _pkg_short_errors_supported=yes
30337else
30338 _pkg_short_errors_supported=no
30339fi
30340 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030341 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030342 else
cristy2542fc62011-12-06 17:50:25 +000030343 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030344 fi
30345 # Put the nasty error message in config.log where it belongs
30346 echo "$PANGO_PKG_ERRORS" >&5
30347
30348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30349$as_echo "no" >&6; }
30350 have_pango=no
30351elif test $pkg_failed = untried; then
30352 have_pango=no
30353else
30354 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30355 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30357$as_echo "yes" >&6; }
30358 have_pango=yes
30359fi
30360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30361$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030362fi
30363
30364if test "$have_pango" = 'yes'; then
30365
30366$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30367
cristyc6722092012-10-14 00:19:31 +000030368 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030369 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30370 fi
30371fi
30372
cristya054b762012-03-26 23:16:00 +000030373if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030374
cristya054b762012-03-26 23:16:00 +000030375$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030376
cristyc6722092012-10-14 00:19:31 +000030377 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030378 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030379 fi
30380fi
30381
30382 if test "$have_pango" = 'yes'; then
30383 PANGO_DELEGATE_TRUE=
30384 PANGO_DELEGATE_FALSE='#'
30385else
30386 PANGO_DELEGATE_TRUE='#'
30387 PANGO_DELEGATE_FALSE=
30388fi
30389
cristya054b762012-03-26 23:16:00 +000030390 if test "$have_pangocairo" = 'yes'; then
30391 PANGOCAIRO_DELEGATE_TRUE=
30392 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030393else
cristya054b762012-03-26 23:16:00 +000030394 PANGOCAIRO_DELEGATE_TRUE='#'
30395 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030396fi
30397
30398
30399
30400
30401
30402#
cristy3ed852e2009-09-05 21:47:34 +000030403# Check for PNG delegate library.
30404#
30405
30406# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030407if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030408 withval=$with_png; with_png=$withval
30409else
30410 with_png='yes'
30411fi
30412
30413
30414if test "$with_png" != 'yes'; then
30415 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30416fi
30417
cristy81beccd2011-10-03 18:17:24 +000030418have_png='no'
30419PNG_LIBS=''
30420
30421if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30423$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30425$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30427$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030428 failed=0
30429 passed=0
30430 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30431if test "x$ac_cv_header_png_h" = xyes; then :
30432 passed=`expr $passed + 1`
30433else
30434 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030435fi
30436
cristy81beccd2011-10-03 18:17:24 +000030437
30438
30439 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030440 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030441 if test "$have_png" = 'no' ; then
30442 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030443 pnglib='png'
30444 else
30445 pnglib="png1${var}"
30446 fi
30447
30448# Test for compatible LIBPNG library
30449 failed=0
30450 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030451 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030452 if test "${pnglib}" != 'png' ; then
30453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30454$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30456/* end confdefs.h. */
30457#include <stdio.h>
30458#include <stdlib.h>
30459#include <png.h>
30460
30461int
30462main ()
30463{
30464
30465#if PNG_LIBPNG_VER_MINOR != ${var}
30466#error LIBPNG library must be version 1${var}!
30467Kaboom, Kaboom
30468#endif
30469return 0;
30470
30471 ;
30472 return 0;
30473}
30474_ACEOF
30475if ac_fn_c_try_compile "$LINENO"; then :
30476 ac_cv_libpng_ok='yes'
30477else
30478 ac_cv_libpng_ok='no'
30479fi
30480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30481 if test "$ac_cv_libpng_ok" = 'yes' ; then
30482 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30484$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030485 else
30486 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30488$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030489 fi
30490 else
30491 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30493$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030494 fi
30495 fi
30496
30497 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030498 if test "1${var}" = '17' ; then
30499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30500$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30501if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30502 $as_echo_n "(cached) " >&6
30503else
30504 ac_check_lib_save_LIBS=$LIBS
30505LIBS="-lpng17 $LIBS"
30506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30507/* end confdefs.h. */
30508
30509/* Override any GCC internal prototype to avoid an error.
30510 Use char because int might match the return type of a GCC
30511 builtin and then its argument prototype would still apply. */
30512#ifdef __cplusplus
30513extern "C"
30514#endif
30515char png_get_io_ptr ();
30516int
30517main ()
30518{
30519return png_get_io_ptr ();
30520 ;
30521 return 0;
30522}
30523_ACEOF
30524if ac_fn_c_try_link "$LINENO"; then :
30525 ac_cv_lib_png17_png_get_io_ptr=yes
30526else
30527 ac_cv_lib_png17_png_get_io_ptr=no
30528fi
30529rm -f core conftest.err conftest.$ac_objext \
30530 conftest$ac_exeext conftest.$ac_ext
30531LIBS=$ac_check_lib_save_LIBS
30532fi
30533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30534$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30535if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30536 passed=`expr $passed + 1`
30537else
30538 failed=`expr $failed + 1`
30539fi
30540
30541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30542$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30543if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30544 $as_echo_n "(cached) " >&6
30545else
30546 ac_check_lib_save_LIBS=$LIBS
30547LIBS="-lpng17 $LIBS"
30548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30549/* end confdefs.h. */
30550
30551/* Override any GCC internal prototype to avoid an error.
30552 Use char because int might match the return type of a GCC
30553 builtin and then its argument prototype would still apply. */
30554#ifdef __cplusplus
30555extern "C"
30556#endif
30557char png_longjmp ();
30558int
30559main ()
30560{
30561return png_longjmp ();
30562 ;
30563 return 0;
30564}
30565_ACEOF
30566if ac_fn_c_try_link "$LINENO"; then :
30567 ac_cv_lib_png17_png_longjmp=yes
30568else
30569 ac_cv_lib_png17_png_longjmp=no
30570fi
30571rm -f core conftest.err conftest.$ac_objext \
30572 conftest$ac_exeext conftest.$ac_ext
30573LIBS=$ac_check_lib_save_LIBS
30574fi
30575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30576$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30577if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30578 passed=`expr $passed + 1`
30579else
30580 failed=`expr $failed + 1`
30581fi
30582
30583 fi
30584 if test "1${var}" = '16' ; then
30585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30586$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30587if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30588 $as_echo_n "(cached) " >&6
30589else
30590 ac_check_lib_save_LIBS=$LIBS
30591LIBS="-lpng16 $LIBS"
30592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30593/* end confdefs.h. */
30594
30595/* Override any GCC internal prototype to avoid an error.
30596 Use char because int might match the return type of a GCC
30597 builtin and then its argument prototype would still apply. */
30598#ifdef __cplusplus
30599extern "C"
30600#endif
30601char png_get_io_ptr ();
30602int
30603main ()
30604{
30605return png_get_io_ptr ();
30606 ;
30607 return 0;
30608}
30609_ACEOF
30610if ac_fn_c_try_link "$LINENO"; then :
30611 ac_cv_lib_png16_png_get_io_ptr=yes
30612else
30613 ac_cv_lib_png16_png_get_io_ptr=no
30614fi
30615rm -f core conftest.err conftest.$ac_objext \
30616 conftest$ac_exeext conftest.$ac_ext
30617LIBS=$ac_check_lib_save_LIBS
30618fi
30619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
30620$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
30621if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
30622 passed=`expr $passed + 1`
30623else
30624 failed=`expr $failed + 1`
30625fi
30626
30627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
30628$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
30629if ${ac_cv_lib_png16_png_longjmp+:} false; then :
30630 $as_echo_n "(cached) " >&6
30631else
30632 ac_check_lib_save_LIBS=$LIBS
30633LIBS="-lpng16 $LIBS"
30634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30635/* end confdefs.h. */
30636
30637/* Override any GCC internal prototype to avoid an error.
30638 Use char because int might match the return type of a GCC
30639 builtin and then its argument prototype would still apply. */
30640#ifdef __cplusplus
30641extern "C"
30642#endif
30643char png_longjmp ();
30644int
30645main ()
30646{
30647return png_longjmp ();
30648 ;
30649 return 0;
30650}
30651_ACEOF
30652if ac_fn_c_try_link "$LINENO"; then :
30653 ac_cv_lib_png16_png_longjmp=yes
30654else
30655 ac_cv_lib_png16_png_longjmp=no
30656fi
30657rm -f core conftest.err conftest.$ac_objext \
30658 conftest$ac_exeext conftest.$ac_ext
30659LIBS=$ac_check_lib_save_LIBS
30660fi
30661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
30662$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
30663if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
30664 passed=`expr $passed + 1`
30665else
30666 failed=`expr $failed + 1`
30667fi
30668
30669 fi
cristy81beccd2011-10-03 18:17:24 +000030670 if test "1${var}" = '15' ; then
30671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30672$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30673if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30674 $as_echo_n "(cached) " >&6
30675else
30676 ac_check_lib_save_LIBS=$LIBS
30677LIBS="-lpng15 $LIBS"
30678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30679/* end confdefs.h. */
30680
30681/* Override any GCC internal prototype to avoid an error.
30682 Use char because int might match the return type of a GCC
30683 builtin and then its argument prototype would still apply. */
30684#ifdef __cplusplus
30685extern "C"
30686#endif
30687char png_get_io_ptr ();
30688int
30689main ()
30690{
30691return png_get_io_ptr ();
30692 ;
30693 return 0;
30694}
30695_ACEOF
30696if ac_fn_c_try_link "$LINENO"; then :
30697 ac_cv_lib_png15_png_get_io_ptr=yes
30698else
30699 ac_cv_lib_png15_png_get_io_ptr=no
30700fi
30701rm -f core conftest.err conftest.$ac_objext \
30702 conftest$ac_exeext conftest.$ac_ext
30703LIBS=$ac_check_lib_save_LIBS
30704fi
30705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30706$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30707if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30708 passed=`expr $passed + 1`
30709else
30710 failed=`expr $failed + 1`
30711fi
30712
30713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30714$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30715if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30716 $as_echo_n "(cached) " >&6
30717else
30718 ac_check_lib_save_LIBS=$LIBS
30719LIBS="-lpng15 $LIBS"
30720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30721/* end confdefs.h. */
30722
30723/* Override any GCC internal prototype to avoid an error.
30724 Use char because int might match the return type of a GCC
30725 builtin and then its argument prototype would still apply. */
30726#ifdef __cplusplus
30727extern "C"
30728#endif
30729char png_longjmp ();
30730int
30731main ()
30732{
30733return png_longjmp ();
30734 ;
30735 return 0;
30736}
30737_ACEOF
30738if ac_fn_c_try_link "$LINENO"; then :
30739 ac_cv_lib_png15_png_longjmp=yes
30740else
30741 ac_cv_lib_png15_png_longjmp=no
30742fi
30743rm -f core conftest.err conftest.$ac_objext \
30744 conftest$ac_exeext conftest.$ac_ext
30745LIBS=$ac_check_lib_save_LIBS
30746fi
30747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30748$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30749if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30750 passed=`expr $passed + 1`
30751else
30752 failed=`expr $failed + 1`
30753fi
30754
30755 fi
30756 if test "1${var}" = '14' ; then
30757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30758$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30759if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30760 $as_echo_n "(cached) " >&6
30761else
30762 ac_check_lib_save_LIBS=$LIBS
30763LIBS="-lpng14 $LIBS"
30764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30765/* end confdefs.h. */
30766
30767/* Override any GCC internal prototype to avoid an error.
30768 Use char because int might match the return type of a GCC
30769 builtin and then its argument prototype would still apply. */
30770#ifdef __cplusplus
30771extern "C"
30772#endif
30773char png_get_io_ptr ();
30774int
30775main ()
30776{
30777return png_get_io_ptr ();
30778 ;
30779 return 0;
30780}
30781_ACEOF
30782if ac_fn_c_try_link "$LINENO"; then :
30783 ac_cv_lib_png14_png_get_io_ptr=yes
30784else
30785 ac_cv_lib_png14_png_get_io_ptr=no
30786fi
30787rm -f core conftest.err conftest.$ac_objext \
30788 conftest$ac_exeext conftest.$ac_ext
30789LIBS=$ac_check_lib_save_LIBS
30790fi
30791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30792$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30793if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30794 passed=`expr $passed + 1`
30795else
30796 failed=`expr $failed + 1`
30797fi
30798
30799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30800$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30801if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30802 $as_echo_n "(cached) " >&6
30803else
30804 ac_check_lib_save_LIBS=$LIBS
30805LIBS="-lpng14 $LIBS"
30806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30807/* end confdefs.h. */
30808
30809/* Override any GCC internal prototype to avoid an error.
30810 Use char because int might match the return type of a GCC
30811 builtin and then its argument prototype would still apply. */
30812#ifdef __cplusplus
30813extern "C"
30814#endif
30815char png_get_io_state ();
30816int
30817main ()
30818{
30819return png_get_io_state ();
30820 ;
30821 return 0;
30822}
30823_ACEOF
30824if ac_fn_c_try_link "$LINENO"; then :
30825 ac_cv_lib_png14_png_get_io_state=yes
30826else
30827 ac_cv_lib_png14_png_get_io_state=no
30828fi
30829rm -f core conftest.err conftest.$ac_objext \
30830 conftest$ac_exeext conftest.$ac_ext
30831LIBS=$ac_check_lib_save_LIBS
30832fi
30833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30834$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30835if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30836 passed=`expr $passed + 1`
30837else
30838 failed=`expr $failed + 1`
30839fi
30840
30841 fi
30842 if test "1${var}" = '12' ; then
30843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30844$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30845if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30846 $as_echo_n "(cached) " >&6
30847else
30848 ac_check_lib_save_LIBS=$LIBS
30849LIBS="-lpng12 $LIBS"
30850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30851/* end confdefs.h. */
30852
30853/* Override any GCC internal prototype to avoid an error.
30854 Use char because int might match the return type of a GCC
30855 builtin and then its argument prototype would still apply. */
30856#ifdef __cplusplus
30857extern "C"
30858#endif
30859char png_get_io_ptr ();
30860int
30861main ()
30862{
30863return png_get_io_ptr ();
30864 ;
30865 return 0;
30866}
30867_ACEOF
30868if ac_fn_c_try_link "$LINENO"; then :
30869 ac_cv_lib_png12_png_get_io_ptr=yes
30870else
30871 ac_cv_lib_png12_png_get_io_ptr=no
30872fi
30873rm -f core conftest.err conftest.$ac_objext \
30874 conftest$ac_exeext conftest.$ac_ext
30875LIBS=$ac_check_lib_save_LIBS
30876fi
30877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30878$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30879if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30880 passed=`expr $passed + 1`
30881else
30882 failed=`expr $failed + 1`
30883fi
30884
30885 fi
30886 if test "1${var}" = '1' ; then
30887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30888$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30889if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30890 $as_echo_n "(cached) " >&6
30891else
30892 ac_check_lib_save_LIBS=$LIBS
30893LIBS="-lpng $LIBS"
30894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30895/* end confdefs.h. */
30896
30897/* Override any GCC internal prototype to avoid an error.
30898 Use char because int might match the return type of a GCC
30899 builtin and then its argument prototype would still apply. */
30900#ifdef __cplusplus
30901extern "C"
30902#endif
30903char png_get_io_ptr ();
30904int
30905main ()
30906{
30907return png_get_io_ptr ();
30908 ;
30909 return 0;
30910}
30911_ACEOF
30912if ac_fn_c_try_link "$LINENO"; then :
30913 ac_cv_lib_png_png_get_io_ptr=yes
30914else
30915 ac_cv_lib_png_png_get_io_ptr=no
30916fi
30917rm -f core conftest.err conftest.$ac_objext \
30918 conftest$ac_exeext conftest.$ac_ext
30919LIBS=$ac_check_lib_save_LIBS
30920fi
30921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30922$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30923if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30924 passed=`expr $passed + 1`
30925else
30926 failed=`expr $failed + 1`
30927fi
30928
30929 fi
30930 if test $passed -gt 0 -a $failed -le 0 ; then
30931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30932$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30933 if test $passed -gt 0 ; then
30934 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000030935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30936$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030937 have_png='no (failed tests)'
30938 else
30939 PNG_LIBS="-l${pnglib}"
30940 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030941
cristy8b350f62009-11-15 23:12:43 +000030942$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030943
cristyad38abe2012-12-23 23:03:21 +000030944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30945$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030946 have_png='yes'
30947 fi
30948 fi
30949 fi
30950 fi
30951 fi
30952 done
30953 fi
cristy3ed852e2009-09-05 21:47:34 +000030954fi
cristy64877302011-08-23 19:10:31 +000030955
cristy73bd4a52010-10-05 11:24:23 +000030956 if test "$have_png" = 'yes'; then
30957 PNG_DELEGATE_TRUE=
30958 PNG_DELEGATE_FALSE='#'
30959else
30960 PNG_DELEGATE_TRUE='#'
30961 PNG_DELEGATE_FALSE=
30962fi
30963
cristy3ed852e2009-09-05 21:47:34 +000030964
cristy50d3f5c2011-09-10 20:09:06 +000030965
cristy3ed852e2009-09-05 21:47:34 +000030966
30967
30968#
30969# Check for RSVG delegate library.
30970#
30971
30972# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030973if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030974 withval=$with_rsvg; with_rsvg=$withval
30975else
cristy1164d5f2012-08-15 00:58:25 +000030976 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000030977fi
30978
30979
30980if test "$with_rsvg" != 'yes'; then
30981 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30982fi
30983
30984have_rsvg='no'
30985have_cairo='no'
30986RSVG_CFLAGS=""
30987RSVG_LIBS=""
30988RSVG_PKG=""
30989if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30991$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030992
30993pkg_failed=no
30994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30995$as_echo_n "checking for RSVG... " >&6; }
30996
30997if test -n "$RSVG_CFLAGS"; then
30998 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30999 elif test -n "$PKG_CONFIG"; then
31000 if test -n "$PKG_CONFIG" && \
31001 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31002 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31003 ac_status=$?
31004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31005 test $ac_status = 0; }; then
31006 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31007else
31008 pkg_failed=yes
31009fi
31010 else
31011 pkg_failed=untried
31012fi
31013if test -n "$RSVG_LIBS"; then
31014 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31015 elif test -n "$PKG_CONFIG"; then
31016 if test -n "$PKG_CONFIG" && \
31017 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31018 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31019 ac_status=$?
31020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31021 test $ac_status = 0; }; then
31022 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31023else
31024 pkg_failed=yes
31025fi
31026 else
31027 pkg_failed=untried
31028fi
31029
31030
31031
31032if test $pkg_failed = yes; then
31033
31034if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31035 _pkg_short_errors_supported=yes
31036else
31037 _pkg_short_errors_supported=no
31038fi
31039 if test $_pkg_short_errors_supported = yes; then
31040 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31041 else
31042 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31043 fi
31044 # Put the nasty error message in config.log where it belongs
31045 echo "$RSVG_PKG_ERRORS" >&5
31046
31047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31048$as_echo "no" >&6; }
31049 have_rsvg=no
31050elif test $pkg_failed = untried; then
31051 have_rsvg=no
31052else
31053 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31054 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31056$as_echo "yes" >&6; }
31057 have_rsvg=yes
31058fi
cristyad38abe2012-12-23 23:03:21 +000031059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31060$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031061
31062pkg_failed=no
31063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31064$as_echo_n "checking for CAIRO_SVG... " >&6; }
31065
31066if test -n "$CAIRO_SVG_CFLAGS"; then
31067 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31068 elif test -n "$PKG_CONFIG"; then
31069 if test -n "$PKG_CONFIG" && \
31070 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31071 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31072 ac_status=$?
31073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31074 test $ac_status = 0; }; then
31075 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31076else
31077 pkg_failed=yes
31078fi
31079 else
31080 pkg_failed=untried
31081fi
31082if test -n "$CAIRO_SVG_LIBS"; then
31083 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31084 elif test -n "$PKG_CONFIG"; then
31085 if test -n "$PKG_CONFIG" && \
31086 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31087 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31088 ac_status=$?
31089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31090 test $ac_status = 0; }; then
31091 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31092else
31093 pkg_failed=yes
31094fi
31095 else
31096 pkg_failed=untried
31097fi
31098
31099
31100
31101if test $pkg_failed = yes; then
31102
31103if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31104 _pkg_short_errors_supported=yes
31105else
31106 _pkg_short_errors_supported=no
31107fi
31108 if test $_pkg_short_errors_supported = yes; then
31109 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31110 else
31111 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31112 fi
31113 # Put the nasty error message in config.log where it belongs
31114 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31115
31116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31117$as_echo "no" >&6; }
31118 have_cairo=no
31119elif test $pkg_failed = untried; then
31120 have_cairo=no
31121else
31122 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31123 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31125$as_echo "yes" >&6; }
31126 have_cairo=yes
31127fi
cristyad38abe2012-12-23 23:03:21 +000031128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31129$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031130fi
31131
31132if test "$have_rsvg" = 'yes'; then
31133
cristy8b350f62009-11-15 23:12:43 +000031134$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031135
cristyc6722092012-10-14 00:19:31 +000031136 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031137 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31138 fi
31139fi
31140
31141if test "$have_cairo" = 'yes'; then
31142
cristy8b350f62009-11-15 23:12:43 +000031143$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031144
cristyc6722092012-10-14 00:19:31 +000031145 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031146 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31147 fi
31148fi
31149
cristy73bd4a52010-10-05 11:24:23 +000031150 if test "$have_rsvg" = 'yes'; then
31151 RSVG_DELEGATE_TRUE=
31152 RSVG_DELEGATE_FALSE='#'
31153else
31154 RSVG_DELEGATE_TRUE='#'
31155 RSVG_DELEGATE_FALSE=
31156fi
31157
31158 if test "$have_cairo" = 'yes'; then
31159 CAIRO_DELEGATE_TRUE=
31160 CAIRO_DELEGATE_FALSE='#'
31161else
31162 CAIRO_DELEGATE_TRUE='#'
31163 CAIRO_DELEGATE_FALSE=
31164fi
31165
cristy3ed852e2009-09-05 21:47:34 +000031166
31167
31168
31169
31170#
31171# Check for TIFF delegate library.
31172#
31173
31174# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031175if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031176 withval=$with_tiff; with_tiff=$withval
31177else
31178 with_tiff='yes'
31179fi
31180
31181
31182if test "$with_tiff" != 'yes'; then
31183 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31184fi
31185
31186have_tiff='no'
31187TIFF_LIBS=''
31188if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31190$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031192$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31194$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031195 failed=0
31196 passed=0
cristy8b350f62009-11-15 23:12:43 +000031197 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031198if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031199 passed=`expr $passed + 1`
31200else
31201 failed=`expr $failed + 1`
31202fi
31203
31204
cristy8b350f62009-11-15 23:12:43 +000031205 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031206if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031207 passed=`expr $passed + 1`
31208else
31209 failed=`expr $failed + 1`
31210fi
31211
31212
cristy8b350f62009-11-15 23:12:43 +000031213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031214$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031215if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031216 $as_echo_n "(cached) " >&6
31217else
31218 ac_check_lib_save_LIBS=$LIBS
31219LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031221/* end confdefs.h. */
31222
31223/* Override any GCC internal prototype to avoid an error.
31224 Use char because int might match the return type of a GCC
31225 builtin and then its argument prototype would still apply. */
31226#ifdef __cplusplus
31227extern "C"
31228#endif
31229char TIFFOpen ();
31230int
31231main ()
31232{
31233return TIFFOpen ();
31234 ;
31235 return 0;
31236}
31237_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031238if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031239 ac_cv_lib_tiff_TIFFOpen=yes
31240else
cristy8b350f62009-11-15 23:12:43 +000031241 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031242fi
cristy8b350f62009-11-15 23:12:43 +000031243rm -f core conftest.err conftest.$ac_objext \
31244 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031245LIBS=$ac_check_lib_save_LIBS
31246fi
cristy8b350f62009-11-15 23:12:43 +000031247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031248$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031249if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031250 passed=`expr $passed + 1`
31251else
31252 failed=`expr $failed + 1`
31253fi
31254
cristy8b350f62009-11-15 23:12:43 +000031255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031256$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031257if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031258 $as_echo_n "(cached) " >&6
31259else
31260 ac_check_lib_save_LIBS=$LIBS
31261LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031263/* end confdefs.h. */
31264
31265/* Override any GCC internal prototype to avoid an error.
31266 Use char because int might match the return type of a GCC
31267 builtin and then its argument prototype would still apply. */
31268#ifdef __cplusplus
31269extern "C"
31270#endif
31271char TIFFClientOpen ();
31272int
31273main ()
31274{
31275return TIFFClientOpen ();
31276 ;
31277 return 0;
31278}
31279_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031280if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031281 ac_cv_lib_tiff_TIFFClientOpen=yes
31282else
cristy8b350f62009-11-15 23:12:43 +000031283 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031284fi
cristy8b350f62009-11-15 23:12:43 +000031285rm -f core conftest.err conftest.$ac_objext \
31286 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031287LIBS=$ac_check_lib_save_LIBS
31288fi
cristy8b350f62009-11-15 23:12:43 +000031289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031290$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031291if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031292 passed=`expr $passed + 1`
31293else
31294 failed=`expr $failed + 1`
31295fi
31296
cristy8b350f62009-11-15 23:12:43 +000031297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031298$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031299if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031300 $as_echo_n "(cached) " >&6
31301else
31302 ac_check_lib_save_LIBS=$LIBS
31303LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031305/* end confdefs.h. */
31306
31307/* Override any GCC internal prototype to avoid an error.
31308 Use char because int might match the return type of a GCC
31309 builtin and then its argument prototype would still apply. */
31310#ifdef __cplusplus
31311extern "C"
31312#endif
31313char TIFFIsByteSwapped ();
31314int
31315main ()
31316{
31317return TIFFIsByteSwapped ();
31318 ;
31319 return 0;
31320}
31321_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031322if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031323 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31324else
cristy8b350f62009-11-15 23:12:43 +000031325 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031326fi
cristy8b350f62009-11-15 23:12:43 +000031327rm -f core conftest.err conftest.$ac_objext \
31328 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031329LIBS=$ac_check_lib_save_LIBS
31330fi
cristy8b350f62009-11-15 23:12:43 +000031331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031332$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031333if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031334 passed=`expr $passed + 1`
31335else
31336 failed=`expr $failed + 1`
31337fi
31338
cristy8b350f62009-11-15 23:12:43 +000031339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031340$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031341if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031342 $as_echo_n "(cached) " >&6
31343else
31344 ac_check_lib_save_LIBS=$LIBS
31345LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031347/* end confdefs.h. */
31348
31349/* Override any GCC internal prototype to avoid an error.
31350 Use char because int might match the return type of a GCC
31351 builtin and then its argument prototype would still apply. */
31352#ifdef __cplusplus
31353extern "C"
31354#endif
31355char TIFFReadRGBATile ();
31356int
31357main ()
31358{
31359return TIFFReadRGBATile ();
31360 ;
31361 return 0;
31362}
31363_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031364if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031365 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31366else
cristy8b350f62009-11-15 23:12:43 +000031367 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031368fi
cristy8b350f62009-11-15 23:12:43 +000031369rm -f core conftest.err conftest.$ac_objext \
31370 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031371LIBS=$ac_check_lib_save_LIBS
31372fi
cristy8b350f62009-11-15 23:12:43 +000031373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031374$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031375if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031376 passed=`expr $passed + 1`
31377else
31378 failed=`expr $failed + 1`
31379fi
31380
cristy8b350f62009-11-15 23:12:43 +000031381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031382$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031383if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031384 $as_echo_n "(cached) " >&6
31385else
31386 ac_check_lib_save_LIBS=$LIBS
31387LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031389/* end confdefs.h. */
31390
31391/* Override any GCC internal prototype to avoid an error.
31392 Use char because int might match the return type of a GCC
31393 builtin and then its argument prototype would still apply. */
31394#ifdef __cplusplus
31395extern "C"
31396#endif
31397char TIFFReadRGBAStrip ();
31398int
31399main ()
31400{
31401return TIFFReadRGBAStrip ();
31402 ;
31403 return 0;
31404}
31405_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031406if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031407 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31408else
cristy8b350f62009-11-15 23:12:43 +000031409 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031410fi
cristy8b350f62009-11-15 23:12:43 +000031411rm -f core conftest.err conftest.$ac_objext \
31412 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031413LIBS=$ac_check_lib_save_LIBS
31414fi
cristy8b350f62009-11-15 23:12:43 +000031415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031416$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031417if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031418 passed=`expr $passed + 1`
31419else
31420 failed=`expr $failed + 1`
31421fi
31422
cristy8b350f62009-11-15 23:12:43 +000031423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031424$as_echo_n "checking if TIFF package is complete... " >&6; }
31425 if test $passed -gt 0; then
31426 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31428$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031429 have_tiff='no (failed tests)'
31430 else
31431 TIFF_LIBS='-ltiff'
31432 LIBS="$TIFF_LIBS $LIBS"
31433
cristy8b350f62009-11-15 23:12:43 +000031434$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031435
cristyad38abe2012-12-23 23:03:21 +000031436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31437$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031438 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031439 for ac_header in tiffconf.h
31440do :
31441 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031442if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031443 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031444#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031445_ACEOF
31446
31447fi
31448
31449done
31450
cristy8b350f62009-11-15 23:12:43 +000031451 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031452 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31453 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31454 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031455do :
31456 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31457ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031458if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031459 cat >>confdefs.h <<_ACEOF
31460#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31461_ACEOF
31462
31463fi
31464done
31465
31466 fi
31467 else
cristyad38abe2012-12-23 23:03:21 +000031468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31469$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031470 fi
31471fi
cristy73bd4a52010-10-05 11:24:23 +000031472 if test "$have_tiff" = 'yes'; then
31473 TIFF_DELEGATE_TRUE=
31474 TIFF_DELEGATE_FALSE='#'
31475else
31476 TIFF_DELEGATE_TRUE='#'
31477 TIFF_DELEGATE_FALSE=
31478fi
31479
cristy3ed852e2009-09-05 21:47:34 +000031480
31481
31482
31483#
cristyb1860752011-03-14 00:27:46 +000031484# Check for WEBP delegate library.
31485#
31486
31487# Check whether --with-webp was given.
31488if test "${with_webp+set}" = set; then :
31489 withval=$with_webp; with_webp=$withval
31490else
31491 with_webp='yes'
31492fi
31493
31494
31495if test "$with_webp" != 'yes'; then
31496 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31497fi
31498
31499have_webp='no'
31500WEBP_LIBS=''
31501if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31503$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31505$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31507$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031508 failed=0
31509 passed=0
31510 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31511if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31512 passed=`expr $passed + 1`
31513else
31514 failed=`expr $failed + 1`
31515fi
31516
31517
cristy6d670312013-03-22 23:23:01 +000031518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31519$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31520if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031521 $as_echo_n "(cached) " >&6
31522else
31523 ac_check_lib_save_LIBS=$LIBS
31524LIBS="-lwebp $LIBS"
31525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31526/* end confdefs.h. */
31527
31528/* Override any GCC internal prototype to avoid an error.
31529 Use char because int might match the return type of a GCC
31530 builtin and then its argument prototype would still apply. */
31531#ifdef __cplusplus
31532extern "C"
31533#endif
cristy6d670312013-03-22 23:23:01 +000031534char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031535int
31536main ()
31537{
cristy6d670312013-03-22 23:23:01 +000031538return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031539 ;
31540 return 0;
31541}
31542_ACEOF
31543if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031544 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031545else
cristy6d670312013-03-22 23:23:01 +000031546 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031547fi
31548rm -f core conftest.err conftest.$ac_objext \
31549 conftest$ac_exeext conftest.$ac_ext
31550LIBS=$ac_check_lib_save_LIBS
31551fi
cristy6d670312013-03-22 23:23:01 +000031552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31553$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31554if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031555 passed=`expr $passed + 1`
31556else
31557 failed=`expr $failed + 1`
31558fi
31559
31560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31561$as_echo_n "checking if WEBP package is complete... " >&6; }
31562 if test $passed -gt 0; then
31563 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31565$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031566 have_webp='no (failed tests)'
31567 else
31568 WEBP_LIBS='-lwebp'
31569 LIBS="$WEBP_LIBS $LIBS"
31570
31571$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31572
cristyad38abe2012-12-23 23:03:21 +000031573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31574$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031575 have_webp='yes'
31576 fi
31577 else
cristyad38abe2012-12-23 23:03:21 +000031578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31579$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031580 fi
31581fi
31582 if test "$have_webp" = 'yes'; then
31583 WEBP_DELEGATE_TRUE=
31584 WEBP_DELEGATE_FALSE='#'
31585else
31586 WEBP_DELEGATE_TRUE='#'
31587 WEBP_DELEGATE_FALSE=
31588fi
31589
31590
31591
31592
31593#
cristy3ed852e2009-09-05 21:47:34 +000031594# Set Windows font directory.
31595#
31596
31597# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031598if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031599 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31600else
31601 with_windows_font_dir=''
31602fi
31603
31604if test "$with_windows_font_dir" != '' ; then
31605 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31606fi
31607
31608
31609#
31610# Check for WMF delegate library.
31611#
31612
31613# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031614if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031615 withval=$with_wmf; with_wmf=$withval
31616else
cristyfc3d0222012-02-07 15:05:57 +000031617 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031618fi
31619
31620
31621if test "$with_wmf" != 'yes'; then
31622 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31623fi
31624
31625have_wmf='no'
31626WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031627WMF_LIBS_DEPS=''
31628OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031629if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31631$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031633$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31635$as_echo "" >&6; }
31636 have_libwmf='no'
31637 have_libwmflite='no'
31638 have_libwmf_ipa_h='no'
31639
31640 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31641"
31642if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31643 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031644fi
31645
31646
cristy03f7cf92011-12-15 01:40:41 +000031647 if test "$have_libwmf_ipa_h" = 'yes'; then
31648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31649$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31650if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031651 $as_echo_n "(cached) " >&6
31652else
31653 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031654LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031656/* end confdefs.h. */
31657
31658/* Override any GCC internal prototype to avoid an error.
31659 Use char because int might match the return type of a GCC
31660 builtin and then its argument prototype would still apply. */
31661#ifdef __cplusplus
31662extern "C"
31663#endif
cristy03f7cf92011-12-15 01:40:41 +000031664char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031665int
31666main ()
31667{
cristy03f7cf92011-12-15 01:40:41 +000031668return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031669 ;
31670 return 0;
31671}
31672_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031673if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031674 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031675else
cristy03f7cf92011-12-15 01:40:41 +000031676 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031677fi
cristy8b350f62009-11-15 23:12:43 +000031678rm -f core conftest.err conftest.$ac_objext \
31679 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031680LIBS=$ac_check_lib_save_LIBS
31681fi
cristy03f7cf92011-12-15 01:40:41 +000031682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31683$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31684if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31685 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031686fi
31687
cristy03f7cf92011-12-15 01:40:41 +000031688 if test "$have_libwmflite" = 'yes'; then
31689
31690$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31691
31692 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031693 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031694 have_wmf='yes'
31695 else
31696 WMF_LIBS_DEPS=''
31697 WMF_CONFIG_LIBS=`libwmf-config --libs`
31698 for lib in xml2 expat freetype jpeg png z; do
31699 testlib="-l${lib}"
31700 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31701 done
31702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31703$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31704if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31705 $as_echo_n "(cached) " >&6
31706else
31707 ac_check_lib_save_LIBS=$LIBS
31708LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31710/* end confdefs.h. */
31711
31712/* Override any GCC internal prototype to avoid an error.
31713 Use char because int might match the return type of a GCC
31714 builtin and then its argument prototype would still apply. */
31715#ifdef __cplusplus
31716extern "C"
31717#endif
31718char wmf_api_create ();
31719int
31720main ()
31721{
31722return wmf_api_create ();
31723 ;
31724 return 0;
31725}
31726_ACEOF
31727if ac_fn_c_try_link "$LINENO"; then :
31728 ac_cv_lib_wmf_wmf_api_create=yes
31729else
31730 ac_cv_lib_wmf_wmf_api_create=no
31731fi
31732rm -f core conftest.err conftest.$ac_objext \
31733 conftest$ac_exeext conftest.$ac_ext
31734LIBS=$ac_check_lib_save_LIBS
31735fi
31736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31737$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31738if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31739 have_libwmf='yes'
31740fi
31741
31742 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031743
cristy8b350f62009-11-15 23:12:43 +000031744$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031745
cristy03f7cf92011-12-15 01:40:41 +000031746 WMF_LIBS='-lwmf'
31747 LIBS="$WMF_LIBS $LIBS"
31748 have_wmf='yes'
31749 else
31750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31751$as_echo "no -- some components failed test" >&6; }
31752 have_wmf='no (failed tests)'
31753 have_wmflite='no (failed tests)'
31754 LIBS="$OLIBS"
31755 WMF_LIBS=''
31756 fi
glennrp33e524b2011-08-24 17:41:57 +000031757 fi
cristy03f7cf92011-12-15 01:40:41 +000031758 fi
31759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31760$as_echo_n "checking if WMF package is complete... " >&6; }
31761 if test "$have_wmf" = 'yes'; then
31762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31763$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031764 else
cristy03f7cf92011-12-15 01:40:41 +000031765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31766$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031767 fi
cristy3ed852e2009-09-05 21:47:34 +000031768fi
cristy73bd4a52010-10-05 11:24:23 +000031769 if test "$have_wmf" = 'yes'; then
31770 WMF_DELEGATE_TRUE=
31771 WMF_DELEGATE_FALSE='#'
31772else
31773 WMF_DELEGATE_TRUE='#'
31774 WMF_DELEGATE_FALSE=
31775fi
31776
cristy3ed852e2009-09-05 21:47:34 +000031777
31778
31779
cristy81beccd2011-10-03 18:17:24 +000031780
31781
cristy3ed852e2009-09-05 21:47:34 +000031782#
31783# Check for XML delegate library.
31784#
31785
31786# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031787if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031788 withval=$with_xml; with_xml=$withval
31789else
cristyfc3d0222012-02-07 15:05:57 +000031790 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031791fi
31792
31793
cristy81beccd2011-10-03 18:17:24 +000031794if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031795 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31796fi
31797
cristy81beccd2011-10-03 18:17:24 +000031798have_xml='no'
31799XML_LIBS=''
31800if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31802$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31804$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31806$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031807 PERSIST_LDFLAGS=$LDFLAGS
31808 PERSIST_CPPFLAGS=$CPPFLAGS
31809 xml2_config=''
31810 # Extract the first word of "xml2-config", so it can be a program name with args.
31811set dummy xml2-config; ac_word=$2
31812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31813$as_echo_n "checking for $ac_word... " >&6; }
31814if ${ac_cv_path_xml2_config+:} false; then :
31815 $as_echo_n "(cached) " >&6
31816else
31817 case $xml2_config in
31818 [\\/]* | ?:[\\/]*)
31819 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31820 ;;
31821 *)
31822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31823for as_dir in $PATH
31824do
31825 IFS=$as_save_IFS
31826 test -z "$as_dir" && as_dir=.
31827 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000031829 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31831 break 2
31832 fi
31833done
31834 done
31835IFS=$as_save_IFS
31836
31837 ;;
31838esac
31839fi
31840xml2_config=$ac_cv_path_xml2_config
31841if test -n "$xml2_config"; then
31842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31843$as_echo "$xml2_config" >&6; }
31844else
31845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31846$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031847fi
31848
cristy81beccd2011-10-03 18:17:24 +000031849 if test -n "$xml2_config"; then
31850 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31851 # the shared library installed under /usr/lib, whereas the package
31852 # installs itself under $prefix/libxml and $prefix/lib.
31853 xml2_prefix=`xml2-config --prefix`
31854 if test -d "${xml2_prefix}/include/libxml2"; then
31855 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31856 fi
31857 if test "${xml2_prefix}" != '/usr'; then
31858 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31859 fi
31860 fi
31861 failed=0
31862 passed=0
31863 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31864if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31865 passed=`expr $passed + 1`
31866else
31867 failed=`expr $failed + 1`
31868fi
31869
31870
31871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31872$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31873if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31874 $as_echo_n "(cached) " >&6
31875else
31876 ac_check_lib_save_LIBS=$LIBS
31877LIBS="-lxml2 $LIBS"
31878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31879/* end confdefs.h. */
31880
31881/* Override any GCC internal prototype to avoid an error.
31882 Use char because int might match the return type of a GCC
31883 builtin and then its argument prototype would still apply. */
31884#ifdef __cplusplus
31885extern "C"
31886#endif
31887char xmlSAXVersion ();
31888int
31889main ()
31890{
31891return xmlSAXVersion ();
31892 ;
31893 return 0;
31894}
31895_ACEOF
31896if ac_fn_c_try_link "$LINENO"; then :
31897 ac_cv_lib_xml2_xmlSAXVersion=yes
31898else
31899 ac_cv_lib_xml2_xmlSAXVersion=no
31900fi
31901rm -f core conftest.err conftest.$ac_objext \
31902 conftest$ac_exeext conftest.$ac_ext
31903LIBS=$ac_check_lib_save_LIBS
31904fi
31905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31906$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31907if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31908 passed=`expr $passed + 1`
31909else
31910 failed=`expr $failed + 1`
31911fi
31912
31913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31914$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31915if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31916 $as_echo_n "(cached) " >&6
31917else
31918 ac_check_lib_save_LIBS=$LIBS
31919LIBS="-lxml2 $LIBS"
31920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31921/* end confdefs.h. */
31922
31923/* Override any GCC internal prototype to avoid an error.
31924 Use char because int might match the return type of a GCC
31925 builtin and then its argument prototype would still apply. */
31926#ifdef __cplusplus
31927extern "C"
31928#endif
31929char xmlParseChunk ();
31930int
31931main ()
31932{
31933return xmlParseChunk ();
31934 ;
31935 return 0;
31936}
31937_ACEOF
31938if ac_fn_c_try_link "$LINENO"; then :
31939 ac_cv_lib_xml2_xmlParseChunk=yes
31940else
31941 ac_cv_lib_xml2_xmlParseChunk=no
31942fi
31943rm -f core conftest.err conftest.$ac_objext \
31944 conftest$ac_exeext conftest.$ac_ext
31945LIBS=$ac_check_lib_save_LIBS
31946fi
31947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31948$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31949if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31950 passed=`expr $passed + 1`
31951else
31952 failed=`expr $failed + 1`
31953fi
31954
31955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31956$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31957if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31958 $as_echo_n "(cached) " >&6
31959else
31960 ac_check_lib_save_LIBS=$LIBS
31961LIBS="-lxml2 $LIBS"
31962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31963/* end confdefs.h. */
31964
31965/* Override any GCC internal prototype to avoid an error.
31966 Use char because int might match the return type of a GCC
31967 builtin and then its argument prototype would still apply. */
31968#ifdef __cplusplus
31969extern "C"
31970#endif
31971char xmlCreatePushParserCtxt ();
31972int
31973main ()
31974{
31975return xmlCreatePushParserCtxt ();
31976 ;
31977 return 0;
31978}
31979_ACEOF
31980if ac_fn_c_try_link "$LINENO"; then :
31981 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31982else
31983 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31984fi
31985rm -f core conftest.err conftest.$ac_objext \
31986 conftest$ac_exeext conftest.$ac_ext
31987LIBS=$ac_check_lib_save_LIBS
31988fi
31989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31990$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31991if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31992 passed=`expr $passed + 1`
31993else
31994 failed=`expr $failed + 1`
31995fi
31996
31997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31998$as_echo_n "checking if XML package is complete... " >&6; }
31999 if test $passed -gt 0; then
32000 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32002$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032003 have_xml='no (failed tests)'
32004 LDFLAGS="$PERSIST_LDFLAGS"
32005 CPPFLAGS="$PERSIST_CPPFLAGS"
32006 else
32007 XML_LIBS='-lxml2'
32008 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032009
cristy8b350f62009-11-15 23:12:43 +000032010$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032011
cristyad38abe2012-12-23 23:03:21 +000032012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32013$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032014 have_xml='yes'
32015 fi
32016 else
cristyad38abe2012-12-23 23:03:21 +000032017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32018$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032019 fi
32020fi
cristy73bd4a52010-10-05 11:24:23 +000032021 if test "$have_xml" = 'yes'; then
32022 XML_DELEGATE_TRUE=
32023 XML_DELEGATE_FALSE='#'
32024else
32025 XML_DELEGATE_TRUE='#'
32026 XML_DELEGATE_FALSE=
32027fi
32028
cristy3ed852e2009-09-05 21:47:34 +000032029
32030
32031
32032# Substitute compiler name to build/link PerlMagick
32033#
32034
32035
32036#
32037# Configure install Paths
32038#
cristy7def36a2011-10-28 19:04:41 +000032039
cristy2a11bef2011-10-28 18:33:11 +000032040# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032041INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032042INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32043DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032044case "${build_os}" in
32045 mingw* )
32046 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32047 ;;
32048esac
32049
32050cat >>confdefs.h <<_ACEOF
32051#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32052_ACEOF
32053
32054
cristy3ed852e2009-09-05 21:47:34 +000032055
cristye52f12f2012-12-31 15:32:36 +000032056# Path to ImageMagick header files (arch part)
32057INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32058DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32059case "${build_os}" in
32060 mingw* )
32061 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32062 ;;
32063esac
32064
32065cat >>confdefs.h <<_ACEOF
32066#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32067_ACEOF
32068
32069
32070
cristy3ed852e2009-09-05 21:47:34 +000032071# Subdirectory under lib to place ImageMagick lib files
32072LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32073
32074cat >>confdefs.h <<_ACEOF
32075#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32076_ACEOF
32077
32078
32079# Path to ImageMagick bin directory
32080EXECUTABLE_PATH="${BIN_DIR}"
32081DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32082case "${build_os}" in
32083 mingw* )
32084 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32085 ;;
32086esac
32087
32088cat >>confdefs.h <<_ACEOF
32089#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32090_ACEOF
32091
32092
32093
32094# Path to ImageMagick lib
32095LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32096DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32097case "${build_os}" in
32098 mingw* )
32099 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32100 ;;
32101esac
32102
32103cat >>confdefs.h <<_ACEOF
32104#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32105_ACEOF
32106
32107
32108
cristy3ed852e2009-09-05 21:47:34 +000032109#
cristy8d0ff762013-03-10 20:33:28 +000032110# path to local binaries
32111if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32112 LIB_BIN_BASEDIRNAME="bin"
32113fi
32114
32115cat >>confdefs.h <<_ACEOF
32116#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32117_ACEOF
32118
32119
32120
32121if test "x$LIB_BIN_DIR" = "x"; then
32122 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32123fi
32124
32125
32126LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32127
32128LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32129
32130
32131#
cristy01ff9f32012-12-01 18:15:29 +000032132# path to modules lib
32133if test "x$MODULES_BASEDIRNAME" = "x"; then
32134 MODULES_BASEDIRNAME="modules"
32135fi
cristy3ed852e2009-09-05 21:47:34 +000032136
32137cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032138#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032139_ACEOF
32140
cristy01ff9f32012-12-01 18:15:29 +000032141
32142
32143if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032144 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32145else
cristy3ed852e2009-09-05 21:47:34 +000032146
32147cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032148#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032149_ACEOF
32150
cristycf4a3c22012-12-02 21:47:25 +000032151fi
cristy01ff9f32012-12-01 18:15:29 +000032152
32153
cristy371d4812012-12-01 19:48:10 +000032154MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032155
32156MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32157
32158
32159#
32160# path to coders lib
32161if test "x$CODER_DIRNAME" = "x"; then
32162 CODER_DIRNAME="coders"
32163fi
32164
32165cat >>confdefs.h <<_ACEOF
32166#define CODER_DIRNAME "$CODER_DIRNAME"
32167_ACEOF
32168
32169
32170
cristy371d4812012-12-01 19:48:10 +000032171CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032172CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032173
32174
32175#
32176# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032177#
32178# path to coders lib
32179if test "x$FILTER_DIRNAME" = "x"; then
32180 FILTER_DIRNAME="filters"
32181fi
cristy3ed852e2009-09-05 21:47:34 +000032182
32183cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032184#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032185_ACEOF
32186
cristy3ed852e2009-09-05 21:47:34 +000032187
cristy3ed852e2009-09-05 21:47:34 +000032188
cristy371d4812012-12-01 19:48:10 +000032189FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032190FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032191
32192
32193#
32194# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032195DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032196DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32197DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032198case "${build_os}" in
32199 mingw* )
32200 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32201 ;;
32202esac
32203
32204cat >>confdefs.h <<_ACEOF
32205#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32206_ACEOF
32207
32208
32209
cristy2a11bef2011-10-28 18:33:11 +000032210# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032211CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032212
32213cat >>confdefs.h <<_ACEOF
32214#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32215_ACEOF
32216
cristy7def36a2011-10-28 19:04:41 +000032217CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032218DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32219case "${build_os}" in
32220 mingw* )
32221 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32222 ;;
32223esac
32224
32225cat >>confdefs.h <<_ACEOF
32226#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32227_ACEOF
32228
32229
32230
cristy2a11bef2011-10-28 18:33:11 +000032231# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032232SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032233
32234cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032235#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032236_ACEOF
32237
cristy670aa3c2011-11-03 00:54:00 +000032238SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032239DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032240case "${build_os}" in
32241 mingw* )
cristy4f820712011-04-01 12:35:43 +000032242 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032243 ;;
32244esac
32245
32246cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032247#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032248_ACEOF
32249
32250
32251
cristy54378032012-12-04 15:52:20 +000032252#
32253# Subdirectory to place architecture-dependent configuration files.
32254if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32255 SHAREARCH_BASEDIRNAME="config"
32256fi
cristy670aa3c2011-11-03 00:54:00 +000032257
32258cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032259#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032260_ACEOF
32261
cristy54378032012-12-04 15:52:20 +000032262
32263
32264if test "x$SHAREARCH_DIRNAME" = "x"; then
32265 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32266else
cristy670aa3c2011-11-03 00:54:00 +000032267
32268cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032269#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032270_ACEOF
32271
cristy54378032012-12-04 15:52:20 +000032272fi
32273
32274
32275SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32276
32277SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032278
32279
cristy3ed852e2009-09-05 21:47:34 +000032280#
32281# program_transform_name is formed for use in a Makefile, so create a
32282# modified version for use in a shell script.
32283configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32284
32285# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32287$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032289$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32291$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032292AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032293BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032294BZIPDelegateDefault='bzip2'
32295BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032296CatDelegateDefault='cat'
32297DNGDecodeDelegateDefault='ufraw-batch'
32298GVCDecodeDelegateDefault='dot'
32299DVIDecodeDelegateDefault='dvips'
32300EchoDelegateDefault='echo'
32301EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032302ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32303DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32304MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32305GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032306HPGLDecodeDelegateDefault='hp2xx'
32307HTMLDecodeDelegateDefault='html2ps'
32308ILBMDecodeDelegateDefault='ilbmtoppm'
32309ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032310JXRDecodeDelegateDefault='JxrDecApp'
32311JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032312LPDelegateDefault='lp'
32313LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032314LaunchDelegateDefault='gimp'
32315MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032316MPEGDecodeDelegateDefault='avconv'
32317MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032318MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032319MVDelegateDefault='mv'
32320PCLDelegateDefault='pcl6'
32321PGPDecodeDelegateDefault='pgpv'
32322POVDelegateDefault='povray'
32323if test "$native_win32_build" = 'yes'; then
32324 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032325elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032326 PSDelegateDefault='gsc'
32327else
32328 PSDelegateDefault='gs'
32329fi
32330RLEEncodeDelegateDefault='rawtorle'
32331RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032332RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032333SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032334SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032335TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032336UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032337WebPDecodeDelegateDefault='dwebp'
32338WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032339WMFDecodeDelegateDefault='wmf2eps'
32340WWWDecodeDelegateDefault='curl'
32341XPSDelegateDefault='gxps'
32342ZipDelegateDefault='gzip'
32343
32344# Search for delegates
32345# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32346set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032348$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032349if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032350 $as_echo_n "(cached) " >&6
32351else
32352 case $AutotraceDecodeDelegate in
32353 [\\/]* | ?:[\\/]*)
32354 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32355 ;;
32356 *)
32357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32358for as_dir in $PATH
32359do
32360 IFS=$as_save_IFS
32361 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032362 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032364 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032366 break 2
32367 fi
32368done
cristy8b350f62009-11-15 23:12:43 +000032369 done
cristy3ed852e2009-09-05 21:47:34 +000032370IFS=$as_save_IFS
32371
32372 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32373 ;;
32374esac
32375fi
32376AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32377if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032379$as_echo "$AutotraceDecodeDelegate" >&6; }
32380else
cristy8b350f62009-11-15 23:12:43 +000032381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032382$as_echo "no" >&6; }
32383fi
32384
32385
cristy3ed852e2009-09-05 21:47:34 +000032386# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32387set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032389$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032390if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032391 $as_echo_n "(cached) " >&6
32392else
32393 case $BlenderDecodeDelegate in
32394 [\\/]* | ?:[\\/]*)
32395 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32396 ;;
32397 *)
32398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32399for as_dir in $PATH
32400do
32401 IFS=$as_save_IFS
32402 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032403 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032405 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032407 break 2
32408 fi
32409done
cristy8b350f62009-11-15 23:12:43 +000032410 done
cristy3ed852e2009-09-05 21:47:34 +000032411IFS=$as_save_IFS
32412
32413 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32414 ;;
32415esac
32416fi
32417BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32418if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032420$as_echo "$BlenderDecodeDelegate" >&6; }
32421else
cristy8b350f62009-11-15 23:12:43 +000032422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032423$as_echo "no" >&6; }
32424fi
32425
32426
32427# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32428set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032430$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032431if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032432 $as_echo_n "(cached) " >&6
32433else
32434 case $BZIPDelegate in
32435 [\\/]* | ?:[\\/]*)
32436 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32437 ;;
32438 *)
32439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32440for as_dir in $PATH
32441do
32442 IFS=$as_save_IFS
32443 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032444 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032446 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032448 break 2
32449 fi
32450done
cristy8b350f62009-11-15 23:12:43 +000032451 done
cristy3ed852e2009-09-05 21:47:34 +000032452IFS=$as_save_IFS
32453
32454 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32455 ;;
32456esac
32457fi
32458BZIPDelegate=$ac_cv_path_BZIPDelegate
32459if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032461$as_echo "$BZIPDelegate" >&6; }
32462else
cristy8b350f62009-11-15 23:12:43 +000032463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032464$as_echo "no" >&6; }
32465fi
32466
32467
cristyc59f0e72012-08-27 12:59:33 +000032468for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32469do
32470 # Extract the first word of "$ac_prog", so it can be a program name with args.
32471set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032473$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032474if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032475 $as_echo_n "(cached) " >&6
32476else
32477 case $BrowseDelegate in
32478 [\\/]* | ?:[\\/]*)
32479 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32480 ;;
32481 *)
32482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32483for as_dir in $PATH
32484do
32485 IFS=$as_save_IFS
32486 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032487 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032489 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032491 break 2
32492 fi
32493done
cristy8b350f62009-11-15 23:12:43 +000032494 done
cristy3ed852e2009-09-05 21:47:34 +000032495IFS=$as_save_IFS
32496
cristy3ed852e2009-09-05 21:47:34 +000032497 ;;
32498esac
32499fi
32500BrowseDelegate=$ac_cv_path_BrowseDelegate
32501if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032503$as_echo "$BrowseDelegate" >&6; }
32504else
cristy8b350f62009-11-15 23:12:43 +000032505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032506$as_echo "no" >&6; }
32507fi
32508
32509
cristyc59f0e72012-08-27 12:59:33 +000032510 test -n "$BrowseDelegate" && break
32511done
32512test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32513
cristy3ed852e2009-09-05 21:47:34 +000032514# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32515set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032517$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032518if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032519 $as_echo_n "(cached) " >&6
32520else
32521 case $CatDelegate in
32522 [\\/]* | ?:[\\/]*)
32523 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32524 ;;
32525 *)
32526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32527for as_dir in $PATH
32528do
32529 IFS=$as_save_IFS
32530 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032531 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032533 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032535 break 2
32536 fi
32537done
cristy8b350f62009-11-15 23:12:43 +000032538 done
cristy3ed852e2009-09-05 21:47:34 +000032539IFS=$as_save_IFS
32540
32541 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32542 ;;
32543esac
32544fi
32545CatDelegate=$ac_cv_path_CatDelegate
32546if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032548$as_echo "$CatDelegate" >&6; }
32549else
cristy8b350f62009-11-15 23:12:43 +000032550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032551$as_echo "no" >&6; }
32552fi
32553
32554
32555# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32556set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032558$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032559if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032560 $as_echo_n "(cached) " >&6
32561else
32562 case $DNGDecodeDelegate in
32563 [\\/]* | ?:[\\/]*)
32564 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32565 ;;
32566 *)
32567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32568for as_dir in $PATH
32569do
32570 IFS=$as_save_IFS
32571 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032572 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032574 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032576 break 2
32577 fi
32578done
cristy8b350f62009-11-15 23:12:43 +000032579 done
cristy3ed852e2009-09-05 21:47:34 +000032580IFS=$as_save_IFS
32581
32582 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32583 ;;
32584esac
32585fi
32586DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32587if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032589$as_echo "$DNGDecodeDelegate" >&6; }
32590else
cristy8b350f62009-11-15 23:12:43 +000032591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032592$as_echo "no" >&6; }
32593fi
32594
32595
32596# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32597set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032599$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032600if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032601 $as_echo_n "(cached) " >&6
32602else
32603 case $GVCDecodeDelegate in
32604 [\\/]* | ?:[\\/]*)
32605 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32606 ;;
32607 *)
32608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32609for as_dir in $PATH
32610do
32611 IFS=$as_save_IFS
32612 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032613 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032615 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032617 break 2
32618 fi
32619done
cristy8b350f62009-11-15 23:12:43 +000032620 done
cristy3ed852e2009-09-05 21:47:34 +000032621IFS=$as_save_IFS
32622
32623 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32624 ;;
32625esac
32626fi
32627GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32628if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032630$as_echo "$GVCDecodeDelegate" >&6; }
32631else
cristy8b350f62009-11-15 23:12:43 +000032632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032633$as_echo "no" >&6; }
32634fi
32635
32636
32637# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32638set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032640$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032641if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032642 $as_echo_n "(cached) " >&6
32643else
32644 case $DVIDecodeDelegate in
32645 [\\/]* | ?:[\\/]*)
32646 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32647 ;;
32648 *)
32649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32650for as_dir in $PATH
32651do
32652 IFS=$as_save_IFS
32653 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032654 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032656 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032658 break 2
32659 fi
32660done
cristy8b350f62009-11-15 23:12:43 +000032661 done
cristy3ed852e2009-09-05 21:47:34 +000032662IFS=$as_save_IFS
32663
32664 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32665 ;;
32666esac
32667fi
32668DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32669if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032671$as_echo "$DVIDecodeDelegate" >&6; }
32672else
cristy8b350f62009-11-15 23:12:43 +000032673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032674$as_echo "no" >&6; }
32675fi
32676
32677
32678# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32679set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032681$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032682if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032683 $as_echo_n "(cached) " >&6
32684else
32685 case $EchoDelegate in
32686 [\\/]* | ?:[\\/]*)
32687 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32688 ;;
32689 *)
32690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32691for as_dir in $PATH
32692do
32693 IFS=$as_save_IFS
32694 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032695 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032697 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032699 break 2
32700 fi
32701done
cristy8b350f62009-11-15 23:12:43 +000032702 done
cristy3ed852e2009-09-05 21:47:34 +000032703IFS=$as_save_IFS
32704
32705 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32706 ;;
32707esac
32708fi
32709EchoDelegate=$ac_cv_path_EchoDelegate
32710if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032712$as_echo "$EchoDelegate" >&6; }
32713else
cristy8b350f62009-11-15 23:12:43 +000032714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032715$as_echo "no" >&6; }
32716fi
32717
32718
32719# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32720set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032722$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032723if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032724 $as_echo_n "(cached) " >&6
32725else
32726 case $EditorDelegate in
32727 [\\/]* | ?:[\\/]*)
32728 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32729 ;;
32730 *)
32731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32732for as_dir in $PATH
32733do
32734 IFS=$as_save_IFS
32735 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032736 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032738 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032740 break 2
32741 fi
32742done
cristy8b350f62009-11-15 23:12:43 +000032743 done
cristy3ed852e2009-09-05 21:47:34 +000032744IFS=$as_save_IFS
32745
32746 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32747 ;;
32748esac
32749fi
32750EditorDelegate=$ac_cv_path_EditorDelegate
32751if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032753$as_echo "$EditorDelegate" >&6; }
32754else
cristy8b350f62009-11-15 23:12:43 +000032755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032756$as_echo "no" >&6; }
32757fi
32758
32759
cristy3ed852e2009-09-05 21:47:34 +000032760# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32761set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032763$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032764if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032765 $as_echo_n "(cached) " >&6
32766else
32767 case $ConvertDelegate in
32768 [\\/]* | ?:[\\/]*)
32769 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32770 ;;
32771 *)
32772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32773for as_dir in $PATH
32774do
32775 IFS=$as_save_IFS
32776 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032777 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032779 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032781 break 2
32782 fi
32783done
cristy8b350f62009-11-15 23:12:43 +000032784 done
cristy3ed852e2009-09-05 21:47:34 +000032785IFS=$as_save_IFS
32786
32787 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32788 ;;
32789esac
32790fi
32791ConvertDelegate=$ac_cv_path_ConvertDelegate
32792if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032794$as_echo "$ConvertDelegate" >&6; }
32795else
cristy8b350f62009-11-15 23:12:43 +000032796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032797$as_echo "no" >&6; }
32798fi
32799
32800
32801# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32802set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032804$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032805if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032806 $as_echo_n "(cached) " >&6
32807else
32808 case $DisplayDelegate in
32809 [\\/]* | ?:[\\/]*)
32810 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32811 ;;
32812 *)
32813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32814for as_dir in $PATH
32815do
32816 IFS=$as_save_IFS
32817 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032818 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032820 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032822 break 2
32823 fi
32824done
cristy8b350f62009-11-15 23:12:43 +000032825 done
cristy3ed852e2009-09-05 21:47:34 +000032826IFS=$as_save_IFS
32827
32828 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32829 ;;
32830esac
32831fi
32832DisplayDelegate=$ac_cv_path_DisplayDelegate
32833if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032835$as_echo "$DisplayDelegate" >&6; }
32836else
cristy8b350f62009-11-15 23:12:43 +000032837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032838$as_echo "no" >&6; }
32839fi
32840
32841
32842# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32843set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032845$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032846if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032847 $as_echo_n "(cached) " >&6
32848else
32849 case $MogrifyDelegate in
32850 [\\/]* | ?:[\\/]*)
32851 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32852 ;;
32853 *)
32854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32855for as_dir in $PATH
32856do
32857 IFS=$as_save_IFS
32858 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032859 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032861 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032863 break 2
32864 fi
32865done
cristy8b350f62009-11-15 23:12:43 +000032866 done
cristy3ed852e2009-09-05 21:47:34 +000032867IFS=$as_save_IFS
32868
32869 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32870 ;;
32871esac
32872fi
32873MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32874if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032876$as_echo "$MogrifyDelegate" >&6; }
32877else
cristy8b350f62009-11-15 23:12:43 +000032878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032879$as_echo "no" >&6; }
32880fi
32881
32882
32883# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32884set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032886$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032887if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032888 $as_echo_n "(cached) " >&6
32889else
32890 case $GnuplotDecodeDelegate in
32891 [\\/]* | ?:[\\/]*)
32892 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32893 ;;
32894 *)
32895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32896for as_dir in $PATH
32897do
32898 IFS=$as_save_IFS
32899 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032900 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032902 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032904 break 2
32905 fi
32906done
cristy8b350f62009-11-15 23:12:43 +000032907 done
cristy3ed852e2009-09-05 21:47:34 +000032908IFS=$as_save_IFS
32909
32910 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32911 ;;
32912esac
32913fi
32914GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32915if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032917$as_echo "$GnuplotDecodeDelegate" >&6; }
32918else
cristy8b350f62009-11-15 23:12:43 +000032919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032920$as_echo "no" >&6; }
32921fi
32922
32923
cristy3ed852e2009-09-05 21:47:34 +000032924# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32925set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032927$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032928if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032929 $as_echo_n "(cached) " >&6
32930else
32931 case $HPGLDecodeDelegate in
32932 [\\/]* | ?:[\\/]*)
32933 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32934 ;;
32935 *)
32936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32937for as_dir in $PATH
32938do
32939 IFS=$as_save_IFS
32940 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032943 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032945 break 2
32946 fi
32947done
cristy8b350f62009-11-15 23:12:43 +000032948 done
cristy3ed852e2009-09-05 21:47:34 +000032949IFS=$as_save_IFS
32950
32951 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32952 ;;
32953esac
32954fi
32955HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32956if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032958$as_echo "$HPGLDecodeDelegate" >&6; }
32959else
cristy8b350f62009-11-15 23:12:43 +000032960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032961$as_echo "no" >&6; }
32962fi
32963
32964
32965# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32966set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032968$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032969if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032970 $as_echo_n "(cached) " >&6
32971else
32972 case $HTMLDecodeDelegate in
32973 [\\/]* | ?:[\\/]*)
32974 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32975 ;;
32976 *)
32977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32978for as_dir in $PATH
32979do
32980 IFS=$as_save_IFS
32981 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032982 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032984 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032986 break 2
32987 fi
32988done
cristy8b350f62009-11-15 23:12:43 +000032989 done
cristy3ed852e2009-09-05 21:47:34 +000032990IFS=$as_save_IFS
32991
32992 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32993 ;;
32994esac
32995fi
32996HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32997if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032999$as_echo "$HTMLDecodeDelegate" >&6; }
33000else
cristy8b350f62009-11-15 23:12:43 +000033001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033002$as_echo "no" >&6; }
33003fi
33004
33005
33006# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33007set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033009$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033010if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033011 $as_echo_n "(cached) " >&6
33012else
33013 case $ILBMDecodeDelegate in
33014 [\\/]* | ?:[\\/]*)
33015 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33016 ;;
33017 *)
33018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33019for as_dir in $PATH
33020do
33021 IFS=$as_save_IFS
33022 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033023 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033025 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033027 break 2
33028 fi
33029done
cristy8b350f62009-11-15 23:12:43 +000033030 done
cristy3ed852e2009-09-05 21:47:34 +000033031IFS=$as_save_IFS
33032
33033 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33034 ;;
33035esac
33036fi
33037ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33038if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033040$as_echo "$ILBMDecodeDelegate" >&6; }
33041else
cristy8b350f62009-11-15 23:12:43 +000033042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033043$as_echo "no" >&6; }
33044fi
33045
33046
33047# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33048set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033050$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033051if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033052 $as_echo_n "(cached) " >&6
33053else
33054 case $ILBMEncodeDelegate in
33055 [\\/]* | ?:[\\/]*)
33056 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33057 ;;
33058 *)
33059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33060for as_dir in $PATH
33061do
33062 IFS=$as_save_IFS
33063 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033064 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033066 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033068 break 2
33069 fi
33070done
cristy8b350f62009-11-15 23:12:43 +000033071 done
cristy3ed852e2009-09-05 21:47:34 +000033072IFS=$as_save_IFS
33073
33074 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33075 ;;
33076esac
33077fi
33078ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33079if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033081$as_echo "$ILBMEncodeDelegate" >&6; }
33082else
cristy8b350f62009-11-15 23:12:43 +000033083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033084$as_echo "no" >&6; }
33085fi
33086
33087
cristy71f53d52013-04-27 13:33:59 +000033088# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33089set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33091$as_echo_n "checking for $ac_word... " >&6; }
33092if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33093 $as_echo_n "(cached) " >&6
33094else
33095 case $JXRDecodeDelegate in
33096 [\\/]* | ?:[\\/]*)
33097 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33098 ;;
33099 *)
33100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33101for as_dir in $PATH
33102do
33103 IFS=$as_save_IFS
33104 test -z "$as_dir" && as_dir=.
33105 for ac_exec_ext in '' $ac_executable_extensions; do
33106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33107 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33109 break 2
33110 fi
33111done
33112 done
33113IFS=$as_save_IFS
33114
33115 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33116 ;;
33117esac
33118fi
33119JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33120if test -n "$JXRDecodeDelegate"; then
33121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33122$as_echo "$JXRDecodeDelegate" >&6; }
33123else
33124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33125$as_echo "no" >&6; }
33126fi
33127
33128
33129# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33130set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33132$as_echo_n "checking for $ac_word... " >&6; }
33133if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33134 $as_echo_n "(cached) " >&6
33135else
33136 case $JXREncodeDelegate in
33137 [\\/]* | ?:[\\/]*)
33138 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33139 ;;
33140 *)
33141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33142for as_dir in $PATH
33143do
33144 IFS=$as_save_IFS
33145 test -z "$as_dir" && as_dir=.
33146 for ac_exec_ext in '' $ac_executable_extensions; do
33147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33148 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33150 break 2
33151 fi
33152done
33153 done
33154IFS=$as_save_IFS
33155
33156 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33157 ;;
33158esac
33159fi
33160JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33161if test -n "$JXREncodeDelegate"; then
33162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33163$as_echo "$JXREncodeDelegate" >&6; }
33164else
33165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33166$as_echo "no" >&6; }
33167fi
33168
33169
cristy3ed852e2009-09-05 21:47:34 +000033170# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33171set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033173$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033174if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033175 $as_echo_n "(cached) " >&6
33176else
33177 case $LPDelegate in
33178 [\\/]* | ?:[\\/]*)
33179 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33180 ;;
33181 *)
33182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33183for as_dir in $PATH
33184do
33185 IFS=$as_save_IFS
33186 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033187 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033189 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033191 break 2
33192 fi
33193done
cristy8b350f62009-11-15 23:12:43 +000033194 done
cristy3ed852e2009-09-05 21:47:34 +000033195IFS=$as_save_IFS
33196
33197 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33198 ;;
33199esac
33200fi
33201LPDelegate=$ac_cv_path_LPDelegate
33202if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033204$as_echo "$LPDelegate" >&6; }
33205else
cristy8b350f62009-11-15 23:12:43 +000033206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033207$as_echo "no" >&6; }
33208fi
33209
33210
33211# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33212set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033214$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033215if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033216 $as_echo_n "(cached) " >&6
33217else
33218 case $LPRDelegate in
33219 [\\/]* | ?:[\\/]*)
33220 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33221 ;;
33222 *)
33223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33224for as_dir in $PATH
33225do
33226 IFS=$as_save_IFS
33227 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033228 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033230 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033232 break 2
33233 fi
33234done
cristy8b350f62009-11-15 23:12:43 +000033235 done
cristy3ed852e2009-09-05 21:47:34 +000033236IFS=$as_save_IFS
33237
33238 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33239 ;;
33240esac
33241fi
33242LPRDelegate=$ac_cv_path_LPRDelegate
33243if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033245$as_echo "$LPRDelegate" >&6; }
33246else
cristy8b350f62009-11-15 23:12:43 +000033247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033248$as_echo "no" >&6; }
33249fi
33250
33251
cristy3ed852e2009-09-05 21:47:34 +000033252# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33253set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033255$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033256if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033257 $as_echo_n "(cached) " >&6
33258else
33259 case $LaunchDelegate in
33260 [\\/]* | ?:[\\/]*)
33261 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33262 ;;
33263 *)
33264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33265for as_dir in $PATH
33266do
33267 IFS=$as_save_IFS
33268 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033269 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033271 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033273 break 2
33274 fi
33275done
cristy8b350f62009-11-15 23:12:43 +000033276 done
cristy3ed852e2009-09-05 21:47:34 +000033277IFS=$as_save_IFS
33278
33279 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33280 ;;
33281esac
33282fi
33283LaunchDelegate=$ac_cv_path_LaunchDelegate
33284if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033286$as_echo "$LaunchDelegate" >&6; }
33287else
cristy8b350f62009-11-15 23:12:43 +000033288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033289$as_echo "no" >&6; }
33290fi
33291
33292
33293# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33294set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033296$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033297if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033298 $as_echo_n "(cached) " >&6
33299else
33300 case $MANDelegate in
33301 [\\/]* | ?:[\\/]*)
33302 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33303 ;;
33304 *)
33305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33306for as_dir in $PATH
33307do
33308 IFS=$as_save_IFS
33309 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033310 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033312 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033314 break 2
33315 fi
33316done
cristy8b350f62009-11-15 23:12:43 +000033317 done
cristy3ed852e2009-09-05 21:47:34 +000033318IFS=$as_save_IFS
33319
33320 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33321 ;;
33322esac
33323fi
33324MANDelegate=$ac_cv_path_MANDelegate
33325if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033327$as_echo "$MANDelegate" >&6; }
33328else
cristy8b350f62009-11-15 23:12:43 +000033329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033330$as_echo "no" >&6; }
33331fi
33332
33333
33334# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33335set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033337$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033338if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033339 $as_echo_n "(cached) " >&6
33340else
33341 case $MPEGDecodeDelegate in
33342 [\\/]* | ?:[\\/]*)
33343 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33344 ;;
33345 *)
33346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33347for as_dir in $PATH
33348do
33349 IFS=$as_save_IFS
33350 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033351 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033353 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033355 break 2
33356 fi
33357done
cristy8b350f62009-11-15 23:12:43 +000033358 done
cristy3ed852e2009-09-05 21:47:34 +000033359IFS=$as_save_IFS
33360
33361 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33362 ;;
33363esac
33364fi
33365MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33366if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033368$as_echo "$MPEGDecodeDelegate" >&6; }
33369else
cristy8b350f62009-11-15 23:12:43 +000033370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033371$as_echo "no" >&6; }
33372fi
33373
33374
cristy81ab5af2013-10-06 18:28:39 +000033375if test "$MPEGDecodeDelegate" == "$MPEGDecodeDelegateDefault" ; then
33376 MPEGDecodeDelegateDefault='ffmpeg'
33377 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33378set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33380$as_echo_n "checking for $ac_word... " >&6; }
33381if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33382 $as_echo_n "(cached) " >&6
33383else
33384 case $MPEGDecodeDelegate in
33385 [\\/]* | ?:[\\/]*)
33386 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33387 ;;
33388 *)
33389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33390for as_dir in $PATH
33391do
33392 IFS=$as_save_IFS
33393 test -z "$as_dir" && as_dir=.
33394 for ac_exec_ext in '' $ac_executable_extensions; do
33395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33396 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33398 break 2
33399 fi
33400done
33401 done
33402IFS=$as_save_IFS
33403
33404 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33405 ;;
33406esac
33407fi
33408MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33409if test -n "$MPEGDecodeDelegate"; then
33410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33411$as_echo "$MPEGDecodeDelegate" >&6; }
33412else
33413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33414$as_echo "no" >&6; }
33415fi
33416
33417
33418fi;
cristy3ed852e2009-09-05 21:47:34 +000033419# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33420set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033422$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033423if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033424 $as_echo_n "(cached) " >&6
33425else
33426 case $MPEGEncodeDelegate in
33427 [\\/]* | ?:[\\/]*)
33428 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33429 ;;
33430 *)
33431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33432for as_dir in $PATH
33433do
33434 IFS=$as_save_IFS
33435 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033436 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033438 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033440 break 2
33441 fi
33442done
cristy8b350f62009-11-15 23:12:43 +000033443 done
cristy3ed852e2009-09-05 21:47:34 +000033444IFS=$as_save_IFS
33445
33446 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33447 ;;
33448esac
33449fi
33450MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33451if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033453$as_echo "$MPEGEncodeDelegate" >&6; }
33454else
cristy8b350f62009-11-15 23:12:43 +000033455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033456$as_echo "no" >&6; }
33457fi
33458
33459
cristy81ab5af2013-10-06 18:28:39 +000033460if test "$MPEGEncodeDelegate" == "$MPEGEncodeDelegateDefault" ; then
33461 MPEGEncodeDelegateDefault='ffmpeg'
33462 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33463set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33465$as_echo_n "checking for $ac_word... " >&6; }
33466if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33467 $as_echo_n "(cached) " >&6
33468else
33469 case $MPEGEncodeDelegate in
33470 [\\/]* | ?:[\\/]*)
33471 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33472 ;;
33473 *)
33474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33475for as_dir in $PATH
33476do
33477 IFS=$as_save_IFS
33478 test -z "$as_dir" && as_dir=.
33479 for ac_exec_ext in '' $ac_executable_extensions; do
33480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33481 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33483 break 2
33484 fi
33485done
33486 done
33487IFS=$as_save_IFS
33488
33489 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33490 ;;
33491esac
33492fi
33493MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33494if test -n "$MPEGEncodeDelegate"; then
33495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33496$as_echo "$MPEGEncodeDelegate" >&6; }
33497else
33498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33499$as_echo "no" >&6; }
33500fi
33501
33502
33503fi;
cristy935c86e2010-06-05 23:50:07 +000033504# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33505set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33507$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033508if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033509 $as_echo_n "(cached) " >&6
33510else
33511 case $MrSIDDecodeDelegate in
33512 [\\/]* | ?:[\\/]*)
33513 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33514 ;;
33515 *)
33516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33517for as_dir in $PATH
33518do
33519 IFS=$as_save_IFS
33520 test -z "$as_dir" && as_dir=.
33521 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033523 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33525 break 2
33526 fi
33527done
33528 done
33529IFS=$as_save_IFS
33530
33531 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33532 ;;
33533esac
33534fi
33535MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33536if test -n "$MrSIDDecodeDelegate"; then
33537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33538$as_echo "$MrSIDDecodeDelegate" >&6; }
33539else
33540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33541$as_echo "no" >&6; }
33542fi
33543
33544
cristy3ed852e2009-09-05 21:47:34 +000033545# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33546set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033548$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033549if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033550 $as_echo_n "(cached) " >&6
33551else
33552 case $MVDelegate in
33553 [\\/]* | ?:[\\/]*)
33554 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33555 ;;
33556 *)
33557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33558for as_dir in $PATH
33559do
33560 IFS=$as_save_IFS
33561 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033562 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033564 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033566 break 2
33567 fi
33568done
cristy8b350f62009-11-15 23:12:43 +000033569 done
cristy3ed852e2009-09-05 21:47:34 +000033570IFS=$as_save_IFS
33571
33572 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33573 ;;
33574esac
33575fi
33576MVDelegate=$ac_cv_path_MVDelegate
33577if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033579$as_echo "$MVDelegate" >&6; }
33580else
cristy8b350f62009-11-15 23:12:43 +000033581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033582$as_echo "no" >&6; }
33583fi
33584
33585
33586# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33587set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033589$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033590if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033591 $as_echo_n "(cached) " >&6
33592else
33593 case $PCLDelegate in
33594 [\\/]* | ?:[\\/]*)
33595 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33596 ;;
33597 *)
33598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33599for as_dir in $PATH
33600do
33601 IFS=$as_save_IFS
33602 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033603 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033605 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033607 break 2
33608 fi
33609done
cristy8b350f62009-11-15 23:12:43 +000033610 done
cristy3ed852e2009-09-05 21:47:34 +000033611IFS=$as_save_IFS
33612
33613 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33614 ;;
33615esac
33616fi
33617PCLDelegate=$ac_cv_path_PCLDelegate
33618if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033620$as_echo "$PCLDelegate" >&6; }
33621else
cristy8b350f62009-11-15 23:12:43 +000033622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033623$as_echo "no" >&6; }
33624fi
33625
33626
33627# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33628set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033630$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033631if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033632 $as_echo_n "(cached) " >&6
33633else
33634 case $PGPDecodeDelegate in
33635 [\\/]* | ?:[\\/]*)
33636 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33637 ;;
33638 *)
33639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33640for as_dir in $PATH
33641do
33642 IFS=$as_save_IFS
33643 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033646 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033648 break 2
33649 fi
33650done
cristy8b350f62009-11-15 23:12:43 +000033651 done
cristy3ed852e2009-09-05 21:47:34 +000033652IFS=$as_save_IFS
33653
33654 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33655 ;;
33656esac
33657fi
33658PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33659if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033661$as_echo "$PGPDecodeDelegate" >&6; }
33662else
cristy8b350f62009-11-15 23:12:43 +000033663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033664$as_echo "no" >&6; }
33665fi
33666
33667
33668# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33669set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033671$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033672if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033673 $as_echo_n "(cached) " >&6
33674else
33675 case $POVDelegate in
33676 [\\/]* | ?:[\\/]*)
33677 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33678 ;;
33679 *)
33680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33681for as_dir in $PATH
33682do
33683 IFS=$as_save_IFS
33684 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033685 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033687 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033689 break 2
33690 fi
33691done
cristy8b350f62009-11-15 23:12:43 +000033692 done
cristy3ed852e2009-09-05 21:47:34 +000033693IFS=$as_save_IFS
33694
33695 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33696 ;;
33697esac
33698fi
33699POVDelegate=$ac_cv_path_POVDelegate
33700if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033702$as_echo "$POVDelegate" >&6; }
33703else
cristy8b350f62009-11-15 23:12:43 +000033704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033705$as_echo "no" >&6; }
33706fi
33707
33708
33709for ac_prog in gsx gsc "$PSDelegateDefault"
33710do
33711 # Extract the first word of "$ac_prog", so it can be a program name with args.
33712set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033714$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033715if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033716 $as_echo_n "(cached) " >&6
33717else
33718 case $PSDelegate in
33719 [\\/]* | ?:[\\/]*)
33720 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33721 ;;
33722 *)
33723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33724for as_dir in $PATH
33725do
33726 IFS=$as_save_IFS
33727 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033728 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033730 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033732 break 2
33733 fi
33734done
cristy8b350f62009-11-15 23:12:43 +000033735 done
cristy3ed852e2009-09-05 21:47:34 +000033736IFS=$as_save_IFS
33737
33738 ;;
33739esac
33740fi
33741PSDelegate=$ac_cv_path_PSDelegate
33742if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033744$as_echo "$PSDelegate" >&6; }
33745else
cristy8b350f62009-11-15 23:12:43 +000033746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033747$as_echo "no" >&6; }
33748fi
33749
33750
33751 test -n "$PSDelegate" && break
33752done
33753test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33754
33755# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33756set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033758$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033759if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033760 $as_echo_n "(cached) " >&6
33761else
33762 case $RLEEncodeDelegate in
33763 [\\/]* | ?:[\\/]*)
33764 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33765 ;;
33766 *)
33767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33768for as_dir in $PATH
33769do
33770 IFS=$as_save_IFS
33771 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033772 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033774 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033776 break 2
33777 fi
33778done
cristy8b350f62009-11-15 23:12:43 +000033779 done
cristy3ed852e2009-09-05 21:47:34 +000033780IFS=$as_save_IFS
33781
33782 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33783 ;;
33784esac
33785fi
33786RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33787if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033789$as_echo "$RLEEncodeDelegate" >&6; }
33790else
cristy8b350f62009-11-15 23:12:43 +000033791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033792$as_echo "no" >&6; }
33793fi
33794
33795
33796# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33797set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033799$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033800if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033801 $as_echo_n "(cached) " >&6
33802else
33803 case $RMDelegate in
33804 [\\/]* | ?:[\\/]*)
33805 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33806 ;;
33807 *)
33808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33809for as_dir in $PATH
33810do
33811 IFS=$as_save_IFS
33812 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033813 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033815 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033817 break 2
33818 fi
33819done
cristy8b350f62009-11-15 23:12:43 +000033820 done
cristy3ed852e2009-09-05 21:47:34 +000033821IFS=$as_save_IFS
33822
33823 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33824 ;;
33825esac
33826fi
33827RMDelegate=$ac_cv_path_RMDelegate
33828if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033830$as_echo "$RMDelegate" >&6; }
33831else
cristy8b350f62009-11-15 23:12:43 +000033832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033833$as_echo "no" >&6; }
33834fi
33835
33836
cristy4689cf02010-02-17 21:15:45 +000033837# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33838set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33840$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033841if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033842 $as_echo_n "(cached) " >&6
33843else
33844 case $RSVGDecodeDelegate in
33845 [\\/]* | ?:[\\/]*)
33846 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33847 ;;
33848 *)
33849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33850for as_dir in $PATH
33851do
33852 IFS=$as_save_IFS
33853 test -z "$as_dir" && as_dir=.
33854 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033856 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33858 break 2
33859 fi
33860done
33861 done
33862IFS=$as_save_IFS
33863
33864 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33865 ;;
33866esac
33867fi
33868RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33869if test -n "$RSVGDecodeDelegate"; then
33870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33871$as_echo "$RSVGDecodeDelegate" >&6; }
33872else
33873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33874$as_echo "no" >&6; }
33875fi
33876
33877
cristy3ed852e2009-09-05 21:47:34 +000033878# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33879set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033881$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033882if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033883 $as_echo_n "(cached) " >&6
33884else
33885 case $SCANDecodeDelegate in
33886 [\\/]* | ?:[\\/]*)
33887 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33888 ;;
33889 *)
33890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33891for as_dir in $PATH
33892do
33893 IFS=$as_save_IFS
33894 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033895 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033897 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033899 break 2
33900 fi
33901done
cristy8b350f62009-11-15 23:12:43 +000033902 done
cristy3ed852e2009-09-05 21:47:34 +000033903IFS=$as_save_IFS
33904
33905 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33906 ;;
33907esac
33908fi
33909SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33910if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033912$as_echo "$SCANDecodeDelegate" >&6; }
33913else
cristy8b350f62009-11-15 23:12:43 +000033914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033915$as_echo "no" >&6; }
33916fi
33917
33918
cristyec6934f2012-08-14 18:38:40 +000033919# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
33920set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
33921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33922$as_echo_n "checking for $ac_word... " >&6; }
33923if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
33924 $as_echo_n "(cached) " >&6
33925else
33926 case $SVGDecodeDelegate in
33927 [\\/]* | ?:[\\/]*)
33928 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
33929 ;;
33930 *)
33931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33932for as_dir in $PATH
33933do
33934 IFS=$as_save_IFS
33935 test -z "$as_dir" && as_dir=.
33936 for ac_exec_ext in '' $ac_executable_extensions; do
33937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33938 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33940 break 2
33941 fi
33942done
33943 done
33944IFS=$as_save_IFS
33945
33946 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
33947 ;;
33948esac
33949fi
33950SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
33951if test -n "$SVGDecodeDelegate"; then
33952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
33953$as_echo "$SVGDecodeDelegate" >&6; }
33954else
33955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33956$as_echo "no" >&6; }
33957fi
33958
33959
cristy3ed852e2009-09-05 21:47:34 +000033960# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33961set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033963$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033964if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033965 $as_echo_n "(cached) " >&6
33966else
33967 case $TXTDelegate in
33968 [\\/]* | ?:[\\/]*)
33969 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33970 ;;
33971 *)
33972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33973for as_dir in $PATH
33974do
33975 IFS=$as_save_IFS
33976 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033977 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033979 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033981 break 2
33982 fi
33983done
cristy8b350f62009-11-15 23:12:43 +000033984 done
cristy3ed852e2009-09-05 21:47:34 +000033985IFS=$as_save_IFS
33986
33987 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33988 ;;
33989esac
33990fi
33991TXTDelegate=$ac_cv_path_TXTDelegate
33992if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033994$as_echo "$TXTDelegate" >&6; }
33995else
cristy8b350f62009-11-15 23:12:43 +000033996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033997$as_echo "no" >&6; }
33998fi
33999
34000
cristy5ac9ac82010-07-29 13:24:24 +000034001# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34002set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34004$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034005if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034006 $as_echo_n "(cached) " >&6
34007else
34008 case $UniconvertorDelegate in
34009 [\\/]* | ?:[\\/]*)
34010 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34011 ;;
34012 *)
34013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34014for as_dir in $PATH
34015do
34016 IFS=$as_save_IFS
34017 test -z "$as_dir" && as_dir=.
34018 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034020 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34022 break 2
34023 fi
34024done
34025 done
34026IFS=$as_save_IFS
34027
34028 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34029 ;;
34030esac
34031fi
34032UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34033if test -n "$UniconvertorDelegate"; then
34034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34035$as_echo "$UniconvertorDelegate" >&6; }
34036else
34037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34038$as_echo "no" >&6; }
34039fi
34040
34041
cristy86e86092013-08-04 17:43:57 +000034042# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34043set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34045$as_echo_n "checking for $ac_word... " >&6; }
34046if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34047 $as_echo_n "(cached) " >&6
34048else
34049 case $WebPDecodeDelegate in
34050 [\\/]* | ?:[\\/]*)
34051 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34052 ;;
34053 *)
34054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34055for as_dir in $PATH
34056do
34057 IFS=$as_save_IFS
34058 test -z "$as_dir" && as_dir=.
34059 for ac_exec_ext in '' $ac_executable_extensions; do
34060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34061 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34063 break 2
34064 fi
34065done
34066 done
34067IFS=$as_save_IFS
34068
34069 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34070 ;;
34071esac
34072fi
34073WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34074if test -n "$WebPDecodeDelegate"; then
34075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34076$as_echo "$WebPDecodeDelegate" >&6; }
34077else
34078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34079$as_echo "no" >&6; }
34080fi
34081
34082
34083# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34084set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34086$as_echo_n "checking for $ac_word... " >&6; }
34087if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34088 $as_echo_n "(cached) " >&6
34089else
34090 case $WebPEncodeDelegate in
34091 [\\/]* | ?:[\\/]*)
34092 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34093 ;;
34094 *)
34095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34096for as_dir in $PATH
34097do
34098 IFS=$as_save_IFS
34099 test -z "$as_dir" && as_dir=.
34100 for ac_exec_ext in '' $ac_executable_extensions; do
34101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34102 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34104 break 2
34105 fi
34106done
34107 done
34108IFS=$as_save_IFS
34109
34110 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34111 ;;
34112esac
34113fi
34114WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34115if test -n "$WebPEncodeDelegate"; then
34116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34117$as_echo "$WebPEncodeDelegate" >&6; }
34118else
34119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34120$as_echo "no" >&6; }
34121fi
34122
34123
cristy3ed852e2009-09-05 21:47:34 +000034124# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34125set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034127$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034128if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034129 $as_echo_n "(cached) " >&6
34130else
34131 case $WMFDecodeDelegate in
34132 [\\/]* | ?:[\\/]*)
34133 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34134 ;;
34135 *)
34136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34137for as_dir in $PATH
34138do
34139 IFS=$as_save_IFS
34140 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034141 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034143 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034145 break 2
34146 fi
34147done
cristy8b350f62009-11-15 23:12:43 +000034148 done
cristy3ed852e2009-09-05 21:47:34 +000034149IFS=$as_save_IFS
34150
34151 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34152 ;;
34153esac
34154fi
34155WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34156if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034158$as_echo "$WMFDecodeDelegate" >&6; }
34159else
cristy8b350f62009-11-15 23:12:43 +000034160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034161$as_echo "no" >&6; }
34162fi
34163
34164
34165# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34166set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034168$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034169if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034170 $as_echo_n "(cached) " >&6
34171else
34172 case $WWWDecodeDelegate in
34173 [\\/]* | ?:[\\/]*)
34174 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34175 ;;
34176 *)
34177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34178for as_dir in $PATH
34179do
34180 IFS=$as_save_IFS
34181 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034182 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034184 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034186 break 2
34187 fi
34188done
cristy8b350f62009-11-15 23:12:43 +000034189 done
cristy3ed852e2009-09-05 21:47:34 +000034190IFS=$as_save_IFS
34191
34192 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34193 ;;
34194esac
34195fi
34196WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34197if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034199$as_echo "$WWWDecodeDelegate" >&6; }
34200else
cristy8b350f62009-11-15 23:12:43 +000034201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034202$as_echo "no" >&6; }
34203fi
34204
34205
34206# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34207set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034209$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034210if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034211 $as_echo_n "(cached) " >&6
34212else
34213 case $XPSDelegate in
34214 [\\/]* | ?:[\\/]*)
34215 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34216 ;;
34217 *)
34218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34219for as_dir in $PATH
34220do
34221 IFS=$as_save_IFS
34222 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034223 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034225 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034227 break 2
34228 fi
34229done
cristy8b350f62009-11-15 23:12:43 +000034230 done
cristy3ed852e2009-09-05 21:47:34 +000034231IFS=$as_save_IFS
34232
34233 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34234 ;;
34235esac
34236fi
34237XPSDelegate=$ac_cv_path_XPSDelegate
34238if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034240$as_echo "$XPSDelegate" >&6; }
34241else
cristy8b350f62009-11-15 23:12:43 +000034242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034243$as_echo "no" >&6; }
34244fi
34245
34246
34247# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34248set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034250$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034251if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034252 $as_echo_n "(cached) " >&6
34253else
34254 case $ZipDelegate in
34255 [\\/]* | ?:[\\/]*)
34256 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34257 ;;
34258 *)
34259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34260for as_dir in $PATH
34261do
34262 IFS=$as_save_IFS
34263 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034264 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034266 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034268 break 2
34269 fi
34270done
cristy8b350f62009-11-15 23:12:43 +000034271 done
cristy3ed852e2009-09-05 21:47:34 +000034272IFS=$as_save_IFS
34273
34274 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34275 ;;
34276esac
34277fi
34278ZipDelegate=$ac_cv_path_ZipDelegate
34279if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034281$as_echo "$ZipDelegate" >&6; }
34282else
cristy8b350f62009-11-15 23:12:43 +000034283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034284$as_echo "no" >&6; }
34285fi
34286
34287
34288
34289# Prefer lpr to lp; lp needs options tacked on.
34290if test "$LPRDelegate" != no; then
34291 PrintDelegate="$LPRDelegate"
34292else
34293 PrintDelegate="$LPDelegate -c -s"
34294fi
34295
34296
34297# Installed ImageMagick utiltity paths
34298ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34299DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34300MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34301
34302# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034303have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034304have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34305have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34306have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034307have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034308have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34309have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034310have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34311
34312#
34313# Test for font directories
34314#
34315type_include_files=''
34316
cristy430a7312010-01-21 20:44:04 +000034317# Dejavu fonts.
34318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34319$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34320dejavu_font_dir=''
34321if test "${with_dejavu_font_dir}" != 'default'; then
34322 dejavu_font_dir="${with_dejavu_font_dir}/"
34323else
34324 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34325 if test -f "${font_dir}DejaVuSerif.ttf"; then
34326 dejavu_font_dir="${font_dir}"
34327 break 1
34328 fi
34329 done
34330fi
34331if test "${dejavu_font_dir}x" != 'x'; then
34332 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34334$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034335else
cristyad38abe2012-12-23 23:03:21 +000034336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34337$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034338fi
34339
34340
cristy3ed852e2009-09-05 21:47:34 +000034341# Windows
34342windows_font_dir=''
34343if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34344 windows_font_dir="${with_windows_font_dir}/"
34345fi
cristy430a7312010-01-21 20:44:04 +000034346if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034347 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34348 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34349 fi
34350 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34351 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34352 fi
34353 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34354 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34355 fi
34356fi
cristy430a7312010-01-21 20:44:04 +000034357if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034358 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34359fi
34360
34361
34362# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034364$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34365ghostscript_font_dir=''
34366if test "${with_gs_font_dir}" != 'default'; then
34367 ghostscript_font_dir="${with_gs_font_dir}/"
34368else
34369 if test "${native_win32_build}" = 'yes'; then
34370 # Native Windows Build
34371 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34372 if test -f "${font_dir}a010013l.pfb"; then
34373 ghostscript_font_dir="$font_dir"
34374 break 1
34375 fi
34376 done
34377 if test "${PSDelegate}" != 'gswin32c'; then
34378 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34379 fi
34380 else
34381 # Linux / Mac OS X / Unix Build
34382 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
34383 if test -f "${font_dir}a010013l.pfb"; then
34384 ghostscript_font_dir="${font_dir}"
34385 break 1
34386 fi
34387 done
34388 if test "${ghostscript_font_dir}x" = 'x'; then
34389 if test "$PSDelegate" != 'gs'; then
34390 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34391 fi
34392 fi
34393 fi
34394fi
34395if test "${ghostscript_font_dir}x" != 'x'; then
34396 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34398$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034399else
cristyad38abe2012-12-23 23:03:21 +000034400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34401$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034402fi
34403
34404case "${build_os}" in
34405 mingw* )
34406 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34407 ;;
34408esac
34409
34410
34411
34412#
34413# Handle case where user doesn't want frozen paths
34414#
34415if test "$with_frozenpaths" != 'yes'; then
34416 # Re-set delegate definitions to default (no paths)
34417 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034418 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34419 BZIPDelegate="$BZIPDelegateDefault"
34420 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034421 CatDelegate="$CatDelegateDefault"
34422 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034423 DisplayDelegate="$DisplayDelegateDefault"
34424 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034425 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34426 EchoDelegate="$EchoDelegateDefault"
34427 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034428 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034429 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034430 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34431 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34432 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34433 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034434 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34435 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034436 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034437 LaunchDelegate="$LaunchDelegateDefault"
34438 MANDelegate="$MANDelegateDefault"
34439 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34440 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034441 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034442 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34443 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034444 PCLDelegate="$PCLDelegateDefault"
34445 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34446 POVDelegate="$POVDelegateDefault"
34447 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034448 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34449 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034450 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034451 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034452 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034453 ShowImageDelegate="$ShowImageDelegateDefault"
34454 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034455 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000034456 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34457 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034458 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34459 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34460 XPSDelegate="$XPSDelegateDefault"
34461 ZipDelegate="$ZipDelegateDefault"
34462fi
34463
34464# Delegate substitutions
34465
34466
34467
34468
34469
34470
34471
34472
34473
34474
34475
34476
34477
34478
34479
34480
34481
34482
34483
34484
34485
34486
34487
34488
34489
34490
34491
34492
34493
34494
34495
34496
34497
34498
34499
34500
34501
34502
34503
34504
cristy71f53d52013-04-27 13:33:59 +000034505
34506
cristy3ed852e2009-09-05 21:47:34 +000034507#
34508# RPM support.
34509#
34510RPM=''
34511for ac_prog in gnutar gtar tar
34512do
34513 # Extract the first word of "$ac_prog", so it can be a program name with args.
34514set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034516$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034517if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034518 $as_echo_n "(cached) " >&6
34519else
34520 if test -n "$TAR"; then
34521 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34522else
34523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34524for as_dir in $PATH
34525do
34526 IFS=$as_save_IFS
34527 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034528 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034530 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034532 break 2
34533 fi
34534done
cristy8b350f62009-11-15 23:12:43 +000034535 done
cristy3ed852e2009-09-05 21:47:34 +000034536IFS=$as_save_IFS
34537
34538fi
34539fi
34540TAR=$ac_cv_prog_TAR
34541if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034543$as_echo "$TAR" >&6; }
34544else
cristy8b350f62009-11-15 23:12:43 +000034545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034546$as_echo "no" >&6; }
34547fi
34548
34549
34550 test -n "$TAR" && break
34551done
34552
34553for ac_prog in perl
34554do
34555 # Extract the first word of "$ac_prog", so it can be a program name with args.
34556set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034558$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034559if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034560 $as_echo_n "(cached) " >&6
34561else
34562 if test -n "$PERL"; then
34563 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34564else
34565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34566for as_dir in $PATH
34567do
34568 IFS=$as_save_IFS
34569 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034570 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034572 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034574 break 2
34575 fi
34576done
cristy8b350f62009-11-15 23:12:43 +000034577 done
cristy3ed852e2009-09-05 21:47:34 +000034578IFS=$as_save_IFS
34579
34580fi
34581fi
34582PERL=$ac_cv_prog_PERL
34583if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034585$as_echo "$PERL" >&6; }
34586else
cristy8b350f62009-11-15 23:12:43 +000034587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034588$as_echo "no" >&6; }
34589fi
34590
34591
34592 test -n "$PERL" && break
34593done
34594
34595for ac_prog in rpmbuild rpm
34596do
34597 # Extract the first word of "$ac_prog", so it can be a program name with args.
34598set dummy $ac_prog; 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_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034602 $as_echo_n "(cached) " >&6
34603else
34604 if test -n "$RPM"; then
34605 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34606else
34607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34608for as_dir in $PATH
34609do
34610 IFS=$as_save_IFS
34611 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034614 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034616 break 2
34617 fi
34618done
cristy8b350f62009-11-15 23:12:43 +000034619 done
cristy3ed852e2009-09-05 21:47:34 +000034620IFS=$as_save_IFS
34621
34622fi
34623fi
34624RPM=$ac_cv_prog_RPM
34625if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034627$as_echo "$RPM" >&6; }
34628else
cristy8b350f62009-11-15 23:12:43 +000034629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034630$as_echo "no" >&6; }
34631fi
34632
34633
34634 test -n "$RPM" && break
34635done
34636
34637
cristy73bd4a52010-10-05 11:24:23 +000034638ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34639
34640
34641AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34642
34643
34644AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34645
34646
34647AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34648
34649
34650 if test "x$RPM" != "x" ; then
34651 RPM_DELEGATE_TRUE=
34652 RPM_DELEGATE_FALSE='#'
34653else
34654 RPM_DELEGATE_TRUE='#'
34655 RPM_DELEGATE_FALSE=
34656fi
34657
cristy3ed852e2009-09-05 21:47:34 +000034658
34659#
34660# 7ZIP support (http://p7zip.sourceforge.net/)
34661#
34662P7ZIP=''
34663for ac_prog in 7za
34664do
34665 # Extract the first word of "$ac_prog", so it can be a program name with args.
34666set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034668$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034669if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034670 $as_echo_n "(cached) " >&6
34671else
34672 if test -n "$P7ZIP"; then
34673 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34674else
34675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34676for as_dir in $PATH
34677do
34678 IFS=$as_save_IFS
34679 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034680 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034682 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034684 break 2
34685 fi
34686done
cristy8b350f62009-11-15 23:12:43 +000034687 done
cristy3ed852e2009-09-05 21:47:34 +000034688IFS=$as_save_IFS
34689
34690fi
34691fi
34692P7ZIP=$ac_cv_prog_P7ZIP
34693if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034695$as_echo "$P7ZIP" >&6; }
34696else
cristy8b350f62009-11-15 23:12:43 +000034697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034698$as_echo "no" >&6; }
34699fi
34700
34701
34702 test -n "$P7ZIP" && break
34703done
34704
34705
cristy73bd4a52010-10-05 11:24:23 +000034706 if test "x$P7ZIP" != "x" ; then
34707 P7ZIP_DELEGATE_TRUE=
34708 P7ZIP_DELEGATE_FALSE='#'
34709else
34710 P7ZIP_DELEGATE_TRUE='#'
34711 P7ZIP_DELEGATE_FALSE=
34712fi
34713
cristy3ed852e2009-09-05 21:47:34 +000034714
34715#
34716# ZIP support (http://www.info-zip.org/Zip.html)
34717#
34718ZIP=''
34719for ac_prog in zip
34720do
34721 # Extract the first word of "$ac_prog", so it can be a program name with args.
34722set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034724$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034725if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034726 $as_echo_n "(cached) " >&6
34727else
34728 if test -n "$ZIP"; then
34729 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34730else
34731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34732for as_dir in $PATH
34733do
34734 IFS=$as_save_IFS
34735 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034736 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034738 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034740 break 2
34741 fi
34742done
cristy8b350f62009-11-15 23:12:43 +000034743 done
cristy3ed852e2009-09-05 21:47:34 +000034744IFS=$as_save_IFS
34745
34746fi
34747fi
34748ZIP=$ac_cv_prog_ZIP
34749if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034751$as_echo "$ZIP" >&6; }
34752else
cristy8b350f62009-11-15 23:12:43 +000034753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034754$as_echo "no" >&6; }
34755fi
34756
34757
34758 test -n "$ZIP" && break
34759done
34760
34761
cristy73bd4a52010-10-05 11:24:23 +000034762 if test "x$ZIP" != "x" ; then
34763 ZIP_DELEGATE_TRUE=
34764 ZIP_DELEGATE_FALSE='#'
34765else
34766 ZIP_DELEGATE_TRUE='#'
34767 ZIP_DELEGATE_FALSE=
34768fi
34769
cristy3ed852e2009-09-05 21:47:34 +000034770
34771#
34772# GhostPCL related configuration.
34773#
34774PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034775PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034776PCLMonoDevice=pbmraw
34777if test -z "$PCLVersion"; then
34778 PCLVersion='unknown'
34779fi
34780if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34782$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034784$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34786$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034787 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034789$as_echo_n "checking for pcl color device... " >&6; }
34790 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34791 :
34792 else
34793 PCLColorDevice=ppmraw
34794 fi
cristyad38abe2012-12-23 23:03:21 +000034795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
34796$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034797
34798 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034800$as_echo_n "checking for pcl CMYK device... " >&6; }
34801 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34802 :
34803 else
34804 PCLCMYKDevice=$PCLColorDevice
34805 fi
cristyad38abe2012-12-23 23:03:21 +000034806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
34807$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034808
34809 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034811$as_echo_n "checking for pcl mono device... " >&6; }
34812 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34813 :
34814 else
34815 PCLMonoDevice=$PCLColorDevice
34816 fi
cristyad38abe2012-12-23 23:03:21 +000034817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
34818$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034819fi
34820
34821
34822
34823
34824
34825
34826#
34827# GhostXPS related configuration.
34828#
34829XPSColorDevice=ppmraw
34830XPSCMYKDevice=bmpsep8
34831XPSMonoDevice=pbmraw
34832if test -z "$XPSVersion"; then
34833 XPSVersion='unknown'
34834fi
34835if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34837$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034839$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34841$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034842 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034844$as_echo_n "checking for xps color device... " >&6; }
34845 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34846 :
34847 else
34848 XPSColorDevice=ppmraw
34849 fi
cristyad38abe2012-12-23 23:03:21 +000034850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
34851$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034852
34853 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034855$as_echo_n "checking for xps CMYK device... " >&6; }
34856 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34857 :
34858 else
34859 XPSCMYKDevice=$XPSColorDevice
34860 fi
cristyad38abe2012-12-23 23:03:21 +000034861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
34862$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034863
34864 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034866$as_echo_n "checking for xps mono device... " >&6; }
34867 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34868 :
34869 else
34870 XPSMonoDevice=$XPSColorDevice
34871 fi
cristyad38abe2012-12-23 23:03:21 +000034872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
34873$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034874fi
34875
34876
34877
34878
34879
34880
34881#
34882# Ghostscript related configuration.
34883#
cristya97426c2011-02-04 01:41:27 +000034884GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034885GSColorDevice=pnmraw
34886GSCMYKDevice=pam
34887GSMonoDevice=pbmraw
34888GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000034889GSPSDevice=ps2write
cristy3ed852e2009-09-05 21:47:34 +000034890GSEPSDevice=epswrite
34891GSVersion='unknown'
34892if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34894$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034896$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34898$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034900$as_echo_n "checking for Ghostscript version... " >&6; }
34901 if GSVersion=`$PSDelegate --version`; then
34902 :
34903 else
34904 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34905 fi
cristyad38abe2012-12-23 23:03:21 +000034906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
34907$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034908
34909 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034911$as_echo_n "checking for gs alpha device... " >&6; }
34912 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34913 :
34914 else
34915 GSAlphaDevice=pnmraw
34916 fi
cristyad38abe2012-12-23 23:03:21 +000034917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
34918$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034919
34920 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034922$as_echo_n "checking for gs color device... " >&6; }
34923 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34924 :
34925 else
34926 GSColorDevice=pnmraw
34927 fi
cristyad38abe2012-12-23 23:03:21 +000034928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
34929$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034930
34931 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034933$as_echo_n "checking for gs CMYK device... " >&6; }
34934 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34935 :
34936 else
34937 GSCMYKDevice=bmpsep8
34938 fi
cristyad38abe2012-12-23 23:03:21 +000034939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
34940$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034941
34942 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034944$as_echo_n "checking for gs mono device... " >&6; }
34945 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34946 :
34947 else
34948 GSMonoDevice=$GSColorDevice
34949 fi
cristyad38abe2012-12-23 23:03:21 +000034950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
34951$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034952
34953 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034955$as_echo_n "checking for gs PDF writing device... " >&6; }
34956 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34957 :
34958 else
34959 GSPDFDevice=nodevice
34960 fi
cristyad38abe2012-12-23 23:03:21 +000034961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
34962$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034963
34964 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034966$as_echo_n "checking for gs PS writing device... " >&6; }
34967 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34968 :
34969 else
34970 GSPSDevice=nodevice
34971 fi
cristyad38abe2012-12-23 23:03:21 +000034972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
34973$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034974
34975 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034977$as_echo_n "checking for gs EPS writing device... " >&6; }
34978 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34979 :
34980 else
34981 GSEPSDevice=nodevice
34982 fi
cristyad38abe2012-12-23 23:03:21 +000034983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
34984$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034985fi
34986
34987
34988
34989
34990
34991
34992
34993
34994
34995
34996#
34997# PerlMagick-related configuration
34998#
34999
35000# Look for PERL if PerlMagick requested
35001# If name/path of desired PERL interpreter is specified, look for that one first
35002have_perl='no'
35003if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35005$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035007$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35009$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035010 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035012$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035013if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035014 $as_echo_n "(cached) " >&6
35015else
35016 ac_cv_path_PERL="$with_perl"
35017fi
cristy8b350f62009-11-15 23:12:43 +000035018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035019$as_echo "$ac_cv_path_PERL" >&6; };
35020 PERL=$ac_cv_path_PERL
35021 have_perl="$ac_cv_path_PERL"
35022 else
35023 for ac_prog in perl perl5
35024do
35025 # Extract the first word of "$ac_prog", so it can be a program name with args.
35026set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035028$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035029if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035030 $as_echo_n "(cached) " >&6
35031else
35032 case $PERL in
35033 [\\/]* | ?:[\\/]*)
35034 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35035 ;;
35036 *)
35037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35038for as_dir in $PATH
35039do
35040 IFS=$as_save_IFS
35041 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035042 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035044 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035046 break 2
35047 fi
35048done
cristy8b350f62009-11-15 23:12:43 +000035049 done
cristy3ed852e2009-09-05 21:47:34 +000035050IFS=$as_save_IFS
35051
35052 ;;
35053esac
35054fi
35055PERL=$ac_cv_path_PERL
35056if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035058$as_echo "$PERL" >&6; }
35059else
cristy8b350f62009-11-15 23:12:43 +000035060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035061$as_echo "no" >&6; }
35062fi
35063
35064
35065 test -n "$PERL" && break
35066done
35067 if test "$ac_cv_path_PERL"; then
35068 have_perl="$ac_cv_path_PERL"
35069 fi
35070 fi
35071fi
35072
cristy949301e2010-01-06 01:38:40 +000035073if test "$with_perl" != 'yes' ; then
35074 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35075fi
35076
35077PERL_SUPPORTS_DESTDIR='no'
35078
cristy3ed852e2009-09-05 21:47:34 +000035079with_perl_static='no'
35080with_perl_dynamic='no'
35081if test "$have_perl" != 'no'; then
35082 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35083 with_perl_static='yes'
35084 fi
35085 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35086 with_perl_dynamic='yes'
35087 fi
35088 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035089
35090
35091
35092
35093 if test -n "$PERL"; then :
35094
35095 ax_perl_version="5.8.1"
35096
35097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35098$as_echo_n "checking for perl version... " >&6; }
35099
35100 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35101
35102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35103$as_echo "$perl_version" >&6; }
35104
35105 PERL_VERSION=$perl_version
35106
35107
35108
35109
35110
35111 # Used to indicate true or false condition
35112 ax_compare_version=false
35113
35114 # Convert the two version strings to be compared into a format that
35115 # allows a simple string comparison. The end result is that a version
35116 # string of the form 1.12.5-r617 will be converted to the form
35117 # 0001001200050617. In other words, each number is zero padded to four
35118 # digits, and non digits are removed.
35119
35120 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35121 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35122 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35123 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35124 -e 's/[^0-9]//g'`
35125
35126
35127 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35128 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35129 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35130 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35131 -e 's/[^0-9]//g'`
35132
35133
35134 ax_compare_version=`echo "x$ax_compare_version_A
35135x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35136
35137
35138
35139 if test "$ax_compare_version" = "true" ; then
35140
35141 :
35142 PERL_SUPPORTS_DESTDIR='yes'
35143
35144 else
35145 :
35146 PERL_SUPPORTS_DESTDIR='no'
35147
35148 fi
35149
35150
35151else
35152
35153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35154$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35155 PERL_SUPPORTS_DESTDIR='no'
35156
cristy3ed852e2009-09-05 21:47:34 +000035157fi
cristy73bd4a52010-10-05 11:24:23 +000035158
35159fi
35160 if test "$have_perl" != 'no'; then
35161 WITH_PERL_TRUE=
35162 WITH_PERL_FALSE='#'
35163else
35164 WITH_PERL_TRUE='#'
35165 WITH_PERL_FALSE=
35166fi
35167
35168 if test $with_perl_static = 'yes'; then
35169 WITH_PERL_STATIC_TRUE=
35170 WITH_PERL_STATIC_FALSE='#'
35171else
35172 WITH_PERL_STATIC_TRUE='#'
35173 WITH_PERL_STATIC_FALSE=
35174fi
35175
35176 if test $with_perl_dynamic = 'yes'; then
35177 WITH_PERL_DYNAMIC_TRUE=
35178 WITH_PERL_DYNAMIC_FALSE='#'
35179else
35180 WITH_PERL_DYNAMIC_TRUE='#'
35181 WITH_PERL_DYNAMIC_FALSE=
35182fi
35183
cristy3ed852e2009-09-05 21:47:34 +000035184
35185
35186# Determine path to pick up MagickCore library from for use with building PerlMagick
35187MAGICKCORE_PATH="${LIB_DIR}"
35188if test $with_perl_static = 'yes'; then
35189 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35190 libtool_objdir=$objdir
35191
35192 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035193 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035194fi
35195
35196
cristy2a3eb392012-12-17 13:39:20 +000035197# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035198MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035199if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035200 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035201fi
cristy2a3eb392012-12-17 13:39:20 +000035202if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035203 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035204fi
35205if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035206 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035207fi
35208if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035209 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035210fi
cristy81ab5af2013-10-06 18:28:39 +000035211if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035212 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035213fi
cristy854c9cf2013-08-10 21:03:06 +000035214if test "$have_mupdf" = 'yes' ; then
35215 MAGICK_DELEGATES="$MAGICK_DELEGATES mupdf"
cristyc0884e92013-08-10 17:14:59 +000035216fi
cristy2a3eb392012-12-17 13:39:20 +000035217if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035218 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035219fi
cristy2a3eb392012-12-17 13:39:20 +000035220if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035221 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035222fi
35223if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035224 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035225fi
35226if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035227 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035228fi
35229if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035230 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035231fi
35232if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035233 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035234fi
35235if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035236 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035237fi
35238if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035239 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035240fi
35241if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035242 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035243fi
35244if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035245 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035246fi
35247if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035248 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035249fi
35250if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035251 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035252fi
35253if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035254 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035255fi
35256if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035257 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035258fi
35259if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035260 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035261fi
35262have_ps='no'
35263if test "$have_dps" = 'yes' || \
35264 test "$have_gs" = 'yes' || \
35265 test "${native_win32_build}" = 'yes' ; then
35266 have_ps='yes'
35267fi
35268if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035269 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035270fi
cristy2a3eb392012-12-17 13:39:20 +000035271if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035272 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035273fi
35274if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035275 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035276fi
35277if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035278 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035279fi
35280if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035281 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035282fi
cristy3b640ed2013-07-29 00:27:59 +000035283if test "$have_webp" = 'yes' ; then
35284 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35285fi
cristy2a3eb392012-12-17 13:39:20 +000035286if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035287 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035288fi
35289if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035290 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035291fi
35292if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035293 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035294fi
35295if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035296 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035297fi
cristy2a3eb392012-12-17 13:39:20 +000035298# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035299MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035300MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035301
35302
cristyfa161182012-12-19 15:45:28 +000035303
cristy3ed852e2009-09-05 21:47:34 +000035304#
35305# Handle special compiler flags
35306#
35307
35308# Add '-p' if prof source profiling support enabled
35309if test "$enable_prof" = 'yes'; then
35310 CFLAGS="-p $CFLAGS"
35311 CXXFLAGS="-p $CXXFLAGS"
35312 LDFLAGS="-p $LDFLAGS"
35313fi
35314
35315# Add '-pg' if gprof source profiling support enabled
35316if test "$enable_gprof" = 'yes'; then
35317 CFLAGS="-pg $CFLAGS"
35318 CXXFLAGS="-pg $CXXFLAGS"
35319 LDFLAGS="-pg $LDFLAGS"
35320fi
35321
35322# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35323# This is a gcc-specific feature
35324if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035326$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035327if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035328 $as_echo_n "(cached) " >&6
35329else
35330 ac_check_lib_save_LIBS=$LIBS
35331LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035333/* end confdefs.h. */
35334
35335/* Override any GCC internal prototype to avoid an error.
35336 Use char because int might match the return type of a GCC
35337 builtin and then its argument prototype would still apply. */
35338#ifdef __cplusplus
35339extern "C"
35340#endif
35341char _gcov_init ();
35342int
35343main ()
35344{
35345return _gcov_init ();
35346 ;
35347 return 0;
35348}
35349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035350if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035351 ac_cv_lib_gcov__gcov_init=yes
35352else
cristy8b350f62009-11-15 23:12:43 +000035353 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035354fi
cristy8b350f62009-11-15 23:12:43 +000035355rm -f core conftest.err conftest.$ac_objext \
35356 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035357LIBS=$ac_check_lib_save_LIBS
35358fi
cristy8b350f62009-11-15 23:12:43 +000035359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035360$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035361if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035362 cat >>confdefs.h <<_ACEOF
35363#define HAVE_LIBGCOV 1
35364_ACEOF
35365
35366 LIBS="-lgcov $LIBS"
35367
35368fi
35369
cristy8b350f62009-11-15 23:12:43 +000035370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035371$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035372if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035373 $as_echo_n "(cached) " >&6
35374else
35375 ac_check_lib_save_LIBS=$LIBS
35376LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035378/* end confdefs.h. */
35379
35380/* Override any GCC internal prototype to avoid an error.
35381 Use char because int might match the return type of a GCC
35382 builtin and then its argument prototype would still apply. */
35383#ifdef __cplusplus
35384extern "C"
35385#endif
35386char __gcov_init ();
35387int
35388main ()
35389{
35390return __gcov_init ();
35391 ;
35392 return 0;
35393}
35394_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035395if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035396 ac_cv_lib_gcov___gcov_init=yes
35397else
cristy8b350f62009-11-15 23:12:43 +000035398 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035399fi
cristy8b350f62009-11-15 23:12:43 +000035400rm -f core conftest.err conftest.$ac_objext \
35401 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035402LIBS=$ac_check_lib_save_LIBS
35403fi
cristy8b350f62009-11-15 23:12:43 +000035404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035405$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035406if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035407 cat >>confdefs.h <<_ACEOF
35408#define HAVE_LIBGCOV 1
35409_ACEOF
35410
35411 LIBS="-lgcov $LIBS"
35412
35413fi
35414
35415 case "$target_os" in
35416 darwin*)
35417 OSX_GCOV_LDFLAG="-Wl,-single_module"
35418 ;;
35419 *)
35420 OSX_GCOV_LDFLAG=""
35421 ;;
35422 esac
35423
35424 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35425 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35426 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35427fi
35428
35429#
35430# Build library dependency list for libMagickCore
35431#
35432
cristyc6722092012-10-14 00:19:31 +000035433if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035434 MAGICK_DEP_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 $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035435else
cristy3a75f062012-09-08 23:29:40 +000035436 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_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 $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035437fi
35438
35439
35440#
35441# Remove extraneous spaces from output variables (asthetic)
35442#
35443X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35444X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35445X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35446X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35447
35448CC=`echo $CC | sed -e 's/ */ /g'`
35449CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35450CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35451CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035452DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35453LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35454TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35455MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35456#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35457
35458# Pass only user-provided LIBS as "global" libraries
35459LIBS=$USER_LIBS
35460
35461#AC_SUBST(CPPFLAGS)
35462
35463#AC_SUBST(LDFLAGS)
35464#AC_SUBST(X_PRE_LIBS)
35465#AC_SUBST(X_LIBS)
35466#AC_SUBST(X_EXTRA_LIBS)
35467
35468MAGICK_CFLAGS=$CFLAGS
35469MAGICK_CXXFLAGS="$CXXFLAGS"
35470MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35471MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35472MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000035473MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035474
35475
35476
35477
35478
35479
35480
35481
35482# Set configured scripts to executable.
35483ac_config_commands="$ac_config_commands default"
35484
cristy2bd4b6e2012-07-22 15:29:11 +000035485ac_config_commands="$ac_config_commands magick.sh.in"
35486
cristy3ed852e2009-09-05 21:47:34 +000035487ac_config_commands="$ac_config_commands MagickCore-config.in"
35488
cristy3ed852e2009-09-05 21:47:34 +000035489ac_config_commands="$ac_config_commands MagickWand-config.in"
35490
cristy3ed852e2009-09-05 21:47:34 +000035491ac_config_commands="$ac_config_commands Magick++-config.in"
35492
35493ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35494
35495
cristyad38abe2012-12-23 23:03:21 +000035496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35497$as_echo "-------------------------------------------------------------" >&6; }
35498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35499$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035500cat >confcache <<\_ACEOF
35501# This file is a shell script that caches the results of configure
35502# tests run on this system so they can be shared between configure
35503# scripts and configure runs, see configure's option --config-cache.
35504# It is not useful on other systems. If it contains results you don't
35505# want to keep, you may remove or edit it.
35506#
35507# config.status only pays attention to the cache file if you give it
35508# the --recheck option to rerun configure.
35509#
35510# `ac_cv_env_foo' variables (set or unset) will be overridden when
35511# loading this file, other *unset* `ac_cv_foo' will be assigned the
35512# following values.
35513
35514_ACEOF
35515
35516# The following way of writing the cache mishandles newlines in values,
35517# but we know of no workaround that is simple, portable, and efficient.
35518# So, we kill variables containing newlines.
35519# Ultrix sh set writes to stderr and can't be redirected directly,
35520# and sets the high bit in the cache file unless we assign to the vars.
35521(
35522 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35523 eval ac_val=\$$ac_var
35524 case $ac_val in #(
35525 *${as_nl}*)
35526 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035527 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035528$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35529 esac
35530 case $ac_var in #(
35531 _ | IFS | as_nl) ;; #(
35532 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035533 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035534 esac ;;
35535 esac
35536 done
35537
35538 (set) 2>&1 |
35539 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35540 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035541 # `set' does not quote correctly, so add quotes: double-quote
35542 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035543 sed -n \
35544 "s/'/'\\\\''/g;
35545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35546 ;; #(
35547 *)
35548 # `set' quotes correctly as required by POSIX, so do not add quotes.
35549 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35550 ;;
35551 esac |
35552 sort
35553) |
35554 sed '
35555 /^ac_cv_env_/b end
35556 t clear
35557 :clear
35558 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35559 t end
35560 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35561 :end' >>confcache
35562if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35563 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035564 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035565 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035566$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035567 if test ! -f "$cache_file" || test -h "$cache_file"; then
35568 cat confcache >"$cache_file"
35569 else
35570 case $cache_file in #(
35571 */* | ?:*)
35572 mv -f confcache "$cache_file"$$ &&
35573 mv -f "$cache_file"$$ "$cache_file" ;; #(
35574 *)
35575 mv -f confcache "$cache_file" ;;
35576 esac
35577 fi
35578 fi
cristy3ed852e2009-09-05 21:47:34 +000035579 else
cristy8b350f62009-11-15 23:12:43 +000035580 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035581$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35582 fi
35583fi
35584rm -f confcache
35585
35586test "x$prefix" = xNONE && prefix=$ac_default_prefix
35587# Let make expand exec_prefix.
35588test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35589
35590DEFS=-DHAVE_CONFIG_H
35591
35592ac_libobjs=
35593ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035594U=
cristy3ed852e2009-09-05 21:47:34 +000035595for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35596 # 1. Remove the extension, and $U if already installed.
35597 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35598 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35599 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35600 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035601 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35602 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035603done
35604LIBOBJS=$ac_libobjs
35605
35606LTLIBOBJS=$ac_ltlibobjs
35607
35608
cristyc0890a62012-07-19 00:18:20 +000035609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35610$as_echo_n "checking that generated files are newer than configure... " >&6; }
35611 if test -n "$am_sleep_pid"; then
35612 # Hide warnings about reused PIDs.
35613 wait $am_sleep_pid 2>/dev/null
35614 fi
35615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35616$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035617 if test -n "$EXEEXT"; then
35618 am__EXEEXT_TRUE=
35619 am__EXEEXT_FALSE='#'
35620else
35621 am__EXEEXT_TRUE='#'
35622 am__EXEEXT_FALSE=
35623fi
cristy3ed852e2009-09-05 21:47:34 +000035624
cristy73bd4a52010-10-05 11:24:23 +000035625if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035626 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035627Usually this means the macro was only invoked conditionally." "$LINENO" 5
35628fi
35629if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035630 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035631Usually this means the macro was only invoked conditionally." "$LINENO" 5
35632fi
35633if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035634 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035635Usually this means the macro was only invoked conditionally." "$LINENO" 5
35636fi
35637if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035638 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035639Usually this means the macro was only invoked conditionally." "$LINENO" 5
35640fi
cristy9b86f202012-11-28 21:55:35 +000035641if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35642 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35643Usually this means the macro was only invoked conditionally." "$LINENO" 5
35644fi
cristy73bd4a52010-10-05 11:24:23 +000035645if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035646 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035647Usually this means the macro was only invoked conditionally." "$LINENO" 5
35648fi
35649if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035650 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035651Usually this means the macro was only invoked conditionally." "$LINENO" 5
35652fi
35653if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035654 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035655Usually this means the macro was only invoked conditionally." "$LINENO" 5
35656fi
35657if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035658 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035659Usually this means the macro was only invoked conditionally." "$LINENO" 5
35660fi
cristy73bd4a52010-10-05 11:24:23 +000035661if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035662 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035663Usually this means the macro was only invoked conditionally." "$LINENO" 5
35664fi
35665if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035666 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035667Usually this means the macro was only invoked conditionally." "$LINENO" 5
35668fi
cristy73bd4a52010-10-05 11:24:23 +000035669if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035670 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035671Usually this means the macro was only invoked conditionally." "$LINENO" 5
35672fi
cristy71d8c202012-03-20 17:05:01 +000035673if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35674 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35675Usually this means the macro was only invoked conditionally." "$LINENO" 5
35676fi
cristy73bd4a52010-10-05 11:24:23 +000035677
35678if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035679 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035680Usually this means the macro was only invoked conditionally." "$LINENO" 5
35681fi
35682if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035683 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035684Usually this means the macro was only invoked conditionally." "$LINENO" 5
35685fi
35686if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035687 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035688Usually this means the macro was only invoked conditionally." "$LINENO" 5
35689fi
35690if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035691 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035692Usually this means the macro was only invoked conditionally." "$LINENO" 5
35693fi
35694if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035695 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035696Usually this means the macro was only invoked conditionally." "$LINENO" 5
35697fi
35698if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035699 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035700Usually this means the macro was only invoked conditionally." "$LINENO" 5
35701fi
cristy5eef09f2012-10-16 12:08:28 +000035702if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35703 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35704Usually this means the macro was only invoked conditionally." "$LINENO" 5
35705fi
cristy73bd4a52010-10-05 11:24:23 +000035706if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035707 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035708Usually this means the macro was only invoked conditionally." "$LINENO" 5
35709fi
35710if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035711 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035712Usually this means the macro was only invoked conditionally." "$LINENO" 5
35713fi
35714if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035715 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035716Usually this means the macro was only invoked conditionally." "$LINENO" 5
35717fi
35718if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035719 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035720Usually this means the macro was only invoked conditionally." "$LINENO" 5
35721fi
35722if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035723 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035724Usually this means the macro was only invoked conditionally." "$LINENO" 5
35725fi
35726if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035727 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035728Usually this means the macro was only invoked conditionally." "$LINENO" 5
35729fi
35730if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035731 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035732Usually this means the macro was only invoked conditionally." "$LINENO" 5
35733fi
35734if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035735 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035736Usually this means the macro was only invoked conditionally." "$LINENO" 5
35737fi
35738if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035739 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035740Usually this means the macro was only invoked conditionally." "$LINENO" 5
35741fi
35742if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035743 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035744Usually this means the macro was only invoked conditionally." "$LINENO" 5
35745fi
35746if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035747 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035748Usually this means the macro was only invoked conditionally." "$LINENO" 5
35749fi
35750if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035751 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035752Usually this means the macro was only invoked conditionally." "$LINENO" 5
35753fi
35754if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035755 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035756Usually this means the macro was only invoked conditionally." "$LINENO" 5
35757fi
35758if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035759 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035760Usually this means the macro was only invoked conditionally." "$LINENO" 5
35761fi
cristyfbb0ef02010-12-19 02:32:11 +000035762if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35763 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35764Usually this means the macro was only invoked conditionally." "$LINENO" 5
35765fi
cristy854c9cf2013-08-10 21:03:06 +000035766if test -z "${MUPDF_DELEGATE_TRUE}" && test -z "${MUPDF_DELEGATE_FALSE}"; then
35767 as_fn_error $? "conditional \"MUPDF_DELEGATE\" was never defined.
35768Usually this means the macro was only invoked conditionally." "$LINENO" 5
35769fi
cristy73bd4a52010-10-05 11:24:23 +000035770if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035771 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035772Usually this means the macro was only invoked conditionally." "$LINENO" 5
35773fi
cristy41cbe8a2011-10-27 01:35:18 +000035774if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35775 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35776Usually this means the macro was only invoked conditionally." "$LINENO" 5
35777fi
cristya054b762012-03-26 23:16:00 +000035778if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35779 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035780Usually this means the macro was only invoked conditionally." "$LINENO" 5
35781fi
cristy73bd4a52010-10-05 11:24:23 +000035782if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035783 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035784Usually this means the macro was only invoked conditionally." "$LINENO" 5
35785fi
35786if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035787 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035788Usually this means the macro was only invoked conditionally." "$LINENO" 5
35789fi
35790if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035791 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035792Usually this means the macro was only invoked conditionally." "$LINENO" 5
35793fi
35794if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035795 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035796Usually this means the macro was only invoked conditionally." "$LINENO" 5
35797fi
cristyb1860752011-03-14 00:27:46 +000035798if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35799 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35800Usually this means the macro was only invoked conditionally." "$LINENO" 5
35801fi
cristy73bd4a52010-10-05 11:24:23 +000035802if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035803 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035804Usually this means the macro was only invoked conditionally." "$LINENO" 5
35805fi
35806if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035807 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035808Usually this means the macro was only invoked conditionally." "$LINENO" 5
35809fi
35810if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035811 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035812Usually this means the macro was only invoked conditionally." "$LINENO" 5
35813fi
35814if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035815 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035816Usually this means the macro was only invoked conditionally." "$LINENO" 5
35817fi
35818if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035819 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035820Usually this means the macro was only invoked conditionally." "$LINENO" 5
35821fi
35822if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035823 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035824Usually this means the macro was only invoked conditionally." "$LINENO" 5
35825fi
35826if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035827 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035828Usually this means the macro was only invoked conditionally." "$LINENO" 5
35829fi
35830if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035831 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035832Usually this means the macro was only invoked conditionally." "$LINENO" 5
35833fi
cristy3ed852e2009-09-05 21:47:34 +000035834
cristyda16f162011-02-19 23:52:17 +000035835: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035836ac_write_fail=0
35837ac_clean_files_save=$ac_clean_files
35838ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035839{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035840$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035841as_write_fail=0
35842cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035843#! $SHELL
35844# Generated by $as_me.
35845# Run this file to recreate the current configuration.
35846# Compiler output produced by configure, useful for debugging
35847# configure, is in config.log if it exists.
35848
35849debug=false
35850ac_cs_recheck=false
35851ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035852
cristy8b350f62009-11-15 23:12:43 +000035853SHELL=\${CONFIG_SHELL-$SHELL}
35854export SHELL
35855_ASEOF
35856cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35857## -------------------- ##
35858## M4sh Initialization. ##
35859## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035860
35861# Be more Bourne compatible
35862DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035863if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035864 emulate sh
35865 NULLCMD=:
35866 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35867 # is contrary to our usage. Disable this feature.
35868 alias -g '${1+"$@"}'='"$@"'
35869 setopt NO_GLOB_SUBST
35870else
cristy8b350f62009-11-15 23:12:43 +000035871 case `(set -o) 2>/dev/null` in #(
35872 *posix*) :
35873 set -o posix ;; #(
35874 *) :
35875 ;;
cristy3ed852e2009-09-05 21:47:34 +000035876esac
cristy3ed852e2009-09-05 21:47:34 +000035877fi
35878
35879
cristy3ed852e2009-09-05 21:47:34 +000035880as_nl='
35881'
35882export as_nl
35883# Printing a long string crashes Solaris 7 /usr/bin/printf.
35884as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35885as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35886as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035887# Prefer a ksh shell builtin over an external printf program on Solaris,
35888# but without wasting forks for bash or zsh.
35889if test -z "$BASH_VERSION$ZSH_VERSION" \
35890 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35891 as_echo='print -r --'
35892 as_echo_n='print -rn --'
35893elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035894 as_echo='printf %s\n'
35895 as_echo_n='printf %s'
35896else
35897 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35898 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35899 as_echo_n='/usr/ucb/echo -n'
35900 else
35901 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35902 as_echo_n_body='eval
35903 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035904 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035905 *"$as_nl"*)
35906 expr "X$arg" : "X\\(.*\\)$as_nl";
35907 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35908 esac;
35909 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35910 '
35911 export as_echo_n_body
35912 as_echo_n='sh -c $as_echo_n_body as_echo'
35913 fi
35914 export as_echo_body
35915 as_echo='sh -c $as_echo_body as_echo'
35916fi
35917
35918# The user is always right.
35919if test "${PATH_SEPARATOR+set}" != set; then
35920 PATH_SEPARATOR=:
35921 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35922 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35923 PATH_SEPARATOR=';'
35924 }
35925fi
35926
cristy3ed852e2009-09-05 21:47:34 +000035927
35928# IFS
35929# We need space, tab and new line, in precisely that order. Quoting is
35930# there to prevent editors from complaining about space-tab.
35931# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35932# splitting by setting IFS to empty value.)
35933IFS=" "" $as_nl"
35934
35935# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035936as_myself=
cristy8b350f62009-11-15 23:12:43 +000035937case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035938 *[\\/]* ) as_myself=$0 ;;
35939 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35940for as_dir in $PATH
35941do
35942 IFS=$as_save_IFS
35943 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035944 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35945 done
cristy3ed852e2009-09-05 21:47:34 +000035946IFS=$as_save_IFS
35947
35948 ;;
35949esac
35950# We did not find ourselves, most probably we were run as `sh COMMAND'
35951# in which case we are not to be found in the path.
35952if test "x$as_myself" = x; then
35953 as_myself=$0
35954fi
35955if test ! -f "$as_myself"; then
35956 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035957 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035958fi
35959
cristy8b350f62009-11-15 23:12:43 +000035960# Unset variables that we do not need and which cause bugs (e.g. in
35961# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35962# suppresses any "Segmentation fault" message there. '((' could
35963# trigger a bug in pdksh 5.2.14.
35964for as_var in BASH_ENV ENV MAIL MAILPATH
35965do eval test x\${$as_var+set} = xset \
35966 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035967done
35968PS1='$ '
35969PS2='> '
35970PS4='+ '
35971
35972# NLS nuisances.
35973LC_ALL=C
35974export LC_ALL
35975LANGUAGE=C
35976export LANGUAGE
35977
cristy8b350f62009-11-15 23:12:43 +000035978# CDPATH.
35979(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35980
35981
cristy98dddb52010-11-04 00:30:15 +000035982# as_fn_error STATUS ERROR [LINENO LOG_FD]
35983# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035984# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35985# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035986# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035987as_fn_error ()
35988{
cristy98dddb52010-11-04 00:30:15 +000035989 as_status=$1; test $as_status -eq 0 && as_status=1
35990 if test "$4"; then
35991 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35992 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035993 fi
cristy98dddb52010-11-04 00:30:15 +000035994 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035995 as_fn_exit $as_status
35996} # as_fn_error
35997
35998
35999# as_fn_set_status STATUS
36000# -----------------------
36001# Set $? to STATUS, without forking.
36002as_fn_set_status ()
36003{
36004 return $1
36005} # as_fn_set_status
36006
36007# as_fn_exit STATUS
36008# -----------------
36009# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36010as_fn_exit ()
36011{
36012 set +e
36013 as_fn_set_status $1
36014 exit $1
36015} # as_fn_exit
36016
36017# as_fn_unset VAR
36018# ---------------
36019# Portably unset VAR.
36020as_fn_unset ()
36021{
36022 { eval $1=; unset $1;}
36023}
36024as_unset=as_fn_unset
36025# as_fn_append VAR VALUE
36026# ----------------------
36027# Append the text in VALUE to the end of the definition contained in VAR. Take
36028# advantage of any shell optimizations that allow amortized linear growth over
36029# repeated appends, instead of the typical quadratic growth present in naive
36030# implementations.
36031if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36032 eval 'as_fn_append ()
36033 {
36034 eval $1+=\$2
36035 }'
36036else
36037 as_fn_append ()
36038 {
36039 eval $1=\$$1\$2
36040 }
36041fi # as_fn_append
36042
36043# as_fn_arith ARG...
36044# ------------------
36045# Perform arithmetic evaluation on the ARGs, and store the result in the
36046# global $as_val. Take advantage of shells that can avoid forks. The arguments
36047# must be portable across $(()) and expr.
36048if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36049 eval 'as_fn_arith ()
36050 {
36051 as_val=$(( $* ))
36052 }'
36053else
36054 as_fn_arith ()
36055 {
36056 as_val=`expr "$@" || test $? -eq 1`
36057 }
36058fi # as_fn_arith
36059
36060
cristy3ed852e2009-09-05 21:47:34 +000036061if expr a : '\(a\)' >/dev/null 2>&1 &&
36062 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36063 as_expr=expr
36064else
36065 as_expr=false
36066fi
36067
36068if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36069 as_basename=basename
36070else
36071 as_basename=false
36072fi
36073
cristy8b350f62009-11-15 23:12:43 +000036074if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36075 as_dirname=dirname
36076else
36077 as_dirname=false
36078fi
cristy3ed852e2009-09-05 21:47:34 +000036079
cristy3ed852e2009-09-05 21:47:34 +000036080as_me=`$as_basename -- "$0" ||
36081$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36082 X"$0" : 'X\(//\)$' \| \
36083 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36084$as_echo X/"$0" |
36085 sed '/^.*\/\([^/][^/]*\)\/*$/{
36086 s//\1/
36087 q
36088 }
36089 /^X\/\(\/\/\)$/{
36090 s//\1/
36091 q
36092 }
36093 /^X\/\(\/\).*/{
36094 s//\1/
36095 q
36096 }
36097 s/.*/./; q'`
36098
cristy8b350f62009-11-15 23:12:43 +000036099# Avoid depending upon Character Ranges.
36100as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36101as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36102as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36103as_cr_digits='0123456789'
36104as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036105
36106ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036107case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036108-n*)
cristy8b350f62009-11-15 23:12:43 +000036109 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036110 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036111 xy) ECHO_C='\c';;
36112 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36113 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036114 esac;;
36115*)
36116 ECHO_N='-n';;
36117esac
cristy3ed852e2009-09-05 21:47:34 +000036118
36119rm -f conf$$ conf$$.exe conf$$.file
36120if test -d conf$$.dir; then
36121 rm -f conf$$.dir/conf$$.file
36122else
36123 rm -f conf$$.dir
36124 mkdir conf$$.dir 2>/dev/null
36125fi
36126if (echo >conf$$.file) 2>/dev/null; then
36127 if ln -s conf$$.file conf$$ 2>/dev/null; then
36128 as_ln_s='ln -s'
36129 # ... but there are two gotchas:
36130 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36131 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036132 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036133 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036134 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036135 elif ln conf$$.file conf$$ 2>/dev/null; then
36136 as_ln_s=ln
36137 else
cristy14fefe52012-05-21 00:59:18 +000036138 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036139 fi
36140else
cristy14fefe52012-05-21 00:59:18 +000036141 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036142fi
36143rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36144rmdir conf$$.dir 2>/dev/null
36145
cristy8b350f62009-11-15 23:12:43 +000036146
36147# as_fn_mkdir_p
36148# -------------
36149# Create "$as_dir" as a directory, including parents if necessary.
36150as_fn_mkdir_p ()
36151{
36152
36153 case $as_dir in #(
36154 -*) as_dir=./$as_dir;;
36155 esac
36156 test -d "$as_dir" || eval $as_mkdir_p || {
36157 as_dirs=
36158 while :; do
36159 case $as_dir in #(
36160 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36161 *) as_qdir=$as_dir;;
36162 esac
36163 as_dirs="'$as_qdir' $as_dirs"
36164 as_dir=`$as_dirname -- "$as_dir" ||
36165$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36166 X"$as_dir" : 'X\(//\)[^/]' \| \
36167 X"$as_dir" : 'X\(//\)$' \| \
36168 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36169$as_echo X"$as_dir" |
36170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36171 s//\1/
36172 q
36173 }
36174 /^X\(\/\/\)[^/].*/{
36175 s//\1/
36176 q
36177 }
36178 /^X\(\/\/\)$/{
36179 s//\1/
36180 q
36181 }
36182 /^X\(\/\).*/{
36183 s//\1/
36184 q
36185 }
36186 s/.*/./; q'`
36187 test -d "$as_dir" && break
36188 done
36189 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036190 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036191
36192
36193} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036194if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036195 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036196else
36197 test -d ./-p && rmdir ./-p
36198 as_mkdir_p=false
36199fi
36200
cristy14fefe52012-05-21 00:59:18 +000036201
36202# as_fn_executable_p FILE
36203# -----------------------
36204# Test if FILE is an executable regular file.
36205as_fn_executable_p ()
36206{
36207 test -f "$1" && test -x "$1"
36208} # as_fn_executable_p
36209as_test_x='test -x'
36210as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036211
36212# Sed expression to map a string onto a valid CPP name.
36213as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36214
36215# Sed expression to map a string onto a valid variable name.
36216as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36217
36218
36219exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036220## ----------------------------------- ##
36221## Main body of $CONFIG_STATUS script. ##
36222## ----------------------------------- ##
36223_ASEOF
36224test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036225
cristy8b350f62009-11-15 23:12:43 +000036226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36227# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036228# report actual input values of CONFIG_FILES etc. instead of their
36229# values after options handling.
36230ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036231This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036232generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036233
36234 CONFIG_FILES = $CONFIG_FILES
36235 CONFIG_HEADERS = $CONFIG_HEADERS
36236 CONFIG_LINKS = $CONFIG_LINKS
36237 CONFIG_COMMANDS = $CONFIG_COMMANDS
36238 $ $0 $@
36239
36240on `(hostname || uname -n) 2>/dev/null | sed 1q`
36241"
36242
36243_ACEOF
36244
36245case $ac_config_files in *"
36246"*) set x $ac_config_files; shift; ac_config_files=$*;;
36247esac
36248
36249case $ac_config_headers in *"
36250"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36251esac
36252
36253
36254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36255# Files that config.status was made for.
36256config_files="$ac_config_files"
36257config_headers="$ac_config_headers"
36258config_commands="$ac_config_commands"
36259
36260_ACEOF
36261
36262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36263ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036264\`$as_me' instantiates files and other configuration actions
36265from templates according to the current configuration. Unless the files
36266and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036267
cristy8b350f62009-11-15 23:12:43 +000036268Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036269
36270 -h, --help print this help, then exit
36271 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036272 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036273 -q, --quiet, --silent
36274 do not print progress messages
36275 -d, --debug don't remove temporary files
36276 --recheck update $as_me by reconfiguring in the same conditions
36277 --file=FILE[:TEMPLATE]
36278 instantiate the configuration file FILE
36279 --header=FILE[:TEMPLATE]
36280 instantiate the configuration header FILE
36281
36282Configuration files:
36283$config_files
36284
36285Configuration headers:
36286$config_headers
36287
36288Configuration commands:
36289$config_commands
36290
cristy8b350f62009-11-15 23:12:43 +000036291Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036292
36293_ACEOF
36294cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036295ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036296ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036297ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036298configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036299 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036300
cristy14fefe52012-05-21 00:59:18 +000036301Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036302This config.status script is free software; the Free Software Foundation
36303gives unlimited permission to copy, distribute and modify it."
36304
36305ac_pwd='$ac_pwd'
36306srcdir='$srcdir'
36307INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036308MKDIR_P='$MKDIR_P'
36309AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036310test -n "\$AWK" || AWK=awk
36311_ACEOF
36312
36313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36314# The default lists apply if the user does not specify any file.
36315ac_need_defaults=:
36316while test $# != 0
36317do
36318 case $1 in
cristyda16f162011-02-19 23:52:17 +000036319 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036320 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36321 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36322 ac_shift=:
36323 ;;
cristyda16f162011-02-19 23:52:17 +000036324 --*=)
36325 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36326 ac_optarg=
36327 ac_shift=:
36328 ;;
cristy3ed852e2009-09-05 21:47:34 +000036329 *)
36330 ac_option=$1
36331 ac_optarg=$2
36332 ac_shift=shift
36333 ;;
36334 esac
36335
36336 case $ac_option in
36337 # Handling of the options.
36338 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36339 ac_cs_recheck=: ;;
36340 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36341 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036342 --config | --confi | --conf | --con | --co | --c )
36343 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036344 --debug | --debu | --deb | --de | --d | -d )
36345 debug=: ;;
36346 --file | --fil | --fi | --f )
36347 $ac_shift
36348 case $ac_optarg in
36349 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036350 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036351 esac
cristy8b350f62009-11-15 23:12:43 +000036352 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036353 ac_need_defaults=false;;
36354 --header | --heade | --head | --hea )
36355 $ac_shift
36356 case $ac_optarg in
36357 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36358 esac
cristy8b350f62009-11-15 23:12:43 +000036359 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036360 ac_need_defaults=false;;
36361 --he | --h)
36362 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036363 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036364Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036365 --help | --hel | -h )
36366 $as_echo "$ac_cs_usage"; exit ;;
36367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36368 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36369 ac_cs_silent=: ;;
36370
36371 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036372 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036373Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036374
cristy8b350f62009-11-15 23:12:43 +000036375 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036376 ac_need_defaults=false ;;
36377
36378 esac
36379 shift
36380done
36381
36382ac_configure_extra_args=
36383
36384if $ac_cs_silent; then
36385 exec 6>/dev/null
36386 ac_configure_extra_args="$ac_configure_extra_args --silent"
36387fi
36388
36389_ACEOF
36390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36391if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036392 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036393 shift
36394 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36395 CONFIG_SHELL='$SHELL'
36396 export CONFIG_SHELL
36397 exec "\$@"
36398fi
36399
36400_ACEOF
36401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36402exec 5>>config.log
36403{
36404 echo
36405 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36406## Running $as_me. ##
36407_ASBOX
36408 $as_echo "$ac_log"
36409} >&5
36410
36411_ACEOF
36412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036413#
36414# INIT-COMMANDS
36415#
36416PACKAGE="$PACKAGE"
36417AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36418
36419
36420# The HP-UX ksh and POSIX shell print the target directory to stdout
36421# if CDPATH is set.
36422(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36423
36424sed_quote_subst='$sed_quote_subst'
36425double_quote_subst='$double_quote_subst'
36426delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036427SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36428Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36429GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36430EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36431FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36432SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36433ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36434LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36435macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36436macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36437AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36438DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36439OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36440enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36441enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36442pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36443enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036444PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036445host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36446host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36447host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36448build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36449build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36450build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36451NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36452LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36453max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36454ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36455exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36456lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36457lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36458lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036459lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36460lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036461reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36462reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36463deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36464file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036465file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36466want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36467sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036468AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36469AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036470archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036471STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36472RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36473old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36474old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36475old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36476lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36477CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36478CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36479compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36480GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36481lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36482lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36483lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36484lt_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 +000036485nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36486lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036487objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36488MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36489lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036490lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036491lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036492lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36493lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36494need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036495MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036496DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36497NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36498LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36499OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36500OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36501libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36502shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36503extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36504archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36505enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36506export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36507whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36508compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36509old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36510old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36511archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36512archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36513module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36514module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36515with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36516allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36517no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36518hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036519hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36520hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36521hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36522hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36523hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36524hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36525inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36526link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036527always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36528export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36529exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36530include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36531prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036532postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036533file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36534variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36535need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36536need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36537version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36538runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36539shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36540shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36541libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36542library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36543soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36544install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36545postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36546postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36547finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36548finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36549hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36550sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36551sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36552hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36553enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36554enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36555enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36556old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36557striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36558compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36559predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36560postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36561predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36562postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36563compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36564LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36565reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36566reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36567old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36568compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36569GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36570lt_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 +000036571lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036572lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036573lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36574lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36575archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36576enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36577export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36578whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36579compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36580old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36581old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36582archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36583archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36584module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36585module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36586with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36587allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36588no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36589hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036590hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36591hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36592hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36593hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36594hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36595hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36596inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36597link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036598always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36599export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36600exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36601include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36602prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036603postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036604file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36605hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36606compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36607predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36608postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36609predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36610postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36611compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036612
36613LTCC='$LTCC'
36614LTCFLAGS='$LTCFLAGS'
36615compiler='$compiler_DEFAULT'
36616
cristy0c60a692010-11-04 01:09:47 +000036617# A function that is used when there is no print builtin or printf.
36618func_fallback_echo ()
36619{
36620 eval 'cat <<_LTECHO_EOF
36621\$1
36622_LTECHO_EOF'
36623}
36624
cristy73bd4a52010-10-05 11:24:23 +000036625# Quote evaled strings.
36626for var in SED \
36627GREP \
36628EGREP \
36629FGREP \
cristy0c60a692010-11-04 01:09:47 +000036630SHELL \
36631ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036632LD \
cristy0c60a692010-11-04 01:09:47 +000036633AS \
36634DLLTOOL \
36635OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036636PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036637NM \
36638LN_S \
36639lt_SP2NL \
36640lt_NL2SP \
36641reload_flag \
36642deplibs_check_method \
36643file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036644file_magic_glob \
36645want_nocaseglob \
36646sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036647AR \
36648AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036649archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036650STRIP \
36651RANLIB \
36652CC \
36653CFLAGS \
36654compiler \
36655lt_cv_sys_global_symbol_pipe \
36656lt_cv_sys_global_symbol_to_cdecl \
36657lt_cv_sys_global_symbol_to_c_name_address \
36658lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036659nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036660lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036661lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036662lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036663lt_prog_compiler_static \
36664lt_cv_prog_compiler_c_o \
36665need_locks \
cristyda16f162011-02-19 23:52:17 +000036666MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036667DSYMUTIL \
36668NMEDIT \
36669LIPO \
36670OTOOL \
36671OTOOL64 \
36672shrext_cmds \
36673export_dynamic_flag_spec \
36674whole_archive_flag_spec \
36675compiler_needs_object \
36676with_gnu_ld \
36677allow_undefined_flag \
36678no_undefined_flag \
36679hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036680hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036681exclude_expsyms \
36682include_expsyms \
36683file_list_spec \
36684variables_saved_for_relink \
36685libname_spec \
36686library_names_spec \
36687soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036688install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036689finish_eval \
36690old_striplib \
36691striplib \
36692compiler_lib_search_dirs \
36693predep_objects \
36694postdep_objects \
36695predeps \
36696postdeps \
36697compiler_lib_search_path \
36698LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036699reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036700compiler_CXX \
36701lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036702lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036703lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036704lt_prog_compiler_static_CXX \
36705lt_cv_prog_compiler_c_o_CXX \
36706export_dynamic_flag_spec_CXX \
36707whole_archive_flag_spec_CXX \
36708compiler_needs_object_CXX \
36709with_gnu_ld_CXX \
36710allow_undefined_flag_CXX \
36711no_undefined_flag_CXX \
36712hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036713hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036714exclude_expsyms_CXX \
36715include_expsyms_CXX \
36716file_list_spec_CXX \
36717compiler_lib_search_dirs_CXX \
36718predep_objects_CXX \
36719postdep_objects_CXX \
36720predeps_CXX \
36721postdeps_CXX \
36722compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036723 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036724 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036725 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036726 ;;
36727 *)
36728 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36729 ;;
36730 esac
36731done
36732
36733# Double-quote double-evaled strings.
36734for var in reload_cmds \
36735old_postinstall_cmds \
36736old_postuninstall_cmds \
36737old_archive_cmds \
36738extract_expsyms_cmds \
36739old_archive_from_new_cmds \
36740old_archive_from_expsyms_cmds \
36741archive_cmds \
36742archive_expsym_cmds \
36743module_cmds \
36744module_expsym_cmds \
36745export_symbols_cmds \
36746prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036747postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036748postinstall_cmds \
36749postuninstall_cmds \
36750finish_cmds \
36751sys_lib_search_path_spec \
36752sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036753reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036754old_archive_cmds_CXX \
36755old_archive_from_new_cmds_CXX \
36756old_archive_from_expsyms_cmds_CXX \
36757archive_cmds_CXX \
36758archive_expsym_cmds_CXX \
36759module_cmds_CXX \
36760module_expsym_cmds_CXX \
36761export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036762prelink_cmds_CXX \
36763postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036764 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036765 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036766 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036767 ;;
36768 *)
36769 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36770 ;;
36771 esac
36772done
36773
cristy73bd4a52010-10-05 11:24:23 +000036774ac_aux_dir='$ac_aux_dir'
36775xsi_shell='$xsi_shell'
36776lt_shell_append='$lt_shell_append'
36777
36778# See if we are running on zsh, and set the options which allow our
36779# commands through without removal of \ escapes INIT.
36780if test -n "\${ZSH_VERSION+set}" ; then
36781 setopt NO_GLOB_SUBST
36782fi
36783
36784
36785 PACKAGE='$PACKAGE'
36786 VERSION='$VERSION'
36787 TIMESTAMP='$TIMESTAMP'
36788 RM='$RM'
36789 ofile='$ofile'
36790
36791
36792
36793
36794
36795
cristy3ed852e2009-09-05 21:47:34 +000036796_ACEOF
36797
36798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36799
36800# Handling of arguments.
36801for ac_config_target in $ac_config_targets
36802do
36803 case $ac_config_target in
36804 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036805 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036806 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036807 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36808 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36809 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36810 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36811 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036812 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036813 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036814 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36815 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36816 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36817 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36818 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036819 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036820 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036821 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36822 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36823 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036824 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36825 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000036826 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000036827 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000036828 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000036829 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000036830 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
36831 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
36832 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
36833 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000036834 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36835 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36836 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36837 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36838 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36839 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36840 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36841 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36842 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36843 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36844 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36845 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036846 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36847 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036848 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36849 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036850 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000036851 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036852 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036853 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036854 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36855 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36856
cristy98dddb52010-11-04 00:30:15 +000036857 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036858 esac
36859done
36860
36861
36862# If the user did not use the arguments to specify the items to instantiate,
36863# then the envvar interface is used. Set only those that are not.
36864# We use the long form for the default assignment because of an extremely
36865# bizarre bug on SunOS 4.1.3.
36866if $ac_need_defaults; then
36867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36868 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36870fi
36871
36872# Have a temporary directory for convenience. Make it in the build tree
36873# simply because there is no reason against having it here, and in addition,
36874# creating and moving files from /tmp can sometimes cause problems.
36875# Hook for its removal unless debugging.
36876# Note that there is a small window in which the directory will not be cleaned:
36877# after its creation but before its name has been assigned to `$tmp'.
36878$debug ||
36879{
cristyda16f162011-02-19 23:52:17 +000036880 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036881 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036882 : "${ac_tmp:=$tmp}"
36883 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036884' 0
cristy8b350f62009-11-15 23:12:43 +000036885 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036886}
36887# Create a (secure) tmp directory for tmp files.
36888
36889{
36890 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036891 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036892} ||
36893{
36894 tmp=./conf$$-$RANDOM
36895 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036896} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036897ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036898
36899# Set up the scripts for CONFIG_FILES section.
36900# No need to generate them if there are no CONFIG_FILES.
36901# This happens for instance with `./config.status config.h'.
36902if test -n "$CONFIG_FILES"; then
36903
36904
cristy8b350f62009-11-15 23:12:43 +000036905ac_cr=`echo X | tr X '\015'`
36906# On cygwin, bash can eat \r inside `` if the user requested igncr.
36907# But we know of no other shell where ac_cr would be empty at this
36908# point, so we can use a bashism as a fallback.
36909if test "x$ac_cr" = x; then
36910 eval ac_cr=\$\'\\r\'
36911fi
cristy3ed852e2009-09-05 21:47:34 +000036912ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36913if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036914 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036915else
36916 ac_cs_awk_cr=$ac_cr
36917fi
36918
cristyda16f162011-02-19 23:52:17 +000036919echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036920_ACEOF
36921
36922
36923{
36924 echo "cat >conf$$subs.awk <<_ACEOF" &&
36925 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36926 echo "_ACEOF"
36927} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036928 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36929ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036930ac_delim='%!_!# '
36931for ac_last_try in false false false false false :; do
36932 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036933 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036934
36935 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36936 if test $ac_delim_n = $ac_delim_num; then
36937 break
36938 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036939 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036940 else
36941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36942 fi
36943done
36944rm -f conf$$subs.sh
36945
36946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036947cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036948_ACEOF
36949sed -n '
36950h
36951s/^/S["/; s/!.*/"]=/
36952p
36953g
36954s/^[^!]*!//
36955:repl
36956t repl
36957s/'"$ac_delim"'$//
36958t delim
36959:nl
36960h
cristycd4c5312009-11-22 01:19:08 +000036961s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036962t more1
36963s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36964p
36965n
36966b repl
36967:more1
36968s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36969p
36970g
36971s/.\{148\}//
36972t nl
36973:delim
36974h
cristycd4c5312009-11-22 01:19:08 +000036975s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036976t more2
36977s/["\\]/\\&/g; s/^/"/; s/$/"/
36978p
36979b
36980:more2
36981s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36982p
36983g
36984s/.\{148\}//
36985t delim
36986' <conf$$subs.awk | sed '
36987/^[^""]/{
36988 N
36989 s/\n//
36990}
36991' >>$CONFIG_STATUS || ac_write_fail=1
36992rm -f conf$$subs.awk
36993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36994_ACAWK
cristyda16f162011-02-19 23:52:17 +000036995cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036996 for (key in S) S_is_set[key] = 1
36997 FS = ""
36998
36999}
37000{
37001 line = $ 0
37002 nfields = split(line, field, "@")
37003 substed = 0
37004 len = length(field[1])
37005 for (i = 2; i < nfields; i++) {
37006 key = field[i]
37007 keylen = length(key)
37008 if (S_is_set[key]) {
37009 value = S[key]
37010 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37011 len += length(value) + length(field[++i])
37012 substed = 1
37013 } else
37014 len += 1 + keylen
37015 }
37016
37017 print line
37018}
37019
37020_ACAWK
37021_ACEOF
37022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37023if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37024 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37025else
37026 cat
cristyda16f162011-02-19 23:52:17 +000037027fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037028 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037029_ACEOF
37030
cristy98dddb52010-11-04 00:30:15 +000037031# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37032# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037033# trailing colons and then remove the whole line if VPATH becomes empty
37034# (actually we leave an empty line to preserve line numbers).
37035if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037036 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37037h
37038s///
37039s/^/:/
37040s/[ ]*$/:/
37041s/:\$(srcdir):/:/g
37042s/:\${srcdir}:/:/g
37043s/:@srcdir@:/:/g
37044s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037045s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037046x
37047s/\(=[ ]*\).*/\1/
37048G
37049s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037050s/^[^=]*=[ ]*$//
37051}'
37052fi
37053
37054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37055fi # test -n "$CONFIG_FILES"
37056
37057# Set up the scripts for CONFIG_HEADERS section.
37058# No need to generate them if there are no CONFIG_HEADERS.
37059# This happens for instance with `./config.status Makefile'.
37060if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037061cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037062BEGIN {
37063_ACEOF
37064
37065# Transform confdefs.h into an awk script `defines.awk', embedded as
37066# here-document in config.status, that substitutes the proper values into
37067# config.h.in to produce config.h.
37068
37069# Create a delimiter string that does not exist in confdefs.h, to ease
37070# handling of long lines.
37071ac_delim='%!_!# '
37072for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037073 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37074 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037075 break
37076 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037077 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037078 else
37079 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37080 fi
37081done
37082
37083# For the awk script, D is an array of macro values keyed by name,
37084# likewise P contains macro parameters if any. Preserve backslash
37085# newline sequences.
37086
37087ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37088sed -n '
37089s/.\{148\}/&'"$ac_delim"'/g
37090t rset
37091:rset
37092s/^[ ]*#[ ]*define[ ][ ]*/ /
37093t def
37094d
37095:def
37096s/\\$//
37097t bsnl
37098s/["\\]/\\&/g
37099s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37100D["\1"]=" \3"/p
37101s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37102d
37103:bsnl
37104s/["\\]/\\&/g
37105s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37106D["\1"]=" \3\\\\\\n"\\/p
37107t cont
37108s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37109t cont
37110d
37111:cont
37112n
37113s/.\{148\}/&'"$ac_delim"'/g
37114t clear
37115:clear
37116s/\\$//
37117t bsnlc
37118s/["\\]/\\&/g; s/^/"/; s/$/"/p
37119d
37120:bsnlc
37121s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37122b cont
37123' <confdefs.h | sed '
37124s/'"$ac_delim"'/"\\\
37125"/g' >>$CONFIG_STATUS || ac_write_fail=1
37126
37127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37128 for (key in D) D_is_set[key] = 1
37129 FS = ""
37130}
37131/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37132 line = \$ 0
37133 split(line, arg, " ")
37134 if (arg[1] == "#") {
37135 defundef = arg[2]
37136 mac1 = arg[3]
37137 } else {
37138 defundef = substr(arg[1], 2)
37139 mac1 = arg[2]
37140 }
37141 split(mac1, mac2, "(") #)
37142 macro = mac2[1]
37143 prefix = substr(line, 1, index(line, defundef) - 1)
37144 if (D_is_set[macro]) {
37145 # Preserve the white space surrounding the "#".
37146 print prefix "define", macro P[macro] D[macro]
37147 next
37148 } else {
37149 # Replace #undef with comments. This is necessary, for example,
37150 # in the case of _POSIX_SOURCE, which is predefined and required
37151 # on some systems where configure will not decide to define it.
37152 if (defundef == "undef") {
37153 print "/*", prefix defundef, macro, "*/"
37154 next
37155 }
37156 }
37157}
37158{ print }
37159_ACAWK
37160_ACEOF
37161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037162 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037163fi # test -n "$CONFIG_HEADERS"
37164
37165
37166eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37167shift
37168for ac_tag
37169do
37170 case $ac_tag in
37171 :[FHLC]) ac_mode=$ac_tag; continue;;
37172 esac
37173 case $ac_mode$ac_tag in
37174 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037175 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037176 :[FH]-) ac_tag=-:-;;
37177 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37178 esac
37179 ac_save_IFS=$IFS
37180 IFS=:
37181 set x $ac_tag
37182 IFS=$ac_save_IFS
37183 shift
37184 ac_file=$1
37185 shift
37186
37187 case $ac_mode in
37188 :L) ac_source=$1;;
37189 :[FH])
37190 ac_file_inputs=
37191 for ac_f
37192 do
37193 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037194 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037195 *) # Look for the file first in the build tree, then in the source tree
37196 # (if the path is not absolute). The absolute path cannot be DOS-style,
37197 # because $ac_f cannot contain `:'.
37198 test -f "$ac_f" ||
37199 case $ac_f in
37200 [\\/$]*) false;;
37201 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37202 esac ||
cristy98dddb52010-11-04 00:30:15 +000037203 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037204 esac
37205 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037206 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037207 done
37208
37209 # Let's still pretend it is `configure' which instantiates (i.e., don't
37210 # use $as_me), people would be surprised to read:
37211 # /* config.h. Generated by config.status. */
37212 configure_input='Generated from '`
37213 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37214 `' by configure.'
37215 if test x"$ac_file" != x-; then
37216 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037218$as_echo "$as_me: creating $ac_file" >&6;}
37219 fi
37220 # Neutralize special characters interpreted by sed in replacement strings.
37221 case $configure_input in #(
37222 *\&* | *\|* | *\\* )
37223 ac_sed_conf_input=`$as_echo "$configure_input" |
37224 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37225 *) ac_sed_conf_input=$configure_input;;
37226 esac
37227
37228 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037229 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037230 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037231 esac
37232 ;;
37233 esac
37234
37235 ac_dir=`$as_dirname -- "$ac_file" ||
37236$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37237 X"$ac_file" : 'X\(//\)[^/]' \| \
37238 X"$ac_file" : 'X\(//\)$' \| \
37239 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37240$as_echo X"$ac_file" |
37241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37242 s//\1/
37243 q
37244 }
37245 /^X\(\/\/\)[^/].*/{
37246 s//\1/
37247 q
37248 }
37249 /^X\(\/\/\)$/{
37250 s//\1/
37251 q
37252 }
37253 /^X\(\/\).*/{
37254 s//\1/
37255 q
37256 }
37257 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037258 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037259 ac_builddir=.
37260
37261case "$ac_dir" in
37262.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37263*)
37264 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37265 # A ".." for each directory in $ac_dir_suffix.
37266 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37267 case $ac_top_builddir_sub in
37268 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37269 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37270 esac ;;
37271esac
37272ac_abs_top_builddir=$ac_pwd
37273ac_abs_builddir=$ac_pwd$ac_dir_suffix
37274# for backward compatibility:
37275ac_top_builddir=$ac_top_build_prefix
37276
37277case $srcdir in
37278 .) # We are building in place.
37279 ac_srcdir=.
37280 ac_top_srcdir=$ac_top_builddir_sub
37281 ac_abs_top_srcdir=$ac_pwd ;;
37282 [\\/]* | ?:[\\/]* ) # Absolute name.
37283 ac_srcdir=$srcdir$ac_dir_suffix;
37284 ac_top_srcdir=$srcdir
37285 ac_abs_top_srcdir=$srcdir ;;
37286 *) # Relative name.
37287 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37288 ac_top_srcdir=$ac_top_build_prefix$srcdir
37289 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37290esac
37291ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37292
37293
37294 case $ac_mode in
37295 :F)
37296 #
37297 # CONFIG_FILE
37298 #
37299
37300 case $INSTALL in
37301 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37302 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37303 esac
cristy73bd4a52010-10-05 11:24:23 +000037304 ac_MKDIR_P=$MKDIR_P
37305 case $MKDIR_P in
37306 [\\/$]* | ?:[\\/]* ) ;;
37307 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37308 esac
cristy3ed852e2009-09-05 21:47:34 +000037309_ACEOF
37310
37311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37312# If the template does not know about datarootdir, expand it.
37313# FIXME: This hack should be removed a few years after 2.60.
37314ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037315ac_sed_dataroot='
37316/datarootdir/ {
37317 p
37318 q
37319}
37320/@datadir@/p
37321/@docdir@/p
37322/@infodir@/p
37323/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037324/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037325case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37326*datarootdir*) ac_datarootdir_seen=yes;;
37327*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037329$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37330_ACEOF
37331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37332 ac_datarootdir_hack='
37333 s&@datadir@&$datadir&g
37334 s&@docdir@&$docdir&g
37335 s&@infodir@&$infodir&g
37336 s&@localedir@&$localedir&g
37337 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037338 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037339esac
37340_ACEOF
37341
37342# Neutralize VPATH when `$srcdir' = `.'.
37343# Shell code in configure.ac might set extrasub.
37344# FIXME: do we really want to maintain this feature?
37345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37346ac_sed_extra="$ac_vpsub
37347$extrasub
37348_ACEOF
37349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37350:t
37351/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37352s|@configure_input@|$ac_sed_conf_input|;t t
37353s&@top_builddir@&$ac_top_builddir_sub&;t t
37354s&@top_build_prefix@&$ac_top_build_prefix&;t t
37355s&@srcdir@&$ac_srcdir&;t t
37356s&@abs_srcdir@&$ac_abs_srcdir&;t t
37357s&@top_srcdir@&$ac_top_srcdir&;t t
37358s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37359s&@builddir@&$ac_builddir&;t t
37360s&@abs_builddir@&$ac_abs_builddir&;t t
37361s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37362s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037363s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037364$ac_datarootdir_hack
37365"
cristyda16f162011-02-19 23:52:17 +000037366eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37367 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037368
37369test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037370 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37371 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37372 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037374which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037375$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037376which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037377
cristyda16f162011-02-19 23:52:17 +000037378 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037379 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037380 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37381 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037382 esac \
cristy98dddb52010-11-04 00:30:15 +000037383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037384 ;;
37385 :H)
37386 #
37387 # CONFIG_HEADER
37388 #
37389 if test x"$ac_file" != x-; then
37390 {
37391 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037392 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37393 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037395 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037396 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037397$as_echo "$as_me: $ac_file is unchanged" >&6;}
37398 else
37399 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037400 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037402 fi
37403 else
37404 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037405 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037406 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037407 fi
cristy73bd4a52010-10-05 11:24:23 +000037408# Compute "$ac_file"'s index in $config_headers.
37409_am_arg="$ac_file"
37410_am_stamp_count=1
37411for _am_header in $config_headers :; do
37412 case $_am_header in
37413 $_am_arg | $_am_arg:* )
37414 break ;;
37415 * )
37416 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37417 esac
37418done
37419echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37420$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37421 X"$_am_arg" : 'X\(//\)[^/]' \| \
37422 X"$_am_arg" : 'X\(//\)$' \| \
37423 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37424$as_echo X"$_am_arg" |
37425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37426 s//\1/
37427 q
37428 }
37429 /^X\(\/\/\)[^/].*/{
37430 s//\1/
37431 q
37432 }
37433 /^X\(\/\/\)$/{
37434 s//\1/
37435 q
37436 }
37437 /^X\(\/\).*/{
37438 s//\1/
37439 q
37440 }
37441 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037442 ;;
37443
cristy8b350f62009-11-15 23:12:43 +000037444 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037445$as_echo "$as_me: executing $ac_file commands" >&6;}
37446 ;;
37447 esac
37448
37449
37450 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037451 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037452ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37453ac_prefix_conf_PKG=`echo MagickCore`
37454ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37455ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37456ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37457if test ".$ac_prefix_conf_INP" = "."; then
37458 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37459 case "$ac_file" in
37460 *.h) ac_prefix_conf_INP=$ac_file ;;
37461 *)
37462 esac
37463 test ".$ac_prefix_conf_INP" != "." && break
37464 done
37465fi
37466if test ".$ac_prefix_conf_INP" = "."; then
37467 case "$ac_prefix_conf_OUT" in
37468 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37469 ;;
37470 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37471 ;;
37472 *) ac_prefix_conf_INP=config.h
37473 ;;
37474 esac
37475fi
37476if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037477 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037478else
37479 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37480 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37481 fi fi
37482 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37483$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37484 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037485 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37486 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37487 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37488 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37489 $as_echo "#endif/" >> conftest.prefix
37490 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37491 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37492 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037493 # now executing _script on _DEF input to create _OUT output file
37494 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37495 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37496 echo ' ' >>$tmp/pconfig.h
37497 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37498
37499 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37500 echo ' ' >>$tmp/pconfig.h
37501 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37502 echo "#endif" >>$tmp/pconfig.h
37503 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37504 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37505$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37506 else
37507 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37508$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37509 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37510 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37511 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37512$as_echo X"$ac_prefix_conf_OUT" |
37513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37514 s//\1/
37515 q
37516 }
37517 /^X\(\/\/\)[^/].*/{
37518 s//\1/
37519 q
37520 }
37521 /^X\(\/\/\)$/{
37522 s//\1/
37523 q
37524 }
37525 /^X\(\/\).*/{
37526 s//\1/
37527 q
37528 }
37529 s/.*/./; q'`
37530 as_dir="$ac_dir"; as_fn_mkdir_p
37531 rm -f "$ac_prefix_conf_OUT"
37532 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37533 fi
37534 cp conftest.prefix _configs.sed
37535 else
cristy98dddb52010-11-04 00:30:15 +000037536 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 +000037537 fi
37538 rm -f conftest.*
37539fi
37540 ;;
37541 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037542 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037543 # are listed without --file. Let's play safe and only enable the eval
37544 # if we detect the quoting.
37545 case $CONFIG_FILES in
37546 *\'*) eval set x "$CONFIG_FILES" ;;
37547 *) set x $CONFIG_FILES ;;
37548 esac
37549 shift
37550 for mf
37551 do
37552 # Strip MF so we end up with the name of the file.
37553 mf=`echo "$mf" | sed -e 's/:.*$//'`
37554 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037555 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037556 # some people rename them; so instead we look at the file content.
37557 # Grep'ing the first line is not enough: some people post-process
37558 # each Makefile.in and add a new line on top of each file to say so.
37559 # Grep'ing the whole file is not good either: AIX grep has a line
37560 # limit of 2048, but all sed's we know have understand at least 4000.
37561 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37562 dirpart=`$as_dirname -- "$mf" ||
37563$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37564 X"$mf" : 'X\(//\)[^/]' \| \
37565 X"$mf" : 'X\(//\)$' \| \
37566 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37567$as_echo X"$mf" |
37568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37569 s//\1/
37570 q
37571 }
37572 /^X\(\/\/\)[^/].*/{
37573 s//\1/
37574 q
37575 }
37576 /^X\(\/\/\)$/{
37577 s//\1/
37578 q
37579 }
37580 /^X\(\/\).*/{
37581 s//\1/
37582 q
37583 }
37584 s/.*/./; q'`
37585 else
37586 continue
37587 fi
37588 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037589 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037590 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37591 test -z "$DEPDIR" && continue
37592 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000037593 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000037594 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037595 # Find all dependency output files, they are included files with
37596 # $(DEPDIR) in their names. We invoke sed twice because it is the
37597 # simplest approach to changing $(DEPDIR) to its actual value in the
37598 # expansion.
37599 for file in `sed -n "
37600 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037601 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037602 # Make sure the directory exists.
37603 test -f "$dirpart/$file" && continue
37604 fdir=`$as_dirname -- "$file" ||
37605$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37606 X"$file" : 'X\(//\)[^/]' \| \
37607 X"$file" : 'X\(//\)$' \| \
37608 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37609$as_echo X"$file" |
37610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37611 s//\1/
37612 q
37613 }
37614 /^X\(\/\/\)[^/].*/{
37615 s//\1/
37616 q
37617 }
37618 /^X\(\/\/\)$/{
37619 s//\1/
37620 q
37621 }
37622 /^X\(\/\).*/{
37623 s//\1/
37624 q
37625 }
37626 s/.*/./; q'`
37627 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37628 # echo "creating $dirpart/$file"
37629 echo '# dummy' > "$dirpart/$file"
37630 done
37631 done
37632}
37633 ;;
37634 "libtool":C)
37635
37636 # See if we are running on zsh, and set the options which allow our
37637 # commands through without removal of \ escapes.
37638 if test -n "${ZSH_VERSION+set}" ; then
37639 setopt NO_GLOB_SUBST
37640 fi
37641
37642 cfgfile="${ofile}T"
37643 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37644 $RM "$cfgfile"
37645
37646 cat <<_LT_EOF >> "$cfgfile"
37647#! $SHELL
37648
37649# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37650# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37651# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37652# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37653#
37654# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037655# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37656# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037657# Written by Gordon Matzigkeit, 1996
37658#
37659# This file is part of GNU Libtool.
37660#
37661# GNU Libtool is free software; you can redistribute it and/or
37662# modify it under the terms of the GNU General Public License as
37663# published by the Free Software Foundation; either version 2 of
37664# the License, or (at your option) any later version.
37665#
37666# As a special exception to the GNU General Public License,
37667# if you distribute this file as part of a program or library that
37668# is built using GNU Libtool, you may include this file under the
37669# same distribution terms that you use for the rest of that program.
37670#
37671# GNU Libtool is distributed in the hope that it will be useful,
37672# but WITHOUT ANY WARRANTY; without even the implied warranty of
37673# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37674# GNU General Public License for more details.
37675#
37676# You should have received a copy of the GNU General Public License
37677# along with GNU Libtool; see the file COPYING. If not, a copy
37678# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37679# obtained by writing to the Free Software Foundation, Inc.,
37680# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37681
37682
37683# The names of the tagged configurations supported by this script.
37684available_tags="CXX "
37685
37686# ### BEGIN LIBTOOL CONFIG
37687
37688# A sed program that does not truncate output.
37689SED=$lt_SED
37690
37691# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37692Xsed="\$SED -e 1s/^X//"
37693
37694# A grep program that handles long lines.
37695GREP=$lt_GREP
37696
37697# An ERE matcher.
37698EGREP=$lt_EGREP
37699
37700# A literal string matcher.
37701FGREP=$lt_FGREP
37702
cristy0c60a692010-11-04 01:09:47 +000037703# Shell to use when invoking shell scripts.
37704SHELL=$lt_SHELL
37705
37706# An echo program that protects backslashes.
37707ECHO=$lt_ECHO
37708
cristy73bd4a52010-10-05 11:24:23 +000037709# Which release of libtool.m4 was used?
37710macro_version=$macro_version
37711macro_revision=$macro_revision
37712
37713# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037714AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037715
37716# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037717DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037718
37719# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037720OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037721
37722# Whether or not to build shared libraries.
37723build_libtool_libs=$enable_shared
37724
37725# Whether or not to build static libraries.
37726build_old_libs=$enable_static
37727
37728# What type of objects to build.
37729pic_mode=$pic_mode
37730
37731# Whether or not to optimize for fast installation.
37732fast_install=$enable_fast_install
37733
cristy99bd5232011-12-07 14:38:20 +000037734# The PATH separator for the build system.
37735PATH_SEPARATOR=$lt_PATH_SEPARATOR
37736
cristy73bd4a52010-10-05 11:24:23 +000037737# The host system.
37738host_alias=$host_alias
37739host=$host
37740host_os=$host_os
37741
37742# The build system.
37743build_alias=$build_alias
37744build=$build
37745build_os=$build_os
37746
37747# A BSD- or MS-compatible name lister.
37748NM=$lt_NM
37749
37750# Whether we need soft or hard links.
37751LN_S=$lt_LN_S
37752
37753# What is the maximum length of a command?
37754max_cmd_len=$max_cmd_len
37755
37756# Object file suffix (normally "o").
37757objext=$ac_objext
37758
37759# Executable file suffix (normally "").
37760exeext=$exeext
37761
37762# whether the shell understands "unset".
37763lt_unset=$lt_unset
37764
37765# turn spaces into newlines.
37766SP2NL=$lt_lt_SP2NL
37767
37768# turn newlines into spaces.
37769NL2SP=$lt_lt_NL2SP
37770
cristyda16f162011-02-19 23:52:17 +000037771# convert \$build file names to \$host format.
37772to_host_file_cmd=$lt_cv_to_host_file_cmd
37773
37774# convert \$build files to toolchain format.
37775to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37776
cristy73bd4a52010-10-05 11:24:23 +000037777# Method to check whether dependent libraries are shared objects.
37778deplibs_check_method=$lt_deplibs_check_method
37779
cristyda16f162011-02-19 23:52:17 +000037780# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037781file_magic_cmd=$lt_file_magic_cmd
37782
cristyda16f162011-02-19 23:52:17 +000037783# How to find potential files when deplibs_check_method = "file_magic".
37784file_magic_glob=$lt_file_magic_glob
37785
37786# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37787want_nocaseglob=$lt_want_nocaseglob
37788
37789# Command to associate shared and link libraries.
37790sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37791
cristy73bd4a52010-10-05 11:24:23 +000037792# The archiver.
37793AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037794
37795# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037796AR_FLAGS=$lt_AR_FLAGS
37797
cristyda16f162011-02-19 23:52:17 +000037798# How to feed a file listing to the archiver.
37799archiver_list_spec=$lt_archiver_list_spec
37800
cristy73bd4a52010-10-05 11:24:23 +000037801# A symbol stripping program.
37802STRIP=$lt_STRIP
37803
37804# Commands used to install an old-style archive.
37805RANLIB=$lt_RANLIB
37806old_postinstall_cmds=$lt_old_postinstall_cmds
37807old_postuninstall_cmds=$lt_old_postuninstall_cmds
37808
cristy0c60a692010-11-04 01:09:47 +000037809# Whether to use a lock for old archive extraction.
37810lock_old_archive_extraction=$lock_old_archive_extraction
37811
cristy73bd4a52010-10-05 11:24:23 +000037812# A C compiler.
37813LTCC=$lt_CC
37814
37815# LTCC compiler flags.
37816LTCFLAGS=$lt_CFLAGS
37817
37818# Take the output of nm and produce a listing of raw symbols and C names.
37819global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37820
37821# Transform the output of nm in a proper C declaration.
37822global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37823
37824# Transform the output of nm in a C name address pair.
37825global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37826
37827# Transform the output of nm in a C name address pair when lib prefix is needed.
37828global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37829
cristyda16f162011-02-19 23:52:17 +000037830# Specify filename containing input files for \$NM.
37831nm_file_list_spec=$lt_nm_file_list_spec
37832
37833# The root where to search for dependent libraries,and in which our libraries should be installed.
37834lt_sysroot=$lt_sysroot
37835
cristy73bd4a52010-10-05 11:24:23 +000037836# The name of the directory that contains temporary libtool files.
37837objdir=$objdir
37838
cristy73bd4a52010-10-05 11:24:23 +000037839# Used to examine libraries when file_magic_cmd begins with "file".
37840MAGIC_CMD=$MAGIC_CMD
37841
37842# Must we lock files when doing compilation?
37843need_locks=$lt_need_locks
37844
cristyda16f162011-02-19 23:52:17 +000037845# Manifest tool.
37846MANIFEST_TOOL=$lt_MANIFEST_TOOL
37847
cristy73bd4a52010-10-05 11:24:23 +000037848# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37849DSYMUTIL=$lt_DSYMUTIL
37850
37851# Tool to change global to local symbols on Mac OS X.
37852NMEDIT=$lt_NMEDIT
37853
37854# Tool to manipulate fat objects and archives on Mac OS X.
37855LIPO=$lt_LIPO
37856
37857# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37858OTOOL=$lt_OTOOL
37859
37860# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37861OTOOL64=$lt_OTOOL64
37862
37863# Old archive suffix (normally "a").
37864libext=$libext
37865
37866# Shared library suffix (normally ".so").
37867shrext_cmds=$lt_shrext_cmds
37868
37869# The commands to extract the exported symbol list from a shared archive.
37870extract_expsyms_cmds=$lt_extract_expsyms_cmds
37871
37872# Variables whose values should be saved in libtool wrapper scripts and
37873# restored at link time.
37874variables_saved_for_relink=$lt_variables_saved_for_relink
37875
37876# Do we need the "lib" prefix for modules?
37877need_lib_prefix=$need_lib_prefix
37878
37879# Do we need a version for libraries?
37880need_version=$need_version
37881
37882# Library versioning type.
37883version_type=$version_type
37884
37885# Shared library runtime path variable.
37886runpath_var=$runpath_var
37887
37888# Shared library path variable.
37889shlibpath_var=$shlibpath_var
37890
37891# Is shlibpath searched before the hard-coded library search path?
37892shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37893
37894# Format of library name prefix.
37895libname_spec=$lt_libname_spec
37896
37897# List of archive names. First name is the real one, the rest are links.
37898# The last name is the one that the linker finds with -lNAME
37899library_names_spec=$lt_library_names_spec
37900
37901# The coded name of the library, if different from the real name.
37902soname_spec=$lt_soname_spec
37903
cristy0c60a692010-11-04 01:09:47 +000037904# Permission mode override for installation of shared libraries.
37905install_override_mode=$lt_install_override_mode
37906
cristy73bd4a52010-10-05 11:24:23 +000037907# Command to use after installation of a shared archive.
37908postinstall_cmds=$lt_postinstall_cmds
37909
37910# Command to use after uninstallation of a shared archive.
37911postuninstall_cmds=$lt_postuninstall_cmds
37912
37913# Commands used to finish a libtool library installation in a directory.
37914finish_cmds=$lt_finish_cmds
37915
37916# As "finish_cmds", except a single script fragment to be evaled but
37917# not shown.
37918finish_eval=$lt_finish_eval
37919
37920# Whether we should hardcode library paths into libraries.
37921hardcode_into_libs=$hardcode_into_libs
37922
37923# Compile-time system search path for libraries.
37924sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37925
37926# Run-time system search path for libraries.
37927sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37928
37929# Whether dlopen is supported.
37930dlopen_support=$enable_dlopen
37931
37932# Whether dlopen of programs is supported.
37933dlopen_self=$enable_dlopen_self
37934
37935# Whether dlopen of statically linked programs is supported.
37936dlopen_self_static=$enable_dlopen_self_static
37937
37938# Commands to strip libraries.
37939old_striplib=$lt_old_striplib
37940striplib=$lt_striplib
37941
37942
37943# The linker used to build libraries.
37944LD=$lt_LD
37945
cristy0c60a692010-11-04 01:09:47 +000037946# How to create reloadable object files.
37947reload_flag=$lt_reload_flag
37948reload_cmds=$lt_reload_cmds
37949
cristy73bd4a52010-10-05 11:24:23 +000037950# Commands used to build an old-style archive.
37951old_archive_cmds=$lt_old_archive_cmds
37952
37953# A language specific compiler.
37954CC=$lt_compiler
37955
37956# Is the compiler the GNU compiler?
37957with_gcc=$GCC
37958
37959# Compiler flag to turn off builtin functions.
37960no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37961
cristy73bd4a52010-10-05 11:24:23 +000037962# Additional compiler flags for building library objects.
37963pic_flag=$lt_lt_prog_compiler_pic
37964
cristyda16f162011-02-19 23:52:17 +000037965# How to pass a linker flag through the compiler.
37966wl=$lt_lt_prog_compiler_wl
37967
cristy73bd4a52010-10-05 11:24:23 +000037968# Compiler flag to prevent dynamic linking.
37969link_static_flag=$lt_lt_prog_compiler_static
37970
37971# Does compiler simultaneously support -c and -o options?
37972compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37973
37974# Whether or not to add -lc for building shared libraries.
37975build_libtool_need_lc=$archive_cmds_need_lc
37976
37977# Whether or not to disallow shared libs when runtime libs are static.
37978allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37979
37980# Compiler flag to allow reflexive dlopens.
37981export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37982
37983# Compiler flag to generate shared objects directly from archives.
37984whole_archive_flag_spec=$lt_whole_archive_flag_spec
37985
37986# Whether the compiler copes with passing no objects directly.
37987compiler_needs_object=$lt_compiler_needs_object
37988
37989# Create an old-style archive from a shared archive.
37990old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37991
37992# Create a temporary old-style archive to link instead of a shared archive.
37993old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37994
37995# Commands used to build a shared archive.
37996archive_cmds=$lt_archive_cmds
37997archive_expsym_cmds=$lt_archive_expsym_cmds
37998
37999# Commands used to build a loadable module if different from building
38000# a shared archive.
38001module_cmds=$lt_module_cmds
38002module_expsym_cmds=$lt_module_expsym_cmds
38003
38004# Whether we are building with GNU ld or not.
38005with_gnu_ld=$lt_with_gnu_ld
38006
38007# Flag that allows shared libraries with undefined symbols to be built.
38008allow_undefined_flag=$lt_allow_undefined_flag
38009
38010# Flag that enforces no undefined symbols.
38011no_undefined_flag=$lt_no_undefined_flag
38012
38013# Flag to hardcode \$libdir into a binary during linking.
38014# This must work even if \$libdir does not exist
38015hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38016
cristy73bd4a52010-10-05 11:24:23 +000038017# Whether we need a single "-rpath" flag with a separated argument.
38018hardcode_libdir_separator=$lt_hardcode_libdir_separator
38019
38020# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38021# DIR into the resulting binary.
38022hardcode_direct=$hardcode_direct
38023
38024# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38025# DIR into the resulting binary and the resulting library dependency is
38026# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38027# library is relocated.
38028hardcode_direct_absolute=$hardcode_direct_absolute
38029
38030# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38031# into the resulting binary.
38032hardcode_minus_L=$hardcode_minus_L
38033
38034# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38035# into the resulting binary.
38036hardcode_shlibpath_var=$hardcode_shlibpath_var
38037
38038# Set to "yes" if building a shared library automatically hardcodes DIR
38039# into the library and all subsequent libraries and executables linked
38040# against it.
38041hardcode_automatic=$hardcode_automatic
38042
38043# Set to yes if linker adds runtime paths of dependent libraries
38044# to runtime path list.
38045inherit_rpath=$inherit_rpath
38046
38047# Whether libtool must link a program against all its dependency libraries.
38048link_all_deplibs=$link_all_deplibs
38049
cristy73bd4a52010-10-05 11:24:23 +000038050# Set to "yes" if exported symbols are required.
38051always_export_symbols=$always_export_symbols
38052
38053# The commands to list exported symbols.
38054export_symbols_cmds=$lt_export_symbols_cmds
38055
38056# Symbols that should not be listed in the preloaded symbols.
38057exclude_expsyms=$lt_exclude_expsyms
38058
38059# Symbols that must always be exported.
38060include_expsyms=$lt_include_expsyms
38061
38062# Commands necessary for linking programs (against libraries) with templates.
38063prelink_cmds=$lt_prelink_cmds
38064
cristyda16f162011-02-19 23:52:17 +000038065# Commands necessary for finishing linking programs.
38066postlink_cmds=$lt_postlink_cmds
38067
cristy73bd4a52010-10-05 11:24:23 +000038068# Specify filename containing input files.
38069file_list_spec=$lt_file_list_spec
38070
38071# How to hardcode a shared library path into an executable.
38072hardcode_action=$hardcode_action
38073
38074# The directories searched by this compiler when creating a shared library.
38075compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38076
38077# Dependencies to place before and after the objects being linked to
38078# create a shared library.
38079predep_objects=$lt_predep_objects
38080postdep_objects=$lt_postdep_objects
38081predeps=$lt_predeps
38082postdeps=$lt_postdeps
38083
38084# The library search path used internally by the compiler when linking
38085# a shared library.
38086compiler_lib_search_path=$lt_compiler_lib_search_path
38087
38088# ### END LIBTOOL CONFIG
38089
38090_LT_EOF
38091
38092 case $host_os in
38093 aix3*)
38094 cat <<\_LT_EOF >> "$cfgfile"
38095# AIX sometimes has problems with the GCC collect2 program. For some
38096# reason, if we set the COLLECT_NAMES environment variable, the problems
38097# vanish in a puff of smoke.
38098if test "X${COLLECT_NAMES+set}" != Xset; then
38099 COLLECT_NAMES=
38100 export COLLECT_NAMES
38101fi
38102_LT_EOF
38103 ;;
38104 esac
38105
38106
38107ltmain="$ac_aux_dir/ltmain.sh"
38108
38109
38110 # We use sed instead of cat because bash on DJGPP gets confused if
38111 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38112 # text mode, it properly converts lines to CR/LF. This bash problem
38113 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038114 sed '$q' "$ltmain" >> "$cfgfile" \
38115 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038116
cristyda16f162011-02-19 23:52:17 +000038117 if test x"$xsi_shell" = xyes; then
38118 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38119func_dirname ()\
38120{\
38121\ case ${1} in\
38122\ */*) func_dirname_result="${1%/*}${2}" ;;\
38123\ * ) func_dirname_result="${3}" ;;\
38124\ esac\
38125} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38126 && mv -f "$cfgfile.tmp" "$cfgfile" \
38127 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38128test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038129
38130
cristyda16f162011-02-19 23:52:17 +000038131 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38132func_basename ()\
38133{\
38134\ func_basename_result="${1##*/}"\
38135} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38136 && mv -f "$cfgfile.tmp" "$cfgfile" \
38137 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38138test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038139
38140
cristyda16f162011-02-19 23:52:17 +000038141 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38142func_dirname_and_basename ()\
38143{\
38144\ case ${1} in\
38145\ */*) func_dirname_result="${1%/*}${2}" ;;\
38146\ * ) func_dirname_result="${3}" ;;\
38147\ esac\
38148\ func_basename_result="${1##*/}"\
38149} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38150 && mv -f "$cfgfile.tmp" "$cfgfile" \
38151 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38152test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038153
cristyda16f162011-02-19 23:52:17 +000038154
38155 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38156func_stripname ()\
38157{\
38158\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38159\ # positional parameters, so assign one to ordinary parameter first.\
38160\ func_stripname_result=${3}\
38161\ func_stripname_result=${func_stripname_result#"${1}"}\
38162\ func_stripname_result=${func_stripname_result%"${2}"}\
38163} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38164 && mv -f "$cfgfile.tmp" "$cfgfile" \
38165 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38166test 0 -eq $? || _lt_function_replace_fail=:
38167
38168
38169 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38170func_split_long_opt ()\
38171{\
38172\ func_split_long_opt_name=${1%%=*}\
38173\ func_split_long_opt_arg=${1#*=}\
38174} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38175 && mv -f "$cfgfile.tmp" "$cfgfile" \
38176 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38177test 0 -eq $? || _lt_function_replace_fail=:
38178
38179
38180 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38181func_split_short_opt ()\
38182{\
38183\ func_split_short_opt_arg=${1#??}\
38184\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38185} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38186 && mv -f "$cfgfile.tmp" "$cfgfile" \
38187 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38188test 0 -eq $? || _lt_function_replace_fail=:
38189
38190
38191 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38192func_lo2o ()\
38193{\
38194\ case ${1} in\
38195\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38196\ *) func_lo2o_result=${1} ;;\
38197\ esac\
38198} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38199 && mv -f "$cfgfile.tmp" "$cfgfile" \
38200 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38201test 0 -eq $? || _lt_function_replace_fail=:
38202
38203
38204 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38205func_xform ()\
38206{\
38207 func_xform_result=${1%.*}.lo\
38208} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38209 && mv -f "$cfgfile.tmp" "$cfgfile" \
38210 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38211test 0 -eq $? || _lt_function_replace_fail=:
38212
38213
38214 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38215func_arith ()\
38216{\
38217 func_arith_result=$(( $* ))\
38218} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38219 && mv -f "$cfgfile.tmp" "$cfgfile" \
38220 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38221test 0 -eq $? || _lt_function_replace_fail=:
38222
38223
38224 sed -e '/^func_len ()$/,/^} # func_len /c\
38225func_len ()\
38226{\
38227 func_len_result=${#1}\
38228} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38229 && mv -f "$cfgfile.tmp" "$cfgfile" \
38230 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38231test 0 -eq $? || _lt_function_replace_fail=:
38232
38233fi
38234
38235if test x"$lt_shell_append" = xyes; then
38236 sed -e '/^func_append ()$/,/^} # func_append /c\
38237func_append ()\
38238{\
38239 eval "${1}+=\\${2}"\
38240} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38241 && mv -f "$cfgfile.tmp" "$cfgfile" \
38242 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38243test 0 -eq $? || _lt_function_replace_fail=:
38244
38245
38246 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38247func_append_quoted ()\
38248{\
38249\ func_quote_for_eval "${2}"\
38250\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38251} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38252 && mv -f "$cfgfile.tmp" "$cfgfile" \
38253 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38254test 0 -eq $? || _lt_function_replace_fail=:
38255
38256
38257 # Save a `func_append' function call where possible by direct use of '+='
38258 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38259 && mv -f "$cfgfile.tmp" "$cfgfile" \
38260 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38261 test 0 -eq $? || _lt_function_replace_fail=:
38262else
38263 # Save a `func_append' function call even when '+=' is not available
38264 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38265 && mv -f "$cfgfile.tmp" "$cfgfile" \
38266 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38267 test 0 -eq $? || _lt_function_replace_fail=:
38268fi
38269
38270if test x"$_lt_function_replace_fail" = x":"; then
38271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38272$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38273fi
38274
38275
38276 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038277 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38278 chmod +x "$ofile"
38279
38280
38281 cat <<_LT_EOF >> "$ofile"
38282
38283# ### BEGIN LIBTOOL TAG CONFIG: CXX
38284
38285# The linker used to build libraries.
38286LD=$lt_LD_CXX
38287
cristy0c60a692010-11-04 01:09:47 +000038288# How to create reloadable object files.
38289reload_flag=$lt_reload_flag_CXX
38290reload_cmds=$lt_reload_cmds_CXX
38291
cristy73bd4a52010-10-05 11:24:23 +000038292# Commands used to build an old-style archive.
38293old_archive_cmds=$lt_old_archive_cmds_CXX
38294
38295# A language specific compiler.
38296CC=$lt_compiler_CXX
38297
38298# Is the compiler the GNU compiler?
38299with_gcc=$GCC_CXX
38300
38301# Compiler flag to turn off builtin functions.
38302no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38303
cristy73bd4a52010-10-05 11:24:23 +000038304# Additional compiler flags for building library objects.
38305pic_flag=$lt_lt_prog_compiler_pic_CXX
38306
cristyda16f162011-02-19 23:52:17 +000038307# How to pass a linker flag through the compiler.
38308wl=$lt_lt_prog_compiler_wl_CXX
38309
cristy73bd4a52010-10-05 11:24:23 +000038310# Compiler flag to prevent dynamic linking.
38311link_static_flag=$lt_lt_prog_compiler_static_CXX
38312
38313# Does compiler simultaneously support -c and -o options?
38314compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38315
38316# Whether or not to add -lc for building shared libraries.
38317build_libtool_need_lc=$archive_cmds_need_lc_CXX
38318
38319# Whether or not to disallow shared libs when runtime libs are static.
38320allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38321
38322# Compiler flag to allow reflexive dlopens.
38323export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38324
38325# Compiler flag to generate shared objects directly from archives.
38326whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38327
38328# Whether the compiler copes with passing no objects directly.
38329compiler_needs_object=$lt_compiler_needs_object_CXX
38330
38331# Create an old-style archive from a shared archive.
38332old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38333
38334# Create a temporary old-style archive to link instead of a shared archive.
38335old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38336
38337# Commands used to build a shared archive.
38338archive_cmds=$lt_archive_cmds_CXX
38339archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38340
38341# Commands used to build a loadable module if different from building
38342# a shared archive.
38343module_cmds=$lt_module_cmds_CXX
38344module_expsym_cmds=$lt_module_expsym_cmds_CXX
38345
38346# Whether we are building with GNU ld or not.
38347with_gnu_ld=$lt_with_gnu_ld_CXX
38348
38349# Flag that allows shared libraries with undefined symbols to be built.
38350allow_undefined_flag=$lt_allow_undefined_flag_CXX
38351
38352# Flag that enforces no undefined symbols.
38353no_undefined_flag=$lt_no_undefined_flag_CXX
38354
38355# Flag to hardcode \$libdir into a binary during linking.
38356# This must work even if \$libdir does not exist
38357hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38358
cristy73bd4a52010-10-05 11:24:23 +000038359# Whether we need a single "-rpath" flag with a separated argument.
38360hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38361
38362# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38363# DIR into the resulting binary.
38364hardcode_direct=$hardcode_direct_CXX
38365
38366# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38367# DIR into the resulting binary and the resulting library dependency is
38368# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38369# library is relocated.
38370hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38371
38372# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38373# into the resulting binary.
38374hardcode_minus_L=$hardcode_minus_L_CXX
38375
38376# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38377# into the resulting binary.
38378hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38379
38380# Set to "yes" if building a shared library automatically hardcodes DIR
38381# into the library and all subsequent libraries and executables linked
38382# against it.
38383hardcode_automatic=$hardcode_automatic_CXX
38384
38385# Set to yes if linker adds runtime paths of dependent libraries
38386# to runtime path list.
38387inherit_rpath=$inherit_rpath_CXX
38388
38389# Whether libtool must link a program against all its dependency libraries.
38390link_all_deplibs=$link_all_deplibs_CXX
38391
cristy73bd4a52010-10-05 11:24:23 +000038392# Set to "yes" if exported symbols are required.
38393always_export_symbols=$always_export_symbols_CXX
38394
38395# The commands to list exported symbols.
38396export_symbols_cmds=$lt_export_symbols_cmds_CXX
38397
38398# Symbols that should not be listed in the preloaded symbols.
38399exclude_expsyms=$lt_exclude_expsyms_CXX
38400
38401# Symbols that must always be exported.
38402include_expsyms=$lt_include_expsyms_CXX
38403
38404# Commands necessary for linking programs (against libraries) with templates.
38405prelink_cmds=$lt_prelink_cmds_CXX
38406
cristyda16f162011-02-19 23:52:17 +000038407# Commands necessary for finishing linking programs.
38408postlink_cmds=$lt_postlink_cmds_CXX
38409
cristy73bd4a52010-10-05 11:24:23 +000038410# Specify filename containing input files.
38411file_list_spec=$lt_file_list_spec_CXX
38412
38413# How to hardcode a shared library path into an executable.
38414hardcode_action=$hardcode_action_CXX
38415
38416# The directories searched by this compiler when creating a shared library.
38417compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38418
38419# Dependencies to place before and after the objects being linked to
38420# create a shared library.
38421predep_objects=$lt_predep_objects_CXX
38422postdep_objects=$lt_postdep_objects_CXX
38423predeps=$lt_predeps_CXX
38424postdeps=$lt_postdeps_CXX
38425
38426# The library search path used internally by the compiler when linking
38427# a shared library.
38428compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38429
38430# ### END LIBTOOL TAG CONFIG: CXX
38431_LT_EOF
38432
38433 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038434 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038435 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038436 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038437 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38438 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38439
38440 esac
38441done # for ac_tag
38442
38443
cristy8b350f62009-11-15 23:12:43 +000038444as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038445_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038446ac_clean_files=$ac_clean_files_save
38447
38448test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038449 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038450
38451
38452# configure is writing to config.log, and then calls config.status.
38453# config.status does its own redirection, appending to config.log.
38454# Unfortunately, on DOS this fails, as config.log is still kept open
38455# by configure, so config.status won't be able to write to it; its
38456# output is simply discarded. So we exec the FD to /dev/null,
38457# effectively closing config.log, so it can be properly (re)opened and
38458# appended to by config.status. When coming back to configure, we
38459# need to make the FD available again.
38460if test "$no_create" != yes; then
38461 ac_cs_success=:
38462 ac_config_status_args=
38463 test "$silent" = yes &&
38464 ac_config_status_args="$ac_config_status_args --quiet"
38465 exec 5>/dev/null
38466 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38467 exec 5>>config.log
38468 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38469 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038470 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038471fi
38472if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038474$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38475fi
38476
38477
38478rm -f magick-version
38479
cristy430a7312010-01-21 20:44:04 +000038480result_dejavu_font_dir='none'
38481if test "${dejavu_font_dir}x" != 'x'; then
38482 result_dejavu_font_dir=$dejavu_font_dir
38483fi
38484
cristy3ed852e2009-09-05 21:47:34 +000038485result_ghostscript_font_dir='none'
38486if test "${ghostscript_font_dir}x" != 'x'; then
38487 result_ghostscript_font_dir=$ghostscript_font_dir
38488fi
38489
38490result_windows_font_dir='none'
38491if test "${windows_font_dir}x" != 'x'; then
38492 result_windows_font_dir=${windows_font_dir}
38493fi
38494
cristyad38abe2012-12-23 23:03:21 +000038495{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038496ImageMagick is configured as follows. Please verify that this configuration
38497matches your expectations.
38498
38499Host system type: $host
38500Build system type: $build
38501
38502 Option Value
38503-------------------------------------------------------------------------------
38504Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38505Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038506Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038507GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38508Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38509High Dynamic Range Imagery
38510 --enable-hdri=$enable_hdri $enable_hdri
38511
38512Delegate Configuration:
38513BZLIB --with-bzlib=$with_bzlib $have_bzlib
38514Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038515Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038516DJVU --with-djvu=$with_djvu $have_djvu
38517DPS --with-dps=$with_dps $have_dps
38518FFTW --with-fftw=$with_fftw $have_fftw
38519FlashPIX --with-fpx=$with_fpx $have_fpx
38520FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38521FreeType --with-freetype=$with_freetype $have_freetype
38522GhostPCL None $PCLDelegate ($PCLVersion)
38523GhostXPS None $XPSDelegate ($XPSVersion)
38524Ghostscript None $PSDelegate ($GSVersion)
38525Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38526Ghostscript lib --with-gslib=$with_gslib $have_gslib
38527Graphviz --with-gvc=$with_gvc $have_gvc
38528JBIG --with-jbig=$with_jbig $have_jbig
38529JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38530JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038531LCMS v1 --with-lcms=$with_lcms $have_lcms
38532LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038533LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038534LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038535LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038536Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000038537MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000038538OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038539PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038540PERL --with-perl=$with_perl $have_perl
38541PNG --with-png=$with_png $have_png
38542RSVG --with-rsvg=$with_rsvg $have_rsvg
38543TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038544WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038545Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038546WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038547X11 --with-x=$with_x $have_x
38548XML --with-xml=$with_xml $have_xml
38549ZLIB --with-zlib=$with_zlib $have_zlib
38550
38551X11 Configuration:
38552 X_CFLAGS = $X_CFLAGS
38553 X_PRE_LIBS = $X_PRE_LIBS
38554 X_LIBS = $X_LIBS
38555 X_EXTRA_LIBS = $X_EXTRA_LIBS
38556
38557Options used to compile and link:
38558 PREFIX = $PREFIX_DIR
38559 EXEC-PREFIX = $EXEC_PREFIX_DIR
38560 VERSION = $PACKAGE_VERSION
38561 CC = $CC
38562 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038563 CPPFLAGS = $MAGICK_CPPFLAGS
38564 PCFLAGS = $MAGICK_PCFLAGS
38565 DEFS = $DEFS
38566 LDFLAGS = $LDFLAGS
38567 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38568 LIBS = $MAGICK_LIBS
38569 CXX = $CXX
38570 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038571 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038572 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038573" >&5
cristyad38abe2012-12-23 23:03:21 +000038574$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038575ImageMagick is configured as follows. Please verify that this configuration
38576matches your expectations.
38577
38578Host system type: $host
38579Build system type: $build
38580
38581 Option Value
38582-------------------------------------------------------------------------------
38583Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38584Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038585Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038586GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38587Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38588High Dynamic Range Imagery
38589 --enable-hdri=$enable_hdri $enable_hdri
38590
38591Delegate Configuration:
38592BZLIB --with-bzlib=$with_bzlib $have_bzlib
38593Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038594Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038595DJVU --with-djvu=$with_djvu $have_djvu
38596DPS --with-dps=$with_dps $have_dps
38597FFTW --with-fftw=$with_fftw $have_fftw
38598FlashPIX --with-fpx=$with_fpx $have_fpx
38599FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38600FreeType --with-freetype=$with_freetype $have_freetype
38601GhostPCL None $PCLDelegate ($PCLVersion)
38602GhostXPS None $XPSDelegate ($XPSVersion)
38603Ghostscript None $PSDelegate ($GSVersion)
38604Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38605Ghostscript lib --with-gslib=$with_gslib $have_gslib
38606Graphviz --with-gvc=$with_gvc $have_gvc
38607JBIG --with-jbig=$with_jbig $have_jbig
38608JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38609JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038610LCMS v1 --with-lcms=$with_lcms $have_lcms
38611LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038612LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038613LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038614LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038615Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000038616MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000038617OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038618PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038619PERL --with-perl=$with_perl $have_perl
38620PNG --with-png=$with_png $have_png
38621RSVG --with-rsvg=$with_rsvg $have_rsvg
38622TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038623WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038624Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038625WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038626X11 --with-x=$with_x $have_x
38627XML --with-xml=$with_xml $have_xml
38628ZLIB --with-zlib=$with_zlib $have_zlib
38629
38630X11 Configuration:
38631 X_CFLAGS = $X_CFLAGS
38632 X_PRE_LIBS = $X_PRE_LIBS
38633 X_LIBS = $X_LIBS
38634 X_EXTRA_LIBS = $X_EXTRA_LIBS
38635
38636Options used to compile and link:
38637 PREFIX = $PREFIX_DIR
38638 EXEC-PREFIX = $EXEC_PREFIX_DIR
38639 VERSION = $PACKAGE_VERSION
38640 CC = $CC
38641 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038642 CPPFLAGS = $MAGICK_CPPFLAGS
38643 PCFLAGS = $MAGICK_PCFLAGS
38644 DEFS = $DEFS
38645 LDFLAGS = $LDFLAGS
38646 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38647 LIBS = $MAGICK_LIBS
38648 CXX = $CXX
38649 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038650 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038651 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038652" >&6; }