blob: e4987885ebb863e18ca299b9ec6c3408c5501098 [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
cristya0459972013-11-03 18:09:35 +0000954PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000955LN_S
cristy3ed852e2009-09-05 21:47:34 +0000956LD
cristy73bd4a52010-10-05 11:24:23 +0000957FGREP
958SED
959am__fastdepCXX_FALSE
960am__fastdepCXX_TRUE
961CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000962ac_ct_CXX
963CXXFLAGS
964CXX
cristya0b81c32010-01-22 02:54:33 +0000965EGREP
966GREP
967CPP
cristy73bd4a52010-10-05 11:24:23 +0000968am__fastdepCC_FALSE
969am__fastdepCC_TRUE
970CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000971am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000972AMDEPBACKSLASH
973AMDEP_FALSE
974AMDEP_TRUE
975am__quote
976am__include
977DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000978OBJEXT
979EXEEXT
980ac_ct_CC
981CPPFLAGS
982LDFLAGS
983CFLAGS
984CC
985DIRSEP
986MAGICK_FILTER_MODULE_PATH
987MAGICK_CONFIGURE_BUILD_PATH
988MAGICK_CONFIGURE_SRC_PATH
989MAGICK_CODER_MODULE_PATH
990MAN_DIR
991INFO_DIR
992PERSISTINCLUDE_DIR
993INCLUDE_DIR
994LIB_DIR
995LOCALSTATE_DIR
996SHAREDSTATE_DIR
997SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000998DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000999DATA_DIR
1000LIBEXEC_DIR
1001SBIN_DIR
1002BIN_DIR
1003EXEC_PREFIX_DIR
1004PREFIX_DIR
1005CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001006MAGICKPP_LIB_VERSION_TEXT
1007MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001008MAGICK_LIB_VERSION_NUMBER
1009MAGICK_LIB_VERSION_TEXT
1010MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001011AM_BACKSLASH
1012AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001013AM_DEFAULT_V
1014AM_V
cristy73bd4a52010-10-05 11:24:23 +00001015am__untar
1016am__tar
1017AMTAR
1018am__leading_dot
1019SET_MAKE
1020AWK
1021mkdir_p
1022MKDIR_P
1023INSTALL_STRIP_PROGRAM
1024STRIP
1025install_sh
1026MAKEINFO
1027AUTOHEADER
1028AUTOMAKE
1029AUTOCONF
1030ACLOCAL
1031VERSION
1032PACKAGE
1033CYGPATH_W
1034am__isrc
1035INSTALL_DATA
1036INSTALL_SCRIPT
1037INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001038PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001039PACKAGE_RELEASE_DATE
1040PACKAGE_LIB_VERSION_NUMBER
1041PACKAGE_LIB_VERSION
1042PACKAGE_CHANGE_DATE
1043PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001044PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001045MAGICKPP_LIBRARY_VERSION_INFO
1046MAGICKPP_LIBRARY_CURRENT_MIN
1047MAGICKPP_LIBRARY_AGE
1048MAGICKPP_LIBRARY_REVISION
1049MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001050MAGICK_LIBRARY_VERSION_INFO
1051MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001052MAGICK_LIBRARY_AGE
1053MAGICK_LIBRARY_REVISION
1054MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001055MAGICK_SVN_REVISION
1056MAGICK_VERSION
1057MAGICK_PATCHLEVEL_VERSION
1058MAGICK_MICRO_VERSION
1059MAGICK_MINOR_VERSION
1060MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001061MAGICK_TARGET_OS
1062MAGICK_TARGET_VENDOR
1063MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001064target_os
1065target_vendor
1066target_cpu
1067target
1068host_os
1069host_vendor
1070host_cpu
1071host
1072build_os
1073build_vendor
1074build_cpu
1075build
1076CONFIGURE_ARGS
1077DISTCHECK_CONFIG_FLAGS
1078target_alias
1079host_alias
1080build_alias
1081LIBS
1082ECHO_T
1083ECHO_N
1084ECHO_C
1085DEFS
1086mandir
1087localedir
1088libdir
1089psdir
1090pdfdir
1091dvidir
1092htmldir
1093infodir
1094docdir
1095oldincludedir
1096includedir
1097localstatedir
1098sharedstatedir
1099sysconfdir
1100datadir
1101datarootdir
1102libexecdir
1103sbindir
1104bindir
1105program_transform_name
1106prefix
1107exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001108PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001109PACKAGE_BUGREPORT
1110PACKAGE_STRING
1111PACKAGE_VERSION
1112PACKAGE_TARNAME
1113PACKAGE_NAME
1114PATH_SEPARATOR
1115SHELL'
1116ac_subst_files=''
1117ac_user_opts='
1118enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001119enable_silent_rules
1120enable_dependency_tracking
1121with_gnu_ld
1122with_dmalloc
cristya0459972013-11-03 18:09:35 +00001123with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001124enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001125enable_bounds_checking
1126enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001127with_includearch_dir
1128with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001129with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001130with_threads
1131enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001132enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001133enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001134enable_shared
1135enable_static
1136with_pic
1137enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001138with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001139enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001140with_modules
1141enable_delegate_build
1142enable_deprecated
1143enable_installed
1144enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001145enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001146enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001147enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001148enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001149enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001150enable_ccmalloc
1151enable_efence
1152enable_prof
1153enable_gprof
1154enable_gcov
1155with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001156enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001157with_quantum_depth
1158with_cache
1159with_frozenpaths
1160with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001161with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001162with_perl
1163with_perl_options
1164with_umem
1165with_libstdc
1166with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001167with_x
cristy3ed852e2009-09-05 21:47:34 +00001168with_zlib
1169with_autotrace
1170with_dps
1171with_djvu
cristy430a7312010-01-21 20:44:04 +00001172with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001173with_fftw
1174with_fpx
1175with_fontconfig
1176with_freetype
1177with_gslib
1178with_fontpath
1179with_gs_font_dir
1180with_gvc
1181with_jbig
1182with_jpeg
1183with_jp2
1184with_lcms
cristy71203402010-06-18 13:12:03 +00001185with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001186with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001187with_lzma
cristy854c9cf2013-08-10 21:03:06 +00001188with_mupdf
cristy3ed852e2009-09-05 21:47:34 +00001189with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001190with_pango
cristy3ed852e2009-09-05 21:47:34 +00001191with_png
1192with_rsvg
1193with_tiff
cristyb1860752011-03-14 00:27:46 +00001194with_webp
cristy3ed852e2009-09-05 21:47:34 +00001195with_windows_font_dir
1196with_wmf
1197with_xml
1198'
1199 ac_precious_vars='build_alias
1200host_alias
1201target_alias
1202CC
1203CFLAGS
1204LDFLAGS
1205LIBS
1206CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001207CPP
cristy3ed852e2009-09-05 21:47:34 +00001208CXX
1209CXXFLAGS
1210CCC
cristy73bd4a52010-10-05 11:24:23 +00001211PKG_CONFIG
1212CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001213XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001214AUTOTRACE_CFLAGS
1215AUTOTRACE_LIBS
1216FONTCONFIG_CFLAGS
1217FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001218FREETYPE_CFLAGS
1219FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001220GVC_CFLAGS
1221GVC_LIBS
1222LQR_CFLAGS
1223LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001224LZMA_CFLAGS
1225LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001226OPENEXR_CFLAGS
1227OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001228PANGO_CFLAGS
1229PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001230RSVG_CFLAGS
1231RSVG_LIBS
1232CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001233CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001234
1235
1236# Initialize some variables set by options.
1237ac_init_help=
1238ac_init_version=false
1239ac_unrecognized_opts=
1240ac_unrecognized_sep=
1241# The variables have the same names as the options, with
1242# dashes changed to underlines.
1243cache_file=/dev/null
1244exec_prefix=NONE
1245no_create=
1246no_recursion=
1247prefix=NONE
1248program_prefix=NONE
1249program_suffix=NONE
1250program_transform_name=s,x,x,
1251silent=
1252site=
1253srcdir=
1254verbose=
1255x_includes=NONE
1256x_libraries=NONE
1257
1258# Installation directory options.
1259# These are left unexpanded so users can "make install exec_prefix=/foo"
1260# and all the variables that are supposed to be based on exec_prefix
1261# by default will actually change.
1262# Use braces instead of parens because sh, perl, etc. also accept them.
1263# (The list follows the same order as the GNU Coding Standards.)
1264bindir='${exec_prefix}/bin'
1265sbindir='${exec_prefix}/sbin'
1266libexecdir='${exec_prefix}/libexec'
1267datarootdir='${prefix}/share'
1268datadir='${datarootdir}'
1269sysconfdir='${prefix}/etc'
1270sharedstatedir='${prefix}/com'
1271localstatedir='${prefix}/var'
1272includedir='${prefix}/include'
1273oldincludedir='/usr/include'
1274docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1275infodir='${datarootdir}/info'
1276htmldir='${docdir}'
1277dvidir='${docdir}'
1278pdfdir='${docdir}'
1279psdir='${docdir}'
1280libdir='${exec_prefix}/lib'
1281localedir='${datarootdir}/locale'
1282mandir='${datarootdir}/man'
1283
1284ac_prev=
1285ac_dashdash=
1286for ac_option
1287do
1288 # If the previous option needs an argument, assign it.
1289 if test -n "$ac_prev"; then
1290 eval $ac_prev=\$ac_option
1291 ac_prev=
1292 continue
1293 fi
1294
1295 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001296 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1297 *=) ac_optarg= ;;
1298 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001299 esac
1300
1301 # Accept the important Cygnus configure options, so we can diagnose typos.
1302
1303 case $ac_dashdash$ac_option in
1304 --)
1305 ac_dashdash=yes ;;
1306
1307 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1308 ac_prev=bindir ;;
1309 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1310 bindir=$ac_optarg ;;
1311
1312 -build | --build | --buil | --bui | --bu)
1313 ac_prev=build_alias ;;
1314 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1315 build_alias=$ac_optarg ;;
1316
1317 -cache-file | --cache-file | --cache-fil | --cache-fi \
1318 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1319 ac_prev=cache_file ;;
1320 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1321 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1322 cache_file=$ac_optarg ;;
1323
1324 --config-cache | -C)
1325 cache_file=config.cache ;;
1326
1327 -datadir | --datadir | --datadi | --datad)
1328 ac_prev=datadir ;;
1329 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1330 datadir=$ac_optarg ;;
1331
1332 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1333 | --dataroo | --dataro | --datar)
1334 ac_prev=datarootdir ;;
1335 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1336 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1337 datarootdir=$ac_optarg ;;
1338
1339 -disable-* | --disable-*)
1340 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001343 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001344 ac_useropt_orig=$ac_useropt
1345 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1346 case $ac_user_opts in
1347 *"
1348"enable_$ac_useropt"
1349"*) ;;
1350 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1351 ac_unrecognized_sep=', ';;
1352 esac
1353 eval enable_$ac_useropt=no ;;
1354
1355 -docdir | --docdir | --docdi | --doc | --do)
1356 ac_prev=docdir ;;
1357 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1358 docdir=$ac_optarg ;;
1359
1360 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1361 ac_prev=dvidir ;;
1362 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1363 dvidir=$ac_optarg ;;
1364
1365 -enable-* | --enable-*)
1366 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1367 # Reject names that are not valid shell variable names.
1368 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001369 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001370 ac_useropt_orig=$ac_useropt
1371 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1372 case $ac_user_opts in
1373 *"
1374"enable_$ac_useropt"
1375"*) ;;
1376 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1377 ac_unrecognized_sep=', ';;
1378 esac
1379 eval enable_$ac_useropt=\$ac_optarg ;;
1380
1381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1383 | --exec | --exe | --ex)
1384 ac_prev=exec_prefix ;;
1385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1387 | --exec=* | --exe=* | --ex=*)
1388 exec_prefix=$ac_optarg ;;
1389
1390 -gas | --gas | --ga | --g)
1391 # Obsolete; use --with-gas.
1392 with_gas=yes ;;
1393
1394 -help | --help | --hel | --he | -h)
1395 ac_init_help=long ;;
1396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1397 ac_init_help=recursive ;;
1398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1399 ac_init_help=short ;;
1400
1401 -host | --host | --hos | --ho)
1402 ac_prev=host_alias ;;
1403 -host=* | --host=* | --hos=* | --ho=*)
1404 host_alias=$ac_optarg ;;
1405
1406 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1407 ac_prev=htmldir ;;
1408 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1409 | --ht=*)
1410 htmldir=$ac_optarg ;;
1411
1412 -includedir | --includedir | --includedi | --included | --include \
1413 | --includ | --inclu | --incl | --inc)
1414 ac_prev=includedir ;;
1415 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1416 | --includ=* | --inclu=* | --incl=* | --inc=*)
1417 includedir=$ac_optarg ;;
1418
1419 -infodir | --infodir | --infodi | --infod | --info | --inf)
1420 ac_prev=infodir ;;
1421 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1422 infodir=$ac_optarg ;;
1423
1424 -libdir | --libdir | --libdi | --libd)
1425 ac_prev=libdir ;;
1426 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1427 libdir=$ac_optarg ;;
1428
1429 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1430 | --libexe | --libex | --libe)
1431 ac_prev=libexecdir ;;
1432 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1433 | --libexe=* | --libex=* | --libe=*)
1434 libexecdir=$ac_optarg ;;
1435
1436 -localedir | --localedir | --localedi | --localed | --locale)
1437 ac_prev=localedir ;;
1438 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1439 localedir=$ac_optarg ;;
1440
1441 -localstatedir | --localstatedir | --localstatedi | --localstated \
1442 | --localstate | --localstat | --localsta | --localst | --locals)
1443 ac_prev=localstatedir ;;
1444 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1445 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1446 localstatedir=$ac_optarg ;;
1447
1448 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1449 ac_prev=mandir ;;
1450 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1451 mandir=$ac_optarg ;;
1452
1453 -nfp | --nfp | --nf)
1454 # Obsolete; use --without-fp.
1455 with_fp=no ;;
1456
1457 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1458 | --no-cr | --no-c | -n)
1459 no_create=yes ;;
1460
1461 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1462 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1463 no_recursion=yes ;;
1464
1465 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1466 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1467 | --oldin | --oldi | --old | --ol | --o)
1468 ac_prev=oldincludedir ;;
1469 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1470 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1471 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1472 oldincludedir=$ac_optarg ;;
1473
1474 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1475 ac_prev=prefix ;;
1476 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1477 prefix=$ac_optarg ;;
1478
1479 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1480 | --program-pre | --program-pr | --program-p)
1481 ac_prev=program_prefix ;;
1482 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1483 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1484 program_prefix=$ac_optarg ;;
1485
1486 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1487 | --program-suf | --program-su | --program-s)
1488 ac_prev=program_suffix ;;
1489 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1490 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1491 program_suffix=$ac_optarg ;;
1492
1493 -program-transform-name | --program-transform-name \
1494 | --program-transform-nam | --program-transform-na \
1495 | --program-transform-n | --program-transform- \
1496 | --program-transform | --program-transfor \
1497 | --program-transfo | --program-transf \
1498 | --program-trans | --program-tran \
1499 | --progr-tra | --program-tr | --program-t)
1500 ac_prev=program_transform_name ;;
1501 -program-transform-name=* | --program-transform-name=* \
1502 | --program-transform-nam=* | --program-transform-na=* \
1503 | --program-transform-n=* | --program-transform-=* \
1504 | --program-transform=* | --program-transfor=* \
1505 | --program-transfo=* | --program-transf=* \
1506 | --program-trans=* | --program-tran=* \
1507 | --progr-tra=* | --program-tr=* | --program-t=*)
1508 program_transform_name=$ac_optarg ;;
1509
1510 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1511 ac_prev=pdfdir ;;
1512 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1513 pdfdir=$ac_optarg ;;
1514
1515 -psdir | --psdir | --psdi | --psd | --ps)
1516 ac_prev=psdir ;;
1517 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1518 psdir=$ac_optarg ;;
1519
1520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1521 | -silent | --silent | --silen | --sile | --sil)
1522 silent=yes ;;
1523
1524 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1525 ac_prev=sbindir ;;
1526 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1527 | --sbi=* | --sb=*)
1528 sbindir=$ac_optarg ;;
1529
1530 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1531 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1532 | --sharedst | --shareds | --shared | --share | --shar \
1533 | --sha | --sh)
1534 ac_prev=sharedstatedir ;;
1535 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1536 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1537 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1538 | --sha=* | --sh=*)
1539 sharedstatedir=$ac_optarg ;;
1540
1541 -site | --site | --sit)
1542 ac_prev=site ;;
1543 -site=* | --site=* | --sit=*)
1544 site=$ac_optarg ;;
1545
1546 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1547 ac_prev=srcdir ;;
1548 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1549 srcdir=$ac_optarg ;;
1550
1551 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1552 | --syscon | --sysco | --sysc | --sys | --sy)
1553 ac_prev=sysconfdir ;;
1554 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1555 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1556 sysconfdir=$ac_optarg ;;
1557
1558 -target | --target | --targe | --targ | --tar | --ta | --t)
1559 ac_prev=target_alias ;;
1560 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1561 target_alias=$ac_optarg ;;
1562
1563 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1564 verbose=yes ;;
1565
1566 -version | --version | --versio | --versi | --vers | -V)
1567 ac_init_version=: ;;
1568
1569 -with-* | --with-*)
1570 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1571 # Reject names that are not valid shell variable names.
1572 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001573 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001574 ac_useropt_orig=$ac_useropt
1575 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1576 case $ac_user_opts in
1577 *"
1578"with_$ac_useropt"
1579"*) ;;
1580 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1581 ac_unrecognized_sep=', ';;
1582 esac
1583 eval with_$ac_useropt=\$ac_optarg ;;
1584
1585 -without-* | --without-*)
1586 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1587 # Reject names that are not valid shell variable names.
1588 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001589 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001590 ac_useropt_orig=$ac_useropt
1591 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1592 case $ac_user_opts in
1593 *"
1594"with_$ac_useropt"
1595"*) ;;
1596 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1597 ac_unrecognized_sep=', ';;
1598 esac
1599 eval with_$ac_useropt=no ;;
1600
1601 --x)
1602 # Obsolete; use --with-x.
1603 with_x=yes ;;
1604
1605 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1606 | --x-incl | --x-inc | --x-in | --x-i)
1607 ac_prev=x_includes ;;
1608 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1609 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1610 x_includes=$ac_optarg ;;
1611
1612 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1613 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1614 ac_prev=x_libraries ;;
1615 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1616 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1617 x_libraries=$ac_optarg ;;
1618
cristy98dddb52010-11-04 00:30:15 +00001619 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1620Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001621 ;;
1622
1623 *=*)
1624 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1625 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001626 case $ac_envvar in #(
1627 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001628 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001629 esac
cristy3ed852e2009-09-05 21:47:34 +00001630 eval $ac_envvar=\$ac_optarg
1631 export $ac_envvar ;;
1632
1633 *)
1634 # FIXME: should be removed in autoconf 3.0.
1635 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1636 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1637 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001638 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001639 ;;
1640
1641 esac
1642done
1643
1644if test -n "$ac_prev"; then
1645 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001646 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001647fi
1648
1649if test -n "$ac_unrecognized_opts"; then
1650 case $enable_option_checking in
1651 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001652 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001653 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1654 esac
1655fi
1656
1657# Check all directory arguments for consistency.
1658for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1659 datadir sysconfdir sharedstatedir localstatedir includedir \
1660 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1661 libdir localedir mandir
1662do
1663 eval ac_val=\$$ac_var
1664 # Remove trailing slashes.
1665 case $ac_val in
1666 */ )
1667 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1668 eval $ac_var=\$ac_val;;
1669 esac
1670 # Be sure to have absolute directory names.
1671 case $ac_val in
1672 [\\/$]* | ?:[\\/]* ) continue;;
1673 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1674 esac
cristy98dddb52010-11-04 00:30:15 +00001675 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001676done
1677
1678# There might be people who depend on the old broken behavior: `$host'
1679# used to hold the argument of --host etc.
1680# FIXME: To remove some day.
1681build=$build_alias
1682host=$host_alias
1683target=$target_alias
1684
1685# FIXME: To remove some day.
1686if test "x$host_alias" != x; then
1687 if test "x$build_alias" = x; then
1688 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001689 elif test "x$build_alias" != "x$host_alias"; then
1690 cross_compiling=yes
1691 fi
1692fi
1693
1694ac_tool_prefix=
1695test -n "$host_alias" && ac_tool_prefix=$host_alias-
1696
1697test "$silent" = yes && exec 6>/dev/null
1698
1699
1700ac_pwd=`pwd` && test -n "$ac_pwd" &&
1701ac_ls_di=`ls -di .` &&
1702ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001703 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001704test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001705 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001706
1707
1708# Find the source files, if location was not specified.
1709if test -z "$srcdir"; then
1710 ac_srcdir_defaulted=yes
1711 # Try the directory containing this script, then the parent directory.
1712 ac_confdir=`$as_dirname -- "$as_myself" ||
1713$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1714 X"$as_myself" : 'X\(//\)[^/]' \| \
1715 X"$as_myself" : 'X\(//\)$' \| \
1716 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1717$as_echo X"$as_myself" |
1718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1719 s//\1/
1720 q
1721 }
1722 /^X\(\/\/\)[^/].*/{
1723 s//\1/
1724 q
1725 }
1726 /^X\(\/\/\)$/{
1727 s//\1/
1728 q
1729 }
1730 /^X\(\/\).*/{
1731 s//\1/
1732 q
1733 }
1734 s/.*/./; q'`
1735 srcdir=$ac_confdir
1736 if test ! -r "$srcdir/$ac_unique_file"; then
1737 srcdir=..
1738 fi
1739else
1740 ac_srcdir_defaulted=no
1741fi
1742if test ! -r "$srcdir/$ac_unique_file"; then
1743 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001744 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001745fi
1746ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1747ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001748 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001749 pwd)`
1750# When building in place, set srcdir=.
1751if test "$ac_abs_confdir" = "$ac_pwd"; then
1752 srcdir=.
1753fi
1754# Remove unnecessary trailing slashes from srcdir.
1755# Double slashes in file names in object file debugging info
1756# mess up M-x gdb in Emacs.
1757case $srcdir in
1758*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1759esac
1760for ac_var in $ac_precious_vars; do
1761 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1762 eval ac_env_${ac_var}_value=\$${ac_var}
1763 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1764 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1765done
1766
1767#
1768# Report the --help message.
1769#
1770if test "$ac_init_help" = "long"; then
1771 # Omit some internal or obsolete options to make the list less imposing.
1772 # This message is too long to be a string in the A/UX 3.1 sh.
1773 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001774\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001775
1776Usage: $0 [OPTION]... [VAR=VALUE]...
1777
1778To assign environment variables (e.g., CC, CFLAGS...), specify them as
1779VAR=VALUE. See below for descriptions of some of the useful variables.
1780
1781Defaults for the options are specified in brackets.
1782
1783Configuration:
1784 -h, --help display this help and exit
1785 --help=short display options specific to this package
1786 --help=recursive display the short help of all the included packages
1787 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001788 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001789 --cache-file=FILE cache test results in FILE [disabled]
1790 -C, --config-cache alias for \`--cache-file=config.cache'
1791 -n, --no-create do not create output files
1792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1793
1794Installation directories:
1795 --prefix=PREFIX install architecture-independent files in PREFIX
1796 [$ac_default_prefix]
1797 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1798 [PREFIX]
1799
1800By default, \`make install' will install all the files in
1801\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1802an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1803for instance \`--prefix=\$HOME'.
1804
1805For better control, use the options below.
1806
1807Fine tuning of the installation directories:
1808 --bindir=DIR user executables [EPREFIX/bin]
1809 --sbindir=DIR system admin executables [EPREFIX/sbin]
1810 --libexecdir=DIR program executables [EPREFIX/libexec]
1811 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1812 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1813 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1814 --libdir=DIR object code libraries [EPREFIX/lib]
1815 --includedir=DIR C header files [PREFIX/include]
1816 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1817 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1818 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1819 --infodir=DIR info documentation [DATAROOTDIR/info]
1820 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1821 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001822 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001823 --htmldir=DIR html documentation [DOCDIR]
1824 --dvidir=DIR dvi documentation [DOCDIR]
1825 --pdfdir=DIR pdf documentation [DOCDIR]
1826 --psdir=DIR ps documentation [DOCDIR]
1827_ACEOF
1828
1829 cat <<\_ACEOF
1830
cristy73bd4a52010-10-05 11:24:23 +00001831Program names:
1832 --program-prefix=PREFIX prepend PREFIX to installed program names
1833 --program-suffix=SUFFIX append SUFFIX to installed program names
1834 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1835
cristy3ed852e2009-09-05 21:47:34 +00001836X features:
1837 --x-includes=DIR X include files are in DIR
1838 --x-libraries=DIR X library files are in DIR
1839
1840System types:
1841 --build=BUILD configure for building on BUILD [guessed]
1842 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1843 --target=TARGET configure for building compilers for TARGET [HOST]
1844_ACEOF
1845fi
1846
1847if test -n "$ac_init_help"; then
1848 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001849 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001850 esac
1851 cat <<\_ACEOF
1852
1853Optional Features:
1854 --disable-option-checking ignore unrecognized --enable/--with options
1855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001857 --enable-silent-rules less verbose build output (undo: "make V=1")
1858 --disable-silent-rules verbose build output (undo: "make V=0")
1859 --enable-dependency-tracking
1860 do not reject slow dependency extractors
1861 --disable-dependency-tracking
1862 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001863 --enable-ld-version-script
1864 enable linker version script (default is enabled
1865 when possible)
cristya3824692012-03-30 17:22:07 +00001866 --enable-bounds-checking
1867 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001868 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001869 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001870 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001871 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001872 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001873 --enable-shared[=PKGS] build shared libraries [default=yes]
1874 --enable-static[=PKGS] build static libraries [default=yes]
1875 --enable-fast-install[=PKGS]
1876 optimize for fast installation [default=yes]
1877 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001878 --enable-delegate-build look for delegate libraries in build directory
1879 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001880 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001881 --disable-installed Formally install ImageMagick under PREFIX
1882 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001883 --enable-zero-configuration
1884 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001885 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001886 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001887 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001888 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001889 --enable-maintainer-mode
1890 enable make rules and dependencies not useful (and
1891 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001892 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001893 --enable-ccmalloc enable 'ccmalloc' memory debug support
1894 --enable-efence enable 'efence' memory debug support
1895 --enable-prof enable 'prof' profiling support
1896 --enable-gprof enable 'gprof' profiling support
1897 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001898 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001899 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001900
1901Optional Packages:
1902 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1903 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001904 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001905 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001906 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1907 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001908 --includearch-dir=DIR ARCH specific include directory
1909 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001910 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001911 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001912 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001913 both]
cristyda16f162011-02-19 23:52:17 +00001914 --with-sysroot=DIR Search for dependent libraries within DIR
1915 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001916 --with-modules enable building dynamically loadable modules
1917 --with-method-prefix=PREFIX
1918 prefix MagickCore API methods
1919 --with-quantum-depth=DEPTH
1920 number of bits in a pixel quantum (default 16)
1921 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1922 memory)
1923 --with-frozenpaths freeze delegate paths
1924 --without-magick-plus-plus
1925 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001926 --with-package-release-name=NAME
1927 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001928 --with-perl enable build/install of PerlMagick
1929 --with-perl-options=OPTIONS
1930 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001931 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001932 --with-umem enable umem memory allocation library support
1933 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1934 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001935 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001936 --without-zlib disable ZLIB support
1937 --with-autotrace enable autotrace support
1938 --without-dps disable Display Postscript support
1939 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001940 --with-dejavu-font-dir=DIR
1941 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001942 --without-fftw disable FFTW support
1943 --without-fpx disable FlashPIX support
1944 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001945 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001946 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001947 --with-fontpath=DIR prepend to default font search path
1948 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001949 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001950 --without-jbig disable JBIG support
1951 --without-jpeg disable JPEG support
1952 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001953 --without-lcms disable lcms (v1.1X) support
1954 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001955 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001956 --without-lzma disable LZMA support
cristy854c9cf2013-08-10 21:03:06 +00001957 --with-mupdf enable MUPDF support
cristy3ed852e2009-09-05 21:47:34 +00001958 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001959 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001960 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001961 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001962 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001963 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001964 --with-windows-font-dir=DIR
1965 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001966 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001967 --without-xml disable XML support
1968
1969Some influential environment variables:
1970 CC C compiler command
1971 CFLAGS C compiler flags
1972 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1973 nonstandard directory <lib dir>
1974 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001975 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001976 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001977 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001978 CXX C++ compiler command
1979 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001980 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001981 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001982 XMKMF Path to xmkmf, Makefile generator for X Window System
1983 AUTOTRACE_CFLAGS
1984 C compiler flags for AUTOTRACE, overriding pkg-config
1985 AUTOTRACE_LIBS
1986 linker flags for AUTOTRACE, overriding pkg-config
1987 FONTCONFIG_CFLAGS
1988 C compiler flags for FONTCONFIG, overriding pkg-config
1989 FONTCONFIG_LIBS
1990 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001991 FREETYPE_CFLAGS
1992 C compiler flags for FREETYPE, overriding pkg-config
1993 FREETYPE_LIBS
1994 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001995 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1996 GVC_LIBS linker flags for GVC, overriding pkg-config
1997 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1998 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001999 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2000 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002001 OPENEXR_CFLAGS
2002 C compiler flags for OPENEXR, overriding pkg-config
2003 OPENEXR_LIBS
2004 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002005 PANGO_CFLAGS
2006 C compiler flags for PANGO, overriding pkg-config
2007 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002008 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2009 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2010 CAIRO_SVG_CFLAGS
2011 C compiler flags for CAIRO_SVG, overriding pkg-config
2012 CAIRO_SVG_LIBS
2013 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002014
2015Use these variables to override the choices made by `configure' or to help
2016it to find libraries and programs with nonstandard names/locations.
2017
2018Report bugs to <http://www.imagemagick.org>.
2019_ACEOF
2020ac_status=$?
2021fi
2022
2023if test "$ac_init_help" = "recursive"; then
2024 # If there are subdirs, report their specific --help.
2025 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2026 test -d "$ac_dir" ||
2027 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2028 continue
2029 ac_builddir=.
2030
2031case "$ac_dir" in
2032.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2033*)
2034 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2035 # A ".." for each directory in $ac_dir_suffix.
2036 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2037 case $ac_top_builddir_sub in
2038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2040 esac ;;
2041esac
2042ac_abs_top_builddir=$ac_pwd
2043ac_abs_builddir=$ac_pwd$ac_dir_suffix
2044# for backward compatibility:
2045ac_top_builddir=$ac_top_build_prefix
2046
2047case $srcdir in
2048 .) # We are building in place.
2049 ac_srcdir=.
2050 ac_top_srcdir=$ac_top_builddir_sub
2051 ac_abs_top_srcdir=$ac_pwd ;;
2052 [\\/]* | ?:[\\/]* ) # Absolute name.
2053 ac_srcdir=$srcdir$ac_dir_suffix;
2054 ac_top_srcdir=$srcdir
2055 ac_abs_top_srcdir=$srcdir ;;
2056 *) # Relative name.
2057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2058 ac_top_srcdir=$ac_top_build_prefix$srcdir
2059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2060esac
2061ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2062
2063 cd "$ac_dir" || { ac_status=$?; continue; }
2064 # Check for guested configure.
2065 if test -f "$ac_srcdir/configure.gnu"; then
2066 echo &&
2067 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2068 elif test -f "$ac_srcdir/configure"; then
2069 echo &&
2070 $SHELL "$ac_srcdir/configure" --help=recursive
2071 else
2072 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2073 fi || ac_status=$?
2074 cd "$ac_pwd" || { ac_status=$?; break; }
2075 done
2076fi
2077
2078test -n "$ac_init_help" && exit $ac_status
2079if $ac_init_version; then
2080 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002081ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002082generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002083
cristy14fefe52012-05-21 00:59:18 +00002084Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002085This configure script is free software; the Free Software Foundation
2086gives unlimited permission to copy, distribute and modify it.
2087_ACEOF
2088 exit
2089fi
cristy8b350f62009-11-15 23:12:43 +00002090
2091## ------------------------ ##
2092## Autoconf initialization. ##
2093## ------------------------ ##
2094
2095# ac_fn_c_try_compile LINENO
2096# --------------------------
2097# Try to compile conftest.$ac_ext, and return whether this succeeded.
2098ac_fn_c_try_compile ()
2099{
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 rm -f conftest.$ac_objext
2102 if { { ac_try="$ac_compile"
2103case "(($ac_try" in
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2106esac
2107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2108$as_echo "$ac_try_echo"; } >&5
2109 (eval "$ac_compile") 2>conftest.err
2110 ac_status=$?
2111 if test -s conftest.err; then
2112 grep -v '^ *+' conftest.err >conftest.er1
2113 cat conftest.er1 >&5
2114 mv -f conftest.er1 conftest.err
2115 fi
2116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117 test $ac_status = 0; } && {
2118 test -z "$ac_c_werror_flag" ||
2119 test ! -s conftest.err
2120 } && test -s conftest.$ac_objext; then :
2121 ac_retval=0
2122else
2123 $as_echo "$as_me: failed program was:" >&5
2124sed 's/^/| /' conftest.$ac_ext >&5
2125
2126 ac_retval=1
2127fi
cristyda16f162011-02-19 23:52:17 +00002128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002129 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002130
2131} # ac_fn_c_try_compile
2132
cristy95646052009-11-28 23:05:30 +00002133# ac_fn_c_try_cpp LINENO
2134# ----------------------
2135# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2136ac_fn_c_try_cpp ()
2137{
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 if { { ac_try="$ac_cpp conftest.$ac_ext"
2140case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143esac
2144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145$as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2147 ac_status=$?
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2152 fi
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002154 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2156 test ! -s conftest.err
2157 }; then :
2158 ac_retval=0
2159else
2160 $as_echo "$as_me: failed program was:" >&5
2161sed 's/^/| /' conftest.$ac_ext >&5
2162
2163 ac_retval=1
2164fi
cristyda16f162011-02-19 23:52:17 +00002165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002166 as_fn_set_status $ac_retval
2167
2168} # ac_fn_c_try_cpp
2169
cristy8b350f62009-11-15 23:12:43 +00002170# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2171# -------------------------------------------------------
2172# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2173# the include files in INCLUDES and setting the cache variable VAR
2174# accordingly.
2175ac_fn_c_check_header_mongrel ()
2176{
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002178 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002181if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002182 $as_echo_n "(cached) " >&6
2183fi
2184eval ac_res=\$$3
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186$as_echo "$ac_res" >&6; }
2187else
2188 # Is the header compilable?
2189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2190$as_echo_n "checking $2 usability... " >&6; }
2191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192/* end confdefs.h. */
2193$4
2194#include <$2>
2195_ACEOF
2196if ac_fn_c_try_compile "$LINENO"; then :
2197 ac_header_compiler=yes
2198else
2199 ac_header_compiler=no
2200fi
2201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2203$as_echo "$ac_header_compiler" >&6; }
2204
2205# Is the header present?
2206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2207$as_echo_n "checking $2 presence... " >&6; }
2208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209/* end confdefs.h. */
2210#include <$2>
2211_ACEOF
2212if ac_fn_c_try_cpp "$LINENO"; then :
2213 ac_header_preproc=yes
2214else
2215 ac_header_preproc=no
2216fi
cristyda16f162011-02-19 23:52:17 +00002217rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2219$as_echo "$ac_header_preproc" >&6; }
2220
2221# So? What about this header?
2222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2223 yes:no: )
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2225$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2227$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2228 ;;
2229 no:yes:* )
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2231$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2233$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2235$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2237$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2239$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002240( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002241## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002242## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002243 ) | sed "s/^/$as_me: WARNING: /" >&2
2244 ;;
2245esac
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002248if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002249 $as_echo_n "(cached) " >&6
2250else
2251 eval "$3=\$ac_header_compiler"
2252fi
2253eval ac_res=\$$3
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255$as_echo "$ac_res" >&6; }
2256fi
cristyda16f162011-02-19 23:52:17 +00002257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002258
2259} # ac_fn_c_check_header_mongrel
2260
2261# ac_fn_c_try_run LINENO
2262# ----------------------
2263# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2264# that executables *can* be run.
2265ac_fn_c_try_run ()
2266{
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 if { { ac_try="$ac_link"
2269case "(($ac_try" in
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;;
2272esac
2273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2274$as_echo "$ac_try_echo"; } >&5
2275 (eval "$ac_link") 2>&5
2276 ac_status=$?
2277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2278 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2279 { { case "(($ac_try" in
2280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281 *) ac_try_echo=$ac_try;;
2282esac
2283eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2284$as_echo "$ac_try_echo"; } >&5
2285 (eval "$ac_try") 2>&5
2286 ac_status=$?
2287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2288 test $ac_status = 0; }; }; then :
2289 ac_retval=0
2290else
2291 $as_echo "$as_me: program exited with status $ac_status" >&5
2292 $as_echo "$as_me: failed program was:" >&5
2293sed 's/^/| /' conftest.$ac_ext >&5
2294
2295 ac_retval=$ac_status
2296fi
2297 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002299 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002300
2301} # ac_fn_c_try_run
2302
2303# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2304# -------------------------------------------------------
2305# Tests whether HEADER exists and can be compiled using the include files in
2306# INCLUDES, setting the cache variable VAR accordingly.
2307ac_fn_c_check_header_compile ()
2308{
2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2311$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002312if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002313 $as_echo_n "(cached) " >&6
2314else
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316/* end confdefs.h. */
2317$4
2318#include <$2>
2319_ACEOF
2320if ac_fn_c_try_compile "$LINENO"; then :
2321 eval "$3=yes"
2322else
2323 eval "$3=no"
2324fi
2325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326fi
2327eval ac_res=\$$3
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002331
2332} # ac_fn_c_check_header_compile
2333
cristya0b81c32010-01-22 02:54:33 +00002334# ac_fn_cxx_try_compile LINENO
2335# ----------------------------
2336# Try to compile conftest.$ac_ext, and return whether this succeeded.
2337ac_fn_cxx_try_compile ()
2338{
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 rm -f conftest.$ac_objext
2341 if { { ac_try="$ac_compile"
2342case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2345esac
2346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2347$as_echo "$ac_try_echo"; } >&5
2348 (eval "$ac_compile") 2>conftest.err
2349 ac_status=$?
2350 if test -s conftest.err; then
2351 grep -v '^ *+' conftest.err >conftest.er1
2352 cat conftest.er1 >&5
2353 mv -f conftest.er1 conftest.err
2354 fi
2355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2356 test $ac_status = 0; } && {
2357 test -z "$ac_cxx_werror_flag" ||
2358 test ! -s conftest.err
2359 } && test -s conftest.$ac_objext; then :
2360 ac_retval=0
2361else
2362 $as_echo "$as_me: failed program was:" >&5
2363sed 's/^/| /' conftest.$ac_ext >&5
2364
2365 ac_retval=1
2366fi
cristyda16f162011-02-19 23:52:17 +00002367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002368 as_fn_set_status $ac_retval
2369
2370} # ac_fn_cxx_try_compile
2371
cristyd95b7a52013-10-23 13:12:53 +00002372# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2373# --------------------------------------------
2374# Tries to find the compile-time value of EXPR in a program that includes
2375# INCLUDES, setting VAR accordingly. Returns whether the value could be
2376# computed
2377ac_fn_c_compute_int ()
2378{
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 if test "$cross_compiling" = yes; then
2381 # Depending upon the size, compute the lo and hi bounds.
2382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383/* end confdefs.h. */
2384$4
2385int
2386main ()
2387{
2388static int test_array [1 - 2 * !(($2) >= 0)];
2389test_array [0] = 0;
2390return test_array [0];
2391
2392 ;
2393 return 0;
2394}
2395_ACEOF
2396if ac_fn_c_try_compile "$LINENO"; then :
2397 ac_lo=0 ac_mid=0
2398 while :; do
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400/* end confdefs.h. */
2401$4
2402int
2403main ()
2404{
2405static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2406test_array [0] = 0;
2407return test_array [0];
2408
2409 ;
2410 return 0;
2411}
2412_ACEOF
2413if ac_fn_c_try_compile "$LINENO"; then :
2414 ac_hi=$ac_mid; break
2415else
2416 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2417 if test $ac_lo -le $ac_mid; then
2418 ac_lo= ac_hi=
2419 break
2420 fi
2421 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2422fi
2423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 done
2425else
2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427/* end confdefs.h. */
2428$4
2429int
2430main ()
2431{
2432static int test_array [1 - 2 * !(($2) < 0)];
2433test_array [0] = 0;
2434return test_array [0];
2435
2436 ;
2437 return 0;
2438}
2439_ACEOF
2440if ac_fn_c_try_compile "$LINENO"; then :
2441 ac_hi=-1 ac_mid=-1
2442 while :; do
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444/* end confdefs.h. */
2445$4
2446int
2447main ()
2448{
2449static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2450test_array [0] = 0;
2451return test_array [0];
2452
2453 ;
2454 return 0;
2455}
2456_ACEOF
2457if ac_fn_c_try_compile "$LINENO"; then :
2458 ac_lo=$ac_mid; break
2459else
2460 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2461 if test $ac_mid -le $ac_hi; then
2462 ac_lo= ac_hi=
2463 break
2464 fi
2465 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2466fi
2467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468 done
2469else
2470 ac_lo= ac_hi=
2471fi
2472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473fi
2474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2475# Binary search between lo and hi bounds.
2476while test "x$ac_lo" != "x$ac_hi"; do
2477 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479/* end confdefs.h. */
2480$4
2481int
2482main ()
2483{
2484static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2485test_array [0] = 0;
2486return test_array [0];
2487
2488 ;
2489 return 0;
2490}
2491_ACEOF
2492if ac_fn_c_try_compile "$LINENO"; then :
2493 ac_hi=$ac_mid
2494else
2495 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2496fi
2497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498done
2499case $ac_lo in #((
2500?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2501'') ac_retval=1 ;;
2502esac
2503 else
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505/* end confdefs.h. */
2506$4
2507static long int longval () { return $2; }
2508static unsigned long int ulongval () { return $2; }
2509#include <stdio.h>
2510#include <stdlib.h>
2511int
2512main ()
2513{
2514
2515 FILE *f = fopen ("conftest.val", "w");
2516 if (! f)
2517 return 1;
2518 if (($2) < 0)
2519 {
2520 long int i = longval ();
2521 if (i != ($2))
2522 return 1;
2523 fprintf (f, "%ld", i);
2524 }
2525 else
2526 {
2527 unsigned long int i = ulongval ();
2528 if (i != ($2))
2529 return 1;
2530 fprintf (f, "%lu", i);
2531 }
2532 /* Do not output a trailing newline, as this causes \r\n confusion
2533 on some platforms. */
2534 return ferror (f) || fclose (f) != 0;
2535
2536 ;
2537 return 0;
2538}
2539_ACEOF
2540if ac_fn_c_try_run "$LINENO"; then :
2541 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2542else
2543 ac_retval=1
2544fi
2545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2546 conftest.$ac_objext conftest.beam conftest.$ac_ext
2547rm -f conftest.val
2548
2549 fi
2550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2551 as_fn_set_status $ac_retval
2552
2553} # ac_fn_c_compute_int
2554
cristy8b350f62009-11-15 23:12:43 +00002555# ac_fn_c_try_link LINENO
2556# -----------------------
2557# Try to link conftest.$ac_ext, and return whether this succeeded.
2558ac_fn_c_try_link ()
2559{
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 rm -f conftest.$ac_objext conftest$ac_exeext
2562 if { { ac_try="$ac_link"
2563case "(($ac_try" in
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2566esac
2567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2568$as_echo "$ac_try_echo"; } >&5
2569 (eval "$ac_link") 2>conftest.err
2570 ac_status=$?
2571 if test -s conftest.err; then
2572 grep -v '^ *+' conftest.err >conftest.er1
2573 cat conftest.er1 >&5
2574 mv -f conftest.er1 conftest.err
2575 fi
2576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2577 test $ac_status = 0; } && {
2578 test -z "$ac_c_werror_flag" ||
2579 test ! -s conftest.err
2580 } && test -s conftest$ac_exeext && {
2581 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002582 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002583 }; then :
2584 ac_retval=0
2585else
2586 $as_echo "$as_me: failed program was:" >&5
2587sed 's/^/| /' conftest.$ac_ext >&5
2588
2589 ac_retval=1
2590fi
2591 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2592 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2593 # interfere with the next link command; also delete a directory that is
2594 # left behind by Apple's compiler. We do this before executing the actions.
2595 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002597 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002598
2599} # ac_fn_c_try_link
2600
cristy73bd4a52010-10-05 11:24:23 +00002601# ac_fn_c_check_func LINENO FUNC VAR
2602# ----------------------------------
2603# Tests whether FUNC exists, setting the cache variable VAR accordingly
2604ac_fn_c_check_func ()
2605{
2606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2608$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002609if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002610 $as_echo_n "(cached) " >&6
2611else
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613/* end confdefs.h. */
2614/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2616#define $2 innocuous_$2
2617
2618/* System header to define __stub macros and hopefully few prototypes,
2619 which can conflict with char $2 (); below.
2620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2621 <limits.h> exists even on freestanding compilers. */
2622
2623#ifdef __STDC__
2624# include <limits.h>
2625#else
2626# include <assert.h>
2627#endif
2628
2629#undef $2
2630
2631/* Override any GCC internal prototype to avoid an error.
2632 Use char because int might match the return type of a GCC
2633 builtin and then its argument prototype would still apply. */
2634#ifdef __cplusplus
2635extern "C"
2636#endif
2637char $2 ();
2638/* The GNU C library defines this for functions which it implements
2639 to always fail with ENOSYS. Some functions are actually named
2640 something starting with __ and the normal name is an alias. */
2641#if defined __stub_$2 || defined __stub___$2
2642choke me
2643#endif
2644
2645int
2646main ()
2647{
2648return $2 ();
2649 ;
2650 return 0;
2651}
2652_ACEOF
2653if ac_fn_c_try_link "$LINENO"; then :
2654 eval "$3=yes"
2655else
2656 eval "$3=no"
2657fi
2658rm -f core conftest.err conftest.$ac_objext \
2659 conftest$ac_exeext conftest.$ac_ext
2660fi
2661eval ac_res=\$$3
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2663$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002665
2666} # ac_fn_c_check_func
2667
2668# ac_fn_cxx_try_cpp LINENO
2669# ------------------------
2670# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2671ac_fn_cxx_try_cpp ()
2672{
2673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2674 if { { ac_try="$ac_cpp conftest.$ac_ext"
2675case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2678esac
2679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2680$as_echo "$ac_try_echo"; } >&5
2681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2682 ac_status=$?
2683 if test -s conftest.err; then
2684 grep -v '^ *+' conftest.err >conftest.er1
2685 cat conftest.er1 >&5
2686 mv -f conftest.er1 conftest.err
2687 fi
2688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002689 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002690 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2691 test ! -s conftest.err
2692 }; then :
2693 ac_retval=0
2694else
2695 $as_echo "$as_me: failed program was:" >&5
2696sed 's/^/| /' conftest.$ac_ext >&5
2697
2698 ac_retval=1
2699fi
cristyda16f162011-02-19 23:52:17 +00002700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002701 as_fn_set_status $ac_retval
2702
2703} # ac_fn_cxx_try_cpp
2704
2705# ac_fn_cxx_try_link LINENO
2706# -------------------------
2707# Try to link conftest.$ac_ext, and return whether this succeeded.
2708ac_fn_cxx_try_link ()
2709{
2710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2711 rm -f conftest.$ac_objext conftest$ac_exeext
2712 if { { ac_try="$ac_link"
2713case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716esac
2717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2718$as_echo "$ac_try_echo"; } >&5
2719 (eval "$ac_link") 2>conftest.err
2720 ac_status=$?
2721 if test -s conftest.err; then
2722 grep -v '^ *+' conftest.err >conftest.er1
2723 cat conftest.er1 >&5
2724 mv -f conftest.er1 conftest.err
2725 fi
2726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2727 test $ac_status = 0; } && {
2728 test -z "$ac_cxx_werror_flag" ||
2729 test ! -s conftest.err
2730 } && test -s conftest$ac_exeext && {
2731 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002732 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002733 }; then :
2734 ac_retval=0
2735else
2736 $as_echo "$as_me: failed program was:" >&5
2737sed 's/^/| /' conftest.$ac_ext >&5
2738
2739 ac_retval=1
2740fi
2741 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2742 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2743 # interfere with the next link command; also delete a directory that is
2744 # left behind by Apple's compiler. We do this before executing the actions.
2745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002747 as_fn_set_status $ac_retval
2748
2749} # ac_fn_cxx_try_link
2750
cristy8b350f62009-11-15 23:12:43 +00002751# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2752# -------------------------------------------
2753# Tests whether TYPE exists after having included INCLUDES, setting cache
2754# variable VAR accordingly.
2755ac_fn_c_check_type ()
2756{
2757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2759$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002760if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002761 $as_echo_n "(cached) " >&6
2762else
2763 eval "$3=no"
2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765/* end confdefs.h. */
2766$4
2767int
2768main ()
2769{
2770if (sizeof ($2))
2771 return 0;
2772 ;
2773 return 0;
2774}
2775_ACEOF
2776if ac_fn_c_try_compile "$LINENO"; then :
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778/* end confdefs.h. */
2779$4
2780int
2781main ()
2782{
2783if (sizeof (($2)))
2784 return 0;
2785 ;
2786 return 0;
2787}
2788_ACEOF
2789if ac_fn_c_try_compile "$LINENO"; then :
2790
2791else
2792 eval "$3=yes"
2793fi
2794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2795fi
2796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2797fi
2798eval ac_res=\$$3
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2800$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002802
2803} # ac_fn_c_check_type
2804
cristy92703d82010-04-26 00:18:18 +00002805# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2806# ----------------------------------------------------
2807# Tries to find if the field MEMBER exists in type AGGR, after including
2808# INCLUDES, setting cache variable VAR accordingly.
2809ac_fn_c_check_member ()
2810{
2811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2813$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002814if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002815 $as_echo_n "(cached) " >&6
2816else
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818/* end confdefs.h. */
2819$5
2820int
2821main ()
2822{
2823static $2 ac_aggr;
2824if (ac_aggr.$3)
2825return 0;
2826 ;
2827 return 0;
2828}
2829_ACEOF
2830if ac_fn_c_try_compile "$LINENO"; then :
2831 eval "$4=yes"
2832else
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834/* end confdefs.h. */
2835$5
2836int
2837main ()
2838{
2839static $2 ac_aggr;
2840if (sizeof ac_aggr.$3)
2841return 0;
2842 ;
2843 return 0;
2844}
2845_ACEOF
2846if ac_fn_c_try_compile "$LINENO"; then :
2847 eval "$4=yes"
2848else
2849 eval "$4=no"
2850fi
2851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852fi
2853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2854fi
2855eval ac_res=\$$4
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2857$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002859
2860} # ac_fn_c_check_member
2861
cristy5eef09f2012-10-16 12:08:28 +00002862# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2863# ---------------------------------------------
2864# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2865# accordingly.
2866ac_fn_c_check_decl ()
2867{
2868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2869 as_decl_name=`echo $2|sed 's/ *(.*//'`
2870 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2872$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2873if eval \${$3+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875else
2876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877/* end confdefs.h. */
2878$4
2879int
2880main ()
2881{
2882#ifndef $as_decl_name
2883#ifdef __cplusplus
2884 (void) $as_decl_use;
2885#else
2886 (void) $as_decl_name;
2887#endif
2888#endif
2889
2890 ;
2891 return 0;
2892}
2893_ACEOF
2894if ac_fn_c_try_compile "$LINENO"; then :
2895 eval "$3=yes"
2896else
2897 eval "$3=no"
2898fi
2899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900fi
2901eval ac_res=\$$3
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2903$as_echo "$ac_res" >&6; }
2904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2905
2906} # ac_fn_c_check_decl
2907
cristy501c8042011-05-26 17:46:28 +00002908# ac_fn_c_find_intX_t LINENO BITS VAR
2909# -----------------------------------
2910# Finds a signed integer type with width BITS, setting cache variable VAR
2911# accordingly.
2912ac_fn_c_find_intX_t ()
2913{
2914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2916$as_echo_n "checking for int$2_t... " >&6; }
2917if eval \${$3+:} false; then :
2918 $as_echo_n "(cached) " >&6
2919else
2920 eval "$3=no"
2921 # Order is important - never check a type that is potentially smaller
2922 # than half of the expected target width.
2923 for ac_type in int$2_t 'int' 'long int' \
2924 'long long int' 'short int' 'signed char'; do
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926/* end confdefs.h. */
2927$ac_includes_default
2928 enum { N = $2 / 2 - 1 };
2929int
2930main ()
2931{
2932static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002933test_array [0] = 0;
2934return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002935
2936 ;
2937 return 0;
2938}
2939_ACEOF
2940if ac_fn_c_try_compile "$LINENO"; then :
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942/* end confdefs.h. */
2943$ac_includes_default
2944 enum { N = $2 / 2 - 1 };
2945int
2946main ()
2947{
2948static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2949 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002950test_array [0] = 0;
2951return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002952
2953 ;
2954 return 0;
2955}
2956_ACEOF
2957if ac_fn_c_try_compile "$LINENO"; then :
2958
2959else
2960 case $ac_type in #(
2961 int$2_t) :
2962 eval "$3=yes" ;; #(
2963 *) :
2964 eval "$3=\$ac_type" ;;
2965esac
2966fi
2967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2968fi
2969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 if eval test \"x\$"$3"\" = x"no"; then :
2971
2972else
2973 break
2974fi
2975 done
2976fi
2977eval ac_res=\$$3
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2979$as_echo "$ac_res" >&6; }
2980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2981
2982} # ac_fn_c_find_intX_t
2983
2984# ac_fn_c_find_uintX_t LINENO BITS VAR
2985# ------------------------------------
2986# Finds an unsigned integer type with width BITS, setting cache variable VAR
2987# accordingly.
2988ac_fn_c_find_uintX_t ()
2989{
2990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2992$as_echo_n "checking for uint$2_t... " >&6; }
2993if eval \${$3+:} false; then :
2994 $as_echo_n "(cached) " >&6
2995else
2996 eval "$3=no"
2997 # Order is important - never check a type that is potentially smaller
2998 # than half of the expected target width.
2999 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3000 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002/* end confdefs.h. */
3003$ac_includes_default
3004int
3005main ()
3006{
3007static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003008test_array [0] = 0;
3009return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003010
3011 ;
3012 return 0;
3013}
3014_ACEOF
3015if ac_fn_c_try_compile "$LINENO"; then :
3016 case $ac_type in #(
3017 uint$2_t) :
3018 eval "$3=yes" ;; #(
3019 *) :
3020 eval "$3=\$ac_type" ;;
3021esac
3022fi
3023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024 if eval test \"x\$"$3"\" = x"no"; then :
3025
3026else
3027 break
3028fi
3029 done
3030fi
3031eval ac_res=\$$3
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3033$as_echo "$ac_res" >&6; }
3034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3035
3036} # ac_fn_c_find_uintX_t
3037
cristy8b350f62009-11-15 23:12:43 +00003038# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3039# ---------------------------------------------------------
3040# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3041# the include files in INCLUDES and setting the cache variable VAR
3042# accordingly.
3043ac_fn_cxx_check_header_mongrel ()
3044{
3045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003046 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3048$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003049if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003050 $as_echo_n "(cached) " >&6
3051fi
3052eval ac_res=\$$3
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3054$as_echo "$ac_res" >&6; }
3055else
3056 # Is the header compilable?
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3058$as_echo_n "checking $2 usability... " >&6; }
3059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060/* end confdefs.h. */
3061$4
3062#include <$2>
3063_ACEOF
3064if ac_fn_cxx_try_compile "$LINENO"; then :
3065 ac_header_compiler=yes
3066else
3067 ac_header_compiler=no
3068fi
3069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3071$as_echo "$ac_header_compiler" >&6; }
3072
3073# Is the header present?
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3075$as_echo_n "checking $2 presence... " >&6; }
3076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077/* end confdefs.h. */
3078#include <$2>
3079_ACEOF
3080if ac_fn_cxx_try_cpp "$LINENO"; then :
3081 ac_header_preproc=yes
3082else
3083 ac_header_preproc=no
3084fi
cristyda16f162011-02-19 23:52:17 +00003085rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3087$as_echo "$ac_header_preproc" >&6; }
3088
3089# So? What about this header?
3090case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3091 yes:no: )
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3093$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3095$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3096 ;;
3097 no:yes:* )
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3099$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3101$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3103$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3105$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3107$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003108( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003109## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003110## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003111 ) | sed "s/^/$as_me: WARNING: /" >&2
3112 ;;
3113esac
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3115$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003116if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003117 $as_echo_n "(cached) " >&6
3118else
3119 eval "$3=\$ac_header_compiler"
3120fi
3121eval ac_res=\$$3
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3123$as_echo "$ac_res" >&6; }
3124fi
cristyda16f162011-02-19 23:52:17 +00003125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003126
3127} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003128cat >config.log <<_ACEOF
3129This file contains any messages produced by compilers while
3130running configure, to aid debugging if configure makes a mistake.
3131
cristy29eb34e2011-10-16 00:46:08 +00003132It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003133generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003134
3135 $ $0 $@
3136
3137_ACEOF
3138exec 5>>config.log
3139{
3140cat <<_ASUNAME
3141## --------- ##
3142## Platform. ##
3143## --------- ##
3144
3145hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3146uname -m = `(uname -m) 2>/dev/null || echo unknown`
3147uname -r = `(uname -r) 2>/dev/null || echo unknown`
3148uname -s = `(uname -s) 2>/dev/null || echo unknown`
3149uname -v = `(uname -v) 2>/dev/null || echo unknown`
3150
3151/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3152/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3153
3154/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3155/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3156/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3157/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3158/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3159/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3160/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3161
3162_ASUNAME
3163
3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165for as_dir in $PATH
3166do
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003169 $as_echo "PATH: $as_dir"
3170 done
cristy3ed852e2009-09-05 21:47:34 +00003171IFS=$as_save_IFS
3172
3173} >&5
3174
3175cat >&5 <<_ACEOF
3176
3177
3178## ----------- ##
3179## Core tests. ##
3180## ----------- ##
3181
3182_ACEOF
3183
3184
3185# Keep a trace of the command line.
3186# Strip out --no-create and --no-recursion so they do not pile up.
3187# Strip out --silent because we don't want to record it for future runs.
3188# Also quote any args containing shell meta-characters.
3189# Make two passes to allow for proper duplicate-argument suppression.
3190ac_configure_args=
3191ac_configure_args0=
3192ac_configure_args1=
3193ac_must_keep_next=false
3194for ac_pass in 1 2
3195do
3196 for ac_arg
3197 do
3198 case $ac_arg in
3199 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3201 | -silent | --silent | --silen | --sile | --sil)
3202 continue ;;
3203 *\'*)
3204 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3205 esac
3206 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003207 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003208 2)
cristy8b350f62009-11-15 23:12:43 +00003209 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003210 if test $ac_must_keep_next = true; then
3211 ac_must_keep_next=false # Got value, back to normal.
3212 else
3213 case $ac_arg in
3214 *=* | --config-cache | -C | -disable-* | --disable-* \
3215 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3216 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3217 | -with-* | --with-* | -without-* | --without-* | --x)
3218 case "$ac_configure_args0 " in
3219 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3220 esac
3221 ;;
3222 -* ) ac_must_keep_next=true ;;
3223 esac
3224 fi
cristy8b350f62009-11-15 23:12:43 +00003225 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003226 ;;
3227 esac
3228 done
3229done
cristy8b350f62009-11-15 23:12:43 +00003230{ ac_configure_args0=; unset ac_configure_args0;}
3231{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003232
3233# When interrupted or exit'd, cleanup temporary files, and complete
3234# config.log. We remove comments because anyway the quotes in there
3235# would cause problems or look ugly.
3236# WARNING: Use '\'' to represent an apostrophe within the trap.
3237# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3238trap 'exit_status=$?
3239 # Save into config.log some information that might help in debugging.
3240 {
3241 echo
3242
cristy98dddb52010-11-04 00:30:15 +00003243 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003244## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003245## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003246 echo
3247 # The following way of writing the cache mishandles newlines in values,
3248(
3249 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3250 eval ac_val=\$$ac_var
3251 case $ac_val in #(
3252 *${as_nl}*)
3253 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003254 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003255$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3256 esac
3257 case $ac_var in #(
3258 _ | IFS | as_nl) ;; #(
3259 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003260 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003261 esac ;;
3262 esac
3263 done
3264 (set) 2>&1 |
3265 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3266 *${as_nl}ac_space=\ *)
3267 sed -n \
3268 "s/'\''/'\''\\\\'\'''\''/g;
3269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3270 ;; #(
3271 *)
3272 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3273 ;;
3274 esac |
3275 sort
3276)
3277 echo
3278
cristy98dddb52010-11-04 00:30:15 +00003279 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003280## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003281## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003282 echo
3283 for ac_var in $ac_subst_vars
3284 do
3285 eval ac_val=\$$ac_var
3286 case $ac_val in
3287 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3288 esac
3289 $as_echo "$ac_var='\''$ac_val'\''"
3290 done | sort
3291 echo
3292
3293 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003294 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003295## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003296## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003297 echo
3298 for ac_var in $ac_subst_files
3299 do
3300 eval ac_val=\$$ac_var
3301 case $ac_val in
3302 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3303 esac
3304 $as_echo "$ac_var='\''$ac_val'\''"
3305 done | sort
3306 echo
3307 fi
3308
3309 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003310 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003311## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003312## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003313 echo
3314 cat confdefs.h
3315 echo
3316 fi
3317 test "$ac_signal" != 0 &&
3318 $as_echo "$as_me: caught signal $ac_signal"
3319 $as_echo "$as_me: exit $exit_status"
3320 } >&5
3321 rm -f core *.core core.conftest.* &&
3322 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3323 exit $exit_status
3324' 0
3325for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003326 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003327done
3328ac_signal=0
3329
3330# confdefs.h avoids OS command line length limits that DEFS can exceed.
3331rm -f -r conftest* confdefs.h
3332
cristy8b350f62009-11-15 23:12:43 +00003333$as_echo "/* confdefs.h */" > confdefs.h
3334
cristy3ed852e2009-09-05 21:47:34 +00003335# Predefined preprocessor variables.
3336
3337cat >>confdefs.h <<_ACEOF
3338#define PACKAGE_NAME "$PACKAGE_NAME"
3339_ACEOF
3340
cristy3ed852e2009-09-05 21:47:34 +00003341cat >>confdefs.h <<_ACEOF
3342#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3343_ACEOF
3344
cristy3ed852e2009-09-05 21:47:34 +00003345cat >>confdefs.h <<_ACEOF
3346#define PACKAGE_VERSION "$PACKAGE_VERSION"
3347_ACEOF
3348
cristy3ed852e2009-09-05 21:47:34 +00003349cat >>confdefs.h <<_ACEOF
3350#define PACKAGE_STRING "$PACKAGE_STRING"
3351_ACEOF
3352
cristy3ed852e2009-09-05 21:47:34 +00003353cat >>confdefs.h <<_ACEOF
3354#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3355_ACEOF
3356
cristy8b350f62009-11-15 23:12:43 +00003357cat >>confdefs.h <<_ACEOF
3358#define PACKAGE_URL "$PACKAGE_URL"
3359_ACEOF
3360
cristy3ed852e2009-09-05 21:47:34 +00003361
3362# Let the site file select an alternate cache file if it wants to.
3363# Prefer an explicitly selected file to automatically selected ones.
3364ac_site_file1=NONE
3365ac_site_file2=NONE
3366if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003367 # We do not want a PATH search for config.site.
3368 case $CONFIG_SITE in #((
3369 -*) ac_site_file1=./$CONFIG_SITE;;
3370 */*) ac_site_file1=$CONFIG_SITE;;
3371 *) ac_site_file1=./$CONFIG_SITE;;
3372 esac
cristy3ed852e2009-09-05 21:47:34 +00003373elif test "x$prefix" != xNONE; then
3374 ac_site_file1=$prefix/share/config.site
3375 ac_site_file2=$prefix/etc/config.site
3376else
3377 ac_site_file1=$ac_default_prefix/share/config.site
3378 ac_site_file2=$ac_default_prefix/etc/config.site
3379fi
3380for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3381do
3382 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003383 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003384 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003385$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3386 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003387 . "$ac_site_file" \
3388 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3390as_fn_error $? "failed to load site script $ac_site_file
3391See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003392 fi
3393done
3394
3395if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003396 # Some versions of bash will fail to source /dev/null (special files
3397 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3398 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003399 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003400$as_echo "$as_me: loading cache $cache_file" >&6;}
3401 case $cache_file in
3402 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3403 *) . "./$cache_file";;
3404 esac
3405 fi
3406else
cristy8b350f62009-11-15 23:12:43 +00003407 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003408$as_echo "$as_me: creating cache $cache_file" >&6;}
3409 >$cache_file
3410fi
3411
cristycd4c5312009-11-22 01:19:08 +00003412as_fn_append ac_header_list " stdlib.h"
3413as_fn_append ac_header_list " unistd.h"
3414as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003415# Check that the precious variables saved in the cache have kept the same
3416# value.
3417ac_cache_corrupted=false
3418for ac_var in $ac_precious_vars; do
3419 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3420 eval ac_new_set=\$ac_env_${ac_var}_set
3421 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3422 eval ac_new_val=\$ac_env_${ac_var}_value
3423 case $ac_old_set,$ac_new_set in
3424 set,)
cristy8b350f62009-11-15 23:12:43 +00003425 { $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 +00003426$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3427 ac_cache_corrupted=: ;;
3428 ,set)
cristy8b350f62009-11-15 23:12:43 +00003429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003430$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3431 ac_cache_corrupted=: ;;
3432 ,);;
3433 *)
3434 if test "x$ac_old_val" != "x$ac_new_val"; then
3435 # differences in whitespace do not lead to failure.
3436 ac_old_val_w=`echo x $ac_old_val`
3437 ac_new_val_w=`echo x $ac_new_val`
3438 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003440$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3441 ac_cache_corrupted=:
3442 else
cristy8b350f62009-11-15 23:12:43 +00003443 { $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 +00003444$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3445 eval $ac_var=\$ac_old_val
3446 fi
cristy8b350f62009-11-15 23:12:43 +00003447 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003448$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003449 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003450$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3451 fi;;
3452 esac
3453 # Pass precious variables to config.status.
3454 if test "$ac_new_set" = set; then
3455 case $ac_new_val in
3456 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3457 *) ac_arg=$ac_var=$ac_new_val ;;
3458 esac
3459 case " $ac_configure_args " in
3460 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003461 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003462 esac
3463 fi
3464done
3465if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003469$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003470 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003471fi
cristy8b350f62009-11-15 23:12:43 +00003472## -------------------- ##
3473## Main body of script. ##
3474## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003475
3476ac_ext=c
3477ac_cpp='$CPP $CPPFLAGS'
3478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481
3482
3483
3484ac_aux_dir=
3485for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003486 if 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/install.sh"; then
3491 ac_aux_dir=$ac_dir
3492 ac_install_sh="$ac_aux_dir/install.sh -c"
3493 break
3494 elif test -f "$ac_dir/shtool"; then
3495 ac_aux_dir=$ac_dir
3496 ac_install_sh="$ac_aux_dir/shtool install -c"
3497 break
3498 fi
cristy3ed852e2009-09-05 21:47:34 +00003499done
3500if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003501 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003502fi
3503
3504# These three variables are undocumented and unsupported,
3505# and are intended to be withdrawn in a future Autoconf release.
3506# They can cause serious problems if a builder's source tree is in a directory
3507# whose full name contains unusual characters.
3508ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3509ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3510ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3511
3512
3513
3514
3515ac_config_headers="$ac_config_headers config/config.h"
3516
cristy24fc1fe2010-10-23 21:13:01 +00003517
cristy01ff9f32012-12-01 18:15:29 +00003518ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003519
cristy8d0ff762013-03-10 20:33:28 +00003520ac_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 +00003521
3522
3523#
3524# Save initial user-tunable values
3525#
3526USER_LIBS=$LIBS
3527for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3528 eval isset=\${$var+set}
3529 if test "$isset" = 'set'; then
3530 eval val=$`echo $var`
3531 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3532 fi
3533done
3534
3535
3536CONFIGURE_ARGS="$0 ${ac_configure_args}"
3537
3538
3539# Source file containing package/library versioning information.
3540. ${srcdir}/version.sh
3541
cristy15a88782010-01-31 23:24:49 +00003542echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003543# Make sure we can run config.sub.
3544$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003545 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003546
cristy8b350f62009-11-15 23:12:43 +00003547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003548$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003549if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003550 $as_echo_n "(cached) " >&6
3551else
3552 ac_build_alias=$build_alias
3553test "x$ac_build_alias" = x &&
3554 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3555test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003556 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003557ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003558 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003559
3560fi
cristy8b350f62009-11-15 23:12:43 +00003561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003562$as_echo "$ac_cv_build" >&6; }
3563case $ac_cv_build in
3564*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003565*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003566esac
3567build=$ac_cv_build
3568ac_save_IFS=$IFS; IFS='-'
3569set x $ac_cv_build
3570shift
3571build_cpu=$1
3572build_vendor=$2
3573shift; shift
3574# Remember, the first character of IFS is used to create $*,
3575# except with old shells:
3576build_os=$*
3577IFS=$ac_save_IFS
3578case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3579
3580
cristy8b350f62009-11-15 23:12:43 +00003581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003582$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003583if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003584 $as_echo_n "(cached) " >&6
3585else
3586 if test "x$host_alias" = x; then
3587 ac_cv_host=$ac_cv_build
3588else
3589 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003590 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003591fi
3592
3593fi
cristy8b350f62009-11-15 23:12:43 +00003594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003595$as_echo "$ac_cv_host" >&6; }
3596case $ac_cv_host in
3597*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003598*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003599esac
3600host=$ac_cv_host
3601ac_save_IFS=$IFS; IFS='-'
3602set x $ac_cv_host
3603shift
3604host_cpu=$1
3605host_vendor=$2
3606shift; shift
3607# Remember, the first character of IFS is used to create $*,
3608# except with old shells:
3609host_os=$*
3610IFS=$ac_save_IFS
3611case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3612
3613
cristy8b350f62009-11-15 23:12:43 +00003614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003615$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003616if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003617 $as_echo_n "(cached) " >&6
3618else
3619 if test "x$target_alias" = x; then
3620 ac_cv_target=$ac_cv_host
3621else
3622 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003623 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003624fi
3625
3626fi
cristy8b350f62009-11-15 23:12:43 +00003627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003628$as_echo "$ac_cv_target" >&6; }
3629case $ac_cv_target in
3630*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003631*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003632esac
3633target=$ac_cv_target
3634ac_save_IFS=$IFS; IFS='-'
3635set x $ac_cv_target
3636shift
3637target_cpu=$1
3638target_vendor=$2
3639shift; shift
3640# Remember, the first character of IFS is used to create $*,
3641# except with old shells:
3642target_os=$*
3643IFS=$ac_save_IFS
3644case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3645
3646
3647# The aliases save the names the user supplied, while $host etc.
3648# will get canonicalized.
3649test -n "$target_alias" &&
3650 test "$program_prefix$program_suffix$program_transform_name" = \
3651 NONENONEs,x,x, &&
3652 program_prefix=${target_alias}-
3653
cristy837d6dc2010-02-27 01:16:57 +00003654
3655
3656
cristy8be34142012-06-17 14:07:18 +00003657
cristy19615b82011-04-13 20:02:01 +00003658MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003659
3660
cristy27d53d62012-07-29 23:30:07 +00003661cat >>confdefs.h <<_ACEOF
3662#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3663_ACEOF
3664
3665
cristy19615b82011-04-13 20:02:01 +00003666MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003667
3668
cristy27d53d62012-07-29 23:30:07 +00003669cat >>confdefs.h <<_ACEOF
3670#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3671_ACEOF
3672
3673
cristy19615b82011-04-13 20:02:01 +00003674MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003675
3676
cristy27d53d62012-07-29 23:30:07 +00003677cat >>confdefs.h <<_ACEOF
3678#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3679_ACEOF
3680
3681
cristy37442762013-02-10 21:07:23 +00003682
3683# Substitute versioning
3684MAGICK_MAJOR_VERSION=7
3685
3686MAGICK_MINOR_VERSION=0
3687
3688MAGICK_MICRO_VERSION=0
3689
3690MAGICK_PATCHLEVEL_VERSION=0
3691
3692MAGICK_VERSION=7.0.0-0
3693
cristya0459972013-11-03 18:09:35 +00003694MAGICK_SVN_REVISION=13660:13664M
cristy37442762013-02-10 21:07:23 +00003695
3696
cristy3ed852e2009-09-05 21:47:34 +00003697# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003698MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3699
3700MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3701
cristy37442762013-02-10 21:07:23 +00003702
cristy5ed9c6e2013-07-14 21:20:31 +00003703MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3704
3705MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3706
3707
cristyd694ca32011-03-27 21:42:54 +00003708
cristy3ed852e2009-09-05 21:47:34 +00003709# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3711$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003712# Reject unsafe characters in $srcdir or the absolute working directory
3713# name. Accept space and tab only in the latter.
3714am_lf='
3715'
3716case `pwd` in
3717 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003718 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003719esac
3720case $srcdir in
3721 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003722 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003723esac
cristy3ed852e2009-09-05 21:47:34 +00003724
cristyc0890a62012-07-19 00:18:20 +00003725# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003726# arguments. Must try -L first in case configure is actually a
3727# symlink; some systems play weird games with the mod time of symlinks
3728# (eg FreeBSD returns the mod time of the symlink's containing
3729# directory).
3730if (
cristyc0890a62012-07-19 00:18:20 +00003731 am_has_slept=no
3732 for am_try in 1 2; do
3733 echo "timestamp, slept: $am_has_slept" > conftest.file
3734 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3735 if test "$*" = "X"; then
3736 # -L didn't work.
3737 set X `ls -t "$srcdir/configure" conftest.file`
3738 fi
3739 if test "$*" != "X $srcdir/configure conftest.file" \
3740 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003741
cristyc0890a62012-07-19 00:18:20 +00003742 # If neither matched, then we have a broken ls. This can happen
3743 # if, for instance, CONFIG_SHELL is bash and it inherits a
3744 # broken ls alias from the environment. This has actually
3745 # happened. Such a system could not be considered "sane".
3746 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3747 alias in your environment" "$LINENO" 5
3748 fi
3749 if test "$2" = conftest.file || test $am_try -eq 2; then
3750 break
3751 fi
3752 # Just in case.
3753 sleep 1
3754 am_has_slept=yes
3755 done
cristy73bd4a52010-10-05 11:24:23 +00003756 test "$2" = conftest.file
3757 )
3758then
3759 # Ok.
3760 :
3761else
cristy98dddb52010-11-04 00:30:15 +00003762 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003763Check your system clock" "$LINENO" 5
3764fi
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3766$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003767# If we didn't sleep, we still need to ensure time stamps of config.status and
3768# generated files are strictly newer.
3769am_sleep_pid=
3770if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3771 ( sleep 1 ) &
3772 am_sleep_pid=$!
3773fi
cristy73bd4a52010-10-05 11:24:23 +00003774
cristyc0890a62012-07-19 00:18:20 +00003775rm -f conftest.file
3776
3777
cristya5bda012013-11-03 18:05:38 +00003778am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003779
3780# Find a good install program. We prefer a C program (faster),
3781# so one script is as good as another. But avoid the broken or
3782# incompatible versions:
3783# SysV /etc/install, /usr/sbin/install
3784# SunOS /usr/etc/install
3785# IRIX /sbin/install
3786# AIX /bin/install
3787# AmigaOS /C/install, which installs bootblocks on floppy discs
3788# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3789# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3790# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3791# OS/2's system install, which has a completely different semantic
3792# ./install, which can be erroneously created by make from ./install.sh.
3793# Reject install programs that cannot install multiple files.
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3795$as_echo_n "checking for a BSD-compatible install... " >&6; }
3796if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003797if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003798 $as_echo_n "(cached) " >&6
3799else
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH
3802do
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
3805 # Account for people who put trailing slashes in PATH elements.
3806case $as_dir/ in #((
3807 ./ | .// | /[cC]/* | \
3808 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3809 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3810 /usr/ucb/* ) ;;
3811 *)
3812 # OSF1 and SCO ODT 3.0 have their own names for install.
3813 # Don't use installbsd from OSF since it installs stuff as root
3814 # by default.
3815 for ac_prog in ginstall scoinst install; do
3816 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003817 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003818 if test $ac_prog = install &&
3819 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3820 # AIX install. It has an incompatible calling convention.
3821 :
3822 elif test $ac_prog = install &&
3823 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3824 # program-specific install script used by HP pwplus--don't use.
3825 :
3826 else
3827 rm -rf conftest.one conftest.two conftest.dir
3828 echo one > conftest.one
3829 echo two > conftest.two
3830 mkdir conftest.dir
3831 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3832 test -s conftest.one && test -s conftest.two &&
3833 test -s conftest.dir/conftest.one &&
3834 test -s conftest.dir/conftest.two
3835 then
3836 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3837 break 3
3838 fi
3839 fi
3840 fi
3841 done
3842 done
3843 ;;
3844esac
3845
3846 done
3847IFS=$as_save_IFS
3848
3849rm -rf conftest.one conftest.two conftest.dir
3850
3851fi
3852 if test "${ac_cv_path_install+set}" = set; then
3853 INSTALL=$ac_cv_path_install
3854 else
3855 # As a last resort, use the slow shell script. Don't cache a
3856 # value for INSTALL within a source directory, because that will
3857 # break other packages using the cache if that directory is
3858 # removed, or if the value is a relative name.
3859 INSTALL=$ac_install_sh
3860 fi
3861fi
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3863$as_echo "$INSTALL" >&6; }
3864
3865# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3866# It thinks the first close brace ends the variable substitution.
3867test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3868
3869test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3870
3871test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3872
3873test "$program_prefix" != NONE &&
3874 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3875# Use a double $ so make ignores it.
3876test "$program_suffix" != NONE &&
3877 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3878# Double any \ or $.
3879# By default was `s,x,x', remove it if useless.
3880ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3881program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3882
3883# expand $ac_aux_dir to an absolute path
3884am_aux_dir=`cd $ac_aux_dir && pwd`
3885
3886if test x"${MISSING+set}" != xset; then
3887 case $am_aux_dir in
3888 *\ * | *\ *)
3889 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3890 *)
3891 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3892 esac
3893fi
3894# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003895if eval "$MISSING --is-lightweight"; then
3896 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003897else
3898 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3900$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003901fi
3902
3903if test x"${install_sh}" != xset; then
3904 case $am_aux_dir in
3905 *\ * | *\ *)
3906 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3907 *)
3908 install_sh="\${SHELL} $am_aux_dir/install-sh"
3909 esac
3910fi
3911
cristyc0890a62012-07-19 00:18:20 +00003912# Installed binaries are usually stripped using 'strip' when the user
3913# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003914# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003915# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003916if test "$cross_compiling" != no; then
3917 if test -n "$ac_tool_prefix"; then
3918 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3919set dummy ${ac_tool_prefix}strip; ac_word=$2
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003922if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003923 $as_echo_n "(cached) " >&6
3924else
3925 if test -n "$STRIP"; then
3926 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3927else
3928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929for as_dir in $PATH
3930do
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003935 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 break 2
3938 fi
3939done
3940 done
3941IFS=$as_save_IFS
3942
3943fi
3944fi
3945STRIP=$ac_cv_prog_STRIP
3946if test -n "$STRIP"; then
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3948$as_echo "$STRIP" >&6; }
3949else
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951$as_echo "no" >&6; }
3952fi
3953
3954
3955fi
3956if test -z "$ac_cv_prog_STRIP"; then
3957 ac_ct_STRIP=$STRIP
3958 # Extract the first word of "strip", so it can be a program name with args.
3959set dummy strip; ac_word=$2
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003962if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003963 $as_echo_n "(cached) " >&6
3964else
3965 if test -n "$ac_ct_STRIP"; then
3966 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3967else
3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH
3970do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003975 ac_cv_prog_ac_ct_STRIP="strip"
3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 break 2
3978 fi
3979done
3980 done
3981IFS=$as_save_IFS
3982
3983fi
3984fi
3985ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3986if test -n "$ac_ct_STRIP"; then
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3988$as_echo "$ac_ct_STRIP" >&6; }
3989else
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991$as_echo "no" >&6; }
3992fi
3993
3994 if test "x$ac_ct_STRIP" = x; then
3995 STRIP=":"
3996 else
3997 case $cross_compiling:$ac_tool_warned in
3998yes:)
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4001ac_tool_warned=yes ;;
4002esac
4003 STRIP=$ac_ct_STRIP
4004 fi
4005else
4006 STRIP="$ac_cv_prog_STRIP"
4007fi
4008
4009fi
4010INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4011
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4013$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4014if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004015 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004016 $as_echo_n "(cached) " >&6
4017else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4020do
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_prog in mkdir gmkdir; do
4024 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004025 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004026 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4027 'mkdir (GNU coreutils) '* | \
4028 'mkdir (coreutils) '* | \
4029 'mkdir (fileutils) '4.1*)
4030 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4031 break 3;;
4032 esac
4033 done
4034 done
4035 done
4036IFS=$as_save_IFS
4037
4038fi
4039
4040 test -d ./--version && rmdir ./--version
4041 if test "${ac_cv_path_mkdir+set}" = set; then
4042 MKDIR_P="$ac_cv_path_mkdir -p"
4043 else
4044 # As a last resort, use the slow shell script. Don't cache a
4045 # value for MKDIR_P within a source directory, because that will
4046 # break other packages using the cache if that directory is
4047 # removed, or if the value is a relative name.
4048 MKDIR_P="$ac_install_sh -d"
4049 fi
4050fi
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4052$as_echo "$MKDIR_P" >&6; }
4053
cristy73bd4a52010-10-05 11:24:23 +00004054for ac_prog in gawk mawk nawk awk
4055do
4056 # Extract the first word of "$ac_prog", so it can be a program name with args.
4057set dummy $ac_prog; ac_word=$2
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004060if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004061 $as_echo_n "(cached) " >&6
4062else
4063 if test -n "$AWK"; then
4064 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4065else
4066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH
4068do
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004073 ac_cv_prog_AWK="$ac_prog"
4074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075 break 2
4076 fi
4077done
4078 done
4079IFS=$as_save_IFS
4080
4081fi
4082fi
4083AWK=$ac_cv_prog_AWK
4084if test -n "$AWK"; then
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4086$as_echo "$AWK" >&6; }
4087else
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089$as_echo "no" >&6; }
4090fi
4091
4092
4093 test -n "$AWK" && break
4094done
4095
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4097$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4098set x ${MAKE-make}
4099ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004100if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004101 $as_echo_n "(cached) " >&6
4102else
4103 cat >conftest.make <<\_ACEOF
4104SHELL = /bin/sh
4105all:
4106 @echo '@@@%%%=$(MAKE)=@@@%%%'
4107_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004108# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004109case `${MAKE-make} -f conftest.make 2>/dev/null` in
4110 *@@@%%%=?*=@@@%%%*)
4111 eval ac_cv_prog_make_${ac_make}_set=yes;;
4112 *)
4113 eval ac_cv_prog_make_${ac_make}_set=no;;
4114esac
4115rm -f conftest.make
4116fi
4117if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4119$as_echo "yes" >&6; }
4120 SET_MAKE=
4121else
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123$as_echo "no" >&6; }
4124 SET_MAKE="MAKE=${MAKE-make}"
4125fi
4126
4127rm -rf .tst 2>/dev/null
4128mkdir .tst 2>/dev/null
4129if test -d .tst; then
4130 am__leading_dot=.
4131else
4132 am__leading_dot=_
4133fi
4134rmdir .tst 2>/dev/null
4135
cristya448bd22011-10-14 12:38:13 +00004136# Check whether --enable-silent-rules was given.
4137if test "${enable_silent_rules+set}" = set; then :
4138 enableval=$enable_silent_rules;
4139fi
4140
cristyc0890a62012-07-19 00:18:20 +00004141case $enable_silent_rules in # (((
4142 yes) AM_DEFAULT_VERBOSITY=0;;
4143 no) AM_DEFAULT_VERBOSITY=1;;
4144 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004145esac
cristyc3fb77b2012-02-06 01:49:41 +00004146am_make=${MAKE-make}
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4148$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4149if ${am_cv_make_support_nested_variables+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151else
4152 if $as_echo 'TRUE=$(BAR$(V))
4153BAR0=false
4154BAR1=true
4155V=1
4156am__doit:
4157 @$(TRUE)
4158.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4159 am_cv_make_support_nested_variables=yes
4160else
4161 am_cv_make_support_nested_variables=no
4162fi
4163fi
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4165$as_echo "$am_cv_make_support_nested_variables" >&6; }
4166if test $am_cv_make_support_nested_variables = yes; then
4167 AM_V='$(V)'
4168 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4169else
4170 AM_V=$AM_DEFAULT_VERBOSITY
4171 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4172fi
cristya448bd22011-10-14 12:38:13 +00004173AM_BACKSLASH='\'
4174
cristy73bd4a52010-10-05 11:24:23 +00004175if test "`cd $srcdir && pwd`" != "`pwd`"; then
4176 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4177 # is not polluted with repeated "-I."
4178 am__isrc=' -I$(srcdir)'
4179 # test to see if srcdir already configured
4180 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004181 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004182 fi
4183fi
4184
4185# test whether we have cygpath
4186if test -z "$CYGPATH_W"; then
4187 if (cygpath --version) >/dev/null 2>/dev/null; then
4188 CYGPATH_W='cygpath -w'
4189 else
4190 CYGPATH_W=echo
4191 fi
4192fi
4193
4194
4195# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004196 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004197 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004198
4199
cristya448bd22011-10-14 12:38:13 +00004200cat >>confdefs.h <<_ACEOF
4201#define PACKAGE "$PACKAGE"
4202_ACEOF
4203
4204
4205cat >>confdefs.h <<_ACEOF
4206#define VERSION "$VERSION"
4207_ACEOF
4208
cristy73bd4a52010-10-05 11:24:23 +00004209# Some tools Automake needs.
4210
4211ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4212
4213
4214AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4215
4216
4217AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4218
4219
4220AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4221
4222
4223MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4224
cristyc0890a62012-07-19 00:18:20 +00004225# For better backward compatibility. To be removed once Automake 1.9.x
4226# dies out for good. For more background, see:
4227# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4228# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4229mkdir_p='$(MKDIR_P)'
4230
cristy73bd4a52010-10-05 11:24:23 +00004231# We need awk for the "check" target. The system "awk" is bad on
4232# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004233# Always define AMTAR for backward compatibility. Yes, it's still used
4234# in the wild :-( We should find a proper way to deprecate it ...
4235AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004236
cristye69bdbe2013-05-03 21:40:44 +00004237
4238# We'll loop over all known methods to create a tar archive until one works.
4239_am_tools='gnutar pax cpio none'
4240
cristyc3fb77b2012-02-06 01:49:41 +00004241am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004242
4243
4244
4245
4246
cristy3ed852e2009-09-05 21:47:34 +00004247
cristya5bda012013-11-03 18:05:38 +00004248# POSIX will say in a future version that running "rm -f" with no argument
4249# is OK; and we want to be able to make that assumption in our Makefile
4250# recipes. So use an aggressive probe to check that the usage we want is
4251# actually supported "in the wild" to an acceptable degree.
4252# See automake bug#10828.
4253# To make any issue more visible, cause the running configure to be aborted
4254# by default if the 'rm' program in use doesn't match our expectations; the
4255# user can still override this though.
4256if rm -f && rm -fr && rm -rf; then : OK; else
4257 cat >&2 <<'END'
4258Oops!
4259
4260Your 'rm' program seems unable to run without file operands specified
4261on the command line, even when the '-f' option is present. This is contrary
4262to the behaviour of most rm programs out there, and not conforming with
4263the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4264
4265Please tell bug-automake@gnu.org about your system, including the value
4266of your $PATH and any error possibly output before this message. This
4267can help us improve future automake versions.
4268
4269END
4270 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4271 echo 'Configuration will proceed anyway, since you have set the' >&2
4272 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4273 echo >&2
4274 else
4275 cat >&2 <<'END'
4276Aborting the configuration process, to ensure you take notice of the issue.
4277
4278You can download and install GNU coreutils to get an 'rm' implementation
4279that behaves properly: <http://www.gnu.org/software/coreutils/>.
4280
4281If you want to complete the configuration process using your problematic
4282'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4283to "yes", and re-run configure.
4284
4285END
4286 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4287 fi
4288fi
cristye69bdbe2013-05-03 21:40:44 +00004289
cristy3ed852e2009-09-05 21:47:34 +00004290# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004291# Check whether --enable-silent-rules was given.
4292if test "${enable_silent_rules+set}" = set; then :
4293 enableval=$enable_silent_rules;
4294fi
4295
cristyc0890a62012-07-19 00:18:20 +00004296case $enable_silent_rules in # (((
4297 yes) AM_DEFAULT_VERBOSITY=0;;
4298 no) AM_DEFAULT_VERBOSITY=1;;
4299 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004300esac
cristyc3fb77b2012-02-06 01:49:41 +00004301am_make=${MAKE-make}
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4303$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4304if ${am_cv_make_support_nested_variables+:} false; then :
4305 $as_echo_n "(cached) " >&6
4306else
4307 if $as_echo 'TRUE=$(BAR$(V))
4308BAR0=false
4309BAR1=true
4310V=1
4311am__doit:
4312 @$(TRUE)
4313.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4314 am_cv_make_support_nested_variables=yes
4315else
4316 am_cv_make_support_nested_variables=no
4317fi
4318fi
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4320$as_echo "$am_cv_make_support_nested_variables" >&6; }
4321if test $am_cv_make_support_nested_variables = yes; then
4322 AM_V='$(V)'
4323 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4324else
4325 AM_V=$AM_DEFAULT_VERBOSITY
4326 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4327fi
cristy73bd4a52010-10-05 11:24:23 +00004328AM_BACKSLASH='\'
4329
cristy3ed852e2009-09-05 21:47:34 +00004330
cristy5ed9c6e2013-07-14 21:20:31 +00004331# versionning of library
cristy3ed852e2009-09-05 21:47:34 +00004332MAGICK_LIB_VERSION="0x"
4333if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4334 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4335fi
4336MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4337if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4338 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4339fi
4340MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4341if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4342 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4343fi
4344MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4345
4346
4347# Definition used to define MagickLibVersionText in version.h
4348MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4349
4350
4351# Definition used to define MagickLibVersionNumber in version.h
4352MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4353
4354
cristy5ed9c6e2013-07-14 21:20:31 +00004355MAGICKPP_LIB_VERSION="0x"
4356if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4357 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4358fi
4359MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4360if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4361 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4362fi
4363MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4364if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4365 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4366fi
4367MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4368
4369
4370# Definition used to define MagickLibVersionText in version.h
4371MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4372
4373
4374# Definition used to define MagickLibVersionNumber in version.h
4375MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4376
4377
4378
4379
cristy3ed852e2009-09-05 21:47:34 +00004380# Regenerate config.status if ChangeLog or version.sh is updated.
4381CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4382
4383
4384PERLMAINCC=$CC
4385
4386MAGICK_CFLAGS=''
4387MAGICK_CPPFLAGS=$CPPFLAGS_USER
4388MAGICK_PCFLAGS=$CPPFLAGS_USER
4389MAGICK_LDFLAGS=''
4390MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004391MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004392
4393#
4394# Evaluate shell variable equivalents to Makefile directory variables
4395#
4396if test "x$prefix" = xNONE; then
4397 prefix=$ac_default_prefix
4398fi
4399# Let make expand exec_prefix.
4400if test "x$exec_prefix" = xNONE; then
4401 exec_prefix='${prefix}'
4402fi
4403
4404#
4405eval "eval PREFIX_DIR=${prefix}"
4406
4407eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4408
4409eval "eval BIN_DIR=$bindir"
4410
4411eval "eval SBIN_DIR=$sbindir"
4412
4413eval "eval LIBEXEC_DIR=$libexecdir"
4414
4415eval "eval DATA_DIR=$datadir"
4416
cristy4e65ec22012-04-08 01:33:27 +00004417eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004418
cristy3ed852e2009-09-05 21:47:34 +00004419eval "eval SYSCONF_DIR=$sysconfdir"
4420
4421eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4422
4423eval "eval LOCALSTATE_DIR=$localstatedir"
4424
4425eval "eval LIB_DIR=$libdir"
4426
4427eval "eval INCLUDE_DIR=$includedir"
4428
4429eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4430
4431eval "eval INFO_DIR=$infodir"
4432
4433eval "eval MAN_DIR=$mandir"
4434
4435
4436# Get full paths to source and build directories
4437srcdirfull="`cd $srcdir && pwd`"
4438builddir="`pwd`"
4439
4440#
4441# Compute variables useful for running uninstalled software.
4442#
4443MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4444MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4445MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4446MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4447DIRSEP=':'
4448case "${build_os}" in
4449 mingw* )
4450 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4451 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4452 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4453 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4454 DIRSEP=';'
4455 ;;
4456esac
4457case "${host_os}" in
4458 mingw* )
4459 DIRSEP=';'
4460 ;;
4461esac
4462
4463
4464
4465
4466
4467
cristya0b81c32010-01-22 02:54:33 +00004468
4469#
4470# Enable OS features.
4471#
cristy73bd4a52010-10-05 11:24:23 +00004472DEPDIR="${am__leading_dot}deps"
4473
4474ac_config_commands="$ac_config_commands depfiles"
4475
4476
4477am_make=${MAKE-make}
4478cat > confinc << 'END'
4479am__doit:
4480 @echo this is the am__doit target
4481.PHONY: am__doit
4482END
4483# If we don't find an include directive, just comment out the code.
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4485$as_echo_n "checking for style of include used by $am_make... " >&6; }
4486am__include="#"
4487am__quote=
4488_am_result=none
4489# First try GNU make style include.
4490echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004491# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004492case `$am_make -s -f confmf 2> /dev/null` in #(
4493*the\ am__doit\ target*)
4494 am__include=include
4495 am__quote=
4496 _am_result=GNU
4497 ;;
4498esac
4499# Now try BSD make style include.
4500if test "$am__include" = "#"; then
4501 echo '.include "confinc"' > confmf
4502 case `$am_make -s -f confmf 2> /dev/null` in #(
4503 *the\ am__doit\ target*)
4504 am__include=.include
4505 am__quote="\""
4506 _am_result=BSD
4507 ;;
4508 esac
4509fi
4510
4511
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4513$as_echo "$_am_result" >&6; }
4514rm -f confinc confmf
4515
4516# Check whether --enable-dependency-tracking was given.
4517if test "${enable_dependency_tracking+set}" = set; then :
4518 enableval=$enable_dependency_tracking;
4519fi
4520
4521if test "x$enable_dependency_tracking" != xno; then
4522 am_depcomp="$ac_aux_dir/depcomp"
4523 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004524 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004525fi
4526 if test "x$enable_dependency_tracking" != xno; then
4527 AMDEP_TRUE=
4528 AMDEP_FALSE='#'
4529else
4530 AMDEP_TRUE='#'
4531 AMDEP_FALSE=
4532fi
4533
4534
cristy3ed852e2009-09-05 21:47:34 +00004535ac_ext=c
4536ac_cpp='$CPP $CPPFLAGS'
4537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540if test -n "$ac_tool_prefix"; then
4541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4542set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004544$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004545if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004546 $as_echo_n "(cached) " >&6
4547else
4548 if test -n "$CC"; then
4549 ac_cv_prog_CC="$CC" # Let the user override the test.
4550else
4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004556 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004558 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004560 break 2
4561 fi
4562done
cristy8b350f62009-11-15 23:12:43 +00004563 done
cristy3ed852e2009-09-05 21:47:34 +00004564IFS=$as_save_IFS
4565
4566fi
4567fi
4568CC=$ac_cv_prog_CC
4569if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004571$as_echo "$CC" >&6; }
4572else
cristy8b350f62009-11-15 23:12:43 +00004573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004574$as_echo "no" >&6; }
4575fi
4576
4577
4578fi
4579if test -z "$ac_cv_prog_CC"; then
4580 ac_ct_CC=$CC
4581 # Extract the first word of "gcc", so it can be a program name with args.
4582set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004584$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004585if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004586 $as_echo_n "(cached) " >&6
4587else
4588 if test -n "$ac_ct_CC"; then
4589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4590else
4591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592for as_dir in $PATH
4593do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004596 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004598 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004600 break 2
4601 fi
4602done
cristy8b350f62009-11-15 23:12:43 +00004603 done
cristy3ed852e2009-09-05 21:47:34 +00004604IFS=$as_save_IFS
4605
4606fi
4607fi
4608ac_ct_CC=$ac_cv_prog_ac_ct_CC
4609if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004611$as_echo "$ac_ct_CC" >&6; }
4612else
cristy8b350f62009-11-15 23:12:43 +00004613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004614$as_echo "no" >&6; }
4615fi
4616
4617 if test "x$ac_ct_CC" = x; then
4618 CC=""
4619 else
4620 case $cross_compiling:$ac_tool_warned in
4621yes:)
cristy8b350f62009-11-15 23:12:43 +00004622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4624ac_tool_warned=yes ;;
4625esac
4626 CC=$ac_ct_CC
4627 fi
4628else
4629 CC="$ac_cv_prog_CC"
4630fi
4631
4632if test -z "$CC"; then
4633 if test -n "$ac_tool_prefix"; then
4634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4635set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004637$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004638if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004639 $as_echo_n "(cached) " >&6
4640else
4641 if test -n "$CC"; then
4642 ac_cv_prog_CC="$CC" # Let the user override the test.
4643else
4644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645for as_dir in $PATH
4646do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004649 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004651 ac_cv_prog_CC="${ac_tool_prefix}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
4659fi
4660fi
4661CC=$ac_cv_prog_CC
4662if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004664$as_echo "$CC" >&6; }
4665else
cristy8b350f62009-11-15 23:12:43 +00004666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004667$as_echo "no" >&6; }
4668fi
4669
4670
4671 fi
4672fi
4673if test -z "$CC"; then
4674 # Extract the first word of "cc", so it can be a program name with args.
4675set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004677$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004678if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004679 $as_echo_n "(cached) " >&6
4680else
4681 if test -n "$CC"; then
4682 ac_cv_prog_CC="$CC" # Let the user override the test.
4683else
4684 ac_prog_rejected=no
4685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686for as_dir in $PATH
4687do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004690 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4693 ac_prog_rejected=yes
4694 continue
4695 fi
4696 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004698 break 2
4699 fi
4700done
cristy8b350f62009-11-15 23:12:43 +00004701 done
cristy3ed852e2009-09-05 21:47:34 +00004702IFS=$as_save_IFS
4703
4704if test $ac_prog_rejected = yes; then
4705 # We found a bogon in the path, so make sure we never use it.
4706 set dummy $ac_cv_prog_CC
4707 shift
4708 if test $# != 0; then
4709 # We chose a different compiler from the bogus one.
4710 # However, it has the same basename, so the bogon will be chosen
4711 # first if we set CC to just the basename; use the full file name.
4712 shift
4713 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4714 fi
4715fi
4716fi
4717fi
4718CC=$ac_cv_prog_CC
4719if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004721$as_echo "$CC" >&6; }
4722else
cristy8b350f62009-11-15 23:12:43 +00004723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004724$as_echo "no" >&6; }
4725fi
4726
4727
4728fi
4729if test -z "$CC"; then
4730 if test -n "$ac_tool_prefix"; then
4731 for ac_prog in cl.exe
4732 do
4733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4734set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004737if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004738 $as_echo_n "(cached) " >&6
4739else
4740 if test -n "$CC"; then
4741 ac_cv_prog_CC="$CC" # Let the user override the test.
4742else
4743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744for as_dir in $PATH
4745do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004748 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004752 break 2
4753 fi
4754done
cristy8b350f62009-11-15 23:12:43 +00004755 done
cristy3ed852e2009-09-05 21:47:34 +00004756IFS=$as_save_IFS
4757
4758fi
4759fi
4760CC=$ac_cv_prog_CC
4761if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004763$as_echo "$CC" >&6; }
4764else
cristy8b350f62009-11-15 23:12:43 +00004765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004766$as_echo "no" >&6; }
4767fi
4768
4769
4770 test -n "$CC" && break
4771 done
4772fi
4773if test -z "$CC"; then
4774 ac_ct_CC=$CC
4775 for ac_prog in cl.exe
4776do
4777 # Extract the first word of "$ac_prog", so it can be a program name with args.
4778set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004780$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004781if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004782 $as_echo_n "(cached) " >&6
4783else
4784 if test -n "$ac_ct_CC"; then
4785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4786else
4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004792 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004794 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004796 break 2
4797 fi
4798done
cristy8b350f62009-11-15 23:12:43 +00004799 done
cristy3ed852e2009-09-05 21:47:34 +00004800IFS=$as_save_IFS
4801
4802fi
4803fi
4804ac_ct_CC=$ac_cv_prog_ac_ct_CC
4805if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004807$as_echo "$ac_ct_CC" >&6; }
4808else
cristy8b350f62009-11-15 23:12:43 +00004809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004810$as_echo "no" >&6; }
4811fi
4812
4813
4814 test -n "$ac_ct_CC" && break
4815done
4816
4817 if test "x$ac_ct_CC" = x; then
4818 CC=""
4819 else
4820 case $cross_compiling:$ac_tool_warned in
4821yes:)
cristy8b350f62009-11-15 23:12:43 +00004822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4824ac_tool_warned=yes ;;
4825esac
4826 CC=$ac_ct_CC
4827 fi
4828fi
4829
4830fi
4831
4832
cristy8b350f62009-11-15 23:12:43 +00004833test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004835as_fn_error $? "no acceptable C compiler found in \$PATH
4836See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004837
4838# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004839$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004840set X $ac_compile
4841ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004842for ac_option in --version -v -V -qversion; do
4843 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004844case "(($ac_try" in
4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4847esac
cristy8b350f62009-11-15 23:12:43 +00004848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4849$as_echo "$ac_try_echo"; } >&5
4850 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004851 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004852 if test -s conftest.err; then
4853 sed '10a\
4854... rest of stderr output deleted ...
4855 10q' conftest.err >conftest.er1
4856 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004857 fi
cristycd4c5312009-11-22 01:19:08 +00004858 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4860 test $ac_status = 0; }
4861done
cristy3ed852e2009-09-05 21:47:34 +00004862
cristy8b350f62009-11-15 23:12:43 +00004863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004864/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004865
cristy3ed852e2009-09-05 21:47:34 +00004866int
4867main ()
4868{
4869
4870 ;
4871 return 0;
4872}
4873_ACEOF
4874ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004875ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004876# Try to create an executable without -o first, disregard a.out.
4877# It will help us diagnose broken compilers, and finding out an intuition
4878# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4880$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004881ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4882
4883# The possible output files:
4884ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4885
4886ac_rmfiles=
4887for ac_file in $ac_files
4888do
4889 case $ac_file in
4890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4891 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4892 esac
4893done
4894rm -f $ac_rmfiles
4895
cristy8b350f62009-11-15 23:12:43 +00004896if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004897case "(($ac_try" in
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4900esac
cristy8b350f62009-11-15 23:12:43 +00004901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4902$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004903 (eval "$ac_link_default") 2>&5
4904 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4906 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004907 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4908# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4909# in a Makefile. We should not override ac_cv_exeext if it was cached,
4910# so that the user can short-circuit this test for compilers unknown to
4911# Autoconf.
4912for ac_file in $ac_files ''
4913do
4914 test -f "$ac_file" || continue
4915 case $ac_file in
4916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4917 ;;
4918 [ab].out )
4919 # We found the default executable, but exeext='' is most
4920 # certainly right.
4921 break;;
4922 *.* )
cristy8b350f62009-11-15 23:12:43 +00004923 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004924 then :; else
4925 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4926 fi
4927 # We set ac_cv_exeext here because the later test for it is not
4928 # safe: cross compilers may not add the suffix if given an `-o'
4929 # argument, so we may need to know it at that point already.
4930 # Even if this section looks crufty: it has the advantage of
4931 # actually working.
4932 break;;
4933 * )
4934 break;;
4935 esac
4936done
4937test "$ac_cv_exeext" = no && ac_cv_exeext=
4938
4939else
4940 ac_file=''
4941fi
cristy8b350f62009-11-15 23:12:43 +00004942if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944$as_echo "no" >&6; }
4945$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004946sed 's/^/| /' conftest.$ac_ext >&5
4947
cristy8b350f62009-11-15 23:12:43 +00004948{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004950as_fn_error 77 "C compiler cannot create executables
4951See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004952else
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4954$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004955fi
cristycd4c5312009-11-22 01:19:08 +00004956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4957$as_echo_n "checking for C compiler default output file name... " >&6; }
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4959$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004960ac_exeext=$ac_cv_exeext
4961
cristycd4c5312009-11-22 01:19:08 +00004962rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004963ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004965$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004966if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004967case "(($ac_try" in
4968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969 *) ac_try_echo=$ac_try;;
4970esac
cristy8b350f62009-11-15 23:12:43 +00004971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4972$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004973 (eval "$ac_link") 2>&5
4974 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4976 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004977 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4978# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4979# work properly (i.e., refer to `conftest.exe'), while it won't with
4980# `rm'.
4981for ac_file in conftest.exe conftest conftest.*; do
4982 test -f "$ac_file" || continue
4983 case $ac_file in
4984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4985 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4986 break;;
4987 * ) break;;
4988 esac
4989done
4990else
cristy8b350f62009-11-15 23:12:43 +00004991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004993as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4994See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004995fi
cristycd4c5312009-11-22 01:19:08 +00004996rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004998$as_echo "$ac_cv_exeext" >&6; }
4999
5000rm -f conftest.$ac_ext
5001EXEEXT=$ac_cv_exeext
5002ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004/* end confdefs.h. */
5005#include <stdio.h>
5006int
5007main ()
5008{
5009FILE *f = fopen ("conftest.out", "w");
5010 return ferror (f) || fclose (f) != 0;
5011
5012 ;
5013 return 0;
5014}
5015_ACEOF
5016ac_clean_files="$ac_clean_files conftest.out"
5017# Check that the compiler produces executables we can run. If not, either
5018# the compiler is broken, or we cross compile.
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5020$as_echo_n "checking whether we are cross compiling... " >&6; }
5021if test "$cross_compiling" != yes; then
5022 { { ac_try="$ac_link"
5023case "(($ac_try" in
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5026esac
5027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5028$as_echo "$ac_try_echo"; } >&5
5029 (eval "$ac_link") 2>&5
5030 ac_status=$?
5031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5032 test $ac_status = 0; }
5033 if { ac_try='./conftest$ac_cv_exeext'
5034 { { case "(($ac_try" in
5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5037esac
5038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5039$as_echo "$ac_try_echo"; } >&5
5040 (eval "$ac_try") 2>&5
5041 ac_status=$?
5042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5043 test $ac_status = 0; }; }; then
5044 cross_compiling=no
5045 else
5046 if test "$cross_compiling" = maybe; then
5047 cross_compiling=yes
5048 else
5049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005051as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005052If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005053See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005054 fi
5055 fi
5056fi
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5058$as_echo "$cross_compiling" >&6; }
5059
5060rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5061ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005063$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005064if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005065 $as_echo_n "(cached) " >&6
5066else
cristy8b350f62009-11-15 23:12:43 +00005067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005068/* end confdefs.h. */
5069
5070int
5071main ()
5072{
5073
5074 ;
5075 return 0;
5076}
5077_ACEOF
5078rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005079if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005080case "(($ac_try" in
5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5083esac
cristy8b350f62009-11-15 23:12:43 +00005084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5085$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005086 (eval "$ac_compile") 2>&5
5087 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5089 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005090 for ac_file in conftest.o conftest.obj conftest.*; do
5091 test -f "$ac_file" || continue;
5092 case $ac_file in
5093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5094 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5095 break;;
5096 esac
5097done
5098else
5099 $as_echo "$as_me: failed program was:" >&5
5100sed 's/^/| /' conftest.$ac_ext >&5
5101
cristy8b350f62009-11-15 23:12:43 +00005102{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005104as_fn_error $? "cannot compute suffix of object files: cannot compile
5105See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005106fi
cristy3ed852e2009-09-05 21:47:34 +00005107rm -f conftest.$ac_cv_objext conftest.$ac_ext
5108fi
cristy8b350f62009-11-15 23:12:43 +00005109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005110$as_echo "$ac_cv_objext" >&6; }
5111OBJEXT=$ac_cv_objext
5112ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005114$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005115if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005116 $as_echo_n "(cached) " >&6
5117else
cristy8b350f62009-11-15 23:12:43 +00005118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005119/* end confdefs.h. */
5120
5121int
5122main ()
5123{
5124#ifndef __GNUC__
5125 choke me
5126#endif
5127
5128 ;
5129 return 0;
5130}
5131_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005132if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005133 ac_compiler_gnu=yes
5134else
cristy8b350f62009-11-15 23:12:43 +00005135 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005136fi
cristy3ed852e2009-09-05 21:47:34 +00005137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138ac_cv_c_compiler_gnu=$ac_compiler_gnu
5139
5140fi
cristy8b350f62009-11-15 23:12:43 +00005141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005142$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5143if test $ac_compiler_gnu = yes; then
5144 GCC=yes
5145else
5146 GCC=
5147fi
5148ac_test_CFLAGS=${CFLAGS+set}
5149ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005151$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005152if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005153 $as_echo_n "(cached) " >&6
5154else
5155 ac_save_c_werror_flag=$ac_c_werror_flag
5156 ac_c_werror_flag=yes
5157 ac_cv_prog_cc_g=no
5158 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005160/* end confdefs.h. */
5161
5162int
5163main ()
5164{
5165
5166 ;
5167 return 0;
5168}
5169_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005170if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005171 ac_cv_prog_cc_g=yes
5172else
cristy8b350f62009-11-15 23:12:43 +00005173 CFLAGS=""
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005175/* end confdefs.h. */
5176
5177int
5178main ()
5179{
5180
5181 ;
5182 return 0;
5183}
5184_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005185if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005186
cristy8b350f62009-11-15 23:12:43 +00005187else
5188 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005189 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005191/* end confdefs.h. */
5192
5193int
5194main ()
5195{
5196
5197 ;
5198 return 0;
5199}
5200_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005201if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005202 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005203fi
cristy3ed852e2009-09-05 21:47:34 +00005204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205fi
cristy3ed852e2009-09-05 21:47:34 +00005206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207fi
cristy3ed852e2009-09-05 21:47:34 +00005208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209 ac_c_werror_flag=$ac_save_c_werror_flag
5210fi
cristy8b350f62009-11-15 23:12:43 +00005211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005212$as_echo "$ac_cv_prog_cc_g" >&6; }
5213if test "$ac_test_CFLAGS" = set; then
5214 CFLAGS=$ac_save_CFLAGS
5215elif test $ac_cv_prog_cc_g = yes; then
5216 if test "$GCC" = yes; then
5217 CFLAGS="-g -O2"
5218 else
5219 CFLAGS="-g"
5220 fi
5221else
5222 if test "$GCC" = yes; then
5223 CFLAGS="-O2"
5224 else
5225 CFLAGS=
5226 fi
5227fi
cristy8b350f62009-11-15 23:12:43 +00005228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005229$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005230if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005231 $as_echo_n "(cached) " >&6
5232else
5233 ac_cv_prog_cc_c89=no
5234ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005236/* end confdefs.h. */
5237#include <stdarg.h>
5238#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005239struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005240/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5241struct buf { int x; };
5242FILE * (*rcsopen) (struct buf *, struct stat *, int);
5243static char *e (p, i)
5244 char **p;
5245 int i;
5246{
5247 return p[i];
5248}
5249static char *f (char * (*g) (char **, int), char **p, ...)
5250{
5251 char *s;
5252 va_list v;
5253 va_start (v,p);
5254 s = g (p, va_arg (v,int));
5255 va_end (v);
5256 return s;
5257}
5258
5259/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5260 function prototypes and stuff, but not '\xHH' hex character constants.
5261 These don't provoke an error unfortunately, instead are silently treated
5262 as 'x'. The following induces an error, until -std is added to get
5263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5264 array size at least. It's necessary to write '\x00'==0 to get something
5265 that's true only with -std. */
5266int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5267
5268/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5269 inside strings and character constants. */
5270#define FOO(x) 'x'
5271int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5272
5273int test (int i, double x);
5274struct s1 {int (*f) (int a);};
5275struct s2 {int (*f) (double a);};
5276int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5277int argc;
5278char **argv;
5279int
5280main ()
5281{
5282return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5283 ;
5284 return 0;
5285}
5286_ACEOF
5287for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5289do
5290 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005291 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005292 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005293fi
cristy3ed852e2009-09-05 21:47:34 +00005294rm -f core conftest.err conftest.$ac_objext
5295 test "x$ac_cv_prog_cc_c89" != "xno" && break
5296done
5297rm -f conftest.$ac_ext
5298CC=$ac_save_CC
5299
5300fi
5301# AC_CACHE_VAL
5302case "x$ac_cv_prog_cc_c89" in
5303 x)
cristy8b350f62009-11-15 23:12:43 +00005304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005305$as_echo "none needed" >&6; } ;;
5306 xno)
cristy8b350f62009-11-15 23:12:43 +00005307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005308$as_echo "unsupported" >&6; } ;;
5309 *)
5310 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005312$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5313esac
cristy8b350f62009-11-15 23:12:43 +00005314if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005315
cristy8b350f62009-11-15 23:12:43 +00005316fi
cristy3ed852e2009-09-05 21:47:34 +00005317
5318ac_ext=c
5319ac_cpp='$CPP $CPPFLAGS'
5320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005323
cristya5bda012013-11-03 18:05:38 +00005324ac_ext=c
5325ac_cpp='$CPP $CPPFLAGS'
5326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5328ac_compiler_gnu=$ac_cv_c_compiler_gnu
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5330$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5331if ${am_cv_prog_cc_c_o+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333else
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335/* end confdefs.h. */
5336
5337int
5338main ()
5339{
5340
5341 ;
5342 return 0;
5343}
5344_ACEOF
5345 # Make sure it works both with $CC and with simple cc.
5346 # Following AC_PROG_CC_C_O, we do the test twice because some
5347 # compilers refuse to overwrite an existing .o file with -o,
5348 # though they will create one.
5349 am_cv_prog_cc_c_o=yes
5350 for am_i in 1 2; do
5351 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5352 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } \
5356 && test -f conftest2.$ac_objext; then
5357 : OK
5358 else
5359 am_cv_prog_cc_c_o=no
5360 break
5361 fi
5362 done
5363 rm -f core conftest*
5364 unset am_i
5365fi
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5367$as_echo "$am_cv_prog_cc_c_o" >&6; }
5368if test "$am_cv_prog_cc_c_o" != yes; then
5369 # Losing compiler, so override with the script.
5370 # FIXME: It is wrong to rewrite CC.
5371 # But if we don't then we get into trouble of one sort or another.
5372 # A longer-term fix would be to have automake use am__CC in this case,
5373 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5374 CC="$am_aux_dir/compile $CC"
5375fi
5376ac_ext=c
5377ac_cpp='$CPP $CPPFLAGS'
5378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380ac_compiler_gnu=$ac_cv_c_compiler_gnu
5381
5382
cristy73bd4a52010-10-05 11:24:23 +00005383depcc="$CC" am_compiler_list=
5384
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5386$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005387if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005388 $as_echo_n "(cached) " >&6
5389else
5390 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5391 # We make a subdir and do the tests there. Otherwise we can end up
5392 # making bogus files that we don't know about and never remove. For
5393 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005394 # making a dummy file named 'D' -- because '-MD' means "put the output
5395 # in D".
cristy7247bba2012-02-05 16:37:27 +00005396 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005397 mkdir conftest.dir
5398 # Copy depcomp to subdir because otherwise we won't find it if we're
5399 # using a relative directory.
5400 cp "$am_depcomp" conftest.dir
5401 cd conftest.dir
5402 # We will build objects and dependencies in a subdirectory because
5403 # it helps to detect inapplicable dependency modes. For instance
5404 # both Tru64's cc and ICC support -MD to output dependencies as a
5405 # side effect of compilation, but ICC will put the dependencies in
5406 # the current directory while Tru64 will put them in the object
5407 # directory.
5408 mkdir sub
5409
5410 am_cv_CC_dependencies_compiler_type=none
5411 if test "$am_compiler_list" = ""; then
5412 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5413 fi
5414 am__universal=false
5415 case " $depcc " in #(
5416 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5417 esac
5418
5419 for depmode in $am_compiler_list; do
5420 # Setup a source with many dependencies, because some compilers
5421 # like to wrap large dependency lists on column 80 (with \), and
5422 # we should not choose a depcomp mode which is confused by this.
5423 #
5424 # We need to recreate these files for each test, as the compiler may
5425 # overwrite some of them when testing with obscure command lines.
5426 # This happens at least with the AIX C compiler.
5427 : > sub/conftest.c
5428 for i in 1 2 3 4 5 6; do
5429 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005430 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5431 # Solaris 10 /bin/sh.
5432 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005433 done
5434 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5435
cristyc0890a62012-07-19 00:18:20 +00005436 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005437 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005438 # handle '-M -o', and we need to detect this. Also, some Intel
5439 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005440 am__obj=sub/conftest.${OBJEXT-o}
5441 am__minus_obj="-o $am__obj"
5442 case $depmode in
5443 gcc)
5444 # This depmode causes a compiler race in universal mode.
5445 test "$am__universal" = false || continue
5446 ;;
5447 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005448 # After this tag, mechanisms are not by side-effect, so they'll
5449 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005450 if test "x$enable_dependency_tracking" = xyes; then
5451 continue
5452 else
5453 break
5454 fi
5455 ;;
cristy7247bba2012-02-05 16:37:27 +00005456 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005457 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005458 # not run yet. These depmodes are late enough in the game, and
5459 # so weak that their functioning should not be impacted.
5460 am__obj=conftest.${OBJEXT-o}
5461 am__minus_obj=
5462 ;;
5463 none) break ;;
5464 esac
5465 if depmode=$depmode \
5466 source=sub/conftest.c object=$am__obj \
5467 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5468 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5469 >/dev/null 2>conftest.err &&
5470 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5471 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5472 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5473 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5474 # icc doesn't choke on unknown options, it will just issue warnings
5475 # or remarks (even with -Werror). So we grep stderr for any message
5476 # that says an option was ignored or not supported.
5477 # When given -MP, icc 7.0 and 7.1 complain thusly:
5478 # icc: Command line warning: ignoring option '-M'; no argument required
5479 # The diagnosis changed in icc 8.0:
5480 # icc: Command line remark: option '-MP' not supported
5481 if (grep 'ignoring option' conftest.err ||
5482 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5483 am_cv_CC_dependencies_compiler_type=$depmode
5484 break
5485 fi
5486 fi
5487 done
5488
5489 cd ..
5490 rm -rf conftest.dir
5491else
5492 am_cv_CC_dependencies_compiler_type=none
5493fi
5494
5495fi
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5497$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5498CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5499
5500 if
5501 test "x$enable_dependency_tracking" != xno \
5502 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5503 am__fastdepCC_TRUE=
5504 am__fastdepCC_FALSE='#'
5505else
5506 am__fastdepCC_TRUE='#'
5507 am__fastdepCC_FALSE=
5508fi
5509
5510
cristy3ed852e2009-09-05 21:47:34 +00005511
cristya0b81c32010-01-22 02:54:33 +00005512ac_ext=c
5513ac_cpp='$CPP $CPPFLAGS'
5514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5516ac_compiler_gnu=$ac_cv_c_compiler_gnu
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5518$as_echo_n "checking how to run the C preprocessor... " >&6; }
5519# On Suns, sometimes $CPP names a directory.
5520if test -n "$CPP" && test -d "$CPP"; then
5521 CPP=
5522fi
5523if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005524 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005525 $as_echo_n "(cached) " >&6
5526else
5527 # Double quotes because CPP needs to be expanded
5528 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5529 do
5530 ac_preproc_ok=false
5531for ac_c_preproc_warn_flag in '' yes
5532do
5533 # Use a header file that comes with gcc, so configuring glibc
5534 # with a fresh cross-compiler works.
5535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5536 # <limits.h> exists even on freestanding compilers.
5537 # On the NeXT, cc -E runs the code through the compiler's parser,
5538 # not just through cpp. "Syntax error" is here to catch this case.
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540/* end confdefs.h. */
5541#ifdef __STDC__
5542# include <limits.h>
5543#else
5544# include <assert.h>
5545#endif
5546 Syntax error
5547_ACEOF
5548if ac_fn_c_try_cpp "$LINENO"; then :
5549
5550else
5551 # Broken: fails on valid input.
5552continue
5553fi
cristyda16f162011-02-19 23:52:17 +00005554rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005555
5556 # OK, works on sane cases. Now check whether nonexistent headers
5557 # can be detected and how.
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559/* end confdefs.h. */
5560#include <ac_nonexistent.h>
5561_ACEOF
5562if ac_fn_c_try_cpp "$LINENO"; then :
5563 # Broken: success on invalid input.
5564continue
5565else
5566 # Passes both tests.
5567ac_preproc_ok=:
5568break
5569fi
cristyda16f162011-02-19 23:52:17 +00005570rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005571
5572done
5573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005574rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005575if $ac_preproc_ok; then :
5576 break
5577fi
5578
5579 done
5580 ac_cv_prog_CPP=$CPP
5581
5582fi
5583 CPP=$ac_cv_prog_CPP
5584else
5585 ac_cv_prog_CPP=$CPP
5586fi
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5588$as_echo "$CPP" >&6; }
5589ac_preproc_ok=false
5590for ac_c_preproc_warn_flag in '' yes
5591do
5592 # Use a header file that comes with gcc, so configuring glibc
5593 # with a fresh cross-compiler works.
5594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5595 # <limits.h> exists even on freestanding compilers.
5596 # On the NeXT, cc -E runs the code through the compiler's parser,
5597 # not just through cpp. "Syntax error" is here to catch this case.
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599/* end confdefs.h. */
5600#ifdef __STDC__
5601# include <limits.h>
5602#else
5603# include <assert.h>
5604#endif
5605 Syntax error
5606_ACEOF
5607if ac_fn_c_try_cpp "$LINENO"; then :
5608
5609else
5610 # Broken: fails on valid input.
5611continue
5612fi
cristyda16f162011-02-19 23:52:17 +00005613rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005614
5615 # OK, works on sane cases. Now check whether nonexistent headers
5616 # can be detected and how.
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618/* end confdefs.h. */
5619#include <ac_nonexistent.h>
5620_ACEOF
5621if ac_fn_c_try_cpp "$LINENO"; then :
5622 # Broken: success on invalid input.
5623continue
5624else
5625 # Passes both tests.
5626ac_preproc_ok=:
5627break
5628fi
cristyda16f162011-02-19 23:52:17 +00005629rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005630
5631done
5632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005633rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005634if $ac_preproc_ok; then :
5635
5636else
5637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005639as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5640See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005641fi
5642
5643ac_ext=c
5644ac_cpp='$CPP $CPPFLAGS'
5645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5647ac_compiler_gnu=$ac_cv_c_compiler_gnu
5648
5649
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5651$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005652if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005653 $as_echo_n "(cached) " >&6
5654else
5655 if test -z "$GREP"; then
5656 ac_path_GREP_found=false
5657 # Loop through the user's path and test for each of PROGNAME-LIST
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5660do
5661 IFS=$as_save_IFS
5662 test -z "$as_dir" && as_dir=.
5663 for ac_prog in grep ggrep; do
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005666 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005667# Check for GNU ac_path_GREP and select it if it is found.
5668 # Check for GNU $ac_path_GREP
5669case `"$ac_path_GREP" --version 2>&1` in
5670*GNU*)
5671 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5672*)
5673 ac_count=0
5674 $as_echo_n 0123456789 >"conftest.in"
5675 while :
5676 do
5677 cat "conftest.in" "conftest.in" >"conftest.tmp"
5678 mv "conftest.tmp" "conftest.in"
5679 cp "conftest.in" "conftest.nl"
5680 $as_echo 'GREP' >> "conftest.nl"
5681 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5683 as_fn_arith $ac_count + 1 && ac_count=$as_val
5684 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5685 # Best one so far, save it but keep looking for a better one
5686 ac_cv_path_GREP="$ac_path_GREP"
5687 ac_path_GREP_max=$ac_count
5688 fi
5689 # 10*(2^10) chars as input seems more than enough
5690 test $ac_count -gt 10 && break
5691 done
5692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5693esac
5694
5695 $ac_path_GREP_found && break 3
5696 done
5697 done
5698 done
5699IFS=$as_save_IFS
5700 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005701 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005702 fi
5703else
5704 ac_cv_path_GREP=$GREP
5705fi
5706
5707fi
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5709$as_echo "$ac_cv_path_GREP" >&6; }
5710 GREP="$ac_cv_path_GREP"
5711
5712
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5714$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005715if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005716 $as_echo_n "(cached) " >&6
5717else
5718 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5719 then ac_cv_path_EGREP="$GREP -E"
5720 else
5721 if test -z "$EGREP"; then
5722 ac_path_EGREP_found=false
5723 # Loop through the user's path and test for each of PROGNAME-LIST
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5726do
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_prog in egrep; do
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005732 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005733# Check for GNU ac_path_EGREP and select it if it is found.
5734 # Check for GNU $ac_path_EGREP
5735case `"$ac_path_EGREP" --version 2>&1` in
5736*GNU*)
5737 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5738*)
5739 ac_count=0
5740 $as_echo_n 0123456789 >"conftest.in"
5741 while :
5742 do
5743 cat "conftest.in" "conftest.in" >"conftest.tmp"
5744 mv "conftest.tmp" "conftest.in"
5745 cp "conftest.in" "conftest.nl"
5746 $as_echo 'EGREP' >> "conftest.nl"
5747 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5749 as_fn_arith $ac_count + 1 && ac_count=$as_val
5750 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5751 # Best one so far, save it but keep looking for a better one
5752 ac_cv_path_EGREP="$ac_path_EGREP"
5753 ac_path_EGREP_max=$ac_count
5754 fi
5755 # 10*(2^10) chars as input seems more than enough
5756 test $ac_count -gt 10 && break
5757 done
5758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5759esac
5760
5761 $ac_path_EGREP_found && break 3
5762 done
5763 done
5764 done
5765IFS=$as_save_IFS
5766 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005767 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005768 fi
5769else
5770 ac_cv_path_EGREP=$EGREP
5771fi
5772
5773 fi
5774fi
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5776$as_echo "$ac_cv_path_EGREP" >&6; }
5777 EGREP="$ac_cv_path_EGREP"
5778
5779
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5781$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005782if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005783 $as_echo_n "(cached) " >&6
5784else
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786/* end confdefs.h. */
5787#include <stdlib.h>
5788#include <stdarg.h>
5789#include <string.h>
5790#include <float.h>
5791
5792int
5793main ()
5794{
5795
5796 ;
5797 return 0;
5798}
5799_ACEOF
5800if ac_fn_c_try_compile "$LINENO"; then :
5801 ac_cv_header_stdc=yes
5802else
5803 ac_cv_header_stdc=no
5804fi
5805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806
5807if test $ac_cv_header_stdc = yes; then
5808 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810/* end confdefs.h. */
5811#include <string.h>
5812
5813_ACEOF
5814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5815 $EGREP "memchr" >/dev/null 2>&1; then :
5816
5817else
5818 ac_cv_header_stdc=no
5819fi
5820rm -f conftest*
5821
5822fi
5823
5824if test $ac_cv_header_stdc = yes; then
5825 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827/* end confdefs.h. */
5828#include <stdlib.h>
5829
5830_ACEOF
5831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5832 $EGREP "free" >/dev/null 2>&1; then :
5833
5834else
5835 ac_cv_header_stdc=no
5836fi
5837rm -f conftest*
5838
5839fi
5840
5841if test $ac_cv_header_stdc = yes; then
5842 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5843 if test "$cross_compiling" = yes; then :
5844 :
5845else
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847/* end confdefs.h. */
5848#include <ctype.h>
5849#include <stdlib.h>
5850#if ((' ' & 0x0FF) == 0x020)
5851# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5852# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5853#else
5854# define ISLOWER(c) \
5855 (('a' <= (c) && (c) <= 'i') \
5856 || ('j' <= (c) && (c) <= 'r') \
5857 || ('s' <= (c) && (c) <= 'z'))
5858# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5859#endif
5860
5861#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5862int
5863main ()
5864{
5865 int i;
5866 for (i = 0; i < 256; i++)
5867 if (XOR (islower (i), ISLOWER (i))
5868 || toupper (i) != TOUPPER (i))
5869 return 2;
5870 return 0;
5871}
5872_ACEOF
5873if ac_fn_c_try_run "$LINENO"; then :
5874
5875else
5876 ac_cv_header_stdc=no
5877fi
5878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5879 conftest.$ac_objext conftest.beam conftest.$ac_ext
5880fi
5881
5882fi
5883fi
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5885$as_echo "$ac_cv_header_stdc" >&6; }
5886if test $ac_cv_header_stdc = yes; then
5887
5888$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5889
5890fi
5891
5892# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5893for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5894 inttypes.h stdint.h unistd.h
5895do :
5896 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5897ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5898"
cristy98dddb52010-11-04 00:30:15 +00005899if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005900 cat >>confdefs.h <<_ACEOF
5901#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5902_ACEOF
5903
5904fi
5905
5906done
5907
5908
5909
5910 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 +00005911if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005912 MINIX=yes
5913else
5914 MINIX=
5915fi
5916
5917
5918 if test "$MINIX" = yes; then
5919
5920$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5921
5922
5923$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5924
5925
5926$as_echo "#define _MINIX 1" >>confdefs.h
5927
5928 fi
5929
5930
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5932$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005933if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005934 $as_echo_n "(cached) " >&6
5935else
5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937/* end confdefs.h. */
5938
cristy14fefe52012-05-21 00:59:18 +00005939# define __EXTENSIONS__ 1
5940 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005941int
5942main ()
5943{
5944
5945 ;
5946 return 0;
5947}
5948_ACEOF
5949if ac_fn_c_try_compile "$LINENO"; then :
5950 ac_cv_safe_to_define___extensions__=yes
5951else
5952 ac_cv_safe_to_define___extensions__=no
5953fi
5954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955fi
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5957$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5958 test $ac_cv_safe_to_define___extensions__ = yes &&
5959 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5960
5961 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5962
5963 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5964
5965 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5966
5967 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5968
5969
5970
5971# Check for programs
5972ac_ext=c
5973ac_cpp='$CPP $CPPFLAGS'
5974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5976ac_compiler_gnu=$ac_cv_c_compiler_gnu
5977if test -n "$ac_tool_prefix"; then
5978 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5979set dummy ${ac_tool_prefix}gcc; ac_word=$2
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5981$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005982if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005983 $as_echo_n "(cached) " >&6
5984else
5985 if test -n "$CC"; then
5986 ac_cv_prog_CC="$CC" # Let the user override the test.
5987else
5988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989for as_dir in $PATH
5990do
5991 IFS=$as_save_IFS
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005995 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 break 2
5998 fi
5999done
6000 done
6001IFS=$as_save_IFS
6002
6003fi
6004fi
6005CC=$ac_cv_prog_CC
6006if test -n "$CC"; then
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6008$as_echo "$CC" >&6; }
6009else
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011$as_echo "no" >&6; }
6012fi
6013
6014
6015fi
6016if test -z "$ac_cv_prog_CC"; then
6017 ac_ct_CC=$CC
6018 # Extract the first word of "gcc", so it can be a program name with args.
6019set dummy gcc; ac_word=$2
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006022if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006023 $as_echo_n "(cached) " >&6
6024else
6025 if test -n "$ac_ct_CC"; then
6026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6027else
6028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029for as_dir in $PATH
6030do
6031 IFS=$as_save_IFS
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006035 ac_cv_prog_ac_ct_CC="gcc"
6036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 break 2
6038 fi
6039done
6040 done
6041IFS=$as_save_IFS
6042
6043fi
6044fi
6045ac_ct_CC=$ac_cv_prog_ac_ct_CC
6046if test -n "$ac_ct_CC"; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6048$as_echo "$ac_ct_CC" >&6; }
6049else
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051$as_echo "no" >&6; }
6052fi
6053
6054 if test "x$ac_ct_CC" = x; then
6055 CC=""
6056 else
6057 case $cross_compiling:$ac_tool_warned in
6058yes:)
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6061ac_tool_warned=yes ;;
6062esac
6063 CC=$ac_ct_CC
6064 fi
6065else
6066 CC="$ac_cv_prog_CC"
6067fi
6068
6069if test -z "$CC"; then
6070 if test -n "$ac_tool_prefix"; then
6071 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6072set dummy ${ac_tool_prefix}cc; ac_word=$2
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006075if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006076 $as_echo_n "(cached) " >&6
6077else
6078 if test -n "$CC"; then
6079 ac_cv_prog_CC="$CC" # Let the user override the test.
6080else
6081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082for as_dir in $PATH
6083do
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006088 ac_cv_prog_CC="${ac_tool_prefix}cc"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6091 fi
6092done
6093 done
6094IFS=$as_save_IFS
6095
6096fi
6097fi
6098CC=$ac_cv_prog_CC
6099if test -n "$CC"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6101$as_echo "$CC" >&6; }
6102else
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104$as_echo "no" >&6; }
6105fi
6106
6107
6108 fi
6109fi
6110if test -z "$CC"; then
6111 # Extract the first word of "cc", so it can be a program name with args.
6112set dummy cc; ac_word=$2
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006115if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006116 $as_echo_n "(cached) " >&6
6117else
6118 if test -n "$CC"; then
6119 ac_cv_prog_CC="$CC" # Let the user override the test.
6120else
6121 ac_prog_rejected=no
6122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123for as_dir in $PATH
6124do
6125 IFS=$as_save_IFS
6126 test -z "$as_dir" && as_dir=.
6127 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006129 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6130 ac_prog_rejected=yes
6131 continue
6132 fi
6133 ac_cv_prog_CC="cc"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6136 fi
6137done
6138 done
6139IFS=$as_save_IFS
6140
6141if test $ac_prog_rejected = yes; then
6142 # We found a bogon in the path, so make sure we never use it.
6143 set dummy $ac_cv_prog_CC
6144 shift
6145 if test $# != 0; then
6146 # We chose a different compiler from the bogus one.
6147 # However, it has the same basename, so the bogon will be chosen
6148 # first if we set CC to just the basename; use the full file name.
6149 shift
6150 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6151 fi
6152fi
6153fi
6154fi
6155CC=$ac_cv_prog_CC
6156if test -n "$CC"; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6158$as_echo "$CC" >&6; }
6159else
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161$as_echo "no" >&6; }
6162fi
6163
6164
6165fi
6166if test -z "$CC"; then
6167 if test -n "$ac_tool_prefix"; then
6168 for ac_prog in cl.exe
6169 do
6170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6171set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006174if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006175 $as_echo_n "(cached) " >&6
6176else
6177 if test -n "$CC"; then
6178 ac_cv_prog_CC="$CC" # Let the user override the test.
6179else
6180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181for as_dir in $PATH
6182do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006187 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 break 2
6190 fi
6191done
6192 done
6193IFS=$as_save_IFS
6194
6195fi
6196fi
6197CC=$ac_cv_prog_CC
6198if test -n "$CC"; then
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6200$as_echo "$CC" >&6; }
6201else
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203$as_echo "no" >&6; }
6204fi
6205
6206
6207 test -n "$CC" && break
6208 done
6209fi
6210if test -z "$CC"; then
6211 ac_ct_CC=$CC
6212 for ac_prog in cl.exe
6213do
6214 # Extract the first word of "$ac_prog", so it can be a program name with args.
6215set dummy $ac_prog; ac_word=$2
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006218if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006219 $as_echo_n "(cached) " >&6
6220else
6221 if test -n "$ac_ct_CC"; then
6222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6223else
6224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225for as_dir in $PATH
6226do
6227 IFS=$as_save_IFS
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006231 ac_cv_prog_ac_ct_CC="$ac_prog"
6232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 break 2
6234 fi
6235done
6236 done
6237IFS=$as_save_IFS
6238
6239fi
6240fi
6241ac_ct_CC=$ac_cv_prog_ac_ct_CC
6242if test -n "$ac_ct_CC"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6244$as_echo "$ac_ct_CC" >&6; }
6245else
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247$as_echo "no" >&6; }
6248fi
6249
6250
6251 test -n "$ac_ct_CC" && break
6252done
6253
6254 if test "x$ac_ct_CC" = x; then
6255 CC=""
6256 else
6257 case $cross_compiling:$ac_tool_warned in
6258yes:)
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6261ac_tool_warned=yes ;;
6262esac
6263 CC=$ac_ct_CC
6264 fi
6265fi
6266
6267fi
6268
6269
6270test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006272as_fn_error $? "no acceptable C compiler found in \$PATH
6273See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006274
6275# Provide some information about the compiler.
6276$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6277set X $ac_compile
6278ac_compiler=$2
6279for ac_option in --version -v -V -qversion; do
6280 { { ac_try="$ac_compiler $ac_option >&5"
6281case "(($ac_try" in
6282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283 *) ac_try_echo=$ac_try;;
6284esac
6285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6286$as_echo "$ac_try_echo"; } >&5
6287 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6288 ac_status=$?
6289 if test -s conftest.err; then
6290 sed '10a\
6291... rest of stderr output deleted ...
6292 10q' conftest.err >conftest.er1
6293 cat conftest.er1 >&5
6294 fi
6295 rm -f conftest.er1 conftest.err
6296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6297 test $ac_status = 0; }
6298done
6299
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6301$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006302if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006303 $as_echo_n "(cached) " >&6
6304else
6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306/* end confdefs.h. */
6307
6308int
6309main ()
6310{
6311#ifndef __GNUC__
6312 choke me
6313#endif
6314
6315 ;
6316 return 0;
6317}
6318_ACEOF
6319if ac_fn_c_try_compile "$LINENO"; then :
6320 ac_compiler_gnu=yes
6321else
6322 ac_compiler_gnu=no
6323fi
6324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325ac_cv_c_compiler_gnu=$ac_compiler_gnu
6326
6327fi
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6329$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6330if test $ac_compiler_gnu = yes; then
6331 GCC=yes
6332else
6333 GCC=
6334fi
6335ac_test_CFLAGS=${CFLAGS+set}
6336ac_save_CFLAGS=$CFLAGS
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6338$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006339if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006340 $as_echo_n "(cached) " >&6
6341else
6342 ac_save_c_werror_flag=$ac_c_werror_flag
6343 ac_c_werror_flag=yes
6344 ac_cv_prog_cc_g=no
6345 CFLAGS="-g"
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347/* end confdefs.h. */
6348
6349int
6350main ()
6351{
6352
6353 ;
6354 return 0;
6355}
6356_ACEOF
6357if ac_fn_c_try_compile "$LINENO"; then :
6358 ac_cv_prog_cc_g=yes
6359else
6360 CFLAGS=""
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362/* end confdefs.h. */
6363
6364int
6365main ()
6366{
6367
6368 ;
6369 return 0;
6370}
6371_ACEOF
6372if ac_fn_c_try_compile "$LINENO"; then :
6373
6374else
6375 ac_c_werror_flag=$ac_save_c_werror_flag
6376 CFLAGS="-g"
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378/* end confdefs.h. */
6379
6380int
6381main ()
6382{
6383
6384 ;
6385 return 0;
6386}
6387_ACEOF
6388if ac_fn_c_try_compile "$LINENO"; then :
6389 ac_cv_prog_cc_g=yes
6390fi
6391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392fi
6393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394fi
6395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6396 ac_c_werror_flag=$ac_save_c_werror_flag
6397fi
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6399$as_echo "$ac_cv_prog_cc_g" >&6; }
6400if test "$ac_test_CFLAGS" = set; then
6401 CFLAGS=$ac_save_CFLAGS
6402elif test $ac_cv_prog_cc_g = yes; then
6403 if test "$GCC" = yes; then
6404 CFLAGS="-g -O2"
6405 else
6406 CFLAGS="-g"
6407 fi
6408else
6409 if test "$GCC" = yes; then
6410 CFLAGS="-O2"
6411 else
6412 CFLAGS=
6413 fi
6414fi
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6416$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006417if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006418 $as_echo_n "(cached) " >&6
6419else
6420 ac_cv_prog_cc_c89=no
6421ac_save_CC=$CC
6422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423/* end confdefs.h. */
6424#include <stdarg.h>
6425#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006426struct stat;
cristya0b81c32010-01-22 02:54:33 +00006427/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6428struct buf { int x; };
6429FILE * (*rcsopen) (struct buf *, struct stat *, int);
6430static char *e (p, i)
6431 char **p;
6432 int i;
6433{
6434 return p[i];
6435}
6436static char *f (char * (*g) (char **, int), char **p, ...)
6437{
6438 char *s;
6439 va_list v;
6440 va_start (v,p);
6441 s = g (p, va_arg (v,int));
6442 va_end (v);
6443 return s;
6444}
6445
6446/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6447 function prototypes and stuff, but not '\xHH' hex character constants.
6448 These don't provoke an error unfortunately, instead are silently treated
6449 as 'x'. The following induces an error, until -std is added to get
6450 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6451 array size at least. It's necessary to write '\x00'==0 to get something
6452 that's true only with -std. */
6453int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6454
6455/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6456 inside strings and character constants. */
6457#define FOO(x) 'x'
6458int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6459
6460int test (int i, double x);
6461struct s1 {int (*f) (int a);};
6462struct s2 {int (*f) (double a);};
6463int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6464int argc;
6465char **argv;
6466int
6467main ()
6468{
6469return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6470 ;
6471 return 0;
6472}
6473_ACEOF
6474for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6475 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6476do
6477 CC="$ac_save_CC $ac_arg"
6478 if ac_fn_c_try_compile "$LINENO"; then :
6479 ac_cv_prog_cc_c89=$ac_arg
6480fi
6481rm -f core conftest.err conftest.$ac_objext
6482 test "x$ac_cv_prog_cc_c89" != "xno" && break
6483done
6484rm -f conftest.$ac_ext
6485CC=$ac_save_CC
6486
6487fi
6488# AC_CACHE_VAL
6489case "x$ac_cv_prog_cc_c89" in
6490 x)
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6492$as_echo "none needed" >&6; } ;;
6493 xno)
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6495$as_echo "unsupported" >&6; } ;;
6496 *)
6497 CC="$CC $ac_cv_prog_cc_c89"
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6499$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6500esac
6501if test "x$ac_cv_prog_cc_c89" != xno; then :
6502
6503fi
6504
6505ac_ext=c
6506ac_cpp='$CPP $CPPFLAGS'
6507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6509ac_compiler_gnu=$ac_cv_c_compiler_gnu
6510
cristya5bda012013-11-03 18:05:38 +00006511ac_ext=c
6512ac_cpp='$CPP $CPPFLAGS'
6513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6515ac_compiler_gnu=$ac_cv_c_compiler_gnu
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6517$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6518if ${am_cv_prog_cc_c_o+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520else
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522/* end confdefs.h. */
6523
6524int
6525main ()
6526{
6527
6528 ;
6529 return 0;
6530}
6531_ACEOF
6532 # Make sure it works both with $CC and with simple cc.
6533 # Following AC_PROG_CC_C_O, we do the test twice because some
6534 # compilers refuse to overwrite an existing .o file with -o,
6535 # though they will create one.
6536 am_cv_prog_cc_c_o=yes
6537 for am_i in 1 2; do
6538 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6539 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } \
6543 && test -f conftest2.$ac_objext; then
6544 : OK
6545 else
6546 am_cv_prog_cc_c_o=no
6547 break
6548 fi
6549 done
6550 rm -f core conftest*
6551 unset am_i
6552fi
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6554$as_echo "$am_cv_prog_cc_c_o" >&6; }
6555if test "$am_cv_prog_cc_c_o" != yes; then
6556 # Losing compiler, so override with the script.
6557 # FIXME: It is wrong to rewrite CC.
6558 # But if we don't then we get into trouble of one sort or another.
6559 # A longer-term fix would be to have automake use am__CC in this case,
6560 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6561 CC="$am_aux_dir/compile $CC"
6562fi
6563ac_ext=c
6564ac_cpp='$CPP $CPPFLAGS'
6565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6567ac_compiler_gnu=$ac_cv_c_compiler_gnu
6568
6569
cristy73bd4a52010-10-05 11:24:23 +00006570depcc="$CC" am_compiler_list=
6571
6572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6573$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006574if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006575 $as_echo_n "(cached) " >&6
6576else
6577 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6578 # We make a subdir and do the tests there. Otherwise we can end up
6579 # making bogus files that we don't know about and never remove. For
6580 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006581 # making a dummy file named 'D' -- because '-MD' means "put the output
6582 # in D".
cristy7247bba2012-02-05 16:37:27 +00006583 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006584 mkdir conftest.dir
6585 # Copy depcomp to subdir because otherwise we won't find it if we're
6586 # using a relative directory.
6587 cp "$am_depcomp" conftest.dir
6588 cd conftest.dir
6589 # We will build objects and dependencies in a subdirectory because
6590 # it helps to detect inapplicable dependency modes. For instance
6591 # both Tru64's cc and ICC support -MD to output dependencies as a
6592 # side effect of compilation, but ICC will put the dependencies in
6593 # the current directory while Tru64 will put them in the object
6594 # directory.
6595 mkdir sub
6596
6597 am_cv_CC_dependencies_compiler_type=none
6598 if test "$am_compiler_list" = ""; then
6599 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6600 fi
6601 am__universal=false
6602 case " $depcc " in #(
6603 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6604 esac
6605
6606 for depmode in $am_compiler_list; do
6607 # Setup a source with many dependencies, because some compilers
6608 # like to wrap large dependency lists on column 80 (with \), and
6609 # we should not choose a depcomp mode which is confused by this.
6610 #
6611 # We need to recreate these files for each test, as the compiler may
6612 # overwrite some of them when testing with obscure command lines.
6613 # This happens at least with the AIX C compiler.
6614 : > sub/conftest.c
6615 for i in 1 2 3 4 5 6; do
6616 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006617 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6618 # Solaris 10 /bin/sh.
6619 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006620 done
6621 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6622
cristyc0890a62012-07-19 00:18:20 +00006623 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006624 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006625 # handle '-M -o', and we need to detect this. Also, some Intel
6626 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006627 am__obj=sub/conftest.${OBJEXT-o}
6628 am__minus_obj="-o $am__obj"
6629 case $depmode in
6630 gcc)
6631 # This depmode causes a compiler race in universal mode.
6632 test "$am__universal" = false || continue
6633 ;;
6634 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006635 # After this tag, mechanisms are not by side-effect, so they'll
6636 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006637 if test "x$enable_dependency_tracking" = xyes; then
6638 continue
6639 else
6640 break
6641 fi
6642 ;;
cristy7247bba2012-02-05 16:37:27 +00006643 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006644 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006645 # not run yet. These depmodes are late enough in the game, and
6646 # so weak that their functioning should not be impacted.
6647 am__obj=conftest.${OBJEXT-o}
6648 am__minus_obj=
6649 ;;
6650 none) break ;;
6651 esac
6652 if depmode=$depmode \
6653 source=sub/conftest.c object=$am__obj \
6654 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6655 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6656 >/dev/null 2>conftest.err &&
6657 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6658 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6659 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6660 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6661 # icc doesn't choke on unknown options, it will just issue warnings
6662 # or remarks (even with -Werror). So we grep stderr for any message
6663 # that says an option was ignored or not supported.
6664 # When given -MP, icc 7.0 and 7.1 complain thusly:
6665 # icc: Command line warning: ignoring option '-M'; no argument required
6666 # The diagnosis changed in icc 8.0:
6667 # icc: Command line remark: option '-MP' not supported
6668 if (grep 'ignoring option' conftest.err ||
6669 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6670 am_cv_CC_dependencies_compiler_type=$depmode
6671 break
6672 fi
6673 fi
6674 done
6675
6676 cd ..
6677 rm -rf conftest.dir
6678else
6679 am_cv_CC_dependencies_compiler_type=none
6680fi
6681
6682fi
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6684$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6685CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6686
6687 if
6688 test "x$enable_dependency_tracking" != xno \
6689 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6690 am__fastdepCC_TRUE=
6691 am__fastdepCC_FALSE='#'
6692else
6693 am__fastdepCC_TRUE='#'
6694 am__fastdepCC_FALSE=
6695fi
6696
6697
cristy95646052009-11-28 23:05:30 +00006698ac_ext=cpp
6699ac_cpp='$CXXCPP $CPPFLAGS'
6700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6703if test -z "$CXX"; then
6704 if test -n "$CCC"; then
6705 CXX=$CCC
6706 else
6707 if test -n "$ac_tool_prefix"; then
6708 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6709 do
6710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6711set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006714if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006715 $as_echo_n "(cached) " >&6
6716else
6717 if test -n "$CXX"; then
6718 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6719else
6720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721for as_dir in $PATH
6722do
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006727 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6730 fi
6731done
6732 done
6733IFS=$as_save_IFS
6734
6735fi
6736fi
6737CXX=$ac_cv_prog_CXX
6738if test -n "$CXX"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6740$as_echo "$CXX" >&6; }
6741else
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743$as_echo "no" >&6; }
6744fi
6745
6746
6747 test -n "$CXX" && break
6748 done
6749fi
6750if test -z "$CXX"; then
6751 ac_ct_CXX=$CXX
6752 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6753do
6754 # Extract the first word of "$ac_prog", so it can be a program name with args.
6755set dummy $ac_prog; ac_word=$2
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006758if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006759 $as_echo_n "(cached) " >&6
6760else
6761 if test -n "$ac_ct_CXX"; then
6762 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6763else
6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006771 ac_cv_prog_ac_ct_CXX="$ac_prog"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6774 fi
6775done
6776 done
6777IFS=$as_save_IFS
6778
6779fi
6780fi
6781ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6782if test -n "$ac_ct_CXX"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6784$as_echo "$ac_ct_CXX" >&6; }
6785else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787$as_echo "no" >&6; }
6788fi
6789
6790
6791 test -n "$ac_ct_CXX" && break
6792done
6793
6794 if test "x$ac_ct_CXX" = x; then
6795 CXX="g++"
6796 else
6797 case $cross_compiling:$ac_tool_warned in
6798yes:)
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6801ac_tool_warned=yes ;;
6802esac
6803 CXX=$ac_ct_CXX
6804 fi
6805fi
6806
6807 fi
6808fi
6809# Provide some information about the compiler.
6810$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6811set X $ac_compile
6812ac_compiler=$2
6813for ac_option in --version -v -V -qversion; do
6814 { { ac_try="$ac_compiler $ac_option >&5"
6815case "(($ac_try" in
6816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6817 *) ac_try_echo=$ac_try;;
6818esac
6819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6820$as_echo "$ac_try_echo"; } >&5
6821 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6822 ac_status=$?
6823 if test -s conftest.err; then
6824 sed '10a\
6825... rest of stderr output deleted ...
6826 10q' conftest.err >conftest.er1
6827 cat conftest.er1 >&5
6828 fi
6829 rm -f conftest.er1 conftest.err
6830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6831 test $ac_status = 0; }
6832done
6833
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6835$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006836if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006837 $as_echo_n "(cached) " >&6
6838else
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840/* end confdefs.h. */
6841
6842int
6843main ()
6844{
6845#ifndef __GNUC__
6846 choke me
6847#endif
6848
6849 ;
6850 return 0;
6851}
6852_ACEOF
6853if ac_fn_cxx_try_compile "$LINENO"; then :
6854 ac_compiler_gnu=yes
6855else
6856 ac_compiler_gnu=no
6857fi
6858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6860
6861fi
6862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6863$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6864if test $ac_compiler_gnu = yes; then
6865 GXX=yes
6866else
6867 GXX=
6868fi
6869ac_test_CXXFLAGS=${CXXFLAGS+set}
6870ac_save_CXXFLAGS=$CXXFLAGS
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6872$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006873if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006874 $as_echo_n "(cached) " >&6
6875else
6876 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6877 ac_cxx_werror_flag=yes
6878 ac_cv_prog_cxx_g=no
6879 CXXFLAGS="-g"
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881/* end confdefs.h. */
6882
6883int
6884main ()
6885{
6886
6887 ;
6888 return 0;
6889}
6890_ACEOF
6891if ac_fn_cxx_try_compile "$LINENO"; then :
6892 ac_cv_prog_cxx_g=yes
6893else
6894 CXXFLAGS=""
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896/* end confdefs.h. */
6897
6898int
6899main ()
6900{
6901
6902 ;
6903 return 0;
6904}
6905_ACEOF
6906if ac_fn_cxx_try_compile "$LINENO"; then :
6907
6908else
6909 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6910 CXXFLAGS="-g"
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912/* end confdefs.h. */
6913
6914int
6915main ()
6916{
6917
6918 ;
6919 return 0;
6920}
6921_ACEOF
6922if ac_fn_cxx_try_compile "$LINENO"; then :
6923 ac_cv_prog_cxx_g=yes
6924fi
6925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6926fi
6927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928fi
6929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6931fi
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6933$as_echo "$ac_cv_prog_cxx_g" >&6; }
6934if test "$ac_test_CXXFLAGS" = set; then
6935 CXXFLAGS=$ac_save_CXXFLAGS
6936elif test $ac_cv_prog_cxx_g = yes; then
6937 if test "$GXX" = yes; then
6938 CXXFLAGS="-g -O2"
6939 else
6940 CXXFLAGS="-g"
6941 fi
6942else
6943 if test "$GXX" = yes; then
6944 CXXFLAGS="-O2"
6945 else
6946 CXXFLAGS=
6947 fi
6948fi
6949ac_ext=c
6950ac_cpp='$CPP $CPPFLAGS'
6951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6953ac_compiler_gnu=$ac_cv_c_compiler_gnu
6954
cristy73bd4a52010-10-05 11:24:23 +00006955depcc="$CXX" am_compiler_list=
6956
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6958$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006959if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006960 $as_echo_n "(cached) " >&6
6961else
6962 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6963 # We make a subdir and do the tests there. Otherwise we can end up
6964 # making bogus files that we don't know about and never remove. For
6965 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006966 # making a dummy file named 'D' -- because '-MD' means "put the output
6967 # in D".
cristy7247bba2012-02-05 16:37:27 +00006968 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006969 mkdir conftest.dir
6970 # Copy depcomp to subdir because otherwise we won't find it if we're
6971 # using a relative directory.
6972 cp "$am_depcomp" conftest.dir
6973 cd conftest.dir
6974 # We will build objects and dependencies in a subdirectory because
6975 # it helps to detect inapplicable dependency modes. For instance
6976 # both Tru64's cc and ICC support -MD to output dependencies as a
6977 # side effect of compilation, but ICC will put the dependencies in
6978 # the current directory while Tru64 will put them in the object
6979 # directory.
6980 mkdir sub
6981
6982 am_cv_CXX_dependencies_compiler_type=none
6983 if test "$am_compiler_list" = ""; then
6984 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6985 fi
6986 am__universal=false
6987 case " $depcc " in #(
6988 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6989 esac
6990
6991 for depmode in $am_compiler_list; do
6992 # Setup a source with many dependencies, because some compilers
6993 # like to wrap large dependency lists on column 80 (with \), and
6994 # we should not choose a depcomp mode which is confused by this.
6995 #
6996 # We need to recreate these files for each test, as the compiler may
6997 # overwrite some of them when testing with obscure command lines.
6998 # This happens at least with the AIX C compiler.
6999 : > sub/conftest.c
7000 for i in 1 2 3 4 5 6; do
7001 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007002 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7003 # Solaris 10 /bin/sh.
7004 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007005 done
7006 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7007
cristyc0890a62012-07-19 00:18:20 +00007008 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007009 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007010 # handle '-M -o', and we need to detect this. Also, some Intel
7011 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007012 am__obj=sub/conftest.${OBJEXT-o}
7013 am__minus_obj="-o $am__obj"
7014 case $depmode in
7015 gcc)
7016 # This depmode causes a compiler race in universal mode.
7017 test "$am__universal" = false || continue
7018 ;;
7019 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007020 # After this tag, mechanisms are not by side-effect, so they'll
7021 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007022 if test "x$enable_dependency_tracking" = xyes; then
7023 continue
7024 else
7025 break
7026 fi
7027 ;;
cristy7247bba2012-02-05 16:37:27 +00007028 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007029 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007030 # not run yet. These depmodes are late enough in the game, and
7031 # so weak that their functioning should not be impacted.
7032 am__obj=conftest.${OBJEXT-o}
7033 am__minus_obj=
7034 ;;
7035 none) break ;;
7036 esac
7037 if depmode=$depmode \
7038 source=sub/conftest.c object=$am__obj \
7039 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7040 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7041 >/dev/null 2>conftest.err &&
7042 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7043 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7044 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7045 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7046 # icc doesn't choke on unknown options, it will just issue warnings
7047 # or remarks (even with -Werror). So we grep stderr for any message
7048 # that says an option was ignored or not supported.
7049 # When given -MP, icc 7.0 and 7.1 complain thusly:
7050 # icc: Command line warning: ignoring option '-M'; no argument required
7051 # The diagnosis changed in icc 8.0:
7052 # icc: Command line remark: option '-MP' not supported
7053 if (grep 'ignoring option' conftest.err ||
7054 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7055 am_cv_CXX_dependencies_compiler_type=$depmode
7056 break
7057 fi
7058 fi
7059 done
7060
7061 cd ..
7062 rm -rf conftest.dir
7063else
7064 am_cv_CXX_dependencies_compiler_type=none
7065fi
7066
7067fi
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7069$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7070CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7071
7072 if
7073 test "x$enable_dependency_tracking" != xno \
7074 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7075 am__fastdepCXX_TRUE=
7076 am__fastdepCXX_FALSE='#'
7077else
7078 am__fastdepCXX_TRUE='#'
7079 am__fastdepCXX_FALSE=
7080fi
7081
7082
cristy8b350f62009-11-15 23:12:43 +00007083 case $ac_cv_prog_cc_stdc in #(
7084 no) :
7085 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7086 *) :
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007088$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007089if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007090 $as_echo_n "(cached) " >&6
7091else
7092 ac_cv_prog_cc_c99=no
7093ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007095/* end confdefs.h. */
7096#include <stdarg.h>
7097#include <stdbool.h>
7098#include <stdlib.h>
7099#include <wchar.h>
7100#include <stdio.h>
7101
7102// Check varargs macros. These examples are taken from C99 6.10.3.5.
7103#define debug(...) fprintf (stderr, __VA_ARGS__)
7104#define showlist(...) puts (#__VA_ARGS__)
7105#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7106static void
7107test_varargs_macros (void)
7108{
7109 int x = 1234;
7110 int y = 5678;
7111 debug ("Flag");
7112 debug ("X = %d\n", x);
7113 showlist (The first, second, and third items.);
7114 report (x>y, "x is %d but y is %d", x, y);
7115}
7116
7117// Check long long types.
7118#define BIG64 18446744073709551615ull
7119#define BIG32 4294967295ul
7120#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7121#if !BIG_OK
7122 your preprocessor is broken;
7123#endif
7124#if BIG_OK
7125#else
7126 your preprocessor is broken;
7127#endif
7128static long long int bignum = -9223372036854775807LL;
7129static unsigned long long int ubignum = BIG64;
7130
7131struct incomplete_array
7132{
7133 int datasize;
7134 double data[];
7135};
7136
7137struct named_init {
7138 int number;
7139 const wchar_t *name;
7140 double average;
7141};
7142
7143typedef const char *ccp;
7144
7145static inline int
7146test_restrict (ccp restrict text)
7147{
7148 // See if C++-style comments work.
7149 // Iterate through items via the restricted pointer.
7150 // Also check for declarations in for loops.
7151 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7152 continue;
7153 return 0;
7154}
7155
7156// Check varargs and va_copy.
7157static void
7158test_varargs (const char *format, ...)
7159{
7160 va_list args;
7161 va_start (args, format);
7162 va_list args_copy;
7163 va_copy (args_copy, args);
7164
7165 const char *str;
7166 int number;
7167 float fnumber;
7168
7169 while (*format)
7170 {
7171 switch (*format++)
7172 {
7173 case 's': // string
7174 str = va_arg (args_copy, const char *);
7175 break;
7176 case 'd': // int
7177 number = va_arg (args_copy, int);
7178 break;
7179 case 'f': // float
7180 fnumber = va_arg (args_copy, double);
7181 break;
7182 default:
7183 break;
7184 }
7185 }
7186 va_end (args_copy);
7187 va_end (args);
7188}
7189
7190int
7191main ()
7192{
7193
7194 // Check bool.
7195 _Bool success = false;
7196
7197 // Check restrict.
7198 if (test_restrict ("String literal") == 0)
7199 success = true;
7200 char *restrict newvar = "Another string";
7201
7202 // Check varargs.
7203 test_varargs ("s, d' f .", "string", 65, 34.234);
7204 test_varargs_macros ();
7205
7206 // Check flexible array members.
7207 struct incomplete_array *ia =
7208 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7209 ia->datasize = 10;
7210 for (int i = 0; i < ia->datasize; ++i)
7211 ia->data[i] = i * 1.234;
7212
7213 // Check named initializers.
7214 struct named_init ni = {
7215 .number = 34,
7216 .name = L"Test wide string",
7217 .average = 543.34343,
7218 };
7219
7220 ni.number = 58;
7221
7222 int dynamic_array[ni.number];
7223 dynamic_array[ni.number - 1] = 543;
7224
7225 // work around unused variable warnings
7226 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7227 || dynamic_array[ni.number - 1] != 543);
7228
7229 ;
7230 return 0;
7231}
7232_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007233for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007234do
7235 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007236 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007237 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007238fi
cristy3ed852e2009-09-05 21:47:34 +00007239rm -f core conftest.err conftest.$ac_objext
7240 test "x$ac_cv_prog_cc_c99" != "xno" && break
7241done
7242rm -f conftest.$ac_ext
7243CC=$ac_save_CC
7244
7245fi
7246# AC_CACHE_VAL
7247case "x$ac_cv_prog_cc_c99" in
7248 x)
cristy8b350f62009-11-15 23:12:43 +00007249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007250$as_echo "none needed" >&6; } ;;
7251 xno)
cristy8b350f62009-11-15 23:12:43 +00007252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007253$as_echo "unsupported" >&6; } ;;
7254 *)
7255 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007257$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7258esac
cristy8b350f62009-11-15 23:12:43 +00007259if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007260 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7261else
cristy8b350f62009-11-15 23:12:43 +00007262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007263$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007264if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007265 $as_echo_n "(cached) " >&6
7266else
7267 ac_cv_prog_cc_c89=no
7268ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007270/* end confdefs.h. */
7271#include <stdarg.h>
7272#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007273struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007274/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7275struct buf { int x; };
7276FILE * (*rcsopen) (struct buf *, struct stat *, int);
7277static char *e (p, i)
7278 char **p;
7279 int i;
7280{
7281 return p[i];
7282}
7283static char *f (char * (*g) (char **, int), char **p, ...)
7284{
7285 char *s;
7286 va_list v;
7287 va_start (v,p);
7288 s = g (p, va_arg (v,int));
7289 va_end (v);
7290 return s;
7291}
7292
7293/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7294 function prototypes and stuff, but not '\xHH' hex character constants.
7295 These don't provoke an error unfortunately, instead are silently treated
7296 as 'x'. The following induces an error, until -std is added to get
7297 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7298 array size at least. It's necessary to write '\x00'==0 to get something
7299 that's true only with -std. */
7300int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7301
7302/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7303 inside strings and character constants. */
7304#define FOO(x) 'x'
7305int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7306
7307int test (int i, double x);
7308struct s1 {int (*f) (int a);};
7309struct s2 {int (*f) (double a);};
7310int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7311int argc;
7312char **argv;
7313int
7314main ()
7315{
7316return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7317 ;
7318 return 0;
7319}
7320_ACEOF
7321for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7322 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7323do
7324 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007325 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007326 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007327fi
cristy3ed852e2009-09-05 21:47:34 +00007328rm -f core conftest.err conftest.$ac_objext
7329 test "x$ac_cv_prog_cc_c89" != "xno" && break
7330done
7331rm -f conftest.$ac_ext
7332CC=$ac_save_CC
7333
7334fi
7335# AC_CACHE_VAL
7336case "x$ac_cv_prog_cc_c89" in
7337 x)
cristy8b350f62009-11-15 23:12:43 +00007338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007339$as_echo "none needed" >&6; } ;;
7340 xno)
cristy8b350f62009-11-15 23:12:43 +00007341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007342$as_echo "unsupported" >&6; } ;;
7343 *)
7344 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007346$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7347esac
cristy8b350f62009-11-15 23:12:43 +00007348if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007349 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7350else
7351 ac_cv_prog_cc_stdc=no
7352fi
7353
cristy3ed852e2009-09-05 21:47:34 +00007354fi
cristy3ed852e2009-09-05 21:47:34 +00007355 ;;
7356esac
cristy8b350f62009-11-15 23:12:43 +00007357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007358$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007359 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007360 $as_echo_n "(cached) " >&6
7361fi
7362
cristy8b350f62009-11-15 23:12:43 +00007363 case $ac_cv_prog_cc_stdc in #(
7364 no) :
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7366$as_echo "unsupported" >&6; } ;; #(
7367 '') :
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7369$as_echo "none needed" >&6; } ;; #(
7370 *) :
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007372$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7373esac
7374
cristy3ed852e2009-09-05 21:47:34 +00007375ac_ext=c
7376ac_cpp='$CPP $CPPFLAGS'
7377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007381$as_echo_n "checking how to run the C preprocessor... " >&6; }
7382# On Suns, sometimes $CPP names a directory.
7383if test -n "$CPP" && test -d "$CPP"; then
7384 CPP=
7385fi
7386if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007387 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007388 $as_echo_n "(cached) " >&6
7389else
7390 # Double quotes because CPP needs to be expanded
7391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7392 do
7393 ac_preproc_ok=false
7394for ac_c_preproc_warn_flag in '' yes
7395do
7396 # Use a header file that comes with gcc, so configuring glibc
7397 # with a fresh cross-compiler works.
7398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7399 # <limits.h> exists even on freestanding compilers.
7400 # On the NeXT, cc -E runs the code through the compiler's parser,
7401 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007403/* end confdefs.h. */
7404#ifdef __STDC__
7405# include <limits.h>
7406#else
7407# include <assert.h>
7408#endif
7409 Syntax error
7410_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007411if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007412
cristy8b350f62009-11-15 23:12:43 +00007413else
cristy3ed852e2009-09-05 21:47:34 +00007414 # Broken: fails on valid input.
7415continue
7416fi
cristyda16f162011-02-19 23:52:17 +00007417rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007418
7419 # OK, works on sane cases. Now check whether nonexistent headers
7420 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007422/* end confdefs.h. */
7423#include <ac_nonexistent.h>
7424_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007425if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007426 # Broken: success on invalid input.
7427continue
7428else
cristy3ed852e2009-09-05 21:47:34 +00007429 # Passes both tests.
7430ac_preproc_ok=:
7431break
7432fi
cristyda16f162011-02-19 23:52:17 +00007433rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007434
7435done
7436# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007437rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007438if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007439 break
7440fi
7441
7442 done
7443 ac_cv_prog_CPP=$CPP
7444
7445fi
7446 CPP=$ac_cv_prog_CPP
7447else
7448 ac_cv_prog_CPP=$CPP
7449fi
cristy8b350f62009-11-15 23:12:43 +00007450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007451$as_echo "$CPP" >&6; }
7452ac_preproc_ok=false
7453for ac_c_preproc_warn_flag in '' yes
7454do
7455 # Use a header file that comes with gcc, so configuring glibc
7456 # with a fresh cross-compiler works.
7457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7458 # <limits.h> exists even on freestanding compilers.
7459 # On the NeXT, cc -E runs the code through the compiler's parser,
7460 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007462/* end confdefs.h. */
7463#ifdef __STDC__
7464# include <limits.h>
7465#else
7466# include <assert.h>
7467#endif
7468 Syntax error
7469_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007470if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007471
cristy8b350f62009-11-15 23:12:43 +00007472else
cristy3ed852e2009-09-05 21:47:34 +00007473 # Broken: fails on valid input.
7474continue
7475fi
cristyda16f162011-02-19 23:52:17 +00007476rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007477
7478 # OK, works on sane cases. Now check whether nonexistent headers
7479 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007481/* end confdefs.h. */
7482#include <ac_nonexistent.h>
7483_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007484if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007485 # Broken: success on invalid input.
7486continue
7487else
cristy3ed852e2009-09-05 21:47:34 +00007488 # Passes both tests.
7489ac_preproc_ok=:
7490break
7491fi
cristyda16f162011-02-19 23:52:17 +00007492rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007493
7494done
7495# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007496rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007497if $ac_preproc_ok; then :
7498
cristy3ed852e2009-09-05 21:47:34 +00007499else
cristy8b350f62009-11-15 23:12:43 +00007500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007502as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7503See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007504fi
7505
7506ac_ext=c
7507ac_cpp='$CPP $CPPFLAGS'
7508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7510ac_compiler_gnu=$ac_cv_c_compiler_gnu
7511
cristy73bd4a52010-10-05 11:24:23 +00007512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7513$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007514if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007515 $as_echo_n "(cached) " >&6
7516else
7517 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7518 for ac_i in 1 2 3 4 5 6 7; do
7519 ac_script="$ac_script$as_nl$ac_script"
7520 done
7521 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7522 { ac_script=; unset ac_script;}
7523 if test -z "$SED"; then
7524 ac_path_SED_found=false
7525 # Loop through the user's path and test for each of PROGNAME-LIST
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527for as_dir in $PATH
7528do
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_prog in sed gsed; do
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007534 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007535# Check for GNU ac_path_SED and select it if it is found.
7536 # Check for GNU $ac_path_SED
7537case `"$ac_path_SED" --version 2>&1` in
7538*GNU*)
7539 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7540*)
7541 ac_count=0
7542 $as_echo_n 0123456789 >"conftest.in"
7543 while :
7544 do
7545 cat "conftest.in" "conftest.in" >"conftest.tmp"
7546 mv "conftest.tmp" "conftest.in"
7547 cp "conftest.in" "conftest.nl"
7548 $as_echo '' >> "conftest.nl"
7549 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7551 as_fn_arith $ac_count + 1 && ac_count=$as_val
7552 if test $ac_count -gt ${ac_path_SED_max-0}; then
7553 # Best one so far, save it but keep looking for a better one
7554 ac_cv_path_SED="$ac_path_SED"
7555 ac_path_SED_max=$ac_count
7556 fi
7557 # 10*(2^10) chars as input seems more than enough
7558 test $ac_count -gt 10 && break
7559 done
7560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7561esac
7562
7563 $ac_path_SED_found && break 3
7564 done
7565 done
7566 done
7567IFS=$as_save_IFS
7568 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007569 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007570 fi
7571else
7572 ac_cv_path_SED=$SED
7573fi
7574
7575fi
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7577$as_echo "$ac_cv_path_SED" >&6; }
7578 SED="$ac_cv_path_SED"
7579 rm -f conftest.sed
7580
7581test -z "$SED" && SED=sed
7582Xsed="$SED -e 1s/^X//"
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7595$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007596if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007597 $as_echo_n "(cached) " >&6
7598else
7599 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7600 then ac_cv_path_FGREP="$GREP -F"
7601 else
7602 if test -z "$FGREP"; then
7603 ac_path_FGREP_found=false
7604 # Loop through the user's path and test for each of PROGNAME-LIST
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7607do
7608 IFS=$as_save_IFS
7609 test -z "$as_dir" && as_dir=.
7610 for ac_prog in fgrep; do
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007613 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007614# Check for GNU ac_path_FGREP and select it if it is found.
7615 # Check for GNU $ac_path_FGREP
7616case `"$ac_path_FGREP" --version 2>&1` in
7617*GNU*)
7618 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7619*)
7620 ac_count=0
7621 $as_echo_n 0123456789 >"conftest.in"
7622 while :
7623 do
7624 cat "conftest.in" "conftest.in" >"conftest.tmp"
7625 mv "conftest.tmp" "conftest.in"
7626 cp "conftest.in" "conftest.nl"
7627 $as_echo 'FGREP' >> "conftest.nl"
7628 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7630 as_fn_arith $ac_count + 1 && ac_count=$as_val
7631 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7632 # Best one so far, save it but keep looking for a better one
7633 ac_cv_path_FGREP="$ac_path_FGREP"
7634 ac_path_FGREP_max=$ac_count
7635 fi
7636 # 10*(2^10) chars as input seems more than enough
7637 test $ac_count -gt 10 && break
7638 done
7639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7640esac
7641
7642 $ac_path_FGREP_found && break 3
7643 done
7644 done
7645 done
7646IFS=$as_save_IFS
7647 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007648 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007649 fi
7650else
7651 ac_cv_path_FGREP=$FGREP
7652fi
7653
7654 fi
7655fi
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7657$as_echo "$ac_cv_path_FGREP" >&6; }
7658 FGREP="$ac_cv_path_FGREP"
7659
7660
7661test -z "$GREP" && GREP=grep
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
cristy0c60a692010-11-04 01:09:47 +00007679ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7680ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7681ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7682
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7684$as_echo_n "checking how to print strings... " >&6; }
7685# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007686if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007687 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7688 ECHO='print -r --'
7689elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7690 ECHO='printf %s\n'
7691else
7692 # Use this function as a fallback that always works.
7693 func_fallback_echo ()
7694 {
7695 eval 'cat <<_LTECHO_EOF
7696$1
7697_LTECHO_EOF'
7698 }
7699 ECHO='func_fallback_echo'
7700fi
7701
7702# func_echo_all arg...
7703# Invoke $ECHO with all args, space-separated.
7704func_echo_all ()
7705{
7706 $ECHO ""
7707}
7708
7709case "$ECHO" in
7710 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7711$as_echo "printf" >&6; } ;;
7712 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7713$as_echo "print -r" >&6; } ;;
7714 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7715$as_echo "cat" >&6; } ;;
7716esac
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
cristy73bd4a52010-10-05 11:24:23 +00007731
7732
7733# Check whether --with-gnu-ld was given.
7734if test "${with_gnu_ld+set}" = set; then :
7735 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7736else
7737 with_gnu_ld=no
7738fi
7739
7740ac_prog=ld
7741if test "$GCC" = yes; then
7742 # Check if gcc -print-prog-name=ld gives a path.
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7744$as_echo_n "checking for ld used by $CC... " >&6; }
7745 case $host in
7746 *-*-mingw*)
7747 # gcc leaves a trailing carriage return which upsets mingw
7748 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7749 *)
7750 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7751 esac
7752 case $ac_prog in
7753 # Accept absolute paths.
7754 [\\/]* | ?:[\\/]*)
7755 re_direlt='/[^/][^/]*/\.\./'
7756 # Canonicalize the pathname of ld
7757 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7758 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7759 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7760 done
7761 test -z "$LD" && LD="$ac_prog"
7762 ;;
7763 "")
7764 # If it fails, then pretend we aren't using GCC.
7765 ac_prog=ld
7766 ;;
7767 *)
7768 # If it is relative, then search for the first ld in PATH.
7769 with_gnu_ld=unknown
7770 ;;
7771 esac
7772elif test "$with_gnu_ld" = yes; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7774$as_echo_n "checking for GNU ld... " >&6; }
7775else
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7777$as_echo_n "checking for non-GNU ld... " >&6; }
7778fi
cristyda16f162011-02-19 23:52:17 +00007779if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007780 $as_echo_n "(cached) " >&6
7781else
7782 if test -z "$LD"; then
7783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7784 for ac_dir in $PATH; do
7785 IFS="$lt_save_ifs"
7786 test -z "$ac_dir" && ac_dir=.
7787 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7788 lt_cv_path_LD="$ac_dir/$ac_prog"
7789 # Check to see if the program is GNU ld. I'd rather use --version,
7790 # but apparently some variants of GNU ld only accept -v.
7791 # Break only if it was the GNU/non-GNU ld that we prefer.
7792 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7793 *GNU* | *'with BFD'*)
7794 test "$with_gnu_ld" != no && break
7795 ;;
7796 *)
7797 test "$with_gnu_ld" != yes && break
7798 ;;
7799 esac
7800 fi
7801 done
7802 IFS="$lt_save_ifs"
7803else
7804 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7805fi
7806fi
7807
7808LD="$lt_cv_path_LD"
7809if test -n "$LD"; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7811$as_echo "$LD" >&6; }
7812else
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814$as_echo "no" >&6; }
7815fi
cristy98dddb52010-11-04 00:30:15 +00007816test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7818$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007819if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007820 $as_echo_n "(cached) " >&6
7821else
7822 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7823case `$LD -v 2>&1 </dev/null` in
7824*GNU* | *'with BFD'*)
7825 lt_cv_prog_gnu_ld=yes
7826 ;;
7827*)
7828 lt_cv_prog_gnu_ld=no
7829 ;;
7830esac
7831fi
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7833$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7834with_gnu_ld=$lt_cv_prog_gnu_ld
7835
7836
7837
7838
7839
7840
7841
7842
7843
cristy3ed852e2009-09-05 21:47:34 +00007844
cristy837d6dc2010-02-27 01:16:57 +00007845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7846$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007847if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007848 $as_echo_n "(cached) " >&6
7849else
7850 ac_cv_prog_cc_c99=no
7851ac_save_CC=$CC
7852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853/* end confdefs.h. */
7854#include <stdarg.h>
7855#include <stdbool.h>
7856#include <stdlib.h>
7857#include <wchar.h>
7858#include <stdio.h>
7859
7860// Check varargs macros. These examples are taken from C99 6.10.3.5.
7861#define debug(...) fprintf (stderr, __VA_ARGS__)
7862#define showlist(...) puts (#__VA_ARGS__)
7863#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7864static void
7865test_varargs_macros (void)
7866{
7867 int x = 1234;
7868 int y = 5678;
7869 debug ("Flag");
7870 debug ("X = %d\n", x);
7871 showlist (The first, second, and third items.);
7872 report (x>y, "x is %d but y is %d", x, y);
7873}
7874
7875// Check long long types.
7876#define BIG64 18446744073709551615ull
7877#define BIG32 4294967295ul
7878#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7879#if !BIG_OK
7880 your preprocessor is broken;
7881#endif
7882#if BIG_OK
7883#else
7884 your preprocessor is broken;
7885#endif
7886static long long int bignum = -9223372036854775807LL;
7887static unsigned long long int ubignum = BIG64;
7888
7889struct incomplete_array
7890{
7891 int datasize;
7892 double data[];
7893};
7894
7895struct named_init {
7896 int number;
7897 const wchar_t *name;
7898 double average;
7899};
7900
7901typedef const char *ccp;
7902
7903static inline int
7904test_restrict (ccp restrict text)
7905{
7906 // See if C++-style comments work.
7907 // Iterate through items via the restricted pointer.
7908 // Also check for declarations in for loops.
7909 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7910 continue;
7911 return 0;
7912}
7913
7914// Check varargs and va_copy.
7915static void
7916test_varargs (const char *format, ...)
7917{
7918 va_list args;
7919 va_start (args, format);
7920 va_list args_copy;
7921 va_copy (args_copy, args);
7922
7923 const char *str;
7924 int number;
7925 float fnumber;
7926
7927 while (*format)
7928 {
7929 switch (*format++)
7930 {
7931 case 's': // string
7932 str = va_arg (args_copy, const char *);
7933 break;
7934 case 'd': // int
7935 number = va_arg (args_copy, int);
7936 break;
7937 case 'f': // float
7938 fnumber = va_arg (args_copy, double);
7939 break;
7940 default:
7941 break;
7942 }
7943 }
7944 va_end (args_copy);
7945 va_end (args);
7946}
7947
7948int
7949main ()
7950{
7951
7952 // Check bool.
7953 _Bool success = false;
7954
7955 // Check restrict.
7956 if (test_restrict ("String literal") == 0)
7957 success = true;
7958 char *restrict newvar = "Another string";
7959
7960 // Check varargs.
7961 test_varargs ("s, d' f .", "string", 65, 34.234);
7962 test_varargs_macros ();
7963
7964 // Check flexible array members.
7965 struct incomplete_array *ia =
7966 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7967 ia->datasize = 10;
7968 for (int i = 0; i < ia->datasize; ++i)
7969 ia->data[i] = i * 1.234;
7970
7971 // Check named initializers.
7972 struct named_init ni = {
7973 .number = 34,
7974 .name = L"Test wide string",
7975 .average = 543.34343,
7976 };
7977
7978 ni.number = 58;
7979
7980 int dynamic_array[ni.number];
7981 dynamic_array[ni.number - 1] = 543;
7982
7983 // work around unused variable warnings
7984 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7985 || dynamic_array[ni.number - 1] != 543);
7986
7987 ;
7988 return 0;
7989}
7990_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007991for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007992do
7993 CC="$ac_save_CC $ac_arg"
7994 if ac_fn_c_try_compile "$LINENO"; then :
7995 ac_cv_prog_cc_c99=$ac_arg
7996fi
7997rm -f core conftest.err conftest.$ac_objext
7998 test "x$ac_cv_prog_cc_c99" != "xno" && break
7999done
8000rm -f conftest.$ac_ext
8001CC=$ac_save_CC
8002
8003fi
8004# AC_CACHE_VAL
8005case "x$ac_cv_prog_cc_c99" in
8006 x)
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8008$as_echo "none needed" >&6; } ;;
8009 xno)
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8011$as_echo "unsupported" >&6; } ;;
8012 *)
8013 CC="$CC $ac_cv_prog_cc_c99"
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8015$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8016esac
8017if test "x$ac_cv_prog_cc_c99" != xno; then :
8018
8019fi
8020
8021
cristy73bd4a52010-10-05 11:24:23 +00008022
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8024$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008025if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008026 $as_echo_n "(cached) " >&6
8027else
8028 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00008029 ac_ext=c
8030ac_cpp='$CPP $CPPFLAGS'
8031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8033ac_compiler_gnu=$ac_cv_c_compiler_gnu
8034
8035 ac_save_CFLAGS="$CFLAGS"
8036for 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" #
8037do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039/* end confdefs.h. */
8040
8041int
8042main ()
8043{
cristy24fc1fe2010-10-23 21:13:01 +00008044
cristy73bd4a52010-10-05 11:24:23 +00008045 ;
8046 return 0;
8047}
8048_ACEOF
8049if ac_fn_c_try_compile "$LINENO"; then :
8050 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8051fi
8052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053done
8054 CFLAGS="$ac_save_CFLAGS"
8055 ac_ext=c
8056ac_cpp='$CPP $CPPFLAGS'
8057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8059ac_compiler_gnu=$ac_cv_c_compiler_gnu
8060
8061
8062fi
8063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8064$as_echo "$ac_cv_cflags_warn_all" >&6; }
8065case ".$ac_cv_cflags_warn_all" in
8066 .ok|.ok,*) ;;
8067 .|.no|.no,*)
8068 ;;
8069 *)
8070 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8071 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8072 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8073 ac_status=$?
8074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8075 test $ac_status = 0; }
8076 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8077 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8078 ac_status=$?
8079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8080 test $ac_status = 0; }
8081 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8082 fi
8083 ;;
nicolas6237c462010-10-05 06:11:49 +00008084esac
cristy3ed852e2009-09-05 21:47:34 +00008085
cristya0b81c32010-01-22 02:54:33 +00008086
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8088$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8089set x ${MAKE-make}
8090ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008091if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008092 $as_echo_n "(cached) " >&6
8093else
8094 cat >conftest.make <<\_ACEOF
8095SHELL = /bin/sh
8096all:
8097 @echo '@@@%%%=$(MAKE)=@@@%%%'
8098_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008099# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008100case `${MAKE-make} -f conftest.make 2>/dev/null` in
8101 *@@@%%%=?*=@@@%%%*)
8102 eval ac_cv_prog_make_${ac_make}_set=yes;;
8103 *)
8104 eval ac_cv_prog_make_${ac_make}_set=no;;
8105esac
8106rm -f conftest.make
8107fi
8108if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8110$as_echo "yes" >&6; }
8111 SET_MAKE=
8112else
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114$as_echo "no" >&6; }
8115 SET_MAKE="MAKE=${MAKE-make}"
8116fi
8117
cristy8b350f62009-11-15 23:12:43 +00008118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008119$as_echo_n "checking whether ln -s works... " >&6; }
8120LN_S=$as_ln_s
8121if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008123$as_echo "yes" >&6; }
8124else
cristy8b350f62009-11-15 23:12:43 +00008125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008126$as_echo "no, using $LN_S" >&6; }
8127fi
8128
cristy8d0ff762013-03-10 20:33:28 +00008129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8130$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8131if ${ac_cv_path_SED+:} false; then :
8132 $as_echo_n "(cached) " >&6
8133else
8134 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8135 for ac_i in 1 2 3 4 5 6 7; do
8136 ac_script="$ac_script$as_nl$ac_script"
8137 done
8138 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8139 { ac_script=; unset ac_script;}
8140 if test -z "$SED"; then
8141 ac_path_SED_found=false
8142 # Loop through the user's path and test for each of PROGNAME-LIST
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144for as_dir in $PATH
8145do
8146 IFS=$as_save_IFS
8147 test -z "$as_dir" && as_dir=.
8148 for ac_prog in sed gsed; do
8149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8151 as_fn_executable_p "$ac_path_SED" || continue
8152# Check for GNU ac_path_SED and select it if it is found.
8153 # Check for GNU $ac_path_SED
8154case `"$ac_path_SED" --version 2>&1` in
8155*GNU*)
8156 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8157*)
8158 ac_count=0
8159 $as_echo_n 0123456789 >"conftest.in"
8160 while :
8161 do
8162 cat "conftest.in" "conftest.in" >"conftest.tmp"
8163 mv "conftest.tmp" "conftest.in"
8164 cp "conftest.in" "conftest.nl"
8165 $as_echo '' >> "conftest.nl"
8166 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8168 as_fn_arith $ac_count + 1 && ac_count=$as_val
8169 if test $ac_count -gt ${ac_path_SED_max-0}; then
8170 # Best one so far, save it but keep looking for a better one
8171 ac_cv_path_SED="$ac_path_SED"
8172 ac_path_SED_max=$ac_count
8173 fi
8174 # 10*(2^10) chars as input seems more than enough
8175 test $ac_count -gt 10 && break
8176 done
8177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8178esac
8179
8180 $ac_path_SED_found && break 3
8181 done
8182 done
8183 done
8184IFS=$as_save_IFS
8185 if test -z "$ac_cv_path_SED"; then
8186 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8187 fi
8188else
8189 ac_cv_path_SED=$SED
8190fi
8191
8192fi
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8194$as_echo "$ac_cv_path_SED" >&6; }
8195 SED="$ac_cv_path_SED"
8196 rm -f conftest.sed
8197
cristybc556452012-08-17 19:44:03 +00008198for ac_prog in gawk mawk nawk awk
8199do
8200 # Extract the first word of "$ac_prog", so it can be a program name with args.
8201set dummy $ac_prog; ac_word=$2
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203$as_echo_n "checking for $ac_word... " >&6; }
8204if ${ac_cv_prog_AWK+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206else
8207 if test -n "$AWK"; then
8208 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8209else
8210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211for as_dir in $PATH
8212do
8213 IFS=$as_save_IFS
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8217 ac_cv_prog_AWK="$ac_prog"
8218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219 break 2
8220 fi
8221done
8222 done
8223IFS=$as_save_IFS
8224
8225fi
8226fi
8227AWK=$ac_cv_prog_AWK
8228if test -n "$AWK"; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8230$as_echo "$AWK" >&6; }
8231else
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233$as_echo "no" >&6; }
8234fi
8235
8236
8237 test -n "$AWK" && break
8238done
8239
cristy73bd4a52010-10-05 11:24:23 +00008240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8241$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8242
8243# Check whether --with-dmalloc was given.
8244if test "${with_dmalloc+set}" = set; then :
8245 withval=$with_dmalloc; if test "$withval" = yes; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8247$as_echo "yes" >&6; }
8248
8249$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8250
8251 LIBS="$LIBS -ldmalloc"
8252 LDFLAGS="$LDFLAGS -g"
8253else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255$as_echo "no" >&6; }
8256fi
8257else
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259$as_echo "no" >&6; }
8260fi
8261
8262
8263
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8265$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008266if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008267 $as_echo_n "(cached) " >&6
8268else
8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270/* end confdefs.h. */
8271#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008272 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008273 static void
8274 foo(void) {
8275 exit(1);
8276 }
8277
8278int
8279main ()
8280{
8281
8282 ;
8283 return 0;
8284}
8285_ACEOF
8286if ac_fn_c_try_compile "$LINENO"; then :
8287 ax_cv___attribute__=yes
8288else
8289 ax_cv___attribute__=no
8290
8291fi
8292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293
8294fi
8295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8296$as_echo "$ax_cv___attribute__" >&6; }
8297 if test "$ax_cv___attribute__" = "yes"; then
8298
8299$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8300
8301 fi
8302
8303
8304
cristya0459972013-11-03 18:09:35 +00008305
8306
8307# Check whether --with-gcc-arch was given.
8308if test "${with_gcc_arch+set}" = set; then :
8309 withval=$with_gcc_arch; ax_gcc_arch=$withval
8310else
8311 ax_gcc_arch=no
8312fi
8313
8314
8315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8316$as_echo_n "checking for gcc architecture flag... " >&6; }
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8318$as_echo "" >&6; }
8319if ${ax_cv_gcc_archflag+:} false; then :
8320 $as_echo_n "(cached) " >&6
8321else
8322
8323ax_cv_gcc_archflag="unknown"
8324
8325if test "$GCC" = yes; then
8326
8327if test "x$ax_gcc_arch" = xyes; then
8328ax_gcc_arch=""
8329if test "$cross_compiling" = no; then
8330case $host_cpu in
8331 i[3456]86*|x86_64*) # use cpuid codes
8332
8333ac_ext=c
8334ac_cpp='$CPP $CPPFLAGS'
8335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8337ac_compiler_gnu=$ac_cv_c_compiler_gnu
8338
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8340$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8341if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8342 $as_echo_n "(cached) " >&6
8343else
8344 if test "$cross_compiling" = yes; then :
8345 ax_cv_gcc_x86_cpuid_0=unknown
8346else
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348/* end confdefs.h. */
8349#include <stdio.h>
8350int
8351main ()
8352{
8353
8354 int op = 0, eax, ebx, ecx, edx;
8355 FILE *f;
8356 __asm__("cpuid"
8357 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8358 : "a" (op));
8359 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8360 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8361 fclose(f);
8362 return 0;
8363
8364 ;
8365 return 0;
8366}
8367_ACEOF
8368if ac_fn_c_try_run "$LINENO"; then :
8369 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8370else
8371 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8372fi
8373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8374 conftest.$ac_objext conftest.beam conftest.$ac_ext
8375fi
8376
8377fi
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8379$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8380ac_ext=c
8381ac_cpp='$CPP $CPPFLAGS'
8382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8384ac_compiler_gnu=$ac_cv_c_compiler_gnu
8385
8386
8387
8388ac_ext=c
8389ac_cpp='$CPP $CPPFLAGS'
8390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8392ac_compiler_gnu=$ac_cv_c_compiler_gnu
8393
8394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8395$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8396if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398else
8399 if test "$cross_compiling" = yes; then :
8400 ax_cv_gcc_x86_cpuid_1=unknown
8401else
8402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403/* end confdefs.h. */
8404#include <stdio.h>
8405int
8406main ()
8407{
8408
8409 int op = 1, eax, ebx, ecx, edx;
8410 FILE *f;
8411 __asm__("cpuid"
8412 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8413 : "a" (op));
8414 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8415 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8416 fclose(f);
8417 return 0;
8418
8419 ;
8420 return 0;
8421}
8422_ACEOF
8423if ac_fn_c_try_run "$LINENO"; then :
8424 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8425else
8426 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8427fi
8428rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8429 conftest.$ac_objext conftest.beam conftest.$ac_ext
8430fi
8431
8432fi
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8434$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8435ac_ext=c
8436ac_cpp='$CPP $CPPFLAGS'
8437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8439ac_compiler_gnu=$ac_cv_c_compiler_gnu
8440
8441
8442 case $ax_cv_gcc_x86_cpuid_0 in
8443 *:756e6547:*:*) # Intel
8444 case $ax_cv_gcc_x86_cpuid_1 in
8445 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8446 *5??:*:*:*) ax_gcc_arch=pentium ;;
8447 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8448 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8449 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8450 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8451 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8452 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8453 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8454 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8455 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8456 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8457 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8458 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8459 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8460 case $host_cpu in
8461 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8462 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8463 esac ;;
8464 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8465 esac ;;
8466 *:68747541:*:*) # AMD
8467 case $ax_cv_gcc_x86_cpuid_1 in
8468 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8469 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8470 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8471 *60?:*:*:*) ax_gcc_arch=k7 ;;
8472 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8473 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8474 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8475 *6[68a]?:*:*:*)
8476
8477ac_ext=c
8478ac_cpp='$CPP $CPPFLAGS'
8479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8481ac_compiler_gnu=$ac_cv_c_compiler_gnu
8482
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8484$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8485if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8486 $as_echo_n "(cached) " >&6
8487else
8488 if test "$cross_compiling" = yes; then :
8489 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8490else
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492/* end confdefs.h. */
8493#include <stdio.h>
8494int
8495main ()
8496{
8497
8498 int op = 0x80000006, eax, ebx, ecx, edx;
8499 FILE *f;
8500 __asm__("cpuid"
8501 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8502 : "a" (op));
8503 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8504 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8505 fclose(f);
8506 return 0;
8507
8508 ;
8509 return 0;
8510}
8511_ACEOF
8512if ac_fn_c_try_run "$LINENO"; then :
8513 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8514else
8515 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8516fi
8517rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8518 conftest.$ac_objext conftest.beam conftest.$ac_ext
8519fi
8520
8521fi
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8523$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8524ac_ext=c
8525ac_cpp='$CPP $CPPFLAGS'
8526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8528ac_compiler_gnu=$ac_cv_c_compiler_gnu
8529
8530 # L2 cache size
8531 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8532 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8533 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8534 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8535 esac ;;
8536 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8537 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8538 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8539 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8540 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8541 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8542 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8543 esac ;;
8544 *:746e6543:*:*) # IDT
8545 case $ax_cv_gcc_x86_cpuid_1 in
8546 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8547 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8548 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8549 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8550 esac ;;
8551 esac
8552 if test x"$ax_gcc_arch" = x; then # fallback
8553 case $host_cpu in
8554 i586*) ax_gcc_arch=pentium ;;
8555 i686*) ax_gcc_arch=pentiumpro ;;
8556 esac
8557 fi
8558 ;;
8559
8560 sparc*)
8561 # Extract the first word of "prtdiag", so it can be a program name with args.
8562set dummy prtdiag; ac_word=$2
8563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564$as_echo_n "checking for $ac_word... " >&6; }
8565if ${ac_cv_path_PRTDIAG+:} false; then :
8566 $as_echo_n "(cached) " >&6
8567else
8568 case $PRTDIAG in
8569 [\\/]* | ?:[\\/]*)
8570 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8571 ;;
8572 *)
8573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8575for as_dir in $as_dummy
8576do
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8581 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 break 2
8584 fi
8585done
8586 done
8587IFS=$as_save_IFS
8588
8589 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8590 ;;
8591esac
8592fi
8593PRTDIAG=$ac_cv_path_PRTDIAG
8594if test -n "$PRTDIAG"; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8596$as_echo "$PRTDIAG" >&6; }
8597else
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599$as_echo "no" >&6; }
8600fi
8601
8602
8603 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
8604 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8605 case $cputype in
8606 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8607 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8608 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8609 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8610 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8611 *cypress*) ax_gcc_arch=cypress ;;
8612 esac ;;
8613
8614 alphaev5) ax_gcc_arch=ev5 ;;
8615 alphaev56) ax_gcc_arch=ev56 ;;
8616 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8617 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8618 alphaev6) ax_gcc_arch=ev6 ;;
8619 alphaev67) ax_gcc_arch=ev67 ;;
8620 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8621 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8622 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8623 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8624
8625 powerpc*)
8626 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
8627 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8628 case $cputype in
8629 *750*) ax_gcc_arch="750 G3" ;;
8630 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8631 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8632 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8633 *970*) ax_gcc_arch="970 G5 power4";;
8634 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8635 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8636 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8637 *) ax_gcc_arch=$cputype ;;
8638 esac
8639 ax_gcc_arch="$ax_gcc_arch powerpc"
8640 ;;
8641esac
8642fi # not cross-compiling
8643fi # guess arch
8644
8645if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8646for arch in $ax_gcc_arch; do
8647 if test "xno" = xyes; then # if we require portable code
8648 flags="-mtune=$arch"
8649 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8650 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8651 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8652 else
8653 flags="-march=$arch -mcpu=$arch -m$arch"
8654 fi
8655 for flag in $flags; do
8656 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8658$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8659if eval \${$as_CACHEVAR+:} false; then :
8660 $as_echo_n "(cached) " >&6
8661else
8662
8663 ax_check_save_flags=$CFLAGS
8664 CFLAGS="$CFLAGS $flag"
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666/* end confdefs.h. */
8667
8668int
8669main ()
8670{
8671
8672 ;
8673 return 0;
8674}
8675_ACEOF
8676if ac_fn_c_try_compile "$LINENO"; then :
8677 eval "$as_CACHEVAR=yes"
8678else
8679 eval "$as_CACHEVAR=no"
8680fi
8681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 CFLAGS=$ax_check_save_flags
8683fi
8684eval ac_res=\$$as_CACHEVAR
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8686$as_echo "$ac_res" >&6; }
8687if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8688 ax_cv_gcc_archflag=$flag; break
8689else
8690 :
8691fi
8692
8693 done
8694 test "x$ax_cv_gcc_archflag" = xunknown || break
8695done
8696fi
8697
8698fi # $GCC=yes
8699
8700fi
8701
8702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8703$as_echo_n "checking for gcc architecture flag... " >&6; }
8704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8705$as_echo "$ax_cv_gcc_archflag" >&6; }
8706if test "x$ax_cv_gcc_archflag" = xunknown; then
8707 :
8708else
8709 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8710fi
8711
8712
8713
cristy73bd4a52010-10-05 11:24:23 +00008714if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8715 if test -n "$ac_tool_prefix"; then
8716 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8717set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008720if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008721 $as_echo_n "(cached) " >&6
8722else
8723 case $PKG_CONFIG in
8724 [\\/]* | ?:[\\/]*)
8725 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8726 ;;
8727 *)
8728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8729for as_dir in $PATH
8730do
8731 IFS=$as_save_IFS
8732 test -z "$as_dir" && as_dir=.
8733 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008735 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8737 break 2
8738 fi
8739done
8740 done
8741IFS=$as_save_IFS
8742
8743 ;;
8744esac
8745fi
8746PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8747if test -n "$PKG_CONFIG"; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8749$as_echo "$PKG_CONFIG" >&6; }
8750else
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752$as_echo "no" >&6; }
8753fi
8754
8755
8756fi
8757if test -z "$ac_cv_path_PKG_CONFIG"; then
8758 ac_pt_PKG_CONFIG=$PKG_CONFIG
8759 # Extract the first word of "pkg-config", so it can be a program name with args.
8760set dummy pkg-config; ac_word=$2
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008763if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008764 $as_echo_n "(cached) " >&6
8765else
8766 case $ac_pt_PKG_CONFIG in
8767 [\\/]* | ?:[\\/]*)
8768 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8769 ;;
8770 *)
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772for as_dir in $PATH
8773do
8774 IFS=$as_save_IFS
8775 test -z "$as_dir" && as_dir=.
8776 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008778 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780 break 2
8781 fi
8782done
8783 done
8784IFS=$as_save_IFS
8785
8786 ;;
8787esac
8788fi
8789ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8790if test -n "$ac_pt_PKG_CONFIG"; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8792$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8793else
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795$as_echo "no" >&6; }
8796fi
8797
8798 if test "x$ac_pt_PKG_CONFIG" = x; then
8799 PKG_CONFIG=""
8800 else
8801 case $cross_compiling:$ac_tool_warned in
8802yes:)
8803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8805ac_tool_warned=yes ;;
8806esac
8807 PKG_CONFIG=$ac_pt_PKG_CONFIG
8808 fi
8809else
8810 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8811fi
8812
8813fi
8814if test -n "$PKG_CONFIG"; then
8815 _pkg_min_version=0.9.0
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8817$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8818 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8820$as_echo "yes" >&6; }
8821 else
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823$as_echo "no" >&6; }
8824 PKG_CONFIG=""
8825 fi
8826
8827fi
cristy3ed852e2009-09-05 21:47:34 +00008828
cristyd95b7a52013-10-23 13:12:53 +00008829# Test for 64-bit build.
8830# The cast to long int works around a bug in the HP C Compiler
8831# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8832# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8833# This bug is HP SR number 8606223364.
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8835$as_echo_n "checking size of size_t... " >&6; }
8836if ${ac_cv_sizeof_size_t+:} false; then :
8837 $as_echo_n "(cached) " >&6
8838else
8839 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
8840
8841else
8842 if test "$ac_cv_type_size_t" = yes; then
8843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8845as_fn_error 77 "cannot compute sizeof (size_t)
8846See \`config.log' for more details" "$LINENO" 5; }
8847 else
8848 ac_cv_sizeof_size_t=0
8849 fi
8850fi
8851
8852fi
8853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8854$as_echo "$ac_cv_sizeof_size_t" >&6; }
8855
8856
8857
8858cat >>confdefs.h <<_ACEOF
8859#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8860_ACEOF
8861
8862
8863
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8865$as_echo_n "checking for C compiler vendor... " >&6; }
8866if ${ax_cv_c_compiler_vendor+:} false; then :
8867 $as_echo_n "(cached) " >&6
8868else
8869 # note: don't check for gcc first since some other compilers define __GNUC__
8870 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8871 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8872 pathscale: __PATHCC__,__PATHSCALE__
8873 clang: __clang__
8874 gnu: __GNUC__
8875 sun: __SUNPRO_C,__SUNPRO_CC
8876 hp: __HP_cc,__HP_aCC
8877 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8878 borland: __BORLANDC__,__TURBOC__
8879 comeau: __COMO__
8880 cray: _CRAYC
8881 kai: __KCC
8882 lcc: __LCC__
8883 sgi: __sgi,sgi
8884 microsoft: _MSC_VER
8885 metrowerks: __MWERKS__
8886 watcom: __WATCOMC__
8887 portland: __PGI
8888 unknown: UNKNOWN"
8889 for ventest in $vendors; do
8890 case $ventest in
8891 *:) vendor=$ventest; continue ;;
8892 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8893 esac
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895/* end confdefs.h. */
8896
8897int
8898main ()
8899{
8900
8901 #if !($vencpp)
8902 thisisanerror;
8903 #endif
8904
8905 ;
8906 return 0;
8907}
8908_ACEOF
8909if ac_fn_c_try_compile "$LINENO"; then :
8910 break
8911fi
8912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913 done
8914 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8915
8916fi
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8918$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8919
cristyd95b7a52013-10-23 13:12:53 +00008920# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
8921# compiler.
8922if test "$ax_cv_c_compiler_vendor" != "sun"; then
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8924$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8925if ${ac_cv_cflags_warn_all+:} false; then :
8926 $as_echo_n "(cached) " >&6
8927else
8928 ac_cv_cflags_warn_all="no, unknown"
8929 ac_ext=c
8930ac_cpp='$CPP $CPPFLAGS'
8931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8933ac_compiler_gnu=$ac_cv_c_compiler_gnu
8934
8935 ac_save_CFLAGS="$CFLAGS"
8936for 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" #
8937do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939/* end confdefs.h. */
8940
8941int
8942main ()
8943{
8944
8945 ;
8946 return 0;
8947}
8948_ACEOF
8949if ac_fn_c_try_compile "$LINENO"; then :
8950 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8951fi
8952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953done
8954 CFLAGS="$ac_save_CFLAGS"
8955 ac_ext=c
8956ac_cpp='$CPP $CPPFLAGS'
8957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8959ac_compiler_gnu=$ac_cv_c_compiler_gnu
8960
8961
8962fi
8963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8964$as_echo "$ac_cv_cflags_warn_all" >&6; }
8965case ".$ac_cv_cflags_warn_all" in
8966 .ok|.ok,*) ;;
8967 .|.no|.no,*)
8968 ;;
8969 *)
8970 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8971 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8972 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8973 ac_status=$?
8974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8975 test $ac_status = 0; }
8976 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8977 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8978 ac_status=$?
8979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8980 test $ac_status = 0; }
8981 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8982 fi
8983 ;;
8984esac
8985
8986fi
8987
8988if test "x$GCC" = "xyes"; then
8989 CFLAGS="$CFLAGS -fexceptions"
8990 touch local.exp
8991else
8992 cat > local.exp <<EOF
8993set CC_FOR_TARGET "$CC"
8994EOF
8995fi
8996
cristy9b86f202012-11-28 21:55:35 +00008997# Check for linker script support
8998
8999 # Check whether --enable-ld-version-script was given.
9000if test "${enable_ld_version_script+set}" = set; then :
9001 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9002fi
9003
9004 if test -z "$have_ld_version_script"; then
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9006$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9007 save_LDFLAGS="$LDFLAGS"
9008 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9009 cat > conftest.map <<EOF
9010foo
9011EOF
9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013/* end confdefs.h. */
9014
9015int
9016main ()
9017{
9018
9019 ;
9020 return 0;
9021}
9022_ACEOF
9023if ac_fn_c_try_link "$LINENO"; then :
9024 accepts_syntax_errors=yes
9025else
9026 accepts_syntax_errors=no
9027fi
9028rm -f core conftest.err conftest.$ac_objext \
9029 conftest$ac_exeext conftest.$ac_ext
9030 if test "$accepts_syntax_errors" = no; then
9031 cat > conftest.map <<EOF
9032VERS_1 {
9033 global: sym;
9034};
9035
9036VERS_2 {
9037 global: sym;
9038} VERS_1;
9039EOF
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041/* end confdefs.h. */
9042
9043int
9044main ()
9045{
9046
9047 ;
9048 return 0;
9049}
9050_ACEOF
9051if ac_fn_c_try_link "$LINENO"; then :
9052 have_ld_version_script=yes
9053else
9054 have_ld_version_script=no
9055fi
9056rm -f core conftest.err conftest.$ac_objext \
9057 conftest$ac_exeext conftest.$ac_ext
9058 else
9059 have_ld_version_script=no
9060 fi
9061 rm -f conftest.map
9062 LDFLAGS="$save_LDFLAGS"
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9064$as_echo "$have_ld_version_script" >&6; }
9065 fi
9066 if test "$have_ld_version_script" = "yes"; then
9067 HAVE_LD_VERSION_SCRIPT_TRUE=
9068 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9069else
9070 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9071 HAVE_LD_VERSION_SCRIPT_FALSE=
9072fi
9073
9074
9075
cristy3ed852e2009-09-05 21:47:34 +00009076#
cristy3ed852e2009-09-05 21:47:34 +00009077# Enable run-time checking.
9078#
9079# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009080if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009081 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9082else
9083 enable_bounds_checking='no'
9084fi
9085
9086
9087if test "$enable_bounds_checking" = yes; then
9088
cristy8b350f62009-11-15 23:12:43 +00009089$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009090
9091fi
9092
9093#
9094# Tests for Windows
9095#
9096
9097
9098
9099GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009100native_win32_build='no'
9101cygwin_build='no'
9102case "${host_os}" in
9103 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009104 cygwin_build='yes'
9105 GDI32_LIBS='-lgdi32'
9106 ;;
9107 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009108 native_win32_build='yes'
9109 GDI32_LIBS='-lgdi32'
9110 ;;
9111esac
9112if test "${GDI32_LIBS}x" != 'x'; then
9113
cristy8b350f62009-11-15 23:12:43 +00009114$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009115
9116fi
9117
cristy73bd4a52010-10-05 11:24:23 +00009118 if test "${GDI32_LIBS}x" != 'x' ; then
9119 WINGDI32_DELEGATE_TRUE=
9120 WINGDI32_DELEGATE_FALSE='#'
9121else
9122 WINGDI32_DELEGATE_TRUE='#'
9123 WINGDI32_DELEGATE_FALSE=
9124fi
9125
9126 if test "${native_win32_build}" = 'yes' ; then
9127 WIN32_NATIVE_BUILD_TRUE=
9128 WIN32_NATIVE_BUILD_FALSE='#'
9129else
9130 WIN32_NATIVE_BUILD_TRUE='#'
9131 WIN32_NATIVE_BUILD_FALSE=
9132fi
9133
9134 if test "${cygwin_build}" = 'yes' ; then
9135 CYGWIN_BUILD_TRUE=
9136 CYGWIN_BUILD_FALSE='#'
9137else
9138 CYGWIN_BUILD_TRUE='#'
9139 CYGWIN_BUILD_FALSE=
9140fi
9141
9142 if test "x${CC}" = 'xcl.exe' ; then
9143 USING_CL_TRUE=
9144 USING_CL_FALSE='#'
9145else
9146 USING_CL_TRUE='#'
9147 USING_CL_FALSE=
9148fi
9149
cristy3ed852e2009-09-05 21:47:34 +00009150
9151WinPathScript="${srcdirfull}/winpath.sh"
9152
9153
9154#
9155# Compiler flags tweaks
9156#
9157if test "${GCC}" != "yes"; then
9158 case "${host}" in
9159 *-*-hpux* )
9160 # aCC: HP ANSI C++ B3910B A.03.34
9161 CFLAGS="${CFLAGS} -Wp,-H30000"
9162 if test -n "${CXXFLAGS}"; then
9163 CXXFLAGS='-AA'
9164 else
9165 CXXFLAGS="${CXXFLAGS} -AA"
9166 fi
9167 ;;
9168 *-dec-osf5.* )
9169 # Compaq alphaev68-dec-osf5.1 compiler
9170 if test -n "${CXXFLAGS}"; then
9171 CXXFLAGS='-std strict_ansi -noimplicit_include'
9172 else
9173 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9174 fi
9175 esac
9176fi
9177
9178# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009180$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009181if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009182 $as_echo_n "(cached) " >&6
9183else
9184
9185im_cv_ld_lazyload='none'
9186case "${host}" in
9187 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9188 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9189 im_cv_ld_lazyload='-Wl,-zlazyload'
9190 fi
9191 ;;
9192esac
9193
9194fi
cristy8b350f62009-11-15 23:12:43 +00009195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009196$as_echo "$im_cv_ld_lazyload" >&6; }
9197if test "${im_cv_ld_lazyload}" != 'none' ; then
9198 if test -z "${LDFLAGS}" ; then
9199 LDFLAGS="${im_cv_ld_lazyload}"
9200 else
9201 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9202 fi
9203fi
9204
9205case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009206 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009207 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009208 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009209if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009210 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9211else
9212 build_osxuniversal=no
9213fi
9214
9215
cristyc37574e2013-02-16 01:04:55 +00009216 if test "${build_osxuniversal}" != no ; then
9217 if test "$enable_dependency_tracking" != no ; then
9218 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009219Please re-run configure with these options:
9220 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009221 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009222 fi
9223 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9224 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9225 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009226 fi
9227 ;;
9228esac
9229
cristy0151ae12011-10-28 16:32:29 +00009230#
9231# ARCH specific include directory
9232#
9233
cristy670aa3c2011-11-03 00:54:00 +00009234# Check whether --with-includearch-dir was given.
9235if test "${with_includearch_dir+set}" = set; then :
9236 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009237else
cristy670aa3c2011-11-03 00:54:00 +00009238 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009239fi
9240
9241
cristyd286fd72013-02-24 19:25:33 +00009242eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009243
cristy0151ae12011-10-28 16:32:29 +00009244
9245#
9246# ARCH specific configuration directory
9247#
9248
cristy670aa3c2011-11-03 00:54:00 +00009249# Check whether --with-sharearch-dir was given.
9250if test "${with_sharearch_dir+set}" = set; then :
9251 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009252else
cristy408ebcd2011-11-14 01:36:57 +00009253 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009254fi
9255
9256
cristy670aa3c2011-11-03 00:54:00 +00009257eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009258
cristy0151ae12011-10-28 16:32:29 +00009259
cristy2ec87cc2013-02-18 17:46:50 +00009260# Path to the pkgconfig folder
9261
9262# Check whether --with-pkgconfigdir was given.
9263if test "${with_pkgconfigdir+set}" = set; then :
9264 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9265else
9266 pkgconfigdir='${libdir}/pkgconfig'
9267fi
9268
9269
9270
cristy0151ae12011-10-28 16:32:29 +00009271#
cristy3ed852e2009-09-05 21:47:34 +00009272# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009273#
9274# Find Posix threads library
9275#
cristy3ed852e2009-09-05 21:47:34 +00009276
9277# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009278if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009279 withval=$with_threads; with_threads=$withval
9280else
9281 with_threads='yes'
9282fi
9283
9284
cristy1ae5c992013-07-30 14:55:07 +00009285THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009286have_threads=no
9287if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009288
9289
cristy73bd4a52010-10-05 11:24:23 +00009290ac_ext=c
9291ac_cpp='$CPP $CPPFLAGS'
9292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9294ac_compiler_gnu=$ac_cv_c_compiler_gnu
9295
9296ax_pthread_ok=no
9297
9298# We used to check for pthread.h first, but this fails if pthread.h
9299# requires special compiler flags (e.g. on True64 or Sequent).
9300# It gets checked for in the link test anyway.
9301
9302# First of all, check if the user has set any of the PTHREAD_LIBS,
9303# etcetera environment variables, and if threads linking works using
9304# them:
9305if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9306 save_CFLAGS="$CFLAGS"
9307 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9308 save_LIBS="$LIBS"
9309 LIBS="$PTHREAD_LIBS $LIBS"
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9311$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313/* end confdefs.h. */
9314
9315/* Override any GCC internal prototype to avoid an error.
9316 Use char because int might match the return type of a GCC
9317 builtin and then its argument prototype would still apply. */
9318#ifdef __cplusplus
9319extern "C"
9320#endif
9321char pthread_join ();
9322int
9323main ()
9324{
9325return pthread_join ();
9326 ;
9327 return 0;
9328}
9329_ACEOF
9330if ac_fn_c_try_link "$LINENO"; then :
9331 ax_pthread_ok=yes
9332fi
9333rm -f core conftest.err conftest.$ac_objext \
9334 conftest$ac_exeext conftest.$ac_ext
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9336$as_echo "$ax_pthread_ok" >&6; }
9337 if test x"$ax_pthread_ok" = xno; then
9338 PTHREAD_LIBS=""
9339 PTHREAD_CFLAGS=""
9340 fi
9341 LIBS="$save_LIBS"
9342 CFLAGS="$save_CFLAGS"
9343fi
9344
9345# We must check for the threads library under a number of different
9346# names; the ordering is very important because some systems
9347# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9348# libraries is broken (non-POSIX).
9349
9350# Create a list of thread flags to try. Items starting with a "-" are
9351# C compiler flags, and other items are library names, except for "none"
9352# which indicates that we try without any flags at all, and "pthread-config"
9353# which is a program returning the flags for the Pth emulation library.
9354
cristy2ec87cc2013-02-18 17:46:50 +00009355ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009356
9357# The ordering *is* (sometimes) important. Some notes on the
9358# individual items follow:
9359
9360# pthreads: AIX (must check this before -lpthread)
9361# none: in case threads are in libc; should be tried before -Kthread and
9362# other compiler flags to prevent continual compiler warnings
9363# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9364# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9365# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9366# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9367# -pthreads: Solaris/gcc
9368# -mthreads: Mingw32/gcc, Lynx/gcc
9369# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9370# doesn't hurt to check since this sometimes defines pthreads too;
9371# also defines -D_REENTRANT)
9372# ... -mt is also the pthreads flag for HP/aCC
9373# pthread: Linux, etcetera
9374# --thread-safe: KAI C++
9375# pthread-config: use pthread-config program (for GNU Pth library)
9376
cristy2ec87cc2013-02-18 17:46:50 +00009377case ${host_os} in
9378 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009379
9380 # On Solaris (at least, for some versions), libc contains stubbed
9381 # (non-functional) versions of the pthreads routines, so link-based
9382 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9383 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9384 # a function called by this macro, so we could check for that, but
9385 # who knows whether they'll stub that too in a future libc.) So,
9386 # we'll just look for -pthreads and -lpthread first:
9387
9388 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9389 ;;
9390
cristy2ec87cc2013-02-18 17:46:50 +00009391 darwin*)
cristya316db12011-10-24 00:49:45 +00009392 ax_pthread_flags="-pthread $ax_pthread_flags"
9393 ;;
cristy73bd4a52010-10-05 11:24:23 +00009394esac
9395
9396if test x"$ax_pthread_ok" = xno; then
9397for flag in $ax_pthread_flags; do
9398
9399 case $flag in
9400 none)
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9402$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9403 ;;
9404
9405 -*)
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9407$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9408 PTHREAD_CFLAGS="$flag"
9409 ;;
9410
cristya316db12011-10-24 00:49:45 +00009411 pthread-config)
9412 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009413set dummy pthread-config; ac_word=$2
9414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9415$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009416if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009417 $as_echo_n "(cached) " >&6
9418else
9419 if test -n "$ax_pthread_config"; then
9420 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9421else
9422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9423for as_dir in $PATH
9424do
9425 IFS=$as_save_IFS
9426 test -z "$as_dir" && as_dir=.
9427 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009429 ac_cv_prog_ax_pthread_config="yes"
9430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9431 break 2
9432 fi
9433done
9434 done
9435IFS=$as_save_IFS
9436
9437 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9438fi
9439fi
9440ax_pthread_config=$ac_cv_prog_ax_pthread_config
9441if test -n "$ax_pthread_config"; then
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9443$as_echo "$ax_pthread_config" >&6; }
9444else
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9446$as_echo "no" >&6; }
9447fi
9448
9449
cristya316db12011-10-24 00:49:45 +00009450 if test x"$ax_pthread_config" = xno; then continue; fi
9451 PTHREAD_CFLAGS="`pthread-config --cflags`"
9452 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9453 ;;
cristy73bd4a52010-10-05 11:24:23 +00009454
9455 *)
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9457$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9458 PTHREAD_LIBS="-l$flag"
9459 ;;
9460 esac
9461
9462 save_LIBS="$LIBS"
9463 save_CFLAGS="$CFLAGS"
9464 LIBS="$PTHREAD_LIBS $LIBS"
9465 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9466
9467 # Check for various functions. We must include pthread.h,
9468 # since some functions may be macros. (On the Sequent, we
9469 # need a special flag -Kthread to make this header compile.)
9470 # We check for pthread_join because it is in -lpthread on IRIX
9471 # while pthread_create is in libc. We check for pthread_attr_init
9472 # due to DEC craziness with -lpthreads. We check for
9473 # pthread_cleanup_push because it is one of the few pthread
9474 # functions on Solaris that doesn't have a non-functional libc stub.
9475 # We try pthread_create on general principles.
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477/* end confdefs.h. */
9478#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009479 static void routine(void *a) { a = 0; }
9480 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009481int
9482main ()
9483{
9484pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009485 pthread_create(&th, 0, start_routine, 0);
9486 pthread_join(th, 0);
9487 pthread_attr_init(&attr);
9488 pthread_cleanup_push(routine, 0);
9489 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009490 ;
9491 return 0;
9492}
9493_ACEOF
9494if ac_fn_c_try_link "$LINENO"; then :
9495 ax_pthread_ok=yes
9496fi
9497rm -f core conftest.err conftest.$ac_objext \
9498 conftest$ac_exeext conftest.$ac_ext
9499
9500 LIBS="$save_LIBS"
9501 CFLAGS="$save_CFLAGS"
9502
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9504$as_echo "$ax_pthread_ok" >&6; }
9505 if test "x$ax_pthread_ok" = xyes; then
9506 break;
9507 fi
9508
9509 PTHREAD_LIBS=""
9510 PTHREAD_CFLAGS=""
9511done
9512fi
9513
9514# Various other checks:
9515if test "x$ax_pthread_ok" = xyes; then
9516 save_LIBS="$LIBS"
9517 LIBS="$PTHREAD_LIBS $LIBS"
9518 save_CFLAGS="$CFLAGS"
9519 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9520
9521 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009523$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009524 attr_name=unknown
9525 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009527/* end confdefs.h. */
9528#include <pthread.h>
9529int
9530main ()
9531{
cristya316db12011-10-24 00:49:45 +00009532int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009533 ;
9534 return 0;
9535}
9536_ACEOF
9537if ac_fn_c_try_link "$LINENO"; then :
9538 attr_name=$attr; break
9539fi
9540rm -f core conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009542 done
cristy73bd4a52010-10-05 11:24:23 +00009543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9544$as_echo "$attr_name" >&6; }
9545 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9546
9547cat >>confdefs.h <<_ACEOF
9548#define PTHREAD_CREATE_JOINABLE $attr_name
9549_ACEOF
9550
9551 fi
9552
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9554$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9555 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009556 case ${host_os} in
9557 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9558 osf* | hpux*) flag="-D_REENTRANT";;
9559 solaris*)
9560 if test "$GCC" = "yes"; then
9561 flag="-D_REENTRANT"
9562 else
9563 flag="-mt -D_REENTRANT"
9564 fi
9565 ;;
cristy73bd4a52010-10-05 11:24:23 +00009566 esac
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9568$as_echo "${flag}" >&6; }
9569 if test "x$flag" != xno; then
9570 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9571 fi
9572
cristya316db12011-10-24 00:49:45 +00009573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9574$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9575if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9576 $as_echo_n "(cached) " >&6
9577else
9578
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580/* end confdefs.h. */
9581
9582 #include <pthread.h>
9583int
9584main ()
9585{
9586int i = PTHREAD_PRIO_INHERIT;
9587 ;
9588 return 0;
9589}
9590_ACEOF
9591if ac_fn_c_try_link "$LINENO"; then :
9592 ax_cv_PTHREAD_PRIO_INHERIT=yes
9593else
9594 ax_cv_PTHREAD_PRIO_INHERIT=no
9595fi
9596rm -f core conftest.err conftest.$ac_objext \
9597 conftest$ac_exeext conftest.$ac_ext
9598
9599fi
9600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9601$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9602 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9603
9604$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9605
9606fi
9607
cristy73bd4a52010-10-05 11:24:23 +00009608 LIBS="$save_LIBS"
9609 CFLAGS="$save_CFLAGS"
9610
cristy23493c42013-04-11 16:04:59 +00009611 # More AIX lossage: compile with *_r variant
9612 if test "x$GCC" != xyes; then
9613 case $host_os in
9614 aix*)
9615 case "x/$CC" in #(
9616 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9617 #handle absolute path differently from PATH based program lookup
9618 case "x$CC" in #(
9619 x/*) :
9620 if as_fn_executable_p ${CC}_r; then :
9621 PTHREAD_CC="${CC}_r"
9622fi ;; #(
9623 *) :
9624 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009625do
9626 # Extract the first word of "$ac_prog", so it can be a program name with args.
9627set dummy $ac_prog; ac_word=$2
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009630if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009631 $as_echo_n "(cached) " >&6
9632else
9633 if test -n "$PTHREAD_CC"; then
9634 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9635else
9636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637for as_dir in $PATH
9638do
9639 IFS=$as_save_IFS
9640 test -z "$as_dir" && as_dir=.
9641 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009643 ac_cv_prog_PTHREAD_CC="$ac_prog"
9644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9645 break 2
9646 fi
9647done
9648 done
9649IFS=$as_save_IFS
9650
9651fi
9652fi
9653PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9654if test -n "$PTHREAD_CC"; then
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9656$as_echo "$PTHREAD_CC" >&6; }
9657else
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659$as_echo "no" >&6; }
9660fi
9661
9662
9663 test -n "$PTHREAD_CC" && break
9664done
cristy23493c42013-04-11 16:04:59 +00009665test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9666 ;;
9667esac ;; #(
9668 *) :
9669 ;;
9670esac
9671 ;;
9672 esac
cristya316db12011-10-24 00:49:45 +00009673 fi
cristy73bd4a52010-10-05 11:24:23 +00009674fi
9675
cristy23493c42013-04-11 16:04:59 +00009676test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9677
cristy73bd4a52010-10-05 11:24:23 +00009678
9679
9680
9681
9682# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9683if test x"$ax_pthread_ok" = xyes; then
9684
9685$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9686
9687 :
9688else
9689 ax_pthread_ok=no
9690
9691fi
9692ac_ext=c
9693ac_cpp='$CPP $CPPFLAGS'
9694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9696ac_compiler_gnu=$ac_cv_c_compiler_gnu
9697
9698
cristy7acf8fb2010-09-23 19:58:53 +00009699 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009700 have_threads=yes
9701 DEF_THREAD="$PTHREAD_CFLAGS"
9702 CFLAGS="$CFLAGS $DEF_THREAD"
9703 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009704 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009705 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009706 { $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 +00009707$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9708 CC="$PTHREAD_CC"
9709 fi
cristy55bf91c2010-09-24 00:29:41 +00009710
9711$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9712
cristy3ed852e2009-09-05 21:47:34 +00009713 fi
9714fi
cristy1ae5c992013-07-30 14:55:07 +00009715LIBS="$LIBS $THREAD_LIBS"
9716
cristy3ed852e2009-09-05 21:47:34 +00009717
9718# Enable support for OpenMP
9719if test "$have_threads" != 'yes'; then
9720 ac_cv_prog_c_openmp=unsupported
9721fi
9722
9723 OPENMP_CFLAGS=
9724 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009725if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009726 enableval=$enable_openmp;
9727fi
9728
9729 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009731$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009732if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009733 $as_echo_n "(cached) " >&6
9734else
cristy8b350f62009-11-15 23:12:43 +00009735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009737
9738#ifndef _OPENMP
9739 choke me
9740#endif
9741#include <omp.h>
9742int main () { return omp_get_num_threads (); }
9743
9744_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009745if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009746 ac_cv_prog_c_openmp='none needed'
9747else
cristy8b350f62009-11-15 23:12:43 +00009748 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009749 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9750 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009751 ac_save_CFLAGS=$CFLAGS
9752 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009755
9756#ifndef _OPENMP
9757 choke me
9758#endif
9759#include <omp.h>
9760int main () { return omp_get_num_threads (); }
9761
9762_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009763if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009764 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009765fi
cristy8b350f62009-11-15 23:12:43 +00009766rm -f core conftest.err conftest.$ac_objext \
9767 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009768 CFLAGS=$ac_save_CFLAGS
9769 if test "$ac_cv_prog_c_openmp" != unsupported; then
9770 break
9771 fi
9772 done
9773fi
cristy8b350f62009-11-15 23:12:43 +00009774rm -f core conftest.err conftest.$ac_objext \
9775 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009776fi
cristy8b350f62009-11-15 23:12:43 +00009777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009778$as_echo "$ac_cv_prog_c_openmp" >&6; }
9779 case $ac_cv_prog_c_openmp in #(
9780 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009781 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009782 *)
cristy8b350f62009-11-15 23:12:43 +00009783 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009784 esac
9785 fi
9786
9787
9788CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9789MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9790
cristy391f1ce2010-09-09 17:23:28 +00009791if test "$enable_openmp" != no; then
9792 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9793 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9794 fi
9795fi
cristy3ed852e2009-09-05 21:47:34 +00009796
cristy736173a2009-09-20 21:18:22 +00009797# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009798
9799
cristy73bd4a52010-10-05 11:24:23 +00009800ac_ext=c
9801ac_cpp='$CPP $CPPFLAGS'
9802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9804ac_compiler_gnu=$ac_cv_c_compiler_gnu
9805
9806ax_pthread_ok=no
9807
9808# We used to check for pthread.h first, but this fails if pthread.h
9809# requires special compiler flags (e.g. on True64 or Sequent).
9810# It gets checked for in the link test anyway.
9811
9812# First of all, check if the user has set any of the PTHREAD_LIBS,
9813# etcetera environment variables, and if threads linking works using
9814# them:
9815if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9816 save_CFLAGS="$CFLAGS"
9817 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9818 save_LIBS="$LIBS"
9819 LIBS="$PTHREAD_LIBS $LIBS"
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9821$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823/* end confdefs.h. */
9824
9825/* Override any GCC internal prototype to avoid an error.
9826 Use char because int might match the return type of a GCC
9827 builtin and then its argument prototype would still apply. */
9828#ifdef __cplusplus
9829extern "C"
9830#endif
9831char pthread_join ();
9832int
9833main ()
9834{
9835return pthread_join ();
9836 ;
9837 return 0;
9838}
9839_ACEOF
9840if ac_fn_c_try_link "$LINENO"; then :
9841 ax_pthread_ok=yes
9842fi
9843rm -f core conftest.err conftest.$ac_objext \
9844 conftest$ac_exeext conftest.$ac_ext
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9846$as_echo "$ax_pthread_ok" >&6; }
9847 if test x"$ax_pthread_ok" = xno; then
9848 PTHREAD_LIBS=""
9849 PTHREAD_CFLAGS=""
9850 fi
9851 LIBS="$save_LIBS"
9852 CFLAGS="$save_CFLAGS"
9853fi
9854
9855# We must check for the threads library under a number of different
9856# names; the ordering is very important because some systems
9857# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9858# libraries is broken (non-POSIX).
9859
9860# Create a list of thread flags to try. Items starting with a "-" are
9861# C compiler flags, and other items are library names, except for "none"
9862# which indicates that we try without any flags at all, and "pthread-config"
9863# which is a program returning the flags for the Pth emulation library.
9864
cristy2ec87cc2013-02-18 17:46:50 +00009865ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009866
9867# The ordering *is* (sometimes) important. Some notes on the
9868# individual items follow:
9869
9870# pthreads: AIX (must check this before -lpthread)
9871# none: in case threads are in libc; should be tried before -Kthread and
9872# other compiler flags to prevent continual compiler warnings
9873# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9874# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9875# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9876# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9877# -pthreads: Solaris/gcc
9878# -mthreads: Mingw32/gcc, Lynx/gcc
9879# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9880# doesn't hurt to check since this sometimes defines pthreads too;
9881# also defines -D_REENTRANT)
9882# ... -mt is also the pthreads flag for HP/aCC
9883# pthread: Linux, etcetera
9884# --thread-safe: KAI C++
9885# pthread-config: use pthread-config program (for GNU Pth library)
9886
cristy2ec87cc2013-02-18 17:46:50 +00009887case ${host_os} in
9888 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009889
9890 # On Solaris (at least, for some versions), libc contains stubbed
9891 # (non-functional) versions of the pthreads routines, so link-based
9892 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9893 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9894 # a function called by this macro, so we could check for that, but
9895 # who knows whether they'll stub that too in a future libc.) So,
9896 # we'll just look for -pthreads and -lpthread first:
9897
9898 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9899 ;;
9900
cristy2ec87cc2013-02-18 17:46:50 +00009901 darwin*)
cristya316db12011-10-24 00:49:45 +00009902 ax_pthread_flags="-pthread $ax_pthread_flags"
9903 ;;
cristy73bd4a52010-10-05 11:24:23 +00009904esac
9905
9906if test x"$ax_pthread_ok" = xno; then
9907for flag in $ax_pthread_flags; do
9908
9909 case $flag in
9910 none)
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9912$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9913 ;;
9914
9915 -*)
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9917$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9918 PTHREAD_CFLAGS="$flag"
9919 ;;
9920
cristya316db12011-10-24 00:49:45 +00009921 pthread-config)
9922 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009923set dummy pthread-config; ac_word=$2
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9925$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009926if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009927 $as_echo_n "(cached) " >&6
9928else
9929 if test -n "$ax_pthread_config"; then
9930 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9931else
9932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933for as_dir in $PATH
9934do
9935 IFS=$as_save_IFS
9936 test -z "$as_dir" && as_dir=.
9937 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009939 ac_cv_prog_ax_pthread_config="yes"
9940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9941 break 2
9942 fi
9943done
9944 done
9945IFS=$as_save_IFS
9946
9947 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9948fi
9949fi
9950ax_pthread_config=$ac_cv_prog_ax_pthread_config
9951if test -n "$ax_pthread_config"; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9953$as_echo "$ax_pthread_config" >&6; }
9954else
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956$as_echo "no" >&6; }
9957fi
9958
9959
cristya316db12011-10-24 00:49:45 +00009960 if test x"$ax_pthread_config" = xno; then continue; fi
9961 PTHREAD_CFLAGS="`pthread-config --cflags`"
9962 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9963 ;;
cristy73bd4a52010-10-05 11:24:23 +00009964
9965 *)
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9967$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9968 PTHREAD_LIBS="-l$flag"
9969 ;;
9970 esac
9971
9972 save_LIBS="$LIBS"
9973 save_CFLAGS="$CFLAGS"
9974 LIBS="$PTHREAD_LIBS $LIBS"
9975 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9976
9977 # Check for various functions. We must include pthread.h,
9978 # since some functions may be macros. (On the Sequent, we
9979 # need a special flag -Kthread to make this header compile.)
9980 # We check for pthread_join because it is in -lpthread on IRIX
9981 # while pthread_create is in libc. We check for pthread_attr_init
9982 # due to DEC craziness with -lpthreads. We check for
9983 # pthread_cleanup_push because it is one of the few pthread
9984 # functions on Solaris that doesn't have a non-functional libc stub.
9985 # We try pthread_create on general principles.
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987/* end confdefs.h. */
9988#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009989 static void routine(void *a) { a = 0; }
9990 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009991int
9992main ()
9993{
9994pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009995 pthread_create(&th, 0, start_routine, 0);
9996 pthread_join(th, 0);
9997 pthread_attr_init(&attr);
9998 pthread_cleanup_push(routine, 0);
9999 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010000 ;
10001 return 0;
10002}
10003_ACEOF
10004if ac_fn_c_try_link "$LINENO"; then :
10005 ax_pthread_ok=yes
10006fi
10007rm -f core conftest.err conftest.$ac_objext \
10008 conftest$ac_exeext conftest.$ac_ext
10009
10010 LIBS="$save_LIBS"
10011 CFLAGS="$save_CFLAGS"
10012
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10014$as_echo "$ax_pthread_ok" >&6; }
10015 if test "x$ax_pthread_ok" = xyes; then
10016 break;
10017 fi
10018
10019 PTHREAD_LIBS=""
10020 PTHREAD_CFLAGS=""
10021done
10022fi
10023
10024# Various other checks:
10025if test "x$ax_pthread_ok" = xyes; then
10026 save_LIBS="$LIBS"
10027 LIBS="$PTHREAD_LIBS $LIBS"
10028 save_CFLAGS="$CFLAGS"
10029 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10030
10031 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010033$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010034 attr_name=unknown
10035 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010037/* end confdefs.h. */
10038#include <pthread.h>
10039int
10040main ()
10041{
cristya316db12011-10-24 00:49:45 +000010042int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010043 ;
10044 return 0;
10045}
10046_ACEOF
10047if ac_fn_c_try_link "$LINENO"; then :
10048 attr_name=$attr; break
10049fi
10050rm -f core conftest.err conftest.$ac_objext \
10051 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010052 done
cristy73bd4a52010-10-05 11:24:23 +000010053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10054$as_echo "$attr_name" >&6; }
10055 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10056
10057cat >>confdefs.h <<_ACEOF
10058#define PTHREAD_CREATE_JOINABLE $attr_name
10059_ACEOF
10060
10061 fi
10062
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10064$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10065 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010066 case ${host_os} in
10067 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10068 osf* | hpux*) flag="-D_REENTRANT";;
10069 solaris*)
10070 if test "$GCC" = "yes"; then
10071 flag="-D_REENTRANT"
10072 else
10073 flag="-mt -D_REENTRANT"
10074 fi
10075 ;;
cristy73bd4a52010-10-05 11:24:23 +000010076 esac
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
10078$as_echo "${flag}" >&6; }
10079 if test "x$flag" != xno; then
10080 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10081 fi
10082
cristya316db12011-10-24 00:49:45 +000010083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10084$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10085if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10086 $as_echo_n "(cached) " >&6
10087else
10088
10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090/* end confdefs.h. */
10091
10092 #include <pthread.h>
10093int
10094main ()
10095{
10096int i = PTHREAD_PRIO_INHERIT;
10097 ;
10098 return 0;
10099}
10100_ACEOF
10101if ac_fn_c_try_link "$LINENO"; then :
10102 ax_cv_PTHREAD_PRIO_INHERIT=yes
10103else
10104 ax_cv_PTHREAD_PRIO_INHERIT=no
10105fi
10106rm -f core conftest.err conftest.$ac_objext \
10107 conftest$ac_exeext conftest.$ac_ext
10108
10109fi
10110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10111$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10112 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10113
10114$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10115
10116fi
10117
cristy73bd4a52010-10-05 11:24:23 +000010118 LIBS="$save_LIBS"
10119 CFLAGS="$save_CFLAGS"
10120
cristy23493c42013-04-11 16:04:59 +000010121 # More AIX lossage: compile with *_r variant
10122 if test "x$GCC" != xyes; then
10123 case $host_os in
10124 aix*)
10125 case "x/$CC" in #(
10126 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10127 #handle absolute path differently from PATH based program lookup
10128 case "x$CC" in #(
10129 x/*) :
10130 if as_fn_executable_p ${CC}_r; then :
10131 PTHREAD_CC="${CC}_r"
10132fi ;; #(
10133 *) :
10134 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010135do
10136 # Extract the first word of "$ac_prog", so it can be a program name with args.
10137set dummy $ac_prog; ac_word=$2
10138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010140if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010141 $as_echo_n "(cached) " >&6
10142else
10143 if test -n "$PTHREAD_CC"; then
10144 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10145else
10146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147for as_dir in $PATH
10148do
10149 IFS=$as_save_IFS
10150 test -z "$as_dir" && as_dir=.
10151 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010153 ac_cv_prog_PTHREAD_CC="$ac_prog"
10154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10155 break 2
10156 fi
10157done
10158 done
10159IFS=$as_save_IFS
10160
10161fi
10162fi
10163PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10164if test -n "$PTHREAD_CC"; then
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10166$as_echo "$PTHREAD_CC" >&6; }
10167else
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169$as_echo "no" >&6; }
10170fi
10171
10172
10173 test -n "$PTHREAD_CC" && break
10174done
cristy23493c42013-04-11 16:04:59 +000010175test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10176 ;;
10177esac ;; #(
10178 *) :
10179 ;;
10180esac
10181 ;;
10182 esac
cristya316db12011-10-24 00:49:45 +000010183 fi
cristy73bd4a52010-10-05 11:24:23 +000010184fi
10185
cristy23493c42013-04-11 16:04:59 +000010186test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10187
cristy73bd4a52010-10-05 11:24:23 +000010188
10189
10190
10191
10192# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10193if test x"$ax_pthread_ok" = xyes; then
10194
10195$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10196
10197 :
10198else
10199 ax_pthread_ok=no
10200
10201fi
10202ac_ext=c
10203ac_cpp='$CPP $CPPFLAGS'
10204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10206ac_compiler_gnu=$ac_cv_c_compiler_gnu
10207
10208
10209
10210# Check whether --enable-opencl was given.
10211if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010212 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010213else
cristy48794642012-09-02 15:19:08 +000010214 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010215fi
10216
10217
cristy48794642012-09-02 15:19:08 +000010218if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010219 ac_ext=c
10220ac_cpp='$CPP $CPPFLAGS'
10221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10223ac_compiler_gnu=$ac_cv_c_compiler_gnu
10224
cristy75314cc2012-09-15 23:08:29 +000010225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10226$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10227if ${ax_cv_c_compiler_ms+:} false; then :
10228 $as_echo_n "(cached) " >&6
10229else
10230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231/* end confdefs.h. */
10232
10233int
10234main ()
10235{
10236#ifndef _MSC_VER
10237 choke me
10238#endif
10239
10240 ;
10241 return 0;
10242}
10243_ACEOF
10244if ac_fn_c_try_compile "$LINENO"; then :
10245 ax_compiler_ms=yes
10246else
10247 ax_compiler_ms=no
10248fi
10249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10250ax_cv_c_compiler_ms=$ax_compiler_ms
10251
10252fi
10253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10254$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010255 if test X$ax_compiler_ms = Xno; then :
10256 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10257fi
10258
10259 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010260 ax_save_CL_CFLAGS=$CL_CFLAGS
10261
10262 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010263 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10264 for ac_header in CL/cl.h OpenCL/cl.h
10265do :
10266 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10267ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010268if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010269 cat >>confdefs.h <<_ACEOF
10270#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10271_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010272 found_opencl_header='yes'
10273 break;
10274else
10275 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010276fi
10277
10278done
10279
cristyfdc7d122013-08-17 20:46:45 +000010280
10281 if test X$found_opencl_header = Xno; then :
10282 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10283 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10284 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10285 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10286 for ac_header in CL/cl.h OpenCL/cl.h
10287do :
10288 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10289ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10290if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10291 cat >>confdefs.h <<_ACEOF
10292#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10293_ACEOF
10294 found_opencl_header='yes'
10295 break;
10296else
10297 found_opencl_header='no'
10298fi
10299
10300done
10301
10302
10303fi
10304
10305 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010306
10307 for ac_header in windows.h
10308do :
10309 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010310if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010311 cat >>confdefs.h <<_ACEOF
10312#define HAVE_WINDOWS_H 1
10313_ACEOF
10314
10315fi
10316
10317done
10318
10319
10320
10321
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10323$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010324if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010325 $as_echo_n "(cached) " >&6
10326else
10327 ax_cv_check_cl_libcl=no
10328 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010329 x86_64) ax_check_cl_libdir=lib64
10330 ax_check_cl_amd_libdir=x86_64
10331 ;;
10332 *) ax_check_cl_libdir=lib
10333 ax_check_cl_amd_libdir=x86
10334 ;;
cristy73bd4a52010-10-05 11:24:23 +000010335 esac
10336 ax_save_CPPFLAGS=$CPPFLAGS
10337 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10338 ax_save_LIBS=$LIBS
10339 LIBS=""
10340 ax_check_libs="-lOpenCL -lCL -lclparser"
10341 for ax_lib in $ax_check_libs; do
10342 if test X$ax_compiler_ms = Xyes; then :
10343 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10344else
10345 ax_try_lib=$ax_lib
10346fi
10347 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349/* end confdefs.h. */
10350
10351 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10352 # include <windows.h>
10353 # endif
10354 # ifdef HAVE_CL_CL_H
10355 # include <CL/cl.h>
10356 # elif defined(HAVE_OPENCL_CL_H)
10357 # include <OpenCL/cl.h>
10358 # else
10359 # error no CL.h
10360 # endif
10361int
10362main ()
10363{
10364clCreateContextFromType(0,0,0,0,0)
10365 ;
10366 return 0;
10367}
10368_ACEOF
10369if ac_fn_c_try_link "$LINENO"; then :
10370 ax_cv_check_cl_libcl=$ax_try_lib; break
10371else
10372 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"
10373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374/* end confdefs.h. */
10375
10376 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10377 # include <windows.h>
10378 # endif
10379 # ifdef HAVE_CL_CL_H
10380 # include <CL/cl.h>
10381 # elif defined(HAVE_OPENCL_CL_H)
10382 # include <OpenCL/cl.h>
10383 # else
10384 # error no CL.h
10385 # endif
10386int
10387main ()
10388{
10389clCreateContextFromType(0,0,0,0,0)
10390 ;
10391 return 0;
10392}
10393_ACEOF
10394if ac_fn_c_try_link "$LINENO"; then :
10395 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10396else
cristy78c5a0c2010-12-04 20:00:59 +000010397 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 +000010398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399/* end confdefs.h. */
10400
10401 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10402 # include <windows.h>
10403 # endif
10404 # ifdef HAVE_CL_CL_H
10405 # include <CL/cl.h>
10406 # elif defined(HAVE_OPENCL_CL_H)
10407 # include <OpenCL/cl.h>
10408 # else
10409 # error no CL.h
10410 # endif
10411int
10412main ()
10413{
10414clCreateContextFromType(0,0,0,0,0)
10415 ;
10416 return 0;
10417}
10418_ACEOF
10419if ac_fn_c_try_link "$LINENO"; then :
10420 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010421else
10422 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"
10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424/* end confdefs.h. */
10425
10426 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10427 # include <windows.h>
10428 # endif
10429 # ifdef HAVE_CL_CL_H
10430 # include <CL/cl.h>
10431 # elif defined(HAVE_OPENCL_CL_H)
10432 # include <OpenCL/cl.h>
10433 # else
10434 # error no CL.h
10435 # endif
10436int
10437main ()
10438{
10439clCreateContextFromType(0,0,0,0,0)
10440 ;
10441 return 0;
10442}
10443_ACEOF
10444if ac_fn_c_try_link "$LINENO"; then :
10445 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10446
10447fi
10448rm -f core conftest.err conftest.$ac_objext \
10449 conftest$ac_exeext conftest.$ac_ext
10450
10451
cristy73bd4a52010-10-05 11:24:23 +000010452fi
10453rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10455fi
10456rm -f core conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10458fi
10459rm -f core conftest.err conftest.$ac_objext \
10460 conftest$ac_exeext conftest.$ac_ext
10461 done
10462
cristyc3f8b8e2011-12-22 14:55:16 +000010463 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010464 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466/* end confdefs.h. */
10467
10468 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10469 # include <windows.h>
10470 # endif
10471 # ifdef HAVE_CL_CL_H
10472 # include <CL/cl.h>
10473 # elif defined(HAVE_OPENCL_CL_H)
10474 # include <OpenCL/cl.h>
10475 # else
10476 # error no CL.h
10477 # endif
10478int
10479main ()
10480{
10481clCreateContextFromType(0,0,0,0,0)
10482 ;
10483 return 0;
10484}
10485_ACEOF
10486if ac_fn_c_try_link "$LINENO"; then :
10487 ax_cv_check_cl_libcl=$LIBS
10488fi
10489rm -f core conftest.err conftest.$ac_objext \
10490 conftest$ac_exeext conftest.$ac_ext
10491fi
10492
10493 LIBS=$ax_save_LIBS
10494 CPPFLAGS=$ax_save_CPPFLAGS
10495fi
10496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10497$as_echo "$ax_cv_check_cl_libcl" >&6; }
10498
10499 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10500 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10501else
10502 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10503$as_echo "#define _OPENCL 1" >>confdefs.h
10504
10505fi
10506 ac_ext=c
10507ac_cpp='$CPP $CPPFLAGS'
10508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10510ac_compiler_gnu=$ac_cv_c_compiler_gnu
10511
10512fi
10513
10514
10515
10516
cristyc7083c12009-10-14 03:16:55 +000010517CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010518CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010519LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010520
cristy391f1ce2010-09-09 17:23:28 +000010521if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010522 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010523 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10524 fi
cristyfd9dcd42010-08-08 18:07:02 +000010525fi
cristy2e8b51d2009-10-17 18:26:15 +000010526
cristy3ed852e2009-09-05 21:47:34 +000010527########
10528#
10529# Check for large file support
10530#
10531########
10532# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010533if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010534 enableval=$enable_largefile;
10535fi
10536
10537if test "$enable_largefile" != no; then
10538
cristy8b350f62009-11-15 23:12:43 +000010539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010540$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010541if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010542 $as_echo_n "(cached) " >&6
10543else
10544 ac_cv_sys_largefile_CC=no
10545 if test "$GCC" != yes; then
10546 ac_save_CC=$CC
10547 while :; do
10548 # IRIX 6.2 and later do not support large files by default,
10549 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010551/* end confdefs.h. */
10552#include <sys/types.h>
10553 /* Check that off_t can represent 2**63 - 1 correctly.
10554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10555 since some C++ compilers masquerading as C compilers
10556 incorrectly reject 9223372036854775807. */
10557#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10559 && LARGE_OFF_T % 2147483647 == 1)
10560 ? 1 : -1];
10561int
10562main ()
10563{
10564
10565 ;
10566 return 0;
10567}
10568_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010569 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010570 break
cristy3ed852e2009-09-05 21:47:34 +000010571fi
cristy3ed852e2009-09-05 21:47:34 +000010572rm -f core conftest.err conftest.$ac_objext
10573 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010574 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010575 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010576fi
cristy3ed852e2009-09-05 21:47:34 +000010577rm -f core conftest.err conftest.$ac_objext
10578 break
10579 done
10580 CC=$ac_save_CC
10581 rm -f conftest.$ac_ext
10582 fi
10583fi
cristy8b350f62009-11-15 23:12:43 +000010584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010585$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10586 if test "$ac_cv_sys_largefile_CC" != no; then
10587 CC=$CC$ac_cv_sys_largefile_CC
10588 fi
10589
cristy8b350f62009-11-15 23:12:43 +000010590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010591$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010592if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010593 $as_echo_n "(cached) " >&6
10594else
10595 while :; do
cristy8b350f62009-11-15 23:12:43 +000010596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010597/* end confdefs.h. */
10598#include <sys/types.h>
10599 /* Check that off_t can represent 2**63 - 1 correctly.
10600 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10601 since some C++ compilers masquerading as C compilers
10602 incorrectly reject 9223372036854775807. */
10603#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10604 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10605 && LARGE_OFF_T % 2147483647 == 1)
10606 ? 1 : -1];
10607int
10608main ()
10609{
10610
10611 ;
10612 return 0;
10613}
10614_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010615if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010616 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010617fi
cristy3ed852e2009-09-05 21:47:34 +000010618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010620/* end confdefs.h. */
10621#define _FILE_OFFSET_BITS 64
10622#include <sys/types.h>
10623 /* Check that off_t can represent 2**63 - 1 correctly.
10624 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10625 since some C++ compilers masquerading as C compilers
10626 incorrectly reject 9223372036854775807. */
10627#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10628 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10629 && LARGE_OFF_T % 2147483647 == 1)
10630 ? 1 : -1];
10631int
10632main ()
10633{
10634
10635 ;
10636 return 0;
10637}
10638_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010639if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010640 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010641fi
cristy3ed852e2009-09-05 21:47:34 +000010642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10643 ac_cv_sys_file_offset_bits=unknown
10644 break
10645done
10646fi
cristy8b350f62009-11-15 23:12:43 +000010647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010648$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10649case $ac_cv_sys_file_offset_bits in #(
10650 no | unknown) ;;
10651 *)
10652cat >>confdefs.h <<_ACEOF
10653#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10654_ACEOF
10655;;
10656esac
10657rm -rf conftest*
10658 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010660$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010661if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010662 $as_echo_n "(cached) " >&6
10663else
10664 while :; do
cristy8b350f62009-11-15 23:12:43 +000010665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010666/* end confdefs.h. */
10667#include <sys/types.h>
10668 /* Check that off_t can represent 2**63 - 1 correctly.
10669 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10670 since some C++ compilers masquerading as C compilers
10671 incorrectly reject 9223372036854775807. */
10672#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10674 && LARGE_OFF_T % 2147483647 == 1)
10675 ? 1 : -1];
10676int
10677main ()
10678{
10679
10680 ;
10681 return 0;
10682}
10683_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010684if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010685 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010686fi
cristy3ed852e2009-09-05 21:47:34 +000010687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010689/* end confdefs.h. */
10690#define _LARGE_FILES 1
10691#include <sys/types.h>
10692 /* Check that off_t can represent 2**63 - 1 correctly.
10693 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10694 since some C++ compilers masquerading as C compilers
10695 incorrectly reject 9223372036854775807. */
10696#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10697 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10698 && LARGE_OFF_T % 2147483647 == 1)
10699 ? 1 : -1];
10700int
10701main ()
10702{
10703
10704 ;
10705 return 0;
10706}
10707_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010708if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010709 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010710fi
cristy3ed852e2009-09-05 21:47:34 +000010711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10712 ac_cv_sys_large_files=unknown
10713 break
10714done
10715fi
cristy8b350f62009-11-15 23:12:43 +000010716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010717$as_echo "$ac_cv_sys_large_files" >&6; }
10718case $ac_cv_sys_large_files in #(
10719 no | unknown) ;;
10720 *)
10721cat >>confdefs.h <<_ACEOF
10722#define _LARGE_FILES $ac_cv_sys_large_files
10723_ACEOF
10724;;
10725esac
10726rm -rf conftest*
10727 fi
cristy14fefe52012-05-21 00:59:18 +000010728
10729
cristy3ed852e2009-09-05 21:47:34 +000010730fi
10731
cristy8b350f62009-11-15 23:12:43 +000010732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010733$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010734if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010735 $as_echo_n "(cached) " >&6
10736else
10737 while :; do
cristy8b350f62009-11-15 23:12:43 +000010738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010739/* end confdefs.h. */
10740#include <sys/types.h> /* for off_t */
10741 #include <stdio.h>
10742int
10743main ()
10744{
10745int (*fp) (FILE *, off_t, int) = fseeko;
10746 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10747 ;
10748 return 0;
10749}
10750_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010751if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010752 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010753fi
cristy8b350f62009-11-15 23:12:43 +000010754rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010757/* end confdefs.h. */
10758#define _LARGEFILE_SOURCE 1
10759#include <sys/types.h> /* for off_t */
10760 #include <stdio.h>
10761int
10762main ()
10763{
10764int (*fp) (FILE *, off_t, int) = fseeko;
10765 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10766 ;
10767 return 0;
10768}
10769_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010770if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010771 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010772fi
cristy8b350f62009-11-15 23:12:43 +000010773rm -f core conftest.err conftest.$ac_objext \
10774 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010775 ac_cv_sys_largefile_source=unknown
10776 break
10777done
10778fi
cristy8b350f62009-11-15 23:12:43 +000010779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010780$as_echo "$ac_cv_sys_largefile_source" >&6; }
10781case $ac_cv_sys_largefile_source in #(
10782 no | unknown) ;;
10783 *)
10784cat >>confdefs.h <<_ACEOF
10785#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10786_ACEOF
10787;;
10788esac
10789rm -rf conftest*
10790
10791# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10792# in glibc 2.1.3, but that breaks too many other things.
10793# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10794if test $ac_cv_sys_largefile_source != unknown; then
10795
cristy8b350f62009-11-15 23:12:43 +000010796$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010797
10798fi
10799
10800LFS_CPPFLAGS=''
10801if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010802 case $ac_cv_sys_file_offset_bits in
10803 no)
10804 # nothing to do here as the host supports LFS fine
10805 ;;
10806 unknown)
cristy8b350f62009-11-15 23:12:43 +000010807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010808$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010809 if test "$cross_compiling" = yes; then :
10810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010812as_fn_error $? "cannot run test program while cross compiling
10813See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010814else
cristy8b350f62009-11-15 23:12:43 +000010815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010817#include <unistd.h>
10818 main () {
10819 exit(!(sizeof(off_t) == 8));
10820 }
cristyda16f162011-02-19 23:52:17 +000010821int
10822main ()
10823{
10824
10825 ;
10826 return 0;
10827}
cristy3ed852e2009-09-05 21:47:34 +000010828_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010829if ac_fn_c_try_run "$LINENO"; then :
10830 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010831
cristyad38abe2012-12-23 23:03:21 +000010832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10833$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010834else
cristyad38abe2012-12-23 23:03:21 +000010835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10836$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010837fi
cristy8b350f62009-11-15 23:12:43 +000010838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10839 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010840fi
10841
cristyc1e0cc12011-09-21 16:41:16 +000010842 ;;
10843 *)
10844 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10845 ;;
10846 esac
cristy3ed852e2009-09-05 21:47:34 +000010847 if test "$ac_cv_sys_large_files" != 'no'; then
10848 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10849 fi
10850 if test "$ac_cv_sys_largefile_source" != 'no'; then
10851 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10852 fi
10853fi
10854
10855
cristy3ed852e2009-09-05 21:47:34 +000010856# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010857enable_dlopen=yes
10858
10859
10860
10861case `pwd` in
10862 *\ * | *\ *)
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10864$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10865esac
10866
10867
10868
cristy99bd5232011-12-07 14:38:20 +000010869macro_version='2.4.2'
10870macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884ltmain="$ac_aux_dir/ltmain.sh"
10885
cristy0c60a692010-11-04 01:09:47 +000010886# Backslashify metacharacters that are still active within
10887# double-quoted strings.
10888sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10889
10890# Same as above, but do not quote variable references.
10891double_quote_subst='s/\(["`\\]\)/\\\1/g'
10892
10893# Sed substitution to delay expansion of an escaped shell variable in a
10894# double_quote_subst'ed string.
10895delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10896
10897# Sed substitution to delay expansion of an escaped single quote.
10898delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10899
10900# Sed substitution to avoid accidental globbing in evaled expressions
10901no_glob_subst='s/\*/\\\*/g'
10902
cristy73bd4a52010-10-05 11:24:23 +000010903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10904$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010905if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010906 $as_echo_n "(cached) " >&6
10907else
10908 if test -n "$NM"; then
10909 # Let the user override the test.
10910 lt_cv_path_NM="$NM"
10911else
10912 lt_nm_to_check="${ac_tool_prefix}nm"
10913 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10914 lt_nm_to_check="$lt_nm_to_check nm"
10915 fi
10916 for lt_tmp_nm in $lt_nm_to_check; do
10917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10918 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10919 IFS="$lt_save_ifs"
10920 test -z "$ac_dir" && ac_dir=.
10921 tmp_nm="$ac_dir/$lt_tmp_nm"
10922 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10923 # Check to see if the nm accepts a BSD-compat flag.
10924 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10925 # nm: unknown option "B" ignored
10926 # Tru64's nm complains that /dev/null is an invalid object file
10927 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10928 */dev/null* | *'Invalid file or object type'*)
10929 lt_cv_path_NM="$tmp_nm -B"
10930 break
10931 ;;
10932 *)
10933 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10934 */dev/null*)
10935 lt_cv_path_NM="$tmp_nm -p"
10936 break
10937 ;;
10938 *)
10939 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10940 continue # so that we can try to find one that supports BSD flags
10941 ;;
10942 esac
10943 ;;
10944 esac
10945 fi
10946 done
10947 IFS="$lt_save_ifs"
10948 done
10949 : ${lt_cv_path_NM=no}
10950fi
10951fi
10952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10953$as_echo "$lt_cv_path_NM" >&6; }
10954if test "$lt_cv_path_NM" != "no"; then
10955 NM="$lt_cv_path_NM"
10956else
10957 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010958 if test -n "$DUMPBIN"; then :
10959 # Let the user override the test.
10960 else
10961 if test -n "$ac_tool_prefix"; then
10962 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010963 do
10964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10965set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010968if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010969 $as_echo_n "(cached) " >&6
10970else
10971 if test -n "$DUMPBIN"; then
10972 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10973else
10974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975for as_dir in $PATH
10976do
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
10979 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010981 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10983 break 2
10984 fi
10985done
10986 done
10987IFS=$as_save_IFS
10988
10989fi
10990fi
10991DUMPBIN=$ac_cv_prog_DUMPBIN
10992if test -n "$DUMPBIN"; then
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10994$as_echo "$DUMPBIN" >&6; }
10995else
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997$as_echo "no" >&6; }
10998fi
10999
11000
11001 test -n "$DUMPBIN" && break
11002 done
11003fi
11004if test -z "$DUMPBIN"; then
11005 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011006 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011007do
11008 # Extract the first word of "$ac_prog", so it can be a program name with args.
11009set dummy $ac_prog; ac_word=$2
11010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11011$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011012if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011013 $as_echo_n "(cached) " >&6
11014else
11015 if test -n "$ac_ct_DUMPBIN"; then
11016 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11017else
11018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019for as_dir in $PATH
11020do
11021 IFS=$as_save_IFS
11022 test -z "$as_dir" && as_dir=.
11023 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011025 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11027 break 2
11028 fi
11029done
11030 done
11031IFS=$as_save_IFS
11032
11033fi
11034fi
11035ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11036if test -n "$ac_ct_DUMPBIN"; then
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11038$as_echo "$ac_ct_DUMPBIN" >&6; }
11039else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041$as_echo "no" >&6; }
11042fi
11043
11044
11045 test -n "$ac_ct_DUMPBIN" && break
11046done
11047
11048 if test "x$ac_ct_DUMPBIN" = x; then
11049 DUMPBIN=":"
11050 else
11051 case $cross_compiling:$ac_tool_warned in
11052yes:)
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11055ac_tool_warned=yes ;;
11056esac
11057 DUMPBIN=$ac_ct_DUMPBIN
11058 fi
11059fi
11060
cristy0c60a692010-11-04 01:09:47 +000011061 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11062 *COFF*)
11063 DUMPBIN="$DUMPBIN -symbols"
11064 ;;
11065 *)
11066 DUMPBIN=:
11067 ;;
11068 esac
11069 fi
cristy73bd4a52010-10-05 11:24:23 +000011070
11071 if test "$DUMPBIN" != ":"; then
11072 NM="$DUMPBIN"
11073 fi
11074fi
11075test -z "$NM" && NM=nm
11076
11077
11078
11079
11080
11081
11082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11083$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011084if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011085 $as_echo_n "(cached) " >&6
11086else
11087 lt_cv_nm_interface="BSD nm"
11088 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011089 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011090 (eval "$ac_compile" 2>conftest.err)
11091 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011092 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011093 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11094 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011095 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011096 cat conftest.out >&5
11097 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11098 lt_cv_nm_interface="MS dumpbin"
11099 fi
11100 rm -f conftest*
11101fi
11102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11103$as_echo "$lt_cv_nm_interface" >&6; }
11104
11105# find the maximum length of command line arguments
11106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11107$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011108if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011109 $as_echo_n "(cached) " >&6
11110else
11111 i=0
11112 teststring="ABCD"
11113
11114 case $build_os in
11115 msdosdjgpp*)
11116 # On DJGPP, this test can blow up pretty badly due to problems in libc
11117 # (any single argument exceeding 2000 bytes causes a buffer overrun
11118 # during glob expansion). Even if it were fixed, the result of this
11119 # check would be larger than it should be.
11120 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11121 ;;
11122
11123 gnu*)
11124 # Under GNU Hurd, this test is not required because there is
11125 # no limit to the length of command line arguments.
11126 # Libtool will interpret -1 as no limit whatsoever
11127 lt_cv_sys_max_cmd_len=-1;
11128 ;;
11129
11130 cygwin* | mingw* | cegcc*)
11131 # On Win9x/ME, this test blows up -- it succeeds, but takes
11132 # about 5 minutes as the teststring grows exponentially.
11133 # Worse, since 9x/ME are not pre-emptively multitasking,
11134 # you end up with a "frozen" computer, even though with patience
11135 # the test eventually succeeds (with a max line length of 256k).
11136 # Instead, let's just punt: use the minimum linelength reported by
11137 # all of the supported platforms: 8192 (on NT/2K/XP).
11138 lt_cv_sys_max_cmd_len=8192;
11139 ;;
11140
cristy0c60a692010-11-04 01:09:47 +000011141 mint*)
11142 # On MiNT this can take a long time and run out of memory.
11143 lt_cv_sys_max_cmd_len=8192;
11144 ;;
11145
cristy73bd4a52010-10-05 11:24:23 +000011146 amigaos*)
11147 # On AmigaOS with pdksh, this test takes hours, literally.
11148 # So we just punt and use a minimum line length of 8192.
11149 lt_cv_sys_max_cmd_len=8192;
11150 ;;
11151
11152 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11153 # This has been around since 386BSD, at least. Likely further.
11154 if test -x /sbin/sysctl; then
11155 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11156 elif test -x /usr/sbin/sysctl; then
11157 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11158 else
11159 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11160 fi
11161 # And add a safety zone
11162 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11164 ;;
11165
11166 interix*)
11167 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11168 lt_cv_sys_max_cmd_len=196608
11169 ;;
11170
cristy99bd5232011-12-07 14:38:20 +000011171 os2*)
11172 # The test takes a long time on OS/2.
11173 lt_cv_sys_max_cmd_len=8192
11174 ;;
11175
cristy73bd4a52010-10-05 11:24:23 +000011176 osf*)
11177 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11178 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11179 # nice to cause kernel panics so lets avoid the loop below.
11180 # First set a reasonable default.
11181 lt_cv_sys_max_cmd_len=16384
11182 #
11183 if test -x /sbin/sysconfig; then
11184 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11185 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11186 esac
11187 fi
11188 ;;
11189 sco3.2v5*)
11190 lt_cv_sys_max_cmd_len=102400
11191 ;;
11192 sysv5* | sco5v6* | sysv4.2uw2*)
11193 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11194 if test -n "$kargmax"; then
11195 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11196 else
11197 lt_cv_sys_max_cmd_len=32768
11198 fi
11199 ;;
11200 *)
11201 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11202 if test -n "$lt_cv_sys_max_cmd_len"; then
11203 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11204 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11205 else
11206 # Make teststring a little bigger before we do anything with it.
11207 # a 1K string should be a reasonable start.
11208 for i in 1 2 3 4 5 6 7 8 ; do
11209 teststring=$teststring$teststring
11210 done
11211 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11212 # If test is not a shell built-in, we'll probably end up computing a
11213 # maximum length that is only half of the actual maximum length, but
11214 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011215 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011216 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011217 test $i != 17 # 1/2 MB should be enough
11218 do
11219 i=`expr $i + 1`
11220 teststring=$teststring$teststring
11221 done
11222 # Only check the string length outside the loop.
11223 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11224 teststring=
11225 # Add a significant safety factor because C++ compilers can tack on
11226 # massive amounts of additional arguments before passing them to the
11227 # linker. It appears as though 1/2 is a usable value.
11228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11229 fi
11230 ;;
11231 esac
11232
11233fi
11234
11235if test -n $lt_cv_sys_max_cmd_len ; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11237$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11238else
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11240$as_echo "none" >&6; }
11241fi
11242max_cmd_len=$lt_cv_sys_max_cmd_len
11243
11244
11245
11246
11247
11248
11249: ${CP="cp -f"}
11250: ${MV="mv -f"}
11251: ${RM="rm -f"}
11252
11253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11254$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11255# Try some XSI features
11256xsi_shell=no
11257( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011258 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11259 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011260 && eval 'test $(( 1 + 1 )) -eq 2 \
11261 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11262 && xsi_shell=yes
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11264$as_echo "$xsi_shell" >&6; }
11265
11266
11267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11268$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11269lt_shell_append=no
11270( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11271 >/dev/null 2>&1 \
11272 && lt_shell_append=yes
11273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11274$as_echo "$lt_shell_append" >&6; }
11275
11276
11277if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11278 lt_unset=unset
11279else
11280 lt_unset=false
11281fi
11282
11283
11284
11285
11286
11287# test EBCDIC or ASCII
11288case `echo X|tr X '\101'` in
11289 A) # ASCII based system
11290 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11291 lt_SP2NL='tr \040 \012'
11292 lt_NL2SP='tr \015\012 \040\040'
11293 ;;
11294 *) # EBCDIC based system
11295 lt_SP2NL='tr \100 \n'
11296 lt_NL2SP='tr \r\n \100\100'
11297 ;;
11298esac
11299
11300
11301
11302
11303
11304
11305
11306
11307
cristyda16f162011-02-19 23:52:17 +000011308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11309$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11310if ${lt_cv_to_host_file_cmd+:} false; then :
11311 $as_echo_n "(cached) " >&6
11312else
11313 case $host in
11314 *-*-mingw* )
11315 case $build in
11316 *-*-mingw* ) # actually msys
11317 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11318 ;;
11319 *-*-cygwin* )
11320 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11321 ;;
11322 * ) # otherwise, assume *nix
11323 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11324 ;;
11325 esac
11326 ;;
11327 *-*-cygwin* )
11328 case $build in
11329 *-*-mingw* ) # actually msys
11330 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11331 ;;
11332 *-*-cygwin* )
11333 lt_cv_to_host_file_cmd=func_convert_file_noop
11334 ;;
11335 * ) # otherwise, assume *nix
11336 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11337 ;;
11338 esac
11339 ;;
11340 * ) # unhandled hosts (and "normal" native builds)
11341 lt_cv_to_host_file_cmd=func_convert_file_noop
11342 ;;
11343esac
11344
11345fi
11346
11347to_host_file_cmd=$lt_cv_to_host_file_cmd
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11349$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11350
11351
11352
11353
11354
11355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11356$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11357if ${lt_cv_to_tool_file_cmd+:} false; then :
11358 $as_echo_n "(cached) " >&6
11359else
11360 #assume ordinary cross tools, or native build.
11361lt_cv_to_tool_file_cmd=func_convert_file_noop
11362case $host in
11363 *-*-mingw* )
11364 case $build in
11365 *-*-mingw* ) # actually msys
11366 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11367 ;;
11368 esac
11369 ;;
11370esac
11371
11372fi
11373
11374to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11376$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11377
11378
11379
11380
11381
cristy73bd4a52010-10-05 11:24:23 +000011382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11383$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011384if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011385 $as_echo_n "(cached) " >&6
11386else
11387 lt_cv_ld_reload_flag='-r'
11388fi
11389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11390$as_echo "$lt_cv_ld_reload_flag" >&6; }
11391reload_flag=$lt_cv_ld_reload_flag
11392case $reload_flag in
11393"" | " "*) ;;
11394*) reload_flag=" $reload_flag" ;;
11395esac
11396reload_cmds='$LD$reload_flag -o $output$reload_objs'
11397case $host_os in
cristyda16f162011-02-19 23:52:17 +000011398 cygwin* | mingw* | pw32* | cegcc*)
11399 if test "$GCC" != yes; then
11400 reload_cmds=false
11401 fi
11402 ;;
cristy73bd4a52010-10-05 11:24:23 +000011403 darwin*)
11404 if test "$GCC" = yes; then
11405 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11406 else
11407 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11408 fi
11409 ;;
11410esac
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420if test -n "$ac_tool_prefix"; then
11421 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11422set dummy ${ac_tool_prefix}objdump; ac_word=$2
11423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11424$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011425if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011426 $as_echo_n "(cached) " >&6
11427else
11428 if test -n "$OBJDUMP"; then
11429 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11430else
11431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432for as_dir in $PATH
11433do
11434 IFS=$as_save_IFS
11435 test -z "$as_dir" && as_dir=.
11436 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011438 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11440 break 2
11441 fi
11442done
11443 done
11444IFS=$as_save_IFS
11445
11446fi
11447fi
11448OBJDUMP=$ac_cv_prog_OBJDUMP
11449if test -n "$OBJDUMP"; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11451$as_echo "$OBJDUMP" >&6; }
11452else
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454$as_echo "no" >&6; }
11455fi
11456
11457
11458fi
11459if test -z "$ac_cv_prog_OBJDUMP"; then
11460 ac_ct_OBJDUMP=$OBJDUMP
11461 # Extract the first word of "objdump", so it can be a program name with args.
11462set dummy objdump; ac_word=$2
11463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11464$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011465if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011466 $as_echo_n "(cached) " >&6
11467else
11468 if test -n "$ac_ct_OBJDUMP"; then
11469 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11470else
11471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11472for as_dir in $PATH
11473do
11474 IFS=$as_save_IFS
11475 test -z "$as_dir" && as_dir=.
11476 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011478 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11480 break 2
11481 fi
11482done
11483 done
11484IFS=$as_save_IFS
11485
11486fi
11487fi
11488ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11489if test -n "$ac_ct_OBJDUMP"; then
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11491$as_echo "$ac_ct_OBJDUMP" >&6; }
11492else
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494$as_echo "no" >&6; }
11495fi
11496
11497 if test "x$ac_ct_OBJDUMP" = x; then
11498 OBJDUMP="false"
11499 else
11500 case $cross_compiling:$ac_tool_warned in
11501yes:)
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11504ac_tool_warned=yes ;;
11505esac
11506 OBJDUMP=$ac_ct_OBJDUMP
11507 fi
11508else
11509 OBJDUMP="$ac_cv_prog_OBJDUMP"
11510fi
11511
11512test -z "$OBJDUMP" && OBJDUMP=objdump
11513
11514
11515
11516
11517
11518
11519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11520$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011521if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011522 $as_echo_n "(cached) " >&6
11523else
11524 lt_cv_file_magic_cmd='$MAGIC_CMD'
11525lt_cv_file_magic_test_file=
11526lt_cv_deplibs_check_method='unknown'
11527# Need to set the preceding variable on all platforms that support
11528# interlibrary dependencies.
11529# 'none' -- dependencies not supported.
11530# `unknown' -- same as none, but documents that we really don't know.
11531# 'pass_all' -- all dependencies passed with no checks.
11532# 'test_compile' -- check by making test program.
11533# 'file_magic [[regex]]' -- check by looking for files in library path
11534# which responds to the $file_magic_cmd with a given extended regex.
11535# If you have `file' or equivalent on your system and you're not sure
11536# whether `pass_all' will *always* work, you probably want this one.
11537
11538case $host_os in
11539aix[4-9]*)
11540 lt_cv_deplibs_check_method=pass_all
11541 ;;
11542
11543beos*)
11544 lt_cv_deplibs_check_method=pass_all
11545 ;;
11546
11547bsdi[45]*)
11548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11549 lt_cv_file_magic_cmd='/usr/bin/file -L'
11550 lt_cv_file_magic_test_file=/shlib/libc.so
11551 ;;
11552
11553cygwin*)
11554 # func_win32_libid is a shell function defined in ltmain.sh
11555 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11556 lt_cv_file_magic_cmd='func_win32_libid'
11557 ;;
11558
11559mingw* | pw32*)
11560 # Base MSYS/MinGW do not provide the 'file' command needed by
11561 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11562 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011563 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11564 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011565 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11566 lt_cv_file_magic_cmd='func_win32_libid'
11567 else
cristy0c60a692010-11-04 01:09:47 +000011568 # Keep this pattern in sync with the one in func_win32_libid.
11569 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 +000011570 lt_cv_file_magic_cmd='$OBJDUMP -f'
11571 fi
11572 ;;
11573
cristy0c60a692010-11-04 01:09:47 +000011574cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011575 # use the weaker test based on 'objdump'. See mingw*.
11576 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11577 lt_cv_file_magic_cmd='$OBJDUMP -f'
11578 ;;
11579
11580darwin* | rhapsody*)
11581 lt_cv_deplibs_check_method=pass_all
11582 ;;
11583
11584freebsd* | dragonfly*)
11585 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11586 case $host_cpu in
11587 i*86 )
11588 # Not sure whether the presence of OpenBSD here was a mistake.
11589 # Let's accept both of them until this is cleared up.
11590 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11591 lt_cv_file_magic_cmd=/usr/bin/file
11592 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11593 ;;
11594 esac
11595 else
11596 lt_cv_deplibs_check_method=pass_all
11597 fi
11598 ;;
11599
11600gnu*)
11601 lt_cv_deplibs_check_method=pass_all
11602 ;;
11603
cristy0c60a692010-11-04 01:09:47 +000011604haiku*)
11605 lt_cv_deplibs_check_method=pass_all
11606 ;;
11607
cristy73bd4a52010-10-05 11:24:23 +000011608hpux10.20* | hpux11*)
11609 lt_cv_file_magic_cmd=/usr/bin/file
11610 case $host_cpu in
11611 ia64*)
11612 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11613 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11614 ;;
11615 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011616 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 +000011617 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11618 ;;
11619 *)
cristy0c60a692010-11-04 01:09:47 +000011620 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 +000011621 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11622 ;;
11623 esac
11624 ;;
11625
11626interix[3-9]*)
11627 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11628 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11629 ;;
11630
11631irix5* | irix6* | nonstopux*)
11632 case $LD in
11633 *-32|*"-32 ") libmagic=32-bit;;
11634 *-n32|*"-n32 ") libmagic=N32;;
11635 *-64|*"-64 ") libmagic=64-bit;;
11636 *) libmagic=never-match;;
11637 esac
11638 lt_cv_deplibs_check_method=pass_all
11639 ;;
11640
cristy99bd5232011-12-07 14:38:20 +000011641# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011642linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011643 lt_cv_deplibs_check_method=pass_all
11644 ;;
11645
11646netbsd*)
11647 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11649 else
11650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11651 fi
11652 ;;
11653
11654newos6*)
11655 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11656 lt_cv_file_magic_cmd=/usr/bin/file
11657 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11658 ;;
11659
11660*nto* | *qnx*)
11661 lt_cv_deplibs_check_method=pass_all
11662 ;;
11663
11664openbsd*)
11665 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11667 else
11668 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11669 fi
11670 ;;
11671
11672osf3* | osf4* | osf5*)
11673 lt_cv_deplibs_check_method=pass_all
11674 ;;
11675
11676rdos*)
11677 lt_cv_deplibs_check_method=pass_all
11678 ;;
11679
11680solaris*)
11681 lt_cv_deplibs_check_method=pass_all
11682 ;;
11683
11684sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11685 lt_cv_deplibs_check_method=pass_all
11686 ;;
11687
11688sysv4 | sysv4.3*)
11689 case $host_vendor in
11690 motorola)
11691 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]'
11692 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11693 ;;
11694 ncr)
11695 lt_cv_deplibs_check_method=pass_all
11696 ;;
11697 sequent)
11698 lt_cv_file_magic_cmd='/bin/file'
11699 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11700 ;;
11701 sni)
11702 lt_cv_file_magic_cmd='/bin/file'
11703 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11704 lt_cv_file_magic_test_file=/lib/libc.so
11705 ;;
11706 siemens)
11707 lt_cv_deplibs_check_method=pass_all
11708 ;;
11709 pc)
11710 lt_cv_deplibs_check_method=pass_all
11711 ;;
11712 esac
11713 ;;
11714
11715tpf*)
11716 lt_cv_deplibs_check_method=pass_all
11717 ;;
11718esac
11719
11720fi
11721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11722$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011723
11724file_magic_glob=
11725want_nocaseglob=no
11726if test "$build" = "$host"; then
11727 case $host_os in
11728 mingw* | pw32*)
11729 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11730 want_nocaseglob=yes
11731 else
11732 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11733 fi
11734 ;;
11735 esac
11736fi
11737
cristy73bd4a52010-10-05 11:24:23 +000011738file_magic_cmd=$lt_cv_file_magic_cmd
11739deplibs_check_method=$lt_cv_deplibs_check_method
11740test -z "$deplibs_check_method" && deplibs_check_method=unknown
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
cristyda16f162011-02-19 23:52:17 +000011753
11754
11755
11756
11757
11758
11759
11760
11761
11762
cristy73bd4a52010-10-05 11:24:23 +000011763if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011764 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11765set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11767$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011768if ${ac_cv_prog_DLLTOOL+:} false; then :
11769 $as_echo_n "(cached) " >&6
11770else
11771 if test -n "$DLLTOOL"; then
11772 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11773else
11774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775for as_dir in $PATH
11776do
11777 IFS=$as_save_IFS
11778 test -z "$as_dir" && as_dir=.
11779 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011781 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11783 break 2
11784 fi
11785done
11786 done
11787IFS=$as_save_IFS
11788
11789fi
11790fi
11791DLLTOOL=$ac_cv_prog_DLLTOOL
11792if test -n "$DLLTOOL"; then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11794$as_echo "$DLLTOOL" >&6; }
11795else
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797$as_echo "no" >&6; }
11798fi
11799
11800
11801fi
11802if test -z "$ac_cv_prog_DLLTOOL"; then
11803 ac_ct_DLLTOOL=$DLLTOOL
11804 # Extract the first word of "dlltool", so it can be a program name with args.
11805set dummy dlltool; ac_word=$2
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807$as_echo_n "checking for $ac_word... " >&6; }
11808if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11809 $as_echo_n "(cached) " >&6
11810else
11811 if test -n "$ac_ct_DLLTOOL"; then
11812 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11813else
11814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815for as_dir in $PATH
11816do
11817 IFS=$as_save_IFS
11818 test -z "$as_dir" && as_dir=.
11819 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011821 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 break 2
11824 fi
11825done
11826 done
11827IFS=$as_save_IFS
11828
11829fi
11830fi
11831ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11832if test -n "$ac_ct_DLLTOOL"; then
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11834$as_echo "$ac_ct_DLLTOOL" >&6; }
11835else
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837$as_echo "no" >&6; }
11838fi
11839
11840 if test "x$ac_ct_DLLTOOL" = x; then
11841 DLLTOOL="false"
11842 else
11843 case $cross_compiling:$ac_tool_warned in
11844yes:)
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11847ac_tool_warned=yes ;;
11848esac
11849 DLLTOOL=$ac_ct_DLLTOOL
11850 fi
11851else
11852 DLLTOOL="$ac_cv_prog_DLLTOOL"
11853fi
11854
11855test -z "$DLLTOOL" && DLLTOOL=dlltool
11856
11857
11858
11859
11860
11861
11862
11863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11864$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11865if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11866 $as_echo_n "(cached) " >&6
11867else
11868 lt_cv_sharedlib_from_linklib_cmd='unknown'
11869
11870case $host_os in
11871cygwin* | mingw* | pw32* | cegcc*)
11872 # two different shell functions defined in ltmain.sh
11873 # decide which to use based on capabilities of $DLLTOOL
11874 case `$DLLTOOL --help 2>&1` in
11875 *--identify-strict*)
11876 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11877 ;;
11878 *)
11879 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11880 ;;
11881 esac
11882 ;;
11883*)
11884 # fallback: assume linklib IS sharedlib
11885 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11886 ;;
11887esac
11888
11889fi
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11891$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11892sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11893test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11894
11895
11896
11897
11898
11899
11900
11901if test -n "$ac_tool_prefix"; then
11902 for ac_prog in ar
11903 do
11904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11905set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11907$as_echo_n "checking for $ac_word... " >&6; }
11908if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011909 $as_echo_n "(cached) " >&6
11910else
11911 if test -n "$AR"; then
11912 ac_cv_prog_AR="$AR" # Let the user override the test.
11913else
11914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11915for as_dir in $PATH
11916do
11917 IFS=$as_save_IFS
11918 test -z "$as_dir" && as_dir=.
11919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011921 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11923 break 2
11924 fi
11925done
11926 done
11927IFS=$as_save_IFS
11928
11929fi
11930fi
11931AR=$ac_cv_prog_AR
11932if test -n "$AR"; then
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11934$as_echo "$AR" >&6; }
11935else
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937$as_echo "no" >&6; }
11938fi
11939
11940
cristyda16f162011-02-19 23:52:17 +000011941 test -n "$AR" && break
11942 done
cristy73bd4a52010-10-05 11:24:23 +000011943fi
cristyda16f162011-02-19 23:52:17 +000011944if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011945 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011946 for ac_prog in ar
11947do
11948 # Extract the first word of "$ac_prog", so it can be a program name with args.
11949set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011952if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011953 $as_echo_n "(cached) " >&6
11954else
11955 if test -n "$ac_ct_AR"; then
11956 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11957else
11958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959for as_dir in $PATH
11960do
11961 IFS=$as_save_IFS
11962 test -z "$as_dir" && as_dir=.
11963 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011965 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 break 2
11968 fi
11969done
11970 done
11971IFS=$as_save_IFS
11972
11973fi
11974fi
11975ac_ct_AR=$ac_cv_prog_ac_ct_AR
11976if test -n "$ac_ct_AR"; then
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11978$as_echo "$ac_ct_AR" >&6; }
11979else
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981$as_echo "no" >&6; }
11982fi
11983
cristyda16f162011-02-19 23:52:17 +000011984
11985 test -n "$ac_ct_AR" && break
11986done
11987
cristy73bd4a52010-10-05 11:24:23 +000011988 if test "x$ac_ct_AR" = x; then
11989 AR="false"
11990 else
11991 case $cross_compiling:$ac_tool_warned in
11992yes:)
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11995ac_tool_warned=yes ;;
11996esac
11997 AR=$ac_ct_AR
11998 fi
cristy73bd4a52010-10-05 11:24:23 +000011999fi
12000
cristyda16f162011-02-19 23:52:17 +000012001: ${AR=ar}
12002: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
cristyda16f162011-02-19 23:52:17 +000012014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12015$as_echo_n "checking for archiver @FILE support... " >&6; }
12016if ${lt_cv_ar_at_file+:} false; then :
12017 $as_echo_n "(cached) " >&6
12018else
12019 lt_cv_ar_at_file=no
12020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021/* end confdefs.h. */
12022
12023int
12024main ()
12025{
12026
12027 ;
12028 return 0;
12029}
12030_ACEOF
12031if ac_fn_c_try_compile "$LINENO"; then :
12032 echo conftest.$ac_objext > conftest.lst
12033 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12035 (eval $lt_ar_try) 2>&5
12036 ac_status=$?
12037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12038 test $ac_status = 0; }
12039 if test "$ac_status" -eq 0; then
12040 # Ensure the archiver fails upon bogus file names.
12041 rm -f conftest.$ac_objext libconftest.a
12042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12043 (eval $lt_ar_try) 2>&5
12044 ac_status=$?
12045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12046 test $ac_status = 0; }
12047 if test "$ac_status" -ne 0; then
12048 lt_cv_ar_at_file=@
12049 fi
12050 fi
12051 rm -f conftest.* libconftest.a
12052
12053fi
12054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12055
12056fi
12057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12058$as_echo "$lt_cv_ar_at_file" >&6; }
12059
12060if test "x$lt_cv_ar_at_file" = xno; then
12061 archiver_list_spec=
12062else
12063 archiver_list_spec=$lt_cv_ar_at_file
12064fi
12065
12066
12067
12068
12069
12070
12071
cristy73bd4a52010-10-05 11:24:23 +000012072if test -n "$ac_tool_prefix"; then
12073 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12074set dummy ${ac_tool_prefix}strip; ac_word=$2
12075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12076$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012077if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012078 $as_echo_n "(cached) " >&6
12079else
12080 if test -n "$STRIP"; then
12081 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12082else
12083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12084for as_dir in $PATH
12085do
12086 IFS=$as_save_IFS
12087 test -z "$as_dir" && as_dir=.
12088 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012090 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12092 break 2
12093 fi
12094done
12095 done
12096IFS=$as_save_IFS
12097
12098fi
12099fi
12100STRIP=$ac_cv_prog_STRIP
12101if test -n "$STRIP"; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12103$as_echo "$STRIP" >&6; }
12104else
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106$as_echo "no" >&6; }
12107fi
12108
12109
12110fi
12111if test -z "$ac_cv_prog_STRIP"; then
12112 ac_ct_STRIP=$STRIP
12113 # Extract the first word of "strip", so it can be a program name with args.
12114set dummy strip; ac_word=$2
12115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12116$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012117if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012118 $as_echo_n "(cached) " >&6
12119else
12120 if test -n "$ac_ct_STRIP"; then
12121 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12122else
12123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124for as_dir in $PATH
12125do
12126 IFS=$as_save_IFS
12127 test -z "$as_dir" && as_dir=.
12128 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012130 ac_cv_prog_ac_ct_STRIP="strip"
12131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12132 break 2
12133 fi
12134done
12135 done
12136IFS=$as_save_IFS
12137
12138fi
12139fi
12140ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12141if test -n "$ac_ct_STRIP"; then
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12143$as_echo "$ac_ct_STRIP" >&6; }
12144else
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146$as_echo "no" >&6; }
12147fi
12148
12149 if test "x$ac_ct_STRIP" = x; then
12150 STRIP=":"
12151 else
12152 case $cross_compiling:$ac_tool_warned in
12153yes:)
12154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12156ac_tool_warned=yes ;;
12157esac
12158 STRIP=$ac_ct_STRIP
12159 fi
12160else
12161 STRIP="$ac_cv_prog_STRIP"
12162fi
12163
12164test -z "$STRIP" && STRIP=:
12165
12166
12167
12168
12169
12170
12171if test -n "$ac_tool_prefix"; then
12172 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12173set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12175$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012176if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012177 $as_echo_n "(cached) " >&6
12178else
12179 if test -n "$RANLIB"; then
12180 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12181else
12182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183for as_dir in $PATH
12184do
12185 IFS=$as_save_IFS
12186 test -z "$as_dir" && as_dir=.
12187 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012189 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12191 break 2
12192 fi
12193done
12194 done
12195IFS=$as_save_IFS
12196
12197fi
12198fi
12199RANLIB=$ac_cv_prog_RANLIB
12200if test -n "$RANLIB"; then
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12202$as_echo "$RANLIB" >&6; }
12203else
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12205$as_echo "no" >&6; }
12206fi
12207
12208
12209fi
12210if test -z "$ac_cv_prog_RANLIB"; then
12211 ac_ct_RANLIB=$RANLIB
12212 # Extract the first word of "ranlib", so it can be a program name with args.
12213set dummy ranlib; ac_word=$2
12214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12215$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012216if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012217 $as_echo_n "(cached) " >&6
12218else
12219 if test -n "$ac_ct_RANLIB"; then
12220 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12221else
12222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12223for as_dir in $PATH
12224do
12225 IFS=$as_save_IFS
12226 test -z "$as_dir" && as_dir=.
12227 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012229 ac_cv_prog_ac_ct_RANLIB="ranlib"
12230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12231 break 2
12232 fi
12233done
12234 done
12235IFS=$as_save_IFS
12236
12237fi
12238fi
12239ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12240if test -n "$ac_ct_RANLIB"; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12242$as_echo "$ac_ct_RANLIB" >&6; }
12243else
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245$as_echo "no" >&6; }
12246fi
12247
12248 if test "x$ac_ct_RANLIB" = x; then
12249 RANLIB=":"
12250 else
12251 case $cross_compiling:$ac_tool_warned in
12252yes:)
12253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12255ac_tool_warned=yes ;;
12256esac
12257 RANLIB=$ac_ct_RANLIB
12258 fi
12259else
12260 RANLIB="$ac_cv_prog_RANLIB"
12261fi
12262
12263test -z "$RANLIB" && RANLIB=:
12264
12265
12266
12267
12268
12269
12270# Determine commands to create old-style static archives.
12271old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12272old_postinstall_cmds='chmod 644 $oldlib'
12273old_postuninstall_cmds=
12274
12275if test -n "$RANLIB"; then
12276 case $host_os in
12277 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012278 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012279 ;;
12280 *)
cristy99bd5232011-12-07 14:38:20 +000012281 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012282 ;;
12283 esac
cristy99bd5232011-12-07 14:38:20 +000012284 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012285fi
12286
cristy0c60a692010-11-04 01:09:47 +000012287case $host_os in
12288 darwin*)
12289 lock_old_archive_extraction=yes ;;
12290 *)
12291 lock_old_archive_extraction=no ;;
12292esac
12293
12294
12295
12296
12297
12298
cristy73bd4a52010-10-05 11:24:23 +000012299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332# If no C compiler was specified, use CC.
12333LTCC=${LTCC-"$CC"}
12334
12335# If no C compiler flags were specified, use CFLAGS.
12336LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12337
12338# Allow CC to be a program name with arguments.
12339compiler=$CC
12340
12341
12342# Check for command to grab the raw symbol name followed by C symbol from nm.
12343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12344$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012345if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012346 $as_echo_n "(cached) " >&6
12347else
12348
12349# These are sane defaults that work on at least a few old systems.
12350# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12351
12352# Character class describing NM global symbol codes.
12353symcode='[BCDEGRST]'
12354
12355# Regexp to match symbols that can be accessed directly from C.
12356sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12357
12358# Define system-specific variables.
12359case $host_os in
12360aix*)
12361 symcode='[BCDT]'
12362 ;;
12363cygwin* | mingw* | pw32* | cegcc*)
12364 symcode='[ABCDGISTW]'
12365 ;;
12366hpux*)
12367 if test "$host_cpu" = ia64; then
12368 symcode='[ABCDEGRST]'
12369 fi
12370 ;;
12371irix* | nonstopux*)
12372 symcode='[BCDEGRST]'
12373 ;;
12374osf*)
12375 symcode='[BCDEGQRST]'
12376 ;;
12377solaris*)
12378 symcode='[BDRT]'
12379 ;;
12380sco3.2v5*)
12381 symcode='[DT]'
12382 ;;
12383sysv4.2uw2*)
12384 symcode='[DT]'
12385 ;;
12386sysv5* | sco5v6* | unixware* | OpenUNIX*)
12387 symcode='[ABDT]'
12388 ;;
12389sysv4)
12390 symcode='[DFNSTU]'
12391 ;;
12392esac
12393
12394# If we're using GNU nm, then use its standard symbol codes.
12395case `$NM -V 2>&1` in
12396*GNU* | *'with BFD'*)
12397 symcode='[ABCDGIRSTW]' ;;
12398esac
12399
12400# Transform an extracted symbol line into a proper C declaration.
12401# Some systems (esp. on ia64) link data and code symbols differently,
12402# so use this general approach.
12403lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12404
12405# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012406lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12407lt_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 +000012408
12409# Handle CRLF in mingw tool chain
12410opt_cr=
12411case $build_os in
12412mingw*)
12413 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12414 ;;
12415esac
12416
12417# Try without a prefix underscore, then with it.
12418for ac_symprfx in "" "_"; do
12419
12420 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12421 symxfrm="\\1 $ac_symprfx\\2 \\2"
12422
12423 # Write the raw and C identifiers.
12424 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12425 # Fake it for dumpbin and say T for any non-static function
12426 # and D for any global variable.
12427 # Also find C++ and __fastcall symbols from MSVC++,
12428 # which start with @ or ?.
12429 lt_cv_sys_global_symbol_pipe="$AWK '"\
12430" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012431" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012432" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12433" \$ 0!~/External *\|/{next};"\
12434" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12435" {if(hide[section]) next};"\
12436" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12437" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12438" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12439" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12440" ' prfx=^$ac_symprfx"
12441 else
12442 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12443 fi
cristyda16f162011-02-19 23:52:17 +000012444 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012445
12446 # Check to see that the pipe works correctly.
12447 pipe_works=no
12448
12449 rm -f conftest*
12450 cat > conftest.$ac_ext <<_LT_EOF
12451#ifdef __cplusplus
12452extern "C" {
12453#endif
12454char nm_test_var;
12455void nm_test_func(void);
12456void nm_test_func(void){}
12457#ifdef __cplusplus
12458}
12459#endif
12460int main(){nm_test_var='a';nm_test_func();return(0);}
12461_LT_EOF
12462
12463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12464 (eval $ac_compile) 2>&5
12465 ac_status=$?
12466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12467 test $ac_status = 0; }; then
12468 # Now try to grab the symbols.
12469 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12471 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012472 ac_status=$?
12473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12474 test $ac_status = 0; } && test -s "$nlist"; then
12475 # Try sorting and uniquifying the output.
12476 if sort "$nlist" | uniq > "$nlist"T; then
12477 mv -f "$nlist"T "$nlist"
12478 else
12479 rm -f "$nlist"T
12480 fi
12481
12482 # Make sure that we snagged all the symbols we need.
12483 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12484 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12485 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012486/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12487#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12488/* DATA imports from DLLs on WIN32 con't be const, because runtime
12489 relocations are performed -- see ld's documentation on pseudo-relocs. */
12490# define LT_DLSYM_CONST
12491#elif defined(__osf__)
12492/* This system does not cope well with relocations in const data. */
12493# define LT_DLSYM_CONST
12494#else
12495# define LT_DLSYM_CONST const
12496#endif
12497
cristy73bd4a52010-10-05 11:24:23 +000012498#ifdef __cplusplus
12499extern "C" {
12500#endif
12501
12502_LT_EOF
12503 # Now generate the symbol file.
12504 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12505
12506 cat <<_LT_EOF >> conftest.$ac_ext
12507
12508/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012509LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012510 const char *name;
12511 void *address;
12512}
12513lt__PROGRAM__LTX_preloaded_symbols[] =
12514{
12515 { "@PROGRAM@", (void *) 0 },
12516_LT_EOF
12517 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12518 cat <<\_LT_EOF >> conftest.$ac_ext
12519 {0, (void *) 0}
12520};
12521
12522/* This works around a problem in FreeBSD linker */
12523#ifdef FREEBSD_WORKAROUND
12524static const void *lt_preloaded_setup() {
12525 return lt__PROGRAM__LTX_preloaded_symbols;
12526}
12527#endif
12528
12529#ifdef __cplusplus
12530}
12531#endif
12532_LT_EOF
12533 # Now try linking the two files.
12534 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012535 lt_globsym_save_LIBS=$LIBS
12536 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012537 LIBS="conftstm.$ac_objext"
12538 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12540 (eval $ac_link) 2>&5
12541 ac_status=$?
12542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12543 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12544 pipe_works=yes
12545 fi
cristyda16f162011-02-19 23:52:17 +000012546 LIBS=$lt_globsym_save_LIBS
12547 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012548 else
12549 echo "cannot find nm_test_func in $nlist" >&5
12550 fi
12551 else
12552 echo "cannot find nm_test_var in $nlist" >&5
12553 fi
12554 else
12555 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12556 fi
12557 else
12558 echo "$progname: failed program was:" >&5
12559 cat conftest.$ac_ext >&5
12560 fi
12561 rm -rf conftest* conftst*
12562
12563 # Do not use the global_symbol_pipe unless it works.
12564 if test "$pipe_works" = yes; then
12565 break
12566 else
12567 lt_cv_sys_global_symbol_pipe=
12568 fi
12569done
12570
12571fi
12572
12573if test -z "$lt_cv_sys_global_symbol_pipe"; then
12574 lt_cv_sys_global_symbol_to_cdecl=
12575fi
12576if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12578$as_echo "failed" >&6; }
12579else
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12581$as_echo "ok" >&6; }
12582fi
12583
cristyda16f162011-02-19 23:52:17 +000012584# Response file support.
12585if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12586 nm_file_list_spec='@'
12587elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12588 nm_file_list_spec='@'
12589fi
cristy73bd4a52010-10-05 11:24:23 +000012590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
cristyda16f162011-02-19 23:52:17 +000012611
12612
12613
12614
12615
12616
12617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12618$as_echo_n "checking for sysroot... " >&6; }
12619
12620# Check whether --with-sysroot was given.
12621if test "${with_sysroot+set}" = set; then :
12622 withval=$with_sysroot;
12623else
12624 with_sysroot=no
12625fi
12626
12627
12628lt_sysroot=
12629case ${with_sysroot} in #(
12630 yes)
12631 if test "$GCC" = yes; then
12632 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12633 fi
12634 ;; #(
12635 /*)
12636 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12637 ;; #(
12638 no|'')
12639 ;; #(
12640 *)
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12642$as_echo "${with_sysroot}" >&6; }
12643 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12644 ;;
12645esac
12646
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12648$as_echo "${lt_sysroot:-no}" >&6; }
12649
12650
12651
12652
12653
cristy73bd4a52010-10-05 11:24:23 +000012654# Check whether --enable-libtool-lock was given.
12655if test "${enable_libtool_lock+set}" = set; then :
12656 enableval=$enable_libtool_lock;
12657fi
12658
12659test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12660
12661# Some flags need to be propagated to the compiler or linker for good
12662# libtool support.
12663case $host in
12664ia64-*-hpux*)
12665 # Find out which ABI we are using.
12666 echo 'int i;' > conftest.$ac_ext
12667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12668 (eval $ac_compile) 2>&5
12669 ac_status=$?
12670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12671 test $ac_status = 0; }; then
12672 case `/usr/bin/file conftest.$ac_objext` in
12673 *ELF-32*)
12674 HPUX_IA64_MODE="32"
12675 ;;
12676 *ELF-64*)
12677 HPUX_IA64_MODE="64"
12678 ;;
12679 esac
12680 fi
12681 rm -rf conftest*
12682 ;;
12683*-*-irix6*)
12684 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012685 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12687 (eval $ac_compile) 2>&5
12688 ac_status=$?
12689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12690 test $ac_status = 0; }; then
12691 if test "$lt_cv_prog_gnu_ld" = yes; then
12692 case `/usr/bin/file conftest.$ac_objext` in
12693 *32-bit*)
12694 LD="${LD-ld} -melf32bsmip"
12695 ;;
12696 *N32*)
12697 LD="${LD-ld} -melf32bmipn32"
12698 ;;
12699 *64-bit*)
12700 LD="${LD-ld} -melf64bmip"
12701 ;;
12702 esac
12703 else
12704 case `/usr/bin/file conftest.$ac_objext` in
12705 *32-bit*)
12706 LD="${LD-ld} -32"
12707 ;;
12708 *N32*)
12709 LD="${LD-ld} -n32"
12710 ;;
12711 *64-bit*)
12712 LD="${LD-ld} -64"
12713 ;;
12714 esac
12715 fi
12716 fi
12717 rm -rf conftest*
12718 ;;
12719
cristyd95b7a52013-10-23 13:12:53 +000012720x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000012721s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12722 # Find out which ABI we are using.
12723 echo 'int i;' > conftest.$ac_ext
12724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12725 (eval $ac_compile) 2>&5
12726 ac_status=$?
12727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12728 test $ac_status = 0; }; then
12729 case `/usr/bin/file conftest.o` in
12730 *32-bit*)
12731 case $host in
12732 x86_64-*kfreebsd*-gnu)
12733 LD="${LD-ld} -m elf_i386_fbsd"
12734 ;;
12735 x86_64-*linux*)
12736 LD="${LD-ld} -m elf_i386"
12737 ;;
cristya5bda012013-11-03 18:05:38 +000012738 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000012739 LD="${LD-ld} -m elf32lppclinux"
12740 ;;
cristya5bda012013-11-03 18:05:38 +000012741 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012742 LD="${LD-ld} -m elf32ppclinux"
12743 ;;
12744 s390x-*linux*)
12745 LD="${LD-ld} -m elf_s390"
12746 ;;
12747 sparc64-*linux*)
12748 LD="${LD-ld} -m elf32_sparc"
12749 ;;
12750 esac
12751 ;;
12752 *64-bit*)
12753 case $host in
12754 x86_64-*kfreebsd*-gnu)
12755 LD="${LD-ld} -m elf_x86_64_fbsd"
12756 ;;
12757 x86_64-*linux*)
12758 LD="${LD-ld} -m elf_x86_64"
12759 ;;
cristyd95b7a52013-10-23 13:12:53 +000012760 powerpcle-*linux*)
12761 LD="${LD-ld} -m elf64lppc"
12762 ;;
12763 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012764 LD="${LD-ld} -m elf64ppc"
12765 ;;
12766 s390*-*linux*|s390*-*tpf*)
12767 LD="${LD-ld} -m elf64_s390"
12768 ;;
12769 sparc*-*linux*)
12770 LD="${LD-ld} -m elf64_sparc"
12771 ;;
12772 esac
12773 ;;
12774 esac
12775 fi
12776 rm -rf conftest*
12777 ;;
12778
12779*-*-sco3.2v5*)
12780 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12781 SAVE_CFLAGS="$CFLAGS"
12782 CFLAGS="$CFLAGS -belf"
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12784$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012785if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012786 $as_echo_n "(cached) " >&6
12787else
12788 ac_ext=c
12789ac_cpp='$CPP $CPPFLAGS'
12790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12792ac_compiler_gnu=$ac_cv_c_compiler_gnu
12793
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795/* end confdefs.h. */
12796
12797int
12798main ()
12799{
12800
12801 ;
12802 return 0;
12803}
12804_ACEOF
12805if ac_fn_c_try_link "$LINENO"; then :
12806 lt_cv_cc_needs_belf=yes
12807else
12808 lt_cv_cc_needs_belf=no
12809fi
12810rm -f core conftest.err conftest.$ac_objext \
12811 conftest$ac_exeext conftest.$ac_ext
12812 ac_ext=c
12813ac_cpp='$CPP $CPPFLAGS'
12814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12816ac_compiler_gnu=$ac_cv_c_compiler_gnu
12817
12818fi
12819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12820$as_echo "$lt_cv_cc_needs_belf" >&6; }
12821 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12822 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12823 CFLAGS="$SAVE_CFLAGS"
12824 fi
12825 ;;
cristy99bd5232011-12-07 14:38:20 +000012826*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012827 # Find out which ABI we are using.
12828 echo 'int i;' > conftest.$ac_ext
12829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12830 (eval $ac_compile) 2>&5
12831 ac_status=$?
12832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833 test $ac_status = 0; }; then
12834 case `/usr/bin/file conftest.o` in
12835 *64-bit*)
12836 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012837 yes*)
12838 case $host in
12839 i?86-*-solaris*)
12840 LD="${LD-ld} -m elf_x86_64"
12841 ;;
12842 sparc*-*-solaris*)
12843 LD="${LD-ld} -m elf64_sparc"
12844 ;;
12845 esac
12846 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12847 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12848 LD="${LD-ld}_sol2"
12849 fi
12850 ;;
cristy73bd4a52010-10-05 11:24:23 +000012851 *)
12852 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12853 LD="${LD-ld} -64"
12854 fi
12855 ;;
12856 esac
12857 ;;
12858 esac
12859 fi
12860 rm -rf conftest*
12861 ;;
12862esac
12863
12864need_locks="$enable_libtool_lock"
12865
cristyda16f162011-02-19 23:52:17 +000012866if test -n "$ac_tool_prefix"; then
12867 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12868set dummy ${ac_tool_prefix}mt; ac_word=$2
12869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12870$as_echo_n "checking for $ac_word... " >&6; }
12871if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12872 $as_echo_n "(cached) " >&6
12873else
12874 if test -n "$MANIFEST_TOOL"; then
12875 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12876else
12877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12878for as_dir in $PATH
12879do
12880 IFS=$as_save_IFS
12881 test -z "$as_dir" && as_dir=.
12882 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012884 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12886 break 2
12887 fi
12888done
12889 done
12890IFS=$as_save_IFS
12891
12892fi
12893fi
12894MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12895if test -n "$MANIFEST_TOOL"; then
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12897$as_echo "$MANIFEST_TOOL" >&6; }
12898else
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900$as_echo "no" >&6; }
12901fi
12902
12903
12904fi
12905if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12906 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12907 # Extract the first word of "mt", so it can be a program name with args.
12908set dummy mt; ac_word=$2
12909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12910$as_echo_n "checking for $ac_word... " >&6; }
12911if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12912 $as_echo_n "(cached) " >&6
12913else
12914 if test -n "$ac_ct_MANIFEST_TOOL"; then
12915 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12916else
12917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12918for as_dir in $PATH
12919do
12920 IFS=$as_save_IFS
12921 test -z "$as_dir" && as_dir=.
12922 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012924 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12926 break 2
12927 fi
12928done
12929 done
12930IFS=$as_save_IFS
12931
12932fi
12933fi
12934ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12935if test -n "$ac_ct_MANIFEST_TOOL"; then
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12937$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12938else
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12940$as_echo "no" >&6; }
12941fi
12942
12943 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12944 MANIFEST_TOOL=":"
12945 else
12946 case $cross_compiling:$ac_tool_warned in
12947yes:)
12948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12950ac_tool_warned=yes ;;
12951esac
12952 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12953 fi
12954else
12955 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12956fi
12957
12958test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12960$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12961if ${lt_cv_path_mainfest_tool+:} false; then :
12962 $as_echo_n "(cached) " >&6
12963else
12964 lt_cv_path_mainfest_tool=no
12965 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12966 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12967 cat conftest.err >&5
12968 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12969 lt_cv_path_mainfest_tool=yes
12970 fi
12971 rm -f conftest*
12972fi
12973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12974$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12975if test "x$lt_cv_path_mainfest_tool" != xyes; then
12976 MANIFEST_TOOL=:
12977fi
12978
12979
12980
12981
12982
cristy73bd4a52010-10-05 11:24:23 +000012983
12984 case $host_os in
12985 rhapsody* | darwin*)
12986 if test -n "$ac_tool_prefix"; then
12987 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12988set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12990$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012991if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012992 $as_echo_n "(cached) " >&6
12993else
12994 if test -n "$DSYMUTIL"; then
12995 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12996else
12997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998for as_dir in $PATH
12999do
13000 IFS=$as_save_IFS
13001 test -z "$as_dir" && as_dir=.
13002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013004 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13006 break 2
13007 fi
13008done
13009 done
13010IFS=$as_save_IFS
13011
13012fi
13013fi
13014DSYMUTIL=$ac_cv_prog_DSYMUTIL
13015if test -n "$DSYMUTIL"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13017$as_echo "$DSYMUTIL" >&6; }
13018else
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020$as_echo "no" >&6; }
13021fi
13022
13023
13024fi
13025if test -z "$ac_cv_prog_DSYMUTIL"; then
13026 ac_ct_DSYMUTIL=$DSYMUTIL
13027 # Extract the first word of "dsymutil", so it can be a program name with args.
13028set dummy dsymutil; ac_word=$2
13029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13030$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013031if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013032 $as_echo_n "(cached) " >&6
13033else
13034 if test -n "$ac_ct_DSYMUTIL"; then
13035 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13036else
13037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038for as_dir in $PATH
13039do
13040 IFS=$as_save_IFS
13041 test -z "$as_dir" && as_dir=.
13042 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013044 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13046 break 2
13047 fi
13048done
13049 done
13050IFS=$as_save_IFS
13051
13052fi
13053fi
13054ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13055if test -n "$ac_ct_DSYMUTIL"; then
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13057$as_echo "$ac_ct_DSYMUTIL" >&6; }
13058else
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060$as_echo "no" >&6; }
13061fi
13062
13063 if test "x$ac_ct_DSYMUTIL" = x; then
13064 DSYMUTIL=":"
13065 else
13066 case $cross_compiling:$ac_tool_warned in
13067yes:)
13068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13070ac_tool_warned=yes ;;
13071esac
13072 DSYMUTIL=$ac_ct_DSYMUTIL
13073 fi
13074else
13075 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13076fi
13077
13078 if test -n "$ac_tool_prefix"; then
13079 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13080set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13082$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013083if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013084 $as_echo_n "(cached) " >&6
13085else
13086 if test -n "$NMEDIT"; then
13087 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13088else
13089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090for as_dir in $PATH
13091do
13092 IFS=$as_save_IFS
13093 test -z "$as_dir" && as_dir=.
13094 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013096 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13098 break 2
13099 fi
13100done
13101 done
13102IFS=$as_save_IFS
13103
13104fi
13105fi
13106NMEDIT=$ac_cv_prog_NMEDIT
13107if test -n "$NMEDIT"; then
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13109$as_echo "$NMEDIT" >&6; }
13110else
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112$as_echo "no" >&6; }
13113fi
13114
13115
13116fi
13117if test -z "$ac_cv_prog_NMEDIT"; then
13118 ac_ct_NMEDIT=$NMEDIT
13119 # Extract the first word of "nmedit", so it can be a program name with args.
13120set dummy nmedit; ac_word=$2
13121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13122$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013123if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013124 $as_echo_n "(cached) " >&6
13125else
13126 if test -n "$ac_ct_NMEDIT"; then
13127 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13128else
13129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130for as_dir in $PATH
13131do
13132 IFS=$as_save_IFS
13133 test -z "$as_dir" && as_dir=.
13134 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013136 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13138 break 2
13139 fi
13140done
13141 done
13142IFS=$as_save_IFS
13143
13144fi
13145fi
13146ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13147if test -n "$ac_ct_NMEDIT"; then
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13149$as_echo "$ac_ct_NMEDIT" >&6; }
13150else
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152$as_echo "no" >&6; }
13153fi
13154
13155 if test "x$ac_ct_NMEDIT" = x; then
13156 NMEDIT=":"
13157 else
13158 case $cross_compiling:$ac_tool_warned in
13159yes:)
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13162ac_tool_warned=yes ;;
13163esac
13164 NMEDIT=$ac_ct_NMEDIT
13165 fi
13166else
13167 NMEDIT="$ac_cv_prog_NMEDIT"
13168fi
13169
13170 if test -n "$ac_tool_prefix"; then
13171 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13172set dummy ${ac_tool_prefix}lipo; ac_word=$2
13173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13174$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013175if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013176 $as_echo_n "(cached) " >&6
13177else
13178 if test -n "$LIPO"; then
13179 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13180else
13181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182for as_dir in $PATH
13183do
13184 IFS=$as_save_IFS
13185 test -z "$as_dir" && as_dir=.
13186 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013188 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13190 break 2
13191 fi
13192done
13193 done
13194IFS=$as_save_IFS
13195
13196fi
13197fi
13198LIPO=$ac_cv_prog_LIPO
13199if test -n "$LIPO"; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13201$as_echo "$LIPO" >&6; }
13202else
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204$as_echo "no" >&6; }
13205fi
13206
13207
13208fi
13209if test -z "$ac_cv_prog_LIPO"; then
13210 ac_ct_LIPO=$LIPO
13211 # Extract the first word of "lipo", so it can be a program name with args.
13212set dummy lipo; ac_word=$2
13213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013215if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013216 $as_echo_n "(cached) " >&6
13217else
13218 if test -n "$ac_ct_LIPO"; then
13219 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13220else
13221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222for as_dir in $PATH
13223do
13224 IFS=$as_save_IFS
13225 test -z "$as_dir" && as_dir=.
13226 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013228 ac_cv_prog_ac_ct_LIPO="lipo"
13229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13230 break 2
13231 fi
13232done
13233 done
13234IFS=$as_save_IFS
13235
13236fi
13237fi
13238ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13239if test -n "$ac_ct_LIPO"; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13241$as_echo "$ac_ct_LIPO" >&6; }
13242else
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244$as_echo "no" >&6; }
13245fi
13246
13247 if test "x$ac_ct_LIPO" = x; then
13248 LIPO=":"
13249 else
13250 case $cross_compiling:$ac_tool_warned in
13251yes:)
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13254ac_tool_warned=yes ;;
13255esac
13256 LIPO=$ac_ct_LIPO
13257 fi
13258else
13259 LIPO="$ac_cv_prog_LIPO"
13260fi
13261
13262 if test -n "$ac_tool_prefix"; then
13263 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13264set dummy ${ac_tool_prefix}otool; ac_word=$2
13265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013267if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013268 $as_echo_n "(cached) " >&6
13269else
13270 if test -n "$OTOOL"; then
13271 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13272else
13273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274for as_dir in $PATH
13275do
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013280 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13282 break 2
13283 fi
13284done
13285 done
13286IFS=$as_save_IFS
13287
13288fi
13289fi
13290OTOOL=$ac_cv_prog_OTOOL
13291if test -n "$OTOOL"; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13293$as_echo "$OTOOL" >&6; }
13294else
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296$as_echo "no" >&6; }
13297fi
13298
13299
13300fi
13301if test -z "$ac_cv_prog_OTOOL"; then
13302 ac_ct_OTOOL=$OTOOL
13303 # Extract the first word of "otool", so it can be a program name with args.
13304set dummy otool; ac_word=$2
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13306$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013307if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013308 $as_echo_n "(cached) " >&6
13309else
13310 if test -n "$ac_ct_OTOOL"; then
13311 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13312else
13313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13314for as_dir in $PATH
13315do
13316 IFS=$as_save_IFS
13317 test -z "$as_dir" && as_dir=.
13318 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013320 ac_cv_prog_ac_ct_OTOOL="otool"
13321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13322 break 2
13323 fi
13324done
13325 done
13326IFS=$as_save_IFS
13327
13328fi
13329fi
13330ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13331if test -n "$ac_ct_OTOOL"; then
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13333$as_echo "$ac_ct_OTOOL" >&6; }
13334else
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336$as_echo "no" >&6; }
13337fi
13338
13339 if test "x$ac_ct_OTOOL" = x; then
13340 OTOOL=":"
13341 else
13342 case $cross_compiling:$ac_tool_warned in
13343yes:)
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13346ac_tool_warned=yes ;;
13347esac
13348 OTOOL=$ac_ct_OTOOL
13349 fi
13350else
13351 OTOOL="$ac_cv_prog_OTOOL"
13352fi
13353
13354 if test -n "$ac_tool_prefix"; then
13355 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13356set dummy ${ac_tool_prefix}otool64; ac_word=$2
13357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13358$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013359if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013360 $as_echo_n "(cached) " >&6
13361else
13362 if test -n "$OTOOL64"; then
13363 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13364else
13365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366for as_dir in $PATH
13367do
13368 IFS=$as_save_IFS
13369 test -z "$as_dir" && as_dir=.
13370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013372 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13374 break 2
13375 fi
13376done
13377 done
13378IFS=$as_save_IFS
13379
13380fi
13381fi
13382OTOOL64=$ac_cv_prog_OTOOL64
13383if test -n "$OTOOL64"; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13385$as_echo "$OTOOL64" >&6; }
13386else
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388$as_echo "no" >&6; }
13389fi
13390
13391
13392fi
13393if test -z "$ac_cv_prog_OTOOL64"; then
13394 ac_ct_OTOOL64=$OTOOL64
13395 # Extract the first word of "otool64", so it can be a program name with args.
13396set dummy otool64; ac_word=$2
13397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013399if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013400 $as_echo_n "(cached) " >&6
13401else
13402 if test -n "$ac_ct_OTOOL64"; then
13403 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13404else
13405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406for as_dir in $PATH
13407do
13408 IFS=$as_save_IFS
13409 test -z "$as_dir" && as_dir=.
13410 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013412 ac_cv_prog_ac_ct_OTOOL64="otool64"
13413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13414 break 2
13415 fi
13416done
13417 done
13418IFS=$as_save_IFS
13419
13420fi
13421fi
13422ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13423if test -n "$ac_ct_OTOOL64"; then
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13425$as_echo "$ac_ct_OTOOL64" >&6; }
13426else
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13428$as_echo "no" >&6; }
13429fi
13430
13431 if test "x$ac_ct_OTOOL64" = x; then
13432 OTOOL64=":"
13433 else
13434 case $cross_compiling:$ac_tool_warned in
13435yes:)
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13438ac_tool_warned=yes ;;
13439esac
13440 OTOOL64=$ac_ct_OTOOL64
13441 fi
13442else
13443 OTOOL64="$ac_cv_prog_OTOOL64"
13444fi
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13473$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013474if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013475 $as_echo_n "(cached) " >&6
13476else
13477 lt_cv_apple_cc_single_mod=no
13478 if test -z "${LT_MULTI_MODULE}"; then
13479 # By default we will add the -single_module flag. You can override
13480 # by either setting the environment variable LT_MULTI_MODULE
13481 # non-empty at configure time, or by adding -multi_module to the
13482 # link flags.
13483 rm -rf libconftest.dylib*
13484 echo "int foo(void){return 1;}" > conftest.c
13485 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13486-dynamiclib -Wl,-single_module conftest.c" >&5
13487 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13488 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13489 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013490 # If there is a non-empty error log, and "single_module"
13491 # appears in it, assume the flag caused a linker warning
13492 if test -s conftest.err && $GREP single_module conftest.err; then
13493 cat conftest.err >&5
13494 # Otherwise, if the output was created with a 0 exit code from
13495 # the compiler, it worked.
13496 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013497 lt_cv_apple_cc_single_mod=yes
13498 else
13499 cat conftest.err >&5
13500 fi
13501 rm -rf libconftest.dylib*
13502 rm -f conftest.*
13503 fi
13504fi
13505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13506$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013507
cristy73bd4a52010-10-05 11:24:23 +000013508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13509$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013510if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013511 $as_echo_n "(cached) " >&6
13512else
13513 lt_cv_ld_exported_symbols_list=no
13514 save_LDFLAGS=$LDFLAGS
13515 echo "_main" > conftest.sym
13516 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518/* end confdefs.h. */
13519
13520int
13521main ()
13522{
13523
13524 ;
13525 return 0;
13526}
13527_ACEOF
13528if ac_fn_c_try_link "$LINENO"; then :
13529 lt_cv_ld_exported_symbols_list=yes
13530else
13531 lt_cv_ld_exported_symbols_list=no
13532fi
13533rm -f core conftest.err conftest.$ac_objext \
13534 conftest$ac_exeext conftest.$ac_ext
13535 LDFLAGS="$save_LDFLAGS"
13536
13537fi
13538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13539$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013540
cristy0c60a692010-11-04 01:09:47 +000013541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13542$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013543if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013544 $as_echo_n "(cached) " >&6
13545else
13546 lt_cv_ld_force_load=no
13547 cat > conftest.c << _LT_EOF
13548int forced_loaded() { return 2;}
13549_LT_EOF
13550 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13551 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13552 echo "$AR cru libconftest.a conftest.o" >&5
13553 $AR cru libconftest.a conftest.o 2>&5
13554 echo "$RANLIB libconftest.a" >&5
13555 $RANLIB libconftest.a 2>&5
13556 cat > conftest.c << _LT_EOF
13557int main() { return 0;}
13558_LT_EOF
13559 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13560 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13561 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013562 if test -s conftest.err && $GREP force_load conftest.err; then
13563 cat conftest.err >&5
13564 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013565 lt_cv_ld_force_load=yes
13566 else
13567 cat conftest.err >&5
13568 fi
13569 rm -f conftest.err libconftest.a conftest conftest.c
13570 rm -rf conftest.dSYM
13571
13572fi
13573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13574$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013575 case $host_os in
13576 rhapsody* | darwin1.[012])
13577 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13578 darwin1.*)
13579 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13580 darwin*) # darwin 5.x on
13581 # if running on 10.5 or later, the deployment target defaults
13582 # to the OS version, if on x86, and 10.4, the deployment
13583 # target defaults to 10.4. Don't you love it?
13584 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13585 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13586 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13587 10.[012]*)
13588 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13589 10.*)
13590 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13591 esac
13592 ;;
13593 esac
13594 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13595 _lt_dar_single_mod='$single_module'
13596 fi
13597 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13598 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13599 else
13600 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13601 fi
cristy0c60a692010-11-04 01:09:47 +000013602 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013603 _lt_dsymutil='~$DSYMUTIL $lib || :'
13604 else
13605 _lt_dsymutil=
13606 fi
13607 ;;
13608 esac
13609
13610for ac_header in dlfcn.h
13611do :
13612 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13613"
cristyda16f162011-02-19 23:52:17 +000013614if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013615 cat >>confdefs.h <<_ACEOF
13616#define HAVE_DLFCN_H 1
13617_ACEOF
13618
13619fi
13620
13621done
13622
13623
13624
cristy73bd4a52010-10-05 11:24:23 +000013625
cristyda16f162011-02-19 23:52:17 +000013626func_stripname_cnf ()
13627{
13628 case ${2} in
13629 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13630 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13631 esac
13632} # func_stripname_cnf
13633
13634
13635
cristy73bd4a52010-10-05 11:24:23 +000013636
13637
13638# Set options
13639enable_win32_dll=yes
13640
13641case $host in
cristy0c60a692010-11-04 01:09:47 +000013642*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013643 if test -n "$ac_tool_prefix"; then
13644 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13645set dummy ${ac_tool_prefix}as; ac_word=$2
13646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13647$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013648if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013649 $as_echo_n "(cached) " >&6
13650else
13651 if test -n "$AS"; then
13652 ac_cv_prog_AS="$AS" # Let the user override the test.
13653else
13654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13655for as_dir in $PATH
13656do
13657 IFS=$as_save_IFS
13658 test -z "$as_dir" && as_dir=.
13659 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013661 ac_cv_prog_AS="${ac_tool_prefix}as"
13662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13663 break 2
13664 fi
13665done
13666 done
13667IFS=$as_save_IFS
13668
13669fi
13670fi
13671AS=$ac_cv_prog_AS
13672if test -n "$AS"; then
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13674$as_echo "$AS" >&6; }
13675else
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13677$as_echo "no" >&6; }
13678fi
13679
13680
13681fi
13682if test -z "$ac_cv_prog_AS"; then
13683 ac_ct_AS=$AS
13684 # Extract the first word of "as", so it can be a program name with args.
13685set dummy as; ac_word=$2
13686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13687$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013688if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013689 $as_echo_n "(cached) " >&6
13690else
13691 if test -n "$ac_ct_AS"; then
13692 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13693else
13694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13695for as_dir in $PATH
13696do
13697 IFS=$as_save_IFS
13698 test -z "$as_dir" && as_dir=.
13699 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013701 ac_cv_prog_ac_ct_AS="as"
13702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13703 break 2
13704 fi
13705done
13706 done
13707IFS=$as_save_IFS
13708
13709fi
13710fi
13711ac_ct_AS=$ac_cv_prog_ac_ct_AS
13712if test -n "$ac_ct_AS"; then
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13714$as_echo "$ac_ct_AS" >&6; }
13715else
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13717$as_echo "no" >&6; }
13718fi
13719
13720 if test "x$ac_ct_AS" = x; then
13721 AS="false"
13722 else
13723 case $cross_compiling:$ac_tool_warned in
13724yes:)
13725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13727ac_tool_warned=yes ;;
13728esac
13729 AS=$ac_ct_AS
13730 fi
13731else
13732 AS="$ac_cv_prog_AS"
13733fi
13734
13735 if test -n "$ac_tool_prefix"; then
13736 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13737set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13739$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013740if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013741 $as_echo_n "(cached) " >&6
13742else
13743 if test -n "$DLLTOOL"; then
13744 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13745else
13746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13747for as_dir in $PATH
13748do
13749 IFS=$as_save_IFS
13750 test -z "$as_dir" && as_dir=.
13751 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013753 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13755 break 2
13756 fi
13757done
13758 done
13759IFS=$as_save_IFS
13760
13761fi
13762fi
13763DLLTOOL=$ac_cv_prog_DLLTOOL
13764if test -n "$DLLTOOL"; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13766$as_echo "$DLLTOOL" >&6; }
13767else
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13769$as_echo "no" >&6; }
13770fi
13771
13772
13773fi
13774if test -z "$ac_cv_prog_DLLTOOL"; then
13775 ac_ct_DLLTOOL=$DLLTOOL
13776 # Extract the first word of "dlltool", so it can be a program name with args.
13777set dummy dlltool; ac_word=$2
13778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13779$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013780if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013781 $as_echo_n "(cached) " >&6
13782else
13783 if test -n "$ac_ct_DLLTOOL"; then
13784 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13785else
13786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787for as_dir in $PATH
13788do
13789 IFS=$as_save_IFS
13790 test -z "$as_dir" && as_dir=.
13791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013793 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13795 break 2
13796 fi
13797done
13798 done
13799IFS=$as_save_IFS
13800
13801fi
13802fi
13803ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13804if test -n "$ac_ct_DLLTOOL"; then
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13806$as_echo "$ac_ct_DLLTOOL" >&6; }
13807else
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13809$as_echo "no" >&6; }
13810fi
13811
13812 if test "x$ac_ct_DLLTOOL" = x; then
13813 DLLTOOL="false"
13814 else
13815 case $cross_compiling:$ac_tool_warned in
13816yes:)
13817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13819ac_tool_warned=yes ;;
13820esac
13821 DLLTOOL=$ac_ct_DLLTOOL
13822 fi
13823else
13824 DLLTOOL="$ac_cv_prog_DLLTOOL"
13825fi
13826
13827 if test -n "$ac_tool_prefix"; then
13828 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13829set dummy ${ac_tool_prefix}objdump; ac_word=$2
13830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13831$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013832if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013833 $as_echo_n "(cached) " >&6
13834else
13835 if test -n "$OBJDUMP"; then
13836 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13837else
13838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13839for as_dir in $PATH
13840do
13841 IFS=$as_save_IFS
13842 test -z "$as_dir" && as_dir=.
13843 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013845 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13847 break 2
13848 fi
13849done
13850 done
13851IFS=$as_save_IFS
13852
13853fi
13854fi
13855OBJDUMP=$ac_cv_prog_OBJDUMP
13856if test -n "$OBJDUMP"; then
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13858$as_echo "$OBJDUMP" >&6; }
13859else
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861$as_echo "no" >&6; }
13862fi
13863
13864
13865fi
13866if test -z "$ac_cv_prog_OBJDUMP"; then
13867 ac_ct_OBJDUMP=$OBJDUMP
13868 # Extract the first word of "objdump", so it can be a program name with args.
13869set dummy objdump; ac_word=$2
13870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013872if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013873 $as_echo_n "(cached) " >&6
13874else
13875 if test -n "$ac_ct_OBJDUMP"; then
13876 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13877else
13878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13879for as_dir in $PATH
13880do
13881 IFS=$as_save_IFS
13882 test -z "$as_dir" && as_dir=.
13883 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013885 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13887 break 2
13888 fi
13889done
13890 done
13891IFS=$as_save_IFS
13892
13893fi
13894fi
13895ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13896if test -n "$ac_ct_OBJDUMP"; then
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13898$as_echo "$ac_ct_OBJDUMP" >&6; }
13899else
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13901$as_echo "no" >&6; }
13902fi
13903
13904 if test "x$ac_ct_OBJDUMP" = x; then
13905 OBJDUMP="false"
13906 else
13907 case $cross_compiling:$ac_tool_warned in
13908yes:)
13909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13911ac_tool_warned=yes ;;
13912esac
13913 OBJDUMP=$ac_ct_OBJDUMP
13914 fi
13915else
13916 OBJDUMP="$ac_cv_prog_OBJDUMP"
13917fi
13918
13919 ;;
13920esac
13921
13922test -z "$AS" && AS=as
13923
13924
13925
13926
13927
13928test -z "$DLLTOOL" && DLLTOOL=dlltool
13929
13930
13931
13932
13933
13934test -z "$OBJDUMP" && OBJDUMP=objdump
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944 # Check whether --enable-shared was given.
13945if test "${enable_shared+set}" = set; then :
13946 enableval=$enable_shared; p=${PACKAGE-default}
13947 case $enableval in
13948 yes) enable_shared=yes ;;
13949 no) enable_shared=no ;;
13950 *)
13951 enable_shared=no
13952 # Look at the argument we got. We use all the common list separators.
13953 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13954 for pkg in $enableval; do
13955 IFS="$lt_save_ifs"
13956 if test "X$pkg" = "X$p"; then
13957 enable_shared=yes
13958 fi
13959 done
13960 IFS="$lt_save_ifs"
13961 ;;
13962 esac
13963else
13964 enable_shared=yes
13965fi
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975 # Check whether --enable-static was given.
13976if test "${enable_static+set}" = set; then :
13977 enableval=$enable_static; p=${PACKAGE-default}
13978 case $enableval in
13979 yes) enable_static=yes ;;
13980 no) enable_static=no ;;
13981 *)
13982 enable_static=no
13983 # Look at the argument we got. We use all the common list separators.
13984 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13985 for pkg in $enableval; do
13986 IFS="$lt_save_ifs"
13987 if test "X$pkg" = "X$p"; then
13988 enable_static=yes
13989 fi
13990 done
13991 IFS="$lt_save_ifs"
13992 ;;
13993 esac
13994else
13995 enable_static=yes
13996fi
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007# Check whether --with-pic was given.
14008if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014009 withval=$with_pic; lt_p=${PACKAGE-default}
14010 case $withval in
14011 yes|no) pic_mode=$withval ;;
14012 *)
14013 pic_mode=default
14014 # Look at the argument we got. We use all the common list separators.
14015 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14016 for lt_pkg in $withval; do
14017 IFS="$lt_save_ifs"
14018 if test "X$lt_pkg" = "X$lt_p"; then
14019 pic_mode=yes
14020 fi
14021 done
14022 IFS="$lt_save_ifs"
14023 ;;
14024 esac
cristy73bd4a52010-10-05 11:24:23 +000014025else
14026 pic_mode=default
14027fi
14028
14029
14030test -z "$pic_mode" && pic_mode=default
14031
14032
14033
14034
14035
14036
14037
14038 # Check whether --enable-fast-install was given.
14039if test "${enable_fast_install+set}" = set; then :
14040 enableval=$enable_fast_install; p=${PACKAGE-default}
14041 case $enableval in
14042 yes) enable_fast_install=yes ;;
14043 no) enable_fast_install=no ;;
14044 *)
14045 enable_fast_install=no
14046 # Look at the argument we got. We use all the common list separators.
14047 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14048 for pkg in $enableval; do
14049 IFS="$lt_save_ifs"
14050 if test "X$pkg" = "X$p"; then
14051 enable_fast_install=yes
14052 fi
14053 done
14054 IFS="$lt_save_ifs"
14055 ;;
14056 esac
14057else
14058 enable_fast_install=yes
14059fi
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071# This can be used to rebuild libtool when needed
14072LIBTOOL_DEPS="$ltmain"
14073
14074# Always use our own libtool.
14075LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
cristy0c60a692010-11-04 01:09:47 +000014101
cristy99bd5232011-12-07 14:38:20 +000014102
14103
14104
14105
cristy73bd4a52010-10-05 11:24:23 +000014106test -z "$LN_S" && LN_S="ln -s"
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121if test -n "${ZSH_VERSION+set}" ; then
14122 setopt NO_GLOB_SUBST
14123fi
14124
14125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14126$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014127if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014128 $as_echo_n "(cached) " >&6
14129else
14130 rm -f .libs 2>/dev/null
14131mkdir .libs 2>/dev/null
14132if test -d .libs; then
14133 lt_cv_objdir=.libs
14134else
14135 # MS-DOS does not allow filenames that begin with a dot.
14136 lt_cv_objdir=_libs
14137fi
14138rmdir .libs 2>/dev/null
14139fi
14140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14141$as_echo "$lt_cv_objdir" >&6; }
14142objdir=$lt_cv_objdir
14143
14144
14145
14146
14147
14148cat >>confdefs.h <<_ACEOF
14149#define LT_OBJDIR "$lt_cv_objdir/"
14150_ACEOF
14151
14152
14153
14154
cristy73bd4a52010-10-05 11:24:23 +000014155case $host_os in
14156aix3*)
14157 # AIX sometimes has problems with the GCC collect2 program. For some
14158 # reason, if we set the COLLECT_NAMES environment variable, the problems
14159 # vanish in a puff of smoke.
14160 if test "X${COLLECT_NAMES+set}" != Xset; then
14161 COLLECT_NAMES=
14162 export COLLECT_NAMES
14163 fi
14164 ;;
14165esac
14166
cristy73bd4a52010-10-05 11:24:23 +000014167# Global variables:
14168ofile=libtool
14169can_build_shared=yes
14170
14171# All known linkers require a `.a' archive for static linking (except MSVC,
14172# which needs '.lib').
14173libext=a
14174
14175with_gnu_ld="$lt_cv_prog_gnu_ld"
14176
14177old_CC="$CC"
14178old_CFLAGS="$CFLAGS"
14179
14180# Set sane defaults for various variables
14181test -z "$CC" && CC=cc
14182test -z "$LTCC" && LTCC=$CC
14183test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14184test -z "$LD" && LD=ld
14185test -z "$ac_objext" && ac_objext=o
14186
14187for cc_temp in $compiler""; do
14188 case $cc_temp in
14189 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14190 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14191 \-*) ;;
14192 *) break;;
14193 esac
14194done
cristy0c60a692010-11-04 01:09:47 +000014195cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014196
14197
14198# Only perform the check for file, if the check method requires it
14199test -z "$MAGIC_CMD" && MAGIC_CMD=file
14200case $deplibs_check_method in
14201file_magic*)
14202 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14204$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014205if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014206 $as_echo_n "(cached) " >&6
14207else
14208 case $MAGIC_CMD in
14209[\\/*] | ?:[\\/]*)
14210 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14211 ;;
14212*)
14213 lt_save_MAGIC_CMD="$MAGIC_CMD"
14214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14215 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14216 for ac_dir in $ac_dummy; do
14217 IFS="$lt_save_ifs"
14218 test -z "$ac_dir" && ac_dir=.
14219 if test -f $ac_dir/${ac_tool_prefix}file; then
14220 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14221 if test -n "$file_magic_test_file"; then
14222 case $deplibs_check_method in
14223 "file_magic "*)
14224 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14226 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14227 $EGREP "$file_magic_regex" > /dev/null; then
14228 :
14229 else
14230 cat <<_LT_EOF 1>&2
14231
14232*** Warning: the command libtool uses to detect shared libraries,
14233*** $file_magic_cmd, produces output that libtool cannot recognize.
14234*** The result is that libtool may fail to recognize shared libraries
14235*** as such. This will affect the creation of libtool libraries that
14236*** depend on shared libraries, but programs linked with such libtool
14237*** libraries will work regardless of this problem. Nevertheless, you
14238*** may want to report the problem to your system manager and/or to
14239*** bug-libtool@gnu.org
14240
14241_LT_EOF
14242 fi ;;
14243 esac
14244 fi
14245 break
14246 fi
14247 done
14248 IFS="$lt_save_ifs"
14249 MAGIC_CMD="$lt_save_MAGIC_CMD"
14250 ;;
14251esac
14252fi
14253
14254MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14255if test -n "$MAGIC_CMD"; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14257$as_echo "$MAGIC_CMD" >&6; }
14258else
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14260$as_echo "no" >&6; }
14261fi
14262
14263
14264
14265
14266
14267if test -z "$lt_cv_path_MAGIC_CMD"; then
14268 if test -n "$ac_tool_prefix"; then
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14270$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014271if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014272 $as_echo_n "(cached) " >&6
14273else
14274 case $MAGIC_CMD in
14275[\\/*] | ?:[\\/]*)
14276 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14277 ;;
14278*)
14279 lt_save_MAGIC_CMD="$MAGIC_CMD"
14280 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14281 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14282 for ac_dir in $ac_dummy; do
14283 IFS="$lt_save_ifs"
14284 test -z "$ac_dir" && ac_dir=.
14285 if test -f $ac_dir/file; then
14286 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14287 if test -n "$file_magic_test_file"; then
14288 case $deplibs_check_method in
14289 "file_magic "*)
14290 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14292 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14293 $EGREP "$file_magic_regex" > /dev/null; then
14294 :
14295 else
14296 cat <<_LT_EOF 1>&2
14297
14298*** Warning: the command libtool uses to detect shared libraries,
14299*** $file_magic_cmd, produces output that libtool cannot recognize.
14300*** The result is that libtool may fail to recognize shared libraries
14301*** as such. This will affect the creation of libtool libraries that
14302*** depend on shared libraries, but programs linked with such libtool
14303*** libraries will work regardless of this problem. Nevertheless, you
14304*** may want to report the problem to your system manager and/or to
14305*** bug-libtool@gnu.org
14306
14307_LT_EOF
14308 fi ;;
14309 esac
14310 fi
14311 break
14312 fi
14313 done
14314 IFS="$lt_save_ifs"
14315 MAGIC_CMD="$lt_save_MAGIC_CMD"
14316 ;;
14317esac
14318fi
14319
14320MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14321if test -n "$MAGIC_CMD"; then
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14323$as_echo "$MAGIC_CMD" >&6; }
14324else
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14326$as_echo "no" >&6; }
14327fi
14328
14329
14330 else
14331 MAGIC_CMD=:
14332 fi
14333fi
14334
14335 fi
14336 ;;
14337esac
14338
14339# Use C for the default configuration in the libtool script
14340
14341lt_save_CC="$CC"
14342ac_ext=c
14343ac_cpp='$CPP $CPPFLAGS'
14344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14346ac_compiler_gnu=$ac_cv_c_compiler_gnu
14347
14348
14349# Source file extension for C test sources.
14350ac_ext=c
14351
14352# Object file extension for compiled C test sources.
14353objext=o
14354objext=$objext
14355
14356# Code to be used in simple compile tests
14357lt_simple_compile_test_code="int some_variable = 0;"
14358
14359# Code to be used in simple link tests
14360lt_simple_link_test_code='int main(){return(0);}'
14361
14362
14363
14364
14365
14366
14367
14368# If no C compiler was specified, use CC.
14369LTCC=${LTCC-"$CC"}
14370
14371# If no C compiler flags were specified, use CFLAGS.
14372LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14373
14374# Allow CC to be a program name with arguments.
14375compiler=$CC
14376
14377# Save the default compiler, since it gets overwritten when the other
14378# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14379compiler_DEFAULT=$CC
14380
14381# save warnings/boilerplate of simple test code
14382ac_outfile=conftest.$ac_objext
14383echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14384eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14385_lt_compiler_boilerplate=`cat conftest.err`
14386$RM conftest*
14387
14388ac_outfile=conftest.$ac_objext
14389echo "$lt_simple_link_test_code" >conftest.$ac_ext
14390eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14391_lt_linker_boilerplate=`cat conftest.err`
14392$RM -r conftest*
14393
14394
14395## CAVEAT EMPTOR:
14396## There is no encapsulation within the following macros, do not change
14397## the running order or otherwise move them around unless you know exactly
14398## what you are doing...
14399if test -n "$compiler"; then
14400
14401lt_prog_compiler_no_builtin_flag=
14402
14403if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014404 case $cc_basename in
14405 nvcc*)
14406 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14407 *)
14408 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14409 esac
cristy73bd4a52010-10-05 11:24:23 +000014410
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14412$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014413if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014414 $as_echo_n "(cached) " >&6
14415else
14416 lt_cv_prog_compiler_rtti_exceptions=no
14417 ac_outfile=conftest.$ac_objext
14418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14419 lt_compiler_flag="-fno-rtti -fno-exceptions"
14420 # Insert the option either (1) after the last *FLAGS variable, or
14421 # (2) before a word containing "conftest.", or (3) at the end.
14422 # Note that $ac_compile itself does not contain backslashes and begins
14423 # with a dollar sign (not a hyphen), so the echo should work correctly.
14424 # The option is referenced via a variable to avoid confusing sed.
14425 lt_compile=`echo "$ac_compile" | $SED \
14426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14428 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014430 (eval "$lt_compile" 2>conftest.err)
14431 ac_status=$?
14432 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014434 if (exit $ac_status) && test -s "$ac_outfile"; then
14435 # The compiler can only warn and ignore the option if not recognized
14436 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014437 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14439 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14440 lt_cv_prog_compiler_rtti_exceptions=yes
14441 fi
14442 fi
14443 $RM conftest*
14444
14445fi
14446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14447$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14448
14449if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14450 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14451else
14452 :
14453fi
14454
14455fi
14456
14457
14458
14459
14460
14461
14462 lt_prog_compiler_wl=
14463lt_prog_compiler_pic=
14464lt_prog_compiler_static=
14465
cristy73bd4a52010-10-05 11:24:23 +000014466
14467 if test "$GCC" = yes; then
14468 lt_prog_compiler_wl='-Wl,'
14469 lt_prog_compiler_static='-static'
14470
14471 case $host_os in
14472 aix*)
14473 # All AIX code is PIC.
14474 if test "$host_cpu" = ia64; then
14475 # AIX 5 now supports IA64 processor
14476 lt_prog_compiler_static='-Bstatic'
14477 fi
14478 ;;
14479
14480 amigaos*)
14481 case $host_cpu in
14482 powerpc)
14483 # see comment about AmigaOS4 .so support
14484 lt_prog_compiler_pic='-fPIC'
14485 ;;
14486 m68k)
14487 # FIXME: we need at least 68020 code to build shared libraries, but
14488 # adding the `-m68020' flag to GCC prevents building anything better,
14489 # like `-m68040'.
14490 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14491 ;;
14492 esac
14493 ;;
14494
14495 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14496 # PIC is the default for these OSes.
14497 ;;
14498
14499 mingw* | cygwin* | pw32* | os2* | cegcc*)
14500 # This hack is so that the source file can tell whether it is being
14501 # built for inclusion in a dll (and should export symbols for example).
14502 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14503 # (--disable-auto-import) libraries
14504 lt_prog_compiler_pic='-DDLL_EXPORT'
14505 ;;
14506
14507 darwin* | rhapsody*)
14508 # PIC is the default on this platform
14509 # Common symbols not allowed in MH_DYLIB files
14510 lt_prog_compiler_pic='-fno-common'
14511 ;;
14512
cristy0c60a692010-11-04 01:09:47 +000014513 haiku*)
14514 # PIC is the default for Haiku.
14515 # The "-static" flag exists, but is broken.
14516 lt_prog_compiler_static=
14517 ;;
14518
cristy73bd4a52010-10-05 11:24:23 +000014519 hpux*)
14520 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14521 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14522 # sets the default TLS model and affects inlining.
14523 case $host_cpu in
14524 hppa*64*)
14525 # +Z the default
14526 ;;
14527 *)
14528 lt_prog_compiler_pic='-fPIC'
14529 ;;
14530 esac
14531 ;;
14532
14533 interix[3-9]*)
14534 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14535 # Instead, we relocate shared libraries at runtime.
14536 ;;
14537
14538 msdosdjgpp*)
14539 # Just because we use GCC doesn't mean we suddenly get shared libraries
14540 # on systems that don't support them.
14541 lt_prog_compiler_can_build_shared=no
14542 enable_shared=no
14543 ;;
14544
14545 *nto* | *qnx*)
14546 # QNX uses GNU C++, but need to define -shared option too, otherwise
14547 # it will coredump.
14548 lt_prog_compiler_pic='-fPIC -shared'
14549 ;;
14550
14551 sysv4*MP*)
14552 if test -d /usr/nec; then
14553 lt_prog_compiler_pic=-Kconform_pic
14554 fi
14555 ;;
14556
14557 *)
14558 lt_prog_compiler_pic='-fPIC'
14559 ;;
14560 esac
cristy0c60a692010-11-04 01:09:47 +000014561
14562 case $cc_basename in
14563 nvcc*) # Cuda Compiler Driver 2.2
14564 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014565 if test -n "$lt_prog_compiler_pic"; then
14566 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14567 fi
cristy0c60a692010-11-04 01:09:47 +000014568 ;;
14569 esac
cristy73bd4a52010-10-05 11:24:23 +000014570 else
14571 # PORTME Check for flag to pass linker flags through the system compiler.
14572 case $host_os in
14573 aix*)
14574 lt_prog_compiler_wl='-Wl,'
14575 if test "$host_cpu" = ia64; then
14576 # AIX 5 now supports IA64 processor
14577 lt_prog_compiler_static='-Bstatic'
14578 else
14579 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14580 fi
14581 ;;
14582
14583 mingw* | cygwin* | pw32* | os2* | cegcc*)
14584 # This hack is so that the source file can tell whether it is being
14585 # built for inclusion in a dll (and should export symbols for example).
14586 lt_prog_compiler_pic='-DDLL_EXPORT'
14587 ;;
14588
14589 hpux9* | hpux10* | hpux11*)
14590 lt_prog_compiler_wl='-Wl,'
14591 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14592 # not for PA HP-UX.
14593 case $host_cpu in
14594 hppa*64*|ia64*)
14595 # +Z the default
14596 ;;
14597 *)
14598 lt_prog_compiler_pic='+Z'
14599 ;;
14600 esac
14601 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14602 lt_prog_compiler_static='${wl}-a ${wl}archive'
14603 ;;
14604
14605 irix5* | irix6* | nonstopux*)
14606 lt_prog_compiler_wl='-Wl,'
14607 # PIC (with -KPIC) is the default.
14608 lt_prog_compiler_static='-non_shared'
14609 ;;
14610
cristy0c60a692010-11-04 01:09:47 +000014611 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014612 case $cc_basename in
14613 # old Intel for x86_64 which still supported -KPIC.
14614 ecc*)
14615 lt_prog_compiler_wl='-Wl,'
14616 lt_prog_compiler_pic='-KPIC'
14617 lt_prog_compiler_static='-static'
14618 ;;
14619 # icc used to be incompatible with GCC.
14620 # ICC 10 doesn't accept -KPIC any more.
14621 icc* | ifort*)
14622 lt_prog_compiler_wl='-Wl,'
14623 lt_prog_compiler_pic='-fPIC'
14624 lt_prog_compiler_static='-static'
14625 ;;
14626 # Lahey Fortran 8.1.
14627 lf95*)
14628 lt_prog_compiler_wl='-Wl,'
14629 lt_prog_compiler_pic='--shared'
14630 lt_prog_compiler_static='--static'
14631 ;;
cristyda16f162011-02-19 23:52:17 +000014632 nagfor*)
14633 # NAG Fortran compiler
14634 lt_prog_compiler_wl='-Wl,-Wl,,'
14635 lt_prog_compiler_pic='-PIC'
14636 lt_prog_compiler_static='-Bstatic'
14637 ;;
cristy0c60a692010-11-04 01:09:47 +000014638 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014639 # Portland Group compilers (*not* the Pentium gcc compiler,
14640 # which looks to be a dead project)
14641 lt_prog_compiler_wl='-Wl,'
14642 lt_prog_compiler_pic='-fpic'
14643 lt_prog_compiler_static='-Bstatic'
14644 ;;
14645 ccc*)
14646 lt_prog_compiler_wl='-Wl,'
14647 # All Alpha code is PIC.
14648 lt_prog_compiler_static='-non_shared'
14649 ;;
cristy0c60a692010-11-04 01:09:47 +000014650 xl* | bgxl* | bgf* | mpixl*)
14651 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014652 lt_prog_compiler_wl='-Wl,'
14653 lt_prog_compiler_pic='-qpic'
14654 lt_prog_compiler_static='-qstaticlink'
14655 ;;
14656 *)
14657 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014658 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014659 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14660 lt_prog_compiler_pic='-KPIC'
14661 lt_prog_compiler_static='-Bstatic'
14662 lt_prog_compiler_wl=''
14663 ;;
cristy99bd5232011-12-07 14:38:20 +000014664 *Sun\ F* | *Sun*Fortran*)
14665 lt_prog_compiler_pic='-KPIC'
14666 lt_prog_compiler_static='-Bstatic'
14667 lt_prog_compiler_wl='-Qoption ld '
14668 ;;
cristy73bd4a52010-10-05 11:24:23 +000014669 *Sun\ C*)
14670 # Sun C 5.9
14671 lt_prog_compiler_pic='-KPIC'
14672 lt_prog_compiler_static='-Bstatic'
14673 lt_prog_compiler_wl='-Wl,'
14674 ;;
cristy99bd5232011-12-07 14:38:20 +000014675 *Intel*\ [CF]*Compiler*)
14676 lt_prog_compiler_wl='-Wl,'
14677 lt_prog_compiler_pic='-fPIC'
14678 lt_prog_compiler_static='-static'
14679 ;;
14680 *Portland\ Group*)
14681 lt_prog_compiler_wl='-Wl,'
14682 lt_prog_compiler_pic='-fpic'
14683 lt_prog_compiler_static='-Bstatic'
14684 ;;
cristy73bd4a52010-10-05 11:24:23 +000014685 esac
14686 ;;
14687 esac
14688 ;;
14689
14690 newsos6)
14691 lt_prog_compiler_pic='-KPIC'
14692 lt_prog_compiler_static='-Bstatic'
14693 ;;
14694
14695 *nto* | *qnx*)
14696 # QNX uses GNU C++, but need to define -shared option too, otherwise
14697 # it will coredump.
14698 lt_prog_compiler_pic='-fPIC -shared'
14699 ;;
14700
14701 osf3* | osf4* | osf5*)
14702 lt_prog_compiler_wl='-Wl,'
14703 # All OSF/1 code is PIC.
14704 lt_prog_compiler_static='-non_shared'
14705 ;;
14706
14707 rdos*)
14708 lt_prog_compiler_static='-non_shared'
14709 ;;
14710
14711 solaris*)
14712 lt_prog_compiler_pic='-KPIC'
14713 lt_prog_compiler_static='-Bstatic'
14714 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014715 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014716 lt_prog_compiler_wl='-Qoption ld ';;
14717 *)
14718 lt_prog_compiler_wl='-Wl,';;
14719 esac
14720 ;;
14721
14722 sunos4*)
14723 lt_prog_compiler_wl='-Qoption ld '
14724 lt_prog_compiler_pic='-PIC'
14725 lt_prog_compiler_static='-Bstatic'
14726 ;;
14727
14728 sysv4 | sysv4.2uw2* | sysv4.3*)
14729 lt_prog_compiler_wl='-Wl,'
14730 lt_prog_compiler_pic='-KPIC'
14731 lt_prog_compiler_static='-Bstatic'
14732 ;;
14733
14734 sysv4*MP*)
14735 if test -d /usr/nec ;then
14736 lt_prog_compiler_pic='-Kconform_pic'
14737 lt_prog_compiler_static='-Bstatic'
14738 fi
14739 ;;
14740
14741 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14742 lt_prog_compiler_wl='-Wl,'
14743 lt_prog_compiler_pic='-KPIC'
14744 lt_prog_compiler_static='-Bstatic'
14745 ;;
14746
14747 unicos*)
14748 lt_prog_compiler_wl='-Wl,'
14749 lt_prog_compiler_can_build_shared=no
14750 ;;
14751
14752 uts4*)
14753 lt_prog_compiler_pic='-pic'
14754 lt_prog_compiler_static='-Bstatic'
14755 ;;
14756
14757 *)
14758 lt_prog_compiler_can_build_shared=no
14759 ;;
14760 esac
14761 fi
14762
14763case $host_os in
14764 # For platforms which do not support PIC, -DPIC is meaningless:
14765 *djgpp*)
14766 lt_prog_compiler_pic=
14767 ;;
14768 *)
14769 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14770 ;;
14771esac
cristy73bd4a52010-10-05 11:24:23 +000014772
cristyda16f162011-02-19 23:52:17 +000014773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14774$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14775if ${lt_cv_prog_compiler_pic+:} false; then :
14776 $as_echo_n "(cached) " >&6
14777else
14778 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14779fi
14780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14781$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14782lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014783
14784#
14785# Check to make sure the PIC flag actually works.
14786#
14787if test -n "$lt_prog_compiler_pic"; then
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14789$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014790if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014791 $as_echo_n "(cached) " >&6
14792else
14793 lt_cv_prog_compiler_pic_works=no
14794 ac_outfile=conftest.$ac_objext
14795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14796 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14797 # Insert the option either (1) after the last *FLAGS variable, or
14798 # (2) before a word containing "conftest.", or (3) at the end.
14799 # Note that $ac_compile itself does not contain backslashes and begins
14800 # with a dollar sign (not a hyphen), so the echo should work correctly.
14801 # The option is referenced via a variable to avoid confusing sed.
14802 lt_compile=`echo "$ac_compile" | $SED \
14803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14805 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014806 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014807 (eval "$lt_compile" 2>conftest.err)
14808 ac_status=$?
14809 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014811 if (exit $ac_status) && test -s "$ac_outfile"; then
14812 # The compiler can only warn and ignore the option if not recognized
14813 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014814 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14816 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14817 lt_cv_prog_compiler_pic_works=yes
14818 fi
14819 fi
14820 $RM conftest*
14821
14822fi
14823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14824$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14825
14826if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14827 case $lt_prog_compiler_pic in
14828 "" | " "*) ;;
14829 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14830 esac
14831else
14832 lt_prog_compiler_pic=
14833 lt_prog_compiler_can_build_shared=no
14834fi
14835
14836fi
14837
14838
14839
14840
14841
14842
cristyda16f162011-02-19 23:52:17 +000014843
14844
14845
14846
14847
cristy73bd4a52010-10-05 11:24:23 +000014848#
14849# Check to make sure the static flag actually works.
14850#
14851wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14853$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014854if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014855 $as_echo_n "(cached) " >&6
14856else
14857 lt_cv_prog_compiler_static_works=no
14858 save_LDFLAGS="$LDFLAGS"
14859 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14860 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14861 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14862 # The linker can only warn and ignore the option if not recognized
14863 # So say no if there are warnings
14864 if test -s conftest.err; then
14865 # Append any errors to the config.log.
14866 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014867 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14869 if diff conftest.exp conftest.er2 >/dev/null; then
14870 lt_cv_prog_compiler_static_works=yes
14871 fi
14872 else
14873 lt_cv_prog_compiler_static_works=yes
14874 fi
14875 fi
14876 $RM -r conftest*
14877 LDFLAGS="$save_LDFLAGS"
14878
14879fi
14880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14881$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14882
14883if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14884 :
14885else
14886 lt_prog_compiler_static=
14887fi
14888
14889
14890
14891
14892
14893
14894
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14896$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014897if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014898 $as_echo_n "(cached) " >&6
14899else
14900 lt_cv_prog_compiler_c_o=no
14901 $RM -r conftest 2>/dev/null
14902 mkdir conftest
14903 cd conftest
14904 mkdir out
14905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14906
14907 lt_compiler_flag="-o out/conftest2.$ac_objext"
14908 # Insert the option either (1) after the last *FLAGS variable, or
14909 # (2) before a word containing "conftest.", or (3) at the end.
14910 # Note that $ac_compile itself does not contain backslashes and begins
14911 # with a dollar sign (not a hyphen), so the echo should work correctly.
14912 lt_compile=`echo "$ac_compile" | $SED \
14913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14915 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014917 (eval "$lt_compile" 2>out/conftest.err)
14918 ac_status=$?
14919 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014921 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14922 then
14923 # The compiler can only warn and ignore the option if not recognized
14924 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014925 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014926 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14927 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14928 lt_cv_prog_compiler_c_o=yes
14929 fi
14930 fi
14931 chmod u+w . 2>&5
14932 $RM conftest*
14933 # SGI C++ compiler will create directory out/ii_files/ for
14934 # template instantiation
14935 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14936 $RM out/* && rmdir out
14937 cd ..
14938 $RM -r conftest
14939 $RM conftest*
14940
14941fi
14942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14943$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14944
14945
14946
14947
14948
14949
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14951$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014952if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014953 $as_echo_n "(cached) " >&6
14954else
14955 lt_cv_prog_compiler_c_o=no
14956 $RM -r conftest 2>/dev/null
14957 mkdir conftest
14958 cd conftest
14959 mkdir out
14960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14961
14962 lt_compiler_flag="-o out/conftest2.$ac_objext"
14963 # Insert the option either (1) after the last *FLAGS variable, or
14964 # (2) before a word containing "conftest.", or (3) at the end.
14965 # Note that $ac_compile itself does not contain backslashes and begins
14966 # with a dollar sign (not a hyphen), so the echo should work correctly.
14967 lt_compile=`echo "$ac_compile" | $SED \
14968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14970 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014971 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014972 (eval "$lt_compile" 2>out/conftest.err)
14973 ac_status=$?
14974 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014976 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14977 then
14978 # The compiler can only warn and ignore the option if not recognized
14979 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014980 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014981 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14982 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14983 lt_cv_prog_compiler_c_o=yes
14984 fi
14985 fi
14986 chmod u+w . 2>&5
14987 $RM conftest*
14988 # SGI C++ compiler will create directory out/ii_files/ for
14989 # template instantiation
14990 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14991 $RM out/* && rmdir out
14992 cd ..
14993 $RM -r conftest
14994 $RM conftest*
14995
14996fi
14997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14998$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14999
15000
15001
15002
15003hard_links="nottested"
15004if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15005 # do not overwrite the value of need_locks provided by the user
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15007$as_echo_n "checking if we can lock with hard links... " >&6; }
15008 hard_links=yes
15009 $RM conftest*
15010 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15011 touch conftest.a
15012 ln conftest.a conftest.b 2>&5 || hard_links=no
15013 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15015$as_echo "$hard_links" >&6; }
15016 if test "$hard_links" = no; then
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15018$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15019 need_locks=warn
15020 fi
15021else
15022 need_locks=no
15023fi
15024
15025
15026
15027
15028
15029
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15031$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15032
15033 runpath_var=
15034 allow_undefined_flag=
15035 always_export_symbols=no
15036 archive_cmds=
15037 archive_expsym_cmds=
15038 compiler_needs_object=no
15039 enable_shared_with_static_runtimes=no
15040 export_dynamic_flag_spec=
15041 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15042 hardcode_automatic=no
15043 hardcode_direct=no
15044 hardcode_direct_absolute=no
15045 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015046 hardcode_libdir_separator=
15047 hardcode_minus_L=no
15048 hardcode_shlibpath_var=unsupported
15049 inherit_rpath=no
15050 link_all_deplibs=unknown
15051 module_cmds=
15052 module_expsym_cmds=
15053 old_archive_from_new_cmds=
15054 old_archive_from_expsyms_cmds=
15055 thread_safe_flag_spec=
15056 whole_archive_flag_spec=
15057 # include_expsyms should be a list of space-separated symbols to be *always*
15058 # included in the symbol list
15059 include_expsyms=
15060 # exclude_expsyms can be an extended regexp of symbols to exclude
15061 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15062 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15063 # as well as any symbol that contains `d'.
15064 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15065 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15066 # platforms (ab)use it in PIC code, but their linkers get confused if
15067 # the symbol is explicitly referenced. Since portable code cannot
15068 # rely on this symbol name, it's probably fine to never include it in
15069 # preloaded symbol tables.
15070 # Exclude shared library initialization/finalization symbols.
15071 extract_expsyms_cmds=
15072
15073 case $host_os in
15074 cygwin* | mingw* | pw32* | cegcc*)
15075 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15076 # When not using gcc, we currently assume that we are using
15077 # Microsoft Visual C++.
15078 if test "$GCC" != yes; then
15079 with_gnu_ld=no
15080 fi
15081 ;;
15082 interix*)
15083 # we just hope/assume this is gcc and not c89 (= MSVC++)
15084 with_gnu_ld=yes
15085 ;;
15086 openbsd*)
15087 with_gnu_ld=no
15088 ;;
15089 esac
15090
15091 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015092
15093 # On some targets, GNU ld is compatible enough with the native linker
15094 # that we're better off using the native interface for both.
15095 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015096 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015097 case $host_os in
15098 aix*)
15099 # The AIX port of GNU ld has always aspired to compatibility
15100 # with the native linker. However, as the warning in the GNU ld
15101 # block says, versions before 2.19.5* couldn't really create working
15102 # shared libraries, regardless of the interface used.
15103 case `$LD -v 2>&1` in
15104 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15105 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15106 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15107 *)
15108 lt_use_gnu_ld_interface=yes
15109 ;;
15110 esac
15111 ;;
15112 *)
15113 lt_use_gnu_ld_interface=yes
15114 ;;
15115 esac
15116 fi
15117
15118 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015119 # If archive_cmds runs LD, not CC, wlarc should be empty
15120 wlarc='${wl}'
15121
15122 # Set some defaults for GNU ld with shared library support. These
15123 # are reset later if shared libraries are not supported. Putting them
15124 # here allows them to be overridden if necessary.
15125 runpath_var=LD_RUN_PATH
15126 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15127 export_dynamic_flag_spec='${wl}--export-dynamic'
15128 # ancient GNU ld didn't support --whole-archive et. al.
15129 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15130 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15131 else
15132 whole_archive_flag_spec=
15133 fi
15134 supports_anon_versioning=no
15135 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015136 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015137 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15138 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15139 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15140 *\ 2.11.*) ;; # other 2.11 versions
15141 *) supports_anon_versioning=yes ;;
15142 esac
15143
15144 # See if GNU ld supports shared libraries.
15145 case $host_os in
15146 aix[3-9]*)
15147 # On AIX/PPC, the GNU linker is very broken
15148 if test "$host_cpu" != ia64; then
15149 ld_shlibs=no
15150 cat <<_LT_EOF 1>&2
15151
cristy0c60a692010-11-04 01:09:47 +000015152*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015153*** to be unable to reliably create shared libraries on AIX.
15154*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015155*** really care for shared libraries, you may want to install binutils
15156*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15157*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015158
15159_LT_EOF
15160 fi
15161 ;;
15162
15163 amigaos*)
15164 case $host_cpu in
15165 powerpc)
15166 # see comment about AmigaOS4 .so support
15167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15168 archive_expsym_cmds=''
15169 ;;
15170 m68k)
15171 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)'
15172 hardcode_libdir_flag_spec='-L$libdir'
15173 hardcode_minus_L=yes
15174 ;;
15175 esac
15176 ;;
15177
15178 beos*)
15179 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15180 allow_undefined_flag=unsupported
15181 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15182 # support --undefined. This deserves some investigation. FIXME
15183 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15184 else
15185 ld_shlibs=no
15186 fi
15187 ;;
15188
15189 cygwin* | mingw* | pw32* | cegcc*)
15190 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15191 # as there is no search path for DLLs.
15192 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015193 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015194 allow_undefined_flag=unsupported
15195 always_export_symbols=no
15196 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015197 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'
15198 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 +000015199
15200 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15202 # If the export-symbols file already is a .def file (1st line
15203 # is EXPORTS), use it as is; otherwise, prepend...
15204 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15205 cp $export_symbols $output_objdir/$soname.def;
15206 else
15207 echo EXPORTS > $output_objdir/$soname.def;
15208 cat $export_symbols >> $output_objdir/$soname.def;
15209 fi~
15210 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15211 else
15212 ld_shlibs=no
15213 fi
15214 ;;
15215
cristy0c60a692010-11-04 01:09:47 +000015216 haiku*)
15217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15218 link_all_deplibs=yes
15219 ;;
15220
cristy73bd4a52010-10-05 11:24:23 +000015221 interix[3-9]*)
15222 hardcode_direct=no
15223 hardcode_shlibpath_var=no
15224 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15225 export_dynamic_flag_spec='${wl}-E'
15226 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15227 # Instead, shared libraries are loaded at an image base (0x10000000 by
15228 # default) and relocated if they conflict, which is a slow very memory
15229 # consuming and fragmenting process. To avoid this, we pick a random,
15230 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15231 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15232 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15233 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'
15234 ;;
15235
cristy0c60a692010-11-04 01:09:47 +000015236 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015237 tmp_diet=no
15238 if test "$host_os" = linux-dietlibc; then
15239 case $cc_basename in
15240 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15241 esac
15242 fi
15243 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15244 && test "$tmp_diet" = no
15245 then
cristyda16f162011-02-19 23:52:17 +000015246 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015247 tmp_sharedflag='-shared'
15248 case $cc_basename,$host_cpu in
15249 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015250 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 +000015251 tmp_addflag=' $pic_flag'
15252 ;;
cristy0c60a692010-11-04 01:09:47 +000015253 pgf77* | pgf90* | pgf95* | pgfortran*)
15254 # Portland Group f77 and f90 compilers
15255 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 +000015256 tmp_addflag=' $pic_flag -Mnomain' ;;
15257 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15258 tmp_addflag=' -i_dynamic' ;;
15259 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15260 tmp_addflag=' -i_dynamic -nofor_main' ;;
15261 ifc* | ifort*) # Intel Fortran compiler
15262 tmp_addflag=' -nofor_main' ;;
15263 lf95*) # Lahey Fortran 8.1
15264 whole_archive_flag_spec=
15265 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015266 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015267 tmp_sharedflag='-qmkshrobj'
15268 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015269 nvcc*) # Cuda Compiler Driver 2.2
15270 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'
15271 compiler_needs_object=yes
15272 ;;
cristy73bd4a52010-10-05 11:24:23 +000015273 esac
15274 case `$CC -V 2>&1 | sed 5q` in
15275 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015276 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 +000015277 compiler_needs_object=yes
15278 tmp_sharedflag='-G' ;;
15279 *Sun\ F*) # Sun Fortran 8.3
15280 tmp_sharedflag='-G' ;;
15281 esac
15282 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15283
15284 if test "x$supports_anon_versioning" = xyes; then
15285 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15286 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15287 echo "local: *; };" >> $output_objdir/$libname.ver~
15288 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15289 fi
15290
15291 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015292 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015293 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15294 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015296 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015297 if test "x$supports_anon_versioning" = xyes; then
15298 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15299 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15300 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015301 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015302 fi
15303 ;;
15304 esac
15305 else
15306 ld_shlibs=no
15307 fi
15308 ;;
15309
15310 netbsd*)
15311 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15312 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15313 wlarc=
15314 else
cristyda16f162011-02-19 23:52:17 +000015315 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15316 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 +000015317 fi
15318 ;;
15319
15320 solaris*)
15321 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15322 ld_shlibs=no
15323 cat <<_LT_EOF 1>&2
15324
15325*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15326*** create shared libraries on Solaris systems. Therefore, libtool
15327*** is disabling shared libraries support. We urge you to upgrade GNU
15328*** binutils to release 2.9.1 or newer. Another option is to modify
15329*** your PATH or compiler configuration so that the native linker is
15330*** used, and then restart.
15331
15332_LT_EOF
15333 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015334 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15335 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 +000015336 else
15337 ld_shlibs=no
15338 fi
15339 ;;
15340
15341 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15342 case `$LD -v 2>&1` in
15343 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15344 ld_shlibs=no
15345 cat <<_LT_EOF 1>&2
15346
15347*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15348*** reliably create shared libraries on SCO systems. Therefore, libtool
15349*** is disabling shared libraries support. We urge you to upgrade GNU
15350*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15351*** your PATH or compiler configuration so that the native linker is
15352*** used, and then restart.
15353
15354_LT_EOF
15355 ;;
15356 *)
15357 # For security reasons, it is highly recommended that you always
15358 # use absolute paths for naming shared libraries, and exclude the
15359 # DT_RUNPATH tag from executables and libraries. But doing so
15360 # requires that you compile everything twice, which is a pain.
15361 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15362 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15364 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15365 else
15366 ld_shlibs=no
15367 fi
15368 ;;
15369 esac
15370 ;;
15371
15372 sunos4*)
15373 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15374 wlarc=
15375 hardcode_direct=yes
15376 hardcode_shlibpath_var=no
15377 ;;
15378
15379 *)
15380 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015381 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15382 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 +000015383 else
15384 ld_shlibs=no
15385 fi
15386 ;;
15387 esac
15388
15389 if test "$ld_shlibs" = no; then
15390 runpath_var=
15391 hardcode_libdir_flag_spec=
15392 export_dynamic_flag_spec=
15393 whole_archive_flag_spec=
15394 fi
15395 else
15396 # PORTME fill in a description of your system's linker (not GNU ld)
15397 case $host_os in
15398 aix3*)
15399 allow_undefined_flag=unsupported
15400 always_export_symbols=yes
15401 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'
15402 # Note: this linker hardcodes the directories in LIBPATH if there
15403 # are no directories specified by -L.
15404 hardcode_minus_L=yes
15405 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15406 # Neither direct hardcoding nor static linking is supported with a
15407 # broken collect2.
15408 hardcode_direct=unsupported
15409 fi
15410 ;;
15411
15412 aix[4-9]*)
15413 if test "$host_cpu" = ia64; then
15414 # On IA64, the linker does run time linking by default, so we don't
15415 # have to do anything special.
15416 aix_use_runtimelinking=no
15417 exp_sym_flag='-Bexport'
15418 no_entry_flag=""
15419 else
15420 # If we're using GNU nm, then we don't want the "-C" option.
15421 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015422 # Also, AIX nm treats weak defined symbols like other global
15423 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015424 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015425 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 +000015426 else
15427 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'
15428 fi
15429 aix_use_runtimelinking=no
15430
15431 # Test if we are trying to use run time linking or normal
15432 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15433 # need to do runtime linking.
15434 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15435 for ld_flag in $LDFLAGS; do
15436 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15437 aix_use_runtimelinking=yes
15438 break
15439 fi
15440 done
15441 ;;
15442 esac
15443
15444 exp_sym_flag='-bexport'
15445 no_entry_flag='-bnoentry'
15446 fi
15447
15448 # When large executables or shared objects are built, AIX ld can
15449 # have problems creating the table of contents. If linking a library
15450 # or program results in "error TOC overflow" add -mminimal-toc to
15451 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15452 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15453
15454 archive_cmds=''
15455 hardcode_direct=yes
15456 hardcode_direct_absolute=yes
15457 hardcode_libdir_separator=':'
15458 link_all_deplibs=yes
15459 file_list_spec='${wl}-f,'
15460
15461 if test "$GCC" = yes; then
15462 case $host_os in aix4.[012]|aix4.[012].*)
15463 # We only want to do this on AIX 4.2 and lower, the check
15464 # below for broken collect2 doesn't work under 4.3+
15465 collect2name=`${CC} -print-prog-name=collect2`
15466 if test -f "$collect2name" &&
15467 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15468 then
15469 # We have reworked collect2
15470 :
15471 else
15472 # We have old collect2
15473 hardcode_direct=unsupported
15474 # It fails to find uninstalled libraries when the uninstalled
15475 # path is not listed in the libpath. Setting hardcode_minus_L
15476 # to unsupported forces relinking
15477 hardcode_minus_L=yes
15478 hardcode_libdir_flag_spec='-L$libdir'
15479 hardcode_libdir_separator=
15480 fi
15481 ;;
15482 esac
15483 shared_flag='-shared'
15484 if test "$aix_use_runtimelinking" = yes; then
15485 shared_flag="$shared_flag "'${wl}-G'
15486 fi
15487 else
15488 # not using gcc
15489 if test "$host_cpu" = ia64; then
15490 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15491 # chokes on -Wl,-G. The following line is correct:
15492 shared_flag='-G'
15493 else
15494 if test "$aix_use_runtimelinking" = yes; then
15495 shared_flag='${wl}-G'
15496 else
15497 shared_flag='${wl}-bM:SRE'
15498 fi
15499 fi
15500 fi
15501
15502 export_dynamic_flag_spec='${wl}-bexpall'
15503 # It seems that -bexpall does not export symbols beginning with
15504 # underscore (_), so it is better to generate a list of symbols to export.
15505 always_export_symbols=yes
15506 if test "$aix_use_runtimelinking" = yes; then
15507 # Warning - without using the other runtime loading flags (-brtl),
15508 # -berok will link without error, but may produce a broken library.
15509 allow_undefined_flag='-berok'
15510 # Determine the default libpath from the value encoded in an
15511 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015512 if test "${lt_cv_aix_libpath+set}" = set; then
15513 aix_libpath=$lt_cv_aix_libpath
15514else
15515 if ${lt_cv_aix_libpath_+:} false; then :
15516 $as_echo_n "(cached) " >&6
15517else
15518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015519/* end confdefs.h. */
15520
15521int
15522main ()
15523{
15524
15525 ;
15526 return 0;
15527}
15528_ACEOF
15529if ac_fn_c_try_link "$LINENO"; then :
15530
cristyda16f162011-02-19 23:52:17 +000015531 lt_aix_libpath_sed='
15532 /Import File Strings/,/^$/ {
15533 /^0/ {
15534 s/^0 *\([^ ]*\) *$/\1/
15535 p
15536 }
15537 }'
15538 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15539 # Check for a 64-bit object if we didn't find anything.
15540 if test -z "$lt_cv_aix_libpath_"; then
15541 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15542 fi
cristy73bd4a52010-10-05 11:24:23 +000015543fi
15544rm -f core conftest.err conftest.$ac_objext \
15545 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015546 if test -z "$lt_cv_aix_libpath_"; then
15547 lt_cv_aix_libpath_="/usr/lib:/lib"
15548 fi
15549
15550fi
15551
15552 aix_libpath=$lt_cv_aix_libpath_
15553fi
cristy73bd4a52010-10-05 11:24:23 +000015554
15555 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015556 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 +000015557 else
15558 if test "$host_cpu" = ia64; then
15559 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15560 allow_undefined_flag="-z nodefs"
15561 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"
15562 else
15563 # Determine the default libpath from the value encoded in an
15564 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015565 if test "${lt_cv_aix_libpath+set}" = set; then
15566 aix_libpath=$lt_cv_aix_libpath
15567else
15568 if ${lt_cv_aix_libpath_+:} false; then :
15569 $as_echo_n "(cached) " >&6
15570else
15571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015572/* end confdefs.h. */
15573
15574int
15575main ()
15576{
15577
15578 ;
15579 return 0;
15580}
15581_ACEOF
15582if ac_fn_c_try_link "$LINENO"; then :
15583
cristyda16f162011-02-19 23:52:17 +000015584 lt_aix_libpath_sed='
15585 /Import File Strings/,/^$/ {
15586 /^0/ {
15587 s/^0 *\([^ ]*\) *$/\1/
15588 p
15589 }
15590 }'
15591 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15592 # Check for a 64-bit object if we didn't find anything.
15593 if test -z "$lt_cv_aix_libpath_"; then
15594 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15595 fi
cristy73bd4a52010-10-05 11:24:23 +000015596fi
15597rm -f core conftest.err conftest.$ac_objext \
15598 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015599 if test -z "$lt_cv_aix_libpath_"; then
15600 lt_cv_aix_libpath_="/usr/lib:/lib"
15601 fi
15602
15603fi
15604
15605 aix_libpath=$lt_cv_aix_libpath_
15606fi
cristy73bd4a52010-10-05 11:24:23 +000015607
15608 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15609 # Warning - without using the other run time loading flags,
15610 # -berok will link without error, but may produce a broken library.
15611 no_undefined_flag=' ${wl}-bernotok'
15612 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015613 if test "$with_gnu_ld" = yes; then
15614 # We only use this code for GNU lds that support --whole-archive.
15615 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15616 else
15617 # Exported symbols can be pulled into shared objects from archives
15618 whole_archive_flag_spec='$convenience'
15619 fi
cristy73bd4a52010-10-05 11:24:23 +000015620 archive_cmds_need_lc=yes
15621 # This is similar to how AIX traditionally builds its shared libraries.
15622 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'
15623 fi
15624 fi
15625 ;;
15626
15627 amigaos*)
15628 case $host_cpu in
15629 powerpc)
15630 # see comment about AmigaOS4 .so support
15631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15632 archive_expsym_cmds=''
15633 ;;
15634 m68k)
15635 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)'
15636 hardcode_libdir_flag_spec='-L$libdir'
15637 hardcode_minus_L=yes
15638 ;;
15639 esac
15640 ;;
15641
15642 bsdi[45]*)
15643 export_dynamic_flag_spec=-rdynamic
15644 ;;
15645
15646 cygwin* | mingw* | pw32* | cegcc*)
15647 # When not using gcc, we currently assume that we are using
15648 # Microsoft Visual C++.
15649 # hardcode_libdir_flag_spec is actually meaningless, as there is
15650 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015651 case $cc_basename in
15652 cl*)
15653 # Native MSVC
15654 hardcode_libdir_flag_spec=' '
15655 allow_undefined_flag=unsupported
15656 always_export_symbols=yes
15657 file_list_spec='@'
15658 # Tell ltmain to make .lib files, not .a files.
15659 libext=lib
15660 # Tell ltmain to make .dll files, not .so files.
15661 shrext_cmds=".dll"
15662 # FIXME: Setting linknames here is a bad hack.
15663 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15664 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15665 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15666 else
15667 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15668 fi~
15669 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15670 linknames='
15671 # The linker will not automatically build a static lib if we build a DLL.
15672 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15673 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015674 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015675 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15676 # Don't use ranlib
15677 old_postinstall_cmds='chmod 644 $oldlib'
15678 postlink_cmds='lt_outputfile="@OUTPUT@"~
15679 lt_tool_outputfile="@TOOL_OUTPUT@"~
15680 case $lt_outputfile in
15681 *.exe|*.EXE) ;;
15682 *)
15683 lt_outputfile="$lt_outputfile.exe"
15684 lt_tool_outputfile="$lt_tool_outputfile.exe"
15685 ;;
15686 esac~
15687 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15688 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15689 $RM "$lt_outputfile.manifest";
15690 fi'
15691 ;;
15692 *)
15693 # Assume MSVC wrapper
15694 hardcode_libdir_flag_spec=' '
15695 allow_undefined_flag=unsupported
15696 # Tell ltmain to make .lib files, not .a files.
15697 libext=lib
15698 # Tell ltmain to make .dll files, not .so files.
15699 shrext_cmds=".dll"
15700 # FIXME: Setting linknames here is a bad hack.
15701 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15702 # The linker will automatically build a .lib file if we build a DLL.
15703 old_archive_from_new_cmds='true'
15704 # FIXME: Should let the user specify the lib program.
15705 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15706 enable_shared_with_static_runtimes=yes
15707 ;;
15708 esac
cristy73bd4a52010-10-05 11:24:23 +000015709 ;;
15710
15711 darwin* | rhapsody*)
15712
15713
15714 archive_cmds_need_lc=no
15715 hardcode_direct=no
15716 hardcode_automatic=yes
15717 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015718 if test "$lt_cv_ld_force_load" = "yes"; then
15719 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 +000015720
cristy0c60a692010-11-04 01:09:47 +000015721 else
15722 whole_archive_flag_spec=''
15723 fi
cristy73bd4a52010-10-05 11:24:23 +000015724 link_all_deplibs=yes
15725 allow_undefined_flag="$_lt_dar_allow_undefined"
15726 case $cc_basename in
15727 ifort*) _lt_dar_can_shared=yes ;;
15728 *) _lt_dar_can_shared=$GCC ;;
15729 esac
15730 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015731 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015732 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15733 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15734 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}"
15735 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}"
15736
15737 else
15738 ld_shlibs=no
15739 fi
15740
15741 ;;
15742
15743 dgux*)
15744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15745 hardcode_libdir_flag_spec='-L$libdir'
15746 hardcode_shlibpath_var=no
15747 ;;
15748
cristy73bd4a52010-10-05 11:24:23 +000015749 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15750 # support. Future versions do this automatically, but an explicit c++rt0.o
15751 # does not break anything, and helps significantly (at the cost of a little
15752 # extra space).
15753 freebsd2.2*)
15754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15755 hardcode_libdir_flag_spec='-R$libdir'
15756 hardcode_direct=yes
15757 hardcode_shlibpath_var=no
15758 ;;
15759
15760 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015761 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15763 hardcode_direct=yes
15764 hardcode_minus_L=yes
15765 hardcode_shlibpath_var=no
15766 ;;
15767
15768 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15769 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015770 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015771 hardcode_libdir_flag_spec='-R$libdir'
15772 hardcode_direct=yes
15773 hardcode_shlibpath_var=no
15774 ;;
15775
15776 hpux9*)
15777 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015778 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 +000015779 else
15780 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'
15781 fi
15782 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15783 hardcode_libdir_separator=:
15784 hardcode_direct=yes
15785
15786 # hardcode_minus_L: Not really in the search PATH,
15787 # but as the default location of the library.
15788 hardcode_minus_L=yes
15789 export_dynamic_flag_spec='${wl}-E'
15790 ;;
15791
15792 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015793 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015794 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 +000015795 else
15796 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15797 fi
15798 if test "$with_gnu_ld" = no; then
15799 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015800 hardcode_libdir_separator=:
15801 hardcode_direct=yes
15802 hardcode_direct_absolute=yes
15803 export_dynamic_flag_spec='${wl}-E'
15804 # hardcode_minus_L: Not really in the search PATH,
15805 # but as the default location of the library.
15806 hardcode_minus_L=yes
15807 fi
15808 ;;
15809
15810 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015811 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015812 case $host_cpu in
15813 hppa*64*)
15814 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15815 ;;
15816 ia64*)
cristyda16f162011-02-19 23:52:17 +000015817 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015818 ;;
15819 *)
cristyda16f162011-02-19 23:52:17 +000015820 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 +000015821 ;;
15822 esac
15823 else
15824 case $host_cpu in
15825 hppa*64*)
15826 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15827 ;;
15828 ia64*)
15829 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15830 ;;
15831 *)
cristy0c60a692010-11-04 01:09:47 +000015832
15833 # Older versions of the 11.00 compiler do not understand -b yet
15834 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15836$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015837if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015838 $as_echo_n "(cached) " >&6
15839else
15840 lt_cv_prog_compiler__b=no
15841 save_LDFLAGS="$LDFLAGS"
15842 LDFLAGS="$LDFLAGS -b"
15843 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15844 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15845 # The linker can only warn and ignore the option if not recognized
15846 # So say no if there are warnings
15847 if test -s conftest.err; then
15848 # Append any errors to the config.log.
15849 cat conftest.err 1>&5
15850 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15852 if diff conftest.exp conftest.er2 >/dev/null; then
15853 lt_cv_prog_compiler__b=yes
15854 fi
15855 else
15856 lt_cv_prog_compiler__b=yes
15857 fi
15858 fi
15859 $RM -r conftest*
15860 LDFLAGS="$save_LDFLAGS"
15861
15862fi
15863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15864$as_echo "$lt_cv_prog_compiler__b" >&6; }
15865
15866if test x"$lt_cv_prog_compiler__b" = xyes; then
15867 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15868else
15869 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15870fi
15871
cristy73bd4a52010-10-05 11:24:23 +000015872 ;;
15873 esac
15874 fi
15875 if test "$with_gnu_ld" = no; then
15876 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15877 hardcode_libdir_separator=:
15878
15879 case $host_cpu in
15880 hppa*64*|ia64*)
15881 hardcode_direct=no
15882 hardcode_shlibpath_var=no
15883 ;;
15884 *)
15885 hardcode_direct=yes
15886 hardcode_direct_absolute=yes
15887 export_dynamic_flag_spec='${wl}-E'
15888
15889 # hardcode_minus_L: Not really in the search PATH,
15890 # but as the default location of the library.
15891 hardcode_minus_L=yes
15892 ;;
15893 esac
15894 fi
15895 ;;
15896
15897 irix5* | irix6* | nonstopux*)
15898 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015899 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 +000015900 # Try to use the -exported_symbol ld option, if it does not
15901 # work, assume that -exports_file does not work either and
15902 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015903 # This should be the same for all languages, so no per-tag cache variable.
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15905$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15906if ${lt_cv_irix_exported_symbol+:} false; then :
15907 $as_echo_n "(cached) " >&6
15908else
15909 save_LDFLAGS="$LDFLAGS"
15910 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015912/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015913int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015914_ACEOF
15915if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015916 lt_cv_irix_exported_symbol=yes
15917else
15918 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015919fi
15920rm -f core conftest.err conftest.$ac_objext \
15921 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015922 LDFLAGS="$save_LDFLAGS"
15923fi
15924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15925$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15926 if test "$lt_cv_irix_exported_symbol" = yes; then
15927 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'
15928 fi
cristy73bd4a52010-10-05 11:24:23 +000015929 else
cristy0c60a692010-11-04 01:09:47 +000015930 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'
15931 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 +000015932 fi
15933 archive_cmds_need_lc='no'
15934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15935 hardcode_libdir_separator=:
15936 inherit_rpath=yes
15937 link_all_deplibs=yes
15938 ;;
15939
15940 netbsd*)
15941 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15943 else
15944 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15945 fi
15946 hardcode_libdir_flag_spec='-R$libdir'
15947 hardcode_direct=yes
15948 hardcode_shlibpath_var=no
15949 ;;
15950
15951 newsos6)
15952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15953 hardcode_direct=yes
15954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15955 hardcode_libdir_separator=:
15956 hardcode_shlibpath_var=no
15957 ;;
15958
15959 *nto* | *qnx*)
15960 ;;
15961
15962 openbsd*)
15963 if test -f /usr/libexec/ld.so; then
15964 hardcode_direct=yes
15965 hardcode_shlibpath_var=no
15966 hardcode_direct_absolute=yes
15967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15968 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15969 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15970 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15971 export_dynamic_flag_spec='${wl}-E'
15972 else
15973 case $host_os in
15974 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15975 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15976 hardcode_libdir_flag_spec='-R$libdir'
15977 ;;
15978 *)
15979 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15980 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15981 ;;
15982 esac
15983 fi
15984 else
15985 ld_shlibs=no
15986 fi
15987 ;;
15988
15989 os2*)
15990 hardcode_libdir_flag_spec='-L$libdir'
15991 hardcode_minus_L=yes
15992 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015993 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 +000015994 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15995 ;;
15996
15997 osf3*)
15998 if test "$GCC" = yes; then
15999 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016000 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 +000016001 else
16002 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016003 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 +000016004 fi
16005 archive_cmds_need_lc='no'
16006 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16007 hardcode_libdir_separator=:
16008 ;;
16009
16010 osf4* | osf5*) # as osf3* with the addition of -msym flag
16011 if test "$GCC" = yes; then
16012 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016013 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 +000016014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16015 else
16016 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016017 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 +000016018 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 +000016019 $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 +000016020
16021 # Both c and cxx compiler support -rpath directly
16022 hardcode_libdir_flag_spec='-rpath $libdir'
16023 fi
16024 archive_cmds_need_lc='no'
16025 hardcode_libdir_separator=:
16026 ;;
16027
16028 solaris*)
16029 no_undefined_flag=' -z defs'
16030 if test "$GCC" = yes; then
16031 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016032 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 +000016033 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 +000016034 $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 +000016035 else
16036 case `$CC -V 2>&1` in
16037 *"Compilers 5.0"*)
16038 wlarc=''
16039 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16040 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16041 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16042 ;;
16043 *)
16044 wlarc='${wl}'
16045 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16046 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16047 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16048 ;;
16049 esac
16050 fi
16051 hardcode_libdir_flag_spec='-R$libdir'
16052 hardcode_shlibpath_var=no
16053 case $host_os in
16054 solaris2.[0-5] | solaris2.[0-5].*) ;;
16055 *)
16056 # The compiler driver will combine and reorder linker options,
16057 # but understands `-z linker_flag'. GCC discards it without `$wl',
16058 # but is careful enough not to reorder.
16059 # Supported since Solaris 2.6 (maybe 2.5.1?)
16060 if test "$GCC" = yes; then
16061 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16062 else
16063 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16064 fi
16065 ;;
16066 esac
16067 link_all_deplibs=yes
16068 ;;
16069
16070 sunos4*)
16071 if test "x$host_vendor" = xsequent; then
16072 # Use $CC to link under sequent, because it throws in some extra .o
16073 # files that make .init and .fini sections work.
16074 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16075 else
16076 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16077 fi
16078 hardcode_libdir_flag_spec='-L$libdir'
16079 hardcode_direct=yes
16080 hardcode_minus_L=yes
16081 hardcode_shlibpath_var=no
16082 ;;
16083
16084 sysv4)
16085 case $host_vendor in
16086 sni)
16087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16088 hardcode_direct=yes # is this really true???
16089 ;;
16090 siemens)
16091 ## LD is ld it makes a PLAMLIB
16092 ## CC just makes a GrossModule.
16093 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16094 reload_cmds='$CC -r -o $output$reload_objs'
16095 hardcode_direct=no
16096 ;;
16097 motorola)
16098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16099 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16100 ;;
16101 esac
16102 runpath_var='LD_RUN_PATH'
16103 hardcode_shlibpath_var=no
16104 ;;
16105
16106 sysv4.3*)
16107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16108 hardcode_shlibpath_var=no
16109 export_dynamic_flag_spec='-Bexport'
16110 ;;
16111
16112 sysv4*MP*)
16113 if test -d /usr/nec; then
16114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115 hardcode_shlibpath_var=no
16116 runpath_var=LD_RUN_PATH
16117 hardcode_runpath_var=yes
16118 ld_shlibs=yes
16119 fi
16120 ;;
16121
16122 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16123 no_undefined_flag='${wl}-z,text'
16124 archive_cmds_need_lc=no
16125 hardcode_shlibpath_var=no
16126 runpath_var='LD_RUN_PATH'
16127
16128 if test "$GCC" = yes; then
16129 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16130 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16131 else
16132 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16133 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16134 fi
16135 ;;
16136
16137 sysv5* | sco3.2v5* | sco5v6*)
16138 # Note: We can NOT use -z defs as we might desire, because we do not
16139 # link with -lc, and that would cause any symbols used from libc to
16140 # always be unresolved, which means just about no library would
16141 # ever link correctly. If we're not using GNU ld we use -z text
16142 # though, which does catch some bad symbols but isn't as heavy-handed
16143 # as -z defs.
16144 no_undefined_flag='${wl}-z,text'
16145 allow_undefined_flag='${wl}-z,nodefs'
16146 archive_cmds_need_lc=no
16147 hardcode_shlibpath_var=no
16148 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16149 hardcode_libdir_separator=':'
16150 link_all_deplibs=yes
16151 export_dynamic_flag_spec='${wl}-Bexport'
16152 runpath_var='LD_RUN_PATH'
16153
16154 if test "$GCC" = yes; then
16155 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16156 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16157 else
16158 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16159 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16160 fi
16161 ;;
16162
16163 uts4*)
16164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16165 hardcode_libdir_flag_spec='-L$libdir'
16166 hardcode_shlibpath_var=no
16167 ;;
16168
16169 *)
16170 ld_shlibs=no
16171 ;;
16172 esac
16173
16174 if test x$host_vendor = xsni; then
16175 case $host in
16176 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16177 export_dynamic_flag_spec='${wl}-Blargedynsym'
16178 ;;
16179 esac
16180 fi
16181 fi
16182
16183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16184$as_echo "$ld_shlibs" >&6; }
16185test "$ld_shlibs" = no && can_build_shared=no
16186
16187with_gnu_ld=$with_gnu_ld
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203#
16204# Do we need to explicitly link libc?
16205#
16206case "x$archive_cmds_need_lc" in
16207x|xyes)
16208 # Assume -lc should be added
16209 archive_cmds_need_lc=yes
16210
16211 if test "$enable_shared" = yes && test "$GCC" = yes; then
16212 case $archive_cmds in
16213 *'~'*)
16214 # FIXME: we may have to deal with multi-command sequences.
16215 ;;
16216 '$CC '*)
16217 # Test whether the compiler implicitly links with -lc since on some
16218 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16219 # to ld, don't add -lc before -lgcc.
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16221$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016222if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016223 $as_echo_n "(cached) " >&6
16224else
16225 $RM conftest*
16226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016227
cristy0c60a692010-11-04 01:09:47 +000016228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016229 (eval $ac_compile) 2>&5
16230 ac_status=$?
16231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16232 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016233 soname=conftest
16234 lib=conftest
16235 libobjs=conftest.$ac_objext
16236 deplibs=
16237 wl=$lt_prog_compiler_wl
16238 pic_flag=$lt_prog_compiler_pic
16239 compiler_flags=-v
16240 linker_flags=-v
16241 verstring=
16242 output_objdir=.
16243 libname=conftest
16244 lt_save_allow_undefined_flag=$allow_undefined_flag
16245 allow_undefined_flag=
16246 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 +000016247 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16248 ac_status=$?
16249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16250 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016251 then
16252 lt_cv_archive_cmds_need_lc=no
16253 else
16254 lt_cv_archive_cmds_need_lc=yes
16255 fi
16256 allow_undefined_flag=$lt_save_allow_undefined_flag
16257 else
16258 cat conftest.err 1>&5
16259 fi
16260 $RM conftest*
16261
16262fi
16263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16264$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16265 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016266 ;;
16267 esac
16268 fi
16269 ;;
16270esac
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
cristy73bd4a52010-10-05 11:24:23 +000016423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16424$as_echo_n "checking dynamic linker characteristics... " >&6; }
16425
16426if test "$GCC" = yes; then
16427 case $host_os in
16428 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16429 *) lt_awk_arg="/^libraries:/" ;;
16430 esac
cristy0c60a692010-11-04 01:09:47 +000016431 case $host_os in
16432 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16433 *) lt_sed_strip_eq="s,=/,/,g" ;;
16434 esac
16435 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16436 case $lt_search_path_spec in
16437 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016438 # if the path contains ";" then we assume it to be the separator
16439 # otherwise default to the standard path separator (i.e. ":") - it is
16440 # assumed that no part of a normal pathname contains ";" but that should
16441 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016442 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16443 ;;
16444 *)
16445 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16446 ;;
16447 esac
cristy73bd4a52010-10-05 11:24:23 +000016448 # Ok, now we have the path, separated by spaces, we can step through it
16449 # and add multilib dir if necessary.
16450 lt_tmp_lt_search_path_spec=
16451 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16452 for lt_sys_path in $lt_search_path_spec; do
16453 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16454 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16455 else
16456 test -d "$lt_sys_path" && \
16457 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16458 fi
16459 done
cristy0c60a692010-11-04 01:09:47 +000016460 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016461BEGIN {RS=" "; FS="/|\n";} {
16462 lt_foo="";
16463 lt_count=0;
16464 for (lt_i = NF; lt_i > 0; lt_i--) {
16465 if ($lt_i != "" && $lt_i != ".") {
16466 if ($lt_i == "..") {
16467 lt_count++;
16468 } else {
16469 if (lt_count == 0) {
16470 lt_foo="/" $lt_i lt_foo;
16471 } else {
16472 lt_count--;
16473 }
16474 }
16475 }
16476 }
16477 if (lt_foo != "") { lt_freq[lt_foo]++; }
16478 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16479}'`
cristy0c60a692010-11-04 01:09:47 +000016480 # AWK program above erroneously prepends '/' to C:/dos/paths
16481 # for these hosts.
16482 case $host_os in
16483 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16484 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16485 esac
16486 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016487else
16488 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16489fi
16490library_names_spec=
16491libname_spec='lib$name'
16492soname_spec=
16493shrext_cmds=".so"
16494postinstall_cmds=
16495postuninstall_cmds=
16496finish_cmds=
16497finish_eval=
16498shlibpath_var=
16499shlibpath_overrides_runpath=unknown
16500version_type=none
16501dynamic_linker="$host_os ld.so"
16502sys_lib_dlsearch_path_spec="/lib /usr/lib"
16503need_lib_prefix=unknown
16504hardcode_into_libs=no
16505
16506# when you set need_version to no, make sure it does not cause -set_version
16507# flags to be left without arguments
16508need_version=unknown
16509
16510case $host_os in
16511aix3*)
cristy99bd5232011-12-07 14:38:20 +000016512 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16514 shlibpath_var=LIBPATH
16515
16516 # AIX 3 has no versioning support, so we append a major version to the name.
16517 soname_spec='${libname}${release}${shared_ext}$major'
16518 ;;
16519
16520aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016521 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016522 need_lib_prefix=no
16523 need_version=no
16524 hardcode_into_libs=yes
16525 if test "$host_cpu" = ia64; then
16526 # AIX 5 supports IA64
16527 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16528 shlibpath_var=LD_LIBRARY_PATH
16529 else
16530 # With GCC up to 2.95.x, collect2 would create an import file
16531 # for dependence libraries. The import file would start with
16532 # the line `#! .'. This would cause the generated library to
16533 # depend on `.', always an invalid library. This was fixed in
16534 # development snapshots of GCC prior to 3.0.
16535 case $host_os in
16536 aix4 | aix4.[01] | aix4.[01].*)
16537 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16538 echo ' yes '
16539 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16540 :
16541 else
16542 can_build_shared=no
16543 fi
16544 ;;
16545 esac
16546 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16547 # soname into executable. Probably we can add versioning support to
16548 # collect2, so additional links can be useful in future.
16549 if test "$aix_use_runtimelinking" = yes; then
16550 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16551 # instead of lib<name>.a to let people know that these are not
16552 # typical AIX shared libraries.
16553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16554 else
16555 # We preserve .a as extension for shared libraries through AIX4.2
16556 # and later when we are not doing run time linking.
16557 library_names_spec='${libname}${release}.a $libname.a'
16558 soname_spec='${libname}${release}${shared_ext}$major'
16559 fi
16560 shlibpath_var=LIBPATH
16561 fi
16562 ;;
16563
16564amigaos*)
16565 case $host_cpu in
16566 powerpc)
16567 # Since July 2007 AmigaOS4 officially supports .so libraries.
16568 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16570 ;;
16571 m68k)
16572 library_names_spec='$libname.ixlibrary $libname.a'
16573 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016574 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 +000016575 ;;
16576 esac
16577 ;;
16578
16579beos*)
16580 library_names_spec='${libname}${shared_ext}'
16581 dynamic_linker="$host_os ld.so"
16582 shlibpath_var=LIBRARY_PATH
16583 ;;
16584
16585bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016586 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016587 need_version=no
16588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16589 soname_spec='${libname}${release}${shared_ext}$major'
16590 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16591 shlibpath_var=LD_LIBRARY_PATH
16592 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16593 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16594 # the default ld.so.conf also contains /usr/contrib/lib and
16595 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16596 # libtool to hard-code these into programs
16597 ;;
16598
16599cygwin* | mingw* | pw32* | cegcc*)
16600 version_type=windows
16601 shrext_cmds=".dll"
16602 need_version=no
16603 need_lib_prefix=no
16604
cristyda16f162011-02-19 23:52:17 +000016605 case $GCC,$cc_basename in
16606 yes,*)
16607 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016608 library_names_spec='$libname.dll.a'
16609 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16610 postinstall_cmds='base_file=`basename \${file}`~
16611 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16612 dldir=$destdir/`dirname \$dlpath`~
16613 test -d \$dldir || mkdir -p \$dldir~
16614 $install_prog $dir/$dlname \$dldir/$dlname~
16615 chmod a+x \$dldir/$dlname~
16616 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16617 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16618 fi'
16619 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16620 dlpath=$dir/\$dldll~
16621 $RM \$dlpath'
16622 shlibpath_overrides_runpath=yes
16623
16624 case $host_os in
16625 cygwin*)
16626 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16627 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016628
16629 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016630 ;;
16631 mingw* | cegcc*)
16632 # MinGW DLLs use traditional 'lib' prefix
16633 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016634 ;;
16635 pw32*)
16636 # pw32 DLLs use 'pw' prefix rather than 'lib'
16637 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16638 ;;
16639 esac
cristyda16f162011-02-19 23:52:17 +000016640 dynamic_linker='Win32 ld.exe'
16641 ;;
16642
16643 *,cl*)
16644 # Native MSVC
16645 libname_spec='$name'
16646 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16647 library_names_spec='${libname}.dll.lib'
16648
16649 case $build_os in
16650 mingw*)
16651 sys_lib_search_path_spec=
16652 lt_save_ifs=$IFS
16653 IFS=';'
16654 for lt_path in $LIB
16655 do
16656 IFS=$lt_save_ifs
16657 # Let DOS variable expansion print the short 8.3 style file name.
16658 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16659 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16660 done
16661 IFS=$lt_save_ifs
16662 # Convert to MSYS style.
16663 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16664 ;;
16665 cygwin*)
16666 # Convert to unix form, then to dos form, then back to unix form
16667 # but this time dos style (no spaces!) so that the unix form looks
16668 # like /cygdrive/c/PROGRA~1:/cygdr...
16669 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16670 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16671 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16672 ;;
16673 *)
16674 sys_lib_search_path_spec="$LIB"
16675 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16676 # It is most probably a Windows format PATH.
16677 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16678 else
16679 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16680 fi
16681 # FIXME: find the short name or the path components, as spaces are
16682 # common. (e.g. "Program Files" -> "PROGRA~1")
16683 ;;
16684 esac
16685
16686 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16687 postinstall_cmds='base_file=`basename \${file}`~
16688 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16689 dldir=$destdir/`dirname \$dlpath`~
16690 test -d \$dldir || mkdir -p \$dldir~
16691 $install_prog $dir/$dlname \$dldir/$dlname'
16692 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16693 dlpath=$dir/\$dldll~
16694 $RM \$dlpath'
16695 shlibpath_overrides_runpath=yes
16696 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016697 ;;
16698
16699 *)
cristyda16f162011-02-19 23:52:17 +000016700 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016701 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016702 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016703 ;;
16704 esac
cristy73bd4a52010-10-05 11:24:23 +000016705 # FIXME: first we should search . and the directory the executable is in
16706 shlibpath_var=PATH
16707 ;;
16708
16709darwin* | rhapsody*)
16710 dynamic_linker="$host_os dyld"
16711 version_type=darwin
16712 need_lib_prefix=no
16713 need_version=no
16714 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16715 soname_spec='${libname}${release}${major}$shared_ext'
16716 shlibpath_overrides_runpath=yes
16717 shlibpath_var=DYLD_LIBRARY_PATH
16718 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16719
16720 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16721 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16722 ;;
16723
16724dgux*)
cristy99bd5232011-12-07 14:38:20 +000016725 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016726 need_lib_prefix=no
16727 need_version=no
16728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16729 soname_spec='${libname}${release}${shared_ext}$major'
16730 shlibpath_var=LD_LIBRARY_PATH
16731 ;;
16732
cristy73bd4a52010-10-05 11:24:23 +000016733freebsd* | dragonfly*)
16734 # DragonFly does not have aout. When/if they implement a new
16735 # versioning mechanism, adjust this.
16736 if test -x /usr/bin/objformat; then
16737 objformat=`/usr/bin/objformat`
16738 else
16739 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016740 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016741 *) objformat=elf ;;
16742 esac
16743 fi
16744 version_type=freebsd-$objformat
16745 case $version_type in
16746 freebsd-elf*)
16747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16748 need_version=no
16749 need_lib_prefix=no
16750 ;;
16751 freebsd-*)
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16753 need_version=yes
16754 ;;
16755 esac
16756 shlibpath_var=LD_LIBRARY_PATH
16757 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016758 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016759 shlibpath_overrides_runpath=yes
16760 ;;
16761 freebsd3.[01]* | freebsdelf3.[01]*)
16762 shlibpath_overrides_runpath=yes
16763 hardcode_into_libs=yes
16764 ;;
16765 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16766 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16767 shlibpath_overrides_runpath=no
16768 hardcode_into_libs=yes
16769 ;;
16770 *) # from 4.6 on, and DragonFly
16771 shlibpath_overrides_runpath=yes
16772 hardcode_into_libs=yes
16773 ;;
16774 esac
16775 ;;
16776
16777gnu*)
cristy99bd5232011-12-07 14:38:20 +000016778 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016779 need_lib_prefix=no
16780 need_version=no
16781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16782 soname_spec='${libname}${release}${shared_ext}$major'
16783 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016784 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016785 hardcode_into_libs=yes
16786 ;;
16787
cristy0c60a692010-11-04 01:09:47 +000016788haiku*)
cristy99bd5232011-12-07 14:38:20 +000016789 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016790 need_lib_prefix=no
16791 need_version=no
16792 dynamic_linker="$host_os runtime_loader"
16793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16794 soname_spec='${libname}${release}${shared_ext}$major'
16795 shlibpath_var=LIBRARY_PATH
16796 shlibpath_overrides_runpath=yes
16797 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16798 hardcode_into_libs=yes
16799 ;;
16800
cristy73bd4a52010-10-05 11:24:23 +000016801hpux9* | hpux10* | hpux11*)
16802 # Give a soname corresponding to the major version so that dld.sl refuses to
16803 # link against other versions.
16804 version_type=sunos
16805 need_lib_prefix=no
16806 need_version=no
16807 case $host_cpu in
16808 ia64*)
16809 shrext_cmds='.so'
16810 hardcode_into_libs=yes
16811 dynamic_linker="$host_os dld.so"
16812 shlibpath_var=LD_LIBRARY_PATH
16813 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16815 soname_spec='${libname}${release}${shared_ext}$major'
16816 if test "X$HPUX_IA64_MODE" = X32; then
16817 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16818 else
16819 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16820 fi
16821 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16822 ;;
16823 hppa*64*)
16824 shrext_cmds='.sl'
16825 hardcode_into_libs=yes
16826 dynamic_linker="$host_os dld.sl"
16827 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16828 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16830 soname_spec='${libname}${release}${shared_ext}$major'
16831 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16832 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16833 ;;
16834 *)
16835 shrext_cmds='.sl'
16836 dynamic_linker="$host_os dld.sl"
16837 shlibpath_var=SHLIB_PATH
16838 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16840 soname_spec='${libname}${release}${shared_ext}$major'
16841 ;;
16842 esac
cristy0c60a692010-11-04 01:09:47 +000016843 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016844 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016845 # or fails outright, so override atomically:
16846 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016847 ;;
16848
16849interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016850 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016851 need_lib_prefix=no
16852 need_version=no
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16854 soname_spec='${libname}${release}${shared_ext}$major'
16855 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16856 shlibpath_var=LD_LIBRARY_PATH
16857 shlibpath_overrides_runpath=no
16858 hardcode_into_libs=yes
16859 ;;
16860
16861irix5* | irix6* | nonstopux*)
16862 case $host_os in
16863 nonstopux*) version_type=nonstopux ;;
16864 *)
16865 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016866 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016867 else
16868 version_type=irix
16869 fi ;;
16870 esac
16871 need_lib_prefix=no
16872 need_version=no
16873 soname_spec='${libname}${release}${shared_ext}$major'
16874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16875 case $host_os in
16876 irix5* | nonstopux*)
16877 libsuff= shlibsuff=
16878 ;;
16879 *)
16880 case $LD in # libtool.m4 will add one of these switches to LD
16881 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16882 libsuff= shlibsuff= libmagic=32-bit;;
16883 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16884 libsuff=32 shlibsuff=N32 libmagic=N32;;
16885 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16886 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16887 *) libsuff= shlibsuff= libmagic=never-match;;
16888 esac
16889 ;;
16890 esac
16891 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16892 shlibpath_overrides_runpath=no
16893 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16894 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16895 hardcode_into_libs=yes
16896 ;;
16897
16898# No shared lib support for Linux oldld, aout, or coff.
16899linux*oldld* | linux*aout* | linux*coff*)
16900 dynamic_linker=no
16901 ;;
16902
cristy99bd5232011-12-07 14:38:20 +000016903# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016904linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016905 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016906 need_lib_prefix=no
16907 need_version=no
16908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16909 soname_spec='${libname}${release}${shared_ext}$major'
16910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16911 shlibpath_var=LD_LIBRARY_PATH
16912 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016913
cristy73bd4a52010-10-05 11:24:23 +000016914 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016915 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016916 $as_echo_n "(cached) " >&6
16917else
16918 lt_cv_shlibpath_overrides_runpath=no
16919 save_LDFLAGS=$LDFLAGS
16920 save_libdir=$libdir
16921 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16922 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016924/* end confdefs.h. */
16925
16926int
16927main ()
16928{
16929
16930 ;
16931 return 0;
16932}
16933_ACEOF
16934if ac_fn_c_try_link "$LINENO"; then :
16935 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016936 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016937fi
16938fi
16939rm -f core conftest.err conftest.$ac_objext \
16940 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016941 LDFLAGS=$save_LDFLAGS
16942 libdir=$save_libdir
16943
16944fi
16945
16946 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016947
16948 # This implies no fast_install, which is unacceptable.
16949 # Some rework will be needed to allow for fast_install
16950 # before this can be enabled.
16951 hardcode_into_libs=yes
16952
16953 # Add ABI-specific directories to the system library path.
16954 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16955
16956 # Append ld.so.conf contents to the search path
16957 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016958 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 +000016959 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016960
cristy73bd4a52010-10-05 11:24:23 +000016961 fi
16962
16963 # We used to test for /lib/ld.so.1 and disable shared libraries on
16964 # powerpc, because MkLinux only supported shared libraries with the
16965 # GNU dynamic linker. Since this was broken with cross compilers,
16966 # most powerpc-linux boxes support dynamic linking these days and
16967 # people can always --disable-shared, the test was removed, and we
16968 # assume the GNU/Linux dynamic linker is in use.
16969 dynamic_linker='GNU/Linux ld.so'
16970 ;;
16971
16972netbsd*)
16973 version_type=sunos
16974 need_lib_prefix=no
16975 need_version=no
16976 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16979 dynamic_linker='NetBSD (a.out) ld.so'
16980 else
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16982 soname_spec='${libname}${release}${shared_ext}$major'
16983 dynamic_linker='NetBSD ld.elf_so'
16984 fi
16985 shlibpath_var=LD_LIBRARY_PATH
16986 shlibpath_overrides_runpath=yes
16987 hardcode_into_libs=yes
16988 ;;
16989
16990newsos6)
cristy99bd5232011-12-07 14:38:20 +000016991 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16993 shlibpath_var=LD_LIBRARY_PATH
16994 shlibpath_overrides_runpath=yes
16995 ;;
16996
16997*nto* | *qnx*)
16998 version_type=qnx
16999 need_lib_prefix=no
17000 need_version=no
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17002 soname_spec='${libname}${release}${shared_ext}$major'
17003 shlibpath_var=LD_LIBRARY_PATH
17004 shlibpath_overrides_runpath=no
17005 hardcode_into_libs=yes
17006 dynamic_linker='ldqnx.so'
17007 ;;
17008
17009openbsd*)
17010 version_type=sunos
17011 sys_lib_dlsearch_path_spec="/usr/lib"
17012 need_lib_prefix=no
17013 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17014 case $host_os in
17015 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17016 *) need_version=no ;;
17017 esac
17018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17020 shlibpath_var=LD_LIBRARY_PATH
17021 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17022 case $host_os in
17023 openbsd2.[89] | openbsd2.[89].*)
17024 shlibpath_overrides_runpath=no
17025 ;;
17026 *)
17027 shlibpath_overrides_runpath=yes
17028 ;;
17029 esac
17030 else
17031 shlibpath_overrides_runpath=yes
17032 fi
17033 ;;
17034
17035os2*)
17036 libname_spec='$name'
17037 shrext_cmds=".dll"
17038 need_lib_prefix=no
17039 library_names_spec='$libname${shared_ext} $libname.a'
17040 dynamic_linker='OS/2 ld.exe'
17041 shlibpath_var=LIBPATH
17042 ;;
17043
17044osf3* | osf4* | osf5*)
17045 version_type=osf
17046 need_lib_prefix=no
17047 need_version=no
17048 soname_spec='${libname}${release}${shared_ext}$major'
17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17050 shlibpath_var=LD_LIBRARY_PATH
17051 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17052 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17053 ;;
17054
17055rdos*)
17056 dynamic_linker=no
17057 ;;
17058
17059solaris*)
cristy99bd5232011-12-07 14:38:20 +000017060 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017061 need_lib_prefix=no
17062 need_version=no
17063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17064 soname_spec='${libname}${release}${shared_ext}$major'
17065 shlibpath_var=LD_LIBRARY_PATH
17066 shlibpath_overrides_runpath=yes
17067 hardcode_into_libs=yes
17068 # ldd complains unless libraries are executable
17069 postinstall_cmds='chmod +x $lib'
17070 ;;
17071
17072sunos4*)
17073 version_type=sunos
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17075 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17076 shlibpath_var=LD_LIBRARY_PATH
17077 shlibpath_overrides_runpath=yes
17078 if test "$with_gnu_ld" = yes; then
17079 need_lib_prefix=no
17080 fi
17081 need_version=yes
17082 ;;
17083
17084sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017085 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17087 soname_spec='${libname}${release}${shared_ext}$major'
17088 shlibpath_var=LD_LIBRARY_PATH
17089 case $host_vendor in
17090 sni)
17091 shlibpath_overrides_runpath=no
17092 need_lib_prefix=no
17093 runpath_var=LD_RUN_PATH
17094 ;;
17095 siemens)
17096 need_lib_prefix=no
17097 ;;
17098 motorola)
17099 need_lib_prefix=no
17100 need_version=no
17101 shlibpath_overrides_runpath=no
17102 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17103 ;;
17104 esac
17105 ;;
17106
17107sysv4*MP*)
17108 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017109 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017110 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17111 soname_spec='$libname${shared_ext}.$major'
17112 shlibpath_var=LD_LIBRARY_PATH
17113 fi
17114 ;;
17115
17116sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17117 version_type=freebsd-elf
17118 need_lib_prefix=no
17119 need_version=no
17120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17121 soname_spec='${libname}${release}${shared_ext}$major'
17122 shlibpath_var=LD_LIBRARY_PATH
17123 shlibpath_overrides_runpath=yes
17124 hardcode_into_libs=yes
17125 if test "$with_gnu_ld" = yes; then
17126 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17127 else
17128 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17129 case $host_os in
17130 sco3.2v5*)
17131 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17132 ;;
17133 esac
17134 fi
17135 sys_lib_dlsearch_path_spec='/usr/lib'
17136 ;;
17137
17138tpf*)
17139 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017140 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017141 need_lib_prefix=no
17142 need_version=no
17143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17144 shlibpath_var=LD_LIBRARY_PATH
17145 shlibpath_overrides_runpath=no
17146 hardcode_into_libs=yes
17147 ;;
17148
17149uts4*)
cristy99bd5232011-12-07 14:38:20 +000017150 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17152 soname_spec='${libname}${release}${shared_ext}$major'
17153 shlibpath_var=LD_LIBRARY_PATH
17154 ;;
17155
17156*)
17157 dynamic_linker=no
17158 ;;
17159esac
17160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17161$as_echo "$dynamic_linker" >&6; }
17162test "$dynamic_linker" = no && can_build_shared=no
17163
17164variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17165if test "$GCC" = yes; then
17166 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17167fi
17168
17169if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17170 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17171fi
17172if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17173 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17174fi
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
cristy0c60a692010-11-04 01:09:47 +000017262
17263
17264
17265
17266
cristy73bd4a52010-10-05 11:24:23 +000017267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17268$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17269hardcode_action=
17270if test -n "$hardcode_libdir_flag_spec" ||
17271 test -n "$runpath_var" ||
17272 test "X$hardcode_automatic" = "Xyes" ; then
17273
17274 # We can hardcode non-existent directories.
17275 if test "$hardcode_direct" != no &&
17276 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17277 # have to relink, otherwise we might link with an installed library
17278 # when we should be linking with a yet-to-be-installed one
17279 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17280 test "$hardcode_minus_L" != no; then
17281 # Linking always hardcodes the temporary library directory.
17282 hardcode_action=relink
17283 else
17284 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17285 hardcode_action=immediate
17286 fi
17287else
17288 # We cannot hardcode anything, or else we can only hardcode existing
17289 # directories.
17290 hardcode_action=unsupported
17291fi
17292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17293$as_echo "$hardcode_action" >&6; }
17294
17295if test "$hardcode_action" = relink ||
17296 test "$inherit_rpath" = yes; then
17297 # Fast installation is not supported
17298 enable_fast_install=no
17299elif test "$shlibpath_overrides_runpath" = yes ||
17300 test "$enable_shared" = no; then
17301 # Fast installation is not necessary
17302 enable_fast_install=needless
17303fi
17304
17305
17306
17307
17308
17309
17310 if test "x$enable_dlopen" != xyes; then
17311 enable_dlopen=unknown
17312 enable_dlopen_self=unknown
17313 enable_dlopen_self_static=unknown
17314else
17315 lt_cv_dlopen=no
17316 lt_cv_dlopen_libs=
17317
17318 case $host_os in
17319 beos*)
17320 lt_cv_dlopen="load_add_on"
17321 lt_cv_dlopen_libs=
17322 lt_cv_dlopen_self=yes
17323 ;;
17324
17325 mingw* | pw32* | cegcc*)
17326 lt_cv_dlopen="LoadLibrary"
17327 lt_cv_dlopen_libs=
17328 ;;
17329
17330 cygwin*)
17331 lt_cv_dlopen="dlopen"
17332 lt_cv_dlopen_libs=
17333 ;;
17334
17335 darwin*)
17336 # if libdl is installed we need to link against it
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17338$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017339if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017340 $as_echo_n "(cached) " >&6
17341else
17342 ac_check_lib_save_LIBS=$LIBS
17343LIBS="-ldl $LIBS"
17344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345/* end confdefs.h. */
17346
17347/* Override any GCC internal prototype to avoid an error.
17348 Use char because int might match the return type of a GCC
17349 builtin and then its argument prototype would still apply. */
17350#ifdef __cplusplus
17351extern "C"
17352#endif
17353char dlopen ();
17354int
17355main ()
17356{
17357return dlopen ();
17358 ;
17359 return 0;
17360}
17361_ACEOF
17362if ac_fn_c_try_link "$LINENO"; then :
17363 ac_cv_lib_dl_dlopen=yes
17364else
17365 ac_cv_lib_dl_dlopen=no
17366fi
17367rm -f core conftest.err conftest.$ac_objext \
17368 conftest$ac_exeext conftest.$ac_ext
17369LIBS=$ac_check_lib_save_LIBS
17370fi
17371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17372$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017373if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017374 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17375else
17376
17377 lt_cv_dlopen="dyld"
17378 lt_cv_dlopen_libs=
17379 lt_cv_dlopen_self=yes
17380
17381fi
17382
17383 ;;
17384
17385 *)
17386 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017387if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017388 lt_cv_dlopen="shl_load"
17389else
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17391$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017392if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017393 $as_echo_n "(cached) " >&6
17394else
17395 ac_check_lib_save_LIBS=$LIBS
17396LIBS="-ldld $LIBS"
17397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17398/* end confdefs.h. */
17399
17400/* Override any GCC internal prototype to avoid an error.
17401 Use char because int might match the return type of a GCC
17402 builtin and then its argument prototype would still apply. */
17403#ifdef __cplusplus
17404extern "C"
17405#endif
17406char shl_load ();
17407int
17408main ()
17409{
17410return shl_load ();
17411 ;
17412 return 0;
17413}
17414_ACEOF
17415if ac_fn_c_try_link "$LINENO"; then :
17416 ac_cv_lib_dld_shl_load=yes
17417else
17418 ac_cv_lib_dld_shl_load=no
17419fi
17420rm -f core conftest.err conftest.$ac_objext \
17421 conftest$ac_exeext conftest.$ac_ext
17422LIBS=$ac_check_lib_save_LIBS
17423fi
17424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17425$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017426if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017427 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17428else
17429 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017430if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017431 lt_cv_dlopen="dlopen"
17432else
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17434$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017435if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017436 $as_echo_n "(cached) " >&6
17437else
17438 ac_check_lib_save_LIBS=$LIBS
17439LIBS="-ldl $LIBS"
17440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17441/* end confdefs.h. */
17442
17443/* Override any GCC internal prototype to avoid an error.
17444 Use char because int might match the return type of a GCC
17445 builtin and then its argument prototype would still apply. */
17446#ifdef __cplusplus
17447extern "C"
17448#endif
17449char dlopen ();
17450int
17451main ()
17452{
17453return dlopen ();
17454 ;
17455 return 0;
17456}
17457_ACEOF
17458if ac_fn_c_try_link "$LINENO"; then :
17459 ac_cv_lib_dl_dlopen=yes
17460else
17461 ac_cv_lib_dl_dlopen=no
17462fi
17463rm -f core conftest.err conftest.$ac_objext \
17464 conftest$ac_exeext conftest.$ac_ext
17465LIBS=$ac_check_lib_save_LIBS
17466fi
17467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17468$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017469if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017470 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17471else
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17473$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017474if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017475 $as_echo_n "(cached) " >&6
17476else
17477 ac_check_lib_save_LIBS=$LIBS
17478LIBS="-lsvld $LIBS"
17479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17480/* end confdefs.h. */
17481
17482/* Override any GCC internal prototype to avoid an error.
17483 Use char because int might match the return type of a GCC
17484 builtin and then its argument prototype would still apply. */
17485#ifdef __cplusplus
17486extern "C"
17487#endif
17488char dlopen ();
17489int
17490main ()
17491{
17492return dlopen ();
17493 ;
17494 return 0;
17495}
17496_ACEOF
17497if ac_fn_c_try_link "$LINENO"; then :
17498 ac_cv_lib_svld_dlopen=yes
17499else
17500 ac_cv_lib_svld_dlopen=no
17501fi
17502rm -f core conftest.err conftest.$ac_objext \
17503 conftest$ac_exeext conftest.$ac_ext
17504LIBS=$ac_check_lib_save_LIBS
17505fi
17506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17507$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017508if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017509 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17510else
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17512$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017513if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017514 $as_echo_n "(cached) " >&6
17515else
17516 ac_check_lib_save_LIBS=$LIBS
17517LIBS="-ldld $LIBS"
17518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17519/* end confdefs.h. */
17520
17521/* Override any GCC internal prototype to avoid an error.
17522 Use char because int might match the return type of a GCC
17523 builtin and then its argument prototype would still apply. */
17524#ifdef __cplusplus
17525extern "C"
17526#endif
17527char dld_link ();
17528int
17529main ()
17530{
17531return dld_link ();
17532 ;
17533 return 0;
17534}
17535_ACEOF
17536if ac_fn_c_try_link "$LINENO"; then :
17537 ac_cv_lib_dld_dld_link=yes
17538else
17539 ac_cv_lib_dld_dld_link=no
17540fi
17541rm -f core conftest.err conftest.$ac_objext \
17542 conftest$ac_exeext conftest.$ac_ext
17543LIBS=$ac_check_lib_save_LIBS
17544fi
17545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17546$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017547if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017548 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17549fi
17550
17551
17552fi
17553
17554
17555fi
17556
17557
17558fi
17559
17560
17561fi
17562
17563
17564fi
17565
17566 ;;
17567 esac
17568
17569 if test "x$lt_cv_dlopen" != xno; then
17570 enable_dlopen=yes
17571 else
17572 enable_dlopen=no
17573 fi
17574
17575 case $lt_cv_dlopen in
17576 dlopen)
17577 save_CPPFLAGS="$CPPFLAGS"
17578 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17579
17580 save_LDFLAGS="$LDFLAGS"
17581 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17582
17583 save_LIBS="$LIBS"
17584 LIBS="$lt_cv_dlopen_libs $LIBS"
17585
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17587$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017588if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017589 $as_echo_n "(cached) " >&6
17590else
17591 if test "$cross_compiling" = yes; then :
17592 lt_cv_dlopen_self=cross
17593else
17594 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17595 lt_status=$lt_dlunknown
17596 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017597#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017598#include "confdefs.h"
17599
17600#if HAVE_DLFCN_H
17601#include <dlfcn.h>
17602#endif
17603
17604#include <stdio.h>
17605
17606#ifdef RTLD_GLOBAL
17607# define LT_DLGLOBAL RTLD_GLOBAL
17608#else
17609# ifdef DL_GLOBAL
17610# define LT_DLGLOBAL DL_GLOBAL
17611# else
17612# define LT_DLGLOBAL 0
17613# endif
17614#endif
17615
17616/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17617 find out it does not work in some platform. */
17618#ifndef LT_DLLAZY_OR_NOW
17619# ifdef RTLD_LAZY
17620# define LT_DLLAZY_OR_NOW RTLD_LAZY
17621# else
17622# ifdef DL_LAZY
17623# define LT_DLLAZY_OR_NOW DL_LAZY
17624# else
17625# ifdef RTLD_NOW
17626# define LT_DLLAZY_OR_NOW RTLD_NOW
17627# else
17628# ifdef DL_NOW
17629# define LT_DLLAZY_OR_NOW DL_NOW
17630# else
17631# define LT_DLLAZY_OR_NOW 0
17632# endif
17633# endif
17634# endif
17635# endif
17636#endif
17637
cristy0c60a692010-11-04 01:09:47 +000017638/* When -fvisbility=hidden is used, assume the code has been annotated
17639 correspondingly for the symbols needed. */
17640#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017641int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017642#endif
17643
cristyda16f162011-02-19 23:52:17 +000017644int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017645int main ()
17646{
17647 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17648 int status = $lt_dlunknown;
17649
17650 if (self)
17651 {
17652 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017653 else
17654 {
17655 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17656 else puts (dlerror ());
17657 }
cristy73bd4a52010-10-05 11:24:23 +000017658 /* dlclose (self); */
17659 }
17660 else
17661 puts (dlerror ());
17662
17663 return status;
17664}
17665_LT_EOF
17666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17667 (eval $ac_link) 2>&5
17668 ac_status=$?
17669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17670 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17671 (./conftest; exit; ) >&5 2>/dev/null
17672 lt_status=$?
17673 case x$lt_status in
17674 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17675 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17676 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17677 esac
17678 else :
17679 # compilation failed
17680 lt_cv_dlopen_self=no
17681 fi
17682fi
17683rm -fr conftest*
17684
17685
17686fi
17687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17688$as_echo "$lt_cv_dlopen_self" >&6; }
17689
17690 if test "x$lt_cv_dlopen_self" = xyes; then
17691 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17693$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017694if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017695 $as_echo_n "(cached) " >&6
17696else
17697 if test "$cross_compiling" = yes; then :
17698 lt_cv_dlopen_self_static=cross
17699else
17700 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17701 lt_status=$lt_dlunknown
17702 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017703#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017704#include "confdefs.h"
17705
17706#if HAVE_DLFCN_H
17707#include <dlfcn.h>
17708#endif
17709
17710#include <stdio.h>
17711
17712#ifdef RTLD_GLOBAL
17713# define LT_DLGLOBAL RTLD_GLOBAL
17714#else
17715# ifdef DL_GLOBAL
17716# define LT_DLGLOBAL DL_GLOBAL
17717# else
17718# define LT_DLGLOBAL 0
17719# endif
17720#endif
17721
17722/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17723 find out it does not work in some platform. */
17724#ifndef LT_DLLAZY_OR_NOW
17725# ifdef RTLD_LAZY
17726# define LT_DLLAZY_OR_NOW RTLD_LAZY
17727# else
17728# ifdef DL_LAZY
17729# define LT_DLLAZY_OR_NOW DL_LAZY
17730# else
17731# ifdef RTLD_NOW
17732# define LT_DLLAZY_OR_NOW RTLD_NOW
17733# else
17734# ifdef DL_NOW
17735# define LT_DLLAZY_OR_NOW DL_NOW
17736# else
17737# define LT_DLLAZY_OR_NOW 0
17738# endif
17739# endif
17740# endif
17741# endif
17742#endif
17743
cristy0c60a692010-11-04 01:09:47 +000017744/* When -fvisbility=hidden is used, assume the code has been annotated
17745 correspondingly for the symbols needed. */
17746#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017747int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017748#endif
17749
cristyda16f162011-02-19 23:52:17 +000017750int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017751int main ()
17752{
17753 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17754 int status = $lt_dlunknown;
17755
17756 if (self)
17757 {
17758 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017759 else
17760 {
17761 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17762 else puts (dlerror ());
17763 }
cristy73bd4a52010-10-05 11:24:23 +000017764 /* dlclose (self); */
17765 }
17766 else
17767 puts (dlerror ());
17768
17769 return status;
17770}
17771_LT_EOF
17772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17773 (eval $ac_link) 2>&5
17774 ac_status=$?
17775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17776 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17777 (./conftest; exit; ) >&5 2>/dev/null
17778 lt_status=$?
17779 case x$lt_status in
17780 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17781 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17782 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17783 esac
17784 else :
17785 # compilation failed
17786 lt_cv_dlopen_self_static=no
17787 fi
17788fi
17789rm -fr conftest*
17790
17791
17792fi
17793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17794$as_echo "$lt_cv_dlopen_self_static" >&6; }
17795 fi
17796
17797 CPPFLAGS="$save_CPPFLAGS"
17798 LDFLAGS="$save_LDFLAGS"
17799 LIBS="$save_LIBS"
17800 ;;
17801 esac
17802
17803 case $lt_cv_dlopen_self in
17804 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17805 *) enable_dlopen_self=unknown ;;
17806 esac
17807
17808 case $lt_cv_dlopen_self_static in
17809 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17810 *) enable_dlopen_self_static=unknown ;;
17811 esac
17812fi
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830striplib=
17831old_striplib=
17832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17833$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17834if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17835 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17836 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17838$as_echo "yes" >&6; }
17839else
17840# FIXME - insert some real tests, host_os isn't really good enough
17841 case $host_os in
17842 darwin*)
17843 if test -n "$STRIP" ; then
17844 striplib="$STRIP -x"
17845 old_striplib="$STRIP -S"
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17847$as_echo "yes" >&6; }
17848 else
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17850$as_echo "no" >&6; }
17851 fi
17852 ;;
17853 *)
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17855$as_echo "no" >&6; }
17856 ;;
17857 esac
17858fi
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871 # Report which library types will actually be built
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17873$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17875$as_echo "$can_build_shared" >&6; }
17876
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17878$as_echo_n "checking whether to build shared libraries... " >&6; }
17879 test "$can_build_shared" = "no" && enable_shared=no
17880
17881 # On AIX, shared libraries and static libraries use the same namespace, and
17882 # are all built from PIC.
17883 case $host_os in
17884 aix3*)
17885 test "$enable_shared" = yes && enable_static=no
17886 if test -n "$RANLIB"; then
17887 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17888 postinstall_cmds='$RANLIB $lib'
17889 fi
17890 ;;
17891
17892 aix[4-9]*)
17893 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17894 test "$enable_shared" = yes && enable_static=no
17895 fi
17896 ;;
17897 esac
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17899$as_echo "$enable_shared" >&6; }
17900
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17902$as_echo_n "checking whether to build static libraries... " >&6; }
17903 # Make sure either enable_shared or enable_static is yes.
17904 test "$enable_shared" = yes || enable_static=yes
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17906$as_echo "$enable_static" >&6; }
17907
17908
17909
17910
17911fi
17912ac_ext=c
17913ac_cpp='$CPP $CPPFLAGS'
17914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17916ac_compiler_gnu=$ac_cv_c_compiler_gnu
17917
17918CC="$lt_save_CC"
17919
cristy0c60a692010-11-04 01:09:47 +000017920 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17921 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17922 (test "X$CXX" != "Xg++"))) ; then
17923 ac_ext=cpp
17924ac_cpp='$CXXCPP $CPPFLAGS'
17925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17929$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17930if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017931 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017932 $as_echo_n "(cached) " >&6
17933else
17934 # Double quotes because CXXCPP needs to be expanded
17935 for CXXCPP in "$CXX -E" "/lib/cpp"
17936 do
17937 ac_preproc_ok=false
17938for ac_cxx_preproc_warn_flag in '' yes
17939do
17940 # Use a header file that comes with gcc, so configuring glibc
17941 # with a fresh cross-compiler works.
17942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17943 # <limits.h> exists even on freestanding compilers.
17944 # On the NeXT, cc -E runs the code through the compiler's parser,
17945 # not just through cpp. "Syntax error" is here to catch this case.
17946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17947/* end confdefs.h. */
17948#ifdef __STDC__
17949# include <limits.h>
17950#else
17951# include <assert.h>
17952#endif
17953 Syntax error
17954_ACEOF
17955if ac_fn_cxx_try_cpp "$LINENO"; then :
17956
17957else
17958 # Broken: fails on valid input.
17959continue
17960fi
cristyda16f162011-02-19 23:52:17 +000017961rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017962
17963 # OK, works on sane cases. Now check whether nonexistent headers
17964 # can be detected and how.
17965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17966/* end confdefs.h. */
17967#include <ac_nonexistent.h>
17968_ACEOF
17969if ac_fn_cxx_try_cpp "$LINENO"; then :
17970 # Broken: success on invalid input.
17971continue
17972else
17973 # Passes both tests.
17974ac_preproc_ok=:
17975break
17976fi
cristyda16f162011-02-19 23:52:17 +000017977rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017978
17979done
17980# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017981rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017982if $ac_preproc_ok; then :
17983 break
17984fi
17985
17986 done
17987 ac_cv_prog_CXXCPP=$CXXCPP
17988
17989fi
17990 CXXCPP=$ac_cv_prog_CXXCPP
17991else
17992 ac_cv_prog_CXXCPP=$CXXCPP
17993fi
17994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17995$as_echo "$CXXCPP" >&6; }
17996ac_preproc_ok=false
17997for ac_cxx_preproc_warn_flag in '' yes
17998do
17999 # Use a header file that comes with gcc, so configuring glibc
18000 # with a fresh cross-compiler works.
18001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18002 # <limits.h> exists even on freestanding compilers.
18003 # On the NeXT, cc -E runs the code through the compiler's parser,
18004 # not just through cpp. "Syntax error" is here to catch this case.
18005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18006/* end confdefs.h. */
18007#ifdef __STDC__
18008# include <limits.h>
18009#else
18010# include <assert.h>
18011#endif
18012 Syntax error
18013_ACEOF
18014if ac_fn_cxx_try_cpp "$LINENO"; then :
18015
18016else
18017 # Broken: fails on valid input.
18018continue
18019fi
cristyda16f162011-02-19 23:52:17 +000018020rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018021
18022 # OK, works on sane cases. Now check whether nonexistent headers
18023 # can be detected and how.
18024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18025/* end confdefs.h. */
18026#include <ac_nonexistent.h>
18027_ACEOF
18028if ac_fn_cxx_try_cpp "$LINENO"; then :
18029 # Broken: success on invalid input.
18030continue
18031else
18032 # Passes both tests.
18033ac_preproc_ok=:
18034break
18035fi
cristyda16f162011-02-19 23:52:17 +000018036rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018037
18038done
18039# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018040rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018041if $ac_preproc_ok; then :
18042
18043else
18044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18046as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18047See \`config.log' for more details" "$LINENO" 5; }
18048fi
18049
18050ac_ext=c
18051ac_cpp='$CPP $CPPFLAGS'
18052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18054ac_compiler_gnu=$ac_cv_c_compiler_gnu
18055
18056else
18057 _lt_caught_CXX_error=yes
18058fi
cristy73bd4a52010-10-05 11:24:23 +000018059
18060ac_ext=cpp
18061ac_cpp='$CXXCPP $CPPFLAGS'
18062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18065
18066archive_cmds_need_lc_CXX=no
18067allow_undefined_flag_CXX=
18068always_export_symbols_CXX=no
18069archive_expsym_cmds_CXX=
18070compiler_needs_object_CXX=no
18071export_dynamic_flag_spec_CXX=
18072hardcode_direct_CXX=no
18073hardcode_direct_absolute_CXX=no
18074hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018075hardcode_libdir_separator_CXX=
18076hardcode_minus_L_CXX=no
18077hardcode_shlibpath_var_CXX=unsupported
18078hardcode_automatic_CXX=no
18079inherit_rpath_CXX=no
18080module_cmds_CXX=
18081module_expsym_cmds_CXX=
18082link_all_deplibs_CXX=unknown
18083old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018084reload_flag_CXX=$reload_flag
18085reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018086no_undefined_flag_CXX=
18087whole_archive_flag_spec_CXX=
18088enable_shared_with_static_runtimes_CXX=no
18089
18090# Source file extension for C++ test sources.
18091ac_ext=cpp
18092
18093# Object file extension for compiled C++ test sources.
18094objext=o
18095objext_CXX=$objext
18096
18097# No sense in running all these tests if we already determined that
18098# the CXX compiler isn't working. Some variables (like enable_shared)
18099# are currently assumed to apply to all compilers on this platform,
18100# and will be corrupted by setting them based on a non-working compiler.
18101if test "$_lt_caught_CXX_error" != yes; then
18102 # Code to be used in simple compile tests
18103 lt_simple_compile_test_code="int some_variable = 0;"
18104
18105 # Code to be used in simple link tests
18106 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18107
18108 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18109
18110
18111
18112
18113
18114
18115# If no C compiler was specified, use CC.
18116LTCC=${LTCC-"$CC"}
18117
18118# If no C compiler flags were specified, use CFLAGS.
18119LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18120
18121# Allow CC to be a program name with arguments.
18122compiler=$CC
18123
18124
18125 # save warnings/boilerplate of simple test code
18126 ac_outfile=conftest.$ac_objext
18127echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18128eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18129_lt_compiler_boilerplate=`cat conftest.err`
18130$RM conftest*
18131
18132 ac_outfile=conftest.$ac_objext
18133echo "$lt_simple_link_test_code" >conftest.$ac_ext
18134eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18135_lt_linker_boilerplate=`cat conftest.err`
18136$RM -r conftest*
18137
18138
18139 # Allow CC to be a program name with arguments.
18140 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018141 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018142 lt_save_LD=$LD
18143 lt_save_GCC=$GCC
18144 GCC=$GXX
18145 lt_save_with_gnu_ld=$with_gnu_ld
18146 lt_save_path_LD=$lt_cv_path_LD
18147 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18148 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18149 else
18150 $as_unset lt_cv_prog_gnu_ld
18151 fi
18152 if test -n "${lt_cv_path_LDCXX+set}"; then
18153 lt_cv_path_LD=$lt_cv_path_LDCXX
18154 else
18155 $as_unset lt_cv_path_LD
18156 fi
18157 test -z "${LDCXX+set}" || LD=$LDCXX
18158 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018159 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018160 compiler=$CC
18161 compiler_CXX=$CC
18162 for cc_temp in $compiler""; do
18163 case $cc_temp in
18164 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18165 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18166 \-*) ;;
18167 *) break;;
18168 esac
18169done
cristy0c60a692010-11-04 01:09:47 +000018170cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018171
18172
18173 if test -n "$compiler"; then
18174 # We don't want -fno-exception when compiling C++ code, so set the
18175 # no_builtin_flag separately
18176 if test "$GXX" = yes; then
18177 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18178 else
18179 lt_prog_compiler_no_builtin_flag_CXX=
18180 fi
18181
18182 if test "$GXX" = yes; then
18183 # Set up default GNU C++ configuration
18184
18185
18186
18187# Check whether --with-gnu-ld was given.
18188if test "${with_gnu_ld+set}" = set; then :
18189 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18190else
18191 with_gnu_ld=no
18192fi
18193
18194ac_prog=ld
18195if test "$GCC" = yes; then
18196 # Check if gcc -print-prog-name=ld gives a path.
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18198$as_echo_n "checking for ld used by $CC... " >&6; }
18199 case $host in
18200 *-*-mingw*)
18201 # gcc leaves a trailing carriage return which upsets mingw
18202 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18203 *)
18204 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18205 esac
18206 case $ac_prog in
18207 # Accept absolute paths.
18208 [\\/]* | ?:[\\/]*)
18209 re_direlt='/[^/][^/]*/\.\./'
18210 # Canonicalize the pathname of ld
18211 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18212 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18213 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18214 done
18215 test -z "$LD" && LD="$ac_prog"
18216 ;;
18217 "")
18218 # If it fails, then pretend we aren't using GCC.
18219 ac_prog=ld
18220 ;;
18221 *)
18222 # If it is relative, then search for the first ld in PATH.
18223 with_gnu_ld=unknown
18224 ;;
18225 esac
18226elif test "$with_gnu_ld" = yes; then
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18228$as_echo_n "checking for GNU ld... " >&6; }
18229else
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18231$as_echo_n "checking for non-GNU ld... " >&6; }
18232fi
cristyda16f162011-02-19 23:52:17 +000018233if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018234 $as_echo_n "(cached) " >&6
18235else
18236 if test -z "$LD"; then
18237 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18238 for ac_dir in $PATH; do
18239 IFS="$lt_save_ifs"
18240 test -z "$ac_dir" && ac_dir=.
18241 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18242 lt_cv_path_LD="$ac_dir/$ac_prog"
18243 # Check to see if the program is GNU ld. I'd rather use --version,
18244 # but apparently some variants of GNU ld only accept -v.
18245 # Break only if it was the GNU/non-GNU ld that we prefer.
18246 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18247 *GNU* | *'with BFD'*)
18248 test "$with_gnu_ld" != no && break
18249 ;;
18250 *)
18251 test "$with_gnu_ld" != yes && break
18252 ;;
18253 esac
18254 fi
18255 done
18256 IFS="$lt_save_ifs"
18257else
18258 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18259fi
18260fi
18261
18262LD="$lt_cv_path_LD"
18263if test -n "$LD"; then
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18265$as_echo "$LD" >&6; }
18266else
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18268$as_echo "no" >&6; }
18269fi
cristy98dddb52010-11-04 00:30:15 +000018270test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18272$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018273if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018274 $as_echo_n "(cached) " >&6
18275else
18276 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18277case `$LD -v 2>&1 </dev/null` in
18278*GNU* | *'with BFD'*)
18279 lt_cv_prog_gnu_ld=yes
18280 ;;
18281*)
18282 lt_cv_prog_gnu_ld=no
18283 ;;
18284esac
18285fi
18286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18287$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18288with_gnu_ld=$lt_cv_prog_gnu_ld
18289
18290
18291
18292
18293
18294
18295
18296 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18297 # archiving commands below assume that GNU ld is being used.
18298 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018299 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18300 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 +000018301
18302 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18303 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18304
18305 # If archive_cmds runs LD, not CC, wlarc should be empty
18306 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18307 # investigate it a little bit more. (MM)
18308 wlarc='${wl}'
18309
18310 # ancient GNU ld didn't support --whole-archive et. al.
18311 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18312 $GREP 'no-whole-archive' > /dev/null; then
18313 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18314 else
18315 whole_archive_flag_spec_CXX=
18316 fi
18317 else
18318 with_gnu_ld=no
18319 wlarc=
18320
18321 # A generic and very simple default shared library creation
18322 # command for GNU C++ for the case where it uses the native
18323 # linker, instead of GNU ld. If possible, this setting should
18324 # overridden to take advantage of the native linker features on
18325 # the platform it is being used on.
18326 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18327 fi
18328
18329 # Commands to make compiler produce verbose output that lists
18330 # what "hidden" libraries, object files and flags are used when
18331 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018332 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018333
18334 else
18335 GXX=no
18336 with_gnu_ld=no
18337 wlarc=
18338 fi
18339
18340 # PORTME: fill in a description of your system's C++ link characteristics
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18342$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18343 ld_shlibs_CXX=yes
18344 case $host_os in
18345 aix3*)
18346 # FIXME: insert proper C++ library support
18347 ld_shlibs_CXX=no
18348 ;;
18349 aix[4-9]*)
18350 if test "$host_cpu" = ia64; then
18351 # On IA64, the linker does run time linking by default, so we don't
18352 # have to do anything special.
18353 aix_use_runtimelinking=no
18354 exp_sym_flag='-Bexport'
18355 no_entry_flag=""
18356 else
18357 aix_use_runtimelinking=no
18358
18359 # Test if we are trying to use run time linking or normal
18360 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18361 # need to do runtime linking.
18362 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18363 for ld_flag in $LDFLAGS; do
18364 case $ld_flag in
18365 *-brtl*)
18366 aix_use_runtimelinking=yes
18367 break
18368 ;;
18369 esac
18370 done
18371 ;;
18372 esac
18373
18374 exp_sym_flag='-bexport'
18375 no_entry_flag='-bnoentry'
18376 fi
18377
18378 # When large executables or shared objects are built, AIX ld can
18379 # have problems creating the table of contents. If linking a library
18380 # or program results in "error TOC overflow" add -mminimal-toc to
18381 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18382 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18383
18384 archive_cmds_CXX=''
18385 hardcode_direct_CXX=yes
18386 hardcode_direct_absolute_CXX=yes
18387 hardcode_libdir_separator_CXX=':'
18388 link_all_deplibs_CXX=yes
18389 file_list_spec_CXX='${wl}-f,'
18390
18391 if test "$GXX" = yes; then
18392 case $host_os in aix4.[012]|aix4.[012].*)
18393 # We only want to do this on AIX 4.2 and lower, the check
18394 # below for broken collect2 doesn't work under 4.3+
18395 collect2name=`${CC} -print-prog-name=collect2`
18396 if test -f "$collect2name" &&
18397 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18398 then
18399 # We have reworked collect2
18400 :
18401 else
18402 # We have old collect2
18403 hardcode_direct_CXX=unsupported
18404 # It fails to find uninstalled libraries when the uninstalled
18405 # path is not listed in the libpath. Setting hardcode_minus_L
18406 # to unsupported forces relinking
18407 hardcode_minus_L_CXX=yes
18408 hardcode_libdir_flag_spec_CXX='-L$libdir'
18409 hardcode_libdir_separator_CXX=
18410 fi
18411 esac
18412 shared_flag='-shared'
18413 if test "$aix_use_runtimelinking" = yes; then
18414 shared_flag="$shared_flag "'${wl}-G'
18415 fi
18416 else
18417 # not using gcc
18418 if test "$host_cpu" = ia64; then
18419 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18420 # chokes on -Wl,-G. The following line is correct:
18421 shared_flag='-G'
18422 else
18423 if test "$aix_use_runtimelinking" = yes; then
18424 shared_flag='${wl}-G'
18425 else
18426 shared_flag='${wl}-bM:SRE'
18427 fi
18428 fi
18429 fi
18430
18431 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18432 # It seems that -bexpall does not export symbols beginning with
18433 # underscore (_), so it is better to generate a list of symbols to
18434 # export.
18435 always_export_symbols_CXX=yes
18436 if test "$aix_use_runtimelinking" = yes; then
18437 # Warning - without using the other runtime loading flags (-brtl),
18438 # -berok will link without error, but may produce a broken library.
18439 allow_undefined_flag_CXX='-berok'
18440 # Determine the default libpath from the value encoded in an empty
18441 # executable.
cristyda16f162011-02-19 23:52:17 +000018442 if test "${lt_cv_aix_libpath+set}" = set; then
18443 aix_libpath=$lt_cv_aix_libpath
18444else
18445 if ${lt_cv_aix_libpath__CXX+:} false; then :
18446 $as_echo_n "(cached) " >&6
18447else
18448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018449/* end confdefs.h. */
18450
18451int
18452main ()
18453{
18454
18455 ;
18456 return 0;
18457}
18458_ACEOF
18459if ac_fn_cxx_try_link "$LINENO"; then :
18460
cristyda16f162011-02-19 23:52:17 +000018461 lt_aix_libpath_sed='
18462 /Import File Strings/,/^$/ {
18463 /^0/ {
18464 s/^0 *\([^ ]*\) *$/\1/
18465 p
18466 }
18467 }'
18468 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18469 # Check for a 64-bit object if we didn't find anything.
18470 if test -z "$lt_cv_aix_libpath__CXX"; then
18471 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18472 fi
cristy73bd4a52010-10-05 11:24:23 +000018473fi
18474rm -f core conftest.err conftest.$ac_objext \
18475 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018476 if test -z "$lt_cv_aix_libpath__CXX"; then
18477 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18478 fi
18479
18480fi
18481
18482 aix_libpath=$lt_cv_aix_libpath__CXX
18483fi
cristy73bd4a52010-10-05 11:24:23 +000018484
18485 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18486
cristy0c60a692010-11-04 01:09:47 +000018487 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 +000018488 else
18489 if test "$host_cpu" = ia64; then
18490 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18491 allow_undefined_flag_CXX="-z nodefs"
18492 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"
18493 else
18494 # Determine the default libpath from the value encoded in an
18495 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018496 if test "${lt_cv_aix_libpath+set}" = set; then
18497 aix_libpath=$lt_cv_aix_libpath
18498else
18499 if ${lt_cv_aix_libpath__CXX+:} false; then :
18500 $as_echo_n "(cached) " >&6
18501else
18502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018503/* end confdefs.h. */
18504
18505int
18506main ()
18507{
18508
18509 ;
18510 return 0;
18511}
18512_ACEOF
18513if ac_fn_cxx_try_link "$LINENO"; then :
18514
cristyda16f162011-02-19 23:52:17 +000018515 lt_aix_libpath_sed='
18516 /Import File Strings/,/^$/ {
18517 /^0/ {
18518 s/^0 *\([^ ]*\) *$/\1/
18519 p
18520 }
18521 }'
18522 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18523 # Check for a 64-bit object if we didn't find anything.
18524 if test -z "$lt_cv_aix_libpath__CXX"; then
18525 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18526 fi
cristy73bd4a52010-10-05 11:24:23 +000018527fi
18528rm -f core conftest.err conftest.$ac_objext \
18529 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018530 if test -z "$lt_cv_aix_libpath__CXX"; then
18531 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18532 fi
18533
18534fi
18535
18536 aix_libpath=$lt_cv_aix_libpath__CXX
18537fi
cristy73bd4a52010-10-05 11:24:23 +000018538
18539 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18540 # Warning - without using the other run time loading flags,
18541 # -berok will link without error, but may produce a broken library.
18542 no_undefined_flag_CXX=' ${wl}-bernotok'
18543 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018544 if test "$with_gnu_ld" = yes; then
18545 # We only use this code for GNU lds that support --whole-archive.
18546 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18547 else
18548 # Exported symbols can be pulled into shared objects from archives
18549 whole_archive_flag_spec_CXX='$convenience'
18550 fi
cristy73bd4a52010-10-05 11:24:23 +000018551 archive_cmds_need_lc_CXX=yes
18552 # This is similar to how AIX traditionally builds its shared
18553 # libraries.
18554 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'
18555 fi
18556 fi
18557 ;;
18558
18559 beos*)
18560 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18561 allow_undefined_flag_CXX=unsupported
18562 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18563 # support --undefined. This deserves some investigation. FIXME
18564 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18565 else
18566 ld_shlibs_CXX=no
18567 fi
18568 ;;
18569
18570 chorus*)
18571 case $cc_basename in
18572 *)
18573 # FIXME: insert proper C++ library support
18574 ld_shlibs_CXX=no
18575 ;;
18576 esac
18577 ;;
18578
18579 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018580 case $GXX,$cc_basename in
18581 ,cl* | no,cl*)
18582 # Native MSVC
18583 # hardcode_libdir_flag_spec is actually meaningless, as there is
18584 # no search path for DLLs.
18585 hardcode_libdir_flag_spec_CXX=' '
18586 allow_undefined_flag_CXX=unsupported
18587 always_export_symbols_CXX=yes
18588 file_list_spec_CXX='@'
18589 # Tell ltmain to make .lib files, not .a files.
18590 libext=lib
18591 # Tell ltmain to make .dll files, not .so files.
18592 shrext_cmds=".dll"
18593 # FIXME: Setting linknames here is a bad hack.
18594 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18595 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18596 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18597 else
18598 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18599 fi~
18600 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18601 linknames='
18602 # The linker will not automatically build a static lib if we build a DLL.
18603 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18604 enable_shared_with_static_runtimes_CXX=yes
18605 # Don't use ranlib
18606 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18607 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18608 lt_tool_outputfile="@TOOL_OUTPUT@"~
18609 case $lt_outputfile in
18610 *.exe|*.EXE) ;;
18611 *)
18612 lt_outputfile="$lt_outputfile.exe"
18613 lt_tool_outputfile="$lt_tool_outputfile.exe"
18614 ;;
18615 esac~
18616 func_to_tool_file "$lt_outputfile"~
18617 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18618 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18619 $RM "$lt_outputfile.manifest";
18620 fi'
18621 ;;
18622 *)
18623 # g++
18624 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18625 # as there is no search path for DLLs.
18626 hardcode_libdir_flag_spec_CXX='-L$libdir'
18627 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18628 allow_undefined_flag_CXX=unsupported
18629 always_export_symbols_CXX=no
18630 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018631
cristyda16f162011-02-19 23:52:17 +000018632 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18633 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'
18634 # If the export-symbols file already is a .def file (1st line
18635 # is EXPORTS), use it as is; otherwise, prepend...
18636 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18637 cp $export_symbols $output_objdir/$soname.def;
18638 else
18639 echo EXPORTS > $output_objdir/$soname.def;
18640 cat $export_symbols >> $output_objdir/$soname.def;
18641 fi~
18642 $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'
18643 else
18644 ld_shlibs_CXX=no
18645 fi
18646 ;;
18647 esac
18648 ;;
cristy73bd4a52010-10-05 11:24:23 +000018649 darwin* | rhapsody*)
18650
18651
18652 archive_cmds_need_lc_CXX=no
18653 hardcode_direct_CXX=no
18654 hardcode_automatic_CXX=yes
18655 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018656 if test "$lt_cv_ld_force_load" = "yes"; then
18657 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 +000018658
cristy0c60a692010-11-04 01:09:47 +000018659 else
18660 whole_archive_flag_spec_CXX=''
18661 fi
cristy73bd4a52010-10-05 11:24:23 +000018662 link_all_deplibs_CXX=yes
18663 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18664 case $cc_basename in
18665 ifort*) _lt_dar_can_shared=yes ;;
18666 *) _lt_dar_can_shared=$GCC ;;
18667 esac
18668 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018669 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018670 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}"
18671 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18672 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}"
18673 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}"
18674 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18675 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}"
18676 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}"
18677 fi
18678
18679 else
18680 ld_shlibs_CXX=no
18681 fi
18682
18683 ;;
18684
18685 dgux*)
18686 case $cc_basename in
18687 ec++*)
18688 # FIXME: insert proper C++ library support
18689 ld_shlibs_CXX=no
18690 ;;
18691 ghcx*)
18692 # Green Hills C++ Compiler
18693 # FIXME: insert proper C++ library support
18694 ld_shlibs_CXX=no
18695 ;;
18696 *)
18697 # FIXME: insert proper C++ library support
18698 ld_shlibs_CXX=no
18699 ;;
18700 esac
18701 ;;
18702
cristy99bd5232011-12-07 14:38:20 +000018703 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018704 # C++ shared libraries reported to be fairly broken before
18705 # switch to ELF
18706 ld_shlibs_CXX=no
18707 ;;
18708
18709 freebsd-elf*)
18710 archive_cmds_need_lc_CXX=no
18711 ;;
18712
18713 freebsd* | dragonfly*)
18714 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18715 # conventions
18716 ld_shlibs_CXX=yes
18717 ;;
18718
18719 gnu*)
18720 ;;
18721
cristy0c60a692010-11-04 01:09:47 +000018722 haiku*)
18723 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18724 link_all_deplibs_CXX=yes
18725 ;;
18726
cristy73bd4a52010-10-05 11:24:23 +000018727 hpux9*)
18728 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18729 hardcode_libdir_separator_CXX=:
18730 export_dynamic_flag_spec_CXX='${wl}-E'
18731 hardcode_direct_CXX=yes
18732 hardcode_minus_L_CXX=yes # Not in the search PATH,
18733 # but as the default
18734 # location of the library.
18735
18736 case $cc_basename in
18737 CC*)
18738 # FIXME: insert proper C++ library support
18739 ld_shlibs_CXX=no
18740 ;;
18741 aCC*)
18742 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'
18743 # Commands to make compiler produce verbose output that lists
18744 # what "hidden" libraries, object files and flags are used when
18745 # linking a shared library.
18746 #
18747 # There doesn't appear to be a way to prevent this compiler from
18748 # explicitly linking system object files so we need to strip them
18749 # from the output so that they don't get included in the library
18750 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018751 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 +000018752 ;;
18753 *)
18754 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018755 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 +000018756 else
18757 # FIXME: insert proper C++ library support
18758 ld_shlibs_CXX=no
18759 fi
18760 ;;
18761 esac
18762 ;;
18763
18764 hpux10*|hpux11*)
18765 if test $with_gnu_ld = no; then
18766 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18767 hardcode_libdir_separator_CXX=:
18768
18769 case $host_cpu in
18770 hppa*64*|ia64*)
18771 ;;
18772 *)
18773 export_dynamic_flag_spec_CXX='${wl}-E'
18774 ;;
18775 esac
18776 fi
18777 case $host_cpu in
18778 hppa*64*|ia64*)
18779 hardcode_direct_CXX=no
18780 hardcode_shlibpath_var_CXX=no
18781 ;;
18782 *)
18783 hardcode_direct_CXX=yes
18784 hardcode_direct_absolute_CXX=yes
18785 hardcode_minus_L_CXX=yes # Not in the search PATH,
18786 # but as the default
18787 # location of the library.
18788 ;;
18789 esac
18790
18791 case $cc_basename in
18792 CC*)
18793 # FIXME: insert proper C++ library support
18794 ld_shlibs_CXX=no
18795 ;;
18796 aCC*)
18797 case $host_cpu in
18798 hppa*64*)
18799 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18800 ;;
18801 ia64*)
18802 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18803 ;;
18804 *)
18805 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18806 ;;
18807 esac
18808 # Commands to make compiler produce verbose output that lists
18809 # what "hidden" libraries, object files and flags are used when
18810 # linking a shared library.
18811 #
18812 # There doesn't appear to be a way to prevent this compiler from
18813 # explicitly linking system object files so we need to strip them
18814 # from the output so that they don't get included in the library
18815 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018816 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 +000018817 ;;
18818 *)
18819 if test "$GXX" = yes; then
18820 if test $with_gnu_ld = no; then
18821 case $host_cpu in
18822 hppa*64*)
18823 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18824 ;;
18825 ia64*)
cristyda16f162011-02-19 23:52:17 +000018826 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 +000018827 ;;
18828 *)
cristyda16f162011-02-19 23:52:17 +000018829 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 +000018830 ;;
18831 esac
18832 fi
18833 else
18834 # FIXME: insert proper C++ library support
18835 ld_shlibs_CXX=no
18836 fi
18837 ;;
18838 esac
18839 ;;
18840
18841 interix[3-9]*)
18842 hardcode_direct_CXX=no
18843 hardcode_shlibpath_var_CXX=no
18844 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18845 export_dynamic_flag_spec_CXX='${wl}-E'
18846 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18847 # Instead, shared libraries are loaded at an image base (0x10000000 by
18848 # default) and relocated if they conflict, which is a slow very memory
18849 # consuming and fragmenting process. To avoid this, we pick a random,
18850 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18851 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18852 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'
18853 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'
18854 ;;
18855 irix5* | irix6*)
18856 case $cc_basename in
18857 CC*)
18858 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018859 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 +000018860
18861 # Archives containing C++ object files must be created using
18862 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18863 # necessary to make sure instantiated templates are included
18864 # in the archive.
18865 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18866 ;;
18867 *)
18868 if test "$GXX" = yes; then
18869 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018870 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 +000018871 else
cristyda16f162011-02-19 23:52:17 +000018872 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 +000018873 fi
18874 fi
18875 link_all_deplibs_CXX=yes
18876 ;;
18877 esac
18878 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18879 hardcode_libdir_separator_CXX=:
18880 inherit_rpath_CXX=yes
18881 ;;
18882
cristy0c60a692010-11-04 01:09:47 +000018883 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018884 case $cc_basename in
18885 KCC*)
18886 # Kuck and Associates, Inc. (KAI) C++ Compiler
18887
18888 # KCC will only create a shared library if the output file
18889 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18890 # to its proper name (with version) after linking.
18891 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'
18892 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'
18893 # Commands to make compiler produce verbose output that lists
18894 # what "hidden" libraries, object files and flags are used when
18895 # linking a shared library.
18896 #
18897 # There doesn't appear to be a way to prevent this compiler from
18898 # explicitly linking system object files so we need to strip them
18899 # from the output so that they don't get included in the library
18900 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018901 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 +000018902
18903 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18904 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18905
18906 # Archives containing C++ object files must be created using
18907 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18908 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18909 ;;
18910 icpc* | ecpc* )
18911 # Intel C++
18912 with_gnu_ld=yes
18913 # version 8.0 and above of icpc choke on multiply defined symbols
18914 # if we add $predep_objects and $postdep_objects, however 7.1 and
18915 # earlier do not add the objects themselves.
18916 case `$CC -V 2>&1` in
18917 *"Version 7."*)
18918 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18919 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'
18920 ;;
18921 *) # Version 8.0 or newer
18922 tmp_idyn=
18923 case $host_cpu in
18924 ia64*) tmp_idyn=' -i_dynamic';;
18925 esac
18926 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18927 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'
18928 ;;
18929 esac
18930 archive_cmds_need_lc_CXX=no
18931 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18932 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18933 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18934 ;;
18935 pgCC* | pgcpp*)
18936 # Portland Group C++ compiler
18937 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018938 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018939 prelink_cmds_CXX='tpldir=Template.dir~
18940 rm -rf $tpldir~
18941 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018942 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018943 old_archive_cmds_CXX='tpldir=Template.dir~
18944 rm -rf $tpldir~
18945 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018946 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018947 $RANLIB $oldlib'
18948 archive_cmds_CXX='tpldir=Template.dir~
18949 rm -rf $tpldir~
18950 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018951 $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 +000018952 archive_expsym_cmds_CXX='tpldir=Template.dir~
18953 rm -rf $tpldir~
18954 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018955 $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 +000018956 ;;
cristy0c60a692010-11-04 01:09:47 +000018957 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018958 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18959 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'
18960 ;;
18961 esac
18962
18963 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18964 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018965 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 +000018966 ;;
18967 cxx*)
18968 # Compaq C++
18969 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18970 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'
18971
18972 runpath_var=LD_RUN_PATH
18973 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18974 hardcode_libdir_separator_CXX=:
18975
18976 # Commands to make compiler produce verbose output that lists
18977 # what "hidden" libraries, object files and flags are used when
18978 # linking a shared library.
18979 #
18980 # There doesn't appear to be a way to prevent this compiler from
18981 # explicitly linking system object files so we need to strip them
18982 # from the output so that they don't get included in the library
18983 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018984 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 +000018985 ;;
cristy0c60a692010-11-04 01:09:47 +000018986 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018987 # IBM XL 8.0 on PPC, with GNU ld
18988 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18989 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18990 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18991 if test "x$supports_anon_versioning" = xyes; then
18992 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18993 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18994 echo "local: *; };" >> $output_objdir/$libname.ver~
18995 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18996 fi
18997 ;;
18998 *)
18999 case `$CC -V 2>&1 | sed 5q` in
19000 *Sun\ C*)
19001 # Sun C++ 5.9
19002 no_undefined_flag_CXX=' -zdefs'
19003 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19004 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'
19005 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019006 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 +000019007 compiler_needs_object_CXX=yes
19008
19009 # Not sure whether something based on
19010 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19011 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019012 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019013
19014 # Archives containing C++ object files must be created using
19015 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19016 # necessary to make sure instantiated templates are included
19017 # in the archive.
19018 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19019 ;;
19020 esac
19021 ;;
19022 esac
19023 ;;
19024
19025 lynxos*)
19026 # FIXME: insert proper C++ library support
19027 ld_shlibs_CXX=no
19028 ;;
19029
19030 m88k*)
19031 # FIXME: insert proper C++ library support
19032 ld_shlibs_CXX=no
19033 ;;
19034
19035 mvs*)
19036 case $cc_basename in
19037 cxx*)
19038 # FIXME: insert proper C++ library support
19039 ld_shlibs_CXX=no
19040 ;;
19041 *)
19042 # FIXME: insert proper C++ library support
19043 ld_shlibs_CXX=no
19044 ;;
19045 esac
19046 ;;
19047
19048 netbsd*)
19049 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19050 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19051 wlarc=
19052 hardcode_libdir_flag_spec_CXX='-R$libdir'
19053 hardcode_direct_CXX=yes
19054 hardcode_shlibpath_var_CXX=no
19055 fi
19056 # Workaround some broken pre-1.5 toolchains
19057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19058 ;;
19059
19060 *nto* | *qnx*)
19061 ld_shlibs_CXX=yes
19062 ;;
19063
19064 openbsd2*)
19065 # C++ shared libraries are fairly broken
19066 ld_shlibs_CXX=no
19067 ;;
19068
19069 openbsd*)
19070 if test -f /usr/libexec/ld.so; then
19071 hardcode_direct_CXX=yes
19072 hardcode_shlibpath_var_CXX=no
19073 hardcode_direct_absolute_CXX=yes
19074 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19075 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19076 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19077 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19078 export_dynamic_flag_spec_CXX='${wl}-E'
19079 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19080 fi
cristy0c60a692010-11-04 01:09:47 +000019081 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019082 else
19083 ld_shlibs_CXX=no
19084 fi
19085 ;;
19086
19087 osf3* | osf4* | osf5*)
19088 case $cc_basename in
19089 KCC*)
19090 # Kuck and Associates, Inc. (KAI) C++ Compiler
19091
19092 # KCC will only create a shared library if the output file
19093 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19094 # to its proper name (with version) after linking.
19095 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'
19096
19097 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19098 hardcode_libdir_separator_CXX=:
19099
19100 # Archives containing C++ object files must be created using
19101 # the KAI C++ compiler.
19102 case $host in
19103 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19104 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19105 esac
19106 ;;
19107 RCC*)
19108 # Rational C++ 2.4.1
19109 # FIXME: insert proper C++ library support
19110 ld_shlibs_CXX=no
19111 ;;
19112 cxx*)
19113 case $host in
19114 osf3*)
19115 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019116 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 +000019117 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19118 ;;
19119 *)
19120 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019121 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 +000019122 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19123 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019124 $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 +000019125 $RM $lib.exp'
19126 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19127 ;;
19128 esac
19129
19130 hardcode_libdir_separator_CXX=:
19131
19132 # Commands to make compiler produce verbose output that lists
19133 # what "hidden" libraries, object files and flags are used when
19134 # linking a shared library.
19135 #
19136 # There doesn't appear to be a way to prevent this compiler from
19137 # explicitly linking system object files so we need to strip them
19138 # from the output so that they don't get included in the library
19139 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019140 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 +000019141 ;;
19142 *)
19143 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19144 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19145 case $host in
19146 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019147 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 +000019148 ;;
19149 *)
cristyda16f162011-02-19 23:52:17 +000019150 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 +000019151 ;;
19152 esac
19153
19154 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19155 hardcode_libdir_separator_CXX=:
19156
19157 # Commands to make compiler produce verbose output that lists
19158 # what "hidden" libraries, object files and flags are used when
19159 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019160 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019161
19162 else
19163 # FIXME: insert proper C++ library support
19164 ld_shlibs_CXX=no
19165 fi
19166 ;;
19167 esac
19168 ;;
19169
19170 psos*)
19171 # FIXME: insert proper C++ library support
19172 ld_shlibs_CXX=no
19173 ;;
19174
19175 sunos4*)
19176 case $cc_basename in
19177 CC*)
19178 # Sun C++ 4.x
19179 # FIXME: insert proper C++ library support
19180 ld_shlibs_CXX=no
19181 ;;
19182 lcc*)
19183 # Lucid
19184 # FIXME: insert proper C++ library support
19185 ld_shlibs_CXX=no
19186 ;;
19187 *)
19188 # FIXME: insert proper C++ library support
19189 ld_shlibs_CXX=no
19190 ;;
19191 esac
19192 ;;
19193
19194 solaris*)
19195 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019196 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019197 # Sun C++ 4.2, 5.x and Centerline C++
19198 archive_cmds_need_lc_CXX=yes
19199 no_undefined_flag_CXX=' -zdefs'
19200 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19201 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19202 $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'
19203
19204 hardcode_libdir_flag_spec_CXX='-R$libdir'
19205 hardcode_shlibpath_var_CXX=no
19206 case $host_os in
19207 solaris2.[0-5] | solaris2.[0-5].*) ;;
19208 *)
19209 # The compiler driver will combine and reorder linker options,
19210 # but understands `-z linker_flag'.
19211 # Supported since Solaris 2.6 (maybe 2.5.1?)
19212 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19213 ;;
19214 esac
19215 link_all_deplibs_CXX=yes
19216
cristy0c60a692010-11-04 01:09:47 +000019217 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019218
19219 # Archives containing C++ object files must be created using
19220 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19221 # necessary to make sure instantiated templates are included
19222 # in the archive.
19223 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19224 ;;
19225 gcx*)
19226 # Green Hills C++ Compiler
19227 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19228
19229 # The C++ compiler must be used to create the archive.
19230 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19231 ;;
19232 *)
19233 # GNU C++ compiler with Solaris linker
19234 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19235 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19236 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019237 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 +000019238 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 +000019239 $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 +000019240
19241 # Commands to make compiler produce verbose output that lists
19242 # what "hidden" libraries, object files and flags are used when
19243 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019244 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019245 else
19246 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19247 # platform.
19248 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19249 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19250 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19251
19252 # Commands to make compiler produce verbose output that lists
19253 # what "hidden" libraries, object files and flags are used when
19254 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019255 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019256 fi
19257
19258 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19259 case $host_os in
19260 solaris2.[0-5] | solaris2.[0-5].*) ;;
19261 *)
19262 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19263 ;;
19264 esac
19265 fi
19266 ;;
19267 esac
19268 ;;
19269
19270 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19271 no_undefined_flag_CXX='${wl}-z,text'
19272 archive_cmds_need_lc_CXX=no
19273 hardcode_shlibpath_var_CXX=no
19274 runpath_var='LD_RUN_PATH'
19275
19276 case $cc_basename in
19277 CC*)
19278 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19279 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19280 ;;
19281 *)
19282 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19283 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19284 ;;
19285 esac
19286 ;;
19287
19288 sysv5* | sco3.2v5* | sco5v6*)
19289 # Note: We can NOT use -z defs as we might desire, because we do not
19290 # link with -lc, and that would cause any symbols used from libc to
19291 # always be unresolved, which means just about no library would
19292 # ever link correctly. If we're not using GNU ld we use -z text
19293 # though, which does catch some bad symbols but isn't as heavy-handed
19294 # as -z defs.
19295 no_undefined_flag_CXX='${wl}-z,text'
19296 allow_undefined_flag_CXX='${wl}-z,nodefs'
19297 archive_cmds_need_lc_CXX=no
19298 hardcode_shlibpath_var_CXX=no
19299 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19300 hardcode_libdir_separator_CXX=':'
19301 link_all_deplibs_CXX=yes
19302 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19303 runpath_var='LD_RUN_PATH'
19304
19305 case $cc_basename in
19306 CC*)
19307 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19308 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 +000019309 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19310 '"$old_archive_cmds_CXX"
19311 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19312 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019313 ;;
19314 *)
19315 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19316 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19317 ;;
19318 esac
19319 ;;
19320
19321 tandem*)
19322 case $cc_basename in
19323 NCC*)
19324 # NonStop-UX NCC 3.20
19325 # FIXME: insert proper C++ library support
19326 ld_shlibs_CXX=no
19327 ;;
19328 *)
19329 # FIXME: insert proper C++ library support
19330 ld_shlibs_CXX=no
19331 ;;
19332 esac
19333 ;;
19334
19335 vxworks*)
19336 # FIXME: insert proper C++ library support
19337 ld_shlibs_CXX=no
19338 ;;
19339
19340 *)
19341 # FIXME: insert proper C++ library support
19342 ld_shlibs_CXX=no
19343 ;;
19344 esac
19345
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19347$as_echo "$ld_shlibs_CXX" >&6; }
19348 test "$ld_shlibs_CXX" = no && can_build_shared=no
19349
19350 GCC_CXX="$GXX"
19351 LD_CXX="$LD"
19352
19353 ## CAVEAT EMPTOR:
19354 ## There is no encapsulation within the following macros, do not change
19355 ## the running order or otherwise move them around unless you know exactly
19356 ## what you are doing...
19357 # Dependencies to place before and after the object being linked:
19358predep_objects_CXX=
19359postdep_objects_CXX=
19360predeps_CXX=
19361postdeps_CXX=
19362compiler_lib_search_path_CXX=
19363
19364cat > conftest.$ac_ext <<_LT_EOF
19365class Foo
19366{
19367public:
19368 Foo (void) { a = 0; }
19369private:
19370 int a;
19371};
19372_LT_EOF
19373
cristyda16f162011-02-19 23:52:17 +000019374
19375_lt_libdeps_save_CFLAGS=$CFLAGS
19376case "$CC $CFLAGS " in #(
19377*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19378*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019379*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019380esac
19381
cristy73bd4a52010-10-05 11:24:23 +000019382if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19383 (eval $ac_compile) 2>&5
19384 ac_status=$?
19385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19386 test $ac_status = 0; }; then
19387 # Parse the compiler output and extract the necessary
19388 # objects, libraries and library flags.
19389
19390 # Sentinel used to keep track of whether or not we are before
19391 # the conftest object file.
19392 pre_test_object_deps_done=no
19393
19394 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019395 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019396
19397 -L* | -R* | -l*)
19398 # Some compilers place space between "-{L,R}" and the path.
19399 # Remove the space.
19400 if test $p = "-L" ||
19401 test $p = "-R"; then
19402 prev=$p
19403 continue
cristy73bd4a52010-10-05 11:24:23 +000019404 fi
19405
cristyda16f162011-02-19 23:52:17 +000019406 # Expand the sysroot to ease extracting the directories later.
19407 if test -z "$prev"; then
19408 case $p in
19409 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19410 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19411 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19412 esac
19413 fi
19414 case $p in
19415 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19416 esac
cristy73bd4a52010-10-05 11:24:23 +000019417 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019418 case ${prev} in
19419 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019420 # Internal compiler library paths should come after those
19421 # provided the user. The postdeps already come after the
19422 # user supplied libs so there is no need to process them.
19423 if test -z "$compiler_lib_search_path_CXX"; then
19424 compiler_lib_search_path_CXX="${prev}${p}"
19425 else
19426 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19427 fi
19428 ;;
19429 # The "-l" case would never come before the object being
19430 # linked, so don't bother handling this case.
19431 esac
19432 else
19433 if test -z "$postdeps_CXX"; then
19434 postdeps_CXX="${prev}${p}"
19435 else
19436 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19437 fi
19438 fi
cristyda16f162011-02-19 23:52:17 +000019439 prev=
cristy73bd4a52010-10-05 11:24:23 +000019440 ;;
19441
cristyda16f162011-02-19 23:52:17 +000019442 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019443 *.$objext)
19444 # This assumes that the test object file only shows up
19445 # once in the compiler output.
19446 if test "$p" = "conftest.$objext"; then
19447 pre_test_object_deps_done=yes
19448 continue
19449 fi
19450
19451 if test "$pre_test_object_deps_done" = no; then
19452 if test -z "$predep_objects_CXX"; then
19453 predep_objects_CXX="$p"
19454 else
19455 predep_objects_CXX="$predep_objects_CXX $p"
19456 fi
19457 else
19458 if test -z "$postdep_objects_CXX"; then
19459 postdep_objects_CXX="$p"
19460 else
19461 postdep_objects_CXX="$postdep_objects_CXX $p"
19462 fi
19463 fi
19464 ;;
19465
19466 *) ;; # Ignore the rest.
19467
19468 esac
19469 done
19470
19471 # Clean up.
19472 rm -f a.out a.exe
19473else
19474 echo "libtool.m4: error: problem compiling CXX test program"
19475fi
19476
19477$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019478CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019479
19480# PORTME: override above test on systems where it is broken
19481case $host_os in
19482interix[3-9]*)
19483 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19484 # hack all around it, let's just trust "g++" to DTRT.
19485 predep_objects_CXX=
19486 postdep_objects_CXX=
19487 postdeps_CXX=
19488 ;;
19489
19490linux*)
19491 case `$CC -V 2>&1 | sed 5q` in
19492 *Sun\ C*)
19493 # Sun C++ 5.9
19494
19495 # The more standards-conforming stlport4 library is
19496 # incompatible with the Cstd library. Avoid specifying
19497 # it if it's in CXXFLAGS. Ignore libCrun as
19498 # -library=stlport4 depends on it.
19499 case " $CXX $CXXFLAGS " in
19500 *" -library=stlport4 "*)
19501 solaris_use_stlport4=yes
19502 ;;
19503 esac
19504
19505 if test "$solaris_use_stlport4" != yes; then
19506 postdeps_CXX='-library=Cstd -library=Crun'
19507 fi
19508 ;;
19509 esac
19510 ;;
19511
19512solaris*)
19513 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019514 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019515 # The more standards-conforming stlport4 library is
19516 # incompatible with the Cstd library. Avoid specifying
19517 # it if it's in CXXFLAGS. Ignore libCrun as
19518 # -library=stlport4 depends on it.
19519 case " $CXX $CXXFLAGS " in
19520 *" -library=stlport4 "*)
19521 solaris_use_stlport4=yes
19522 ;;
19523 esac
19524
19525 # Adding this requires a known-good setup of shared libraries for
19526 # Sun compiler versions before 5.6, else PIC objects from an old
19527 # archive will be linked into the output, leading to subtle bugs.
19528 if test "$solaris_use_stlport4" != yes; then
19529 postdeps_CXX='-library=Cstd -library=Crun'
19530 fi
19531 ;;
19532 esac
19533 ;;
19534esac
19535
19536
19537case " $postdeps_CXX " in
19538*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19539esac
19540 compiler_lib_search_dirs_CXX=
19541if test -n "${compiler_lib_search_path_CXX}"; then
19542 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19543fi
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575 lt_prog_compiler_wl_CXX=
19576lt_prog_compiler_pic_CXX=
19577lt_prog_compiler_static_CXX=
19578
cristy73bd4a52010-10-05 11:24:23 +000019579
19580 # C++ specific cases for pic, static, wl, etc.
19581 if test "$GXX" = yes; then
19582 lt_prog_compiler_wl_CXX='-Wl,'
19583 lt_prog_compiler_static_CXX='-static'
19584
19585 case $host_os in
19586 aix*)
19587 # All AIX code is PIC.
19588 if test "$host_cpu" = ia64; then
19589 # AIX 5 now supports IA64 processor
19590 lt_prog_compiler_static_CXX='-Bstatic'
19591 fi
19592 ;;
19593
19594 amigaos*)
19595 case $host_cpu in
19596 powerpc)
19597 # see comment about AmigaOS4 .so support
19598 lt_prog_compiler_pic_CXX='-fPIC'
19599 ;;
19600 m68k)
19601 # FIXME: we need at least 68020 code to build shared libraries, but
19602 # adding the `-m68020' flag to GCC prevents building anything better,
19603 # like `-m68040'.
19604 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19605 ;;
19606 esac
19607 ;;
19608
19609 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19610 # PIC is the default for these OSes.
19611 ;;
19612 mingw* | cygwin* | os2* | pw32* | cegcc*)
19613 # This hack is so that the source file can tell whether it is being
19614 # built for inclusion in a dll (and should export symbols for example).
19615 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19616 # (--disable-auto-import) libraries
19617 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19618 ;;
19619 darwin* | rhapsody*)
19620 # PIC is the default on this platform
19621 # Common symbols not allowed in MH_DYLIB files
19622 lt_prog_compiler_pic_CXX='-fno-common'
19623 ;;
19624 *djgpp*)
19625 # DJGPP does not support shared libraries at all
19626 lt_prog_compiler_pic_CXX=
19627 ;;
cristy0c60a692010-11-04 01:09:47 +000019628 haiku*)
19629 # PIC is the default for Haiku.
19630 # The "-static" flag exists, but is broken.
19631 lt_prog_compiler_static_CXX=
19632 ;;
cristy73bd4a52010-10-05 11:24:23 +000019633 interix[3-9]*)
19634 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19635 # Instead, we relocate shared libraries at runtime.
19636 ;;
19637 sysv4*MP*)
19638 if test -d /usr/nec; then
19639 lt_prog_compiler_pic_CXX=-Kconform_pic
19640 fi
19641 ;;
19642 hpux*)
19643 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19644 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19645 # sets the default TLS model and affects inlining.
19646 case $host_cpu in
19647 hppa*64*)
19648 ;;
19649 *)
19650 lt_prog_compiler_pic_CXX='-fPIC'
19651 ;;
19652 esac
19653 ;;
19654 *qnx* | *nto*)
19655 # QNX uses GNU C++, but need to define -shared option too, otherwise
19656 # it will coredump.
19657 lt_prog_compiler_pic_CXX='-fPIC -shared'
19658 ;;
19659 *)
19660 lt_prog_compiler_pic_CXX='-fPIC'
19661 ;;
19662 esac
19663 else
19664 case $host_os in
19665 aix[4-9]*)
19666 # All AIX code is PIC.
19667 if test "$host_cpu" = ia64; then
19668 # AIX 5 now supports IA64 processor
19669 lt_prog_compiler_static_CXX='-Bstatic'
19670 else
19671 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19672 fi
19673 ;;
19674 chorus*)
19675 case $cc_basename in
19676 cxch68*)
19677 # Green Hills C++ Compiler
19678 # _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"
19679 ;;
19680 esac
19681 ;;
cristyda16f162011-02-19 23:52:17 +000019682 mingw* | cygwin* | os2* | pw32* | cegcc*)
19683 # This hack is so that the source file can tell whether it is being
19684 # built for inclusion in a dll (and should export symbols for example).
19685 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19686 ;;
cristy73bd4a52010-10-05 11:24:23 +000019687 dgux*)
19688 case $cc_basename in
19689 ec++*)
19690 lt_prog_compiler_pic_CXX='-KPIC'
19691 ;;
19692 ghcx*)
19693 # Green Hills C++ Compiler
19694 lt_prog_compiler_pic_CXX='-pic'
19695 ;;
19696 *)
19697 ;;
19698 esac
19699 ;;
19700 freebsd* | dragonfly*)
19701 # FreeBSD uses GNU C++
19702 ;;
19703 hpux9* | hpux10* | hpux11*)
19704 case $cc_basename in
19705 CC*)
19706 lt_prog_compiler_wl_CXX='-Wl,'
19707 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19708 if test "$host_cpu" != ia64; then
19709 lt_prog_compiler_pic_CXX='+Z'
19710 fi
19711 ;;
19712 aCC*)
19713 lt_prog_compiler_wl_CXX='-Wl,'
19714 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19715 case $host_cpu in
19716 hppa*64*|ia64*)
19717 # +Z the default
19718 ;;
19719 *)
19720 lt_prog_compiler_pic_CXX='+Z'
19721 ;;
19722 esac
19723 ;;
19724 *)
19725 ;;
19726 esac
19727 ;;
19728 interix*)
19729 # This is c89, which is MS Visual C++ (no shared libs)
19730 # Anyone wants to do a port?
19731 ;;
19732 irix5* | irix6* | nonstopux*)
19733 case $cc_basename in
19734 CC*)
19735 lt_prog_compiler_wl_CXX='-Wl,'
19736 lt_prog_compiler_static_CXX='-non_shared'
19737 # CC pic flag -KPIC is the default.
19738 ;;
19739 *)
19740 ;;
19741 esac
19742 ;;
cristy0c60a692010-11-04 01:09:47 +000019743 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019744 case $cc_basename in
19745 KCC*)
19746 # KAI C++ Compiler
19747 lt_prog_compiler_wl_CXX='--backend -Wl,'
19748 lt_prog_compiler_pic_CXX='-fPIC'
19749 ;;
19750 ecpc* )
19751 # old Intel C++ for x86_64 which still supported -KPIC.
19752 lt_prog_compiler_wl_CXX='-Wl,'
19753 lt_prog_compiler_pic_CXX='-KPIC'
19754 lt_prog_compiler_static_CXX='-static'
19755 ;;
19756 icpc* )
19757 # Intel C++, used to be incompatible with GCC.
19758 # ICC 10 doesn't accept -KPIC any more.
19759 lt_prog_compiler_wl_CXX='-Wl,'
19760 lt_prog_compiler_pic_CXX='-fPIC'
19761 lt_prog_compiler_static_CXX='-static'
19762 ;;
19763 pgCC* | pgcpp*)
19764 # Portland Group C++ compiler
19765 lt_prog_compiler_wl_CXX='-Wl,'
19766 lt_prog_compiler_pic_CXX='-fpic'
19767 lt_prog_compiler_static_CXX='-Bstatic'
19768 ;;
19769 cxx*)
19770 # Compaq C++
19771 # Make sure the PIC flag is empty. It appears that all Alpha
19772 # Linux and Compaq Tru64 Unix objects are PIC.
19773 lt_prog_compiler_pic_CXX=
19774 lt_prog_compiler_static_CXX='-non_shared'
19775 ;;
cristy0c60a692010-11-04 01:09:47 +000019776 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19777 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019778 lt_prog_compiler_wl_CXX='-Wl,'
19779 lt_prog_compiler_pic_CXX='-qpic'
19780 lt_prog_compiler_static_CXX='-qstaticlink'
19781 ;;
19782 *)
19783 case `$CC -V 2>&1 | sed 5q` in
19784 *Sun\ C*)
19785 # Sun C++ 5.9
19786 lt_prog_compiler_pic_CXX='-KPIC'
19787 lt_prog_compiler_static_CXX='-Bstatic'
19788 lt_prog_compiler_wl_CXX='-Qoption ld '
19789 ;;
19790 esac
19791 ;;
19792 esac
19793 ;;
19794 lynxos*)
19795 ;;
19796 m88k*)
19797 ;;
19798 mvs*)
19799 case $cc_basename in
19800 cxx*)
19801 lt_prog_compiler_pic_CXX='-W c,exportall'
19802 ;;
19803 *)
19804 ;;
19805 esac
19806 ;;
19807 netbsd*)
19808 ;;
19809 *qnx* | *nto*)
19810 # QNX uses GNU C++, but need to define -shared option too, otherwise
19811 # it will coredump.
19812 lt_prog_compiler_pic_CXX='-fPIC -shared'
19813 ;;
19814 osf3* | osf4* | osf5*)
19815 case $cc_basename in
19816 KCC*)
19817 lt_prog_compiler_wl_CXX='--backend -Wl,'
19818 ;;
19819 RCC*)
19820 # Rational C++ 2.4.1
19821 lt_prog_compiler_pic_CXX='-pic'
19822 ;;
19823 cxx*)
19824 # Digital/Compaq C++
19825 lt_prog_compiler_wl_CXX='-Wl,'
19826 # Make sure the PIC flag is empty. It appears that all Alpha
19827 # Linux and Compaq Tru64 Unix objects are PIC.
19828 lt_prog_compiler_pic_CXX=
19829 lt_prog_compiler_static_CXX='-non_shared'
19830 ;;
19831 *)
19832 ;;
19833 esac
19834 ;;
19835 psos*)
19836 ;;
19837 solaris*)
19838 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019839 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019840 # Sun C++ 4.2, 5.x and Centerline C++
19841 lt_prog_compiler_pic_CXX='-KPIC'
19842 lt_prog_compiler_static_CXX='-Bstatic'
19843 lt_prog_compiler_wl_CXX='-Qoption ld '
19844 ;;
19845 gcx*)
19846 # Green Hills C++ Compiler
19847 lt_prog_compiler_pic_CXX='-PIC'
19848 ;;
19849 *)
19850 ;;
19851 esac
19852 ;;
19853 sunos4*)
19854 case $cc_basename in
19855 CC*)
19856 # Sun C++ 4.x
19857 lt_prog_compiler_pic_CXX='-pic'
19858 lt_prog_compiler_static_CXX='-Bstatic'
19859 ;;
19860 lcc*)
19861 # Lucid
19862 lt_prog_compiler_pic_CXX='-pic'
19863 ;;
19864 *)
19865 ;;
19866 esac
19867 ;;
19868 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19869 case $cc_basename in
19870 CC*)
19871 lt_prog_compiler_wl_CXX='-Wl,'
19872 lt_prog_compiler_pic_CXX='-KPIC'
19873 lt_prog_compiler_static_CXX='-Bstatic'
19874 ;;
19875 esac
19876 ;;
19877 tandem*)
19878 case $cc_basename in
19879 NCC*)
19880 # NonStop-UX NCC 3.20
19881 lt_prog_compiler_pic_CXX='-KPIC'
19882 ;;
19883 *)
19884 ;;
19885 esac
19886 ;;
19887 vxworks*)
19888 ;;
19889 *)
19890 lt_prog_compiler_can_build_shared_CXX=no
19891 ;;
19892 esac
19893 fi
19894
19895case $host_os in
19896 # For platforms which do not support PIC, -DPIC is meaningless:
19897 *djgpp*)
19898 lt_prog_compiler_pic_CXX=
19899 ;;
19900 *)
19901 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19902 ;;
19903esac
cristy73bd4a52010-10-05 11:24:23 +000019904
cristyda16f162011-02-19 23:52:17 +000019905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19906$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19907if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19908 $as_echo_n "(cached) " >&6
19909else
19910 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19911fi
19912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19913$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19914lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019915
19916#
19917# Check to make sure the PIC flag actually works.
19918#
19919if test -n "$lt_prog_compiler_pic_CXX"; then
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19921$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019922if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019923 $as_echo_n "(cached) " >&6
19924else
19925 lt_cv_prog_compiler_pic_works_CXX=no
19926 ac_outfile=conftest.$ac_objext
19927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19928 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19929 # Insert the option either (1) after the last *FLAGS variable, or
19930 # (2) before a word containing "conftest.", or (3) at the end.
19931 # Note that $ac_compile itself does not contain backslashes and begins
19932 # with a dollar sign (not a hyphen), so the echo should work correctly.
19933 # The option is referenced via a variable to avoid confusing sed.
19934 lt_compile=`echo "$ac_compile" | $SED \
19935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19937 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019938 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019939 (eval "$lt_compile" 2>conftest.err)
19940 ac_status=$?
19941 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019943 if (exit $ac_status) && test -s "$ac_outfile"; then
19944 # The compiler can only warn and ignore the option if not recognized
19945 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019946 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19948 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19949 lt_cv_prog_compiler_pic_works_CXX=yes
19950 fi
19951 fi
19952 $RM conftest*
19953
19954fi
19955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19956$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19957
19958if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19959 case $lt_prog_compiler_pic_CXX in
19960 "" | " "*) ;;
19961 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19962 esac
19963else
19964 lt_prog_compiler_pic_CXX=
19965 lt_prog_compiler_can_build_shared_CXX=no
19966fi
19967
19968fi
19969
19970
19971
cristyda16f162011-02-19 23:52:17 +000019972
19973
cristy73bd4a52010-10-05 11:24:23 +000019974#
19975# Check to make sure the static flag actually works.
19976#
19977wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19979$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019980if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019981 $as_echo_n "(cached) " >&6
19982else
19983 lt_cv_prog_compiler_static_works_CXX=no
19984 save_LDFLAGS="$LDFLAGS"
19985 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19986 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19987 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19988 # The linker can only warn and ignore the option if not recognized
19989 # So say no if there are warnings
19990 if test -s conftest.err; then
19991 # Append any errors to the config.log.
19992 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019993 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19995 if diff conftest.exp conftest.er2 >/dev/null; then
19996 lt_cv_prog_compiler_static_works_CXX=yes
19997 fi
19998 else
19999 lt_cv_prog_compiler_static_works_CXX=yes
20000 fi
20001 fi
20002 $RM -r conftest*
20003 LDFLAGS="$save_LDFLAGS"
20004
20005fi
20006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20007$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20008
20009if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20010 :
20011else
20012 lt_prog_compiler_static_CXX=
20013fi
20014
20015
20016
20017
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20019$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020020if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020021 $as_echo_n "(cached) " >&6
20022else
20023 lt_cv_prog_compiler_c_o_CXX=no
20024 $RM -r conftest 2>/dev/null
20025 mkdir conftest
20026 cd conftest
20027 mkdir out
20028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20029
20030 lt_compiler_flag="-o out/conftest2.$ac_objext"
20031 # Insert the option either (1) after the last *FLAGS variable, or
20032 # (2) before a word containing "conftest.", or (3) at the end.
20033 # Note that $ac_compile itself does not contain backslashes and begins
20034 # with a dollar sign (not a hyphen), so the echo should work correctly.
20035 lt_compile=`echo "$ac_compile" | $SED \
20036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20038 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020040 (eval "$lt_compile" 2>out/conftest.err)
20041 ac_status=$?
20042 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020044 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20045 then
20046 # The compiler can only warn and ignore the option if not recognized
20047 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020048 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20051 lt_cv_prog_compiler_c_o_CXX=yes
20052 fi
20053 fi
20054 chmod u+w . 2>&5
20055 $RM conftest*
20056 # SGI C++ compiler will create directory out/ii_files/ for
20057 # template instantiation
20058 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20059 $RM out/* && rmdir out
20060 cd ..
20061 $RM -r conftest
20062 $RM conftest*
20063
20064fi
20065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20066$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20067
20068
20069
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20071$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020072if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020073 $as_echo_n "(cached) " >&6
20074else
20075 lt_cv_prog_compiler_c_o_CXX=no
20076 $RM -r conftest 2>/dev/null
20077 mkdir conftest
20078 cd conftest
20079 mkdir out
20080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20081
20082 lt_compiler_flag="-o out/conftest2.$ac_objext"
20083 # Insert the option either (1) after the last *FLAGS variable, or
20084 # (2) before a word containing "conftest.", or (3) at the end.
20085 # Note that $ac_compile itself does not contain backslashes and begins
20086 # with a dollar sign (not a hyphen), so the echo should work correctly.
20087 lt_compile=`echo "$ac_compile" | $SED \
20088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20090 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020092 (eval "$lt_compile" 2>out/conftest.err)
20093 ac_status=$?
20094 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020096 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20097 then
20098 # The compiler can only warn and ignore the option if not recognized
20099 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020101 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20102 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20103 lt_cv_prog_compiler_c_o_CXX=yes
20104 fi
20105 fi
20106 chmod u+w . 2>&5
20107 $RM conftest*
20108 # SGI C++ compiler will create directory out/ii_files/ for
20109 # template instantiation
20110 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20111 $RM out/* && rmdir out
20112 cd ..
20113 $RM -r conftest
20114 $RM conftest*
20115
20116fi
20117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20118$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20119
20120
20121
20122
20123hard_links="nottested"
20124if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20125 # do not overwrite the value of need_locks provided by the user
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20127$as_echo_n "checking if we can lock with hard links... " >&6; }
20128 hard_links=yes
20129 $RM conftest*
20130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20131 touch conftest.a
20132 ln conftest.a conftest.b 2>&5 || hard_links=no
20133 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20135$as_echo "$hard_links" >&6; }
20136 if test "$hard_links" = no; then
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20138$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20139 need_locks=warn
20140 fi
20141else
20142 need_locks=no
20143fi
20144
20145
20146
20147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20148$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20149
20150 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020151 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020152 case $host_os in
20153 aix[4-9]*)
20154 # If we're using GNU nm, then we don't want the "-C" option.
20155 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020156 # Also, AIX nm treats weak defined symbols like other global defined
20157 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020158 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020159 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 +000020160 else
20161 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'
20162 fi
20163 ;;
20164 pw32*)
20165 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020166 ;;
cristy73bd4a52010-10-05 11:24:23 +000020167 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020168 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020169 cl*)
20170 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20171 ;;
cristyda16f162011-02-19 23:52:17 +000020172 *)
20173 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'
20174 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20175 ;;
20176 esac
20177 ;;
cristy73bd4a52010-10-05 11:24:23 +000020178 *)
20179 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020180 ;;
cristy73bd4a52010-10-05 11:24:23 +000020181 esac
cristy73bd4a52010-10-05 11:24:23 +000020182
20183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20184$as_echo "$ld_shlibs_CXX" >&6; }
20185test "$ld_shlibs_CXX" = no && can_build_shared=no
20186
20187with_gnu_ld_CXX=$with_gnu_ld
20188
20189
20190
20191
20192
20193
20194#
20195# Do we need to explicitly link libc?
20196#
20197case "x$archive_cmds_need_lc_CXX" in
20198x|xyes)
20199 # Assume -lc should be added
20200 archive_cmds_need_lc_CXX=yes
20201
20202 if test "$enable_shared" = yes && test "$GCC" = yes; then
20203 case $archive_cmds_CXX in
20204 *'~'*)
20205 # FIXME: we may have to deal with multi-command sequences.
20206 ;;
20207 '$CC '*)
20208 # Test whether the compiler implicitly links with -lc since on some
20209 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20210 # to ld, don't add -lc before -lgcc.
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20212$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020213if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020214 $as_echo_n "(cached) " >&6
20215else
20216 $RM conftest*
20217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020218
cristy0c60a692010-11-04 01:09:47 +000020219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020220 (eval $ac_compile) 2>&5
20221 ac_status=$?
20222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20223 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020224 soname=conftest
20225 lib=conftest
20226 libobjs=conftest.$ac_objext
20227 deplibs=
20228 wl=$lt_prog_compiler_wl_CXX
20229 pic_flag=$lt_prog_compiler_pic_CXX
20230 compiler_flags=-v
20231 linker_flags=-v
20232 verstring=
20233 output_objdir=.
20234 libname=conftest
20235 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20236 allow_undefined_flag_CXX=
20237 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 +000020238 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20239 ac_status=$?
20240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20241 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020242 then
20243 lt_cv_archive_cmds_need_lc_CXX=no
20244 else
20245 lt_cv_archive_cmds_need_lc_CXX=yes
20246 fi
20247 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20248 else
20249 cat conftest.err 1>&5
20250 fi
20251 $RM conftest*
20252
20253fi
20254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20255$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20256 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020257 ;;
20258 esac
20259 fi
20260 ;;
20261esac
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
cristy73bd4a52010-10-05 11:24:23 +000020324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20325$as_echo_n "checking dynamic linker characteristics... " >&6; }
20326
20327library_names_spec=
20328libname_spec='lib$name'
20329soname_spec=
20330shrext_cmds=".so"
20331postinstall_cmds=
20332postuninstall_cmds=
20333finish_cmds=
20334finish_eval=
20335shlibpath_var=
20336shlibpath_overrides_runpath=unknown
20337version_type=none
20338dynamic_linker="$host_os ld.so"
20339sys_lib_dlsearch_path_spec="/lib /usr/lib"
20340need_lib_prefix=unknown
20341hardcode_into_libs=no
20342
20343# when you set need_version to no, make sure it does not cause -set_version
20344# flags to be left without arguments
20345need_version=unknown
20346
20347case $host_os in
20348aix3*)
cristy99bd5232011-12-07 14:38:20 +000020349 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020350 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20351 shlibpath_var=LIBPATH
20352
20353 # AIX 3 has no versioning support, so we append a major version to the name.
20354 soname_spec='${libname}${release}${shared_ext}$major'
20355 ;;
20356
20357aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020358 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020359 need_lib_prefix=no
20360 need_version=no
20361 hardcode_into_libs=yes
20362 if test "$host_cpu" = ia64; then
20363 # AIX 5 supports IA64
20364 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20365 shlibpath_var=LD_LIBRARY_PATH
20366 else
20367 # With GCC up to 2.95.x, collect2 would create an import file
20368 # for dependence libraries. The import file would start with
20369 # the line `#! .'. This would cause the generated library to
20370 # depend on `.', always an invalid library. This was fixed in
20371 # development snapshots of GCC prior to 3.0.
20372 case $host_os in
20373 aix4 | aix4.[01] | aix4.[01].*)
20374 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20375 echo ' yes '
20376 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20377 :
20378 else
20379 can_build_shared=no
20380 fi
20381 ;;
20382 esac
20383 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20384 # soname into executable. Probably we can add versioning support to
20385 # collect2, so additional links can be useful in future.
20386 if test "$aix_use_runtimelinking" = yes; then
20387 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20388 # instead of lib<name>.a to let people know that these are not
20389 # typical AIX shared libraries.
20390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20391 else
20392 # We preserve .a as extension for shared libraries through AIX4.2
20393 # and later when we are not doing run time linking.
20394 library_names_spec='${libname}${release}.a $libname.a'
20395 soname_spec='${libname}${release}${shared_ext}$major'
20396 fi
20397 shlibpath_var=LIBPATH
20398 fi
20399 ;;
20400
20401amigaos*)
20402 case $host_cpu in
20403 powerpc)
20404 # Since July 2007 AmigaOS4 officially supports .so libraries.
20405 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20407 ;;
20408 m68k)
20409 library_names_spec='$libname.ixlibrary $libname.a'
20410 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020411 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 +000020412 ;;
20413 esac
20414 ;;
20415
20416beos*)
20417 library_names_spec='${libname}${shared_ext}'
20418 dynamic_linker="$host_os ld.so"
20419 shlibpath_var=LIBRARY_PATH
20420 ;;
20421
20422bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020423 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020424 need_version=no
20425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20426 soname_spec='${libname}${release}${shared_ext}$major'
20427 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20428 shlibpath_var=LD_LIBRARY_PATH
20429 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20430 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20431 # the default ld.so.conf also contains /usr/contrib/lib and
20432 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20433 # libtool to hard-code these into programs
20434 ;;
20435
20436cygwin* | mingw* | pw32* | cegcc*)
20437 version_type=windows
20438 shrext_cmds=".dll"
20439 need_version=no
20440 need_lib_prefix=no
20441
cristyda16f162011-02-19 23:52:17 +000020442 case $GCC,$cc_basename in
20443 yes,*)
20444 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020445 library_names_spec='$libname.dll.a'
20446 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20447 postinstall_cmds='base_file=`basename \${file}`~
20448 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20449 dldir=$destdir/`dirname \$dlpath`~
20450 test -d \$dldir || mkdir -p \$dldir~
20451 $install_prog $dir/$dlname \$dldir/$dlname~
20452 chmod a+x \$dldir/$dlname~
20453 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20454 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20455 fi'
20456 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20457 dlpath=$dir/\$dldll~
20458 $RM \$dlpath'
20459 shlibpath_overrides_runpath=yes
20460
20461 case $host_os in
20462 cygwin*)
20463 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20464 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020465
cristy73bd4a52010-10-05 11:24:23 +000020466 ;;
20467 mingw* | cegcc*)
20468 # MinGW DLLs use traditional 'lib' prefix
20469 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020470 ;;
20471 pw32*)
20472 # pw32 DLLs use 'pw' prefix rather than 'lib'
20473 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20474 ;;
20475 esac
cristyda16f162011-02-19 23:52:17 +000020476 dynamic_linker='Win32 ld.exe'
20477 ;;
20478
20479 *,cl*)
20480 # Native MSVC
20481 libname_spec='$name'
20482 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20483 library_names_spec='${libname}.dll.lib'
20484
20485 case $build_os in
20486 mingw*)
20487 sys_lib_search_path_spec=
20488 lt_save_ifs=$IFS
20489 IFS=';'
20490 for lt_path in $LIB
20491 do
20492 IFS=$lt_save_ifs
20493 # Let DOS variable expansion print the short 8.3 style file name.
20494 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20495 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20496 done
20497 IFS=$lt_save_ifs
20498 # Convert to MSYS style.
20499 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20500 ;;
20501 cygwin*)
20502 # Convert to unix form, then to dos form, then back to unix form
20503 # but this time dos style (no spaces!) so that the unix form looks
20504 # like /cygdrive/c/PROGRA~1:/cygdr...
20505 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20506 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20507 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20508 ;;
20509 *)
20510 sys_lib_search_path_spec="$LIB"
20511 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20512 # It is most probably a Windows format PATH.
20513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20514 else
20515 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20516 fi
20517 # FIXME: find the short name or the path components, as spaces are
20518 # common. (e.g. "Program Files" -> "PROGRA~1")
20519 ;;
20520 esac
20521
20522 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20523 postinstall_cmds='base_file=`basename \${file}`~
20524 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20525 dldir=$destdir/`dirname \$dlpath`~
20526 test -d \$dldir || mkdir -p \$dldir~
20527 $install_prog $dir/$dlname \$dldir/$dlname'
20528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20529 dlpath=$dir/\$dldll~
20530 $RM \$dlpath'
20531 shlibpath_overrides_runpath=yes
20532 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020533 ;;
20534
20535 *)
cristyda16f162011-02-19 23:52:17 +000020536 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020537 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020538 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020539 ;;
20540 esac
cristy73bd4a52010-10-05 11:24:23 +000020541 # FIXME: first we should search . and the directory the executable is in
20542 shlibpath_var=PATH
20543 ;;
20544
20545darwin* | rhapsody*)
20546 dynamic_linker="$host_os dyld"
20547 version_type=darwin
20548 need_lib_prefix=no
20549 need_version=no
20550 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20551 soname_spec='${libname}${release}${major}$shared_ext'
20552 shlibpath_overrides_runpath=yes
20553 shlibpath_var=DYLD_LIBRARY_PATH
20554 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20555
20556 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20557 ;;
20558
20559dgux*)
cristy99bd5232011-12-07 14:38:20 +000020560 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020561 need_lib_prefix=no
20562 need_version=no
20563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20564 soname_spec='${libname}${release}${shared_ext}$major'
20565 shlibpath_var=LD_LIBRARY_PATH
20566 ;;
20567
cristy73bd4a52010-10-05 11:24:23 +000020568freebsd* | dragonfly*)
20569 # DragonFly does not have aout. When/if they implement a new
20570 # versioning mechanism, adjust this.
20571 if test -x /usr/bin/objformat; then
20572 objformat=`/usr/bin/objformat`
20573 else
20574 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020575 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020576 *) objformat=elf ;;
20577 esac
20578 fi
20579 version_type=freebsd-$objformat
20580 case $version_type in
20581 freebsd-elf*)
20582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20583 need_version=no
20584 need_lib_prefix=no
20585 ;;
20586 freebsd-*)
20587 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20588 need_version=yes
20589 ;;
20590 esac
20591 shlibpath_var=LD_LIBRARY_PATH
20592 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020593 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020594 shlibpath_overrides_runpath=yes
20595 ;;
20596 freebsd3.[01]* | freebsdelf3.[01]*)
20597 shlibpath_overrides_runpath=yes
20598 hardcode_into_libs=yes
20599 ;;
20600 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20601 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20602 shlibpath_overrides_runpath=no
20603 hardcode_into_libs=yes
20604 ;;
20605 *) # from 4.6 on, and DragonFly
20606 shlibpath_overrides_runpath=yes
20607 hardcode_into_libs=yes
20608 ;;
20609 esac
20610 ;;
20611
20612gnu*)
cristy99bd5232011-12-07 14:38:20 +000020613 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020614 need_lib_prefix=no
20615 need_version=no
20616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20617 soname_spec='${libname}${release}${shared_ext}$major'
20618 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020619 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020620 hardcode_into_libs=yes
20621 ;;
20622
cristy0c60a692010-11-04 01:09:47 +000020623haiku*)
cristy99bd5232011-12-07 14:38:20 +000020624 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020625 need_lib_prefix=no
20626 need_version=no
20627 dynamic_linker="$host_os runtime_loader"
20628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20629 soname_spec='${libname}${release}${shared_ext}$major'
20630 shlibpath_var=LIBRARY_PATH
20631 shlibpath_overrides_runpath=yes
20632 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20633 hardcode_into_libs=yes
20634 ;;
20635
cristy73bd4a52010-10-05 11:24:23 +000020636hpux9* | hpux10* | hpux11*)
20637 # Give a soname corresponding to the major version so that dld.sl refuses to
20638 # link against other versions.
20639 version_type=sunos
20640 need_lib_prefix=no
20641 need_version=no
20642 case $host_cpu in
20643 ia64*)
20644 shrext_cmds='.so'
20645 hardcode_into_libs=yes
20646 dynamic_linker="$host_os dld.so"
20647 shlibpath_var=LD_LIBRARY_PATH
20648 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20650 soname_spec='${libname}${release}${shared_ext}$major'
20651 if test "X$HPUX_IA64_MODE" = X32; then
20652 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20653 else
20654 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20655 fi
20656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20657 ;;
20658 hppa*64*)
20659 shrext_cmds='.sl'
20660 hardcode_into_libs=yes
20661 dynamic_linker="$host_os dld.sl"
20662 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20665 soname_spec='${libname}${release}${shared_ext}$major'
20666 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20668 ;;
20669 *)
20670 shrext_cmds='.sl'
20671 dynamic_linker="$host_os dld.sl"
20672 shlibpath_var=SHLIB_PATH
20673 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20675 soname_spec='${libname}${release}${shared_ext}$major'
20676 ;;
20677 esac
cristy0c60a692010-11-04 01:09:47 +000020678 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020679 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020680 # or fails outright, so override atomically:
20681 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020682 ;;
20683
20684interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020685 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020686 need_lib_prefix=no
20687 need_version=no
20688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20689 soname_spec='${libname}${release}${shared_ext}$major'
20690 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20691 shlibpath_var=LD_LIBRARY_PATH
20692 shlibpath_overrides_runpath=no
20693 hardcode_into_libs=yes
20694 ;;
20695
20696irix5* | irix6* | nonstopux*)
20697 case $host_os in
20698 nonstopux*) version_type=nonstopux ;;
20699 *)
20700 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020701 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020702 else
20703 version_type=irix
20704 fi ;;
20705 esac
20706 need_lib_prefix=no
20707 need_version=no
20708 soname_spec='${libname}${release}${shared_ext}$major'
20709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20710 case $host_os in
20711 irix5* | nonstopux*)
20712 libsuff= shlibsuff=
20713 ;;
20714 *)
20715 case $LD in # libtool.m4 will add one of these switches to LD
20716 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20717 libsuff= shlibsuff= libmagic=32-bit;;
20718 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20719 libsuff=32 shlibsuff=N32 libmagic=N32;;
20720 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20721 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20722 *) libsuff= shlibsuff= libmagic=never-match;;
20723 esac
20724 ;;
20725 esac
20726 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20727 shlibpath_overrides_runpath=no
20728 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20729 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20730 hardcode_into_libs=yes
20731 ;;
20732
20733# No shared lib support for Linux oldld, aout, or coff.
20734linux*oldld* | linux*aout* | linux*coff*)
20735 dynamic_linker=no
20736 ;;
20737
cristy99bd5232011-12-07 14:38:20 +000020738# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020739linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020740 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020741 need_lib_prefix=no
20742 need_version=no
20743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20744 soname_spec='${libname}${release}${shared_ext}$major'
20745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20746 shlibpath_var=LD_LIBRARY_PATH
20747 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020748
cristy73bd4a52010-10-05 11:24:23 +000020749 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020750 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020751 $as_echo_n "(cached) " >&6
20752else
20753 lt_cv_shlibpath_overrides_runpath=no
20754 save_LDFLAGS=$LDFLAGS
20755 save_libdir=$libdir
20756 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20757 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020759/* end confdefs.h. */
20760
20761int
20762main ()
20763{
20764
20765 ;
20766 return 0;
20767}
20768_ACEOF
20769if ac_fn_cxx_try_link "$LINENO"; then :
20770 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020771 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020772fi
20773fi
20774rm -f core conftest.err conftest.$ac_objext \
20775 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020776 LDFLAGS=$save_LDFLAGS
20777 libdir=$save_libdir
20778
20779fi
20780
20781 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020782
20783 # This implies no fast_install, which is unacceptable.
20784 # Some rework will be needed to allow for fast_install
20785 # before this can be enabled.
20786 hardcode_into_libs=yes
20787
20788 # Add ABI-specific directories to the system library path.
20789 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20790
20791 # Append ld.so.conf contents to the search path
20792 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020793 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 +000020794 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020795
cristy73bd4a52010-10-05 11:24:23 +000020796 fi
20797
20798 # We used to test for /lib/ld.so.1 and disable shared libraries on
20799 # powerpc, because MkLinux only supported shared libraries with the
20800 # GNU dynamic linker. Since this was broken with cross compilers,
20801 # most powerpc-linux boxes support dynamic linking these days and
20802 # people can always --disable-shared, the test was removed, and we
20803 # assume the GNU/Linux dynamic linker is in use.
20804 dynamic_linker='GNU/Linux ld.so'
20805 ;;
20806
20807netbsd*)
20808 version_type=sunos
20809 need_lib_prefix=no
20810 need_version=no
20811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20814 dynamic_linker='NetBSD (a.out) ld.so'
20815 else
20816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20817 soname_spec='${libname}${release}${shared_ext}$major'
20818 dynamic_linker='NetBSD ld.elf_so'
20819 fi
20820 shlibpath_var=LD_LIBRARY_PATH
20821 shlibpath_overrides_runpath=yes
20822 hardcode_into_libs=yes
20823 ;;
20824
20825newsos6)
cristy99bd5232011-12-07 14:38:20 +000020826 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20828 shlibpath_var=LD_LIBRARY_PATH
20829 shlibpath_overrides_runpath=yes
20830 ;;
20831
20832*nto* | *qnx*)
20833 version_type=qnx
20834 need_lib_prefix=no
20835 need_version=no
20836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20837 soname_spec='${libname}${release}${shared_ext}$major'
20838 shlibpath_var=LD_LIBRARY_PATH
20839 shlibpath_overrides_runpath=no
20840 hardcode_into_libs=yes
20841 dynamic_linker='ldqnx.so'
20842 ;;
20843
20844openbsd*)
20845 version_type=sunos
20846 sys_lib_dlsearch_path_spec="/usr/lib"
20847 need_lib_prefix=no
20848 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20849 case $host_os in
20850 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20851 *) need_version=no ;;
20852 esac
20853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20855 shlibpath_var=LD_LIBRARY_PATH
20856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20857 case $host_os in
20858 openbsd2.[89] | openbsd2.[89].*)
20859 shlibpath_overrides_runpath=no
20860 ;;
20861 *)
20862 shlibpath_overrides_runpath=yes
20863 ;;
20864 esac
20865 else
20866 shlibpath_overrides_runpath=yes
20867 fi
20868 ;;
20869
20870os2*)
20871 libname_spec='$name'
20872 shrext_cmds=".dll"
20873 need_lib_prefix=no
20874 library_names_spec='$libname${shared_ext} $libname.a'
20875 dynamic_linker='OS/2 ld.exe'
20876 shlibpath_var=LIBPATH
20877 ;;
20878
20879osf3* | osf4* | osf5*)
20880 version_type=osf
20881 need_lib_prefix=no
20882 need_version=no
20883 soname_spec='${libname}${release}${shared_ext}$major'
20884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20885 shlibpath_var=LD_LIBRARY_PATH
20886 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20887 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20888 ;;
20889
20890rdos*)
20891 dynamic_linker=no
20892 ;;
20893
20894solaris*)
cristy99bd5232011-12-07 14:38:20 +000020895 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020896 need_lib_prefix=no
20897 need_version=no
20898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20899 soname_spec='${libname}${release}${shared_ext}$major'
20900 shlibpath_var=LD_LIBRARY_PATH
20901 shlibpath_overrides_runpath=yes
20902 hardcode_into_libs=yes
20903 # ldd complains unless libraries are executable
20904 postinstall_cmds='chmod +x $lib'
20905 ;;
20906
20907sunos4*)
20908 version_type=sunos
20909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20910 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20911 shlibpath_var=LD_LIBRARY_PATH
20912 shlibpath_overrides_runpath=yes
20913 if test "$with_gnu_ld" = yes; then
20914 need_lib_prefix=no
20915 fi
20916 need_version=yes
20917 ;;
20918
20919sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020920 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20922 soname_spec='${libname}${release}${shared_ext}$major'
20923 shlibpath_var=LD_LIBRARY_PATH
20924 case $host_vendor in
20925 sni)
20926 shlibpath_overrides_runpath=no
20927 need_lib_prefix=no
20928 runpath_var=LD_RUN_PATH
20929 ;;
20930 siemens)
20931 need_lib_prefix=no
20932 ;;
20933 motorola)
20934 need_lib_prefix=no
20935 need_version=no
20936 shlibpath_overrides_runpath=no
20937 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20938 ;;
20939 esac
20940 ;;
20941
20942sysv4*MP*)
20943 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020944 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020945 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20946 soname_spec='$libname${shared_ext}.$major'
20947 shlibpath_var=LD_LIBRARY_PATH
20948 fi
20949 ;;
20950
20951sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20952 version_type=freebsd-elf
20953 need_lib_prefix=no
20954 need_version=no
20955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20956 soname_spec='${libname}${release}${shared_ext}$major'
20957 shlibpath_var=LD_LIBRARY_PATH
20958 shlibpath_overrides_runpath=yes
20959 hardcode_into_libs=yes
20960 if test "$with_gnu_ld" = yes; then
20961 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20962 else
20963 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20964 case $host_os in
20965 sco3.2v5*)
20966 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20967 ;;
20968 esac
20969 fi
20970 sys_lib_dlsearch_path_spec='/usr/lib'
20971 ;;
20972
20973tpf*)
20974 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020975 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020976 need_lib_prefix=no
20977 need_version=no
20978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20979 shlibpath_var=LD_LIBRARY_PATH
20980 shlibpath_overrides_runpath=no
20981 hardcode_into_libs=yes
20982 ;;
20983
20984uts4*)
cristy99bd5232011-12-07 14:38:20 +000020985 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20987 soname_spec='${libname}${release}${shared_ext}$major'
20988 shlibpath_var=LD_LIBRARY_PATH
20989 ;;
20990
20991*)
20992 dynamic_linker=no
20993 ;;
20994esac
20995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20996$as_echo "$dynamic_linker" >&6; }
20997test "$dynamic_linker" = no && can_build_shared=no
20998
20999variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21000if test "$GCC" = yes; then
21001 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21002fi
21003
21004if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21005 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21006fi
21007if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21008 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21009fi
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
cristy0c60a692010-11-04 01:09:47 +000021046
21047
cristy73bd4a52010-10-05 11:24:23 +000021048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21049$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21050hardcode_action_CXX=
21051if test -n "$hardcode_libdir_flag_spec_CXX" ||
21052 test -n "$runpath_var_CXX" ||
21053 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21054
21055 # We can hardcode non-existent directories.
21056 if test "$hardcode_direct_CXX" != no &&
21057 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21058 # have to relink, otherwise we might link with an installed library
21059 # when we should be linking with a yet-to-be-installed one
21060 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21061 test "$hardcode_minus_L_CXX" != no; then
21062 # Linking always hardcodes the temporary library directory.
21063 hardcode_action_CXX=relink
21064 else
21065 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21066 hardcode_action_CXX=immediate
21067 fi
21068else
21069 # We cannot hardcode anything, or else we can only hardcode existing
21070 # directories.
21071 hardcode_action_CXX=unsupported
21072fi
21073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21074$as_echo "$hardcode_action_CXX" >&6; }
21075
21076if test "$hardcode_action_CXX" = relink ||
21077 test "$inherit_rpath_CXX" = yes; then
21078 # Fast installation is not supported
21079 enable_fast_install=no
21080elif test "$shlibpath_overrides_runpath" = yes ||
21081 test "$enable_shared" = no; then
21082 # Fast installation is not necessary
21083 enable_fast_install=needless
21084fi
21085
21086
21087
21088
21089
21090
21091
21092 fi # test -n "$compiler"
21093
21094 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021095 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021096 LDCXX=$LD
21097 LD=$lt_save_LD
21098 GCC=$lt_save_GCC
21099 with_gnu_ld=$lt_save_with_gnu_ld
21100 lt_cv_path_LDCXX=$lt_cv_path_LD
21101 lt_cv_path_LD=$lt_save_path_LD
21102 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21103 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21104fi # test "$_lt_caught_CXX_error" != yes
21105
21106ac_ext=c
21107ac_cpp='$CPP $CPPFLAGS'
21108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21110ac_compiler_gnu=$ac_cv_c_compiler_gnu
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
cristy99bd5232011-12-07 14:38:20 +000021124
21125
cristy73bd4a52010-10-05 11:24:23 +000021126 ac_config_commands="$ac_config_commands libtool"
21127
21128
21129
21130
21131# Only expand once:
21132
21133
21134
cristy3ed852e2009-09-05 21:47:34 +000021135
21136
cristy3ed852e2009-09-05 21:47:34 +000021137# Check to see if building shared libraries
21138libtool_build_shared_libs='no'
21139if test "$enable_shared" = 'yes'; then
21140 libtool_build_shared_libs='yes'
21141fi
21142
21143# Check to see if building static libraries
21144libtool_build_static_libs='no'
21145if test "$enable_static" = 'yes'; then
21146 libtool_build_static_libs='yes'
21147fi
21148
cristy73bd4a52010-10-05 11:24:23 +000021149 if test "${libtool_build_shared_libs}" = 'yes'; then
21150 WITH_SHARED_LIBS_TRUE=
21151 WITH_SHARED_LIBS_FALSE='#'
21152else
21153 WITH_SHARED_LIBS_TRUE='#'
21154 WITH_SHARED_LIBS_FALSE=
21155fi
21156
cristy3ed852e2009-09-05 21:47:34 +000021157#
21158# Enable support for building loadable modules
21159#
cristyaf4cbf32012-10-16 23:47:41 +000021160build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021161
21162# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021163if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021164 withval=$with_modules; with_modules=$withval
21165else
cristy5a1cefd2010-01-06 20:42:35 +000021166 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021167fi
21168
21169
21170# Only allow building loadable modules if we are building shared libraries
21171if test "$with_modules" != 'no' ; then
21172 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021173 { $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 +000021174$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021175 build_modules='no'
21176 else
21177 build_modules='yes'
21178 fi
cristy3ed852e2009-09-05 21:47:34 +000021179fi
cristyc6722092012-10-14 00:19:31 +000021180if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021181
cristy8b350f62009-11-15 23:12:43 +000021182$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021183
cristyfa161182012-12-19 15:45:28 +000021184 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021185fi
cristyc6722092012-10-14 00:19:31 +000021186 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021187 WITH_MODULES_TRUE=
21188 WITH_MODULES_FALSE='#'
21189else
21190 WITH_MODULES_TRUE='#'
21191 WITH_MODULES_FALSE=
21192fi
21193
cristy3ed852e2009-09-05 21:47:34 +000021194
cristy3ed852e2009-09-05 21:47:34 +000021195# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021196# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021197# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021198if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021199 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21200else
21201 enable_delegate_build='no'
21202fi
21203
21204
21205# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021206if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021207 enableval=$enable_deprecated; enable_deprecated=$enableval
21208else
21209 enable_deprecated='no'
21210fi
21211
21212
21213if test "$enable_deprecated" = 'yes'; then
21214
cristy8b350f62009-11-15 23:12:43 +000021215$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021216
21217else
21218 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21219fi
21220
21221# Build a version of ImageMagick which operates uninstalled.
21222# Used to build distributions located via MAGICK_HOME / executable path
21223# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021224if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021225 enableval=$enable_installed; enable_installed=$enableval
21226else
21227 enable_installed='yes'
21228fi
21229
21230
21231if test "$enable_installed" = 'yes'; then
21232
cristy8b350f62009-11-15 23:12:43 +000021233$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021234
21235else
21236 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21237fi
21238
21239# Permit enciphering and deciphering image pixels.
21240# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021241if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021242 enableval=$enable_cipher; enable_cipher=$enableval
21243else
21244 enable_cipher='yes'
21245fi
21246
21247
21248if test "$enable_cipher" = 'yes'; then
21249
cristy8b350f62009-11-15 23:12:43 +000021250$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021251
21252fi
21253
cristy6e3607c2011-09-13 13:59:17 +000021254# Build a zero-configuration version of ImageMagick.
21255# Check whether --enable-zero-configuration was given.
21256if test "${enable_zero_configuration+set}" = set; then :
21257 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021258else
cristy6e3607c2011-09-13 13:59:17 +000021259 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021260fi
21261
21262
cristy6e3607c2011-09-13 13:59:17 +000021263if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021264
cristy6e3607c2011-09-13 13:59:17 +000021265$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021266
cristy81af5702011-09-13 14:20:58 +000021267 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021268fi
21269
21270# Build a high dynamic range version of ImageMagick.
21271# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021272if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021273 enableval=$enable_hdri; enable_hdri=$enableval
21274else
cristy191c0b72012-08-12 16:29:52 +000021275 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021276fi
21277
21278
21279MAGICK_HDRI=""
21280if test "$enable_hdri" = 'yes'; then
21281 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021282 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021283 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021284else
21285 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021286fi
21287
cristye52f12f2012-12-31 15:32:36 +000021288cat >>confdefs.h <<_ACEOF
21289#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21290_ACEOF
21291
21292MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21293CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021294CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021295
cristy3ed852e2009-09-05 21:47:34 +000021296# Build a version of ImageMagick with assert statements.
21297# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021298if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021299 enableval=$enable_assert; enable_assert=$enableval
21300else
21301 enable_assert='yes'
21302fi
21303
21304
21305if test "$enable_assert" = 'no'; then
21306
cristy8b350f62009-11-15 23:12:43 +000021307$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021308
21309fi
21310
cristya448bd22011-10-14 12:38:13 +000021311# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021312
21313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21314$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21315 # Check whether --enable-maintainer-mode was given.
21316if test "${enable_maintainer_mode+set}" = set; then :
21317 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21318else
21319 USE_MAINTAINER_MODE=no
21320fi
21321
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21323$as_echo "$USE_MAINTAINER_MODE" >&6; }
21324 if test $USE_MAINTAINER_MODE = yes; then
21325 MAINTAINER_MODE_TRUE=
21326 MAINTAINER_MODE_FALSE='#'
21327else
21328 MAINTAINER_MODE_TRUE='#'
21329 MAINTAINER_MODE_FALSE=
21330fi
21331
21332 MAINT=$MAINTAINER_MODE_TRUE
21333
21334
cristy3ed852e2009-09-05 21:47:34 +000021335
cristy944e51f2013-04-16 18:45:02 +000021336# Enable hugepages support
21337# Check whether --enable-hugepages was given.
21338if test "${enable_hugepages+set}" = set; then :
21339 enableval=$enable_hugepages; enable_hugepages=$enableval
21340else
21341 enable_hugepages='no'
21342fi
21343
21344
cristy3ed852e2009-09-05 21:47:34 +000021345# Enable ccmalloc memory debugging support
21346# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021347if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021348 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21349else
21350 enable_ccmalloc='no'
21351fi
21352
21353
21354# Enable Electric Fence memory debugging support
21355# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021356if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021357 enableval=$enable_efence; enable_efence=$enableval
21358else
21359 enable_efence='no'
21360fi
21361
21362
21363# Enable prof-based profiling support
21364# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021365if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021366 enableval=$enable_prof; enable_prof=$enableval
21367else
21368 enable_prof='no'
21369fi
21370
21371
21372# Enable gprof-based profiling support
21373# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021374if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021375 enableval=$enable_gprof; enable_gprof=$enableval
21376else
21377 enable_gprof='no'
21378fi
21379
21380
21381# Enable gcov-based profiling support
21382# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021383if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021384 enableval=$enable_gcov; enable_gcov=$enableval
21385else
21386 enable_gcov='no'
21387fi
21388
21389
21390enable_profiling='no'
21391if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21392 enable_profiling='yes'
21393 if test "$libtool_build_shared_libs" = 'yes'; then
21394 echo "Warning: Can not profile code using shared libraries"
21395 fi
21396fi
21397
21398# Magick API method prefix
21399
21400# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021401if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021402 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021403else
cristyfc3d0222012-02-07 15:05:57 +000021404 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021405fi
21406
21407
cristyfc3d0222012-02-07 15:05:57 +000021408if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021409
21410cat >>confdefs.h <<_ACEOF
21411#define NAMESPACE_PREFIX $with_method_prefix
21412_ACEOF
21413
cristyfc3d0222012-02-07 15:05:57 +000021414 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021415fi
21416
cristy71d8c202012-03-20 17:05:01 +000021417# Enable legacy support (default no)
21418# Check whether --enable-legacy-support was given.
21419if test "${enable_legacy_support+set}" = set; then :
21420 enableval=$enable_legacy_support; with_legacy_support=$enableval
21421else
21422 with_legacy_support='no'
21423fi
21424
21425 if test "$with_legacy_support" != 'no'; then
21426 LEGACY_SUPPORT_TRUE=
21427 LEGACY_SUPPORT_FALSE='#'
21428else
21429 LEGACY_SUPPORT_TRUE='#'
21430 LEGACY_SUPPORT_FALSE=
21431fi
21432
21433
cristy3ed852e2009-09-05 21:47:34 +000021434# Number of bits in a Quantum
21435
21436# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021437if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021438 withval=$with_quantum_depth; with_quantum_depth=$withval
21439else
21440 with_quantum_depth=16
21441fi
21442
21443
21444if test "$with_quantum_depth" != '8'; then
21445 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21446fi
21447
21448case "${with_quantum_depth}" in
21449 8 ) ;;
21450 16 ) ;;
21451 32 ) ;;
21452 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021453 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021454esac
21455QUANTUM_DEPTH="$with_quantum_depth"
21456
21457cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021458#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021459_ACEOF
21460
cristya371edf2013-02-06 13:42:17 +000021461MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021462CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021463CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021464
cristy01ff9f32012-12-01 18:15:29 +000021465# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021466MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021467if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021468 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021469fi
cristy01ff9f32012-12-01 18:15:29 +000021470
21471
cristy3ed852e2009-09-05 21:47:34 +000021472# Set pixel cache threshold
21473
21474# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021475if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021476 withval=$with_cache; with_cache=$withval
21477else
21478 with_cache=''
21479fi
21480
21481
21482if test "$with_cache" != ''; then
21483
21484cat >>confdefs.h <<_ACEOF
21485#define PixelCacheThreshold $with_cache
21486_ACEOF
21487
21488 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21489fi
21490
21491# Disable/Enable support for full delegate paths
21492
21493# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021494if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021495 withval=$with_frozenpaths; with_frozenpaths=$withval
21496else
21497 with_frozenpaths='no'
21498fi
21499
21500
21501# Enable build/install of Magick++
21502
21503# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021504if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021505 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21506else
21507 with_magick_plus_plus='yes'
21508fi
21509
21510
cristy3a75f062012-09-08 23:29:40 +000021511# Encode the this name into the shared library.
21512
21513# Check whether --with-package-release-name was given.
21514if test "${with_package_release_name+set}" = set; then :
21515 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21516fi
21517
21518
21519
cristy3ed852e2009-09-05 21:47:34 +000021520# Disable build/install of PerlMagick.
21521
21522# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021523if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021524 withval=$with_perl; with_perl=$withval
21525else
cristyb5f4e2f2010-04-25 00:49:11 +000021526 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021527fi
21528
21529
21530# Options to pass when configuring PerlMagick
21531
21532# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021533if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021534 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021535fi
21536
21537
cristy3ed852e2009-09-05 21:47:34 +000021538
21539# Enable umem, object-caching memory allocation library.
21540
21541# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021542if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021543 withval=$with_umem; with_umem=$withval
21544else
21545 with_umem='no'
21546fi
21547
21548if test "$with_umem" != 'yes' ; then
21549 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21550fi
21551
21552#
21553# Specify path to shared libstdc++ if not in normal location
21554#
21555
21556# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021557if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021558 withval=$with_libstdc; with_libstdc=$withval
21559else
21560 with_libstdc=''
21561fi
21562
21563
21564if test "$with_libstdc" != ''; then
21565 if test -d "$with_libstdc"; then
21566 LIBSTDCLDFLAGS="-L$with_libstdc"
21567 fi
21568fi
21569
21570
21571# Does gcc required -traditional?
21572if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021574$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021575if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021576 $as_echo_n "(cached) " >&6
21577else
21578 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021580/* end confdefs.h. */
21581#include <sgtty.h>
21582Autoconf TIOCGETP
21583_ACEOF
21584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021585 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021586 ac_cv_prog_gcc_traditional=yes
21587else
21588 ac_cv_prog_gcc_traditional=no
21589fi
21590rm -f conftest*
21591
21592
21593 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021595/* end confdefs.h. */
21596#include <termio.h>
21597Autoconf TCGETA
21598_ACEOF
21599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021600 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021601 ac_cv_prog_gcc_traditional=yes
21602fi
21603rm -f conftest*
21604
21605 fi
21606fi
cristy8b350f62009-11-15 23:12:43 +000021607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021608$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21609 if test $ac_cv_prog_gcc_traditional = yes; then
21610 CC="$CC -traditional"
21611 fi
21612fi
21613
21614
21615########
21616#
21617# Set defines required to build DLLs and modules using MinGW
21618#
21619########
21620# These options are set for multi-thread DLL module build
21621# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21622# module: _DLL
21623# executable/Magick++: _DLL _MAGICKMOD_
21624MODULE_EXTRA_CPPFLAGS=''
21625LIBRARY_EXTRA_CPPFLAGS=''
21626if test "${native_win32_build}" = 'yes'; then
21627 if test "${libtool_build_shared_libs}" = 'yes'; then
21628 CPPFLAGS="$CPPFLAGS -D_DLL"
21629 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21630 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21631 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021632 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021633 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21634 else
21635 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21636 fi
21637 else
21638 CPPFLAGS="$CPPFLAGS -D_LIB"
21639 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21640 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21641 fi
21642 if test "$with_threads" = 'yes'; then
21643 CPPFLAGS="$CPPFLAGS -D_MT"
21644 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21645 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21646 fi
21647fi
21648
21649
21650
21651# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021653$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021654if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021655 $as_echo_n "(cached) " >&6
21656else
cristy8b350f62009-11-15 23:12:43 +000021657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021658/* end confdefs.h. */
21659#include <stdlib.h>
21660#include <stdarg.h>
21661#include <string.h>
21662#include <float.h>
21663
21664int
21665main ()
21666{
21667
21668 ;
21669 return 0;
21670}
21671_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021672if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021673 ac_cv_header_stdc=yes
21674else
cristy8b350f62009-11-15 23:12:43 +000021675 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021676fi
cristy3ed852e2009-09-05 21:47:34 +000021677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21678
21679if test $ac_cv_header_stdc = yes; then
21680 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021682/* end confdefs.h. */
21683#include <string.h>
21684
21685_ACEOF
21686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021687 $EGREP "memchr" >/dev/null 2>&1; then :
21688
cristy3ed852e2009-09-05 21:47:34 +000021689else
21690 ac_cv_header_stdc=no
21691fi
21692rm -f conftest*
21693
21694fi
21695
21696if test $ac_cv_header_stdc = yes; then
21697 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021699/* end confdefs.h. */
21700#include <stdlib.h>
21701
21702_ACEOF
21703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021704 $EGREP "free" >/dev/null 2>&1; then :
21705
cristy3ed852e2009-09-05 21:47:34 +000021706else
21707 ac_cv_header_stdc=no
21708fi
21709rm -f conftest*
21710
21711fi
21712
21713if test $ac_cv_header_stdc = yes; then
21714 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021715 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021716 :
21717else
cristy8b350f62009-11-15 23:12:43 +000021718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021719/* end confdefs.h. */
21720#include <ctype.h>
21721#include <stdlib.h>
21722#if ((' ' & 0x0FF) == 0x020)
21723# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21724# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21725#else
21726# define ISLOWER(c) \
21727 (('a' <= (c) && (c) <= 'i') \
21728 || ('j' <= (c) && (c) <= 'r') \
21729 || ('s' <= (c) && (c) <= 'z'))
21730# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21731#endif
21732
21733#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21734int
21735main ()
21736{
21737 int i;
21738 for (i = 0; i < 256; i++)
21739 if (XOR (islower (i), ISLOWER (i))
21740 || toupper (i) != TOUPPER (i))
21741 return 2;
21742 return 0;
21743}
21744_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021745if ac_fn_c_try_run "$LINENO"; then :
21746
cristy3ed852e2009-09-05 21:47:34 +000021747else
cristy8b350f62009-11-15 23:12:43 +000021748 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021749fi
cristy8b350f62009-11-15 23:12:43 +000021750rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21751 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021752fi
21753
cristy3ed852e2009-09-05 21:47:34 +000021754fi
21755fi
cristy8b350f62009-11-15 23:12:43 +000021756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021757$as_echo "$ac_cv_header_stdc" >&6; }
21758if test $ac_cv_header_stdc = yes; then
21759
cristy8b350f62009-11-15 23:12:43 +000021760$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021761
21762fi
21763
21764if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021765 { $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 +000021766 header files. Compilation cannot proceed. Please install the ANSI C
21767 headers and rerun this script." >&5
21768$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21769 header files. Compilation cannot proceed. Please install the ANSI C
21770 headers and rerun this script." >&2;};
21771fi
cristya0b81c32010-01-22 02:54:33 +000021772
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21774$as_echo_n "checking whether to enable assertions... " >&6; }
21775 # Check whether --enable-assert was given.
21776if test "${enable_assert+set}" = set; then :
21777 enableval=$enable_assert; ac_enable_assert=$enableval
21778 if test "x$enableval" = xno; then :
21779
21780$as_echo "#define NDEBUG 1" >>confdefs.h
21781
21782elif test "x$enableval" != xyes; then :
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21784$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21785 ac_enable_assert=yes
21786fi
21787else
21788 ac_enable_assert=yes
21789fi
21790
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21792$as_echo "$ac_enable_assert" >&6; }
21793
cristy3ed852e2009-09-05 21:47:34 +000021794ac_header_dirent=no
21795for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21796 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021798$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021799if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021800 $as_echo_n "(cached) " >&6
21801else
cristy8b350f62009-11-15 23:12:43 +000021802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021803/* end confdefs.h. */
21804#include <sys/types.h>
21805#include <$ac_hdr>
21806
21807int
21808main ()
21809{
21810if ((DIR *) 0)
21811return 0;
21812 ;
21813 return 0;
21814}
21815_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021816if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021817 eval "$as_ac_Header=yes"
21818else
cristy8b350f62009-11-15 23:12:43 +000021819 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021820fi
cristy3ed852e2009-09-05 21:47:34 +000021821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21822fi
cristy8b350f62009-11-15 23:12:43 +000021823eval ac_res=\$$as_ac_Header
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021825$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021826if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021827 cat >>confdefs.h <<_ACEOF
21828#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21829_ACEOF
21830
21831ac_header_dirent=$ac_hdr; break
21832fi
21833
21834done
21835# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21836if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021838$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021839if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021840 $as_echo_n "(cached) " >&6
21841else
21842 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021844/* end confdefs.h. */
21845
21846/* Override any GCC internal prototype to avoid an error.
21847 Use char because int might match the return type of a GCC
21848 builtin and then its argument prototype would still apply. */
21849#ifdef __cplusplus
21850extern "C"
21851#endif
21852char opendir ();
21853int
21854main ()
21855{
21856return opendir ();
21857 ;
21858 return 0;
21859}
21860_ACEOF
21861for ac_lib in '' dir; do
21862 if test -z "$ac_lib"; then
21863 ac_res="none required"
21864 else
21865 ac_res=-l$ac_lib
21866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21867 fi
cristy8b350f62009-11-15 23:12:43 +000021868 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021869 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021870fi
cristy8b350f62009-11-15 23:12:43 +000021871rm -f core conftest.err conftest.$ac_objext \
21872 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021873 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021874 break
21875fi
21876done
cristyda16f162011-02-19 23:52:17 +000021877if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021878
cristy3ed852e2009-09-05 21:47:34 +000021879else
21880 ac_cv_search_opendir=no
21881fi
21882rm conftest.$ac_ext
21883LIBS=$ac_func_search_save_LIBS
21884fi
cristy8b350f62009-11-15 23:12:43 +000021885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021886$as_echo "$ac_cv_search_opendir" >&6; }
21887ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021888if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21890
21891fi
21892
21893else
cristy8b350f62009-11-15 23:12:43 +000021894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021895$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021896if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021897 $as_echo_n "(cached) " >&6
21898else
21899 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021901/* end confdefs.h. */
21902
21903/* Override any GCC internal prototype to avoid an error.
21904 Use char because int might match the return type of a GCC
21905 builtin and then its argument prototype would still apply. */
21906#ifdef __cplusplus
21907extern "C"
21908#endif
21909char opendir ();
21910int
21911main ()
21912{
21913return opendir ();
21914 ;
21915 return 0;
21916}
21917_ACEOF
21918for ac_lib in '' x; do
21919 if test -z "$ac_lib"; then
21920 ac_res="none required"
21921 else
21922 ac_res=-l$ac_lib
21923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21924 fi
cristy8b350f62009-11-15 23:12:43 +000021925 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021926 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021927fi
cristy8b350f62009-11-15 23:12:43 +000021928rm -f core conftest.err conftest.$ac_objext \
21929 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021930 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021931 break
21932fi
21933done
cristyda16f162011-02-19 23:52:17 +000021934if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021935
cristy3ed852e2009-09-05 21:47:34 +000021936else
21937 ac_cv_search_opendir=no
21938fi
21939rm conftest.$ac_ext
21940LIBS=$ac_func_search_save_LIBS
21941fi
cristy8b350f62009-11-15 23:12:43 +000021942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021943$as_echo "$ac_cv_search_opendir" >&6; }
21944ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021945if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021946 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21947
21948fi
21949
21950fi
21951
21952
21953# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021954for 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 +000021955do :
21956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21957ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021958if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021959 cat >>confdefs.h <<_ACEOF
21960#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21961_ACEOF
21962
21963fi
21964
21965done
21966
21967
21968########
21969#
21970# Checks for typedefs, structures, and compiler characteristics.
21971#
21972########
21973
cristy8b350f62009-11-15 23:12:43 +000021974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021975$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021976if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021977 $as_echo_n "(cached) " >&6
21978else
cristy8b350f62009-11-15 23:12:43 +000021979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021980/* end confdefs.h. */
21981
cristy14fefe52012-05-21 00:59:18 +000021982 #include <stdbool.h>
21983 #ifndef bool
21984 "error: bool is not defined"
21985 #endif
21986 #ifndef false
21987 "error: false is not defined"
21988 #endif
21989 #if false
21990 "error: false is not 0"
21991 #endif
21992 #ifndef true
21993 "error: true is not defined"
21994 #endif
21995 #if true != 1
21996 "error: true is not 1"
21997 #endif
21998 #ifndef __bool_true_false_are_defined
21999 "error: __bool_true_false_are_defined is not defined"
22000 #endif
cristy3ed852e2009-09-05 21:47:34 +000022001
cristy14fefe52012-05-21 00:59:18 +000022002 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022003
cristy14fefe52012-05-21 00:59:18 +000022004 char a[true == 1 ? 1 : -1];
22005 char b[false == 0 ? 1 : -1];
22006 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22007 char d[(bool) 0.5 == true ? 1 : -1];
22008 /* See body of main program for 'e'. */
22009 char f[(_Bool) 0.0 == false ? 1 : -1];
22010 char g[true];
22011 char h[sizeof (_Bool)];
22012 char i[sizeof s.t];
22013 enum { j = false, k = true, l = false * true, m = true * 256 };
22014 /* The following fails for
22015 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22016 _Bool n[m];
22017 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22018 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22019 /* Catch a bug in an HP-UX C compiler. See
22020 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22021 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22022 */
22023 _Bool q = true;
22024 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022025
22026int
22027main ()
22028{
22029
cristy14fefe52012-05-21 00:59:18 +000022030 bool e = &s;
22031 *pq |= q;
22032 *pq |= ! q;
22033 /* Refer to every declared value, to avoid compiler optimizations. */
22034 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22035 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022036
22037 ;
22038 return 0;
22039}
22040_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022041if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022042 ac_cv_header_stdbool_h=yes
22043else
cristy8b350f62009-11-15 23:12:43 +000022044 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022045fi
cristy3ed852e2009-09-05 21:47:34 +000022046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22047fi
cristy8b350f62009-11-15 23:12:43 +000022048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022049$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022050 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022051if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022052
22053cat >>confdefs.h <<_ACEOF
22054#define HAVE__BOOL 1
22055_ACEOF
22056
22057
22058fi
22059
cristy14fefe52012-05-21 00:59:18 +000022060
cristy3ed852e2009-09-05 21:47:34 +000022061if test $ac_cv_header_stdbool_h = yes; then
22062
cristy8b350f62009-11-15 23:12:43 +000022063$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022064
22065fi
22066
cristy8b350f62009-11-15 23:12:43 +000022067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022068$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022069if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022070 $as_echo_n "(cached) " >&6
22071else
cristy8b350f62009-11-15 23:12:43 +000022072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022073/* end confdefs.h. */
22074
22075int
22076main ()
22077{
22078
22079volatile int x;
22080int * volatile y = (int *) 0;
22081return !x && !y;
22082 ;
22083 return 0;
22084}
22085_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022086if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022087 ac_cv_c_volatile=yes
22088else
cristy8b350f62009-11-15 23:12:43 +000022089 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022090fi
cristy3ed852e2009-09-05 21:47:34 +000022091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22092fi
cristy8b350f62009-11-15 23:12:43 +000022093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022094$as_echo "$ac_cv_c_volatile" >&6; }
22095if test $ac_cv_c_volatile = no; then
22096
cristy8b350f62009-11-15 23:12:43 +000022097$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022098
22099fi
22100
cristy8b350f62009-11-15 23:12:43 +000022101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022102$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022103if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022104 $as_echo_n "(cached) " >&6
22105else
cristy8b350f62009-11-15 23:12:43 +000022106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022107/* end confdefs.h. */
22108#define x(y) #y
22109
22110char *s = x(teststring);
22111_ACEOF
22112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022113 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022114 ac_cv_c_stringize=no
22115else
22116 ac_cv_c_stringize=yes
22117fi
22118rm -f conftest*
22119
22120fi
cristy8b350f62009-11-15 23:12:43 +000022121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022122$as_echo "$ac_cv_c_stringize" >&6; }
22123if test $ac_cv_c_stringize = yes; then
22124
cristy8b350f62009-11-15 23:12:43 +000022125$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022126
22127fi
22128
cristy8b350f62009-11-15 23:12:43 +000022129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022130$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022131if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022132 $as_echo_n "(cached) " >&6
22133else
cristy8b350f62009-11-15 23:12:43 +000022134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022135/* end confdefs.h. */
22136#include <sys/types.h>
22137#include <sys/stat.h>
22138
22139#if defined S_ISBLK && defined S_IFDIR
22140extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22141#endif
22142
22143#if defined S_ISBLK && defined S_IFCHR
22144extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22145#endif
22146
22147#if defined S_ISLNK && defined S_IFREG
22148extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22149#endif
22150
22151#if defined S_ISSOCK && defined S_IFREG
22152extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22153#endif
22154
22155_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022156if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022157 ac_cv_header_stat_broken=no
22158else
cristy8b350f62009-11-15 23:12:43 +000022159 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022160fi
cristy3ed852e2009-09-05 21:47:34 +000022161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22162fi
cristy8b350f62009-11-15 23:12:43 +000022163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022164$as_echo "$ac_cv_header_stat_broken" >&6; }
22165if test $ac_cv_header_stat_broken = yes; then
22166
cristy8b350f62009-11-15 23:12:43 +000022167$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022168
22169fi
22170
cristy8b350f62009-11-15 23:12:43 +000022171{ $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 +000022172$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022173if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022174 $as_echo_n "(cached) " >&6
22175else
cristy8b350f62009-11-15 23:12:43 +000022176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022177/* end confdefs.h. */
22178#include <sys/types.h>
22179#include <sys/time.h>
22180#include <time.h>
22181
22182int
22183main ()
22184{
22185if ((struct tm *) 0)
22186return 0;
22187 ;
22188 return 0;
22189}
22190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022191if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022192 ac_cv_header_time=yes
22193else
cristy8b350f62009-11-15 23:12:43 +000022194 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022195fi
cristy3ed852e2009-09-05 21:47:34 +000022196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22197fi
cristy8b350f62009-11-15 23:12:43 +000022198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022199$as_echo "$ac_cv_header_time" >&6; }
22200if test $ac_cv_header_time = yes; then
22201
cristy8b350f62009-11-15 23:12:43 +000022202$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022203
22204fi
22205
cristy8b350f62009-11-15 23:12:43 +000022206{ $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 +000022207$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022208if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022209 $as_echo_n "(cached) " >&6
22210else
cristy8b350f62009-11-15 23:12:43 +000022211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022212/* end confdefs.h. */
22213#include <sys/types.h>
22214#include <time.h>
22215
22216int
22217main ()
22218{
22219struct tm tm;
22220 int *p = &tm.tm_sec;
22221 return !p;
22222 ;
22223 return 0;
22224}
22225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022226if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022227 ac_cv_struct_tm=time.h
22228else
cristy8b350f62009-11-15 23:12:43 +000022229 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022230fi
cristy3ed852e2009-09-05 21:47:34 +000022231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22232fi
cristy8b350f62009-11-15 23:12:43 +000022233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022234$as_echo "$ac_cv_struct_tm" >&6; }
22235if test $ac_cv_struct_tm = sys/time.h; then
22236
cristy8b350f62009-11-15 23:12:43 +000022237$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022238
22239fi
22240
cristy92703d82010-04-26 00:18:18 +000022241ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22242#include <$ac_cv_struct_tm>
22243
22244"
cristyda16f162011-02-19 23:52:17 +000022245if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022246
22247cat >>confdefs.h <<_ACEOF
22248#define HAVE_STRUCT_TM_TM_ZONE 1
22249_ACEOF
22250
22251
22252fi
22253
22254if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22255
22256$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22257
22258else
22259 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22260"
cristyda16f162011-02-19 23:52:17 +000022261if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022262 ac_have_decl=1
22263else
22264 ac_have_decl=0
22265fi
22266
22267cat >>confdefs.h <<_ACEOF
22268#define HAVE_DECL_TZNAME $ac_have_decl
22269_ACEOF
22270
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22272$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022273if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022274 $as_echo_n "(cached) " >&6
22275else
22276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22277/* end confdefs.h. */
22278#include <time.h>
22279#if !HAVE_DECL_TZNAME
22280extern char *tzname[];
22281#endif
22282
22283int
22284main ()
22285{
22286return tzname[0][0];
22287 ;
22288 return 0;
22289}
22290_ACEOF
22291if ac_fn_c_try_link "$LINENO"; then :
22292 ac_cv_var_tzname=yes
22293else
22294 ac_cv_var_tzname=no
22295fi
22296rm -f core conftest.err conftest.$ac_objext \
22297 conftest$ac_exeext conftest.$ac_ext
22298fi
22299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22300$as_echo "$ac_cv_var_tzname" >&6; }
22301 if test $ac_cv_var_tzname = yes; then
22302
22303$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22304
22305 fi
22306fi
22307
cristy8b350f62009-11-15 23:12:43 +000022308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022309$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022310if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022311 $as_echo_n "(cached) " >&6
22312else
22313 echo '#! /bin/cat
22314exit 69
22315' >conftest
22316chmod u+x conftest
22317(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22318if test $? -ne 69; then
22319 ac_cv_sys_interpreter=yes
22320else
22321 ac_cv_sys_interpreter=no
22322fi
22323rm -f conftest
22324fi
cristy8b350f62009-11-15 23:12:43 +000022325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022326$as_echo "$ac_cv_sys_interpreter" >&6; }
22327interpval=$ac_cv_sys_interpreter
22328
22329
cristye80f9cb2013-01-09 01:09:31 +000022330#
22331# Checks for language qualifiers and semantics.
22332#
22333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22334$as_echo_n "checking whether char is unsigned... " >&6; }
22335if ${ac_cv_c_char_unsigned+:} false; then :
22336 $as_echo_n "(cached) " >&6
22337else
22338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22339/* end confdefs.h. */
22340$ac_includes_default
22341int
22342main ()
22343{
22344static int test_array [1 - 2 * !(((char) -1) < 0)];
22345test_array [0] = 0;
22346return test_array [0];
22347
22348 ;
22349 return 0;
22350}
22351_ACEOF
22352if ac_fn_c_try_compile "$LINENO"; then :
22353 ac_cv_c_char_unsigned=no
22354else
22355 ac_cv_c_char_unsigned=yes
22356fi
22357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22358fi
22359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22360$as_echo "$ac_cv_c_char_unsigned" >&6; }
22361if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22362 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22363
22364fi
22365
22366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22367$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22368if ${ac_cv_c_const+:} false; then :
22369 $as_echo_n "(cached) " >&6
22370else
22371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22372/* end confdefs.h. */
22373
22374int
22375main ()
22376{
22377
22378#ifndef __cplusplus
22379 /* Ultrix mips cc rejects this sort of thing. */
22380 typedef int charset[2];
22381 const charset cs = { 0, 0 };
22382 /* SunOS 4.1.1 cc rejects this. */
22383 char const *const *pcpcc;
22384 char **ppc;
22385 /* NEC SVR4.0.2 mips cc rejects this. */
22386 struct point {int x, y;};
22387 static struct point const zero = {0,0};
22388 /* AIX XL C 1.02.0.0 rejects this.
22389 It does not let you subtract one const X* pointer from another in
22390 an arm of an if-expression whose if-part is not a constant
22391 expression */
22392 const char *g = "string";
22393 pcpcc = &g + (g ? g-g : 0);
22394 /* HPUX 7.0 cc rejects these. */
22395 ++pcpcc;
22396 ppc = (char**) pcpcc;
22397 pcpcc = (char const *const *) ppc;
22398 { /* SCO 3.2v4 cc rejects this sort of thing. */
22399 char tx;
22400 char *t = &tx;
22401 char const *s = 0 ? (char *) 0 : (char const *) 0;
22402
22403 *t++ = 0;
22404 if (s) return 0;
22405 }
22406 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22407 int x[] = {25, 17};
22408 const int *foo = &x[0];
22409 ++foo;
22410 }
22411 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22412 typedef const int *iptr;
22413 iptr p = 0;
22414 ++p;
22415 }
22416 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22417 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22418 struct s { int j; const int *ap[3]; } bx;
22419 struct s *b = &bx; b->j = 5;
22420 }
22421 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22422 const int foo = 10;
22423 if (!foo) return 0;
22424 }
22425 return !cs[0] && !zero.x;
22426#endif
22427
22428 ;
22429 return 0;
22430}
22431_ACEOF
22432if ac_fn_c_try_compile "$LINENO"; then :
22433 ac_cv_c_const=yes
22434else
22435 ac_cv_c_const=no
22436fi
22437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22438fi
22439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22440$as_echo "$ac_cv_c_const" >&6; }
22441if test $ac_cv_c_const = no; then
22442
22443$as_echo "#define const /**/" >>confdefs.h
22444
22445fi
22446
cristy8b350f62009-11-15 23:12:43 +000022447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022448$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022449if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022450 $as_echo_n "(cached) " >&6
22451else
22452 ac_cv_c_inline=no
22453for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022455/* end confdefs.h. */
22456#ifndef __cplusplus
22457typedef int foo_t;
22458static $ac_kw foo_t static_foo () {return 0; }
22459$ac_kw foo_t foo () {return 0; }
22460#endif
22461
22462_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022463if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022464 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022465fi
cristy3ed852e2009-09-05 21:47:34 +000022466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22467 test "$ac_cv_c_inline" != no && break
22468done
22469
22470fi
cristy8b350f62009-11-15 23:12:43 +000022471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022472$as_echo "$ac_cv_c_inline" >&6; }
22473
cristy3ed852e2009-09-05 21:47:34 +000022474case $ac_cv_c_inline in
22475 inline | yes) ;;
22476 *)
22477 case $ac_cv_c_inline in
22478 no) ac_val=;;
22479 *) ac_val=$ac_cv_c_inline;;
22480 esac
22481 cat >>confdefs.h <<_ACEOF
22482#ifndef __cplusplus
22483#define inline $ac_val
22484#endif
22485_ACEOF
22486 ;;
22487esac
22488
cristy8b350f62009-11-15 23:12:43 +000022489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022490$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022491if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022492 $as_echo_n "(cached) " >&6
22493else
22494 ac_cv_c_restrict=no
22495 # The order here caters to the fact that C++ does not require restrict.
22496 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022498/* end confdefs.h. */
22499typedef int * int_ptr;
22500 int foo (int_ptr $ac_kw ip) {
22501 return ip[0];
22502 }
22503int
22504main ()
22505{
22506int s[1];
22507 int * $ac_kw t = s;
22508 t[0] = 0;
22509 return foo(t)
22510 ;
22511 return 0;
22512}
22513_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022514if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022515 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022516fi
cristy3ed852e2009-09-05 21:47:34 +000022517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22518 test "$ac_cv_c_restrict" != no && break
22519 done
22520
22521fi
cristy8b350f62009-11-15 23:12:43 +000022522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022523$as_echo "$ac_cv_c_restrict" >&6; }
22524
cristy3ed852e2009-09-05 21:47:34 +000022525 case $ac_cv_c_restrict in
22526 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022527 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022528 ;;
22529 *) cat >>confdefs.h <<_ACEOF
22530#define restrict $ac_cv_c_restrict
22531_ACEOF
22532 ;;
22533 esac
22534
cristye80f9cb2013-01-09 01:09:31 +000022535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22536$as_echo_n "checking for working volatile... " >&6; }
22537if ${ac_cv_c_volatile+:} false; then :
22538 $as_echo_n "(cached) " >&6
22539else
22540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22541/* end confdefs.h. */
22542
22543int
22544main ()
22545{
22546
22547volatile int x;
22548int * volatile y = (int *) 0;
22549return !x && !y;
22550 ;
22551 return 0;
22552}
22553_ACEOF
22554if ac_fn_c_try_compile "$LINENO"; then :
22555 ac_cv_c_volatile=yes
22556else
22557 ac_cv_c_volatile=no
22558fi
22559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22560fi
22561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22562$as_echo "$ac_cv_c_volatile" >&6; }
22563if test $ac_cv_c_volatile = no; then
22564
22565$as_echo "#define volatile /**/" >>confdefs.h
22566
22567fi
22568
cristy3ed852e2009-09-05 21:47:34 +000022569
22570# If words are stored with the most significant byte first (like
22571# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022573$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022574if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022575 $as_echo_n "(cached) " >&6
22576else
22577 ac_cv_c_bigendian=unknown
22578 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022580/* end confdefs.h. */
22581#ifndef __APPLE_CC__
22582 not a universal capable compiler
22583 #endif
22584 typedef int dummy;
22585
22586_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022587if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022588
22589 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022590 # there are at least two -arch flags with different values.
22591 ac_arch=
22592 ac_prev=
22593 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22594 if test -n "$ac_prev"; then
22595 case $ac_word in
22596 i?86 | x86_64 | ppc | ppc64)
22597 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22598 ac_arch=$ac_word
22599 else
22600 ac_cv_c_bigendian=universal
22601 break
22602 fi
22603 ;;
22604 esac
22605 ac_prev=
22606 elif test "x$ac_word" = "x-arch"; then
22607 ac_prev=arch
22608 fi
22609 done
cristy3ed852e2009-09-05 21:47:34 +000022610fi
cristy3ed852e2009-09-05 21:47:34 +000022611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22612 if test $ac_cv_c_bigendian = unknown; then
22613 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022615/* end confdefs.h. */
22616#include <sys/types.h>
22617 #include <sys/param.h>
22618
22619int
22620main ()
22621{
22622#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22623 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22624 && LITTLE_ENDIAN)
22625 bogus endian macros
22626 #endif
22627
22628 ;
22629 return 0;
22630}
22631_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022632if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022633 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022635/* end confdefs.h. */
22636#include <sys/types.h>
22637 #include <sys/param.h>
22638
22639int
22640main ()
22641{
22642#if BYTE_ORDER != BIG_ENDIAN
22643 not big endian
22644 #endif
22645
22646 ;
22647 return 0;
22648}
22649_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022650if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022651 ac_cv_c_bigendian=yes
22652else
cristy8b350f62009-11-15 23:12:43 +000022653 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022654fi
cristy3ed852e2009-09-05 21:47:34 +000022655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022656fi
cristy3ed852e2009-09-05 21:47:34 +000022657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22658 fi
22659 if test $ac_cv_c_bigendian = unknown; then
22660 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022662/* end confdefs.h. */
22663#include <limits.h>
22664
22665int
22666main ()
22667{
22668#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22669 bogus endian macros
22670 #endif
22671
22672 ;
22673 return 0;
22674}
22675_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022676if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022677 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022679/* end confdefs.h. */
22680#include <limits.h>
22681
22682int
22683main ()
22684{
22685#ifndef _BIG_ENDIAN
22686 not big endian
22687 #endif
22688
22689 ;
22690 return 0;
22691}
22692_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022693if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022694 ac_cv_c_bigendian=yes
22695else
cristy8b350f62009-11-15 23:12:43 +000022696 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022697fi
cristy3ed852e2009-09-05 21:47:34 +000022698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022699fi
cristy3ed852e2009-09-05 21:47:34 +000022700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22701 fi
22702 if test $ac_cv_c_bigendian = unknown; then
22703 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022704 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022705 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022707/* end confdefs.h. */
22708short int ascii_mm[] =
22709 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22710 short int ascii_ii[] =
22711 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22712 int use_ascii (int i) {
22713 return ascii_mm[i] + ascii_ii[i];
22714 }
22715 short int ebcdic_ii[] =
22716 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22717 short int ebcdic_mm[] =
22718 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22719 int use_ebcdic (int i) {
22720 return ebcdic_mm[i] + ebcdic_ii[i];
22721 }
22722 extern int foo;
22723
22724int
22725main ()
22726{
22727return use_ascii (foo) == use_ebcdic (foo);
22728 ;
22729 return 0;
22730}
22731_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022732if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022733 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22734 ac_cv_c_bigendian=yes
22735 fi
22736 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22737 if test "$ac_cv_c_bigendian" = unknown; then
22738 ac_cv_c_bigendian=no
22739 else
22740 # finding both strings is unlikely to happen, but who knows?
22741 ac_cv_c_bigendian=unknown
22742 fi
22743 fi
cristy3ed852e2009-09-05 21:47:34 +000022744fi
cristy3ed852e2009-09-05 21:47:34 +000022745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22746else
cristy8b350f62009-11-15 23:12:43 +000022747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022748/* end confdefs.h. */
22749$ac_includes_default
22750int
22751main ()
22752{
22753
22754 /* Are we little or big endian? From Harbison&Steele. */
22755 union
22756 {
22757 long int l;
22758 char c[sizeof (long int)];
22759 } u;
22760 u.l = 1;
22761 return u.c[sizeof (long int) - 1] == 1;
22762
22763 ;
22764 return 0;
22765}
22766_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022767if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022768 ac_cv_c_bigendian=no
22769else
cristy8b350f62009-11-15 23:12:43 +000022770 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022771fi
cristy8b350f62009-11-15 23:12:43 +000022772rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22773 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022774fi
22775
cristy3ed852e2009-09-05 21:47:34 +000022776 fi
22777fi
cristy8b350f62009-11-15 23:12:43 +000022778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022779$as_echo "$ac_cv_c_bigendian" >&6; }
22780 case $ac_cv_c_bigendian in #(
22781 yes)
cristy8b350f62009-11-15 23:12:43 +000022782 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022783;; #(
22784 no)
22785 ;; #(
22786 universal)
22787
cristy8b350f62009-11-15 23:12:43 +000022788$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022789
22790 ;; #(
22791 *)
cristy98dddb52010-11-04 00:30:15 +000022792 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022793 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022794 esac
22795
22796
cristy501c8042011-05-26 17:46:28 +000022797# Define to a suitable type, if standard headers do not define it.
22798ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22799case $ac_cv_c_int8_t in #(
22800 no|yes) ;; #(
22801 *)
cristy3ed852e2009-09-05 21:47:34 +000022802
22803cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022804#define int8_t $ac_cv_c_int8_t
22805_ACEOF
22806;;
22807esac
22808
22809ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22810case $ac_cv_c_int16_t in #(
22811 no|yes) ;; #(
22812 *)
22813
22814cat >>confdefs.h <<_ACEOF
22815#define int16_t $ac_cv_c_int16_t
22816_ACEOF
22817;;
22818esac
22819
22820ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22821case $ac_cv_c_int32_t in #(
22822 no|yes) ;; #(
22823 *)
22824
22825cat >>confdefs.h <<_ACEOF
22826#define int32_t $ac_cv_c_int32_t
22827_ACEOF
22828;;
22829esac
22830
22831ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22832case $ac_cv_c_int64_t in #(
22833 no|yes) ;; #(
22834 *)
22835
22836cat >>confdefs.h <<_ACEOF
22837#define int64_t $ac_cv_c_int64_t
22838_ACEOF
22839;;
22840esac
22841
22842
cristy045228a2013-06-23 11:00:16 +000022843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22844$as_echo_n "checking for unsigned long long int... " >&6; }
22845if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022846 $as_echo_n "(cached) " >&6
22847else
cristy045228a2013-06-23 11:00:16 +000022848 ac_cv_type_unsigned_long_long_int=yes
22849 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022851/* end confdefs.h. */
22852
22853 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022854 implementations with broken preprocessors. Perhaps this can
22855 be revisited in 2012. In the meantime, code should not expect
22856 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022857 /* Test literals. */
22858 long long int ll = 9223372036854775807ll;
22859 long long int nll = -9223372036854775807LL;
22860 unsigned long long int ull = 18446744073709551615ULL;
22861 /* Test constant expressions. */
22862 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022863 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022864 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022865 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022866 int i = 63;
22867int
22868main ()
22869{
22870/* Test availability of runtime routines for shift and division. */
22871 long long int llmax = 9223372036854775807ll;
22872 unsigned long long int ullmax = 18446744073709551615ull;
22873 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022874 | (llmax / ll) | (llmax % ll)
22875 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22876 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022877 ;
22878 return 0;
22879}
22880
22881_ACEOF
22882if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022883
22884else
22885 ac_cv_type_unsigned_long_long_int=no
22886fi
22887rm -f core conftest.err conftest.$ac_objext \
22888 conftest$ac_exeext conftest.$ac_ext
22889 fi
22890fi
22891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22892$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22893 if test $ac_cv_type_unsigned_long_long_int = yes; then
22894
22895$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22896
22897 fi
22898
22899
22900
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22902$as_echo_n "checking for long long int... " >&6; }
22903if ${ac_cv_type_long_long_int+:} false; then :
22904 $as_echo_n "(cached) " >&6
22905else
cristy501c8042011-05-26 17:46:28 +000022906 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022907 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022908 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22909 if test $ac_cv_type_long_long_int = yes; then
22910 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022911 :
cristy501c8042011-05-26 17:46:28 +000022912else
22913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22914/* end confdefs.h. */
22915#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022916 #ifndef LLONG_MAX
22917 # define HALF \
22918 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22919 # define LLONG_MAX (HALF - 1 + HALF)
22920 #endif
cristy501c8042011-05-26 17:46:28 +000022921int
22922main ()
22923{
22924long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022925 int i;
22926 for (i = 0; ; i++)
22927 {
22928 long long int m = n << i;
22929 if (m >> i != n)
22930 return 1;
22931 if (LLONG_MAX / 2 < m)
22932 break;
22933 }
22934 return 0;
cristy501c8042011-05-26 17:46:28 +000022935 ;
22936 return 0;
22937}
22938_ACEOF
22939if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022940
cristy501c8042011-05-26 17:46:28 +000022941else
22942 ac_cv_type_long_long_int=no
22943fi
22944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22945 conftest.$ac_objext conftest.beam conftest.$ac_ext
22946fi
22947
cristy5ed9c6e2013-07-14 21:20:31 +000022948 fi
cristy045228a2013-06-23 11:00:16 +000022949 fi
cristy501c8042011-05-26 17:46:28 +000022950fi
22951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22952$as_echo "$ac_cv_type_long_long_int" >&6; }
22953 if test $ac_cv_type_long_long_int = yes; then
22954
22955$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22956
22957 fi
22958
22959
22960
22961 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22962if test "x$ac_cv_type_intmax_t" = xyes; then :
22963
22964$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22965
22966else
22967 test $ac_cv_type_long_long_int = yes \
22968 && ac_type='long long int' \
22969 || ac_type='long int'
22970
22971cat >>confdefs.h <<_ACEOF
22972#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022973_ACEOF
22974
22975fi
22976
22977
cristy501c8042011-05-26 17:46:28 +000022978
22979 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22980if test "x$ac_cv_type_intptr_t" = xyes; then :
22981
22982$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022983
cristy3ed852e2009-09-05 21:47:34 +000022984else
cristy501c8042011-05-26 17:46:28 +000022985 for ac_type in 'int' 'long int' 'long long int'; do
22986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22987/* end confdefs.h. */
22988$ac_includes_default
22989int
22990main ()
22991{
22992static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022993test_array [0] = 0;
22994return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022995
22996 ;
22997 return 0;
22998}
22999_ACEOF
23000if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023001
23002cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023003#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023004_ACEOF
23005
cristy501c8042011-05-26 17:46:28 +000023006 ac_type=
23007fi
23008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23009 test -z "$ac_type" && break
23010 done
cristy3ed852e2009-09-05 21:47:34 +000023011fi
23012
23013
cristy3ed852e2009-09-05 21:47:34 +000023014
cristy501c8042011-05-26 17:46:28 +000023015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23016$as_echo_n "checking for long double... " >&6; }
23017if ${ac_cv_type_long_double+:} false; then :
23018 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023019else
cristy501c8042011-05-26 17:46:28 +000023020 if test "$GCC" = yes; then
23021 ac_cv_type_long_double=yes
23022 else
23023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23024/* end confdefs.h. */
23025/* The Stardent Vistra knows sizeof (long double), but does
23026 not support it. */
23027 long double foo = 0.0L;
23028int
23029main ()
23030{
23031static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23032 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023033test_array [0] = 0;
23034return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023035
cristy501c8042011-05-26 17:46:28 +000023036 ;
23037 return 0;
23038}
cristy3ed852e2009-09-05 21:47:34 +000023039_ACEOF
cristy501c8042011-05-26 17:46:28 +000023040if ac_fn_c_try_compile "$LINENO"; then :
23041 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023042else
cristy501c8042011-05-26 17:46:28 +000023043 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023044fi
cristy501c8042011-05-26 17:46:28 +000023045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23046 fi
cristy3ed852e2009-09-05 21:47:34 +000023047fi
cristy501c8042011-05-26 17:46:28 +000023048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23049$as_echo "$ac_cv_type_long_double" >&6; }
23050 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023051
cristy501c8042011-05-26 17:46:28 +000023052$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023053
cristy501c8042011-05-26 17:46:28 +000023054 fi
23055
cristy3ed852e2009-09-05 21:47:34 +000023056
cristy8b350f62009-11-15 23:12:43 +000023057 { $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 +000023058$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023059if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023060 $as_echo_n "(cached) " >&6
23061else
cristy8b350f62009-11-15 23:12:43 +000023062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023063/* end confdefs.h. */
23064#include <float.h>
23065 long double const a[] =
23066 {
23067 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23068 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23069 };
23070 long double
23071 f (long double x)
23072 {
23073 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23074 + (x ? f (x) : 'c'));
23075 }
23076
23077int
23078main ()
23079{
23080static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23081 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23082 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23083 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23084 && (int) LDBL_EPSILON == 0
23085 )];
cristy14fefe52012-05-21 00:59:18 +000023086test_array [0] = 0;
23087return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023088
23089 ;
23090 return 0;
23091}
23092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023093if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023094 ac_cv_type_long_double_wider=yes
23095else
cristy8b350f62009-11-15 23:12:43 +000023096 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023097fi
cristy3ed852e2009-09-05 21:47:34 +000023098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23099fi
cristy8b350f62009-11-15 23:12:43 +000023100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023101$as_echo "$ac_cv_type_long_double_wider" >&6; }
23102 if test $ac_cv_type_long_double_wider = yes; then
23103
cristy8b350f62009-11-15 23:12:43 +000023104$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023105
23106 fi
23107
23108
cristy045228a2013-06-23 11:00:16 +000023109
cristy501c8042011-05-26 17:46:28 +000023110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23111$as_echo_n "checking for long long int... " >&6; }
23112if ${ac_cv_type_long_long_int+:} false; then :
23113 $as_echo_n "(cached) " >&6
23114else
cristy501c8042011-05-26 17:46:28 +000023115 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023116 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023117 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23118 if test $ac_cv_type_long_long_int = yes; then
23119 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023120 :
cristy501c8042011-05-26 17:46:28 +000023121else
23122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23123/* end confdefs.h. */
23124#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023125 #ifndef LLONG_MAX
23126 # define HALF \
23127 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23128 # define LLONG_MAX (HALF - 1 + HALF)
23129 #endif
cristy501c8042011-05-26 17:46:28 +000023130int
23131main ()
23132{
23133long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023134 int i;
23135 for (i = 0; ; i++)
23136 {
23137 long long int m = n << i;
23138 if (m >> i != n)
23139 return 1;
23140 if (LLONG_MAX / 2 < m)
23141 break;
23142 }
23143 return 0;
cristy501c8042011-05-26 17:46:28 +000023144 ;
23145 return 0;
23146}
23147_ACEOF
23148if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023149
cristy501c8042011-05-26 17:46:28 +000023150else
23151 ac_cv_type_long_long_int=no
23152fi
23153rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23154 conftest.$ac_objext conftest.beam conftest.$ac_ext
23155fi
23156
cristy5ed9c6e2013-07-14 21:20:31 +000023157 fi
cristy045228a2013-06-23 11:00:16 +000023158 fi
cristy501c8042011-05-26 17:46:28 +000023159fi
23160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23161$as_echo "$ac_cv_type_long_long_int" >&6; }
23162 if test $ac_cv_type_long_long_int = yes; then
23163
23164$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23165
23166 fi
23167
23168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23169$as_echo_n "checking for mbstate_t... " >&6; }
23170if ${ac_cv_type_mbstate_t+:} false; then :
23171 $as_echo_n "(cached) " >&6
23172else
23173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23174/* end confdefs.h. */
23175$ac_includes_default
23176# include <wchar.h>
23177int
23178main ()
23179{
23180mbstate_t x; return sizeof x;
23181 ;
23182 return 0;
23183}
23184_ACEOF
23185if ac_fn_c_try_compile "$LINENO"; then :
23186 ac_cv_type_mbstate_t=yes
23187else
23188 ac_cv_type_mbstate_t=no
23189fi
23190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23191fi
23192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23193$as_echo "$ac_cv_type_mbstate_t" >&6; }
23194 if test $ac_cv_type_mbstate_t = yes; then
23195
23196$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23197
23198 else
23199
23200$as_echo "#define mbstate_t int" >>confdefs.h
23201
23202 fi
23203ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23204if test "x$ac_cv_type_mode_t" = xyes; then :
23205
23206else
23207
23208cat >>confdefs.h <<_ACEOF
23209#define mode_t int
23210_ACEOF
23211
23212fi
23213
23214ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23215if test "x$ac_cv_type_off_t" = xyes; then :
23216
23217else
23218
23219cat >>confdefs.h <<_ACEOF
23220#define off_t long int
23221_ACEOF
23222
23223fi
23224
23225ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23226if test "x$ac_cv_type_pid_t" = xyes; then :
23227
23228else
23229
23230cat >>confdefs.h <<_ACEOF
23231#define pid_t int
23232_ACEOF
23233
23234fi
23235
23236ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23237if test "x$ac_cv_type_size_t" = xyes; then :
23238
23239else
23240
23241cat >>confdefs.h <<_ACEOF
23242#define size_t unsigned int
23243_ACEOF
23244
23245fi
23246
23247ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23248if test "x$ac_cv_type_ssize_t" = xyes; then :
23249
23250else
23251
23252cat >>confdefs.h <<_ACEOF
23253#define ssize_t int
23254_ACEOF
23255
23256fi
23257
23258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23259$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23260if ${ac_cv_type_uid_t+:} false; then :
23261 $as_echo_n "(cached) " >&6
23262else
23263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23264/* end confdefs.h. */
23265#include <sys/types.h>
23266
23267_ACEOF
23268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23269 $EGREP "uid_t" >/dev/null 2>&1; then :
23270 ac_cv_type_uid_t=yes
23271else
23272 ac_cv_type_uid_t=no
23273fi
23274rm -f conftest*
23275
23276fi
23277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23278$as_echo "$ac_cv_type_uid_t" >&6; }
23279if test $ac_cv_type_uid_t = no; then
23280
23281$as_echo "#define uid_t int" >>confdefs.h
23282
23283
23284$as_echo "#define gid_t int" >>confdefs.h
23285
23286fi
23287
23288ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23289case $ac_cv_c_uint8_t in #(
23290 no|yes) ;; #(
23291 *)
23292
23293$as_echo "#define _UINT8_T 1" >>confdefs.h
23294
23295
23296cat >>confdefs.h <<_ACEOF
23297#define uint8_t $ac_cv_c_uint8_t
23298_ACEOF
23299;;
23300 esac
23301
23302ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23303case $ac_cv_c_uint16_t in #(
23304 no|yes) ;; #(
23305 *)
23306
23307
23308cat >>confdefs.h <<_ACEOF
23309#define uint16_t $ac_cv_c_uint16_t
23310_ACEOF
23311;;
23312 esac
23313
23314ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23315case $ac_cv_c_uint32_t in #(
23316 no|yes) ;; #(
23317 *)
23318
23319$as_echo "#define _UINT32_T 1" >>confdefs.h
23320
23321
23322cat >>confdefs.h <<_ACEOF
23323#define uint32_t $ac_cv_c_uint32_t
23324_ACEOF
23325;;
23326 esac
23327
23328ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23329case $ac_cv_c_uint64_t in #(
23330 no|yes) ;; #(
23331 *)
23332
23333$as_echo "#define _UINT64_T 1" >>confdefs.h
23334
23335
23336cat >>confdefs.h <<_ACEOF
23337#define uint64_t $ac_cv_c_uint64_t
23338_ACEOF
23339;;
23340 esac
23341
23342
cristy501c8042011-05-26 17:46:28 +000023343
23344 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23345if test "x$ac_cv_type_uintmax_t" = xyes; then :
23346
23347$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23348
23349else
23350 test $ac_cv_type_unsigned_long_long_int = yes \
23351 && ac_type='unsigned long long int' \
23352 || ac_type='unsigned long int'
23353
23354cat >>confdefs.h <<_ACEOF
23355#define uintmax_t $ac_type
23356_ACEOF
23357
23358fi
23359
23360
23361
23362 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23363if test "x$ac_cv_type_uintptr_t" = xyes; then :
23364
23365$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23366
23367else
23368 for ac_type in 'unsigned int' 'unsigned long int' \
23369 'unsigned long long int'; do
23370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23371/* end confdefs.h. */
23372$ac_includes_default
23373int
23374main ()
23375{
23376static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023377test_array [0] = 0;
23378return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023379
23380 ;
23381 return 0;
23382}
23383_ACEOF
23384if ac_fn_c_try_compile "$LINENO"; then :
23385
23386cat >>confdefs.h <<_ACEOF
23387#define uintptr_t $ac_type
23388_ACEOF
23389
23390 ac_type=
23391fi
23392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23393 test -z "$ac_type" && break
23394 done
23395fi
23396
23397
23398
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23400$as_echo_n "checking for unsigned long long int... " >&6; }
23401if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23402 $as_echo_n "(cached) " >&6
23403else
cristy045228a2013-06-23 11:00:16 +000023404 ac_cv_type_unsigned_long_long_int=yes
23405 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023407/* end confdefs.h. */
23408
23409 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023410 implementations with broken preprocessors. Perhaps this can
23411 be revisited in 2012. In the meantime, code should not expect
23412 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023413 /* Test literals. */
23414 long long int ll = 9223372036854775807ll;
23415 long long int nll = -9223372036854775807LL;
23416 unsigned long long int ull = 18446744073709551615ULL;
23417 /* Test constant expressions. */
23418 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023419 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023420 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023421 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023422 int i = 63;
23423int
23424main ()
23425{
23426/* Test availability of runtime routines for shift and division. */
23427 long long int llmax = 9223372036854775807ll;
23428 unsigned long long int ullmax = 18446744073709551615ull;
23429 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023430 | (llmax / ll) | (llmax % ll)
23431 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23432 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023433 ;
23434 return 0;
23435}
23436
23437_ACEOF
23438if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023439
cristy501c8042011-05-26 17:46:28 +000023440else
23441 ac_cv_type_unsigned_long_long_int=no
23442fi
23443rm -f core conftest.err conftest.$ac_objext \
23444 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023445 fi
cristy501c8042011-05-26 17:46:28 +000023446fi
23447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23448$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23449 if test $ac_cv_type_unsigned_long_long_int = yes; then
23450
23451$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23452
23453 fi
23454
23455
cristyfec31822013-05-23 12:32:12 +000023456# Float_t and double_t are intended to be the the most efficient type.
23457ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23458"
23459if test "x$ac_cv_type_float_t" = xyes; then :
23460
23461cat >>confdefs.h <<_ACEOF
23462#define HAVE_FLOAT_T 1
23463_ACEOF
23464
23465
23466fi
23467
23468ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23469"
23470if test "x$ac_cv_type_double_t" = xyes; then :
23471
23472cat >>confdefs.h <<_ACEOF
23473#define HAVE_DOUBLE_T 1
23474_ACEOF
23475
23476
23477fi
23478
23479# The cast to long int works around a bug in the HP C Compiler
23480# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23481# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23482# This bug is HP SR number 8606223364.
23483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23484$as_echo_n "checking size of float_t... " >&6; }
23485if ${ac_cv_sizeof_float_t+:} false; then :
23486 $as_echo_n "(cached) " >&6
23487else
23488 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23489"; then :
23490
23491else
23492 if test "$ac_cv_type_float_t" = yes; then
23493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23495as_fn_error 77 "cannot compute sizeof (float_t)
23496See \`config.log' for more details" "$LINENO" 5; }
23497 else
23498 ac_cv_sizeof_float_t=0
23499 fi
23500fi
23501
23502fi
23503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23504$as_echo "$ac_cv_sizeof_float_t" >&6; }
23505
23506
23507
23508cat >>confdefs.h <<_ACEOF
23509#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23510_ACEOF
23511
23512
23513# The cast to long int works around a bug in the HP C Compiler
23514# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23515# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23516# This bug is HP SR number 8606223364.
23517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23518$as_echo_n "checking size of double_t... " >&6; }
23519if ${ac_cv_sizeof_double_t+:} false; then :
23520 $as_echo_n "(cached) " >&6
23521else
23522 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23523"; then :
23524
23525else
23526 if test "$ac_cv_type_double_t" = yes; then
23527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23529as_fn_error 77 "cannot compute sizeof (double_t)
23530See \`config.log' for more details" "$LINENO" 5; }
23531 else
23532 ac_cv_sizeof_double_t=0
23533 fi
23534fi
23535
23536fi
23537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23538$as_echo "$ac_cv_sizeof_double_t" >&6; }
23539
23540
23541
23542cat >>confdefs.h <<_ACEOF
23543#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23544_ACEOF
23545
23546
23547
cristy9b86f202012-11-28 21:55:35 +000023548# Get size of float, double and long double for comparaison.
23549# The cast to long int works around a bug in the HP C Compiler
23550# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23551# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23552# This bug is HP SR number 8606223364.
23553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23554$as_echo_n "checking size of float... " >&6; }
23555if ${ac_cv_sizeof_float+:} false; then :
23556 $as_echo_n "(cached) " >&6
23557else
23558 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23559
23560else
23561 if test "$ac_cv_type_float" = yes; then
23562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23564as_fn_error 77 "cannot compute sizeof (float)
23565See \`config.log' for more details" "$LINENO" 5; }
23566 else
23567 ac_cv_sizeof_float=0
23568 fi
23569fi
23570
23571fi
23572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23573$as_echo "$ac_cv_sizeof_float" >&6; }
23574
23575
23576
23577cat >>confdefs.h <<_ACEOF
23578#define SIZEOF_FLOAT $ac_cv_sizeof_float
23579_ACEOF
23580
23581
23582# The cast to long int works around a bug in the HP C Compiler
23583# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23584# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23585# This bug is HP SR number 8606223364.
23586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23587$as_echo_n "checking size of double... " >&6; }
23588if ${ac_cv_sizeof_double+:} false; then :
23589 $as_echo_n "(cached) " >&6
23590else
23591 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23592
23593else
23594 if test "$ac_cv_type_double" = yes; then
23595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23597as_fn_error 77 "cannot compute sizeof (double)
23598See \`config.log' for more details" "$LINENO" 5; }
23599 else
23600 ac_cv_sizeof_double=0
23601 fi
23602fi
23603
23604fi
23605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23606$as_echo "$ac_cv_sizeof_double" >&6; }
23607
23608
23609
23610cat >>confdefs.h <<_ACEOF
23611#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23612_ACEOF
23613
23614
cristyfec31822013-05-23 12:32:12 +000023615# The cast to long int works around a bug in the HP C Compiler
23616# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23617# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23618# This bug is HP SR number 8606223364.
23619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23620$as_echo_n "checking size of long double... " >&6; }
23621if ${ac_cv_sizeof_long_double+:} false; then :
23622 $as_echo_n "(cached) " >&6
23623else
23624 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23625
23626else
23627 if test "$ac_cv_type_long_double" = yes; then
23628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23630as_fn_error 77 "cannot compute sizeof (long double)
23631See \`config.log' for more details" "$LINENO" 5; }
23632 else
23633 ac_cv_sizeof_long_double=0
23634 fi
23635fi
23636
23637fi
23638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23639$as_echo "$ac_cv_sizeof_long_double" >&6; }
23640
23641
23642
23643cat >>confdefs.h <<_ACEOF
23644#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23645_ACEOF
23646
23647
cristyf0cf9a22012-10-24 12:05:01 +000023648
cristy3ed852e2009-09-05 21:47:34 +000023649# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23650# The cast to long int works around a bug in the HP C Compiler
23651# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23652# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23653# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023655$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023656if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023657 $as_echo_n "(cached) " >&6
23658else
cristy8b350f62009-11-15 23:12:43 +000023659 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 +000023660
cristy3ed852e2009-09-05 21:47:34 +000023661else
cristy8b350f62009-11-15 23:12:43 +000023662 if test "$ac_cv_type_signed_short" = yes; then
23663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023665as_fn_error 77 "cannot compute sizeof (signed short)
23666See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023667 else
23668 ac_cv_sizeof_signed_short=0
23669 fi
23670fi
cristy8b350f62009-11-15 23:12:43 +000023671
cristy3ed852e2009-09-05 21:47:34 +000023672fi
cristy8b350f62009-11-15 23:12:43 +000023673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023674$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23675
23676
23677
23678cat >>confdefs.h <<_ACEOF
23679#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23680_ACEOF
23681
23682
23683
23684# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23685# The cast to long int works around a bug in the HP C Compiler
23686# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23687# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23688# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023690$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023691if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023692 $as_echo_n "(cached) " >&6
23693else
cristy8b350f62009-11-15 23:12:43 +000023694 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 +000023695
cristy3ed852e2009-09-05 21:47:34 +000023696else
cristy8b350f62009-11-15 23:12:43 +000023697 if test "$ac_cv_type_unsigned_short" = yes; then
23698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023700as_fn_error 77 "cannot compute sizeof (unsigned short)
23701See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023702 else
23703 ac_cv_sizeof_unsigned_short=0
23704 fi
23705fi
cristy8b350f62009-11-15 23:12:43 +000023706
cristy3ed852e2009-09-05 21:47:34 +000023707fi
cristy8b350f62009-11-15 23:12:43 +000023708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023709$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23710
23711
23712
23713cat >>confdefs.h <<_ACEOF
23714#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23715_ACEOF
23716
23717
23718
23719# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23720# The cast to long int works around a bug in the HP C Compiler
23721# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23722# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23723# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023725$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023726if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023727 $as_echo_n "(cached) " >&6
23728else
cristy8b350f62009-11-15 23:12:43 +000023729 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 +000023730
cristy3ed852e2009-09-05 21:47:34 +000023731else
cristy8b350f62009-11-15 23:12:43 +000023732 if test "$ac_cv_type_signed_int" = yes; then
23733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023735as_fn_error 77 "cannot compute sizeof (signed int)
23736See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023737 else
23738 ac_cv_sizeof_signed_int=0
23739 fi
23740fi
cristy8b350f62009-11-15 23:12:43 +000023741
cristy3ed852e2009-09-05 21:47:34 +000023742fi
cristy8b350f62009-11-15 23:12:43 +000023743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023744$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23745
23746
23747
23748cat >>confdefs.h <<_ACEOF
23749#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23750_ACEOF
23751
23752
23753
23754# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23755# The cast to long int works around a bug in the HP C Compiler
23756# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23757# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23758# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023760$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023761if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023762 $as_echo_n "(cached) " >&6
23763else
cristy8b350f62009-11-15 23:12:43 +000023764 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 +000023765
cristy3ed852e2009-09-05 21:47:34 +000023766else
cristy8b350f62009-11-15 23:12:43 +000023767 if test "$ac_cv_type_unsigned_int" = yes; then
23768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023770as_fn_error 77 "cannot compute sizeof (unsigned int)
23771See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023772 else
23773 ac_cv_sizeof_unsigned_int=0
23774 fi
23775fi
cristy8b350f62009-11-15 23:12:43 +000023776
cristy3ed852e2009-09-05 21:47:34 +000023777fi
cristy8b350f62009-11-15 23:12:43 +000023778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023779$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23780
23781
23782
23783cat >>confdefs.h <<_ACEOF
23784#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23785_ACEOF
23786
23787
23788
23789# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23790# The cast to long int works around a bug in the HP C Compiler
23791# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23792# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23793# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023795$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023796if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023797 $as_echo_n "(cached) " >&6
23798else
cristy8b350f62009-11-15 23:12:43 +000023799 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 +000023800
cristy3ed852e2009-09-05 21:47:34 +000023801else
cristy8b350f62009-11-15 23:12:43 +000023802 if test "$ac_cv_type_signed_long" = yes; then
23803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023804$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023805as_fn_error 77 "cannot compute sizeof (signed long)
23806See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023807 else
23808 ac_cv_sizeof_signed_long=0
23809 fi
23810fi
cristy8b350f62009-11-15 23:12:43 +000023811
cristy3ed852e2009-09-05 21:47:34 +000023812fi
cristy8b350f62009-11-15 23:12:43 +000023813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023814$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23815
23816
23817
23818cat >>confdefs.h <<_ACEOF
23819#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23820_ACEOF
23821
23822
23823
23824# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23825# The cast to long int works around a bug in the HP C Compiler
23826# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23827# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23828# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023830$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023831if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023832 $as_echo_n "(cached) " >&6
23833else
cristy8b350f62009-11-15 23:12:43 +000023834 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 +000023835
cristy3ed852e2009-09-05 21:47:34 +000023836else
cristy8b350f62009-11-15 23:12:43 +000023837 if test "$ac_cv_type_unsigned_long" = yes; then
23838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023840as_fn_error 77 "cannot compute sizeof (unsigned long)
23841See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023842 else
23843 ac_cv_sizeof_unsigned_long=0
23844 fi
23845fi
cristy8b350f62009-11-15 23:12:43 +000023846
cristy3ed852e2009-09-05 21:47:34 +000023847fi
cristy8b350f62009-11-15 23:12:43 +000023848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023849$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23850
23851
23852
23853cat >>confdefs.h <<_ACEOF
23854#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23855_ACEOF
23856
23857
23858
23859# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23860# 'signed long long' is not supported then the value defined is zero.
23861# The cast to long int works around a bug in the HP C Compiler
23862# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23863# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23864# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023866$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023867if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023868 $as_echo_n "(cached) " >&6
23869else
cristy8b350f62009-11-15 23:12:43 +000023870 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 +000023871
cristy3ed852e2009-09-05 21:47:34 +000023872else
cristy8b350f62009-11-15 23:12:43 +000023873 if test "$ac_cv_type_signed_long_long" = yes; then
23874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023876as_fn_error 77 "cannot compute sizeof (signed long long)
23877See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023878 else
23879 ac_cv_sizeof_signed_long_long=0
23880 fi
23881fi
cristy8b350f62009-11-15 23:12:43 +000023882
cristy3ed852e2009-09-05 21:47:34 +000023883fi
cristy8b350f62009-11-15 23:12:43 +000023884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023885$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23886
23887
23888
23889cat >>confdefs.h <<_ACEOF
23890#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23891_ACEOF
23892
23893
23894
23895# Obtain size of a 'unsigned long long' and define as
23896# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23897# supported then the value defined is zero.
23898# The cast to long int works around a bug in the HP C Compiler
23899# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23900# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23901# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023903$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023904if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023905 $as_echo_n "(cached) " >&6
23906else
cristy8b350f62009-11-15 23:12:43 +000023907 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 +000023908
cristy3ed852e2009-09-05 21:47:34 +000023909else
cristy8b350f62009-11-15 23:12:43 +000023910 if test "$ac_cv_type_unsigned_long_long" = yes; then
23911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023913as_fn_error 77 "cannot compute sizeof (unsigned long long)
23914See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023915 else
23916 ac_cv_sizeof_unsigned_long_long=0
23917 fi
23918fi
cristy8b350f62009-11-15 23:12:43 +000023919
cristy3ed852e2009-09-05 21:47:34 +000023920fi
cristy8b350f62009-11-15 23:12:43 +000023921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023922$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23923
23924
23925
23926cat >>confdefs.h <<_ACEOF
23927#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23928_ACEOF
23929
23930
23931
cristyfec31822013-05-23 12:32:12 +000023932# Obtain size of off_t and define as SIZEOF_OFF_T
23933# The cast to long int works around a bug in the HP C Compiler
23934# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23935# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23936# This bug is HP SR number 8606223364.
23937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23938$as_echo_n "checking size of off_t... " >&6; }
23939if ${ac_cv_sizeof_off_t+:} false; then :
23940 $as_echo_n "(cached) " >&6
23941else
23942 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23943
23944else
23945 if test "$ac_cv_type_off_t" = yes; then
23946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23948as_fn_error 77 "cannot compute sizeof (off_t)
23949See \`config.log' for more details" "$LINENO" 5; }
23950 else
23951 ac_cv_sizeof_off_t=0
23952 fi
23953fi
23954
23955fi
23956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23957$as_echo "$ac_cv_sizeof_off_t" >&6; }
23958
23959
23960
23961cat >>confdefs.h <<_ACEOF
23962#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23963_ACEOF
23964
23965
23966
23967# Obtain size of size_t and define as SIZEOF_SIZE_T
23968# The cast to long int works around a bug in the HP C Compiler
23969# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23970# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23971# This bug is HP SR number 8606223364.
23972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23973$as_echo_n "checking size of size_t... " >&6; }
23974if ${ac_cv_sizeof_size_t+:} false; then :
23975 $as_echo_n "(cached) " >&6
23976else
23977 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23978
23979else
23980 if test "$ac_cv_type_size_t" = yes; then
23981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23983as_fn_error 77 "cannot compute sizeof (size_t)
23984See \`config.log' for more details" "$LINENO" 5; }
23985 else
23986 ac_cv_sizeof_size_t=0
23987 fi
23988fi
23989
23990fi
23991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23992$as_echo "$ac_cv_sizeof_size_t" >&6; }
23993
23994
23995
23996cat >>confdefs.h <<_ACEOF
23997#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23998_ACEOF
23999
24000
24001
24002# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24003# The cast to long int works around a bug in the HP C Compiler
24004# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24005# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24006# This bug is HP SR number 8606223364.
24007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24008$as_echo_n "checking size of ssize_t... " >&6; }
24009if ${ac_cv_sizeof_ssize_t+:} false; then :
24010 $as_echo_n "(cached) " >&6
24011else
24012 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24013
24014else
24015 if test "$ac_cv_type_ssize_t" = yes; then
24016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24018as_fn_error 77 "cannot compute sizeof (ssize_t)
24019See \`config.log' for more details" "$LINENO" 5; }
24020 else
24021 ac_cv_sizeof_ssize_t=0
24022 fi
24023fi
24024
24025fi
24026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24027$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24028
24029
24030
24031cat >>confdefs.h <<_ACEOF
24032#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24033_ACEOF
24034
24035
24036
cristy3ed852e2009-09-05 21:47:34 +000024037# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24038# The cast to long int works around a bug in the HP C Compiler
24039# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24040# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24041# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024043$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024044if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024045 $as_echo_n "(cached) " >&6
24046else
cristy8b350f62009-11-15 23:12:43 +000024047 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 +000024048
cristy3ed852e2009-09-05 21:47:34 +000024049else
cristy8b350f62009-11-15 23:12:43 +000024050 if test "$ac_cv_type_unsigned_intp" = yes; then
24051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024053as_fn_error 77 "cannot compute sizeof (unsigned int*)
24054See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024055 else
24056 ac_cv_sizeof_unsigned_intp=0
24057 fi
24058fi
cristy8b350f62009-11-15 23:12:43 +000024059
cristy3ed852e2009-09-05 21:47:34 +000024060fi
cristy8b350f62009-11-15 23:12:43 +000024061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024062$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24063
24064
24065
24066cat >>confdefs.h <<_ACEOF
24067#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24068_ACEOF
24069
24070
24071
24072#
24073# Compute sized types for current CPU and compiler options.
24074#
24075
cristy8b350f62009-11-15 23:12:43 +000024076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024077$as_echo_n "checking for signed 8-bit type... " >&6; }
24078INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24080$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024081
24082
cristy8b350f62009-11-15 23:12:43 +000024083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024084$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24085UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24087$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024088
24089
cristy8b350f62009-11-15 23:12:43 +000024090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024091$as_echo_n "checking for signed 16-bit type... " >&6; }
24092INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24094$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024095
24096
cristy8b350f62009-11-15 23:12:43 +000024097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024098$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24099UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24101$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024102
24103
cristy8b350f62009-11-15 23:12:43 +000024104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024105$as_echo_n "checking for signed 32-bit type... " >&6; }
24106INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024107INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024108if test $ac_cv_sizeof_signed_int -eq 4; then
24109 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024110 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024111elif test $ac_cv_sizeof_signed_long -eq 4; then
24112 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024113 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024114fi
cristyad38abe2012-12-23 23:03:21 +000024115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24116$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024117
24118
cristy6d5e20f2011-04-25 13:48:54 +000024119
cristy8b350f62009-11-15 23:12:43 +000024120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024121$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24122UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024123UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024124if test $ac_cv_sizeof_unsigned_int -eq 4; then
24125 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024126 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024127elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24128 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024129 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024130fi
cristyad38abe2012-12-23 23:03:21 +000024131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24132$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024133
24134
cristy6d5e20f2011-04-25 13:48:54 +000024135
cristy8b350f62009-11-15 23:12:43 +000024136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024137$as_echo_n "checking for signed 64-bit type... " >&6; }
24138INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024139INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024140if test $ac_cv_sizeof_signed_long -eq 8; then
24141 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024142 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024143elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24144 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024145 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024146fi
cristy3a99dcf2011-12-17 01:29:40 +000024147case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024148 mingw* )
24149 INT64_F='"I64"'
24150 ;;
24151esac
cristyad38abe2012-12-23 23:03:21 +000024152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24153$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024154
24155
cristy6d5e20f2011-04-25 13:48:54 +000024156
cristy8b350f62009-11-15 23:12:43 +000024157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024158$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24159UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024160UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024161if test $ac_cv_sizeof_unsigned_long -eq 8; then
24162 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024163 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024164elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24165 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024166 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024167fi
cristy3a99dcf2011-12-17 01:29:40 +000024168case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024169 mingw* )
24170 UINT64_F='"I64"'
24171 ;;
24172esac
cristyad38abe2012-12-23 23:03:21 +000024173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24174$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024175
24176
cristy6d5e20f2011-04-25 13:48:54 +000024177
cristy8b350f62009-11-15 23:12:43 +000024178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024179$as_echo_n "checking for unsigned maximum type... " >&6; }
24180UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024181UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024182if test "$UINT64_T" != 'none'; then
24183 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024184 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024185elif test "$UINT32_T" != 'none'; then
24186 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024187 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024188fi
cristyad38abe2012-12-23 23:03:21 +000024189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24190$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024191
24192
cristy6d5e20f2011-04-25 13:48:54 +000024193
cristy8b350f62009-11-15 23:12:43 +000024194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024195$as_echo_n "checking for pointer difference type... " >&6; }
24196UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024197UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024198if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24199 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024200 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024201elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24202 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024203 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024204fi
cristyad38abe2012-12-23 23:03:21 +000024205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24206$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024207
24208
cristy6d5e20f2011-04-25 13:48:54 +000024209
cristy8b350f62009-11-15 23:12:43 +000024210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024211$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024213/* end confdefs.h. */
24214
24215int
24216main ()
24217{
24218{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24219 ;
24220 return 0;
24221}
24222_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024223if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24225$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024226else
cristyad38abe2012-12-23 23:03:21 +000024227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24228$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024230$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024232/* end confdefs.h. */
24233
24234int
24235main ()
24236{
24237{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24238 ;
24239 return 0;
24240}
24241_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024242if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24244$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024245
cristy8b350f62009-11-15 23:12:43 +000024246$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024247
24248else
cristyad38abe2012-12-23 23:03:21 +000024249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24250$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024251
cristy8b350f62009-11-15 23:12:43 +000024252$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024253
24254fi
cristy3ed852e2009-09-05 21:47:34 +000024255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24256fi
cristy3ed852e2009-09-05 21:47:34 +000024257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24258
24259########
24260#
24261# Check for functions
24262#
24263########
cristy8b350f62009-11-15 23:12:43 +000024264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024265$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024266if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024267 $as_echo_n "(cached) " >&6
24268else
cristy8b350f62009-11-15 23:12:43 +000024269 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024270 ac_cv_func_closedir_void=yes
24271else
cristy8b350f62009-11-15 23:12:43 +000024272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024273/* end confdefs.h. */
24274$ac_includes_default
24275#include <$ac_header_dirent>
24276#ifndef __cplusplus
24277int closedir ();
24278#endif
24279
24280int
24281main ()
24282{
24283return closedir (opendir (".")) != 0;
24284 ;
24285 return 0;
24286}
24287_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024288if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024289 ac_cv_func_closedir_void=no
24290else
cristy8b350f62009-11-15 23:12:43 +000024291 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024292fi
cristy8b350f62009-11-15 23:12:43 +000024293rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24294 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024295fi
24296
cristy3ed852e2009-09-05 21:47:34 +000024297fi
cristy8b350f62009-11-15 23:12:43 +000024298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024299$as_echo "$ac_cv_func_closedir_void" >&6; }
24300if test $ac_cv_func_closedir_void = yes; then
24301
cristy8b350f62009-11-15 23:12:43 +000024302$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024303
24304fi
24305
cristycd4c5312009-11-22 01:19:08 +000024306
24307
24308
24309 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024310do :
24311 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024312ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24313"
cristy98dddb52010-11-04 00:30:15 +000024314if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024315 cat >>confdefs.h <<_ACEOF
24316#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24317_ACEOF
24318
24319fi
24320
24321done
24322
cristycd4c5312009-11-22 01:19:08 +000024323
24324
24325
24326
24327
24328
24329
cristy3ed852e2009-09-05 21:47:34 +000024330for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024331do :
24332 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024333if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024334 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024335#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024336_ACEOF
24337
24338fi
24339done
24340
cristy8b350f62009-11-15 23:12:43 +000024341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024342$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024343if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024344 $as_echo_n "(cached) " >&6
24345else
cristy8b350f62009-11-15 23:12:43 +000024346 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024347 ac_cv_func_mmap_fixed_mapped=no
24348else
cristy8b350f62009-11-15 23:12:43 +000024349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024350/* end confdefs.h. */
24351$ac_includes_default
24352/* malloc might have been renamed as rpl_malloc. */
24353#undef malloc
24354
24355/* Thanks to Mike Haertel and Jim Avera for this test.
24356 Here is a matrix of mmap possibilities:
24357 mmap private not fixed
24358 mmap private fixed at somewhere currently unmapped
24359 mmap private fixed at somewhere already mapped
24360 mmap shared not fixed
24361 mmap shared fixed at somewhere currently unmapped
24362 mmap shared fixed at somewhere already mapped
24363 For private mappings, we should verify that changes cannot be read()
24364 back from the file, nor mmap's back from the file at a different
24365 address. (There have been systems where private was not correctly
24366 implemented like the infamous i386 svr4.0, and systems where the
24367 VM page cache was not coherent with the file system buffer cache
24368 like early versions of FreeBSD and possibly contemporary NetBSD.)
24369 For shared mappings, we should conversely verify that changes get
24370 propagated back to all the places they're supposed to be.
24371
24372 Grep wants private fixed already mapped.
24373 The main things grep needs to know about mmap are:
24374 * does it exist and is it safe to write into the mmap'd area
24375 * how to use it (BSD variants) */
24376
24377#include <fcntl.h>
24378#include <sys/mman.h>
24379
24380#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24381char *malloc ();
24382#endif
24383
24384/* This mess was copied from the GNU getpagesize.h. */
24385#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024386# ifdef _SC_PAGESIZE
24387# define getpagesize() sysconf(_SC_PAGESIZE)
24388# else /* no _SC_PAGESIZE */
24389# ifdef HAVE_SYS_PARAM_H
24390# include <sys/param.h>
24391# ifdef EXEC_PAGESIZE
24392# define getpagesize() EXEC_PAGESIZE
24393# else /* no EXEC_PAGESIZE */
24394# ifdef NBPG
24395# define getpagesize() NBPG * CLSIZE
24396# ifndef CLSIZE
24397# define CLSIZE 1
24398# endif /* no CLSIZE */
24399# else /* no NBPG */
24400# ifdef NBPC
24401# define getpagesize() NBPC
24402# else /* no NBPC */
24403# ifdef PAGESIZE
24404# define getpagesize() PAGESIZE
24405# endif /* PAGESIZE */
24406# endif /* no NBPC */
24407# endif /* no NBPG */
24408# endif /* no EXEC_PAGESIZE */
24409# else /* no HAVE_SYS_PARAM_H */
24410# define getpagesize() 8192 /* punt totally */
24411# endif /* no HAVE_SYS_PARAM_H */
24412# endif /* no _SC_PAGESIZE */
24413
24414#endif /* no HAVE_GETPAGESIZE */
24415
24416int
24417main ()
24418{
24419 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024420 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024421 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024422 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024423
24424 pagesize = getpagesize ();
24425
24426 /* First, make a file with some known garbage in it. */
24427 data = (char *) malloc (pagesize);
24428 if (!data)
24429 return 1;
24430 for (i = 0; i < pagesize; ++i)
24431 *(data + i) = rand ();
24432 umask (0);
24433 fd = creat ("conftest.mmap", 0600);
24434 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024435 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024436 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024437 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024438 close (fd);
24439
cristycd4c5312009-11-22 01:19:08 +000024440 /* Next, check that the tail of a page is zero-filled. File must have
24441 non-zero length, otherwise we risk SIGBUS for entire page. */
24442 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24443 if (fd2 < 0)
24444 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024445 cdata2 = "";
24446 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024447 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024448 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024449 if (data2 == MAP_FAILED)
24450 return 6;
24451 for (i = 0; i < pagesize; ++i)
24452 if (*(data2 + i))
24453 return 7;
24454 close (fd2);
24455 if (munmap (data2, pagesize))
24456 return 8;
24457
cristy3ed852e2009-09-05 21:47:34 +000024458 /* Next, try to mmap the file at a fixed address which already has
24459 something else allocated at it. If we can, also make sure that
24460 we see the same garbage. */
24461 fd = open ("conftest.mmap", O_RDWR);
24462 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024463 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024464 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24465 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024466 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024467 for (i = 0; i < pagesize; ++i)
24468 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024469 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024470
24471 /* Finally, make sure that changes to the mapped area do not
24472 percolate back to the file as seen by read(). (This is a bug on
24473 some variants of i386 svr4.0.) */
24474 for (i = 0; i < pagesize; ++i)
24475 *(data2 + i) = *(data2 + i) + 1;
24476 data3 = (char *) malloc (pagesize);
24477 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024478 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024479 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024480 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024481 for (i = 0; i < pagesize; ++i)
24482 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024483 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024484 close (fd);
24485 return 0;
24486}
24487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024488if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024489 ac_cv_func_mmap_fixed_mapped=yes
24490else
cristy8b350f62009-11-15 23:12:43 +000024491 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024492fi
cristy8b350f62009-11-15 23:12:43 +000024493rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24494 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024495fi
24496
cristy3ed852e2009-09-05 21:47:34 +000024497fi
cristy8b350f62009-11-15 23:12:43 +000024498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024499$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24500if test $ac_cv_func_mmap_fixed_mapped = yes; then
24501
cristy8b350f62009-11-15 23:12:43 +000024502$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024503
24504fi
cristycd4c5312009-11-22 01:19:08 +000024505rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024506
cristy3ed852e2009-09-05 21:47:34 +000024507for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024508do :
24509 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024510if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024511 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024512#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024513_ACEOF
24514
24515fi
24516
24517done
24518
cristy3ed852e2009-09-05 21:47:34 +000024519for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024520do :
24521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24522ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024523if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024524 cat >>confdefs.h <<_ACEOF
24525#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24526_ACEOF
24527
24528fi
24529done
24530
24531if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024533$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024534if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024535 $as_echo_n "(cached) " >&6
24536else
cristy8b350f62009-11-15 23:12:43 +000024537 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024538 ac_cv_func_fork_works=cross
24539else
cristy8b350f62009-11-15 23:12:43 +000024540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024541/* end confdefs.h. */
24542$ac_includes_default
24543int
24544main ()
24545{
24546
24547 /* By Ruediger Kuhlmann. */
24548 return fork () < 0;
24549
24550 ;
24551 return 0;
24552}
24553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024554if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024555 ac_cv_func_fork_works=yes
24556else
cristy8b350f62009-11-15 23:12:43 +000024557 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024558fi
cristy8b350f62009-11-15 23:12:43 +000024559rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24560 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024561fi
24562
cristy3ed852e2009-09-05 21:47:34 +000024563fi
cristy8b350f62009-11-15 23:12:43 +000024564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024565$as_echo "$ac_cv_func_fork_works" >&6; }
24566
24567else
24568 ac_cv_func_fork_works=$ac_cv_func_fork
24569fi
24570if test "x$ac_cv_func_fork_works" = xcross; then
24571 case $host in
24572 *-*-amigaos* | *-*-msdosdjgpp*)
24573 # Override, as these systems have only a dummy fork() stub
24574 ac_cv_func_fork_works=no
24575 ;;
24576 *)
24577 ac_cv_func_fork_works=yes
24578 ;;
24579 esac
cristy8b350f62009-11-15 23:12:43 +000024580 { $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 +000024581$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24582fi
24583ac_cv_func_vfork_works=$ac_cv_func_vfork
24584if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024586$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024587if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024588 $as_echo_n "(cached) " >&6
24589else
cristy8b350f62009-11-15 23:12:43 +000024590 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024591 ac_cv_func_vfork_works=cross
24592else
cristy8b350f62009-11-15 23:12:43 +000024593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024594/* end confdefs.h. */
24595/* Thanks to Paul Eggert for this test. */
24596$ac_includes_default
24597#include <sys/wait.h>
24598#ifdef HAVE_VFORK_H
24599# include <vfork.h>
24600#endif
24601/* On some sparc systems, changes by the child to local and incoming
24602 argument registers are propagated back to the parent. The compiler
24603 is told about this with #include <vfork.h>, but some compilers
24604 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24605 static variable whose address is put into a register that is
24606 clobbered by the vfork. */
24607static void
24608#ifdef __cplusplus
24609sparc_address_test (int arg)
24610# else
24611sparc_address_test (arg) int arg;
24612#endif
24613{
24614 static pid_t child;
24615 if (!child) {
24616 child = vfork ();
24617 if (child < 0) {
24618 perror ("vfork");
24619 _exit(2);
24620 }
24621 if (!child) {
24622 arg = getpid();
24623 write(-1, "", 0);
24624 _exit (arg);
24625 }
24626 }
24627}
24628
24629int
24630main ()
24631{
24632 pid_t parent = getpid ();
24633 pid_t child;
24634
24635 sparc_address_test (0);
24636
24637 child = vfork ();
24638
24639 if (child == 0) {
24640 /* Here is another test for sparc vfork register problems. This
24641 test uses lots of local variables, at least as many local
24642 variables as main has allocated so far including compiler
24643 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24644 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24645 reuse the register of parent for one of the local variables,
24646 since it will think that parent can't possibly be used any more
24647 in this routine. Assigning to the local variable will thus
24648 munge parent in the parent process. */
24649 pid_t
24650 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24651 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24652 /* Convince the compiler that p..p7 are live; otherwise, it might
24653 use the same hardware register for all 8 local variables. */
24654 if (p != p1 || p != p2 || p != p3 || p != p4
24655 || p != p5 || p != p6 || p != p7)
24656 _exit(1);
24657
24658 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24659 from child file descriptors. If the child closes a descriptor
24660 before it execs or exits, this munges the parent's descriptor
24661 as well. Test for this by closing stdout in the child. */
24662 _exit(close(fileno(stdout)) != 0);
24663 } else {
24664 int status;
24665 struct stat st;
24666
24667 while (wait(&status) != child)
24668 ;
24669 return (
24670 /* Was there some problem with vforking? */
24671 child < 0
24672
24673 /* Did the child fail? (This shouldn't happen.) */
24674 || status
24675
24676 /* Did the vfork/compiler bug occur? */
24677 || parent != getpid()
24678
24679 /* Did the file descriptor bug occur? */
24680 || fstat(fileno(stdout), &st) != 0
24681 );
24682 }
24683}
24684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024685if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024686 ac_cv_func_vfork_works=yes
24687else
cristy8b350f62009-11-15 23:12:43 +000024688 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024689fi
cristy8b350f62009-11-15 23:12:43 +000024690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24691 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024692fi
24693
cristy3ed852e2009-09-05 21:47:34 +000024694fi
cristy8b350f62009-11-15 23:12:43 +000024695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024696$as_echo "$ac_cv_func_vfork_works" >&6; }
24697
24698fi;
24699if test "x$ac_cv_func_fork_works" = xcross; then
24700 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024701 { $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 +000024702$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24703fi
24704
24705if test "x$ac_cv_func_vfork_works" = xyes; then
24706
cristy8b350f62009-11-15 23:12:43 +000024707$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024708
24709else
24710
cristy8b350f62009-11-15 23:12:43 +000024711$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024712
24713fi
24714if test "x$ac_cv_func_fork_works" = xyes; then
24715
cristy8b350f62009-11-15 23:12:43 +000024716$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024717
24718fi
24719
cristy8b350f62009-11-15 23:12:43 +000024720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024721$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024722if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024723 $as_echo_n "(cached) " >&6
24724else
cristy8b350f62009-11-15 23:12:43 +000024725 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024726 ac_cv_func_memcmp_working=no
24727else
cristy8b350f62009-11-15 23:12:43 +000024728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024729/* end confdefs.h. */
24730$ac_includes_default
24731int
24732main ()
24733{
24734
24735 /* Some versions of memcmp are not 8-bit clean. */
24736 char c0 = '\100', c1 = '\200', c2 = '\201';
24737 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24738 return 1;
24739
24740 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24741 or more and with at least one buffer not starting on a 4-byte boundary.
24742 William Lewis provided this test program. */
24743 {
24744 char foo[21];
24745 char bar[21];
24746 int i;
24747 for (i = 0; i < 4; i++)
24748 {
24749 char *a = foo + i;
24750 char *b = bar + i;
24751 strcpy (a, "--------01111111");
24752 strcpy (b, "--------10000000");
24753 if (memcmp (a, b, 16) >= 0)
24754 return 1;
24755 }
24756 return 0;
24757 }
24758
24759 ;
24760 return 0;
24761}
24762_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024763if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024764 ac_cv_func_memcmp_working=yes
24765else
cristy8b350f62009-11-15 23:12:43 +000024766 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024767fi
cristy8b350f62009-11-15 23:12:43 +000024768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24769 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024770fi
24771
cristy3ed852e2009-09-05 21:47:34 +000024772fi
cristy8b350f62009-11-15 23:12:43 +000024773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024774$as_echo "$ac_cv_func_memcmp_working" >&6; }
24775test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24776 *" memcmp.$ac_objext "* ) ;;
24777 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24778 ;;
24779esac
24780
24781
cristy3ed852e2009-09-05 21:47:34 +000024782for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024783do :
24784 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24785ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024786if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024787 cat >>confdefs.h <<_ACEOF
24788#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24789_ACEOF
24790
24791fi
24792
24793done
24794
cristy8b350f62009-11-15 23:12:43 +000024795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024796$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024797if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024798 $as_echo_n "(cached) " >&6
24799else
24800 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24801 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24802 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024804/* end confdefs.h. */
24805$ac_includes_default
24806#ifdef HAVE_SYS_SELECT_H
24807# include <sys/select.h>
24808#endif
24809#ifdef HAVE_SYS_SOCKET_H
24810# include <sys/socket.h>
24811#endif
24812
24813int
24814main ()
24815{
24816extern int select ($ac_arg1,
24817 $ac_arg234, $ac_arg234, $ac_arg234,
24818 $ac_arg5);
24819 ;
24820 return 0;
24821}
24822_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024823if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024824 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024825fi
cristy3ed852e2009-09-05 21:47:34 +000024826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24827 done
24828 done
24829done
24830# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024831: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024832
24833fi
cristy8b350f62009-11-15 23:12:43 +000024834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024835$as_echo "$ac_cv_func_select_args" >&6; }
24836ac_save_IFS=$IFS; IFS=','
24837set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24838IFS=$ac_save_IFS
24839shift
24840
24841cat >>confdefs.h <<_ACEOF
24842#define SELECT_TYPE_ARG1 $1
24843_ACEOF
24844
24845
24846cat >>confdefs.h <<_ACEOF
24847#define SELECT_TYPE_ARG234 ($2)
24848_ACEOF
24849
24850
24851cat >>confdefs.h <<_ACEOF
24852#define SELECT_TYPE_ARG5 ($3)
24853_ACEOF
24854
24855rm -f conftest*
24856
cristyda16f162011-02-19 23:52:17 +000024857if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024858 $as_echo_n "(cached) " >&6
24859else
24860 ac_cv_func_setvbuf_reversed=no
24861fi
24862
24863
cristy8b350f62009-11-15 23:12:43 +000024864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024865$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024866if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024867 $as_echo_n "(cached) " >&6
24868else
cristy8b350f62009-11-15 23:12:43 +000024869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024870/* end confdefs.h. */
24871#include <sys/types.h>
24872#include <signal.h>
24873
24874int
24875main ()
24876{
24877return *(signal (0, 0)) (0) == 1;
24878 ;
24879 return 0;
24880}
24881_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024882if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024883 ac_cv_type_signal=int
24884else
cristy8b350f62009-11-15 23:12:43 +000024885 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024886fi
cristy3ed852e2009-09-05 21:47:34 +000024887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24888fi
cristy8b350f62009-11-15 23:12:43 +000024889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024890$as_echo "$ac_cv_type_signal" >&6; }
24891
24892cat >>confdefs.h <<_ACEOF
24893#define RETSIGTYPE $ac_cv_type_signal
24894_ACEOF
24895
24896
cristy8b350f62009-11-15 23:12:43 +000024897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024898$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024899if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024900 $as_echo_n "(cached) " >&6
24901else
cristy8b350f62009-11-15 23:12:43 +000024902 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024903 ac_cv_func_strtod=no
24904else
cristy8b350f62009-11-15 23:12:43 +000024905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024906/* end confdefs.h. */
24907
24908$ac_includes_default
24909#ifndef strtod
24910double strtod ();
24911#endif
24912int
24913main()
24914{
24915 {
24916 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24917 char *string = " +69";
24918 char *term;
24919 double value;
24920 value = strtod (string, &term);
24921 if (value != 69 || term != (string + 4))
24922 return 1;
24923 }
24924
24925 {
24926 /* Under Solaris 2.4, strtod returns the wrong value for the
24927 terminating character under some conditions. */
24928 char *string = "NaN";
24929 char *term;
24930 strtod (string, &term);
24931 if (term != string && *(term - 1) == 0)
24932 return 1;
24933 }
24934 return 0;
24935}
24936
24937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024938if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024939 ac_cv_func_strtod=yes
24940else
cristy8b350f62009-11-15 23:12:43 +000024941 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024942fi
cristy8b350f62009-11-15 23:12:43 +000024943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24944 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024945fi
24946
cristy3ed852e2009-09-05 21:47:34 +000024947fi
cristy8b350f62009-11-15 23:12:43 +000024948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024949$as_echo "$ac_cv_func_strtod" >&6; }
24950if test $ac_cv_func_strtod = no; then
24951 case " $LIBOBJS " in
24952 *" strtod.$ac_objext "* ) ;;
24953 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24954 ;;
24955esac
24956
cristy8b350f62009-11-15 23:12:43 +000024957ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024958if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024959
cristy3ed852e2009-09-05 21:47:34 +000024960fi
24961
cristy3ed852e2009-09-05 21:47:34 +000024962if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024964$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024965if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024966 $as_echo_n "(cached) " >&6
24967else
24968 ac_check_lib_save_LIBS=$LIBS
24969LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024971/* end confdefs.h. */
24972
24973/* Override any GCC internal prototype to avoid an error.
24974 Use char because int might match the return type of a GCC
24975 builtin and then its argument prototype would still apply. */
24976#ifdef __cplusplus
24977extern "C"
24978#endif
24979char pow ();
24980int
24981main ()
24982{
24983return pow ();
24984 ;
24985 return 0;
24986}
24987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024988if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024989 ac_cv_lib_m_pow=yes
24990else
cristy8b350f62009-11-15 23:12:43 +000024991 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024992fi
cristy8b350f62009-11-15 23:12:43 +000024993rm -f core conftest.err conftest.$ac_objext \
24994 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024995LIBS=$ac_check_lib_save_LIBS
24996fi
cristy8b350f62009-11-15 23:12:43 +000024997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024998$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024999if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025000 POW_LIB=-lm
25001else
cristy8b350f62009-11-15 23:12:43 +000025002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025003$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25004fi
25005
25006fi
25007
25008fi
25009
cristy7d4a1d62011-10-13 15:54:12 +000025010ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25011if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25012 ac_have_decl=1
25013else
25014 ac_have_decl=0
25015fi
25016
25017cat >>confdefs.h <<_ACEOF
25018#define HAVE_DECL_STRERROR_R $ac_have_decl
25019_ACEOF
25020
25021for ac_func in strerror_r
25022do :
25023 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25024if test "x$ac_cv_func_strerror_r" = xyes; then :
25025 cat >>confdefs.h <<_ACEOF
25026#define HAVE_STRERROR_R 1
25027_ACEOF
25028
25029fi
25030done
25031
25032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25033$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25034if ${ac_cv_func_strerror_r_char_p+:} false; then :
25035 $as_echo_n "(cached) " >&6
25036else
25037
25038 ac_cv_func_strerror_r_char_p=no
25039 if test $ac_cv_have_decl_strerror_r = yes; then
25040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25041/* end confdefs.h. */
25042$ac_includes_default
25043int
25044main ()
25045{
25046
25047 char buf[100];
25048 char x = *strerror_r (0, buf, sizeof buf);
25049 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025050 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025051
25052 ;
25053 return 0;
25054}
25055_ACEOF
25056if ac_fn_c_try_compile "$LINENO"; then :
25057 ac_cv_func_strerror_r_char_p=yes
25058fi
25059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25060 else
25061 # strerror_r is not declared. Choose between
25062 # systems that have relatively inaccessible declarations for the
25063 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25064 # former has a strerror_r that returns char*, while the latter
25065 # has a strerror_r that returns `int'.
25066 # This test should segfault on the DEC system.
25067 if test "$cross_compiling" = yes; then :
25068 :
25069else
25070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25071/* end confdefs.h. */
25072$ac_includes_default
25073 extern char *strerror_r ();
25074int
25075main ()
25076{
25077char buf[100];
25078 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025079 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025080 ;
25081 return 0;
25082}
25083_ACEOF
25084if ac_fn_c_try_run "$LINENO"; then :
25085 ac_cv_func_strerror_r_char_p=yes
25086fi
25087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25088 conftest.$ac_objext conftest.beam conftest.$ac_ext
25089fi
25090
25091 fi
25092
25093fi
25094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25095$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25096if test $ac_cv_func_strerror_r_char_p = yes; then
25097
25098$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25099
25100fi
25101
cristy3ed852e2009-09-05 21:47:34 +000025102for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025103do :
25104 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025105if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025106 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025107#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025108_ACEOF
25109
cristy8b350f62009-11-15 23:12:43 +000025110ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025111if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025112
cristy8b350f62009-11-15 23:12:43 +000025113$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025114
25115fi
25116
25117fi
25118done
25119
25120
25121
cristy161b9262010-03-20 19:34:32 +000025122#
25123# Find math library
25124#
25125MATH_LIBS=''
25126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25127$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025128if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025129 $as_echo_n "(cached) " >&6
25130else
25131 ac_check_lib_save_LIBS=$LIBS
25132LIBS="-lm $LIBS"
25133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25134/* end confdefs.h. */
25135
25136/* Override any GCC internal prototype to avoid an error.
25137 Use char because int might match the return type of a GCC
25138 builtin and then its argument prototype would still apply. */
25139#ifdef __cplusplus
25140extern "C"
25141#endif
25142char sqrt ();
25143int
25144main ()
25145{
25146return sqrt ();
25147 ;
25148 return 0;
25149}
25150_ACEOF
25151if ac_fn_c_try_link "$LINENO"; then :
25152 ac_cv_lib_m_sqrt=yes
25153else
25154 ac_cv_lib_m_sqrt=no
25155fi
25156rm -f core conftest.err conftest.$ac_objext \
25157 conftest$ac_exeext conftest.$ac_ext
25158LIBS=$ac_check_lib_save_LIBS
25159fi
25160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25161$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025162if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025163 MATH_LIBS="-lm"
25164fi
25165
25166LIBS="$MATH_LIBS $LIBS"
25167
25168
cristy85572162013-01-04 19:19:32 +000025169#
25170# Find socket library
25171#
cristy8a5d7f42013-01-06 15:24:33 +000025172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25173$as_echo_n "checking for library containing gethostbyname... " >&6; }
25174if ${ac_cv_search_gethostbyname+:} false; then :
25175 $as_echo_n "(cached) " >&6
25176else
25177 ac_func_search_save_LIBS=$LIBS
25178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25179/* end confdefs.h. */
25180
25181/* Override any GCC internal prototype to avoid an error.
25182 Use char because int might match the return type of a GCC
25183 builtin and then its argument prototype would still apply. */
25184#ifdef __cplusplus
25185extern "C"
25186#endif
25187char gethostbyname ();
25188int
25189main ()
25190{
25191return gethostbyname ();
25192 ;
25193 return 0;
25194}
25195_ACEOF
25196for ac_lib in '' resolv nsl; do
25197 if test -z "$ac_lib"; then
25198 ac_res="none required"
25199 else
25200 ac_res=-l$ac_lib
25201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25202 fi
25203 if ac_fn_c_try_link "$LINENO"; then :
25204 ac_cv_search_gethostbyname=$ac_res
25205fi
25206rm -f core conftest.err conftest.$ac_objext \
25207 conftest$ac_exeext
25208 if ${ac_cv_search_gethostbyname+:} false; then :
25209 break
25210fi
25211done
25212if ${ac_cv_search_gethostbyname+:} false; then :
25213
25214else
25215 ac_cv_search_gethostbyname=no
25216fi
25217rm conftest.$ac_ext
25218LIBS=$ac_func_search_save_LIBS
25219fi
25220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25221$as_echo "$ac_cv_search_gethostbyname" >&6; }
25222ac_res=$ac_cv_search_gethostbyname
25223if test "$ac_res" != no; then :
25224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25225
25226fi
25227
cristy85572162013-01-04 19:19:32 +000025228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25229$as_echo_n "checking for library containing socket... " >&6; }
25230if ${ac_cv_search_socket+:} false; then :
25231 $as_echo_n "(cached) " >&6
25232else
25233 ac_func_search_save_LIBS=$LIBS
25234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25235/* end confdefs.h. */
25236
25237/* Override any GCC internal prototype to avoid an error.
25238 Use char because int might match the return type of a GCC
25239 builtin and then its argument prototype would still apply. */
25240#ifdef __cplusplus
25241extern "C"
25242#endif
25243char socket ();
25244int
25245main ()
25246{
25247return socket ();
25248 ;
25249 return 0;
25250}
25251_ACEOF
25252for ac_lib in '' socket; do
25253 if test -z "$ac_lib"; then
25254 ac_res="none required"
25255 else
25256 ac_res=-l$ac_lib
25257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25258 fi
25259 if ac_fn_c_try_link "$LINENO"; then :
25260 ac_cv_search_socket=$ac_res
25261fi
25262rm -f core conftest.err conftest.$ac_objext \
25263 conftest$ac_exeext
25264 if ${ac_cv_search_socket+:} false; then :
25265 break
25266fi
25267done
25268if ${ac_cv_search_socket+:} false; then :
25269
25270else
25271 ac_cv_search_socket=no
25272fi
25273rm conftest.$ac_ext
25274LIBS=$ac_func_search_save_LIBS
25275fi
25276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25277$as_echo "$ac_cv_search_socket" >&6; }
25278ac_res=$ac_cv_search_socket
25279if test "$ac_res" != no; then :
25280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25281
cristy85572162013-01-04 19:19:32 +000025282
cristy8a5d7f42013-01-06 15:24:33 +000025283$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025284
cristy03f187e2013-01-24 00:22:19 +000025285 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025286
25287fi
25288
25289
25290for 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 +000025291do :
25292 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25293ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025294if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025295 cat >>confdefs.h <<_ACEOF
25296#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25297_ACEOF
25298
25299fi
25300done
25301
25302
cristye43a45e2009-09-28 14:49:00 +000025303#
25304# Check for clock_gettime().
25305#
cristy8b350f62009-11-15 23:12:43 +000025306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025307$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025308if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025309 $as_echo_n "(cached) " >&6
25310else
25311 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025313/* end confdefs.h. */
25314
25315/* Override any GCC internal prototype to avoid an error.
25316 Use char because int might match the return type of a GCC
25317 builtin and then its argument prototype would still apply. */
25318#ifdef __cplusplus
25319extern "C"
25320#endif
25321char clock_gettime ();
25322int
25323main ()
25324{
25325return clock_gettime ();
25326 ;
25327 return 0;
25328}
25329_ACEOF
25330for ac_lib in '' rt; do
25331 if test -z "$ac_lib"; then
25332 ac_res="none required"
25333 else
25334 ac_res=-l$ac_lib
25335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25336 fi
cristy8b350f62009-11-15 23:12:43 +000025337 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025338 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025339fi
cristy8b350f62009-11-15 23:12:43 +000025340rm -f core conftest.err conftest.$ac_objext \
25341 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025342 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025343 break
25344fi
25345done
cristyda16f162011-02-19 23:52:17 +000025346if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025347
cristye43a45e2009-09-28 14:49:00 +000025348else
25349 ac_cv_search_clock_gettime=no
25350fi
25351rm conftest.$ac_ext
25352LIBS=$ac_func_search_save_LIBS
25353fi
cristy8b350f62009-11-15 23:12:43 +000025354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025355$as_echo "$ac_cv_search_clock_gettime" >&6; }
25356ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025357if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25359
25360
cristy8b350f62009-11-15 23:12:43 +000025361$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025362
cristy8b350f62009-11-15 23:12:43 +000025363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025364$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025366/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025367
25368 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025369int
25370main ()
25371{
25372clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025373 ;
25374 return 0;
25375}
25376_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025377if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025378
cristyad38abe2012-12-23 23:03:21 +000025379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25380$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025381
cristy8b350f62009-11-15 23:12:43 +000025382$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025383
25384
25385else
cristyad38abe2012-12-23 23:03:21 +000025386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25387$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025388
25389fi
cristye43a45e2009-09-28 14:49:00 +000025390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25391
25392else
25393
cristy8b350f62009-11-15 23:12:43 +000025394 for ac_func in gettimeofday ftime
25395do :
25396 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25397ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025398if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025399 cat >>confdefs.h <<_ACEOF
25400#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25401_ACEOF
25402 break
25403fi
25404done
25405
25406
25407
25408fi
25409
25410
cristy3ed852e2009-09-05 21:47:34 +000025411########
25412#
25413# Check for function prototypes
25414#
25415########
25416
cristy8b350f62009-11-15 23:12:43 +000025417ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025418#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025419"
cristyda16f162011-02-19 23:52:17 +000025420if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025421 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025422else
cristy8b350f62009-11-15 23:12:43 +000025423 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025424fi
25425
cristy3ed852e2009-09-05 21:47:34 +000025426cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025427#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025428_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025429ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025430#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025431"
cristyda16f162011-02-19 23:52:17 +000025432if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025433 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025434else
cristy8b350f62009-11-15 23:12:43 +000025435 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025436fi
25437
cristy3ed852e2009-09-05 21:47:34 +000025438cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025439#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025440_ACEOF
25441
25442
cristy8b350f62009-11-15 23:12:43 +000025443ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025444#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025445"
cristyda16f162011-02-19 23:52:17 +000025446if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025447 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025448else
cristy8b350f62009-11-15 23:12:43 +000025449 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025450fi
25451
cristy3ed852e2009-09-05 21:47:34 +000025452cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025453#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025454_ACEOF
25455
25456
cristy8b350f62009-11-15 23:12:43 +000025457ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025458#include <stdio.h>
25459#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025460"
cristyda16f162011-02-19 23:52:17 +000025461if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025462 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025463else
cristy8b350f62009-11-15 23:12:43 +000025464 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025465fi
25466
cristy3ed852e2009-09-05 21:47:34 +000025467cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025468#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025469_ACEOF
25470
25471
cristy3ed852e2009-09-05 21:47:34 +000025472########
25473#
25474# C++ Support Tests (For Magick++)
25475#
25476########
25477have_magick_plus_plus='no'
25478if test "$with_magick_plus_plus" = 'yes'; then
25479 OLIBS="$LIBS"
25480 LIBS=''
25481 ac_ext=cpp
25482ac_cpp='$CXXCPP $CPPFLAGS'
25483ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25484ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25485ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25486
25487
25488 # Full set of headers used...
25489 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25490 # functional iomanip iosfwd iostream iterator list string strstream utility
25491 ac_ext=cpp
25492ac_cpp='$CXXCPP $CPPFLAGS'
25493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25496
25497 ac_ext=cpp
25498ac_cpp='$CXXCPP $CPPFLAGS'
25499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25502if test -z "$CXX"; then
25503 if test -n "$CCC"; then
25504 CXX=$CCC
25505 else
25506 if test -n "$ac_tool_prefix"; then
25507 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25508 do
25509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25510set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025512$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025513if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025514 $as_echo_n "(cached) " >&6
25515else
25516 if test -n "$CXX"; then
25517 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25518else
25519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25520for as_dir in $PATH
25521do
25522 IFS=$as_save_IFS
25523 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025524 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025526 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025528 break 2
25529 fi
25530done
cristy8b350f62009-11-15 23:12:43 +000025531 done
cristy3ed852e2009-09-05 21:47:34 +000025532IFS=$as_save_IFS
25533
25534fi
25535fi
25536CXX=$ac_cv_prog_CXX
25537if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025539$as_echo "$CXX" >&6; }
25540else
cristy8b350f62009-11-15 23:12:43 +000025541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025542$as_echo "no" >&6; }
25543fi
25544
25545
25546 test -n "$CXX" && break
25547 done
25548fi
25549if test -z "$CXX"; then
25550 ac_ct_CXX=$CXX
25551 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25552do
25553 # Extract the first word of "$ac_prog", so it can be a program name with args.
25554set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025556$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025557if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025558 $as_echo_n "(cached) " >&6
25559else
25560 if test -n "$ac_ct_CXX"; then
25561 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25562else
25563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25564for as_dir in $PATH
25565do
25566 IFS=$as_save_IFS
25567 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025570 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025572 break 2
25573 fi
25574done
cristy8b350f62009-11-15 23:12:43 +000025575 done
cristy3ed852e2009-09-05 21:47:34 +000025576IFS=$as_save_IFS
25577
25578fi
25579fi
25580ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25581if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025583$as_echo "$ac_ct_CXX" >&6; }
25584else
cristy8b350f62009-11-15 23:12:43 +000025585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025586$as_echo "no" >&6; }
25587fi
25588
25589
25590 test -n "$ac_ct_CXX" && break
25591done
25592
25593 if test "x$ac_ct_CXX" = x; then
25594 CXX="g++"
25595 else
25596 case $cross_compiling:$ac_tool_warned in
25597yes:)
cristy8b350f62009-11-15 23:12:43 +000025598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25600ac_tool_warned=yes ;;
25601esac
25602 CXX=$ac_ct_CXX
25603 fi
25604fi
25605
25606 fi
25607fi
25608# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025609$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025610set X $ac_compile
25611ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025612for ac_option in --version -v -V -qversion; do
25613 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025614case "(($ac_try" in
25615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25616 *) ac_try_echo=$ac_try;;
25617esac
cristy8b350f62009-11-15 23:12:43 +000025618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25619$as_echo "$ac_try_echo"; } >&5
25620 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025621 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025622 if test -s conftest.err; then
25623 sed '10a\
25624... rest of stderr output deleted ...
25625 10q' conftest.err >conftest.er1
25626 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025627 fi
cristycd4c5312009-11-22 01:19:08 +000025628 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25630 test $ac_status = 0; }
25631done
cristy3ed852e2009-09-05 21:47:34 +000025632
cristy8b350f62009-11-15 23:12:43 +000025633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025634$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025635if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025636 $as_echo_n "(cached) " >&6
25637else
cristy8b350f62009-11-15 23:12:43 +000025638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025639/* end confdefs.h. */
25640
25641int
25642main ()
25643{
25644#ifndef __GNUC__
25645 choke me
25646#endif
25647
25648 ;
25649 return 0;
25650}
25651_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025652if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025653 ac_compiler_gnu=yes
25654else
cristy8b350f62009-11-15 23:12:43 +000025655 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025656fi
cristy3ed852e2009-09-05 21:47:34 +000025657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25658ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25659
25660fi
cristy8b350f62009-11-15 23:12:43 +000025661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025662$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25663if test $ac_compiler_gnu = yes; then
25664 GXX=yes
25665else
25666 GXX=
25667fi
25668ac_test_CXXFLAGS=${CXXFLAGS+set}
25669ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025671$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025672if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025673 $as_echo_n "(cached) " >&6
25674else
25675 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25676 ac_cxx_werror_flag=yes
25677 ac_cv_prog_cxx_g=no
25678 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025680/* end confdefs.h. */
25681
25682int
25683main ()
25684{
25685
25686 ;
25687 return 0;
25688}
25689_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025690if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025691 ac_cv_prog_cxx_g=yes
25692else
cristy8b350f62009-11-15 23:12:43 +000025693 CXXFLAGS=""
25694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025695/* end confdefs.h. */
25696
25697int
25698main ()
25699{
25700
25701 ;
25702 return 0;
25703}
25704_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025705if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025706
cristy8b350f62009-11-15 23:12:43 +000025707else
25708 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025709 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025711/* end confdefs.h. */
25712
25713int
25714main ()
25715{
25716
25717 ;
25718 return 0;
25719}
25720_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025721if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025722 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025723fi
cristy3ed852e2009-09-05 21:47:34 +000025724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25725fi
cristy3ed852e2009-09-05 21:47:34 +000025726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25727fi
cristy3ed852e2009-09-05 21:47:34 +000025728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25729 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25730fi
cristy8b350f62009-11-15 23:12:43 +000025731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025732$as_echo "$ac_cv_prog_cxx_g" >&6; }
25733if test "$ac_test_CXXFLAGS" = set; then
25734 CXXFLAGS=$ac_save_CXXFLAGS
25735elif test $ac_cv_prog_cxx_g = yes; then
25736 if test "$GXX" = yes; then
25737 CXXFLAGS="-g -O2"
25738 else
25739 CXXFLAGS="-g"
25740 fi
25741else
25742 if test "$GXX" = yes; then
25743 CXXFLAGS="-O2"
25744 else
25745 CXXFLAGS=
25746 fi
25747fi
25748ac_ext=cpp
25749ac_cpp='$CXXCPP $CPPFLAGS'
25750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25753
cristy73bd4a52010-10-05 11:24:23 +000025754depcc="$CXX" am_compiler_list=
25755
25756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25757$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025758if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025759 $as_echo_n "(cached) " >&6
25760else
25761 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25762 # We make a subdir and do the tests there. Otherwise we can end up
25763 # making bogus files that we don't know about and never remove. For
25764 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025765 # making a dummy file named 'D' -- because '-MD' means "put the output
25766 # in D".
cristy7247bba2012-02-05 16:37:27 +000025767 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025768 mkdir conftest.dir
25769 # Copy depcomp to subdir because otherwise we won't find it if we're
25770 # using a relative directory.
25771 cp "$am_depcomp" conftest.dir
25772 cd conftest.dir
25773 # We will build objects and dependencies in a subdirectory because
25774 # it helps to detect inapplicable dependency modes. For instance
25775 # both Tru64's cc and ICC support -MD to output dependencies as a
25776 # side effect of compilation, but ICC will put the dependencies in
25777 # the current directory while Tru64 will put them in the object
25778 # directory.
25779 mkdir sub
25780
25781 am_cv_CXX_dependencies_compiler_type=none
25782 if test "$am_compiler_list" = ""; then
25783 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25784 fi
25785 am__universal=false
25786 case " $depcc " in #(
25787 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25788 esac
25789
25790 for depmode in $am_compiler_list; do
25791 # Setup a source with many dependencies, because some compilers
25792 # like to wrap large dependency lists on column 80 (with \), and
25793 # we should not choose a depcomp mode which is confused by this.
25794 #
25795 # We need to recreate these files for each test, as the compiler may
25796 # overwrite some of them when testing with obscure command lines.
25797 # This happens at least with the AIX C compiler.
25798 : > sub/conftest.c
25799 for i in 1 2 3 4 5 6; do
25800 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025801 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25802 # Solaris 10 /bin/sh.
25803 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025804 done
25805 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25806
cristyc0890a62012-07-19 00:18:20 +000025807 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025808 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025809 # handle '-M -o', and we need to detect this. Also, some Intel
25810 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025811 am__obj=sub/conftest.${OBJEXT-o}
25812 am__minus_obj="-o $am__obj"
25813 case $depmode in
25814 gcc)
25815 # This depmode causes a compiler race in universal mode.
25816 test "$am__universal" = false || continue
25817 ;;
25818 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025819 # After this tag, mechanisms are not by side-effect, so they'll
25820 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025821 if test "x$enable_dependency_tracking" = xyes; then
25822 continue
25823 else
25824 break
25825 fi
25826 ;;
cristy7247bba2012-02-05 16:37:27 +000025827 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025828 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025829 # not run yet. These depmodes are late enough in the game, and
25830 # so weak that their functioning should not be impacted.
25831 am__obj=conftest.${OBJEXT-o}
25832 am__minus_obj=
25833 ;;
25834 none) break ;;
25835 esac
25836 if depmode=$depmode \
25837 source=sub/conftest.c object=$am__obj \
25838 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25839 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25840 >/dev/null 2>conftest.err &&
25841 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25842 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25843 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25844 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25845 # icc doesn't choke on unknown options, it will just issue warnings
25846 # or remarks (even with -Werror). So we grep stderr for any message
25847 # that says an option was ignored or not supported.
25848 # When given -MP, icc 7.0 and 7.1 complain thusly:
25849 # icc: Command line warning: ignoring option '-M'; no argument required
25850 # The diagnosis changed in icc 8.0:
25851 # icc: Command line remark: option '-MP' not supported
25852 if (grep 'ignoring option' conftest.err ||
25853 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25854 am_cv_CXX_dependencies_compiler_type=$depmode
25855 break
25856 fi
25857 fi
25858 done
25859
25860 cd ..
25861 rm -rf conftest.dir
25862else
25863 am_cv_CXX_dependencies_compiler_type=none
25864fi
25865
25866fi
25867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25868$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25869CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25870
25871 if
25872 test "x$enable_dependency_tracking" != xno \
25873 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25874 am__fastdepCXX_TRUE=
25875 am__fastdepCXX_FALSE='#'
25876else
25877 am__fastdepCXX_TRUE='#'
25878 am__fastdepCXX_FALSE=
25879fi
25880
25881
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25883$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025884if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025885 $as_echo_n "(cached) " >&6
25886else
25887
25888 ac_ext=cpp
25889ac_cpp='$CXXCPP $CPPFLAGS'
25890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25893
25894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25895/* end confdefs.h. */
25896
25897int f(int x){return 1;}
25898int f(char x){return 1;}
25899int f(bool x){return 1;}
25900
25901int
25902main ()
25903{
25904bool b = true; return f(b);
25905 ;
25906 return 0;
25907}
25908_ACEOF
25909if ac_fn_cxx_try_compile "$LINENO"; then :
25910 ax_cv_cxx_bool=yes
25911else
25912 ax_cv_cxx_bool=no
25913fi
25914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25915 ac_ext=cpp
25916ac_cpp='$CXXCPP $CPPFLAGS'
25917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25920
25921
25922fi
25923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25924$as_echo "$ax_cv_cxx_bool" >&6; }
25925if test "$ax_cv_cxx_bool" = yes; then
25926
25927$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25928
25929fi
25930
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25932$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025933if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025934 $as_echo_n "(cached) " >&6
25935else
25936
25937 ac_ext=cpp
25938ac_cpp='$CXXCPP $CPPFLAGS'
25939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25942
25943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25944/* end confdefs.h. */
25945namespace Outer { namespace Inner { int i = 0; }}
25946int
25947main ()
25948{
25949using namespace Outer::Inner; return i;
25950 ;
25951 return 0;
25952}
25953_ACEOF
25954if ac_fn_cxx_try_compile "$LINENO"; then :
25955 ax_cv_cxx_namespaces=yes
25956else
25957 ax_cv_cxx_namespaces=no
25958fi
25959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25960 ac_ext=cpp
25961ac_cpp='$CXXCPP $CPPFLAGS'
25962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25965
25966
25967fi
25968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25969$as_echo "$ax_cv_cxx_namespaces" >&6; }
25970if test "$ax_cv_cxx_namespaces" = yes; then
25971
25972$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25973
25974fi
25975
25976
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25978$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025979if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025980 $as_echo_n "(cached) " >&6
25981else
25982
25983 ac_ext=cpp
25984ac_cpp='$CXXCPP $CPPFLAGS'
25985ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25986ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25987ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25988
25989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25990/* end confdefs.h. */
25991#include <iostream>
25992 std::istream& is = std::cin;
25993int
25994main ()
25995{
25996
25997 ;
25998 return 0;
25999}
26000_ACEOF
26001if ac_fn_cxx_try_compile "$LINENO"; then :
26002 ax_cv_cxx_have_std_namespace=yes
26003else
26004 ax_cv_cxx_have_std_namespace=no
26005fi
26006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26007 ac_ext=cpp
26008ac_cpp='$CXXCPP $CPPFLAGS'
26009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26012
26013
26014fi
26015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26016$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26017 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26018
26019$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26020
26021 fi
26022
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26024$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026025if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026026 $as_echo_n "(cached) " >&6
26027else
26028
26029
26030 ac_ext=cpp
26031ac_cpp='$CXXCPP $CPPFLAGS'
26032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26035
26036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26037/* end confdefs.h. */
26038#include <iostream>
26039#include <map>
26040#include <iomanip>
26041#include <cmath>
26042#ifdef HAVE_NAMESPACES
26043using namespace std;
26044#endif
26045int
26046main ()
26047{
26048return 0;
26049 ;
26050 return 0;
26051}
26052_ACEOF
26053if ac_fn_cxx_try_compile "$LINENO"; then :
26054 ac_cv_cxx_have_std_libs=yes
26055else
26056 ac_cv_cxx_have_std_libs=no
26057fi
26058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26059 ac_ext=cpp
26060ac_cpp='$CXXCPP $CPPFLAGS'
26061ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26062ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26063ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26064
26065
26066fi
26067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26068$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26069if test "$ac_cv_cxx_have_std_libs" = yes; then
26070
26071$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26072
26073fi
26074
cristy3ed852e2009-09-05 21:47:34 +000026075
26076 OPENMP_CXXFLAGS=
26077 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026078if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026079 enableval=$enable_openmp;
26080fi
26081
26082 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26084$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026085if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026086 $as_echo_n "(cached) " >&6
26087else
cristy8b350f62009-11-15 23:12:43 +000026088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26089/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026090
26091#ifndef _OPENMP
26092 choke me
26093#endif
26094#include <omp.h>
26095int main () { return omp_get_num_threads (); }
26096
26097_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026098if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026099 ac_cv_prog_cxx_openmp='none needed'
26100else
cristy8b350f62009-11-15 23:12:43 +000026101 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026102 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26103 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026104 ac_save_CXXFLAGS=$CXXFLAGS
26105 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26107/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026108
26109#ifndef _OPENMP
26110 choke me
26111#endif
26112#include <omp.h>
26113int main () { return omp_get_num_threads (); }
26114
26115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026116if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026117 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026118fi
cristy8b350f62009-11-15 23:12:43 +000026119rm -f core conftest.err conftest.$ac_objext \
26120 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026121 CXXFLAGS=$ac_save_CXXFLAGS
26122 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26123 break
26124 fi
26125 done
26126fi
cristy8b350f62009-11-15 23:12:43 +000026127rm -f core conftest.err conftest.$ac_objext \
26128 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026129fi
cristy8b350f62009-11-15 23:12:43 +000026130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026131$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26132 case $ac_cv_prog_cxx_openmp in #(
26133 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026134 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026135 *)
cristy8b350f62009-11-15 23:12:43 +000026136 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026137 esac
26138 fi
26139
26140
26141 ac_ext=c
26142ac_cpp='$CPP $CPPFLAGS'
26143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26145ac_compiler_gnu=$ac_cv_c_compiler_gnu
26146
26147
cristy8b350f62009-11-15 23:12:43 +000026148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026149$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26150 if \
cristy964cb7f2010-04-25 23:18:00 +000026151 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026152 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026153 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026154 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026155 have_magick_plus_plus='yes'
26156 else
26157 have_magick_plus_plus='no (failed tests)'
26158 fi
cristyad38abe2012-12-23 23:03:21 +000026159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26160$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026161 LIBS="$OLIBS"
26162fi
cristy73bd4a52010-10-05 11:24:23 +000026163 if test "$have_magick_plus_plus" = 'yes'; then
26164 WITH_MAGICK_PLUS_PLUS_TRUE=
26165 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26166else
26167 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26168 WITH_MAGICK_PLUS_PLUS_FALSE=
26169fi
26170
cristy3ed852e2009-09-05 21:47:34 +000026171
26172# Only check for delegate libraries in subdirectories if requested.
26173if test "$enable_delegate_build" != 'no'; then
26174 # Check for delegate sub-directories and add -I & -L options as required.
26175 # This presumes that delegates are installed as detailed in the ImageMagick
26176 # README. If delegates are installed in a standard location where the
26177 # compiler will automatically find them then these options should not be
26178 # required.
26179
26180 #
26181 # Most delegates have includes in the same directory as the library, but not all...
26182 #
26183 # Includes
cristyfdc7d122013-08-17 20:46:45 +000026184 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 +000026185 if test -d "$builddir/$dir"; then
26186 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26187 else
26188 if test -d "$srcdirfull/$dir"; then
26189 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26190 fi
26191 fi
26192 done
26193
26194 # Libraries
cristyfdc7d122013-08-17 20:46:45 +000026195 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 +000026196 if test -d "$builddir/$dir/.libs"; then
26197 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26198 else
26199 if test -d "$srcdirfull/$dir/.libs"; then
26200 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26201 fi
26202 fi
26203 if test -d "$builddir/$dir"; then
26204 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26205 else
26206 if test -d "$srcdirfull/$dir"; then
26207 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26208 fi
26209 fi
26210 done
26211fi
26212
26213# Assume that delegate headers reside under same directory as ImageMagick
26214# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026215MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026216
26217#
26218# Find the X11 RGB database
26219#
cristy8b350f62009-11-15 23:12:43 +000026220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026221$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026222if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026223 $as_echo_n "(cached) " >&6
26224else
26225 # Look for the header file in a standard set of common directories.
26226# Check X11 before X11Rn because it is often a symlink to the current release.
26227 for ac_dir in \
26228 /lib/usr/lib/X11 \
26229 /usr/X11/lib \
26230 /usr/X11R4/lib \
26231 /usr/X11R5/lib \
26232 /usr/X11R6/lib \
26233 /usr/X11R7/lib \
26234 /usr/X386/lib \
26235 /usr/XFree86/lib/X11 \
26236 /usr/athena/lib \
26237 /usr/lib \
26238 /usr/lib/X11 \
26239 /usr/lib/X11R4 \
26240 /usr/lib/X11R5 \
26241 /usr/lib/X11R6 \
26242 /usr/lib/X11R7 \
26243 /usr/local/X11/lib \
26244 /usr/local/X11R4/lib \
26245 /usr/local/X11R5/lib \
26246 /usr/local/X11R6/lib \
26247 /usr/local/lib \
26248 /usr/local/lib/X11 \
26249 /usr/local/lib/X11R4 \
26250 /usr/local/lib/X11R5 \
26251 /usr/local/lib/X11R6 \
26252 /usr/local/lib/X11R7 \
26253 /usr/local/x11r5/lib \
26254 /usr/lpp/Xamples/lib \
26255 /usr/openwin/lib \
26256 /usr/openwin/share/lib \
26257 /usr/unsupported/lib \
26258 /usr/x386/lib \
26259 ; do
26260 if test -f "$ac_dir/X11/rgb.txt"; then
26261 im_cv_x_configure="$ac_dir/X11/"
26262 break
26263 elif test -f "$ac_dir/rgb.txt"; then
26264 im_cv_x_configure="$ac_dir/"
26265 break
26266 fi
26267
26268 done
26269fi
cristy8b350f62009-11-15 23:12:43 +000026270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026271$as_echo "$im_cv_x_configure" >&6; }
26272X11_CONFIGURE_PATH="$im_cv_x_configure"
26273case "${build_os}" in
26274 mingw* )
26275 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26276 ;;
26277esac
26278
26279cat >>confdefs.h <<_ACEOF
26280#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26281_ACEOF
26282
26283
26284#
26285# Find OpenMP library
26286#
26287GOMP_LIBS=''
26288if test "$enable_openmp" != 'no'; then
26289 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026290 # Open64 (passes for GCC but uses different OpenMP implementation)
26291 if test "x$GOMP_LIBS" = x ; then
26292 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26294$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26295if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26296 $as_echo_n "(cached) " >&6
26297else
26298 ac_check_lib_save_LIBS=$LIBS
26299LIBS="-lopenmp $LIBS"
26300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26301/* end confdefs.h. */
26302
26303/* Override any GCC internal prototype to avoid an error.
26304 Use char because int might match the return type of a GCC
26305 builtin and then its argument prototype would still apply. */
26306#ifdef __cplusplus
26307extern "C"
26308#endif
26309char omp_get_num_procs ();
26310int
26311main ()
26312{
26313return omp_get_num_procs ();
26314 ;
26315 return 0;
26316}
26317_ACEOF
26318if ac_fn_c_try_link "$LINENO"; then :
26319 ac_cv_lib_openmp_omp_get_num_procs=yes
26320else
26321 ac_cv_lib_openmp_omp_get_num_procs=no
26322fi
26323rm -f core conftest.err conftest.$ac_objext \
26324 conftest$ac_exeext conftest.$ac_ext
26325LIBS=$ac_check_lib_save_LIBS
26326fi
26327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26328$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26329if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26330 GOMP_LIBS="-lopenmp"
26331fi
26332
26333 fi
26334 fi
26335 # GCC
26336 if test "x$GOMP_LIBS" = x ; then
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026338$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026339if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026340 $as_echo_n "(cached) " >&6
26341else
26342 ac_check_lib_save_LIBS=$LIBS
26343LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026345/* end confdefs.h. */
26346
26347/* Override any GCC internal prototype to avoid an error.
26348 Use char because int might match the return type of a GCC
26349 builtin and then its argument prototype would still apply. */
26350#ifdef __cplusplus
26351extern "C"
26352#endif
26353char GOMP_parallel_start ();
26354int
26355main ()
26356{
26357return GOMP_parallel_start ();
26358 ;
26359 return 0;
26360}
26361_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026362if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026363 ac_cv_lib_gomp_GOMP_parallel_start=yes
26364else
cristy8b350f62009-11-15 23:12:43 +000026365 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026366fi
cristy8b350f62009-11-15 23:12:43 +000026367rm -f core conftest.err conftest.$ac_objext \
26368 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026369LIBS=$ac_check_lib_save_LIBS
26370fi
cristy8b350f62009-11-15 23:12:43 +000026371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026372$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026373if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026374 GOMP_LIBS="-lgomp"
26375fi
cristy18307f12011-12-30 01:20:16 +000026376
26377 fi
cristy3ed852e2009-09-05 21:47:34 +000026378 else
cristy18307f12011-12-30 01:20:16 +000026379 # Sun CC
26380 if test "x$GOMP_LIBS" = x ; then
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026382$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026383if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026384 $as_echo_n "(cached) " >&6
26385else
26386 ac_check_lib_save_LIBS=$LIBS
26387LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026389/* end confdefs.h. */
26390
26391/* Override any GCC internal prototype to avoid an error.
26392 Use char because int might match the return type of a GCC
26393 builtin and then its argument prototype would still apply. */
26394#ifdef __cplusplus
26395extern "C"
26396#endif
26397char sunw_mp_register_warn ();
26398int
26399main ()
26400{
26401return sunw_mp_register_warn ();
26402 ;
26403 return 0;
26404}
26405_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026406if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026407 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26408else
cristy8b350f62009-11-15 23:12:43 +000026409 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026410fi
cristy8b350f62009-11-15 23:12:43 +000026411rm -f core conftest.err conftest.$ac_objext \
26412 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026413LIBS=$ac_check_lib_save_LIBS
26414fi
cristy8b350f62009-11-15 23:12:43 +000026415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026416$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026417if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026418 GOMP_LIBS="-lmtsk"
26419fi
cristy18307f12011-12-30 01:20:16 +000026420
26421 fi
26422 # AIX xlc
26423 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026425$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026426if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026427 $as_echo_n "(cached) " >&6
26428else
26429 ac_check_lib_save_LIBS=$LIBS
26430LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026432/* end confdefs.h. */
26433
26434/* Override any GCC internal prototype to avoid an error.
26435 Use char because int might match the return type of a GCC
26436 builtin and then its argument prototype would still apply. */
26437#ifdef __cplusplus
26438extern "C"
26439#endif
26440char _xlsmpFlush ();
26441int
26442main ()
26443{
26444return _xlsmpFlush ();
26445 ;
26446 return 0;
26447}
26448_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026449if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026450 ac_cv_lib_xlsmp__xlsmpFlush=yes
26451else
cristy8b350f62009-11-15 23:12:43 +000026452 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026453fi
cristy8b350f62009-11-15 23:12:43 +000026454rm -f core conftest.err conftest.$ac_objext \
26455 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026456LIBS=$ac_check_lib_save_LIBS
26457fi
cristy8b350f62009-11-15 23:12:43 +000026458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026459$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026460if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026461 GOMP_LIBS="-lxlsmp"
26462fi
cristy18307f12011-12-30 01:20:16 +000026463
26464 fi
26465 # SGI IRIX 6.5 MIPSpro C/C++
26466 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026468$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026469if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026470 $as_echo_n "(cached) " >&6
26471else
26472 ac_check_lib_save_LIBS=$LIBS
26473LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026475/* end confdefs.h. */
26476
26477/* Override any GCC internal prototype to avoid an error.
26478 Use char because int might match the return type of a GCC
26479 builtin and then its argument prototype would still apply. */
26480#ifdef __cplusplus
26481extern "C"
26482#endif
26483char mp_destroy ();
26484int
26485main ()
26486{
26487return mp_destroy ();
26488 ;
26489 return 0;
26490}
26491_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026492if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026493 ac_cv_lib_mp_mp_destroy=yes
26494else
cristy8b350f62009-11-15 23:12:43 +000026495 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026496fi
cristy8b350f62009-11-15 23:12:43 +000026497rm -f core conftest.err conftest.$ac_objext \
26498 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026499LIBS=$ac_check_lib_save_LIBS
26500fi
cristy8b350f62009-11-15 23:12:43 +000026501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026502$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026503if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026504 GOMP_LIBS="-lmp"
26505fi
cristy18307f12011-12-30 01:20:16 +000026506
26507 fi
cristy3ed852e2009-09-05 21:47:34 +000026508 fi
26509 LIBS="$GOMP_LIBS $LIBS"
26510fi
26511
26512
cristy3ed852e2009-09-05 21:47:34 +000026513
26514
26515#
26516# Check for umem.
26517#
26518have_umem='no'
26519UMEM_LIBS=''
26520if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026522$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26524$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026525 failed=0
26526 passed=0
cristy8b350f62009-11-15 23:12:43 +000026527 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026528if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026529 passed=`expr $passed + 1`
26530else
26531 failed=`expr $failed + 1`
26532fi
26533
26534
cristy8b350f62009-11-15 23:12:43 +000026535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026536$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026537if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026538 $as_echo_n "(cached) " >&6
26539else
26540 ac_check_lib_save_LIBS=$LIBS
26541LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026543/* end confdefs.h. */
26544
26545/* Override any GCC internal prototype to avoid an error.
26546 Use char because int might match the return type of a GCC
26547 builtin and then its argument prototype would still apply. */
26548#ifdef __cplusplus
26549extern "C"
26550#endif
26551char umem_alloc ();
26552int
26553main ()
26554{
26555return umem_alloc ();
26556 ;
26557 return 0;
26558}
26559_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026560if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026561 ac_cv_lib_umem_umem_alloc=yes
26562else
cristy8b350f62009-11-15 23:12:43 +000026563 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026564fi
cristy8b350f62009-11-15 23:12:43 +000026565rm -f core conftest.err conftest.$ac_objext \
26566 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026567LIBS=$ac_check_lib_save_LIBS
26568fi
cristy8b350f62009-11-15 23:12:43 +000026569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026570$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026571if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026572 passed=`expr $passed + 1`
26573else
26574 failed=`expr $failed + 1`
26575fi
26576
cristy8b350f62009-11-15 23:12:43 +000026577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026578$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026579if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026580 $as_echo_n "(cached) " >&6
26581else
26582 ac_check_lib_save_LIBS=$LIBS
26583LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026585/* end confdefs.h. */
26586
26587/* Override any GCC internal prototype to avoid an error.
26588 Use char because int might match the return type of a GCC
26589 builtin and then its argument prototype would still apply. */
26590#ifdef __cplusplus
26591extern "C"
26592#endif
26593char umem_free ();
26594int
26595main ()
26596{
26597return umem_free ();
26598 ;
26599 return 0;
26600}
26601_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026602if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026603 ac_cv_lib_umem_umem_free=yes
26604else
cristy8b350f62009-11-15 23:12:43 +000026605 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026606fi
cristy8b350f62009-11-15 23:12:43 +000026607rm -f core conftest.err conftest.$ac_objext \
26608 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026609LIBS=$ac_check_lib_save_LIBS
26610fi
cristy8b350f62009-11-15 23:12:43 +000026611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026612$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026613if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026614 passed=`expr $passed + 1`
26615else
26616 failed=`expr $failed + 1`
26617fi
26618
cristy8b350f62009-11-15 23:12:43 +000026619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026620$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26621 if test $passed -gt 0; then
26622 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26624$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026625 have_umem='no (failed tests)'
26626 else
26627 UMEM_LIBS='-lumem'
26628 LIBS="$UMEM_LIBS $LIBS"
26629
cristy8b350f62009-11-15 23:12:43 +000026630$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026631
cristyad38abe2012-12-23 23:03:21 +000026632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26633$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026634 have_umem='yes'
26635 fi
26636 else
cristyad38abe2012-12-23 23:03:21 +000026637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26638$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026639 fi
26640fi
cristy73bd4a52010-10-05 11:24:23 +000026641 if test "$have_umem" = 'yes'; then
26642 HasUMEM_TRUE=
26643 HasUMEM_FALSE='#'
26644else
26645 HasUMEM_TRUE='#'
26646 HasUMEM_FALSE=
26647fi
26648
cristy3ed852e2009-09-05 21:47:34 +000026649
26650
26651#
26652# Add support for ccmalloc memory debugging library if requested
26653#
26654have_ccmalloc='no'
26655CCMALLOC_LIBS=''
26656if test "$enable_ccmalloc" = 'yes'; then
26657 # Extract the first word of "ccmalloc", so it can be a program name with args.
26658set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026660$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026661if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026662 $as_echo_n "(cached) " >&6
26663else
26664 case $CCMALLOCDelegate in
26665 [\\/]* | ?:[\\/]*)
26666 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26667 ;;
26668 *)
26669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26670for as_dir in $PATH
26671do
26672 IFS=$as_save_IFS
26673 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026674 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026676 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026678 break 2
26679 fi
26680done
cristy8b350f62009-11-15 23:12:43 +000026681 done
cristy3ed852e2009-09-05 21:47:34 +000026682IFS=$as_save_IFS
26683
26684 ;;
26685esac
26686fi
26687CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26688if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026690$as_echo "$CCMALLOCDelegate" >&6; }
26691else
cristy8b350f62009-11-15 23:12:43 +000026692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026693$as_echo "no" >&6; }
26694fi
26695
26696
26697 if test -n "$CCMALLOCDelegate"; then
26698 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26699 OLIBS="$LIBS"
26700 # Assume that gcc is used with ccmalloc.
26701 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026703$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026704if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026705 $as_echo_n "(cached) " >&6
26706else
26707 ac_check_lib_save_LIBS=$LIBS
26708LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026710/* end confdefs.h. */
26711
26712/* Override any GCC internal prototype to avoid an error.
26713 Use char because int might match the return type of a GCC
26714 builtin and then its argument prototype would still apply. */
26715#ifdef __cplusplus
26716extern "C"
26717#endif
26718char ccmalloc_malloc ();
26719int
26720main ()
26721{
26722return ccmalloc_malloc ();
26723 ;
26724 return 0;
26725}
26726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026727if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026728 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26729else
cristy8b350f62009-11-15 23:12:43 +000026730 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026731fi
cristy8b350f62009-11-15 23:12:43 +000026732rm -f core conftest.err conftest.$ac_objext \
26733 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026734LIBS=$ac_check_lib_save_LIBS
26735fi
cristy8b350f62009-11-15 23:12:43 +000026736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026737$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026738if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026739 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26740fi
26741
26742 if test -n "$CCMALLOC_LIBS"; then
26743 LIBS="$OLIBS"
26744 LIBS="$LIBS $CCMALLOC_LIBS"
26745 have_ccmalloc='yes'
26746 else
26747 LIBS="$OLIBS"
26748 fi
26749 fi
26750fi
26751
26752#
cristy944e51f2013-04-16 18:45:02 +000026753# Add support for 'huge pages' if requested
26754#
26755if test "x$enable_hugepages" != "xno"; then :
26756
26757
26758$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26759
26760
26761fi
26762
26763#
cristy3ed852e2009-09-05 21:47:34 +000026764# Add support for efence memory debugging library if requested
26765#
26766if test "$enable_efence" = 'yes'; then
26767 EFENCE_LIBS='-lefence'
26768 LIBS="$EFENCE_LIBS $LIBS"
26769fi
26770
cristy3ed852e2009-09-05 21:47:34 +000026771
26772#
26773# Check for BZLIB
26774#
26775
26776
26777# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026778if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026779 withval=$with_bzlib; with_bzlib=$withval
26780else
26781 with_bzlib='yes'
26782fi
26783
26784
26785if test "$with_bzlib" != 'yes'; then
26786 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26787fi
26788
26789have_bzlib='no'
26790if test "$with_bzlib" != 'no'; then
26791 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26793$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026795$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26797$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026798 failed=0
26799 passed=0
26800 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026801 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026802if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026803 passed=`expr $passed + 1`
26804else
26805 failed=`expr $failed + 1`
26806fi
26807
26808
cristy8b350f62009-11-15 23:12:43 +000026809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026810$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026811if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026812 $as_echo_n "(cached) " >&6
26813else
26814 ac_check_lib_save_LIBS=$LIBS
26815LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026817/* end confdefs.h. */
26818
26819/* Override any GCC internal prototype to avoid an error.
26820 Use char because int might match the return type of a GCC
26821 builtin and then its argument prototype would still apply. */
26822#ifdef __cplusplus
26823extern "C"
26824#endif
26825char BZ2_bzDecompress ();
26826int
26827main ()
26828{
26829return BZ2_bzDecompress ();
26830 ;
26831 return 0;
26832}
26833_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026834if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026835 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26836else
cristy8b350f62009-11-15 23:12:43 +000026837 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026838fi
cristy8b350f62009-11-15 23:12:43 +000026839rm -f core conftest.err conftest.$ac_objext \
26840 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026841LIBS=$ac_check_lib_save_LIBS
26842fi
cristy8b350f62009-11-15 23:12:43 +000026843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026844$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026845if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026846 found_libbz=`expr $found_libbz + 1`
26847fi
26848
26849 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026851$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026852if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026853 $as_echo_n "(cached) " >&6
26854else
26855 ac_check_lib_save_LIBS=$LIBS
26856LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026858/* end confdefs.h. */
26859
26860/* Override any GCC internal prototype to avoid an error.
26861 Use char because int might match the return type of a GCC
26862 builtin and then its argument prototype would still apply. */
26863#ifdef __cplusplus
26864extern "C"
26865#endif
26866char _imp__BZ2_decompress ();
26867int
26868main ()
26869{
26870return _imp__BZ2_decompress ();
26871 ;
26872 return 0;
26873}
26874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026875if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026876 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26877else
cristy8b350f62009-11-15 23:12:43 +000026878 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026879fi
cristy8b350f62009-11-15 23:12:43 +000026880rm -f core conftest.err conftest.$ac_objext \
26881 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026882LIBS=$ac_check_lib_save_LIBS
26883fi
cristy8b350f62009-11-15 23:12:43 +000026884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026885$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026886if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026887 found_libbz=`expr $found_libbz + 1`
26888fi
26889
26890 fi
26891 if test $found_libbz -gt 0; then
26892 passed=`expr $passed + 1`
26893 else
26894 failed=`expr $failed + 1`
26895 fi
cristy8b350f62009-11-15 23:12:43 +000026896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026897$as_echo_n "checking if BZLIB package is complete... " >&6; }
26898 if test $passed -gt 0; then
26899 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26901$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026902 have_bzlib='no (failed tests)'
26903 else
26904 BZLIB_LIBS='-lbz2'
26905 LIBS="$BZLIB_LIBS $LIBS"
26906
cristy8b350f62009-11-15 23:12:43 +000026907$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026908
cristyad38abe2012-12-23 23:03:21 +000026909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26910$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026911 have_bzlib='yes'
26912 fi
26913 else
cristyad38abe2012-12-23 23:03:21 +000026914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26915$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026916 fi
26917fi
cristy73bd4a52010-10-05 11:24:23 +000026918 if test "$have_bzlib" = 'yes'; then
26919 BZLIB_DELEGATE_TRUE=
26920 BZLIB_DELEGATE_FALSE='#'
26921else
26922 BZLIB_DELEGATE_TRUE='#'
26923 BZLIB_DELEGATE_FALSE=
26924fi
26925
cristy3ed852e2009-09-05 21:47:34 +000026926
26927
26928#
26929# Find the X11 include and library directories.
26930#
26931IPC_LIBS=''
26932X11_LIBS=''
26933XEXT_LIBS=''
26934XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026936$as_echo_n "checking for X... " >&6; }
26937
26938
26939# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026940if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026941 withval=$with_x;
26942fi
26943
26944# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26945if test "x$with_x" = xno; then
26946 # The user explicitly disabled X.
26947 have_x=disabled
26948else
26949 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026950 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026951 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026952 $as_echo_n "(cached) " >&6
26953else
26954 # One or both of the vars are not set, and there is no cached value.
26955ac_x_includes=no ac_x_libraries=no
26956rm -f -r conftest.dir
26957if mkdir conftest.dir; then
26958 cd conftest.dir
26959 cat >Imakefile <<'_ACEOF'
26960incroot:
26961 @echo incroot='${INCROOT}'
26962usrlibdir:
26963 @echo usrlibdir='${USRLIBDIR}'
26964libdir:
26965 @echo libdir='${LIBDIR}'
26966_ACEOF
26967 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026968 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026969 for ac_var in incroot usrlibdir libdir; do
26970 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26971 done
26972 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26973 for ac_extension in a so sl dylib la dll; do
26974 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26975 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26976 ac_im_usrlibdir=$ac_im_libdir; break
26977 fi
26978 done
26979 # Screen out bogus values from the imake configuration. They are
26980 # bogus both because they are the default anyway, and because
26981 # using them would break gcc on systems where it needs fixed includes.
26982 case $ac_im_incroot in
26983 /usr/include) ac_x_includes= ;;
26984 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26985 esac
26986 case $ac_im_usrlibdir in
26987 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26988 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26989 esac
26990 fi
26991 cd ..
26992 rm -f -r conftest.dir
26993fi
26994
26995# Standard set of common directories for X headers.
26996# Check X11 before X11Rn because it is often a symlink to the current release.
26997ac_x_header_dirs='
26998/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026999/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027000/usr/X11R6/include
27001/usr/X11R5/include
27002/usr/X11R4/include
27003
27004/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027005/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027006/usr/include/X11R6
27007/usr/include/X11R5
27008/usr/include/X11R4
27009
27010/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027011/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027012/usr/local/X11R6/include
27013/usr/local/X11R5/include
27014/usr/local/X11R4/include
27015
27016/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027017/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027018/usr/local/include/X11R6
27019/usr/local/include/X11R5
27020/usr/local/include/X11R4
27021
27022/usr/X386/include
27023/usr/x386/include
27024/usr/XFree86/include/X11
27025
27026/usr/include
27027/usr/local/include
27028/usr/unsupported/include
27029/usr/athena/include
27030/usr/local/x11r5/include
27031/usr/lpp/Xamples/include
27032
27033/usr/openwin/include
27034/usr/openwin/share/include'
27035
27036if test "$ac_x_includes" = no; then
27037 # Guess where to find include files, by looking for Xlib.h.
27038 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027040/* end confdefs.h. */
27041#include <X11/Xlib.h>
27042_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027043if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027044 # We can compile using X headers with no special include directory.
27045ac_x_includes=
27046else
cristyc7083c12009-10-14 03:16:55 +000027047 for ac_dir in $ac_x_header_dirs; do
27048 if test -r "$ac_dir/X11/Xlib.h"; then
27049 ac_x_includes=$ac_dir
27050 break
27051 fi
27052done
27053fi
cristyda16f162011-02-19 23:52:17 +000027054rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027055fi # $ac_x_includes = no
27056
27057if test "$ac_x_libraries" = no; then
27058 # Check for the libraries.
27059 # See if we find them without any special options.
27060 # Don't add to $LIBS permanently.
27061 ac_save_LIBS=$LIBS
27062 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027064/* end confdefs.h. */
27065#include <X11/Xlib.h>
27066int
27067main ()
27068{
27069XrmInitialize ()
27070 ;
27071 return 0;
27072}
27073_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027074if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027075 LIBS=$ac_save_LIBS
27076# We can link X programs with no special library path.
27077ac_x_libraries=
27078else
cristy8b350f62009-11-15 23:12:43 +000027079 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027080for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27081do
27082 # Don't even attempt the hair of trying to link an X program!
27083 for ac_extension in a so sl dylib la dll; do
27084 if test -r "$ac_dir/libX11.$ac_extension"; then
27085 ac_x_libraries=$ac_dir
27086 break 2
27087 fi
27088 done
27089done
27090fi
cristy8b350f62009-11-15 23:12:43 +000027091rm -f core conftest.err conftest.$ac_objext \
27092 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027093fi # $ac_x_libraries = no
27094
27095case $ac_x_includes,$ac_x_libraries in #(
27096 no,* | *,no | *\'*)
27097 # Didn't find X, or a directory has "'" in its name.
27098 ac_cv_have_x="have_x=no";; #(
27099 *)
27100 # Record where we found X for the cache.
27101 ac_cv_have_x="have_x=yes\
27102 ac_x_includes='$ac_x_includes'\
27103 ac_x_libraries='$ac_x_libraries'"
27104esac
27105fi
27106;; #(
27107 *) have_x=yes;;
27108 esac
27109 eval "$ac_cv_have_x"
27110fi # $with_x != no
27111
27112if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027114$as_echo "$have_x" >&6; }
27115 no_x=yes
27116else
27117 # If each of the values was on the command line, it overrides each guess.
27118 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27119 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27120 # Update the cache value to reflect the command line values.
27121 ac_cv_have_x="have_x=yes\
27122 ac_x_includes='$x_includes'\
27123 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027125$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27126fi
27127
cristy3ed852e2009-09-05 21:47:34 +000027128if test "$no_x" = yes; then
27129 # Not all programs may use this symbol, but it does not hurt to define it.
27130
cristy8b350f62009-11-15 23:12:43 +000027131$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027132
27133 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27134else
27135 if test -n "$x_includes"; then
27136 X_CFLAGS="$X_CFLAGS -I$x_includes"
27137 fi
27138
27139 # It would also be nice to do this for all -L options, not just this one.
27140 if test -n "$x_libraries"; then
27141 X_LIBS="$X_LIBS -L$x_libraries"
27142 # For Solaris; some versions of Sun CC require a space after -R and
27143 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027145$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27146 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27147 ac_xsave_c_werror_flag=$ac_c_werror_flag
27148 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027150/* end confdefs.h. */
27151
27152int
27153main ()
27154{
27155
27156 ;
27157 return 0;
27158}
27159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027160if ac_fn_c_try_link "$LINENO"; then :
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027162$as_echo "no" >&6; }
27163 X_LIBS="$X_LIBS -R$x_libraries"
27164else
cristy8b350f62009-11-15 23:12:43 +000027165 LIBS="$ac_xsave_LIBS -R $x_libraries"
27166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027167/* end confdefs.h. */
27168
27169int
27170main ()
27171{
27172
27173 ;
27174 return 0;
27175}
27176_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027177if ac_fn_c_try_link "$LINENO"; then :
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027179$as_echo "yes" >&6; }
27180 X_LIBS="$X_LIBS -R $x_libraries"
27181else
cristy8b350f62009-11-15 23:12:43 +000027182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027183$as_echo "neither works" >&6; }
27184fi
cristy8b350f62009-11-15 23:12:43 +000027185rm -f core conftest.err conftest.$ac_objext \
27186 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027187fi
cristy8b350f62009-11-15 23:12:43 +000027188rm -f core conftest.err conftest.$ac_objext \
27189 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027190 ac_c_werror_flag=$ac_xsave_c_werror_flag
27191 LIBS=$ac_xsave_LIBS
27192 fi
27193
27194 # Check for system-dependent libraries X programs must link with.
27195 # Do this before checking for the system-independent R6 libraries
27196 # (-lICE), since we may need -lsocket or whatever for X linking.
27197
27198 if test "$ISC" = yes; then
27199 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27200 else
27201 # Martyn Johnson says this is needed for Ultrix, if the X
27202 # libraries were built with DECnet support. And Karl Berry says
27203 # the Alpha needs dnet_stub (dnet does not exist).
27204 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027206/* end confdefs.h. */
27207
27208/* Override any GCC internal prototype to avoid an error.
27209 Use char because int might match the return type of a GCC
27210 builtin and then its argument prototype would still apply. */
27211#ifdef __cplusplus
27212extern "C"
27213#endif
27214char XOpenDisplay ();
27215int
27216main ()
27217{
27218return XOpenDisplay ();
27219 ;
27220 return 0;
27221}
27222_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027223if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027224
cristy8b350f62009-11-15 23:12:43 +000027225else
27226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027227$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027228if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027229 $as_echo_n "(cached) " >&6
27230else
27231 ac_check_lib_save_LIBS=$LIBS
27232LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027234/* end confdefs.h. */
27235
27236/* Override any GCC internal prototype to avoid an error.
27237 Use char because int might match the return type of a GCC
27238 builtin and then its argument prototype would still apply. */
27239#ifdef __cplusplus
27240extern "C"
27241#endif
27242char dnet_ntoa ();
27243int
27244main ()
27245{
27246return dnet_ntoa ();
27247 ;
27248 return 0;
27249}
27250_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027251if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027252 ac_cv_lib_dnet_dnet_ntoa=yes
27253else
cristy8b350f62009-11-15 23:12:43 +000027254 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027255fi
cristy8b350f62009-11-15 23:12:43 +000027256rm -f core conftest.err conftest.$ac_objext \
27257 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027258LIBS=$ac_check_lib_save_LIBS
27259fi
cristy8b350f62009-11-15 23:12:43 +000027260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027261$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027262if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027263 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27264fi
27265
27266 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027268$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027269if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027270 $as_echo_n "(cached) " >&6
27271else
27272 ac_check_lib_save_LIBS=$LIBS
27273LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027275/* end confdefs.h. */
27276
27277/* Override any GCC internal prototype to avoid an error.
27278 Use char because int might match the return type of a GCC
27279 builtin and then its argument prototype would still apply. */
27280#ifdef __cplusplus
27281extern "C"
27282#endif
27283char dnet_ntoa ();
27284int
27285main ()
27286{
27287return dnet_ntoa ();
27288 ;
27289 return 0;
27290}
27291_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027292if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027293 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27294else
cristy8b350f62009-11-15 23:12:43 +000027295 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027296fi
cristy8b350f62009-11-15 23:12:43 +000027297rm -f core conftest.err conftest.$ac_objext \
27298 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027299LIBS=$ac_check_lib_save_LIBS
27300fi
cristy8b350f62009-11-15 23:12:43 +000027301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027302$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027303if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027304 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27305fi
27306
27307 fi
27308fi
cristy8b350f62009-11-15 23:12:43 +000027309rm -f core conftest.err conftest.$ac_objext \
27310 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027311 LIBS="$ac_xsave_LIBS"
27312
27313 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27314 # to get the SysV transport functions.
27315 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27316 # needs -lnsl.
27317 # The nsl library prevents programs from opening the X display
27318 # on Irix 5.2, according to T.E. Dickey.
27319 # The functions gethostbyname, getservbyname, and inet_addr are
27320 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027321 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027322if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027323
cristy3ed852e2009-09-05 21:47:34 +000027324fi
27325
cristy3ed852e2009-09-05 21:47:34 +000027326 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027328$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027329if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027330 $as_echo_n "(cached) " >&6
27331else
27332 ac_check_lib_save_LIBS=$LIBS
27333LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027335/* end confdefs.h. */
27336
27337/* Override any GCC internal prototype to avoid an error.
27338 Use char because int might match the return type of a GCC
27339 builtin and then its argument prototype would still apply. */
27340#ifdef __cplusplus
27341extern "C"
27342#endif
27343char gethostbyname ();
27344int
27345main ()
27346{
27347return gethostbyname ();
27348 ;
27349 return 0;
27350}
27351_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027352if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027353 ac_cv_lib_nsl_gethostbyname=yes
27354else
cristy8b350f62009-11-15 23:12:43 +000027355 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027356fi
cristy8b350f62009-11-15 23:12:43 +000027357rm -f core conftest.err conftest.$ac_objext \
27358 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027359LIBS=$ac_check_lib_save_LIBS
27360fi
cristy8b350f62009-11-15 23:12:43 +000027361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027362$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027363if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027364 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27365fi
27366
27367 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027369$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027370if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027371 $as_echo_n "(cached) " >&6
27372else
27373 ac_check_lib_save_LIBS=$LIBS
27374LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027376/* end confdefs.h. */
27377
27378/* Override any GCC internal prototype to avoid an error.
27379 Use char because int might match the return type of a GCC
27380 builtin and then its argument prototype would still apply. */
27381#ifdef __cplusplus
27382extern "C"
27383#endif
27384char gethostbyname ();
27385int
27386main ()
27387{
27388return gethostbyname ();
27389 ;
27390 return 0;
27391}
27392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027393if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027394 ac_cv_lib_bsd_gethostbyname=yes
27395else
cristy8b350f62009-11-15 23:12:43 +000027396 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027397fi
cristy8b350f62009-11-15 23:12:43 +000027398rm -f core conftest.err conftest.$ac_objext \
27399 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027400LIBS=$ac_check_lib_save_LIBS
27401fi
cristy8b350f62009-11-15 23:12:43 +000027402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027403$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027404if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027405 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27406fi
27407
27408 fi
27409 fi
27410
27411 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27412 # socket/setsockopt and other routines are undefined under SCO ODT
27413 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27414 # on later versions), says Simon Leinen: it contains gethostby*
27415 # variants that don't use the name server (or something). -lsocket
27416 # must be given before -lnsl if both are needed. We assume that
27417 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027418 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027419if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027420
cristy3ed852e2009-09-05 21:47:34 +000027421fi
27422
cristy3ed852e2009-09-05 21:47:34 +000027423 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027425$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027426if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027427 $as_echo_n "(cached) " >&6
27428else
27429 ac_check_lib_save_LIBS=$LIBS
27430LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027432/* end confdefs.h. */
27433
27434/* Override any GCC internal prototype to avoid an error.
27435 Use char because int might match the return type of a GCC
27436 builtin and then its argument prototype would still apply. */
27437#ifdef __cplusplus
27438extern "C"
27439#endif
27440char connect ();
27441int
27442main ()
27443{
27444return connect ();
27445 ;
27446 return 0;
27447}
27448_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027449if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027450 ac_cv_lib_socket_connect=yes
27451else
cristy8b350f62009-11-15 23:12:43 +000027452 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027453fi
cristy8b350f62009-11-15 23:12:43 +000027454rm -f core conftest.err conftest.$ac_objext \
27455 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027456LIBS=$ac_check_lib_save_LIBS
27457fi
cristy8b350f62009-11-15 23:12:43 +000027458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027459$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027460if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027461 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27462fi
27463
27464 fi
27465
27466 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027467 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027468if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027469
cristy3ed852e2009-09-05 21:47:34 +000027470fi
27471
cristy3ed852e2009-09-05 21:47:34 +000027472 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027474$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027475if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027476 $as_echo_n "(cached) " >&6
27477else
27478 ac_check_lib_save_LIBS=$LIBS
27479LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027481/* end confdefs.h. */
27482
27483/* Override any GCC internal prototype to avoid an error.
27484 Use char because int might match the return type of a GCC
27485 builtin and then its argument prototype would still apply. */
27486#ifdef __cplusplus
27487extern "C"
27488#endif
27489char remove ();
27490int
27491main ()
27492{
27493return remove ();
27494 ;
27495 return 0;
27496}
27497_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027498if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027499 ac_cv_lib_posix_remove=yes
27500else
cristy8b350f62009-11-15 23:12:43 +000027501 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027502fi
cristy8b350f62009-11-15 23:12:43 +000027503rm -f core conftest.err conftest.$ac_objext \
27504 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027505LIBS=$ac_check_lib_save_LIBS
27506fi
cristy8b350f62009-11-15 23:12:43 +000027507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027508$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027509if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027510 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27511fi
27512
27513 fi
27514
27515 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027516 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027517if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027518
cristy3ed852e2009-09-05 21:47:34 +000027519fi
27520
cristy3ed852e2009-09-05 21:47:34 +000027521 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027523$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027524if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027525 $as_echo_n "(cached) " >&6
27526else
27527 ac_check_lib_save_LIBS=$LIBS
27528LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027530/* end confdefs.h. */
27531
27532/* Override any GCC internal prototype to avoid an error.
27533 Use char because int might match the return type of a GCC
27534 builtin and then its argument prototype would still apply. */
27535#ifdef __cplusplus
27536extern "C"
27537#endif
27538char shmat ();
27539int
27540main ()
27541{
27542return shmat ();
27543 ;
27544 return 0;
27545}
27546_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027547if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027548 ac_cv_lib_ipc_shmat=yes
27549else
cristy8b350f62009-11-15 23:12:43 +000027550 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027551fi
cristy8b350f62009-11-15 23:12:43 +000027552rm -f core conftest.err conftest.$ac_objext \
27553 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027554LIBS=$ac_check_lib_save_LIBS
27555fi
cristy8b350f62009-11-15 23:12:43 +000027556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027557$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027558if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027559 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27560fi
27561
27562 fi
27563 fi
27564
27565 # Check for libraries that X11R6 Xt/Xaw programs need.
27566 ac_save_LDFLAGS=$LDFLAGS
27567 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27568 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27569 # check for ICE first), but we must link in the order -lSM -lICE or
27570 # we get undefined symbols. So assume we have SM if we have ICE.
27571 # These have to be linked with before -lX11, unlike the other
27572 # libraries we check for below, so use a different variable.
27573 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027575$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027576if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027577 $as_echo_n "(cached) " >&6
27578else
27579 ac_check_lib_save_LIBS=$LIBS
27580LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027582/* end confdefs.h. */
27583
27584/* Override any GCC internal prototype to avoid an error.
27585 Use char because int might match the return type of a GCC
27586 builtin and then its argument prototype would still apply. */
27587#ifdef __cplusplus
27588extern "C"
27589#endif
27590char IceConnectionNumber ();
27591int
27592main ()
27593{
27594return IceConnectionNumber ();
27595 ;
27596 return 0;
27597}
27598_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027599if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027600 ac_cv_lib_ICE_IceConnectionNumber=yes
27601else
cristy8b350f62009-11-15 23:12:43 +000027602 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027603fi
cristy8b350f62009-11-15 23:12:43 +000027604rm -f core conftest.err conftest.$ac_objext \
27605 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027606LIBS=$ac_check_lib_save_LIBS
27607fi
cristy8b350f62009-11-15 23:12:43 +000027608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027609$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027610if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027611 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27612fi
27613
27614 LDFLAGS=$ac_save_LDFLAGS
27615
27616fi
27617
27618if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27620$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027622$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27624$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027625 LDFLAGS="$LDFLAGS $X_LIBS"
27626 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27627 LIBS="$X11_LIBS $LIBS"
27628 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27629
27630
cristy8b350f62009-11-15 23:12:43 +000027631$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027632
27633 #
27634 # Check for X11 shared memory extension
27635 #
27636 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027637 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027638if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027639 have_shmctl='yes'
27640fi
27641
27642 if test "$have_shmctl" != 'yes'; then
27643 PERSIST_LIBS=$LIBS
27644 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027646/* end confdefs.h. */
27647
27648/* Override any GCC internal prototype to avoid an error.
27649 Use char because int might match the return type of a GCC
27650 builtin and then its argument prototype would still apply. */
27651#ifdef __cplusplus
27652extern "C"
27653#endif
27654char shmctl ();
27655int
27656main ()
27657{
27658return shmctl ();
27659 ;
27660 return 0;
27661}
27662_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027663if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027664 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027665fi
cristy8b350f62009-11-15 23:12:43 +000027666rm -f core conftest.err conftest.$ac_objext \
27667 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027668 LIBS=$PERSIST_LIBS
27669 fi
27670
27671 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027673$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027674if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027675 $as_echo_n "(cached) " >&6
27676else
27677 ac_check_lib_save_LIBS=$LIBS
27678LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027680/* end confdefs.h. */
27681
27682/* Override any GCC internal prototype to avoid an error.
27683 Use char because int might match the return type of a GCC
27684 builtin and then its argument prototype would still apply. */
27685#ifdef __cplusplus
27686extern "C"
27687#endif
27688char XShmAttach ();
27689int
27690main ()
27691{
27692return XShmAttach ();
27693 ;
27694 return 0;
27695}
27696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027697if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027698 ac_cv_lib_Xext_XShmAttach=yes
27699else
cristy8b350f62009-11-15 23:12:43 +000027700 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027701fi
cristy8b350f62009-11-15 23:12:43 +000027702rm -f core conftest.err conftest.$ac_objext \
27703 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027704LIBS=$ac_check_lib_save_LIBS
27705fi
cristy8b350f62009-11-15 23:12:43 +000027706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027707$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027708if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027709 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027710$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027711
27712fi
27713
27714 fi
27715
27716 #
27717 # Check for X11 shape extension
27718 #
cristy8b350f62009-11-15 23:12:43 +000027719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027720$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027721if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027722 $as_echo_n "(cached) " >&6
27723else
27724 ac_check_lib_save_LIBS=$LIBS
27725LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027727/* end confdefs.h. */
27728
27729/* Override any GCC internal prototype to avoid an error.
27730 Use char because int might match the return type of a GCC
27731 builtin and then its argument prototype would still apply. */
27732#ifdef __cplusplus
27733extern "C"
27734#endif
27735char XShapeCombineMask ();
27736int
27737main ()
27738{
27739return XShapeCombineMask ();
27740 ;
27741 return 0;
27742}
27743_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027744if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027745 ac_cv_lib_Xext_XShapeCombineMask=yes
27746else
cristy8b350f62009-11-15 23:12:43 +000027747 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027748fi
cristy8b350f62009-11-15 23:12:43 +000027749rm -f core conftest.err conftest.$ac_objext \
27750 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027751LIBS=$ac_check_lib_save_LIBS
27752fi
cristy8b350f62009-11-15 23:12:43 +000027753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027754$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027755if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027756 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027757$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027758
27759fi
27760
cristy8b350f62009-11-15 23:12:43 +000027761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027762$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027763if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027764 $as_echo_n "(cached) " >&6
27765else
27766 ac_check_lib_save_LIBS=$LIBS
27767LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027769/* end confdefs.h. */
27770
27771/* Override any GCC internal prototype to avoid an error.
27772 Use char because int might match the return type of a GCC
27773 builtin and then its argument prototype would still apply. */
27774#ifdef __cplusplus
27775extern "C"
27776#endif
27777char XtSetEventDispatcher ();
27778int
27779main ()
27780{
27781return XtSetEventDispatcher ();
27782 ;
27783 return 0;
27784}
27785_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027786if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027787 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27788else
cristy8b350f62009-11-15 23:12:43 +000027789 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027790fi
cristy8b350f62009-11-15 23:12:43 +000027791rm -f core conftest.err conftest.$ac_objext \
27792 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027793LIBS=$ac_check_lib_save_LIBS
27794fi
cristy8b350f62009-11-15 23:12:43 +000027795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027796$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027797if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027798 XT_LIBS='-lXt'
27799fi
27800
27801 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27802fi
27803if test "$no_x" != 'yes'; then
27804 have_x='yes'
27805else
27806 have_x='no'
27807fi
cristy73bd4a52010-10-05 11:24:23 +000027808 if test "$have_x" = 'yes'; then
27809 X11_DELEGATE_TRUE=
27810 X11_DELEGATE_FALSE='#'
27811else
27812 X11_DELEGATE_TRUE='#'
27813 X11_DELEGATE_FALSE=
27814fi
27815
cristy3ed852e2009-09-05 21:47:34 +000027816
27817
27818
27819
27820#
27821# Check for ZLIB
27822#
27823
27824# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027825if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027826 withval=$with_zlib; with_zlib=$withval
27827else
27828 with_zlib='yes'
27829fi
27830
27831
27832if test "$with_zlib" != 'yes'; then
27833 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27834fi
27835
27836have_zlib='no'
27837ZLIB_LIBS=''
27838if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27840$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027842$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27844$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027845 ZLIB_LIBS=''
27846 failed=0
27847 passed=0
cristy8b350f62009-11-15 23:12:43 +000027848 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027849if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027850 passed=`expr $passed + 1`
27851else
27852 failed=`expr $failed + 1`
27853fi
27854
27855
cristy8b350f62009-11-15 23:12:43 +000027856 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027857if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027858 passed=`expr $passed + 1`
27859else
27860 failed=`expr $failed + 1`
27861fi
27862
27863
cristy8b350f62009-11-15 23:12:43 +000027864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027865$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027866if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027867 $as_echo_n "(cached) " >&6
27868else
27869 ac_check_lib_save_LIBS=$LIBS
27870LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027872/* end confdefs.h. */
27873
27874/* Override any GCC internal prototype to avoid an error.
27875 Use char because int might match the return type of a GCC
27876 builtin and then its argument prototype would still apply. */
27877#ifdef __cplusplus
27878extern "C"
27879#endif
27880char compress ();
27881int
27882main ()
27883{
27884return compress ();
27885 ;
27886 return 0;
27887}
27888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027889if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027890 ac_cv_lib_z_compress=yes
27891else
cristy8b350f62009-11-15 23:12:43 +000027892 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027893fi
cristy8b350f62009-11-15 23:12:43 +000027894rm -f core conftest.err conftest.$ac_objext \
27895 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027896LIBS=$ac_check_lib_save_LIBS
27897fi
cristy8b350f62009-11-15 23:12:43 +000027898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027899$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027900if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027901 passed=`expr $passed + 1`
27902else
27903 failed=`expr $failed + 1`
27904fi
27905
cristy8b350f62009-11-15 23:12:43 +000027906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027907$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027908if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027909 $as_echo_n "(cached) " >&6
27910else
27911 ac_check_lib_save_LIBS=$LIBS
27912LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027914/* end confdefs.h. */
27915
27916/* Override any GCC internal prototype to avoid an error.
27917 Use char because int might match the return type of a GCC
27918 builtin and then its argument prototype would still apply. */
27919#ifdef __cplusplus
27920extern "C"
27921#endif
27922char uncompress ();
27923int
27924main ()
27925{
27926return uncompress ();
27927 ;
27928 return 0;
27929}
27930_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027931if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027932 ac_cv_lib_z_uncompress=yes
27933else
cristy8b350f62009-11-15 23:12:43 +000027934 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027935fi
cristy8b350f62009-11-15 23:12:43 +000027936rm -f core conftest.err conftest.$ac_objext \
27937 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027938LIBS=$ac_check_lib_save_LIBS
27939fi
cristy8b350f62009-11-15 23:12:43 +000027940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027941$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027942if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027943 passed=`expr $passed + 1`
27944else
27945 failed=`expr $failed + 1`
27946fi
27947
cristy8b350f62009-11-15 23:12:43 +000027948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027949$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027950if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027951 $as_echo_n "(cached) " >&6
27952else
27953 ac_check_lib_save_LIBS=$LIBS
27954LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027956/* end confdefs.h. */
27957
27958/* Override any GCC internal prototype to avoid an error.
27959 Use char because int might match the return type of a GCC
27960 builtin and then its argument prototype would still apply. */
27961#ifdef __cplusplus
27962extern "C"
27963#endif
27964char deflate ();
27965int
27966main ()
27967{
27968return deflate ();
27969 ;
27970 return 0;
27971}
27972_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027973if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027974 ac_cv_lib_z_deflate=yes
27975else
cristy8b350f62009-11-15 23:12:43 +000027976 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027977fi
cristy8b350f62009-11-15 23:12:43 +000027978rm -f core conftest.err conftest.$ac_objext \
27979 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027980LIBS=$ac_check_lib_save_LIBS
27981fi
cristy8b350f62009-11-15 23:12:43 +000027982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027983$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027984if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027985 passed=`expr $passed + 1`
27986else
27987 failed=`expr $failed + 1`
27988fi
27989
cristy8b350f62009-11-15 23:12:43 +000027990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027991$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027992if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027993 $as_echo_n "(cached) " >&6
27994else
27995 ac_check_lib_save_LIBS=$LIBS
27996LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027998/* end confdefs.h. */
27999
28000/* Override any GCC internal prototype to avoid an error.
28001 Use char because int might match the return type of a GCC
28002 builtin and then its argument prototype would still apply. */
28003#ifdef __cplusplus
28004extern "C"
28005#endif
28006char inflate ();
28007int
28008main ()
28009{
28010return inflate ();
28011 ;
28012 return 0;
28013}
28014_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028015if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028016 ac_cv_lib_z_inflate=yes
28017else
cristy8b350f62009-11-15 23:12:43 +000028018 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028019fi
cristy8b350f62009-11-15 23:12:43 +000028020rm -f core conftest.err conftest.$ac_objext \
28021 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028022LIBS=$ac_check_lib_save_LIBS
28023fi
cristy8b350f62009-11-15 23:12:43 +000028024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028025$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028026if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028027 passed=`expr $passed + 1`
28028else
28029 failed=`expr $failed + 1`
28030fi
28031
cristy8b350f62009-11-15 23:12:43 +000028032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028033$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028034if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028035 $as_echo_n "(cached) " >&6
28036else
28037 ac_check_lib_save_LIBS=$LIBS
28038LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028040/* end confdefs.h. */
28041
28042/* Override any GCC internal prototype to avoid an error.
28043 Use char because int might match the return type of a GCC
28044 builtin and then its argument prototype would still apply. */
28045#ifdef __cplusplus
28046extern "C"
28047#endif
28048char gzseek ();
28049int
28050main ()
28051{
28052return gzseek ();
28053 ;
28054 return 0;
28055}
28056_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028057if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028058 ac_cv_lib_z_gzseek=yes
28059else
cristy8b350f62009-11-15 23:12:43 +000028060 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028061fi
cristy8b350f62009-11-15 23:12:43 +000028062rm -f core conftest.err conftest.$ac_objext \
28063 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028064LIBS=$ac_check_lib_save_LIBS
28065fi
cristy8b350f62009-11-15 23:12:43 +000028066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028067$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028068if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028069 passed=`expr $passed + 1`
28070else
28071 failed=`expr $failed + 1`
28072fi
28073
cristy8b350f62009-11-15 23:12:43 +000028074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028075$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028076if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028077 $as_echo_n "(cached) " >&6
28078else
28079 ac_check_lib_save_LIBS=$LIBS
28080LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028082/* end confdefs.h. */
28083
28084/* Override any GCC internal prototype to avoid an error.
28085 Use char because int might match the return type of a GCC
28086 builtin and then its argument prototype would still apply. */
28087#ifdef __cplusplus
28088extern "C"
28089#endif
28090char gztell ();
28091int
28092main ()
28093{
28094return gztell ();
28095 ;
28096 return 0;
28097}
28098_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028099if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028100 ac_cv_lib_z_gztell=yes
28101else
cristy8b350f62009-11-15 23:12:43 +000028102 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028103fi
cristy8b350f62009-11-15 23:12:43 +000028104rm -f core conftest.err conftest.$ac_objext \
28105 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028106LIBS=$ac_check_lib_save_LIBS
28107fi
cristy8b350f62009-11-15 23:12:43 +000028108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028109$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028110if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028111 passed=`expr $passed + 1`
28112else
28113 failed=`expr $failed + 1`
28114fi
28115
cristy8b350f62009-11-15 23:12:43 +000028116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028117$as_echo_n "checking if ZLIB package is complete... " >&6; }
28118 if test $passed -gt 0; then
28119 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28121$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028122 have_zlib='no (failed tests)'
28123 else
28124 ZLIB_LIBS='-lz'
28125 LIBS="$ZLIB_LIBS $LIBS"
28126
cristy8b350f62009-11-15 23:12:43 +000028127$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028128
cristyad38abe2012-12-23 23:03:21 +000028129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28130$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028131 have_zlib='yes'
28132 fi
28133 else
cristyad38abe2012-12-23 23:03:21 +000028134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28135$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028136 fi
28137fi
cristy73bd4a52010-10-05 11:24:23 +000028138 if test "$have_zlib" = 'yes'; then
28139 ZLIB_DELEGATE_TRUE=
28140 ZLIB_DELEGATE_FALSE='#'
28141else
28142 ZLIB_DELEGATE_TRUE='#'
28143 ZLIB_DELEGATE_FALSE=
28144fi
28145
cristy3ed852e2009-09-05 21:47:34 +000028146
28147
cristy5eef09f2012-10-16 12:08:28 +000028148# whether modules are built or not.
28149with_ltdl='yes'
28150have_ltdl='no'
28151LTDL_LIBS=''
28152if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28154$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28156$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28158$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028159 failed=0
28160 passed=0
28161 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28162if test "x$ac_cv_header_ltdl_h" = xyes; then :
28163 passed=`expr $passed + 1`
28164else
28165 failed=`expr $failed + 1`
28166fi
28167
28168
28169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28170$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28171if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28172 $as_echo_n "(cached) " >&6
28173else
28174 ac_check_lib_save_LIBS=$LIBS
28175LIBS="-lltdl $LIBS"
28176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28177/* end confdefs.h. */
28178
28179/* Override any GCC internal prototype to avoid an error.
28180 Use char because int might match the return type of a GCC
28181 builtin and then its argument prototype would still apply. */
28182#ifdef __cplusplus
28183extern "C"
28184#endif
28185char lt_dlinit ();
28186int
28187main ()
28188{
28189return lt_dlinit ();
28190 ;
28191 return 0;
28192}
28193_ACEOF
28194if ac_fn_c_try_link "$LINENO"; then :
28195 ac_cv_lib_ltdl_lt_dlinit=yes
28196else
28197 ac_cv_lib_ltdl_lt_dlinit=no
28198fi
28199rm -f core conftest.err conftest.$ac_objext \
28200 conftest$ac_exeext conftest.$ac_ext
28201LIBS=$ac_check_lib_save_LIBS
28202fi
28203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28204$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28205if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28206 passed=`expr $passed + 1`
28207else
28208 failed=`expr $failed + 1`
28209fi
28210
28211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28212$as_echo_n "checking if libltdl package is complete... " >&6; }
28213 if test $passed -gt 0 ; then
28214 if test $failed -gt 0 ; then
28215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28216$as_echo "no -- some components failed test" >&6; }
28217 have_ltdl='no (failed tests)'
28218 else
28219 LTDL_LIBS='-lltdl'
28220 LIBS="$LTDL_LIBS $LIBS"
28221
28222$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28223
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28225$as_echo "yes" >&6; }
28226 have_ltdl='yes'
28227 fi
28228 else
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28230$as_echo "no" >&6; }
28231 fi
cristyaf4cbf32012-10-16 23:47:41 +000028232 if test "$have_ltdl" != 'yes' ; then
28233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28235as_fn_error 1 "libltdl is required for modules build
28236See \`config.log' for more details" "$LINENO" 5; }
28237 fi
cristy5eef09f2012-10-16 12:08:28 +000028238fi
28239 if test "$have_ltdl" != 'no'; then
28240 WITH_LTDL_TRUE=
28241 WITH_LTDL_FALSE='#'
28242else
28243 WITH_LTDL_TRUE='#'
28244 WITH_LTDL_FALSE=
28245fi
28246
28247
cristy3ed852e2009-09-05 21:47:34 +000028248#
28249# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28250#
28251LIB_DL=''
28252if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028254$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028255if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028256 $as_echo_n "(cached) " >&6
28257else
28258 ac_check_lib_save_LIBS=$LIBS
28259LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028261/* end confdefs.h. */
28262
28263/* Override any GCC internal prototype to avoid an error.
28264 Use char because int might match the return type of a GCC
28265 builtin and then its argument prototype would still apply. */
28266#ifdef __cplusplus
28267extern "C"
28268#endif
28269char dlopen ();
28270int
28271main ()
28272{
28273return dlopen ();
28274 ;
28275 return 0;
28276}
28277_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028278if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028279 ac_cv_lib_dl_dlopen=yes
28280else
cristy8b350f62009-11-15 23:12:43 +000028281 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028282fi
cristy8b350f62009-11-15 23:12:43 +000028283rm -f core conftest.err conftest.$ac_objext \
28284 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028285LIBS=$ac_check_lib_save_LIBS
28286fi
cristy8b350f62009-11-15 23:12:43 +000028287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028288$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028289if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028290 LIB_DL='-ldl'
28291fi
28292
28293 LIBS="$LIB_DL $LIBS"
28294fi
28295
28296
28297
28298#
28299# Check for Autotrace delegate library.
28300#
28301
28302# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028303if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028304 withval=$with_autotrace; with_autotrace=$withval
28305else
28306 with_autotrace='no'
28307fi
28308
28309
28310if test "$with_autotrace" != 'yes'; then
28311 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28312fi
28313
28314have_autotrace='no'
28315AUTOTRACE_CFLAGS=""
28316AUTOTRACE_LIBS=""
28317AUTOTRACE_PKG=""
28318if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28320$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028321
28322pkg_failed=no
28323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28324$as_echo_n "checking for AUTOTRACE... " >&6; }
28325
28326if test -n "$AUTOTRACE_CFLAGS"; then
28327 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28328 elif test -n "$PKG_CONFIG"; then
28329 if test -n "$PKG_CONFIG" && \
28330 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28331 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28332 ac_status=$?
28333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28334 test $ac_status = 0; }; then
28335 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28336else
28337 pkg_failed=yes
28338fi
28339 else
28340 pkg_failed=untried
28341fi
28342if test -n "$AUTOTRACE_LIBS"; then
28343 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28344 elif test -n "$PKG_CONFIG"; then
28345 if test -n "$PKG_CONFIG" && \
28346 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28347 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28348 ac_status=$?
28349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28350 test $ac_status = 0; }; then
28351 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28352else
28353 pkg_failed=yes
28354fi
28355 else
28356 pkg_failed=untried
28357fi
28358
28359
28360
28361if test $pkg_failed = yes; then
28362
28363if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28364 _pkg_short_errors_supported=yes
28365else
28366 _pkg_short_errors_supported=no
28367fi
28368 if test $_pkg_short_errors_supported = yes; then
28369 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28370 else
28371 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28372 fi
28373 # Put the nasty error message in config.log where it belongs
28374 echo "$AUTOTRACE_PKG_ERRORS" >&5
28375
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28377$as_echo "no" >&6; }
28378 have_autotrace=no
28379elif test $pkg_failed = untried; then
28380 have_autotrace=no
28381else
28382 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28383 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28385$as_echo "yes" >&6; }
28386 have_autotrace=yes
28387fi
cristyad38abe2012-12-23 23:03:21 +000028388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28389$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028390fi
28391
28392if test "$have_autotrace" = 'yes'; then
28393 failed=0
28394
cristy8b350f62009-11-15 23:12:43 +000028395$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028396
cristyc6722092012-10-14 00:19:31 +000028397 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028398 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028399 fi
28400fi
28401
cristy73bd4a52010-10-05 11:24:23 +000028402 if test "$have_autotrace" = 'yes'; then
28403 AUTOTRACE_DELEGATE_TRUE=
28404 AUTOTRACE_DELEGATE_FALSE='#'
28405else
28406 AUTOTRACE_DELEGATE_TRUE='#'
28407 AUTOTRACE_DELEGATE_FALSE=
28408fi
28409
cristy3ed852e2009-09-05 21:47:34 +000028410
28411
28412
28413
28414#
28415# Check for Display Postscript delegate library.
28416#
28417
28418# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028419if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028420 withval=$with_dps; with_dps=$withval
28421else
28422 with_dps='yes'
28423fi
28424
28425
28426if test "$with_dps" != 'yes'; then
28427 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28428fi
28429
28430have_dps='no'
28431DPS_LIBS=''
28432if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28434$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028436$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28438$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028439 failed=0
28440 passed=0
28441 PERSIST_CPPFLAGS="$CPPFLAGS"
28442 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028443 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 +000028444if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028445 passed=`expr $passed + 1`
28446else
28447 failed=`expr $failed + 1`
28448fi
28449
28450
28451 # DPS issues:
28452 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28453 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28454 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28455 # ImageMagick itself doesn't use -lXt.
28456 have_libdps='no'
28457 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028459$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028460if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028461 $as_echo_n "(cached) " >&6
28462else
28463 ac_check_lib_save_LIBS=$LIBS
28464LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028466/* end confdefs.h. */
28467
28468/* Override any GCC internal prototype to avoid an error.
28469 Use char because int might match the return type of a GCC
28470 builtin and then its argument prototype would still apply. */
28471#ifdef __cplusplus
28472extern "C"
28473#endif
28474char DPSInitialize ();
28475int
28476main ()
28477{
28478return DPSInitialize ();
28479 ;
28480 return 0;
28481}
28482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028483if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028484 ac_cv_lib_dps_DPSInitialize=yes
28485else
cristy8b350f62009-11-15 23:12:43 +000028486 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028487fi
cristy8b350f62009-11-15 23:12:43 +000028488rm -f core conftest.err conftest.$ac_objext \
28489 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028490LIBS=$ac_check_lib_save_LIBS
28491fi
cristy8b350f62009-11-15 23:12:43 +000028492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028493$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028494if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028495 have_libdps='yes'
28496else
28497 have_libdps='no'
28498fi
28499
28500 if test "$have_libdps" != 'yes'; then
28501 # Unset cache variable so we can try again.
28502 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028504$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028505if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028506 $as_echo_n "(cached) " >&6
28507else
28508 ac_check_lib_save_LIBS=$LIBS
28509LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028511/* end confdefs.h. */
28512
28513/* Override any GCC internal prototype to avoid an error.
28514 Use char because int might match the return type of a GCC
28515 builtin and then its argument prototype would still apply. */
28516#ifdef __cplusplus
28517extern "C"
28518#endif
28519char DPSInitialize ();
28520int
28521main ()
28522{
28523return DPSInitialize ();
28524 ;
28525 return 0;
28526}
28527_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028528if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028529 ac_cv_lib_dps_DPSInitialize=yes
28530else
cristy8b350f62009-11-15 23:12:43 +000028531 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028532fi
cristy8b350f62009-11-15 23:12:43 +000028533rm -f core conftest.err conftest.$ac_objext \
28534 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028535LIBS=$ac_check_lib_save_LIBS
28536fi
cristy8b350f62009-11-15 23:12:43 +000028537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028538$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028539if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028540 have_libdps='yes'
28541else
28542 have_libdps='no'
28543fi
28544
28545 if test "$have_libdps" = 'yes'; then
28546 LIBDPS_XT='-lXt'
28547 fi
28548 fi
28549 if test "$have_libdps" = 'yes'; then
28550 passed=`expr $passed + 1`
28551 else
28552 failed=`expr $failed + 1`
28553 fi
cristy8b350f62009-11-15 23:12:43 +000028554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028555$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028556if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028557 $as_echo_n "(cached) " >&6
28558else
28559 ac_check_lib_save_LIBS=$LIBS
28560LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028562/* end confdefs.h. */
28563
28564/* Override any GCC internal prototype to avoid an error.
28565 Use char because int might match the return type of a GCC
28566 builtin and then its argument prototype would still apply. */
28567#ifdef __cplusplus
28568extern "C"
28569#endif
28570char XDPSPixelsPerPoint ();
28571int
28572main ()
28573{
28574return XDPSPixelsPerPoint ();
28575 ;
28576 return 0;
28577}
28578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028579if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028580 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28581else
cristy8b350f62009-11-15 23:12:43 +000028582 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028583fi
cristy8b350f62009-11-15 23:12:43 +000028584rm -f core conftest.err conftest.$ac_objext \
28585 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028586LIBS=$ac_check_lib_save_LIBS
28587fi
cristy8b350f62009-11-15 23:12:43 +000028588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028589$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028590if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028591 passed=`expr $passed + 1`
28592else
28593 failed=`expr $failed + 1`
28594fi
28595
cristy8b350f62009-11-15 23:12:43 +000028596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028597$as_echo_n "checking if DPS package is complete... " >&6; }
28598 if test $passed -gt 0; then
28599 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28601$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028602 have_dps='no (failed tests)'
28603 CPPFLAGS="$PERSIST_CPPFLAGS"
28604 else
28605 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28606 LIBS="$DPS_LIBS $LIBS"
28607
cristy8b350f62009-11-15 23:12:43 +000028608$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028609
cristyad38abe2012-12-23 23:03:21 +000028610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28611$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028612 have_dps='yes'
28613 fi
28614 else
cristyad38abe2012-12-23 23:03:21 +000028615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28616$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028617 CPPFLAGS=$PERSIST_CPPFLAGS
28618 fi
28619fi
cristy73bd4a52010-10-05 11:24:23 +000028620 if test "$have_dps" = 'yes'; then
28621 DPS_DELEGATE_TRUE=
28622 DPS_DELEGATE_FALSE='#'
28623else
28624 DPS_DELEGATE_TRUE='#'
28625 DPS_DELEGATE_FALSE=
28626fi
28627
cristy3ed852e2009-09-05 21:47:34 +000028628
28629
28630
28631#
28632# Check for DJVU delegate library.
28633#
28634
28635# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028636if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028637 withval=$with_djvu; with_djvu=$withval
28638else
28639 with_djvu='yes'
28640fi
28641
28642
28643if test "$with_djvu" != 'yes'; then
28644 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28645fi
28646
28647have_djvu='no'
28648DJVU_LIBS=''
28649if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28651$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028653$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28655$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028656 failed=0
28657 passed=0
cristy8b350f62009-11-15 23:12:43 +000028658 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 +000028659if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028660 passed=`expr $passed + 1`
28661else
28662 failed=`expr $failed + 1`
28663fi
28664
28665
cristy8b350f62009-11-15 23:12:43 +000028666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028667$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028668if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028669 $as_echo_n "(cached) " >&6
28670else
28671 ac_check_lib_save_LIBS=$LIBS
28672LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028674/* end confdefs.h. */
28675
28676/* Override any GCC internal prototype to avoid an error.
28677 Use char because int might match the return type of a GCC
28678 builtin and then its argument prototype would still apply. */
28679#ifdef __cplusplus
28680extern "C"
28681#endif
28682char ddjvu_context_create ();
28683int
28684main ()
28685{
28686return ddjvu_context_create ();
28687 ;
28688 return 0;
28689}
28690_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028691if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028692 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28693else
cristy8b350f62009-11-15 23:12:43 +000028694 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028695fi
cristy8b350f62009-11-15 23:12:43 +000028696rm -f core conftest.err conftest.$ac_objext \
28697 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028698LIBS=$ac_check_lib_save_LIBS
28699fi
cristy8b350f62009-11-15 23:12:43 +000028700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028701$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028702if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028703 passed=`expr $passed + 1`
28704else
28705 failed=`expr $failed + 1`
28706fi
28707
cristy8b350f62009-11-15 23:12:43 +000028708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028709$as_echo_n "checking if DJVU package is complete... " >&6; }
28710 if test $passed -gt 0; then
28711 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28713$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028714 have_djvu='no (failed tests)'
28715 else
28716 DJVU_LIBS='-ldjvulibre'
28717 LIBS="$DJVU_LIBS $LIBS"
28718
cristy8b350f62009-11-15 23:12:43 +000028719$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028720
cristyad38abe2012-12-23 23:03:21 +000028721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28722$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028723 have_djvu='yes'
28724 fi
28725 else
cristyad38abe2012-12-23 23:03:21 +000028726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28727$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028728 fi
28729fi
cristy73bd4a52010-10-05 11:24:23 +000028730 if test "$have_djvu" = 'yes'; then
28731 DJVU_DELEGATE_TRUE=
28732 DJVU_DELEGATE_FALSE='#'
28733else
28734 DJVU_DELEGATE_TRUE='#'
28735 DJVU_DELEGATE_FALSE=
28736fi
28737
cristy3ed852e2009-09-05 21:47:34 +000028738
28739
28740
28741#
cristy430a7312010-01-21 20:44:04 +000028742# Set DejaVu font directory.
28743#
28744
28745# Check whether --with-dejavu-font-dir was given.
28746if test "${with_dejavu_font_dir+set}" = set; then :
28747 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28748else
28749 with_dejavu_font_dir='default'
28750fi
28751
28752
28753if test "$with_dejavu_font_dir" != 'default'; then
28754 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28755fi
28756
28757
28758#
cristy3ed852e2009-09-05 21:47:34 +000028759# Check for FFTW delegate library.
28760#
28761
28762# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028763if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028764 withval=$with_fftw; with_fftw=$withval
28765else
28766 with_fftw='yes'
28767fi
28768
28769
28770if test "$with_fftw" != 'yes'; then
28771 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28772fi
28773
cristy81beccd2011-10-03 18:17:24 +000028774have_fftw='no'
28775FFTW_LIBS=''
28776if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28778$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28780$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28782$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028783 failed=0
28784 passed=0
28785 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28786if test "x$ac_cv_header_fftw3_h" = xyes; then :
28787 passed=`expr $passed + 1`
28788else
28789 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028790fi
28791
cristy81beccd2011-10-03 18:17:24 +000028792
28793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28794$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28795if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28796 $as_echo_n "(cached) " >&6
28797else
28798 ac_check_lib_save_LIBS=$LIBS
28799LIBS="-lfftw3 $LIBS"
28800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28801/* end confdefs.h. */
28802
28803/* Override any GCC internal prototype to avoid an error.
28804 Use char because int might match the return type of a GCC
28805 builtin and then its argument prototype would still apply. */
28806#ifdef __cplusplus
28807extern "C"
28808#endif
28809char fftw_execute ();
28810int
28811main ()
28812{
28813return fftw_execute ();
28814 ;
28815 return 0;
28816}
28817_ACEOF
28818if ac_fn_c_try_link "$LINENO"; then :
28819 ac_cv_lib_fftw3_fftw_execute=yes
28820else
28821 ac_cv_lib_fftw3_fftw_execute=no
28822fi
28823rm -f core conftest.err conftest.$ac_objext \
28824 conftest$ac_exeext conftest.$ac_ext
28825LIBS=$ac_check_lib_save_LIBS
28826fi
28827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28828$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28829if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28830 passed=`expr $passed + 1`
28831else
28832 failed=`expr $failed + 1`
28833fi
28834
28835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28836$as_echo_n "checking if FFTW package is complete... " >&6; }
28837 if test $passed -gt 0; then
28838 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28840$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028841 have_fftw='no (failed tests)'
28842 else
28843 FFTW_LIBS='-lfftw3'
28844 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028845
cristy8b350f62009-11-15 23:12:43 +000028846$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028847
cristyad38abe2012-12-23 23:03:21 +000028848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28849$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028850 have_fftw='yes'
28851 fi
28852 else
cristyad38abe2012-12-23 23:03:21 +000028853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28854$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028855 fi
28856fi
cristy73bd4a52010-10-05 11:24:23 +000028857 if test "$have_fftw" = 'yes'; then
28858 FFTW_DELEGATE_TRUE=
28859 FFTW_DELEGATE_FALSE='#'
28860else
28861 FFTW_DELEGATE_TRUE='#'
28862 FFTW_DELEGATE_FALSE=
28863fi
28864
cristy3ed852e2009-09-05 21:47:34 +000028865
28866
28867
28868#
28869# Check for FlashPIX delegate library.
28870#
28871
28872# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028873if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028874 withval=$with_fpx; with_fpx=$withval
28875else
28876 with_fpx='yes'
28877fi
28878
28879
28880if test "$with_fpx" != 'yes'; then
28881 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28882fi
28883
28884have_fpx='no'
28885FPX_LIBS=''
28886if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28888$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028890$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28892$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028893 failed=0
28894 passed=0
28895 ac_ext=cpp
28896ac_cpp='$CXXCPP $CPPFLAGS'
28897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28900
28901
cristy8b350f62009-11-15 23:12:43 +000028902ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028903if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028904 passed=`expr $passed + 1`
28905else
28906 failed=`expr $failed + 1`
28907fi
28908
28909
cristy8b350f62009-11-15 23:12:43 +000028910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028911$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028912if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028913 $as_echo_n "(cached) " >&6
28914else
28915 ac_check_lib_save_LIBS=$LIBS
28916LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028918/* end confdefs.h. */
28919
28920/* Override any GCC internal prototype to avoid an error.
28921 Use char because int might match the return type of a GCC
28922 builtin and then its argument prototype would still apply. */
28923#ifdef __cplusplus
28924extern "C"
28925#endif
28926char FPX_OpenImageByFilename ();
28927int
28928main ()
28929{
28930return FPX_OpenImageByFilename ();
28931 ;
28932 return 0;
28933}
28934_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028935if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028936 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28937else
cristy8b350f62009-11-15 23:12:43 +000028938 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028939fi
cristy8b350f62009-11-15 23:12:43 +000028940rm -f core conftest.err conftest.$ac_objext \
28941 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028942LIBS=$ac_check_lib_save_LIBS
28943fi
cristy8b350f62009-11-15 23:12:43 +000028944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028945$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028946if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028947 passed=`expr $passed + 1`
28948else
28949 failed=`expr $failed + 1`
28950fi
28951
28952 ac_ext=c
28953ac_cpp='$CPP $CPPFLAGS'
28954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28956ac_compiler_gnu=$ac_cv_c_compiler_gnu
28957
cristy8b350f62009-11-15 23:12:43 +000028958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028959$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28960 if test $passed -gt 0; then
28961 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28963$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028964 have_fpx='no (failed tests)'
28965 else
28966 FPX_LIBS='-lfpx'
28967
cristy8b350f62009-11-15 23:12:43 +000028968$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028969
cristyad38abe2012-12-23 23:03:21 +000028970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28971$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028972 have_fpx='yes'
28973 PERLMAINCC="$CXX"
28974 fi
28975 else
cristyad38abe2012-12-23 23:03:21 +000028976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28977$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028978 fi
28979fi
cristy73bd4a52010-10-05 11:24:23 +000028980 if test "$have_fpx" = 'yes'; then
28981 FPX_DELEGATE_TRUE=
28982 FPX_DELEGATE_FALSE='#'
28983else
28984 FPX_DELEGATE_TRUE='#'
28985 FPX_DELEGATE_FALSE=
28986fi
28987
cristy3ed852e2009-09-05 21:47:34 +000028988
28989
28990
28991#
28992# Check for fontconfig delegate library.
28993#
28994
28995# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028996if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028997 withval=$with_fontconfig; with_fontconfig=$withval
28998else
cristyfc3d0222012-02-07 15:05:57 +000028999 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029000fi
29001
29002
29003if test "$with_fontconfig" != 'yes'; then
29004 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29005fi
29006
29007have_fontconfig='no'
29008FONTCONFIG_CFLAGS=""
29009FONTCONFIG_LIBS=""
29010FONTCONFIG_PKG=""
29011if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29013$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029014
29015pkg_failed=no
29016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29017$as_echo_n "checking for FONTCONFIG... " >&6; }
29018
29019if test -n "$FONTCONFIG_CFLAGS"; then
29020 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29021 elif test -n "$PKG_CONFIG"; then
29022 if test -n "$PKG_CONFIG" && \
29023 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29024 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29025 ac_status=$?
29026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29027 test $ac_status = 0; }; then
29028 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29029else
29030 pkg_failed=yes
29031fi
29032 else
29033 pkg_failed=untried
29034fi
29035if test -n "$FONTCONFIG_LIBS"; then
29036 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29037 elif test -n "$PKG_CONFIG"; then
29038 if test -n "$PKG_CONFIG" && \
29039 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29040 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29041 ac_status=$?
29042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29043 test $ac_status = 0; }; then
29044 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29045else
29046 pkg_failed=yes
29047fi
29048 else
29049 pkg_failed=untried
29050fi
29051
29052
29053
29054if test $pkg_failed = yes; then
29055
29056if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29057 _pkg_short_errors_supported=yes
29058else
29059 _pkg_short_errors_supported=no
29060fi
29061 if test $_pkg_short_errors_supported = yes; then
29062 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29063 else
29064 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29065 fi
29066 # Put the nasty error message in config.log where it belongs
29067 echo "$FONTCONFIG_PKG_ERRORS" >&5
29068
29069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29070$as_echo "no" >&6; }
29071 have_fontconfig=no
29072elif test $pkg_failed = untried; then
29073 have_fontconfig=no
29074else
29075 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29076 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29078$as_echo "yes" >&6; }
29079 have_fontconfig=yes
29080fi
cristyad38abe2012-12-23 23:03:21 +000029081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29082$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029083fi
29084
29085if test "$have_fontconfig" = 'yes'; then
29086
cristy8b350f62009-11-15 23:12:43 +000029087$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029088
cristyc6722092012-10-14 00:19:31 +000029089 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029090 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029091 fi
cristy3ed852e2009-09-05 21:47:34 +000029092fi
29093
cristy73bd4a52010-10-05 11:24:23 +000029094 if test "$have_fontconfig" = 'yes'; then
29095 FONTCONFIG_DELEGATE_TRUE=
29096 FONTCONFIG_DELEGATE_FALSE='#'
29097else
29098 FONTCONFIG_DELEGATE_TRUE='#'
29099 FONTCONFIG_DELEGATE_FALSE=
29100fi
29101
cristy3ed852e2009-09-05 21:47:34 +000029102
29103
29104
29105
29106#
cristy03f187e2013-01-24 00:22:19 +000029107# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029108#
29109
29110# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029111if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029112 withval=$with_freetype; with_freetype=$withval
29113else
29114 with_freetype='yes'
29115fi
29116
29117
cristy3ed852e2009-09-05 21:47:34 +000029118if test "$with_freetype" != 'yes'; then
29119 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29120fi
29121
cristy81beccd2011-10-03 18:17:24 +000029122have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029123FREETYPE_CFLAGS=""
29124FREETYPE_LIBS=""
29125FREETYPE_PKG=""
29126if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29128$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029129
29130pkg_failed=no
29131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29132$as_echo_n "checking for FREETYPE... " >&6; }
29133
29134if test -n "$FREETYPE_CFLAGS"; then
29135 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29136 elif test -n "$PKG_CONFIG"; then
29137 if test -n "$PKG_CONFIG" && \
29138 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29139 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29140 ac_status=$?
29141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29142 test $ac_status = 0; }; then
29143 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29144else
29145 pkg_failed=yes
29146fi
29147 else
29148 pkg_failed=untried
29149fi
29150if test -n "$FREETYPE_LIBS"; then
29151 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29152 elif test -n "$PKG_CONFIG"; then
29153 if test -n "$PKG_CONFIG" && \
29154 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29155 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29156 ac_status=$?
29157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29158 test $ac_status = 0; }; then
29159 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29160else
29161 pkg_failed=yes
29162fi
29163 else
29164 pkg_failed=untried
29165fi
29166
29167
29168
29169if test $pkg_failed = yes; then
29170
29171if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29172 _pkg_short_errors_supported=yes
29173else
29174 _pkg_short_errors_supported=no
29175fi
29176 if test $_pkg_short_errors_supported = yes; then
29177 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29178 else
29179 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29180 fi
29181 # Put the nasty error message in config.log where it belongs
29182 echo "$FREETYPE_PKG_ERRORS" >&5
29183
29184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29185$as_echo "no" >&6; }
29186 have_freetype=no
29187elif test $pkg_failed = untried; then
29188 have_freetype=no
29189else
29190 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29191 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29193$as_echo "yes" >&6; }
29194 have_freetype=yes
29195fi
cristyad38abe2012-12-23 23:03:21 +000029196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29197$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029198fi
29199
cristy03f187e2013-01-24 00:22:19 +000029200if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029201
cristy8b350f62009-11-15 23:12:43 +000029202$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029203
cristy03f187e2013-01-24 00:22:19 +000029204 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029205fi
cristy03f187e2013-01-24 00:22:19 +000029206
cristy73bd4a52010-10-05 11:24:23 +000029207 if test "$have_freetype" = 'yes'; then
29208 FREETYPE_DELEGATE_TRUE=
29209 FREETYPE_DELEGATE_FALSE='#'
29210else
29211 FREETYPE_DELEGATE_TRUE='#'
29212 FREETYPE_DELEGATE_FALSE=
29213fi
29214
cristy3ed852e2009-09-05 21:47:34 +000029215
29216
29217
cristy03f187e2013-01-24 00:22:19 +000029218
cristy3ed852e2009-09-05 21:47:34 +000029219#
29220# Check for Ghostscript library or framework.
29221#
29222# Test for iapi.h & test for gsapi_new_instance in -lgs
29223# or -framework Ghostscript
29224
29225
29226# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029227if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029228 withval=$with_gslib; with_gslib=$withval
29229else
29230 with_gslib='no'
29231fi
29232
29233
cristyb7931f12009-09-25 10:22:21 +000029234gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029235if test "$with_gslib" != 'yes'; then
29236 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29237fi
29238
29239have_gslib='no'
29240GS_LIBS=''
29241if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29243$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029245$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29247$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029248 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029249 failed=0
29250 passed=0
cristy8b350f62009-11-15 23:12:43 +000029251 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 +000029252if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029253 passed=`expr $passed + 1`
29254else
29255 failed=`expr $failed + 1`
29256fi
29257
29258
cristy8b350f62009-11-15 23:12:43 +000029259 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 +000029260if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029261 passed=`expr $passed + 1`
29262else
29263 failed=`expr $failed + 1`
29264fi
29265
29266
cristy73bd4a52010-10-05 11:24:23 +000029267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29268$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029269if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029270 $as_echo_n "(cached) " >&6
29271else
29272 ac_check_framework_save_LIBS=$LIBS
29273LIBS="-framework Ghostscript $LIBS"
29274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29275/* end confdefs.h. */
29276
29277/* Override any GCC internal prototype to avoid an error.
29278 Use char because int might match the return type of a GCC
29279 builtin and then its argument prototype would still apply. */
29280#ifdef __cplusplus
29281extern "C"
29282#endif
29283char gsapi_new_instance ();
29284int
29285main ()
29286{
29287return gsapi_new_instance ();
29288 ;
29289 return 0;
29290}
29291_ACEOF
29292if ac_fn_c_try_link "$LINENO"; then :
29293 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29294else
29295 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29296fi
29297rm -f core conftest.err conftest.$ac_objext \
29298 conftest$ac_exeext conftest.$ac_ext
29299LIBS=$ac_check_framework_save_LIBS
29300fi
29301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29302$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29303if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29304 framework=`expr $framework + 1`
29305else
29306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029307$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029308if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029309 $as_echo_n "(cached) " >&6
29310else
29311 ac_check_lib_save_LIBS=$LIBS
29312LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029314/* end confdefs.h. */
29315
29316/* Override any GCC internal prototype to avoid an error.
29317 Use char because int might match the return type of a GCC
29318 builtin and then its argument prototype would still apply. */
29319#ifdef __cplusplus
29320extern "C"
29321#endif
29322char gsapi_new_instance ();
29323int
29324main ()
29325{
29326return gsapi_new_instance ();
29327 ;
29328 return 0;
29329}
29330_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029331if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029332 ac_cv_lib_gs_gsapi_new_instance=yes
29333else
cristy8b350f62009-11-15 23:12:43 +000029334 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029335fi
cristy8b350f62009-11-15 23:12:43 +000029336rm -f core conftest.err conftest.$ac_objext \
29337 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029338LIBS=$ac_check_lib_save_LIBS
29339fi
cristy8b350f62009-11-15 23:12:43 +000029340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029341$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029342if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029343 passed=`expr $passed + 1`
29344else
29345 failed=`expr $failed + 1`
29346fi
cristy73bd4a52010-10-05 11:24:23 +000029347
29348fi
cristy8b350f62009-11-15 23:12:43 +000029349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029350$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29351 if test $passed -gt 0; then
29352 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29354$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029355 have_gslib='no (failed tests)'
29356 else
29357 if test $framework -gt 0; then
29358 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029359 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29361$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029362 else
cristyad38abe2012-12-23 23:03:21 +000029363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29364$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029365 GS_LIBS='-lgs'
29366 fi
29367 LIBS="$GS_LIBS $LIBS"
29368
cristy8b350f62009-11-15 23:12:43 +000029369$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029370
29371 have_gslib='yes'
29372 fi
29373 else
cristyad38abe2012-12-23 23:03:21 +000029374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29375$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029376 fi
29377fi
cristy73bd4a52010-10-05 11:24:23 +000029378 if test "$have_gslib" = 'yes'; then
29379 GS_DELEGATE_TRUE=
29380 GS_DELEGATE_FALSE='#'
29381else
29382 GS_DELEGATE_TRUE='#'
29383 GS_DELEGATE_FALSE=
29384fi
29385
cristy3ed852e2009-09-05 21:47:34 +000029386
29387
29388# Set default font search path
29389
29390# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029391if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029392 withval=$with_fontpath; with_fontpath=$withval
29393else
29394 with_fontpath=''
29395fi
29396
29397
29398if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29399 with_fontpath=''
29400else
29401
29402cat >>confdefs.h <<_ACEOF
29403#define MAGICK_FONT_PATH "$with_fontpath"
29404_ACEOF
29405
29406fi
29407if test "$with_fontpath=" != ''; then
29408 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29409fi
29410
29411# Set Ghostscript font directory
29412
29413# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029414if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029415 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29416else
29417 with_gs_font_dir='default'
29418fi
29419
29420
29421if test "$with_gs_font_dir" != 'default'; then
29422 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29423fi
29424
29425
29426#
29427# Check for GVC delegate library.
29428#
29429
29430# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029431if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029432 withval=$with_gvc; with_gvc=$withval
29433else
cristy1b70dc82012-07-01 23:15:05 +000029434 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029435fi
29436
29437
29438if test "$with_gvc" != 'yes'; then
29439 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29440fi
29441
29442GVC_PKG=""
29443if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29445$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029446
29447pkg_failed=no
29448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29449$as_echo_n "checking for GVC... " >&6; }
29450
29451if test -n "$GVC_CFLAGS"; then
29452 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29453 elif test -n "$PKG_CONFIG"; then
29454 if test -n "$PKG_CONFIG" && \
29455 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29456 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29457 ac_status=$?
29458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29459 test $ac_status = 0; }; then
29460 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29461else
29462 pkg_failed=yes
29463fi
29464 else
29465 pkg_failed=untried
29466fi
29467if test -n "$GVC_LIBS"; then
29468 pkg_cv_GVC_LIBS="$GVC_LIBS"
29469 elif test -n "$PKG_CONFIG"; then
29470 if test -n "$PKG_CONFIG" && \
29471 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29472 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29473 ac_status=$?
29474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29475 test $ac_status = 0; }; then
29476 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29477else
29478 pkg_failed=yes
29479fi
29480 else
29481 pkg_failed=untried
29482fi
29483
29484
29485
29486if test $pkg_failed = yes; then
29487
29488if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29489 _pkg_short_errors_supported=yes
29490else
29491 _pkg_short_errors_supported=no
29492fi
29493 if test $_pkg_short_errors_supported = yes; then
29494 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29495 else
29496 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29497 fi
29498 # Put the nasty error message in config.log where it belongs
29499 echo "$GVC_PKG_ERRORS" >&5
29500
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29502$as_echo "no" >&6; }
29503 have_gvc=no
29504elif test $pkg_failed = untried; then
29505 have_gvc=no
29506else
29507 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29508 GVC_LIBS=$pkg_cv_GVC_LIBS
29509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29510$as_echo "yes" >&6; }
29511 have_gvc=yes
29512fi
cristyad38abe2012-12-23 23:03:21 +000029513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29514$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029515fi
29516
29517if test "$have_gvc" = 'yes'; then
29518
cristy8b350f62009-11-15 23:12:43 +000029519$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029520
cristyc6722092012-10-14 00:19:31 +000029521 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029522 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29523 fi
29524fi
29525
cristy73bd4a52010-10-05 11:24:23 +000029526 if test "$have_gvc" = 'yes'; then
29527 GVC_DELEGATE_TRUE=
29528 GVC_DELEGATE_FALSE='#'
29529else
29530 GVC_DELEGATE_TRUE='#'
29531 GVC_DELEGATE_FALSE=
29532fi
29533
cristy3ed852e2009-09-05 21:47:34 +000029534
29535
29536
29537
29538#
29539# Check for JBIG delegate library.
29540#
29541
29542
29543# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029544if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029545 withval=$with_jbig; with_jbig=$withval
29546else
29547 with_jbig='yes'
29548fi
29549
29550
29551have_jbig='no'
29552JBIG_LIBS=''
29553if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29555$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029557$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29559$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029560 failed=0
29561 passed=0
cristy8b350f62009-11-15 23:12:43 +000029562 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029563if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029564 passed=`expr $passed + 1`
29565else
29566 failed=`expr $failed + 1`
29567fi
29568
29569
cristy8b350f62009-11-15 23:12:43 +000029570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029571$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029572if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029573 $as_echo_n "(cached) " >&6
29574else
29575 ac_check_lib_save_LIBS=$LIBS
29576LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029578/* end confdefs.h. */
29579
29580/* Override any GCC internal prototype to avoid an error.
29581 Use char because int might match the return type of a GCC
29582 builtin and then its argument prototype would still apply. */
29583#ifdef __cplusplus
29584extern "C"
29585#endif
29586char jbg_dec_init ();
29587int
29588main ()
29589{
29590return jbg_dec_init ();
29591 ;
29592 return 0;
29593}
29594_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029595if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029596 ac_cv_lib_jbig_jbg_dec_init=yes
29597else
cristy8b350f62009-11-15 23:12:43 +000029598 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029599fi
cristy8b350f62009-11-15 23:12:43 +000029600rm -f core conftest.err conftest.$ac_objext \
29601 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029602LIBS=$ac_check_lib_save_LIBS
29603fi
cristy8b350f62009-11-15 23:12:43 +000029604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029605$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029606if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029607 passed=`expr $passed + 1`
29608else
29609 failed=`expr $failed + 1`
29610fi
29611
cristy8b350f62009-11-15 23:12:43 +000029612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029613$as_echo_n "checking if JBIG package is complete... " >&6; }
29614 if test $passed -gt 0; then
29615 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29617$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029618 have_jbig='no (failed tests)'
29619 else
29620 JBIG_LIBS='-ljbig'
29621 LIBS="$JBIG_LIBS $LIBS"
29622
cristy8b350f62009-11-15 23:12:43 +000029623$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029624
cristyad38abe2012-12-23 23:03:21 +000029625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29626$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029627 have_jbig='yes'
29628 fi
29629 else
cristyad38abe2012-12-23 23:03:21 +000029630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29631$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029632 fi
29633fi
cristy73bd4a52010-10-05 11:24:23 +000029634 if test "$have_jbig" = 'yes'; then
29635 JBIG_DELEGATE_TRUE=
29636 JBIG_DELEGATE_FALSE='#'
29637else
29638 JBIG_DELEGATE_TRUE='#'
29639 JBIG_DELEGATE_FALSE=
29640fi
29641
cristy3ed852e2009-09-05 21:47:34 +000029642
29643
29644
29645#
29646# Check for JPEG delegate library.
29647#
29648
29649# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029650if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029651 withval=$with_jpeg; with_jpeg=$withval
29652else
29653 with_jpeg='yes'
29654fi
29655
29656
29657if test "$with_jpeg" != 'yes'; then
29658 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29659fi
29660
29661have_jpeg='no'
29662JPEG_LIBS=''
29663if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29665$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029667$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29669$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029670 failed=0
29671 passed=0
cristy8b350f62009-11-15 23:12:43 +000029672 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029673if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029674 passed=`expr $passed + 1`
29675else
29676 failed=`expr $failed + 1`
29677fi
29678
29679
cristy8b350f62009-11-15 23:12:43 +000029680 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029681if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029682 passed=`expr $passed + 1`
29683else
29684 failed=`expr $failed + 1`
29685fi
29686
29687
cristy8b350f62009-11-15 23:12:43 +000029688 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029689if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029690 passed=`expr $passed + 1`
29691else
29692 failed=`expr $failed + 1`
29693fi
29694
29695
cristy8b350f62009-11-15 23:12:43 +000029696 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029697if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029698 passed=`expr $passed + 1`
29699else
29700 failed=`expr $failed + 1`
29701fi
29702
29703
cristy8b350f62009-11-15 23:12:43 +000029704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029705$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029706if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029707 $as_echo_n "(cached) " >&6
29708else
29709 ac_check_lib_save_LIBS=$LIBS
29710LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029712/* end confdefs.h. */
29713
29714/* Override any GCC internal prototype to avoid an error.
29715 Use char because int might match the return type of a GCC
29716 builtin and then its argument prototype would still apply. */
29717#ifdef __cplusplus
29718extern "C"
29719#endif
29720char jpeg_read_header ();
29721int
29722main ()
29723{
29724return jpeg_read_header ();
29725 ;
29726 return 0;
29727}
29728_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029729if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029730 ac_cv_lib_jpeg_jpeg_read_header=yes
29731else
cristy8b350f62009-11-15 23:12:43 +000029732 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029733fi
cristy8b350f62009-11-15 23:12:43 +000029734rm -f core conftest.err conftest.$ac_objext \
29735 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029736LIBS=$ac_check_lib_save_LIBS
29737fi
cristy8b350f62009-11-15 23:12:43 +000029738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029739$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029740if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029741 passed=`expr $passed + 1`
29742else
29743 failed=`expr $failed + 1`
29744fi
29745
29746
29747# Test for compatible JPEG library
29748if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029750$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029751if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029752 $as_echo_n "(cached) " >&6
29753else
cristy8b350f62009-11-15 23:12:43 +000029754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029755/* end confdefs.h. */
29756#include <stdio.h>
29757#include <stdlib.h>
29758#include <jpeglib.h>
29759
29760int
29761main ()
29762{
29763
29764#if JPEG_LIB_VERSION < 62
29765#error IJG JPEG library must be version 6b or newer!
29766#endif
29767return 0;
29768
29769 ;
29770 return 0;
29771}
29772_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029773if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029774 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29775else
cristy8b350f62009-11-15 23:12:43 +000029776 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029777fi
cristy3ed852e2009-09-05 21:47:34 +000029778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29779fi
cristy8b350f62009-11-15 23:12:43 +000029780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029781$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29782fi
cristy8b350f62009-11-15 23:12:43 +000029783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029784$as_echo_n "checking if JPEG package is complete... " >&6; }
29785 if test $passed -gt 0; then
29786 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29788$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029789 have_jpeg='no (failed tests)'
29790 else
29791 JPEG_LIBS='-ljpeg'
29792 LIBS="$JPEG_LIBS $LIBS"
29793
cristy8b350f62009-11-15 23:12:43 +000029794$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029795
cristyad38abe2012-12-23 23:03:21 +000029796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29797$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029798 have_jpeg='yes'
29799 fi
29800 else
cristyad38abe2012-12-23 23:03:21 +000029801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29802$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029803 fi
29804fi
cristy73bd4a52010-10-05 11:24:23 +000029805 if test "$have_jpeg" = 'yes'; then
29806 JPEG_DELEGATE_TRUE=
29807 JPEG_DELEGATE_FALSE='#'
29808else
29809 JPEG_DELEGATE_TRUE='#'
29810 JPEG_DELEGATE_FALSE=
29811fi
29812
cristy3ed852e2009-09-05 21:47:34 +000029813
29814
29815
29816#
29817# Check for JPEG Version 2 delegate library.
29818#
29819
29820# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029821if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029822 withval=$with_jp2; with_jp2=$withval
29823else
29824 with_jp2='yes'
29825fi
29826
29827
29828if test "$with_jp2" != 'yes'; then
29829 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29830fi
29831
29832have_jp2='no'
29833JP2_LIBS=''
29834if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29836$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029838$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29840$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029841 failed=0
29842 passed=0
cristy8b350f62009-11-15 23:12:43 +000029843 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 +000029844if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029845 passed=`expr $passed + 1`
29846else
29847 failed=`expr $failed + 1`
29848fi
29849
29850
cristy8b350f62009-11-15 23:12:43 +000029851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029852$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029853if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029854 $as_echo_n "(cached) " >&6
29855else
29856 ac_check_lib_save_LIBS=$LIBS
29857LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029859/* end confdefs.h. */
29860
29861/* Override any GCC internal prototype to avoid an error.
29862 Use char because int might match the return type of a GCC
29863 builtin and then its argument prototype would still apply. */
29864#ifdef __cplusplus
29865extern "C"
29866#endif
29867char jas_stream_fopen ();
29868int
29869main ()
29870{
29871return jas_stream_fopen ();
29872 ;
29873 return 0;
29874}
29875_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029876if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029877 ac_cv_lib_jasper_jas_stream_fopen=yes
29878else
cristy8b350f62009-11-15 23:12:43 +000029879 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029880fi
cristy8b350f62009-11-15 23:12:43 +000029881rm -f core conftest.err conftest.$ac_objext \
29882 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029883LIBS=$ac_check_lib_save_LIBS
29884fi
cristy8b350f62009-11-15 23:12:43 +000029885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029886$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029887if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029888 passed=`expr $passed + 1`
29889else
29890 failed=`expr $failed + 1`
29891fi
29892
cristy8b350f62009-11-15 23:12:43 +000029893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029894$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29895 if test $passed -gt 0; then
29896 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29898$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029899 have_jp2='no (failed tests)'
29900 else
29901 JP2_LIBS='-ljasper'
29902 LIBS="$JP2_LIBS $LIBS"
29903
cristy8b350f62009-11-15 23:12:43 +000029904$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029905
cristyad38abe2012-12-23 23:03:21 +000029906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29907$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029908 have_jp2='yes'
29909 fi
29910 else
cristyad38abe2012-12-23 23:03:21 +000029911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29912$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029913 fi
29914fi
cristy73bd4a52010-10-05 11:24:23 +000029915 if test "$have_jp2" = 'yes'; then
29916 JP2_DELEGATE_TRUE=
29917 JP2_DELEGATE_FALSE='#'
29918else
29919 JP2_DELEGATE_TRUE='#'
29920 JP2_DELEGATE_FALSE=
29921fi
29922
cristy3ed852e2009-09-05 21:47:34 +000029923
29924
29925
29926#
29927# Check for LCMS delegate library.
29928#
cristy71203402010-06-18 13:12:03 +000029929# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029930
29931# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029932if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029933 withval=$with_lcms; with_lcms=$withval
29934else
29935 with_lcms='yes'
29936fi
29937
cristy71203402010-06-18 13:12:03 +000029938if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029939 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29940fi
29941
cristy71203402010-06-18 13:12:03 +000029942# Disable LCMS2.
29943
29944# Check whether --with-lcms2 was given.
29945if test "${with_lcms2+set}" = set; then :
29946 withval=$with_lcms2; with_lcms2=$withval
29947else
29948 with_lcms2='yes'
29949fi
29950
29951if test "$with_lcms2" != 'yes' ; then
29952 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29953fi
29954
29955have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029956LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029957if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29959$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29961$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29963$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029964 failed=0
29965 passed=0
29966 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029967
29968 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029969 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029970if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029971 have_lcms_header='yes'
29972fi
29973
29974
29975 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029976
29977$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29978
cristy71203402010-06-18 13:12:03 +000029979 passed=`expr $passed + 1`
29980 fi
29981
29982 # Check for <lcms2/lcms2.h)
29983 if test "$have_lcms_header" != 'yes'; then
29984 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 +000029985if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029986 have_lcms_header='yes'
29987fi
29988
29989
cristy71203402010-06-18 13:12:03 +000029990 if test "$have_lcms_header" = 'yes'; then
29991 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029992
cristy71203402010-06-18 13:12:03 +000029993$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029994
cristy71203402010-06-18 13:12:03 +000029995 fi
cristyd09bcf92010-03-25 03:04:45 +000029996 fi
cristy71203402010-06-18 13:12:03 +000029997
29998 # Failed to find lcms header?
29999 if test "$have_lcms_header" != 'yes'; then
30000 failed=`expr $failed + 1`
30001 fi
30002
30003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30004$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030005if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030006 $as_echo_n "(cached) " >&6
30007else
30008 ac_check_lib_save_LIBS=$LIBS
30009LIBS="-llcms2 $LIBS"
30010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30011/* end confdefs.h. */
30012
30013/* Override any GCC internal prototype to avoid an error.
30014 Use char because int might match the return type of a GCC
30015 builtin and then its argument prototype would still apply. */
30016#ifdef __cplusplus
30017extern "C"
30018#endif
cristy71203402010-06-18 13:12:03 +000030019char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030020int
30021main ()
30022{
cristy71203402010-06-18 13:12:03 +000030023return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030024 ;
30025 return 0;
30026}
30027_ACEOF
30028if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030029 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030030else
cristy71203402010-06-18 13:12:03 +000030031 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030032fi
30033rm -f core conftest.err conftest.$ac_objext \
30034 conftest$ac_exeext conftest.$ac_ext
30035LIBS=$ac_check_lib_save_LIBS
30036fi
cristy71203402010-06-18 13:12:03 +000030037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30038$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030039if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030040 passed=`expr $passed + 1`
30041else
30042 failed=`expr $failed + 1`
30043fi
30044
cristy71203402010-06-18 13:12:03 +000030045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30046$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030047 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030048 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30050$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030051 have_lcms2='no (failed tests)'
30052 else
30053 LCMS_LIBS='-llcms2'
30054 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30056$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030057 have_lcms2='yes'
30058 fi
cristyd09bcf92010-03-25 03:04:45 +000030059 else
cristyad38abe2012-12-23 23:03:21 +000030060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30061$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030062 fi
30063fi
30064
cristy71203402010-06-18 13:12:03 +000030065#
30066# Check for LCMS v1 (1.11 or later)
30067#
30068if test $have_lcms2 = 'yes'; then
30069 with_lcms='no'
30070fi
30071
30072have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030073if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30075$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30077$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30079$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030080 failed=0
30081 passed=0
30082 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030083
30084 # Check for <lcms.h>
30085 if test "$have_lcms_header" != 'yes'; then
30086 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030087if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030088 have_lcms_header='yes'
30089fi
30090
30091
cristy71203402010-06-18 13:12:03 +000030092 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030093 passed=`expr $passed + 1`
30094
cristy8b350f62009-11-15 23:12:43 +000030095$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030096
cristy71203402010-06-18 13:12:03 +000030097 fi
30098 fi
30099
30100 # Check for <lcms/lcms.h>
30101 if test "$have_lcms_header" != 'yes'; then
30102 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 +000030103if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030104 have_lcms_header='yes'
30105fi
30106
30107
cristy71203402010-06-18 13:12:03 +000030108 if test "$have_lcms_header" = 'yes'; then
30109 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030110
cristy8b350f62009-11-15 23:12:43 +000030111$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030112
cristy71203402010-06-18 13:12:03 +000030113 fi
cristy3ed852e2009-09-05 21:47:34 +000030114 fi
cristy71203402010-06-18 13:12:03 +000030115
30116 # Failed to find lcms header?
30117 if test "$have_lcms_header" != 'yes'; then
30118 failed=`expr $failed + 1`
30119 fi
30120
30121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30122$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030123if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030124 $as_echo_n "(cached) " >&6
30125else
30126 ac_check_lib_save_LIBS=$LIBS
30127LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030129/* end confdefs.h. */
30130
30131/* Override any GCC internal prototype to avoid an error.
30132 Use char because int might match the return type of a GCC
30133 builtin and then its argument prototype would still apply. */
30134#ifdef __cplusplus
30135extern "C"
30136#endif
cristy71203402010-06-18 13:12:03 +000030137char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030138int
30139main ()
30140{
cristy71203402010-06-18 13:12:03 +000030141return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030142 ;
30143 return 0;
30144}
30145_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030146if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030147 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030148else
cristy71203402010-06-18 13:12:03 +000030149 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030150fi
cristy8b350f62009-11-15 23:12:43 +000030151rm -f core conftest.err conftest.$ac_objext \
30152 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030153LIBS=$ac_check_lib_save_LIBS
30154fi
cristy71203402010-06-18 13:12:03 +000030155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30156$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030157if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030158 passed=`expr $passed + 1`
30159else
30160 failed=`expr $failed + 1`
30161fi
30162
cristy8b350f62009-11-15 23:12:43 +000030163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030164$as_echo_n "checking if LCMS package is complete... " >&6; }
30165 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030166 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30168$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030169 have_lcms='no (failed tests)'
30170 else
30171 LCMS_LIBS='-llcms'
30172 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30174$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030175 have_lcms='yes'
30176 fi
cristy3ed852e2009-09-05 21:47:34 +000030177 else
cristyad38abe2012-12-23 23:03:21 +000030178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30179$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030180 fi
30181fi
cristy71203402010-06-18 13:12:03 +000030182
cristy73bd4a52010-10-05 11:24:23 +000030183 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30184 LCMS_DELEGATE_TRUE=
30185 LCMS_DELEGATE_FALSE='#'
30186else
30187 LCMS_DELEGATE_TRUE='#'
30188 LCMS_DELEGATE_FALSE=
30189fi
30190
cristy71203402010-06-18 13:12:03 +000030191if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30192
30193$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30194
30195fi
30196
cristy3ed852e2009-09-05 21:47:34 +000030197
30198
30199
30200#
30201# Check for the LQR (Liquid Rescale) delegate library.
30202#
30203
30204# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030205if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030206 withval=$with_lqr; with_lqr=$withval
30207else
30208 with_lqr='yes'
30209fi
30210
30211
30212if test "$with_lqr" != 'yes'; then
30213 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30214fi
30215
30216have_lqr='no'
30217LQR_CFLAGS=""
30218LQR_LIBS=""
30219LQR_PKG=""
30220if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30222$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030223
30224pkg_failed=no
30225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30226$as_echo_n "checking for LQR... " >&6; }
30227
30228if test -n "$LQR_CFLAGS"; then
30229 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30230 elif test -n "$PKG_CONFIG"; then
30231 if test -n "$PKG_CONFIG" && \
30232 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30233 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30234 ac_status=$?
30235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30236 test $ac_status = 0; }; then
30237 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30238else
30239 pkg_failed=yes
30240fi
30241 else
30242 pkg_failed=untried
30243fi
30244if test -n "$LQR_LIBS"; then
30245 pkg_cv_LQR_LIBS="$LQR_LIBS"
30246 elif test -n "$PKG_CONFIG"; then
30247 if test -n "$PKG_CONFIG" && \
30248 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30249 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30250 ac_status=$?
30251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30252 test $ac_status = 0; }; then
30253 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30254else
30255 pkg_failed=yes
30256fi
30257 else
30258 pkg_failed=untried
30259fi
30260
30261
30262
30263if test $pkg_failed = yes; then
30264
30265if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30266 _pkg_short_errors_supported=yes
30267else
30268 _pkg_short_errors_supported=no
30269fi
30270 if test $_pkg_short_errors_supported = yes; then
30271 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30272 else
30273 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30274 fi
30275 # Put the nasty error message in config.log where it belongs
30276 echo "$LQR_PKG_ERRORS" >&5
30277
30278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30279$as_echo "no" >&6; }
30280 have_lqr=no
30281elif test $pkg_failed = untried; then
30282 have_lqr=no
30283else
30284 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30285 LQR_LIBS=$pkg_cv_LQR_LIBS
30286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30287$as_echo "yes" >&6; }
30288 have_lqr=yes
30289fi
cristyad38abe2012-12-23 23:03:21 +000030290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30291$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030292fi
30293
30294if test "$have_lqr" = 'yes'; then
30295
cristy8b350f62009-11-15 23:12:43 +000030296$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030297
30298 CFLAGS="$LQR_CFLAGS $CFLAGS"
30299fi
30300
cristy73bd4a52010-10-05 11:24:23 +000030301 if test "$have_lqr" = 'yes'; then
30302 LQR_DELEGATE_TRUE=
30303 LQR_DELEGATE_FALSE='#'
30304else
30305 LQR_DELEGATE_TRUE='#'
30306 LQR_DELEGATE_FALSE=
30307fi
30308
cristy3ed852e2009-09-05 21:47:34 +000030309
30310
30311
30312
cristy81beccd2011-10-03 18:17:24 +000030313# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030314
30315# Check whether --with-lzma was given.
30316if test "${with_lzma+set}" = set; then :
30317 withval=$with_lzma; with_lzma=$withval
30318else
30319 with_lzma='yes'
30320fi
30321
cristy81beccd2011-10-03 18:17:24 +000030322if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030323 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30324fi
30325
cristyb94e5002011-11-14 13:20:10 +000030326LZMA_PKG=""
30327if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30329$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030330
30331pkg_failed=no
30332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030333$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030334
30335if test -n "$LZMA_CFLAGS"; then
30336 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30337 elif test -n "$PKG_CONFIG"; then
30338 if test -n "$PKG_CONFIG" && \
30339 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30340 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30341 ac_status=$?
30342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30343 test $ac_status = 0; }; then
30344 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30345else
30346 pkg_failed=yes
30347fi
30348 else
30349 pkg_failed=untried
30350fi
30351if test -n "$LZMA_LIBS"; then
30352 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30353 elif test -n "$PKG_CONFIG"; then
30354 if test -n "$PKG_CONFIG" && \
30355 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30356 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30357 ac_status=$?
30358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30359 test $ac_status = 0; }; then
30360 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30361else
30362 pkg_failed=yes
30363fi
30364 else
30365 pkg_failed=untried
30366fi
30367
30368
30369
30370if test $pkg_failed = yes; then
30371
30372if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30373 _pkg_short_errors_supported=yes
30374else
30375 _pkg_short_errors_supported=no
30376fi
30377 if test $_pkg_short_errors_supported = yes; then
30378 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30379 else
30380 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30381 fi
30382 # Put the nasty error message in config.log where it belongs
30383 echo "$LZMA_PKG_ERRORS" >&5
30384
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30386$as_echo "no" >&6; }
30387 have_lzma=no
30388elif test $pkg_failed = untried; then
30389 have_lzma=no
30390else
30391 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30392 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30394$as_echo "yes" >&6; }
30395 have_lzma=yes
30396fi
cristyad38abe2012-12-23 23:03:21 +000030397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30398$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030399fi
30400
cristyb94e5002011-11-14 13:20:10 +000030401if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030402
30403$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30404
cristyc6722092012-10-14 00:19:31 +000030405 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030406 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030407 fi
cristyfbb0ef02010-12-19 02:32:11 +000030408fi
cristyb94e5002011-11-14 13:20:10 +000030409
cristyfbb0ef02010-12-19 02:32:11 +000030410 if test "$have_lzma" = 'yes'; then
30411 LZMA_DELEGATE_TRUE=
30412 LZMA_DELEGATE_FALSE='#'
30413else
30414 LZMA_DELEGATE_TRUE='#'
30415 LZMA_DELEGATE_FALSE=
30416fi
30417
30418
30419
30420
cristyb94e5002011-11-14 13:20:10 +000030421
cristy3ed852e2009-09-05 21:47:34 +000030422#
cristy854c9cf2013-08-10 21:03:06 +000030423# Check for MUPDF delegate library.
30424#
30425
30426# Check whether --with-mupdf was given.
30427if test "${with_mupdf+set}" = set; then :
30428 withval=$with_mupdf; with_mupdf=$withval
30429else
30430 with_mupdf='no'
30431fi
30432
30433
30434if test "$with_mupdf" != 'yes'; then
30435 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-mupdf=$with_mupdf "
30436fi
30437
30438have_mupdf='no'
30439MUPDF_LIBS=''
30440if test "$with_mupdf" != 'no'; then
30441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30442$as_echo "-------------------------------------------------------------" >&6; }
30443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MUPDF" >&5
30444$as_echo_n "checking for MUPDF... " >&6; }
30445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30446$as_echo "" >&6; }
30447 failed=0
30448 passed=0
30449 ac_fn_c_check_header_mongrel "$LINENO" "mupdf/fitz.h" "ac_cv_header_mupdf_fitz_h" "$ac_includes_default"
30450if test "x$ac_cv_header_mupdf_fitz_h" = xyes; then :
30451 passed=`expr $passed + 1`
30452else
30453 failed=`expr $failed + 1`
30454fi
30455
30456
30457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fz_new_context in -lmupdf" >&5
30458$as_echo_n "checking for fz_new_context in -lmupdf... " >&6; }
30459if ${ac_cv_lib_mupdf_fz_new_context+:} false; then :
30460 $as_echo_n "(cached) " >&6
30461else
30462 ac_check_lib_save_LIBS=$LIBS
30463LIBS="-lmupdf -lmupdf $FREETYPE_LIBS $LIBS"
30464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30465/* end confdefs.h. */
30466
30467/* Override any GCC internal prototype to avoid an error.
30468 Use char because int might match the return type of a GCC
30469 builtin and then its argument prototype would still apply. */
30470#ifdef __cplusplus
30471extern "C"
30472#endif
30473char fz_new_context ();
30474int
30475main ()
30476{
30477return fz_new_context ();
30478 ;
30479 return 0;
30480}
30481_ACEOF
30482if ac_fn_c_try_link "$LINENO"; then :
30483 ac_cv_lib_mupdf_fz_new_context=yes
30484else
30485 ac_cv_lib_mupdf_fz_new_context=no
30486fi
30487rm -f core conftest.err conftest.$ac_objext \
30488 conftest$ac_exeext conftest.$ac_ext
30489LIBS=$ac_check_lib_save_LIBS
30490fi
30491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mupdf_fz_new_context" >&5
30492$as_echo "$ac_cv_lib_mupdf_fz_new_context" >&6; }
30493if test "x$ac_cv_lib_mupdf_fz_new_context" = xyes; then :
30494 passed=`expr $passed + 1`
30495else
30496 failed=`expr $failed + 1`
30497fi
30498
30499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MUPDF package is complete" >&5
30500$as_echo_n "checking if MUPDF package is complete... " >&6; }
30501 if test $passed -gt 0; then
30502 if test $failed -gt 0; then
30503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30504$as_echo "no -- some components failed test" >&6; }
30505 have_mupdf='no (failed tests)'
30506 else
30507 MUPDF_LIBS='-lmupdf'
30508 LIBS="$MUPDF_LIBS $LIBS"
30509
30510$as_echo "#define MUPDF_DELEGATE 1" >>confdefs.h
30511
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30513$as_echo "yes" >&6; }
30514 have_mupdf='yes'
30515 fi
30516 else
30517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30518$as_echo "no" >&6; }
30519 fi
30520fi
30521 if test "$have_mupdf" = 'yes'; then
30522 MUPDF_DELEGATE_TRUE=
30523 MUPDF_DELEGATE_FALSE='#'
30524else
30525 MUPDF_DELEGATE_TRUE='#'
30526 MUPDF_DELEGATE_FALSE=
30527fi
30528
30529
30530
30531
30532#
cristy3ed852e2009-09-05 21:47:34 +000030533# Check for the OpenEXR delegate library.
30534#
30535
30536# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030537if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030538 withval=$with_openexr; with_openexr=$withval
30539else
30540 with_openexr='yes'
30541fi
30542
30543
30544if test "$with_openexr" != 'yes'; then
30545 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30546fi
30547
30548have_openexr='no'
30549OPENEXR_CFLAGS=""
30550OPENEXR_LIBS=""
30551OPENEXR_PKG=""
30552if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30554$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030555
30556pkg_failed=no
30557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30558$as_echo_n "checking for OPENEXR... " >&6; }
30559
30560if test -n "$OPENEXR_CFLAGS"; then
30561 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30562 elif test -n "$PKG_CONFIG"; then
30563 if test -n "$PKG_CONFIG" && \
30564 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30565 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30566 ac_status=$?
30567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30568 test $ac_status = 0; }; then
30569 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30570else
30571 pkg_failed=yes
30572fi
30573 else
30574 pkg_failed=untried
30575fi
30576if test -n "$OPENEXR_LIBS"; then
30577 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30578 elif test -n "$PKG_CONFIG"; then
30579 if test -n "$PKG_CONFIG" && \
30580 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30581 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30582 ac_status=$?
30583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30584 test $ac_status = 0; }; then
30585 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30586else
30587 pkg_failed=yes
30588fi
30589 else
30590 pkg_failed=untried
30591fi
30592
30593
30594
30595if test $pkg_failed = yes; then
30596
30597if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30598 _pkg_short_errors_supported=yes
30599else
30600 _pkg_short_errors_supported=no
30601fi
30602 if test $_pkg_short_errors_supported = yes; then
30603 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30604 else
30605 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30606 fi
30607 # Put the nasty error message in config.log where it belongs
30608 echo "$OPENEXR_PKG_ERRORS" >&5
30609
30610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30611$as_echo "no" >&6; }
30612 have_openexr=no
30613elif test $pkg_failed = untried; then
30614 have_openexr=no
30615else
30616 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30617 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30619$as_echo "yes" >&6; }
30620 have_openexr=yes
30621fi
cristyad38abe2012-12-23 23:03:21 +000030622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30623$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030624fi
30625
30626if test "$have_openexr" = 'yes'; then
30627
cristy8b350f62009-11-15 23:12:43 +000030628$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030629
cristyc6722092012-10-14 00:19:31 +000030630 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030631 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30632 fi
30633fi
30634
cristy73bd4a52010-10-05 11:24:23 +000030635 if test "$have_openexr" = 'yes'; then
30636 OPENEXR_DELEGATE_TRUE=
30637 OPENEXR_DELEGATE_FALSE='#'
30638else
30639 OPENEXR_DELEGATE_TRUE='#'
30640 OPENEXR_DELEGATE_FALSE=
30641fi
30642
cristy3ed852e2009-09-05 21:47:34 +000030643
30644
30645
30646
30647#
cristy41cbe8a2011-10-27 01:35:18 +000030648# Check for PANGO delegate library.
30649#
30650
30651# Check whether --with-pango was given.
30652if test "${with_pango+set}" = set; then :
30653 withval=$with_pango; with_pango=$withval
30654else
cristyfc3d0222012-02-07 15:05:57 +000030655 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030656fi
30657
30658
30659if test "$with_pango" != 'yes'; then
30660 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30661fi
30662
30663have_pango='no'
cristya054b762012-03-26 23:16:00 +000030664have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030665PANGO_CFLAGS=""
30666PANGO_LIBS=""
30667PANGO_PKG=""
30668if test "x$with_pango" = "xyes"; then
30669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30670$as_echo "-------------------------------------------------------------" >&6; }
30671
30672pkg_failed=no
30673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30674$as_echo_n "checking for PANGO... " >&6; }
30675
30676if test -n "$PANGO_CFLAGS"; then
30677 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30678 elif test -n "$PKG_CONFIG"; then
30679 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30681 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030682 ac_status=$?
30683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30684 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030685 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030686else
30687 pkg_failed=yes
30688fi
30689 else
30690 pkg_failed=untried
30691fi
30692if test -n "$PANGO_LIBS"; then
30693 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30694 elif test -n "$PKG_CONFIG"; then
30695 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030696 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30697 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030698 ac_status=$?
30699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30700 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030701 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030702else
30703 pkg_failed=yes
30704fi
30705 else
30706 pkg_failed=untried
30707fi
30708
30709
30710
30711if test $pkg_failed = yes; then
30712
30713if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30714 _pkg_short_errors_supported=yes
30715else
30716 _pkg_short_errors_supported=no
30717fi
30718 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030719 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030720 else
cristya054b762012-03-26 23:16:00 +000030721 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030722 fi
30723 # Put the nasty error message in config.log where it belongs
30724 echo "$PANGO_PKG_ERRORS" >&5
30725
30726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30727$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030728 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030729elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030730 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030731else
30732 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30733 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30735$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030736 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030737fi
30738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30739$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030740
30741pkg_failed=no
30742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30743$as_echo_n "checking for PANGO... " >&6; }
30744
30745if test -n "$PANGO_CFLAGS"; then
30746 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30747 elif test -n "$PKG_CONFIG"; then
30748 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030749 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30750 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030751 ac_status=$?
30752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30753 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030754 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030755else
30756 pkg_failed=yes
30757fi
30758 else
30759 pkg_failed=untried
30760fi
30761if test -n "$PANGO_LIBS"; then
30762 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30763 elif test -n "$PKG_CONFIG"; then
30764 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030765 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30766 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030767 ac_status=$?
30768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30769 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030770 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030771else
30772 pkg_failed=yes
30773fi
30774 else
30775 pkg_failed=untried
30776fi
30777
30778
30779
30780if test $pkg_failed = yes; then
30781
30782if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30783 _pkg_short_errors_supported=yes
30784else
30785 _pkg_short_errors_supported=no
30786fi
30787 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030788 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030789 else
cristy2542fc62011-12-06 17:50:25 +000030790 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030791 fi
30792 # Put the nasty error message in config.log where it belongs
30793 echo "$PANGO_PKG_ERRORS" >&5
30794
30795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30796$as_echo "no" >&6; }
30797 have_pango=no
30798elif test $pkg_failed = untried; then
30799 have_pango=no
30800else
30801 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30802 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30804$as_echo "yes" >&6; }
30805 have_pango=yes
30806fi
30807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30808$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030809fi
30810
30811if test "$have_pango" = 'yes'; then
30812
30813$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30814
cristyc6722092012-10-14 00:19:31 +000030815 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030816 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30817 fi
30818fi
30819
cristya054b762012-03-26 23:16:00 +000030820if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030821
cristya054b762012-03-26 23:16:00 +000030822$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030823
cristyc6722092012-10-14 00:19:31 +000030824 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030825 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030826 fi
30827fi
30828
30829 if test "$have_pango" = 'yes'; then
30830 PANGO_DELEGATE_TRUE=
30831 PANGO_DELEGATE_FALSE='#'
30832else
30833 PANGO_DELEGATE_TRUE='#'
30834 PANGO_DELEGATE_FALSE=
30835fi
30836
cristya054b762012-03-26 23:16:00 +000030837 if test "$have_pangocairo" = 'yes'; then
30838 PANGOCAIRO_DELEGATE_TRUE=
30839 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030840else
cristya054b762012-03-26 23:16:00 +000030841 PANGOCAIRO_DELEGATE_TRUE='#'
30842 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030843fi
30844
30845
30846
30847
30848
30849#
cristy3ed852e2009-09-05 21:47:34 +000030850# Check for PNG delegate library.
30851#
30852
30853# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030854if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030855 withval=$with_png; with_png=$withval
30856else
30857 with_png='yes'
30858fi
30859
30860
30861if test "$with_png" != 'yes'; then
30862 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30863fi
30864
cristy81beccd2011-10-03 18:17:24 +000030865have_png='no'
30866PNG_LIBS=''
30867
30868if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30870$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30872$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30874$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030875 failed=0
30876 passed=0
30877 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30878if test "x$ac_cv_header_png_h" = xyes; then :
30879 passed=`expr $passed + 1`
30880else
30881 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030882fi
30883
cristy81beccd2011-10-03 18:17:24 +000030884
30885
30886 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030887 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030888 if test "$have_png" = 'no' ; then
30889 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030890 pnglib='png'
30891 else
30892 pnglib="png1${var}"
30893 fi
30894
30895# Test for compatible LIBPNG library
30896 failed=0
30897 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030898 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030899 if test "${pnglib}" != 'png' ; then
30900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30901$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30903/* end confdefs.h. */
30904#include <stdio.h>
30905#include <stdlib.h>
30906#include <png.h>
30907
30908int
30909main ()
30910{
30911
30912#if PNG_LIBPNG_VER_MINOR != ${var}
30913#error LIBPNG library must be version 1${var}!
30914Kaboom, Kaboom
30915#endif
30916return 0;
30917
30918 ;
30919 return 0;
30920}
30921_ACEOF
30922if ac_fn_c_try_compile "$LINENO"; then :
30923 ac_cv_libpng_ok='yes'
30924else
30925 ac_cv_libpng_ok='no'
30926fi
30927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30928 if test "$ac_cv_libpng_ok" = 'yes' ; then
30929 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30931$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030932 else
30933 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30935$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030936 fi
30937 else
30938 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30940$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030941 fi
30942 fi
30943
30944 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030945 if test "1${var}" = '17' ; then
30946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30947$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30948if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30949 $as_echo_n "(cached) " >&6
30950else
30951 ac_check_lib_save_LIBS=$LIBS
30952LIBS="-lpng17 $LIBS"
30953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30954/* end confdefs.h. */
30955
30956/* Override any GCC internal prototype to avoid an error.
30957 Use char because int might match the return type of a GCC
30958 builtin and then its argument prototype would still apply. */
30959#ifdef __cplusplus
30960extern "C"
30961#endif
30962char png_get_io_ptr ();
30963int
30964main ()
30965{
30966return png_get_io_ptr ();
30967 ;
30968 return 0;
30969}
30970_ACEOF
30971if ac_fn_c_try_link "$LINENO"; then :
30972 ac_cv_lib_png17_png_get_io_ptr=yes
30973else
30974 ac_cv_lib_png17_png_get_io_ptr=no
30975fi
30976rm -f core conftest.err conftest.$ac_objext \
30977 conftest$ac_exeext conftest.$ac_ext
30978LIBS=$ac_check_lib_save_LIBS
30979fi
30980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30981$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30982if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30983 passed=`expr $passed + 1`
30984else
30985 failed=`expr $failed + 1`
30986fi
30987
30988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30989$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30990if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30991 $as_echo_n "(cached) " >&6
30992else
30993 ac_check_lib_save_LIBS=$LIBS
30994LIBS="-lpng17 $LIBS"
30995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30996/* end confdefs.h. */
30997
30998/* Override any GCC internal prototype to avoid an error.
30999 Use char because int might match the return type of a GCC
31000 builtin and then its argument prototype would still apply. */
31001#ifdef __cplusplus
31002extern "C"
31003#endif
31004char png_longjmp ();
31005int
31006main ()
31007{
31008return png_longjmp ();
31009 ;
31010 return 0;
31011}
31012_ACEOF
31013if ac_fn_c_try_link "$LINENO"; then :
31014 ac_cv_lib_png17_png_longjmp=yes
31015else
31016 ac_cv_lib_png17_png_longjmp=no
31017fi
31018rm -f core conftest.err conftest.$ac_objext \
31019 conftest$ac_exeext conftest.$ac_ext
31020LIBS=$ac_check_lib_save_LIBS
31021fi
31022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31023$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31024if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31025 passed=`expr $passed + 1`
31026else
31027 failed=`expr $failed + 1`
31028fi
31029
31030 fi
31031 if test "1${var}" = '16' ; then
31032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31033$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31034if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31035 $as_echo_n "(cached) " >&6
31036else
31037 ac_check_lib_save_LIBS=$LIBS
31038LIBS="-lpng16 $LIBS"
31039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31040/* end confdefs.h. */
31041
31042/* Override any GCC internal prototype to avoid an error.
31043 Use char because int might match the return type of a GCC
31044 builtin and then its argument prototype would still apply. */
31045#ifdef __cplusplus
31046extern "C"
31047#endif
31048char png_get_io_ptr ();
31049int
31050main ()
31051{
31052return png_get_io_ptr ();
31053 ;
31054 return 0;
31055}
31056_ACEOF
31057if ac_fn_c_try_link "$LINENO"; then :
31058 ac_cv_lib_png16_png_get_io_ptr=yes
31059else
31060 ac_cv_lib_png16_png_get_io_ptr=no
31061fi
31062rm -f core conftest.err conftest.$ac_objext \
31063 conftest$ac_exeext conftest.$ac_ext
31064LIBS=$ac_check_lib_save_LIBS
31065fi
31066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31067$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31068if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31069 passed=`expr $passed + 1`
31070else
31071 failed=`expr $failed + 1`
31072fi
31073
31074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31075$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31076if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31077 $as_echo_n "(cached) " >&6
31078else
31079 ac_check_lib_save_LIBS=$LIBS
31080LIBS="-lpng16 $LIBS"
31081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31082/* end confdefs.h. */
31083
31084/* Override any GCC internal prototype to avoid an error.
31085 Use char because int might match the return type of a GCC
31086 builtin and then its argument prototype would still apply. */
31087#ifdef __cplusplus
31088extern "C"
31089#endif
31090char png_longjmp ();
31091int
31092main ()
31093{
31094return png_longjmp ();
31095 ;
31096 return 0;
31097}
31098_ACEOF
31099if ac_fn_c_try_link "$LINENO"; then :
31100 ac_cv_lib_png16_png_longjmp=yes
31101else
31102 ac_cv_lib_png16_png_longjmp=no
31103fi
31104rm -f core conftest.err conftest.$ac_objext \
31105 conftest$ac_exeext conftest.$ac_ext
31106LIBS=$ac_check_lib_save_LIBS
31107fi
31108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31109$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31110if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31111 passed=`expr $passed + 1`
31112else
31113 failed=`expr $failed + 1`
31114fi
31115
31116 fi
cristy81beccd2011-10-03 18:17:24 +000031117 if test "1${var}" = '15' ; then
31118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31119$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31120if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31121 $as_echo_n "(cached) " >&6
31122else
31123 ac_check_lib_save_LIBS=$LIBS
31124LIBS="-lpng15 $LIBS"
31125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31126/* end confdefs.h. */
31127
31128/* Override any GCC internal prototype to avoid an error.
31129 Use char because int might match the return type of a GCC
31130 builtin and then its argument prototype would still apply. */
31131#ifdef __cplusplus
31132extern "C"
31133#endif
31134char png_get_io_ptr ();
31135int
31136main ()
31137{
31138return png_get_io_ptr ();
31139 ;
31140 return 0;
31141}
31142_ACEOF
31143if ac_fn_c_try_link "$LINENO"; then :
31144 ac_cv_lib_png15_png_get_io_ptr=yes
31145else
31146 ac_cv_lib_png15_png_get_io_ptr=no
31147fi
31148rm -f core conftest.err conftest.$ac_objext \
31149 conftest$ac_exeext conftest.$ac_ext
31150LIBS=$ac_check_lib_save_LIBS
31151fi
31152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31153$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31154if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31155 passed=`expr $passed + 1`
31156else
31157 failed=`expr $failed + 1`
31158fi
31159
31160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31161$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31162if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31163 $as_echo_n "(cached) " >&6
31164else
31165 ac_check_lib_save_LIBS=$LIBS
31166LIBS="-lpng15 $LIBS"
31167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31168/* end confdefs.h. */
31169
31170/* Override any GCC internal prototype to avoid an error.
31171 Use char because int might match the return type of a GCC
31172 builtin and then its argument prototype would still apply. */
31173#ifdef __cplusplus
31174extern "C"
31175#endif
31176char png_longjmp ();
31177int
31178main ()
31179{
31180return png_longjmp ();
31181 ;
31182 return 0;
31183}
31184_ACEOF
31185if ac_fn_c_try_link "$LINENO"; then :
31186 ac_cv_lib_png15_png_longjmp=yes
31187else
31188 ac_cv_lib_png15_png_longjmp=no
31189fi
31190rm -f core conftest.err conftest.$ac_objext \
31191 conftest$ac_exeext conftest.$ac_ext
31192LIBS=$ac_check_lib_save_LIBS
31193fi
31194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31195$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31196if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31197 passed=`expr $passed + 1`
31198else
31199 failed=`expr $failed + 1`
31200fi
31201
31202 fi
31203 if test "1${var}" = '14' ; then
31204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31205$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31206if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31207 $as_echo_n "(cached) " >&6
31208else
31209 ac_check_lib_save_LIBS=$LIBS
31210LIBS="-lpng14 $LIBS"
31211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31212/* end confdefs.h. */
31213
31214/* Override any GCC internal prototype to avoid an error.
31215 Use char because int might match the return type of a GCC
31216 builtin and then its argument prototype would still apply. */
31217#ifdef __cplusplus
31218extern "C"
31219#endif
31220char png_get_io_ptr ();
31221int
31222main ()
31223{
31224return png_get_io_ptr ();
31225 ;
31226 return 0;
31227}
31228_ACEOF
31229if ac_fn_c_try_link "$LINENO"; then :
31230 ac_cv_lib_png14_png_get_io_ptr=yes
31231else
31232 ac_cv_lib_png14_png_get_io_ptr=no
31233fi
31234rm -f core conftest.err conftest.$ac_objext \
31235 conftest$ac_exeext conftest.$ac_ext
31236LIBS=$ac_check_lib_save_LIBS
31237fi
31238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31239$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31240if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31241 passed=`expr $passed + 1`
31242else
31243 failed=`expr $failed + 1`
31244fi
31245
31246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31247$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31248if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31249 $as_echo_n "(cached) " >&6
31250else
31251 ac_check_lib_save_LIBS=$LIBS
31252LIBS="-lpng14 $LIBS"
31253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31254/* end confdefs.h. */
31255
31256/* Override any GCC internal prototype to avoid an error.
31257 Use char because int might match the return type of a GCC
31258 builtin and then its argument prototype would still apply. */
31259#ifdef __cplusplus
31260extern "C"
31261#endif
31262char png_get_io_state ();
31263int
31264main ()
31265{
31266return png_get_io_state ();
31267 ;
31268 return 0;
31269}
31270_ACEOF
31271if ac_fn_c_try_link "$LINENO"; then :
31272 ac_cv_lib_png14_png_get_io_state=yes
31273else
31274 ac_cv_lib_png14_png_get_io_state=no
31275fi
31276rm -f core conftest.err conftest.$ac_objext \
31277 conftest$ac_exeext conftest.$ac_ext
31278LIBS=$ac_check_lib_save_LIBS
31279fi
31280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31281$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31282if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31283 passed=`expr $passed + 1`
31284else
31285 failed=`expr $failed + 1`
31286fi
31287
31288 fi
31289 if test "1${var}" = '12' ; then
31290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31291$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31292if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31293 $as_echo_n "(cached) " >&6
31294else
31295 ac_check_lib_save_LIBS=$LIBS
31296LIBS="-lpng12 $LIBS"
31297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31298/* end confdefs.h. */
31299
31300/* Override any GCC internal prototype to avoid an error.
31301 Use char because int might match the return type of a GCC
31302 builtin and then its argument prototype would still apply. */
31303#ifdef __cplusplus
31304extern "C"
31305#endif
31306char png_get_io_ptr ();
31307int
31308main ()
31309{
31310return png_get_io_ptr ();
31311 ;
31312 return 0;
31313}
31314_ACEOF
31315if ac_fn_c_try_link "$LINENO"; then :
31316 ac_cv_lib_png12_png_get_io_ptr=yes
31317else
31318 ac_cv_lib_png12_png_get_io_ptr=no
31319fi
31320rm -f core conftest.err conftest.$ac_objext \
31321 conftest$ac_exeext conftest.$ac_ext
31322LIBS=$ac_check_lib_save_LIBS
31323fi
31324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31325$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31326if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31327 passed=`expr $passed + 1`
31328else
31329 failed=`expr $failed + 1`
31330fi
31331
31332 fi
31333 if test "1${var}" = '1' ; then
31334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31335$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31336if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31337 $as_echo_n "(cached) " >&6
31338else
31339 ac_check_lib_save_LIBS=$LIBS
31340LIBS="-lpng $LIBS"
31341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31342/* end confdefs.h. */
31343
31344/* Override any GCC internal prototype to avoid an error.
31345 Use char because int might match the return type of a GCC
31346 builtin and then its argument prototype would still apply. */
31347#ifdef __cplusplus
31348extern "C"
31349#endif
31350char png_get_io_ptr ();
31351int
31352main ()
31353{
31354return png_get_io_ptr ();
31355 ;
31356 return 0;
31357}
31358_ACEOF
31359if ac_fn_c_try_link "$LINENO"; then :
31360 ac_cv_lib_png_png_get_io_ptr=yes
31361else
31362 ac_cv_lib_png_png_get_io_ptr=no
31363fi
31364rm -f core conftest.err conftest.$ac_objext \
31365 conftest$ac_exeext conftest.$ac_ext
31366LIBS=$ac_check_lib_save_LIBS
31367fi
31368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31369$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31370if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31371 passed=`expr $passed + 1`
31372else
31373 failed=`expr $failed + 1`
31374fi
31375
31376 fi
31377 if test $passed -gt 0 -a $failed -le 0 ; then
31378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31379$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31380 if test $passed -gt 0 ; then
31381 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31383$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031384 have_png='no (failed tests)'
31385 else
31386 PNG_LIBS="-l${pnglib}"
31387 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031388
cristy8b350f62009-11-15 23:12:43 +000031389$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031390
cristyad38abe2012-12-23 23:03:21 +000031391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31392$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031393 have_png='yes'
31394 fi
31395 fi
31396 fi
31397 fi
31398 fi
31399 done
31400 fi
cristy3ed852e2009-09-05 21:47:34 +000031401fi
cristy64877302011-08-23 19:10:31 +000031402
cristy73bd4a52010-10-05 11:24:23 +000031403 if test "$have_png" = 'yes'; then
31404 PNG_DELEGATE_TRUE=
31405 PNG_DELEGATE_FALSE='#'
31406else
31407 PNG_DELEGATE_TRUE='#'
31408 PNG_DELEGATE_FALSE=
31409fi
31410
cristy3ed852e2009-09-05 21:47:34 +000031411
cristy50d3f5c2011-09-10 20:09:06 +000031412
cristy3ed852e2009-09-05 21:47:34 +000031413
31414
31415#
31416# Check for RSVG delegate library.
31417#
31418
31419# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031420if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031421 withval=$with_rsvg; with_rsvg=$withval
31422else
cristy1164d5f2012-08-15 00:58:25 +000031423 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031424fi
31425
31426
31427if test "$with_rsvg" != 'yes'; then
31428 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31429fi
31430
31431have_rsvg='no'
31432have_cairo='no'
31433RSVG_CFLAGS=""
31434RSVG_LIBS=""
31435RSVG_PKG=""
31436if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31438$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031439
31440pkg_failed=no
31441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31442$as_echo_n "checking for RSVG... " >&6; }
31443
31444if test -n "$RSVG_CFLAGS"; then
31445 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31446 elif test -n "$PKG_CONFIG"; then
31447 if test -n "$PKG_CONFIG" && \
31448 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31449 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31450 ac_status=$?
31451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31452 test $ac_status = 0; }; then
31453 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31454else
31455 pkg_failed=yes
31456fi
31457 else
31458 pkg_failed=untried
31459fi
31460if test -n "$RSVG_LIBS"; then
31461 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31462 elif test -n "$PKG_CONFIG"; then
31463 if test -n "$PKG_CONFIG" && \
31464 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31465 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31466 ac_status=$?
31467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31468 test $ac_status = 0; }; then
31469 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31470else
31471 pkg_failed=yes
31472fi
31473 else
31474 pkg_failed=untried
31475fi
31476
31477
31478
31479if test $pkg_failed = yes; then
31480
31481if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31482 _pkg_short_errors_supported=yes
31483else
31484 _pkg_short_errors_supported=no
31485fi
31486 if test $_pkg_short_errors_supported = yes; then
31487 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31488 else
31489 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31490 fi
31491 # Put the nasty error message in config.log where it belongs
31492 echo "$RSVG_PKG_ERRORS" >&5
31493
31494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31495$as_echo "no" >&6; }
31496 have_rsvg=no
31497elif test $pkg_failed = untried; then
31498 have_rsvg=no
31499else
31500 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31501 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31503$as_echo "yes" >&6; }
31504 have_rsvg=yes
31505fi
cristyad38abe2012-12-23 23:03:21 +000031506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31507$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031508
31509pkg_failed=no
31510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31511$as_echo_n "checking for CAIRO_SVG... " >&6; }
31512
31513if test -n "$CAIRO_SVG_CFLAGS"; then
31514 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31515 elif test -n "$PKG_CONFIG"; then
31516 if test -n "$PKG_CONFIG" && \
31517 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31518 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31519 ac_status=$?
31520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31521 test $ac_status = 0; }; then
31522 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31523else
31524 pkg_failed=yes
31525fi
31526 else
31527 pkg_failed=untried
31528fi
31529if test -n "$CAIRO_SVG_LIBS"; then
31530 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31531 elif test -n "$PKG_CONFIG"; then
31532 if test -n "$PKG_CONFIG" && \
31533 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31534 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31535 ac_status=$?
31536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31537 test $ac_status = 0; }; then
31538 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31539else
31540 pkg_failed=yes
31541fi
31542 else
31543 pkg_failed=untried
31544fi
31545
31546
31547
31548if test $pkg_failed = yes; then
31549
31550if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31551 _pkg_short_errors_supported=yes
31552else
31553 _pkg_short_errors_supported=no
31554fi
31555 if test $_pkg_short_errors_supported = yes; then
31556 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31557 else
31558 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31559 fi
31560 # Put the nasty error message in config.log where it belongs
31561 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31562
31563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31564$as_echo "no" >&6; }
31565 have_cairo=no
31566elif test $pkg_failed = untried; then
31567 have_cairo=no
31568else
31569 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31570 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31572$as_echo "yes" >&6; }
31573 have_cairo=yes
31574fi
cristyad38abe2012-12-23 23:03:21 +000031575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31576$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031577fi
31578
31579if test "$have_rsvg" = 'yes'; then
31580
cristy8b350f62009-11-15 23:12:43 +000031581$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031582
cristyc6722092012-10-14 00:19:31 +000031583 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031584 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31585 fi
31586fi
31587
31588if test "$have_cairo" = 'yes'; then
31589
cristy8b350f62009-11-15 23:12:43 +000031590$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031591
cristyc6722092012-10-14 00:19:31 +000031592 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031593 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31594 fi
31595fi
31596
cristy73bd4a52010-10-05 11:24:23 +000031597 if test "$have_rsvg" = 'yes'; then
31598 RSVG_DELEGATE_TRUE=
31599 RSVG_DELEGATE_FALSE='#'
31600else
31601 RSVG_DELEGATE_TRUE='#'
31602 RSVG_DELEGATE_FALSE=
31603fi
31604
31605 if test "$have_cairo" = 'yes'; then
31606 CAIRO_DELEGATE_TRUE=
31607 CAIRO_DELEGATE_FALSE='#'
31608else
31609 CAIRO_DELEGATE_TRUE='#'
31610 CAIRO_DELEGATE_FALSE=
31611fi
31612
cristy3ed852e2009-09-05 21:47:34 +000031613
31614
31615
31616
31617#
31618# Check for TIFF delegate library.
31619#
31620
31621# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031622if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031623 withval=$with_tiff; with_tiff=$withval
31624else
31625 with_tiff='yes'
31626fi
31627
31628
31629if test "$with_tiff" != 'yes'; then
31630 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31631fi
31632
31633have_tiff='no'
31634TIFF_LIBS=''
31635if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31637$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031639$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31641$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031642 failed=0
31643 passed=0
cristy8b350f62009-11-15 23:12:43 +000031644 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031645if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031646 passed=`expr $passed + 1`
31647else
31648 failed=`expr $failed + 1`
31649fi
31650
31651
cristy8b350f62009-11-15 23:12:43 +000031652 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031653if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031654 passed=`expr $passed + 1`
31655else
31656 failed=`expr $failed + 1`
31657fi
31658
31659
cristy8b350f62009-11-15 23:12:43 +000031660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031661$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031662if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031663 $as_echo_n "(cached) " >&6
31664else
31665 ac_check_lib_save_LIBS=$LIBS
31666LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031668/* end confdefs.h. */
31669
31670/* Override any GCC internal prototype to avoid an error.
31671 Use char because int might match the return type of a GCC
31672 builtin and then its argument prototype would still apply. */
31673#ifdef __cplusplus
31674extern "C"
31675#endif
31676char TIFFOpen ();
31677int
31678main ()
31679{
31680return TIFFOpen ();
31681 ;
31682 return 0;
31683}
31684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031685if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031686 ac_cv_lib_tiff_TIFFOpen=yes
31687else
cristy8b350f62009-11-15 23:12:43 +000031688 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031689fi
cristy8b350f62009-11-15 23:12:43 +000031690rm -f core conftest.err conftest.$ac_objext \
31691 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031692LIBS=$ac_check_lib_save_LIBS
31693fi
cristy8b350f62009-11-15 23:12:43 +000031694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031695$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031696if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031697 passed=`expr $passed + 1`
31698else
31699 failed=`expr $failed + 1`
31700fi
31701
cristy8b350f62009-11-15 23:12:43 +000031702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031703$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031704if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031705 $as_echo_n "(cached) " >&6
31706else
31707 ac_check_lib_save_LIBS=$LIBS
31708LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031710/* 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 TIFFClientOpen ();
31719int
31720main ()
31721{
31722return TIFFClientOpen ();
31723 ;
31724 return 0;
31725}
31726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031727if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031728 ac_cv_lib_tiff_TIFFClientOpen=yes
31729else
cristy8b350f62009-11-15 23:12:43 +000031730 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031731fi
cristy8b350f62009-11-15 23:12:43 +000031732rm -f core conftest.err conftest.$ac_objext \
31733 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031734LIBS=$ac_check_lib_save_LIBS
31735fi
cristy8b350f62009-11-15 23:12:43 +000031736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031737$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031738if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031739 passed=`expr $passed + 1`
31740else
31741 failed=`expr $failed + 1`
31742fi
31743
cristy8b350f62009-11-15 23:12:43 +000031744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031745$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031746if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031747 $as_echo_n "(cached) " >&6
31748else
31749 ac_check_lib_save_LIBS=$LIBS
31750LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031752/* end confdefs.h. */
31753
31754/* Override any GCC internal prototype to avoid an error.
31755 Use char because int might match the return type of a GCC
31756 builtin and then its argument prototype would still apply. */
31757#ifdef __cplusplus
31758extern "C"
31759#endif
31760char TIFFIsByteSwapped ();
31761int
31762main ()
31763{
31764return TIFFIsByteSwapped ();
31765 ;
31766 return 0;
31767}
31768_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031769if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031770 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31771else
cristy8b350f62009-11-15 23:12:43 +000031772 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031773fi
cristy8b350f62009-11-15 23:12:43 +000031774rm -f core conftest.err conftest.$ac_objext \
31775 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031776LIBS=$ac_check_lib_save_LIBS
31777fi
cristy8b350f62009-11-15 23:12:43 +000031778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031779$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031780if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031781 passed=`expr $passed + 1`
31782else
31783 failed=`expr $failed + 1`
31784fi
31785
cristy8b350f62009-11-15 23:12:43 +000031786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031787$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031788if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031789 $as_echo_n "(cached) " >&6
31790else
31791 ac_check_lib_save_LIBS=$LIBS
31792LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031794/* end confdefs.h. */
31795
31796/* Override any GCC internal prototype to avoid an error.
31797 Use char because int might match the return type of a GCC
31798 builtin and then its argument prototype would still apply. */
31799#ifdef __cplusplus
31800extern "C"
31801#endif
31802char TIFFReadRGBATile ();
31803int
31804main ()
31805{
31806return TIFFReadRGBATile ();
31807 ;
31808 return 0;
31809}
31810_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031811if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031812 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31813else
cristy8b350f62009-11-15 23:12:43 +000031814 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031815fi
cristy8b350f62009-11-15 23:12:43 +000031816rm -f core conftest.err conftest.$ac_objext \
31817 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031818LIBS=$ac_check_lib_save_LIBS
31819fi
cristy8b350f62009-11-15 23:12:43 +000031820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031821$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031822if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031823 passed=`expr $passed + 1`
31824else
31825 failed=`expr $failed + 1`
31826fi
31827
cristy8b350f62009-11-15 23:12:43 +000031828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031829$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031830if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031831 $as_echo_n "(cached) " >&6
31832else
31833 ac_check_lib_save_LIBS=$LIBS
31834LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031836/* end confdefs.h. */
31837
31838/* Override any GCC internal prototype to avoid an error.
31839 Use char because int might match the return type of a GCC
31840 builtin and then its argument prototype would still apply. */
31841#ifdef __cplusplus
31842extern "C"
31843#endif
31844char TIFFReadRGBAStrip ();
31845int
31846main ()
31847{
31848return TIFFReadRGBAStrip ();
31849 ;
31850 return 0;
31851}
31852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031853if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031854 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31855else
cristy8b350f62009-11-15 23:12:43 +000031856 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031857fi
cristy8b350f62009-11-15 23:12:43 +000031858rm -f core conftest.err conftest.$ac_objext \
31859 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031860LIBS=$ac_check_lib_save_LIBS
31861fi
cristy8b350f62009-11-15 23:12:43 +000031862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031863$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031864if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031865 passed=`expr $passed + 1`
31866else
31867 failed=`expr $failed + 1`
31868fi
31869
cristy8b350f62009-11-15 23:12:43 +000031870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031871$as_echo_n "checking if TIFF package is complete... " >&6; }
31872 if test $passed -gt 0; then
31873 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31875$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031876 have_tiff='no (failed tests)'
31877 else
31878 TIFF_LIBS='-ltiff'
31879 LIBS="$TIFF_LIBS $LIBS"
31880
cristy8b350f62009-11-15 23:12:43 +000031881$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031882
cristyad38abe2012-12-23 23:03:21 +000031883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31884$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031885 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031886 for ac_header in tiffconf.h
31887do :
31888 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031889if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031890 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031891#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031892_ACEOF
31893
31894fi
31895
31896done
31897
cristy8b350f62009-11-15 23:12:43 +000031898 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031899 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31900 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31901 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031902do :
31903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31904ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031905if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031906 cat >>confdefs.h <<_ACEOF
31907#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31908_ACEOF
31909
31910fi
31911done
31912
31913 fi
31914 else
cristyad38abe2012-12-23 23:03:21 +000031915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31916$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031917 fi
31918fi
cristy73bd4a52010-10-05 11:24:23 +000031919 if test "$have_tiff" = 'yes'; then
31920 TIFF_DELEGATE_TRUE=
31921 TIFF_DELEGATE_FALSE='#'
31922else
31923 TIFF_DELEGATE_TRUE='#'
31924 TIFF_DELEGATE_FALSE=
31925fi
31926
cristy3ed852e2009-09-05 21:47:34 +000031927
31928
31929
31930#
cristyb1860752011-03-14 00:27:46 +000031931# Check for WEBP delegate library.
31932#
31933
31934# Check whether --with-webp was given.
31935if test "${with_webp+set}" = set; then :
31936 withval=$with_webp; with_webp=$withval
31937else
31938 with_webp='yes'
31939fi
31940
31941
31942if test "$with_webp" != 'yes'; then
31943 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31944fi
31945
31946have_webp='no'
31947WEBP_LIBS=''
31948if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31950$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31952$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31954$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031955 failed=0
31956 passed=0
31957 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31958if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31959 passed=`expr $passed + 1`
31960else
31961 failed=`expr $failed + 1`
31962fi
31963
31964
cristy6d670312013-03-22 23:23:01 +000031965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31966$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31967if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031968 $as_echo_n "(cached) " >&6
31969else
31970 ac_check_lib_save_LIBS=$LIBS
31971LIBS="-lwebp $LIBS"
31972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31973/* end confdefs.h. */
31974
31975/* Override any GCC internal prototype to avoid an error.
31976 Use char because int might match the return type of a GCC
31977 builtin and then its argument prototype would still apply. */
31978#ifdef __cplusplus
31979extern "C"
31980#endif
cristy6d670312013-03-22 23:23:01 +000031981char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031982int
31983main ()
31984{
cristy6d670312013-03-22 23:23:01 +000031985return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031986 ;
31987 return 0;
31988}
31989_ACEOF
31990if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031991 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031992else
cristy6d670312013-03-22 23:23:01 +000031993 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031994fi
31995rm -f core conftest.err conftest.$ac_objext \
31996 conftest$ac_exeext conftest.$ac_ext
31997LIBS=$ac_check_lib_save_LIBS
31998fi
cristy6d670312013-03-22 23:23:01 +000031999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32000$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32001if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032002 passed=`expr $passed + 1`
32003else
32004 failed=`expr $failed + 1`
32005fi
32006
32007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32008$as_echo_n "checking if WEBP package is complete... " >&6; }
32009 if test $passed -gt 0; then
32010 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32012$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032013 have_webp='no (failed tests)'
32014 else
32015 WEBP_LIBS='-lwebp'
32016 LIBS="$WEBP_LIBS $LIBS"
32017
32018$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32019
cristyad38abe2012-12-23 23:03:21 +000032020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32021$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032022 have_webp='yes'
32023 fi
32024 else
cristyad38abe2012-12-23 23:03:21 +000032025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32026$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032027 fi
32028fi
32029 if test "$have_webp" = 'yes'; then
32030 WEBP_DELEGATE_TRUE=
32031 WEBP_DELEGATE_FALSE='#'
32032else
32033 WEBP_DELEGATE_TRUE='#'
32034 WEBP_DELEGATE_FALSE=
32035fi
32036
32037
32038
32039
32040#
cristy3ed852e2009-09-05 21:47:34 +000032041# Set Windows font directory.
32042#
32043
32044# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032045if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032046 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32047else
32048 with_windows_font_dir=''
32049fi
32050
32051if test "$with_windows_font_dir" != '' ; then
32052 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32053fi
32054
32055
32056#
32057# Check for WMF delegate library.
32058#
32059
32060# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032061if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032062 withval=$with_wmf; with_wmf=$withval
32063else
cristyfc3d0222012-02-07 15:05:57 +000032064 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032065fi
32066
32067
32068if test "$with_wmf" != 'yes'; then
32069 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32070fi
32071
32072have_wmf='no'
32073WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032074WMF_LIBS_DEPS=''
32075OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032076if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32078$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032080$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32082$as_echo "" >&6; }
32083 have_libwmf='no'
32084 have_libwmflite='no'
32085 have_libwmf_ipa_h='no'
32086
32087 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32088"
32089if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32090 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032091fi
32092
32093
cristy03f7cf92011-12-15 01:40:41 +000032094 if test "$have_libwmf_ipa_h" = 'yes'; then
32095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32096$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32097if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032098 $as_echo_n "(cached) " >&6
32099else
32100 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032101LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032103/* end confdefs.h. */
32104
32105/* Override any GCC internal prototype to avoid an error.
32106 Use char because int might match the return type of a GCC
32107 builtin and then its argument prototype would still apply. */
32108#ifdef __cplusplus
32109extern "C"
32110#endif
cristy03f7cf92011-12-15 01:40:41 +000032111char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032112int
32113main ()
32114{
cristy03f7cf92011-12-15 01:40:41 +000032115return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032116 ;
32117 return 0;
32118}
32119_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032120if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032121 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032122else
cristy03f7cf92011-12-15 01:40:41 +000032123 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032124fi
cristy8b350f62009-11-15 23:12:43 +000032125rm -f core conftest.err conftest.$ac_objext \
32126 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032127LIBS=$ac_check_lib_save_LIBS
32128fi
cristy03f7cf92011-12-15 01:40:41 +000032129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32130$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32131if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32132 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032133fi
32134
cristy03f7cf92011-12-15 01:40:41 +000032135 if test "$have_libwmflite" = 'yes'; then
32136
32137$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32138
32139 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032140 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032141 have_wmf='yes'
32142 else
32143 WMF_LIBS_DEPS=''
32144 WMF_CONFIG_LIBS=`libwmf-config --libs`
32145 for lib in xml2 expat freetype jpeg png z; do
32146 testlib="-l${lib}"
32147 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32148 done
32149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32150$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32151if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32152 $as_echo_n "(cached) " >&6
32153else
32154 ac_check_lib_save_LIBS=$LIBS
32155LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32157/* end confdefs.h. */
32158
32159/* Override any GCC internal prototype to avoid an error.
32160 Use char because int might match the return type of a GCC
32161 builtin and then its argument prototype would still apply. */
32162#ifdef __cplusplus
32163extern "C"
32164#endif
32165char wmf_api_create ();
32166int
32167main ()
32168{
32169return wmf_api_create ();
32170 ;
32171 return 0;
32172}
32173_ACEOF
32174if ac_fn_c_try_link "$LINENO"; then :
32175 ac_cv_lib_wmf_wmf_api_create=yes
32176else
32177 ac_cv_lib_wmf_wmf_api_create=no
32178fi
32179rm -f core conftest.err conftest.$ac_objext \
32180 conftest$ac_exeext conftest.$ac_ext
32181LIBS=$ac_check_lib_save_LIBS
32182fi
32183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32184$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32185if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32186 have_libwmf='yes'
32187fi
32188
32189 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032190
cristy8b350f62009-11-15 23:12:43 +000032191$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032192
cristy03f7cf92011-12-15 01:40:41 +000032193 WMF_LIBS='-lwmf'
32194 LIBS="$WMF_LIBS $LIBS"
32195 have_wmf='yes'
32196 else
32197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32198$as_echo "no -- some components failed test" >&6; }
32199 have_wmf='no (failed tests)'
32200 have_wmflite='no (failed tests)'
32201 LIBS="$OLIBS"
32202 WMF_LIBS=''
32203 fi
glennrp33e524b2011-08-24 17:41:57 +000032204 fi
cristy03f7cf92011-12-15 01:40:41 +000032205 fi
32206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32207$as_echo_n "checking if WMF package is complete... " >&6; }
32208 if test "$have_wmf" = 'yes'; then
32209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32210$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032211 else
cristy03f7cf92011-12-15 01:40:41 +000032212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32213$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032214 fi
cristy3ed852e2009-09-05 21:47:34 +000032215fi
cristy73bd4a52010-10-05 11:24:23 +000032216 if test "$have_wmf" = 'yes'; then
32217 WMF_DELEGATE_TRUE=
32218 WMF_DELEGATE_FALSE='#'
32219else
32220 WMF_DELEGATE_TRUE='#'
32221 WMF_DELEGATE_FALSE=
32222fi
32223
cristy3ed852e2009-09-05 21:47:34 +000032224
32225
32226
cristy81beccd2011-10-03 18:17:24 +000032227
32228
cristy3ed852e2009-09-05 21:47:34 +000032229#
32230# Check for XML delegate library.
32231#
32232
32233# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032234if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032235 withval=$with_xml; with_xml=$withval
32236else
cristyfc3d0222012-02-07 15:05:57 +000032237 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032238fi
32239
32240
cristy81beccd2011-10-03 18:17:24 +000032241if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032242 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32243fi
32244
cristy81beccd2011-10-03 18:17:24 +000032245have_xml='no'
32246XML_LIBS=''
32247if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32249$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32251$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32253$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032254 PERSIST_LDFLAGS=$LDFLAGS
32255 PERSIST_CPPFLAGS=$CPPFLAGS
32256 xml2_config=''
32257 # Extract the first word of "xml2-config", so it can be a program name with args.
32258set dummy xml2-config; ac_word=$2
32259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32260$as_echo_n "checking for $ac_word... " >&6; }
32261if ${ac_cv_path_xml2_config+:} false; then :
32262 $as_echo_n "(cached) " >&6
32263else
32264 case $xml2_config in
32265 [\\/]* | ?:[\\/]*)
32266 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32267 ;;
32268 *)
32269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32270for as_dir in $PATH
32271do
32272 IFS=$as_save_IFS
32273 test -z "$as_dir" && as_dir=.
32274 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032276 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32278 break 2
32279 fi
32280done
32281 done
32282IFS=$as_save_IFS
32283
32284 ;;
32285esac
32286fi
32287xml2_config=$ac_cv_path_xml2_config
32288if test -n "$xml2_config"; then
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32290$as_echo "$xml2_config" >&6; }
32291else
32292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32293$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032294fi
32295
cristy81beccd2011-10-03 18:17:24 +000032296 if test -n "$xml2_config"; then
32297 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32298 # the shared library installed under /usr/lib, whereas the package
32299 # installs itself under $prefix/libxml and $prefix/lib.
32300 xml2_prefix=`xml2-config --prefix`
32301 if test -d "${xml2_prefix}/include/libxml2"; then
32302 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32303 fi
32304 if test "${xml2_prefix}" != '/usr'; then
32305 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32306 fi
32307 fi
32308 failed=0
32309 passed=0
32310 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32311if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32312 passed=`expr $passed + 1`
32313else
32314 failed=`expr $failed + 1`
32315fi
32316
32317
32318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32319$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32320if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32321 $as_echo_n "(cached) " >&6
32322else
32323 ac_check_lib_save_LIBS=$LIBS
32324LIBS="-lxml2 $LIBS"
32325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32326/* end confdefs.h. */
32327
32328/* Override any GCC internal prototype to avoid an error.
32329 Use char because int might match the return type of a GCC
32330 builtin and then its argument prototype would still apply. */
32331#ifdef __cplusplus
32332extern "C"
32333#endif
32334char xmlSAXVersion ();
32335int
32336main ()
32337{
32338return xmlSAXVersion ();
32339 ;
32340 return 0;
32341}
32342_ACEOF
32343if ac_fn_c_try_link "$LINENO"; then :
32344 ac_cv_lib_xml2_xmlSAXVersion=yes
32345else
32346 ac_cv_lib_xml2_xmlSAXVersion=no
32347fi
32348rm -f core conftest.err conftest.$ac_objext \
32349 conftest$ac_exeext conftest.$ac_ext
32350LIBS=$ac_check_lib_save_LIBS
32351fi
32352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32353$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32354if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32355 passed=`expr $passed + 1`
32356else
32357 failed=`expr $failed + 1`
32358fi
32359
32360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32361$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32362if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32363 $as_echo_n "(cached) " >&6
32364else
32365 ac_check_lib_save_LIBS=$LIBS
32366LIBS="-lxml2 $LIBS"
32367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32368/* end confdefs.h. */
32369
32370/* Override any GCC internal prototype to avoid an error.
32371 Use char because int might match the return type of a GCC
32372 builtin and then its argument prototype would still apply. */
32373#ifdef __cplusplus
32374extern "C"
32375#endif
32376char xmlParseChunk ();
32377int
32378main ()
32379{
32380return xmlParseChunk ();
32381 ;
32382 return 0;
32383}
32384_ACEOF
32385if ac_fn_c_try_link "$LINENO"; then :
32386 ac_cv_lib_xml2_xmlParseChunk=yes
32387else
32388 ac_cv_lib_xml2_xmlParseChunk=no
32389fi
32390rm -f core conftest.err conftest.$ac_objext \
32391 conftest$ac_exeext conftest.$ac_ext
32392LIBS=$ac_check_lib_save_LIBS
32393fi
32394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32395$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32396if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32397 passed=`expr $passed + 1`
32398else
32399 failed=`expr $failed + 1`
32400fi
32401
32402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32403$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32404if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32405 $as_echo_n "(cached) " >&6
32406else
32407 ac_check_lib_save_LIBS=$LIBS
32408LIBS="-lxml2 $LIBS"
32409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32410/* end confdefs.h. */
32411
32412/* Override any GCC internal prototype to avoid an error.
32413 Use char because int might match the return type of a GCC
32414 builtin and then its argument prototype would still apply. */
32415#ifdef __cplusplus
32416extern "C"
32417#endif
32418char xmlCreatePushParserCtxt ();
32419int
32420main ()
32421{
32422return xmlCreatePushParserCtxt ();
32423 ;
32424 return 0;
32425}
32426_ACEOF
32427if ac_fn_c_try_link "$LINENO"; then :
32428 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32429else
32430 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32431fi
32432rm -f core conftest.err conftest.$ac_objext \
32433 conftest$ac_exeext conftest.$ac_ext
32434LIBS=$ac_check_lib_save_LIBS
32435fi
32436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32437$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32438if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32439 passed=`expr $passed + 1`
32440else
32441 failed=`expr $failed + 1`
32442fi
32443
32444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32445$as_echo_n "checking if XML package is complete... " >&6; }
32446 if test $passed -gt 0; then
32447 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32449$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032450 have_xml='no (failed tests)'
32451 LDFLAGS="$PERSIST_LDFLAGS"
32452 CPPFLAGS="$PERSIST_CPPFLAGS"
32453 else
32454 XML_LIBS='-lxml2'
32455 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032456
cristy8b350f62009-11-15 23:12:43 +000032457$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032458
cristyad38abe2012-12-23 23:03:21 +000032459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32460$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032461 have_xml='yes'
32462 fi
32463 else
cristyad38abe2012-12-23 23:03:21 +000032464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32465$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032466 fi
32467fi
cristy73bd4a52010-10-05 11:24:23 +000032468 if test "$have_xml" = 'yes'; then
32469 XML_DELEGATE_TRUE=
32470 XML_DELEGATE_FALSE='#'
32471else
32472 XML_DELEGATE_TRUE='#'
32473 XML_DELEGATE_FALSE=
32474fi
32475
cristy3ed852e2009-09-05 21:47:34 +000032476
32477
32478
32479# Substitute compiler name to build/link PerlMagick
32480#
32481
32482
32483#
32484# Configure install Paths
32485#
cristy7def36a2011-10-28 19:04:41 +000032486
cristy2a11bef2011-10-28 18:33:11 +000032487# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032488INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032489INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32490DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032491case "${build_os}" in
32492 mingw* )
32493 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32494 ;;
32495esac
32496
32497cat >>confdefs.h <<_ACEOF
32498#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32499_ACEOF
32500
32501
cristy3ed852e2009-09-05 21:47:34 +000032502
cristye52f12f2012-12-31 15:32:36 +000032503# Path to ImageMagick header files (arch part)
32504INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32505DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32506case "${build_os}" in
32507 mingw* )
32508 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32509 ;;
32510esac
32511
32512cat >>confdefs.h <<_ACEOF
32513#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32514_ACEOF
32515
32516
32517
cristy3ed852e2009-09-05 21:47:34 +000032518# Subdirectory under lib to place ImageMagick lib files
32519LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32520
32521cat >>confdefs.h <<_ACEOF
32522#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32523_ACEOF
32524
32525
32526# Path to ImageMagick bin directory
32527EXECUTABLE_PATH="${BIN_DIR}"
32528DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32529case "${build_os}" in
32530 mingw* )
32531 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32532 ;;
32533esac
32534
32535cat >>confdefs.h <<_ACEOF
32536#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32537_ACEOF
32538
32539
32540
32541# Path to ImageMagick lib
32542LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32543DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32544case "${build_os}" in
32545 mingw* )
32546 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32547 ;;
32548esac
32549
32550cat >>confdefs.h <<_ACEOF
32551#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32552_ACEOF
32553
32554
32555
cristy3ed852e2009-09-05 21:47:34 +000032556#
cristy8d0ff762013-03-10 20:33:28 +000032557# path to local binaries
32558if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32559 LIB_BIN_BASEDIRNAME="bin"
32560fi
32561
32562cat >>confdefs.h <<_ACEOF
32563#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32564_ACEOF
32565
32566
32567
32568if test "x$LIB_BIN_DIR" = "x"; then
32569 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32570fi
32571
32572
32573LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32574
32575LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32576
32577
32578#
cristy01ff9f32012-12-01 18:15:29 +000032579# path to modules lib
32580if test "x$MODULES_BASEDIRNAME" = "x"; then
32581 MODULES_BASEDIRNAME="modules"
32582fi
cristy3ed852e2009-09-05 21:47:34 +000032583
32584cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032585#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032586_ACEOF
32587
cristy01ff9f32012-12-01 18:15:29 +000032588
32589
32590if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032591 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32592else
cristy3ed852e2009-09-05 21:47:34 +000032593
32594cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032595#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032596_ACEOF
32597
cristycf4a3c22012-12-02 21:47:25 +000032598fi
cristy01ff9f32012-12-01 18:15:29 +000032599
32600
cristy371d4812012-12-01 19:48:10 +000032601MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032602
32603MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32604
32605
32606#
32607# path to coders lib
32608if test "x$CODER_DIRNAME" = "x"; then
32609 CODER_DIRNAME="coders"
32610fi
32611
32612cat >>confdefs.h <<_ACEOF
32613#define CODER_DIRNAME "$CODER_DIRNAME"
32614_ACEOF
32615
32616
32617
cristy371d4812012-12-01 19:48:10 +000032618CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032619CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032620
32621
32622#
32623# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032624#
32625# path to coders lib
32626if test "x$FILTER_DIRNAME" = "x"; then
32627 FILTER_DIRNAME="filters"
32628fi
cristy3ed852e2009-09-05 21:47:34 +000032629
32630cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032631#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032632_ACEOF
32633
cristy3ed852e2009-09-05 21:47:34 +000032634
cristy3ed852e2009-09-05 21:47:34 +000032635
cristy371d4812012-12-01 19:48:10 +000032636FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032637FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032638
32639
32640#
32641# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032642DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032643DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32644DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032645case "${build_os}" in
32646 mingw* )
32647 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32648 ;;
32649esac
32650
32651cat >>confdefs.h <<_ACEOF
32652#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32653_ACEOF
32654
32655
32656
cristy2a11bef2011-10-28 18:33:11 +000032657# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032658CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032659
32660cat >>confdefs.h <<_ACEOF
32661#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32662_ACEOF
32663
cristy7def36a2011-10-28 19:04:41 +000032664CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032665DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32666case "${build_os}" in
32667 mingw* )
32668 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32669 ;;
32670esac
32671
32672cat >>confdefs.h <<_ACEOF
32673#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32674_ACEOF
32675
32676
32677
cristy2a11bef2011-10-28 18:33:11 +000032678# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032679SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032680
32681cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032682#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032683_ACEOF
32684
cristy670aa3c2011-11-03 00:54:00 +000032685SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032686DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032687case "${build_os}" in
32688 mingw* )
cristy4f820712011-04-01 12:35:43 +000032689 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032690 ;;
32691esac
32692
32693cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032694#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032695_ACEOF
32696
32697
32698
cristy54378032012-12-04 15:52:20 +000032699#
32700# Subdirectory to place architecture-dependent configuration files.
32701if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32702 SHAREARCH_BASEDIRNAME="config"
32703fi
cristy670aa3c2011-11-03 00:54:00 +000032704
32705cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032706#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032707_ACEOF
32708
cristy54378032012-12-04 15:52:20 +000032709
32710
32711if test "x$SHAREARCH_DIRNAME" = "x"; then
32712 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32713else
cristy670aa3c2011-11-03 00:54:00 +000032714
32715cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032716#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032717_ACEOF
32718
cristy54378032012-12-04 15:52:20 +000032719fi
32720
32721
32722SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32723
32724SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032725
32726
cristy3ed852e2009-09-05 21:47:34 +000032727#
32728# program_transform_name is formed for use in a Makefile, so create a
32729# modified version for use in a shell script.
32730configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32731
32732# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32734$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032736$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32738$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032739AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032740BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032741BZIPDelegateDefault='bzip2'
32742BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032743CatDelegateDefault='cat'
32744DNGDecodeDelegateDefault='ufraw-batch'
32745GVCDecodeDelegateDefault='dot'
32746DVIDecodeDelegateDefault='dvips'
32747EchoDelegateDefault='echo'
32748EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032749ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32750DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32751MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32752GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032753HPGLDecodeDelegateDefault='hp2xx'
32754HTMLDecodeDelegateDefault='html2ps'
32755ILBMDecodeDelegateDefault='ilbmtoppm'
32756ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032757JXRDecodeDelegateDefault='JxrDecApp'
32758JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032759LPDelegateDefault='lp'
32760LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032761LaunchDelegateDefault='gimp'
32762MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032763MPEGDecodeDelegateDefault='avconv'
32764MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032765MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032766MVDelegateDefault='mv'
32767PCLDelegateDefault='pcl6'
32768PGPDecodeDelegateDefault='pgpv'
32769POVDelegateDefault='povray'
32770if test "$native_win32_build" = 'yes'; then
32771 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032772elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032773 PSDelegateDefault='gsc'
32774else
32775 PSDelegateDefault='gs'
32776fi
32777RLEEncodeDelegateDefault='rawtorle'
32778RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032779RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032780SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032781SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032782TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032783UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032784WebPDecodeDelegateDefault='dwebp'
32785WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032786WMFDecodeDelegateDefault='wmf2eps'
32787WWWDecodeDelegateDefault='curl'
32788XPSDelegateDefault='gxps'
32789ZipDelegateDefault='gzip'
32790
32791# Search for delegates
32792# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32793set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032795$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032796if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032797 $as_echo_n "(cached) " >&6
32798else
32799 case $AutotraceDecodeDelegate in
32800 [\\/]* | ?:[\\/]*)
32801 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32802 ;;
32803 *)
32804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32805for as_dir in $PATH
32806do
32807 IFS=$as_save_IFS
32808 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032809 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032811 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032813 break 2
32814 fi
32815done
cristy8b350f62009-11-15 23:12:43 +000032816 done
cristy3ed852e2009-09-05 21:47:34 +000032817IFS=$as_save_IFS
32818
32819 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32820 ;;
32821esac
32822fi
32823AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32824if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032826$as_echo "$AutotraceDecodeDelegate" >&6; }
32827else
cristy8b350f62009-11-15 23:12:43 +000032828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032829$as_echo "no" >&6; }
32830fi
32831
32832
cristy3ed852e2009-09-05 21:47:34 +000032833# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32834set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032836$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032837if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032838 $as_echo_n "(cached) " >&6
32839else
32840 case $BlenderDecodeDelegate in
32841 [\\/]* | ?:[\\/]*)
32842 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32843 ;;
32844 *)
32845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32846for as_dir in $PATH
32847do
32848 IFS=$as_save_IFS
32849 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032850 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032852 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032854 break 2
32855 fi
32856done
cristy8b350f62009-11-15 23:12:43 +000032857 done
cristy3ed852e2009-09-05 21:47:34 +000032858IFS=$as_save_IFS
32859
32860 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32861 ;;
32862esac
32863fi
32864BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32865if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032867$as_echo "$BlenderDecodeDelegate" >&6; }
32868else
cristy8b350f62009-11-15 23:12:43 +000032869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032870$as_echo "no" >&6; }
32871fi
32872
32873
32874# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32875set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032877$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032878if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032879 $as_echo_n "(cached) " >&6
32880else
32881 case $BZIPDelegate in
32882 [\\/]* | ?:[\\/]*)
32883 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32884 ;;
32885 *)
32886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32887for as_dir in $PATH
32888do
32889 IFS=$as_save_IFS
32890 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032891 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032893 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032895 break 2
32896 fi
32897done
cristy8b350f62009-11-15 23:12:43 +000032898 done
cristy3ed852e2009-09-05 21:47:34 +000032899IFS=$as_save_IFS
32900
32901 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32902 ;;
32903esac
32904fi
32905BZIPDelegate=$ac_cv_path_BZIPDelegate
32906if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032908$as_echo "$BZIPDelegate" >&6; }
32909else
cristy8b350f62009-11-15 23:12:43 +000032910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032911$as_echo "no" >&6; }
32912fi
32913
32914
cristyc59f0e72012-08-27 12:59:33 +000032915for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32916do
32917 # Extract the first word of "$ac_prog", so it can be a program name with args.
32918set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032920$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032921if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032922 $as_echo_n "(cached) " >&6
32923else
32924 case $BrowseDelegate in
32925 [\\/]* | ?:[\\/]*)
32926 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32927 ;;
32928 *)
32929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32930for as_dir in $PATH
32931do
32932 IFS=$as_save_IFS
32933 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032934 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032936 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032938 break 2
32939 fi
32940done
cristy8b350f62009-11-15 23:12:43 +000032941 done
cristy3ed852e2009-09-05 21:47:34 +000032942IFS=$as_save_IFS
32943
cristy3ed852e2009-09-05 21:47:34 +000032944 ;;
32945esac
32946fi
32947BrowseDelegate=$ac_cv_path_BrowseDelegate
32948if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032950$as_echo "$BrowseDelegate" >&6; }
32951else
cristy8b350f62009-11-15 23:12:43 +000032952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032953$as_echo "no" >&6; }
32954fi
32955
32956
cristyc59f0e72012-08-27 12:59:33 +000032957 test -n "$BrowseDelegate" && break
32958done
32959test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32960
cristy3ed852e2009-09-05 21:47:34 +000032961# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32962set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032964$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032965if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032966 $as_echo_n "(cached) " >&6
32967else
32968 case $CatDelegate in
32969 [\\/]* | ?:[\\/]*)
32970 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32971 ;;
32972 *)
32973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32974for as_dir in $PATH
32975do
32976 IFS=$as_save_IFS
32977 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032978 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032980 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032982 break 2
32983 fi
32984done
cristy8b350f62009-11-15 23:12:43 +000032985 done
cristy3ed852e2009-09-05 21:47:34 +000032986IFS=$as_save_IFS
32987
32988 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32989 ;;
32990esac
32991fi
32992CatDelegate=$ac_cv_path_CatDelegate
32993if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032995$as_echo "$CatDelegate" >&6; }
32996else
cristy8b350f62009-11-15 23:12:43 +000032997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032998$as_echo "no" >&6; }
32999fi
33000
33001
33002# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33003set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033005$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033006if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033007 $as_echo_n "(cached) " >&6
33008else
33009 case $DNGDecodeDelegate in
33010 [\\/]* | ?:[\\/]*)
33011 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33012 ;;
33013 *)
33014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33015for as_dir in $PATH
33016do
33017 IFS=$as_save_IFS
33018 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033021 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033023 break 2
33024 fi
33025done
cristy8b350f62009-11-15 23:12:43 +000033026 done
cristy3ed852e2009-09-05 21:47:34 +000033027IFS=$as_save_IFS
33028
33029 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33030 ;;
33031esac
33032fi
33033DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33034if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033036$as_echo "$DNGDecodeDelegate" >&6; }
33037else
cristy8b350f62009-11-15 23:12:43 +000033038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033039$as_echo "no" >&6; }
33040fi
33041
33042
33043# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33044set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033046$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033047if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033048 $as_echo_n "(cached) " >&6
33049else
33050 case $GVCDecodeDelegate in
33051 [\\/]* | ?:[\\/]*)
33052 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33053 ;;
33054 *)
33055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33056for as_dir in $PATH
33057do
33058 IFS=$as_save_IFS
33059 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033060 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033062 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033064 break 2
33065 fi
33066done
cristy8b350f62009-11-15 23:12:43 +000033067 done
cristy3ed852e2009-09-05 21:47:34 +000033068IFS=$as_save_IFS
33069
33070 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33071 ;;
33072esac
33073fi
33074GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33075if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033077$as_echo "$GVCDecodeDelegate" >&6; }
33078else
cristy8b350f62009-11-15 23:12:43 +000033079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033080$as_echo "no" >&6; }
33081fi
33082
33083
33084# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33085set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033088if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033089 $as_echo_n "(cached) " >&6
33090else
33091 case $DVIDecodeDelegate in
33092 [\\/]* | ?:[\\/]*)
33093 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33094 ;;
33095 *)
33096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33097for as_dir in $PATH
33098do
33099 IFS=$as_save_IFS
33100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033101 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033103 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033105 break 2
33106 fi
33107done
cristy8b350f62009-11-15 23:12:43 +000033108 done
cristy3ed852e2009-09-05 21:47:34 +000033109IFS=$as_save_IFS
33110
33111 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33112 ;;
33113esac
33114fi
33115DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33116if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033118$as_echo "$DVIDecodeDelegate" >&6; }
33119else
cristy8b350f62009-11-15 23:12:43 +000033120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033121$as_echo "no" >&6; }
33122fi
33123
33124
33125# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33126set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033128$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033129if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033130 $as_echo_n "(cached) " >&6
33131else
33132 case $EchoDelegate in
33133 [\\/]* | ?:[\\/]*)
33134 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33135 ;;
33136 *)
33137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33138for as_dir in $PATH
33139do
33140 IFS=$as_save_IFS
33141 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033142 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033144 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033146 break 2
33147 fi
33148done
cristy8b350f62009-11-15 23:12:43 +000033149 done
cristy3ed852e2009-09-05 21:47:34 +000033150IFS=$as_save_IFS
33151
33152 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33153 ;;
33154esac
33155fi
33156EchoDelegate=$ac_cv_path_EchoDelegate
33157if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033159$as_echo "$EchoDelegate" >&6; }
33160else
cristy8b350f62009-11-15 23:12:43 +000033161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033162$as_echo "no" >&6; }
33163fi
33164
33165
33166# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33167set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033169$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033170if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033171 $as_echo_n "(cached) " >&6
33172else
33173 case $EditorDelegate in
33174 [\\/]* | ?:[\\/]*)
33175 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33176 ;;
33177 *)
33178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33179for as_dir in $PATH
33180do
33181 IFS=$as_save_IFS
33182 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033183 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033185 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033187 break 2
33188 fi
33189done
cristy8b350f62009-11-15 23:12:43 +000033190 done
cristy3ed852e2009-09-05 21:47:34 +000033191IFS=$as_save_IFS
33192
33193 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33194 ;;
33195esac
33196fi
33197EditorDelegate=$ac_cv_path_EditorDelegate
33198if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033200$as_echo "$EditorDelegate" >&6; }
33201else
cristy8b350f62009-11-15 23:12:43 +000033202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033203$as_echo "no" >&6; }
33204fi
33205
33206
cristy3ed852e2009-09-05 21:47:34 +000033207# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33208set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033210$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033211if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033212 $as_echo_n "(cached) " >&6
33213else
33214 case $ConvertDelegate in
33215 [\\/]* | ?:[\\/]*)
33216 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33217 ;;
33218 *)
33219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33220for as_dir in $PATH
33221do
33222 IFS=$as_save_IFS
33223 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033224 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033226 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033228 break 2
33229 fi
33230done
cristy8b350f62009-11-15 23:12:43 +000033231 done
cristy3ed852e2009-09-05 21:47:34 +000033232IFS=$as_save_IFS
33233
33234 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33235 ;;
33236esac
33237fi
33238ConvertDelegate=$ac_cv_path_ConvertDelegate
33239if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033241$as_echo "$ConvertDelegate" >&6; }
33242else
cristy8b350f62009-11-15 23:12:43 +000033243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033244$as_echo "no" >&6; }
33245fi
33246
33247
33248# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33249set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033251$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033252if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033253 $as_echo_n "(cached) " >&6
33254else
33255 case $DisplayDelegate in
33256 [\\/]* | ?:[\\/]*)
33257 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33258 ;;
33259 *)
33260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33261for as_dir in $PATH
33262do
33263 IFS=$as_save_IFS
33264 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033265 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033267 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033269 break 2
33270 fi
33271done
cristy8b350f62009-11-15 23:12:43 +000033272 done
cristy3ed852e2009-09-05 21:47:34 +000033273IFS=$as_save_IFS
33274
33275 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33276 ;;
33277esac
33278fi
33279DisplayDelegate=$ac_cv_path_DisplayDelegate
33280if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033282$as_echo "$DisplayDelegate" >&6; }
33283else
cristy8b350f62009-11-15 23:12:43 +000033284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033285$as_echo "no" >&6; }
33286fi
33287
33288
33289# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33290set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033292$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033293if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033294 $as_echo_n "(cached) " >&6
33295else
33296 case $MogrifyDelegate in
33297 [\\/]* | ?:[\\/]*)
33298 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33299 ;;
33300 *)
33301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33302for as_dir in $PATH
33303do
33304 IFS=$as_save_IFS
33305 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033306 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033308 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033310 break 2
33311 fi
33312done
cristy8b350f62009-11-15 23:12:43 +000033313 done
cristy3ed852e2009-09-05 21:47:34 +000033314IFS=$as_save_IFS
33315
33316 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33317 ;;
33318esac
33319fi
33320MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33321if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033323$as_echo "$MogrifyDelegate" >&6; }
33324else
cristy8b350f62009-11-15 23:12:43 +000033325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033326$as_echo "no" >&6; }
33327fi
33328
33329
33330# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33331set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033333$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033334if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033335 $as_echo_n "(cached) " >&6
33336else
33337 case $GnuplotDecodeDelegate in
33338 [\\/]* | ?:[\\/]*)
33339 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33340 ;;
33341 *)
33342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33343for as_dir in $PATH
33344do
33345 IFS=$as_save_IFS
33346 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033349 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033351 break 2
33352 fi
33353done
cristy8b350f62009-11-15 23:12:43 +000033354 done
cristy3ed852e2009-09-05 21:47:34 +000033355IFS=$as_save_IFS
33356
33357 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33358 ;;
33359esac
33360fi
33361GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33362if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033364$as_echo "$GnuplotDecodeDelegate" >&6; }
33365else
cristy8b350f62009-11-15 23:12:43 +000033366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033367$as_echo "no" >&6; }
33368fi
33369
33370
cristy3ed852e2009-09-05 21:47:34 +000033371# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33372set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033374$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033375if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033376 $as_echo_n "(cached) " >&6
33377else
33378 case $HPGLDecodeDelegate in
33379 [\\/]* | ?:[\\/]*)
33380 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33381 ;;
33382 *)
33383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33384for as_dir in $PATH
33385do
33386 IFS=$as_save_IFS
33387 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033390 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033392 break 2
33393 fi
33394done
cristy8b350f62009-11-15 23:12:43 +000033395 done
cristy3ed852e2009-09-05 21:47:34 +000033396IFS=$as_save_IFS
33397
33398 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33399 ;;
33400esac
33401fi
33402HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33403if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033405$as_echo "$HPGLDecodeDelegate" >&6; }
33406else
cristy8b350f62009-11-15 23:12:43 +000033407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033408$as_echo "no" >&6; }
33409fi
33410
33411
33412# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33413set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033415$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033416if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033417 $as_echo_n "(cached) " >&6
33418else
33419 case $HTMLDecodeDelegate in
33420 [\\/]* | ?:[\\/]*)
33421 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33422 ;;
33423 *)
33424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33425for as_dir in $PATH
33426do
33427 IFS=$as_save_IFS
33428 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033431 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033433 break 2
33434 fi
33435done
cristy8b350f62009-11-15 23:12:43 +000033436 done
cristy3ed852e2009-09-05 21:47:34 +000033437IFS=$as_save_IFS
33438
33439 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33440 ;;
33441esac
33442fi
33443HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33444if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033446$as_echo "$HTMLDecodeDelegate" >&6; }
33447else
cristy8b350f62009-11-15 23:12:43 +000033448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033449$as_echo "no" >&6; }
33450fi
33451
33452
33453# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33454set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033457if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033458 $as_echo_n "(cached) " >&6
33459else
33460 case $ILBMDecodeDelegate in
33461 [\\/]* | ?:[\\/]*)
33462 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33463 ;;
33464 *)
33465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33466for as_dir in $PATH
33467do
33468 IFS=$as_save_IFS
33469 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033470 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033472 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033474 break 2
33475 fi
33476done
cristy8b350f62009-11-15 23:12:43 +000033477 done
cristy3ed852e2009-09-05 21:47:34 +000033478IFS=$as_save_IFS
33479
33480 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33481 ;;
33482esac
33483fi
33484ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33485if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033487$as_echo "$ILBMDecodeDelegate" >&6; }
33488else
cristy8b350f62009-11-15 23:12:43 +000033489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033490$as_echo "no" >&6; }
33491fi
33492
33493
33494# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33495set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033498if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033499 $as_echo_n "(cached) " >&6
33500else
33501 case $ILBMEncodeDelegate in
33502 [\\/]* | ?:[\\/]*)
33503 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33504 ;;
33505 *)
33506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33507for as_dir in $PATH
33508do
33509 IFS=$as_save_IFS
33510 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033511 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033513 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033515 break 2
33516 fi
33517done
cristy8b350f62009-11-15 23:12:43 +000033518 done
cristy3ed852e2009-09-05 21:47:34 +000033519IFS=$as_save_IFS
33520
33521 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33522 ;;
33523esac
33524fi
33525ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33526if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033528$as_echo "$ILBMEncodeDelegate" >&6; }
33529else
cristy8b350f62009-11-15 23:12:43 +000033530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033531$as_echo "no" >&6; }
33532fi
33533
33534
cristy71f53d52013-04-27 13:33:59 +000033535# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33536set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33538$as_echo_n "checking for $ac_word... " >&6; }
33539if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33540 $as_echo_n "(cached) " >&6
33541else
33542 case $JXRDecodeDelegate in
33543 [\\/]* | ?:[\\/]*)
33544 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33545 ;;
33546 *)
33547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33548for as_dir in $PATH
33549do
33550 IFS=$as_save_IFS
33551 test -z "$as_dir" && as_dir=.
33552 for ac_exec_ext in '' $ac_executable_extensions; do
33553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33554 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33556 break 2
33557 fi
33558done
33559 done
33560IFS=$as_save_IFS
33561
33562 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33563 ;;
33564esac
33565fi
33566JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33567if test -n "$JXRDecodeDelegate"; then
33568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33569$as_echo "$JXRDecodeDelegate" >&6; }
33570else
33571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33572$as_echo "no" >&6; }
33573fi
33574
33575
33576# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33577set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33579$as_echo_n "checking for $ac_word... " >&6; }
33580if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33581 $as_echo_n "(cached) " >&6
33582else
33583 case $JXREncodeDelegate in
33584 [\\/]* | ?:[\\/]*)
33585 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33586 ;;
33587 *)
33588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33589for as_dir in $PATH
33590do
33591 IFS=$as_save_IFS
33592 test -z "$as_dir" && as_dir=.
33593 for ac_exec_ext in '' $ac_executable_extensions; do
33594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33595 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33597 break 2
33598 fi
33599done
33600 done
33601IFS=$as_save_IFS
33602
33603 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33604 ;;
33605esac
33606fi
33607JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33608if test -n "$JXREncodeDelegate"; then
33609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33610$as_echo "$JXREncodeDelegate" >&6; }
33611else
33612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33613$as_echo "no" >&6; }
33614fi
33615
33616
cristy3ed852e2009-09-05 21:47:34 +000033617# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33618set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033620$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033621if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033622 $as_echo_n "(cached) " >&6
33623else
33624 case $LPDelegate in
33625 [\\/]* | ?:[\\/]*)
33626 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33627 ;;
33628 *)
33629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33630for as_dir in $PATH
33631do
33632 IFS=$as_save_IFS
33633 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033634 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033636 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033638 break 2
33639 fi
33640done
cristy8b350f62009-11-15 23:12:43 +000033641 done
cristy3ed852e2009-09-05 21:47:34 +000033642IFS=$as_save_IFS
33643
33644 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33645 ;;
33646esac
33647fi
33648LPDelegate=$ac_cv_path_LPDelegate
33649if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033651$as_echo "$LPDelegate" >&6; }
33652else
cristy8b350f62009-11-15 23:12:43 +000033653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033654$as_echo "no" >&6; }
33655fi
33656
33657
33658# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33659set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033661$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033662if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033663 $as_echo_n "(cached) " >&6
33664else
33665 case $LPRDelegate in
33666 [\\/]* | ?:[\\/]*)
33667 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33668 ;;
33669 *)
33670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33671for as_dir in $PATH
33672do
33673 IFS=$as_save_IFS
33674 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033675 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033677 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033679 break 2
33680 fi
33681done
cristy8b350f62009-11-15 23:12:43 +000033682 done
cristy3ed852e2009-09-05 21:47:34 +000033683IFS=$as_save_IFS
33684
33685 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33686 ;;
33687esac
33688fi
33689LPRDelegate=$ac_cv_path_LPRDelegate
33690if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033692$as_echo "$LPRDelegate" >&6; }
33693else
cristy8b350f62009-11-15 23:12:43 +000033694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033695$as_echo "no" >&6; }
33696fi
33697
33698
cristy3ed852e2009-09-05 21:47:34 +000033699# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33700set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033702$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033703if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033704 $as_echo_n "(cached) " >&6
33705else
33706 case $LaunchDelegate in
33707 [\\/]* | ?:[\\/]*)
33708 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33709 ;;
33710 *)
33711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33712for as_dir in $PATH
33713do
33714 IFS=$as_save_IFS
33715 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033716 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033718 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033720 break 2
33721 fi
33722done
cristy8b350f62009-11-15 23:12:43 +000033723 done
cristy3ed852e2009-09-05 21:47:34 +000033724IFS=$as_save_IFS
33725
33726 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33727 ;;
33728esac
33729fi
33730LaunchDelegate=$ac_cv_path_LaunchDelegate
33731if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033733$as_echo "$LaunchDelegate" >&6; }
33734else
cristy8b350f62009-11-15 23:12:43 +000033735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033736$as_echo "no" >&6; }
33737fi
33738
33739
33740# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33741set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033743$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033744if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033745 $as_echo_n "(cached) " >&6
33746else
33747 case $MANDelegate in
33748 [\\/]* | ?:[\\/]*)
33749 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33750 ;;
33751 *)
33752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33753for as_dir in $PATH
33754do
33755 IFS=$as_save_IFS
33756 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033759 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033761 break 2
33762 fi
33763done
cristy8b350f62009-11-15 23:12:43 +000033764 done
cristy3ed852e2009-09-05 21:47:34 +000033765IFS=$as_save_IFS
33766
33767 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33768 ;;
33769esac
33770fi
33771MANDelegate=$ac_cv_path_MANDelegate
33772if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033774$as_echo "$MANDelegate" >&6; }
33775else
cristy8b350f62009-11-15 23:12:43 +000033776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033777$as_echo "no" >&6; }
33778fi
33779
33780
33781# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33782set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033785if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033786 $as_echo_n "(cached) " >&6
33787else
33788 case $MPEGDecodeDelegate in
33789 [\\/]* | ?:[\\/]*)
33790 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33791 ;;
33792 *)
33793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33794for as_dir in $PATH
33795do
33796 IFS=$as_save_IFS
33797 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033800 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033802 break 2
33803 fi
33804done
cristy8b350f62009-11-15 23:12:43 +000033805 done
cristy3ed852e2009-09-05 21:47:34 +000033806IFS=$as_save_IFS
33807
33808 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33809 ;;
33810esac
33811fi
33812MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33813if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033815$as_echo "$MPEGDecodeDelegate" >&6; }
33816else
cristy8b350f62009-11-15 23:12:43 +000033817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033818$as_echo "no" >&6; }
33819fi
33820
33821
cristy81ab5af2013-10-06 18:28:39 +000033822if test "$MPEGDecodeDelegate" == "$MPEGDecodeDelegateDefault" ; then
33823 MPEGDecodeDelegateDefault='ffmpeg'
33824 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33825set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33827$as_echo_n "checking for $ac_word... " >&6; }
33828if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33829 $as_echo_n "(cached) " >&6
33830else
33831 case $MPEGDecodeDelegate in
33832 [\\/]* | ?:[\\/]*)
33833 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33834 ;;
33835 *)
33836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33837for as_dir in $PATH
33838do
33839 IFS=$as_save_IFS
33840 test -z "$as_dir" && as_dir=.
33841 for ac_exec_ext in '' $ac_executable_extensions; do
33842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33843 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33845 break 2
33846 fi
33847done
33848 done
33849IFS=$as_save_IFS
33850
33851 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33852 ;;
33853esac
33854fi
33855MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33856if test -n "$MPEGDecodeDelegate"; then
33857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33858$as_echo "$MPEGDecodeDelegate" >&6; }
33859else
33860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33861$as_echo "no" >&6; }
33862fi
33863
33864
33865fi;
cristy3ed852e2009-09-05 21:47:34 +000033866# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33867set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033869$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033870if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033871 $as_echo_n "(cached) " >&6
33872else
33873 case $MPEGEncodeDelegate in
33874 [\\/]* | ?:[\\/]*)
33875 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33876 ;;
33877 *)
33878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33879for as_dir in $PATH
33880do
33881 IFS=$as_save_IFS
33882 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033883 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033885 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033887 break 2
33888 fi
33889done
cristy8b350f62009-11-15 23:12:43 +000033890 done
cristy3ed852e2009-09-05 21:47:34 +000033891IFS=$as_save_IFS
33892
33893 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33894 ;;
33895esac
33896fi
33897MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33898if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033900$as_echo "$MPEGEncodeDelegate" >&6; }
33901else
cristy8b350f62009-11-15 23:12:43 +000033902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033903$as_echo "no" >&6; }
33904fi
33905
33906
cristy81ab5af2013-10-06 18:28:39 +000033907if test "$MPEGEncodeDelegate" == "$MPEGEncodeDelegateDefault" ; then
33908 MPEGEncodeDelegateDefault='ffmpeg'
33909 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33910set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33912$as_echo_n "checking for $ac_word... " >&6; }
33913if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33914 $as_echo_n "(cached) " >&6
33915else
33916 case $MPEGEncodeDelegate in
33917 [\\/]* | ?:[\\/]*)
33918 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33919 ;;
33920 *)
33921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33922for as_dir in $PATH
33923do
33924 IFS=$as_save_IFS
33925 test -z "$as_dir" && as_dir=.
33926 for ac_exec_ext in '' $ac_executable_extensions; do
33927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33928 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33930 break 2
33931 fi
33932done
33933 done
33934IFS=$as_save_IFS
33935
33936 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33937 ;;
33938esac
33939fi
33940MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33941if test -n "$MPEGEncodeDelegate"; then
33942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33943$as_echo "$MPEGEncodeDelegate" >&6; }
33944else
33945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33946$as_echo "no" >&6; }
33947fi
33948
33949
33950fi;
cristy935c86e2010-06-05 23:50:07 +000033951# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33952set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33954$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033955if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033956 $as_echo_n "(cached) " >&6
33957else
33958 case $MrSIDDecodeDelegate in
33959 [\\/]* | ?:[\\/]*)
33960 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33961 ;;
33962 *)
33963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33964for as_dir in $PATH
33965do
33966 IFS=$as_save_IFS
33967 test -z "$as_dir" && as_dir=.
33968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033970 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33972 break 2
33973 fi
33974done
33975 done
33976IFS=$as_save_IFS
33977
33978 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33979 ;;
33980esac
33981fi
33982MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33983if test -n "$MrSIDDecodeDelegate"; then
33984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33985$as_echo "$MrSIDDecodeDelegate" >&6; }
33986else
33987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33988$as_echo "no" >&6; }
33989fi
33990
33991
cristy3ed852e2009-09-05 21:47:34 +000033992# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33993set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033995$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033996if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033997 $as_echo_n "(cached) " >&6
33998else
33999 case $MVDelegate in
34000 [\\/]* | ?:[\\/]*)
34001 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34002 ;;
34003 *)
34004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34005for as_dir in $PATH
34006do
34007 IFS=$as_save_IFS
34008 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034009 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034011 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034013 break 2
34014 fi
34015done
cristy8b350f62009-11-15 23:12:43 +000034016 done
cristy3ed852e2009-09-05 21:47:34 +000034017IFS=$as_save_IFS
34018
34019 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34020 ;;
34021esac
34022fi
34023MVDelegate=$ac_cv_path_MVDelegate
34024if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034026$as_echo "$MVDelegate" >&6; }
34027else
cristy8b350f62009-11-15 23:12:43 +000034028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034029$as_echo "no" >&6; }
34030fi
34031
34032
34033# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34034set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034036$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034037if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034038 $as_echo_n "(cached) " >&6
34039else
34040 case $PCLDelegate in
34041 [\\/]* | ?:[\\/]*)
34042 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34043 ;;
34044 *)
34045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34046for as_dir in $PATH
34047do
34048 IFS=$as_save_IFS
34049 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034050 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034052 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034054 break 2
34055 fi
34056done
cristy8b350f62009-11-15 23:12:43 +000034057 done
cristy3ed852e2009-09-05 21:47:34 +000034058IFS=$as_save_IFS
34059
34060 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34061 ;;
34062esac
34063fi
34064PCLDelegate=$ac_cv_path_PCLDelegate
34065if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034067$as_echo "$PCLDelegate" >&6; }
34068else
cristy8b350f62009-11-15 23:12:43 +000034069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034070$as_echo "no" >&6; }
34071fi
34072
34073
34074# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34075set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034077$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034078if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034079 $as_echo_n "(cached) " >&6
34080else
34081 case $PGPDecodeDelegate in
34082 [\\/]* | ?:[\\/]*)
34083 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34084 ;;
34085 *)
34086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34087for as_dir in $PATH
34088do
34089 IFS=$as_save_IFS
34090 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034091 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034093 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034095 break 2
34096 fi
34097done
cristy8b350f62009-11-15 23:12:43 +000034098 done
cristy3ed852e2009-09-05 21:47:34 +000034099IFS=$as_save_IFS
34100
34101 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34102 ;;
34103esac
34104fi
34105PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34106if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034108$as_echo "$PGPDecodeDelegate" >&6; }
34109else
cristy8b350f62009-11-15 23:12:43 +000034110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034111$as_echo "no" >&6; }
34112fi
34113
34114
34115# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34116set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034118$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034119if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034120 $as_echo_n "(cached) " >&6
34121else
34122 case $POVDelegate in
34123 [\\/]* | ?:[\\/]*)
34124 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34125 ;;
34126 *)
34127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34128for as_dir in $PATH
34129do
34130 IFS=$as_save_IFS
34131 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034132 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034134 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034136 break 2
34137 fi
34138done
cristy8b350f62009-11-15 23:12:43 +000034139 done
cristy3ed852e2009-09-05 21:47:34 +000034140IFS=$as_save_IFS
34141
34142 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34143 ;;
34144esac
34145fi
34146POVDelegate=$ac_cv_path_POVDelegate
34147if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034149$as_echo "$POVDelegate" >&6; }
34150else
cristy8b350f62009-11-15 23:12:43 +000034151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034152$as_echo "no" >&6; }
34153fi
34154
34155
34156for ac_prog in gsx gsc "$PSDelegateDefault"
34157do
34158 # Extract the first word of "$ac_prog", so it can be a program name with args.
34159set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034161$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034162if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034163 $as_echo_n "(cached) " >&6
34164else
34165 case $PSDelegate in
34166 [\\/]* | ?:[\\/]*)
34167 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34168 ;;
34169 *)
34170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34171for as_dir in $PATH
34172do
34173 IFS=$as_save_IFS
34174 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034175 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034177 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034179 break 2
34180 fi
34181done
cristy8b350f62009-11-15 23:12:43 +000034182 done
cristy3ed852e2009-09-05 21:47:34 +000034183IFS=$as_save_IFS
34184
34185 ;;
34186esac
34187fi
34188PSDelegate=$ac_cv_path_PSDelegate
34189if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034191$as_echo "$PSDelegate" >&6; }
34192else
cristy8b350f62009-11-15 23:12:43 +000034193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034194$as_echo "no" >&6; }
34195fi
34196
34197
34198 test -n "$PSDelegate" && break
34199done
34200test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34201
34202# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34203set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034205$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034206if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034207 $as_echo_n "(cached) " >&6
34208else
34209 case $RLEEncodeDelegate in
34210 [\\/]* | ?:[\\/]*)
34211 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34212 ;;
34213 *)
34214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34215for as_dir in $PATH
34216do
34217 IFS=$as_save_IFS
34218 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034219 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034221 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034223 break 2
34224 fi
34225done
cristy8b350f62009-11-15 23:12:43 +000034226 done
cristy3ed852e2009-09-05 21:47:34 +000034227IFS=$as_save_IFS
34228
34229 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34230 ;;
34231esac
34232fi
34233RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34234if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034236$as_echo "$RLEEncodeDelegate" >&6; }
34237else
cristy8b350f62009-11-15 23:12:43 +000034238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034239$as_echo "no" >&6; }
34240fi
34241
34242
34243# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34244set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034246$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034247if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034248 $as_echo_n "(cached) " >&6
34249else
34250 case $RMDelegate in
34251 [\\/]* | ?:[\\/]*)
34252 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34253 ;;
34254 *)
34255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34256for as_dir in $PATH
34257do
34258 IFS=$as_save_IFS
34259 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034260 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034262 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034264 break 2
34265 fi
34266done
cristy8b350f62009-11-15 23:12:43 +000034267 done
cristy3ed852e2009-09-05 21:47:34 +000034268IFS=$as_save_IFS
34269
34270 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34271 ;;
34272esac
34273fi
34274RMDelegate=$ac_cv_path_RMDelegate
34275if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034277$as_echo "$RMDelegate" >&6; }
34278else
cristy8b350f62009-11-15 23:12:43 +000034279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034280$as_echo "no" >&6; }
34281fi
34282
34283
cristy4689cf02010-02-17 21:15:45 +000034284# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34285set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34287$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034288if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034289 $as_echo_n "(cached) " >&6
34290else
34291 case $RSVGDecodeDelegate in
34292 [\\/]* | ?:[\\/]*)
34293 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34294 ;;
34295 *)
34296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34297for as_dir in $PATH
34298do
34299 IFS=$as_save_IFS
34300 test -z "$as_dir" && as_dir=.
34301 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034303 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34305 break 2
34306 fi
34307done
34308 done
34309IFS=$as_save_IFS
34310
34311 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34312 ;;
34313esac
34314fi
34315RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34316if test -n "$RSVGDecodeDelegate"; then
34317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34318$as_echo "$RSVGDecodeDelegate" >&6; }
34319else
34320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34321$as_echo "no" >&6; }
34322fi
34323
34324
cristy3ed852e2009-09-05 21:47:34 +000034325# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34326set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034328$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034329if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034330 $as_echo_n "(cached) " >&6
34331else
34332 case $SCANDecodeDelegate in
34333 [\\/]* | ?:[\\/]*)
34334 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34335 ;;
34336 *)
34337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34338for as_dir in $PATH
34339do
34340 IFS=$as_save_IFS
34341 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034342 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034344 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034346 break 2
34347 fi
34348done
cristy8b350f62009-11-15 23:12:43 +000034349 done
cristy3ed852e2009-09-05 21:47:34 +000034350IFS=$as_save_IFS
34351
34352 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34353 ;;
34354esac
34355fi
34356SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34357if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034359$as_echo "$SCANDecodeDelegate" >&6; }
34360else
cristy8b350f62009-11-15 23:12:43 +000034361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034362$as_echo "no" >&6; }
34363fi
34364
34365
cristyec6934f2012-08-14 18:38:40 +000034366# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34367set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34369$as_echo_n "checking for $ac_word... " >&6; }
34370if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34371 $as_echo_n "(cached) " >&6
34372else
34373 case $SVGDecodeDelegate in
34374 [\\/]* | ?:[\\/]*)
34375 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34376 ;;
34377 *)
34378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34379for as_dir in $PATH
34380do
34381 IFS=$as_save_IFS
34382 test -z "$as_dir" && as_dir=.
34383 for ac_exec_ext in '' $ac_executable_extensions; do
34384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34385 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34387 break 2
34388 fi
34389done
34390 done
34391IFS=$as_save_IFS
34392
34393 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34394 ;;
34395esac
34396fi
34397SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34398if test -n "$SVGDecodeDelegate"; then
34399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34400$as_echo "$SVGDecodeDelegate" >&6; }
34401else
34402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34403$as_echo "no" >&6; }
34404fi
34405
34406
cristy3ed852e2009-09-05 21:47:34 +000034407# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34408set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034410$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034411if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034412 $as_echo_n "(cached) " >&6
34413else
34414 case $TXTDelegate in
34415 [\\/]* | ?:[\\/]*)
34416 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34417 ;;
34418 *)
34419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34420for as_dir in $PATH
34421do
34422 IFS=$as_save_IFS
34423 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034424 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034426 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034428 break 2
34429 fi
34430done
cristy8b350f62009-11-15 23:12:43 +000034431 done
cristy3ed852e2009-09-05 21:47:34 +000034432IFS=$as_save_IFS
34433
34434 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34435 ;;
34436esac
34437fi
34438TXTDelegate=$ac_cv_path_TXTDelegate
34439if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034441$as_echo "$TXTDelegate" >&6; }
34442else
cristy8b350f62009-11-15 23:12:43 +000034443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034444$as_echo "no" >&6; }
34445fi
34446
34447
cristy5ac9ac82010-07-29 13:24:24 +000034448# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34449set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34451$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034452if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034453 $as_echo_n "(cached) " >&6
34454else
34455 case $UniconvertorDelegate in
34456 [\\/]* | ?:[\\/]*)
34457 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34458 ;;
34459 *)
34460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34461for as_dir in $PATH
34462do
34463 IFS=$as_save_IFS
34464 test -z "$as_dir" && as_dir=.
34465 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034467 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34469 break 2
34470 fi
34471done
34472 done
34473IFS=$as_save_IFS
34474
34475 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34476 ;;
34477esac
34478fi
34479UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34480if test -n "$UniconvertorDelegate"; then
34481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34482$as_echo "$UniconvertorDelegate" >&6; }
34483else
34484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34485$as_echo "no" >&6; }
34486fi
34487
34488
cristy86e86092013-08-04 17:43:57 +000034489# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34490set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34492$as_echo_n "checking for $ac_word... " >&6; }
34493if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34494 $as_echo_n "(cached) " >&6
34495else
34496 case $WebPDecodeDelegate in
34497 [\\/]* | ?:[\\/]*)
34498 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34499 ;;
34500 *)
34501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34502for as_dir in $PATH
34503do
34504 IFS=$as_save_IFS
34505 test -z "$as_dir" && as_dir=.
34506 for ac_exec_ext in '' $ac_executable_extensions; do
34507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34508 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34510 break 2
34511 fi
34512done
34513 done
34514IFS=$as_save_IFS
34515
34516 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34517 ;;
34518esac
34519fi
34520WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34521if test -n "$WebPDecodeDelegate"; then
34522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34523$as_echo "$WebPDecodeDelegate" >&6; }
34524else
34525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34526$as_echo "no" >&6; }
34527fi
34528
34529
34530# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34531set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34533$as_echo_n "checking for $ac_word... " >&6; }
34534if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34535 $as_echo_n "(cached) " >&6
34536else
34537 case $WebPEncodeDelegate in
34538 [\\/]* | ?:[\\/]*)
34539 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34540 ;;
34541 *)
34542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34543for as_dir in $PATH
34544do
34545 IFS=$as_save_IFS
34546 test -z "$as_dir" && as_dir=.
34547 for ac_exec_ext in '' $ac_executable_extensions; do
34548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34549 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34551 break 2
34552 fi
34553done
34554 done
34555IFS=$as_save_IFS
34556
34557 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34558 ;;
34559esac
34560fi
34561WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34562if test -n "$WebPEncodeDelegate"; then
34563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34564$as_echo "$WebPEncodeDelegate" >&6; }
34565else
34566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34567$as_echo "no" >&6; }
34568fi
34569
34570
cristy3ed852e2009-09-05 21:47:34 +000034571# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34572set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034574$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034575if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034576 $as_echo_n "(cached) " >&6
34577else
34578 case $WMFDecodeDelegate in
34579 [\\/]* | ?:[\\/]*)
34580 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34581 ;;
34582 *)
34583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34584for as_dir in $PATH
34585do
34586 IFS=$as_save_IFS
34587 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034588 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034590 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034592 break 2
34593 fi
34594done
cristy8b350f62009-11-15 23:12:43 +000034595 done
cristy3ed852e2009-09-05 21:47:34 +000034596IFS=$as_save_IFS
34597
34598 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34599 ;;
34600esac
34601fi
34602WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34603if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034605$as_echo "$WMFDecodeDelegate" >&6; }
34606else
cristy8b350f62009-11-15 23:12:43 +000034607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034608$as_echo "no" >&6; }
34609fi
34610
34611
34612# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34613set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034615$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034616if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034617 $as_echo_n "(cached) " >&6
34618else
34619 case $WWWDecodeDelegate in
34620 [\\/]* | ?:[\\/]*)
34621 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34622 ;;
34623 *)
34624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34625for as_dir in $PATH
34626do
34627 IFS=$as_save_IFS
34628 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034629 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034631 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034633 break 2
34634 fi
34635done
cristy8b350f62009-11-15 23:12:43 +000034636 done
cristy3ed852e2009-09-05 21:47:34 +000034637IFS=$as_save_IFS
34638
34639 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34640 ;;
34641esac
34642fi
34643WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34644if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034646$as_echo "$WWWDecodeDelegate" >&6; }
34647else
cristy8b350f62009-11-15 23:12:43 +000034648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034649$as_echo "no" >&6; }
34650fi
34651
34652
34653# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34654set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034656$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034657if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034658 $as_echo_n "(cached) " >&6
34659else
34660 case $XPSDelegate in
34661 [\\/]* | ?:[\\/]*)
34662 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34663 ;;
34664 *)
34665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34666for as_dir in $PATH
34667do
34668 IFS=$as_save_IFS
34669 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034670 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034672 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034674 break 2
34675 fi
34676done
cristy8b350f62009-11-15 23:12:43 +000034677 done
cristy3ed852e2009-09-05 21:47:34 +000034678IFS=$as_save_IFS
34679
34680 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34681 ;;
34682esac
34683fi
34684XPSDelegate=$ac_cv_path_XPSDelegate
34685if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034687$as_echo "$XPSDelegate" >&6; }
34688else
cristy8b350f62009-11-15 23:12:43 +000034689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034690$as_echo "no" >&6; }
34691fi
34692
34693
34694# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34695set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034697$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034698if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034699 $as_echo_n "(cached) " >&6
34700else
34701 case $ZipDelegate in
34702 [\\/]* | ?:[\\/]*)
34703 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34704 ;;
34705 *)
34706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34707for as_dir in $PATH
34708do
34709 IFS=$as_save_IFS
34710 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034711 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034713 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034715 break 2
34716 fi
34717done
cristy8b350f62009-11-15 23:12:43 +000034718 done
cristy3ed852e2009-09-05 21:47:34 +000034719IFS=$as_save_IFS
34720
34721 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34722 ;;
34723esac
34724fi
34725ZipDelegate=$ac_cv_path_ZipDelegate
34726if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034728$as_echo "$ZipDelegate" >&6; }
34729else
cristy8b350f62009-11-15 23:12:43 +000034730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034731$as_echo "no" >&6; }
34732fi
34733
34734
34735
34736# Prefer lpr to lp; lp needs options tacked on.
34737if test "$LPRDelegate" != no; then
34738 PrintDelegate="$LPRDelegate"
34739else
34740 PrintDelegate="$LPDelegate -c -s"
34741fi
34742
34743
34744# Installed ImageMagick utiltity paths
34745ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34746DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34747MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34748
34749# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034750have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034751have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34752have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34753have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034754have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034755have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34756have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034757have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34758
34759#
34760# Test for font directories
34761#
34762type_include_files=''
34763
cristy430a7312010-01-21 20:44:04 +000034764# Dejavu fonts.
34765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34766$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34767dejavu_font_dir=''
34768if test "${with_dejavu_font_dir}" != 'default'; then
34769 dejavu_font_dir="${with_dejavu_font_dir}/"
34770else
34771 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34772 if test -f "${font_dir}DejaVuSerif.ttf"; then
34773 dejavu_font_dir="${font_dir}"
34774 break 1
34775 fi
34776 done
34777fi
34778if test "${dejavu_font_dir}x" != 'x'; then
34779 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34781$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034782else
cristyad38abe2012-12-23 23:03:21 +000034783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34784$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034785fi
34786
34787
cristy3ed852e2009-09-05 21:47:34 +000034788# Windows
34789windows_font_dir=''
34790if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34791 windows_font_dir="${with_windows_font_dir}/"
34792fi
cristy430a7312010-01-21 20:44:04 +000034793if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034794 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34795 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34796 fi
34797 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34798 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34799 fi
34800 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34801 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34802 fi
34803fi
cristy430a7312010-01-21 20:44:04 +000034804if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034805 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34806fi
34807
34808
34809# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034811$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34812ghostscript_font_dir=''
34813if test "${with_gs_font_dir}" != 'default'; then
34814 ghostscript_font_dir="${with_gs_font_dir}/"
34815else
34816 if test "${native_win32_build}" = 'yes'; then
34817 # Native Windows Build
34818 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34819 if test -f "${font_dir}a010013l.pfb"; then
34820 ghostscript_font_dir="$font_dir"
34821 break 1
34822 fi
34823 done
34824 if test "${PSDelegate}" != 'gswin32c'; then
34825 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34826 fi
34827 else
34828 # Linux / Mac OS X / Unix Build
34829 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
34830 if test -f "${font_dir}a010013l.pfb"; then
34831 ghostscript_font_dir="${font_dir}"
34832 break 1
34833 fi
34834 done
34835 if test "${ghostscript_font_dir}x" = 'x'; then
34836 if test "$PSDelegate" != 'gs'; then
34837 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34838 fi
34839 fi
34840 fi
34841fi
34842if test "${ghostscript_font_dir}x" != 'x'; then
34843 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34845$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034846else
cristyad38abe2012-12-23 23:03:21 +000034847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34848$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034849fi
34850
34851case "${build_os}" in
34852 mingw* )
34853 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34854 ;;
34855esac
34856
34857
34858
34859#
34860# Handle case where user doesn't want frozen paths
34861#
34862if test "$with_frozenpaths" != 'yes'; then
34863 # Re-set delegate definitions to default (no paths)
34864 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034865 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34866 BZIPDelegate="$BZIPDelegateDefault"
34867 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034868 CatDelegate="$CatDelegateDefault"
34869 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034870 DisplayDelegate="$DisplayDelegateDefault"
34871 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034872 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34873 EchoDelegate="$EchoDelegateDefault"
34874 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034875 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034876 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034877 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34878 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34879 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34880 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034881 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34882 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034883 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034884 LaunchDelegate="$LaunchDelegateDefault"
34885 MANDelegate="$MANDelegateDefault"
34886 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34887 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034888 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034889 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34890 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034891 PCLDelegate="$PCLDelegateDefault"
34892 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34893 POVDelegate="$POVDelegateDefault"
34894 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034895 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34896 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034897 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034898 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034899 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034900 ShowImageDelegate="$ShowImageDelegateDefault"
34901 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034902 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000034903 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34904 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034905 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34906 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34907 XPSDelegate="$XPSDelegateDefault"
34908 ZipDelegate="$ZipDelegateDefault"
34909fi
34910
34911# Delegate substitutions
34912
34913
34914
34915
34916
34917
34918
34919
34920
34921
34922
34923
34924
34925
34926
34927
34928
34929
34930
34931
34932
34933
34934
34935
34936
34937
34938
34939
34940
34941
34942
34943
34944
34945
34946
34947
34948
34949
34950
34951
cristy71f53d52013-04-27 13:33:59 +000034952
34953
cristy3ed852e2009-09-05 21:47:34 +000034954#
34955# RPM support.
34956#
34957RPM=''
34958for ac_prog in gnutar gtar tar
34959do
34960 # Extract the first word of "$ac_prog", so it can be a program name with args.
34961set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034963$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034964if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034965 $as_echo_n "(cached) " >&6
34966else
34967 if test -n "$TAR"; then
34968 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34969else
34970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34971for as_dir in $PATH
34972do
34973 IFS=$as_save_IFS
34974 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034975 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034977 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034979 break 2
34980 fi
34981done
cristy8b350f62009-11-15 23:12:43 +000034982 done
cristy3ed852e2009-09-05 21:47:34 +000034983IFS=$as_save_IFS
34984
34985fi
34986fi
34987TAR=$ac_cv_prog_TAR
34988if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034990$as_echo "$TAR" >&6; }
34991else
cristy8b350f62009-11-15 23:12:43 +000034992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034993$as_echo "no" >&6; }
34994fi
34995
34996
34997 test -n "$TAR" && break
34998done
34999
35000for ac_prog in perl
35001do
35002 # Extract the first word of "$ac_prog", so it can be a program name with args.
35003set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035005$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035006if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035007 $as_echo_n "(cached) " >&6
35008else
35009 if test -n "$PERL"; then
35010 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35011else
35012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35013for as_dir in $PATH
35014do
35015 IFS=$as_save_IFS
35016 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035017 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035019 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035021 break 2
35022 fi
35023done
cristy8b350f62009-11-15 23:12:43 +000035024 done
cristy3ed852e2009-09-05 21:47:34 +000035025IFS=$as_save_IFS
35026
35027fi
35028fi
35029PERL=$ac_cv_prog_PERL
35030if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035032$as_echo "$PERL" >&6; }
35033else
cristy8b350f62009-11-15 23:12:43 +000035034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035035$as_echo "no" >&6; }
35036fi
35037
35038
35039 test -n "$PERL" && break
35040done
35041
35042for ac_prog in rpmbuild rpm
35043do
35044 # Extract the first word of "$ac_prog", so it can be a program name with args.
35045set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035047$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035048if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035049 $as_echo_n "(cached) " >&6
35050else
35051 if test -n "$RPM"; then
35052 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35053else
35054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35055for as_dir in $PATH
35056do
35057 IFS=$as_save_IFS
35058 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035059 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035061 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035063 break 2
35064 fi
35065done
cristy8b350f62009-11-15 23:12:43 +000035066 done
cristy3ed852e2009-09-05 21:47:34 +000035067IFS=$as_save_IFS
35068
35069fi
35070fi
35071RPM=$ac_cv_prog_RPM
35072if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035074$as_echo "$RPM" >&6; }
35075else
cristy8b350f62009-11-15 23:12:43 +000035076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035077$as_echo "no" >&6; }
35078fi
35079
35080
35081 test -n "$RPM" && break
35082done
35083
35084
cristy73bd4a52010-10-05 11:24:23 +000035085ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35086
35087
35088AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35089
35090
35091AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35092
35093
35094AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35095
35096
35097 if test "x$RPM" != "x" ; then
35098 RPM_DELEGATE_TRUE=
35099 RPM_DELEGATE_FALSE='#'
35100else
35101 RPM_DELEGATE_TRUE='#'
35102 RPM_DELEGATE_FALSE=
35103fi
35104
cristy3ed852e2009-09-05 21:47:34 +000035105
35106#
35107# 7ZIP support (http://p7zip.sourceforge.net/)
35108#
35109P7ZIP=''
35110for ac_prog in 7za
35111do
35112 # Extract the first word of "$ac_prog", so it can be a program name with args.
35113set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035115$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035116if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035117 $as_echo_n "(cached) " >&6
35118else
35119 if test -n "$P7ZIP"; then
35120 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35121else
35122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35123for as_dir in $PATH
35124do
35125 IFS=$as_save_IFS
35126 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035127 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035129 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035131 break 2
35132 fi
35133done
cristy8b350f62009-11-15 23:12:43 +000035134 done
cristy3ed852e2009-09-05 21:47:34 +000035135IFS=$as_save_IFS
35136
35137fi
35138fi
35139P7ZIP=$ac_cv_prog_P7ZIP
35140if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035142$as_echo "$P7ZIP" >&6; }
35143else
cristy8b350f62009-11-15 23:12:43 +000035144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035145$as_echo "no" >&6; }
35146fi
35147
35148
35149 test -n "$P7ZIP" && break
35150done
35151
35152
cristy73bd4a52010-10-05 11:24:23 +000035153 if test "x$P7ZIP" != "x" ; then
35154 P7ZIP_DELEGATE_TRUE=
35155 P7ZIP_DELEGATE_FALSE='#'
35156else
35157 P7ZIP_DELEGATE_TRUE='#'
35158 P7ZIP_DELEGATE_FALSE=
35159fi
35160
cristy3ed852e2009-09-05 21:47:34 +000035161
35162#
35163# ZIP support (http://www.info-zip.org/Zip.html)
35164#
35165ZIP=''
35166for ac_prog in zip
35167do
35168 # Extract the first word of "$ac_prog", so it can be a program name with args.
35169set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035171$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035172if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035173 $as_echo_n "(cached) " >&6
35174else
35175 if test -n "$ZIP"; then
35176 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35177else
35178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35179for as_dir in $PATH
35180do
35181 IFS=$as_save_IFS
35182 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035183 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035185 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035187 break 2
35188 fi
35189done
cristy8b350f62009-11-15 23:12:43 +000035190 done
cristy3ed852e2009-09-05 21:47:34 +000035191IFS=$as_save_IFS
35192
35193fi
35194fi
35195ZIP=$ac_cv_prog_ZIP
35196if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035198$as_echo "$ZIP" >&6; }
35199else
cristy8b350f62009-11-15 23:12:43 +000035200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035201$as_echo "no" >&6; }
35202fi
35203
35204
35205 test -n "$ZIP" && break
35206done
35207
35208
cristy73bd4a52010-10-05 11:24:23 +000035209 if test "x$ZIP" != "x" ; then
35210 ZIP_DELEGATE_TRUE=
35211 ZIP_DELEGATE_FALSE='#'
35212else
35213 ZIP_DELEGATE_TRUE='#'
35214 ZIP_DELEGATE_FALSE=
35215fi
35216
cristy3ed852e2009-09-05 21:47:34 +000035217
35218#
35219# GhostPCL related configuration.
35220#
35221PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035222PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035223PCLMonoDevice=pbmraw
35224if test -z "$PCLVersion"; then
35225 PCLVersion='unknown'
35226fi
35227if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35229$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035231$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35233$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035234 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035236$as_echo_n "checking for pcl color device... " >&6; }
35237 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35238 :
35239 else
35240 PCLColorDevice=ppmraw
35241 fi
cristyad38abe2012-12-23 23:03:21 +000035242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35243$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035244
35245 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035247$as_echo_n "checking for pcl CMYK device... " >&6; }
35248 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35249 :
35250 else
35251 PCLCMYKDevice=$PCLColorDevice
35252 fi
cristyad38abe2012-12-23 23:03:21 +000035253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35254$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035255
35256 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035258$as_echo_n "checking for pcl mono device... " >&6; }
35259 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35260 :
35261 else
35262 PCLMonoDevice=$PCLColorDevice
35263 fi
cristyad38abe2012-12-23 23:03:21 +000035264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35265$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035266fi
35267
35268
35269
35270
35271
35272
35273#
35274# GhostXPS related configuration.
35275#
35276XPSColorDevice=ppmraw
35277XPSCMYKDevice=bmpsep8
35278XPSMonoDevice=pbmraw
35279if test -z "$XPSVersion"; then
35280 XPSVersion='unknown'
35281fi
35282if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35284$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035286$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35288$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035289 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035291$as_echo_n "checking for xps color device... " >&6; }
35292 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35293 :
35294 else
35295 XPSColorDevice=ppmraw
35296 fi
cristyad38abe2012-12-23 23:03:21 +000035297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35298$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035299
35300 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035302$as_echo_n "checking for xps CMYK device... " >&6; }
35303 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35304 :
35305 else
35306 XPSCMYKDevice=$XPSColorDevice
35307 fi
cristyad38abe2012-12-23 23:03:21 +000035308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35309$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035310
35311 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035313$as_echo_n "checking for xps mono device... " >&6; }
35314 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35315 :
35316 else
35317 XPSMonoDevice=$XPSColorDevice
35318 fi
cristyad38abe2012-12-23 23:03:21 +000035319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35320$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035321fi
35322
35323
35324
35325
35326
35327
35328#
35329# Ghostscript related configuration.
35330#
cristya97426c2011-02-04 01:41:27 +000035331GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035332GSColorDevice=pnmraw
35333GSCMYKDevice=pam
35334GSMonoDevice=pbmraw
35335GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035336GSPSDevice=ps2write
cristy3ed852e2009-09-05 21:47:34 +000035337GSEPSDevice=epswrite
35338GSVersion='unknown'
35339if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35341$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035343$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35345$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035347$as_echo_n "checking for Ghostscript version... " >&6; }
35348 if GSVersion=`$PSDelegate --version`; then
35349 :
35350 else
35351 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35352 fi
cristyad38abe2012-12-23 23:03:21 +000035353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35354$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035355
35356 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035358$as_echo_n "checking for gs alpha device... " >&6; }
35359 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35360 :
35361 else
35362 GSAlphaDevice=pnmraw
35363 fi
cristyad38abe2012-12-23 23:03:21 +000035364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35365$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035366
35367 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035369$as_echo_n "checking for gs color device... " >&6; }
35370 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35371 :
35372 else
35373 GSColorDevice=pnmraw
35374 fi
cristyad38abe2012-12-23 23:03:21 +000035375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35376$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035377
35378 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035380$as_echo_n "checking for gs CMYK device... " >&6; }
35381 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35382 :
35383 else
35384 GSCMYKDevice=bmpsep8
35385 fi
cristyad38abe2012-12-23 23:03:21 +000035386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35387$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035388
35389 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035391$as_echo_n "checking for gs mono device... " >&6; }
35392 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35393 :
35394 else
35395 GSMonoDevice=$GSColorDevice
35396 fi
cristyad38abe2012-12-23 23:03:21 +000035397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35398$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035399
35400 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035402$as_echo_n "checking for gs PDF writing device... " >&6; }
35403 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35404 :
35405 else
35406 GSPDFDevice=nodevice
35407 fi
cristyad38abe2012-12-23 23:03:21 +000035408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35409$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035410
35411 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035413$as_echo_n "checking for gs PS writing device... " >&6; }
35414 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35415 :
35416 else
35417 GSPSDevice=nodevice
35418 fi
cristyad38abe2012-12-23 23:03:21 +000035419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35420$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035421
35422 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035424$as_echo_n "checking for gs EPS writing device... " >&6; }
35425 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35426 :
35427 else
35428 GSEPSDevice=nodevice
35429 fi
cristyad38abe2012-12-23 23:03:21 +000035430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35431$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035432fi
35433
35434
35435
35436
35437
35438
35439
35440
35441
35442
35443#
35444# PerlMagick-related configuration
35445#
35446
35447# Look for PERL if PerlMagick requested
35448# If name/path of desired PERL interpreter is specified, look for that one first
35449have_perl='no'
35450if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35452$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035454$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35456$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035457 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035459$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035460if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035461 $as_echo_n "(cached) " >&6
35462else
35463 ac_cv_path_PERL="$with_perl"
35464fi
cristy8b350f62009-11-15 23:12:43 +000035465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035466$as_echo "$ac_cv_path_PERL" >&6; };
35467 PERL=$ac_cv_path_PERL
35468 have_perl="$ac_cv_path_PERL"
35469 else
35470 for ac_prog in perl perl5
35471do
35472 # Extract the first word of "$ac_prog", so it can be a program name with args.
35473set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035475$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035476if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035477 $as_echo_n "(cached) " >&6
35478else
35479 case $PERL in
35480 [\\/]* | ?:[\\/]*)
35481 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35482 ;;
35483 *)
35484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35485for as_dir in $PATH
35486do
35487 IFS=$as_save_IFS
35488 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035491 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035493 break 2
35494 fi
35495done
cristy8b350f62009-11-15 23:12:43 +000035496 done
cristy3ed852e2009-09-05 21:47:34 +000035497IFS=$as_save_IFS
35498
35499 ;;
35500esac
35501fi
35502PERL=$ac_cv_path_PERL
35503if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035505$as_echo "$PERL" >&6; }
35506else
cristy8b350f62009-11-15 23:12:43 +000035507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035508$as_echo "no" >&6; }
35509fi
35510
35511
35512 test -n "$PERL" && break
35513done
35514 if test "$ac_cv_path_PERL"; then
35515 have_perl="$ac_cv_path_PERL"
35516 fi
35517 fi
35518fi
35519
cristy949301e2010-01-06 01:38:40 +000035520if test "$with_perl" != 'yes' ; then
35521 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35522fi
35523
35524PERL_SUPPORTS_DESTDIR='no'
35525
cristy3ed852e2009-09-05 21:47:34 +000035526with_perl_static='no'
35527with_perl_dynamic='no'
35528if test "$have_perl" != 'no'; then
35529 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35530 with_perl_static='yes'
35531 fi
35532 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35533 with_perl_dynamic='yes'
35534 fi
35535 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035536
35537
35538
35539
35540 if test -n "$PERL"; then :
35541
35542 ax_perl_version="5.8.1"
35543
35544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35545$as_echo_n "checking for perl version... " >&6; }
35546
35547 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35548
35549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35550$as_echo "$perl_version" >&6; }
35551
35552 PERL_VERSION=$perl_version
35553
35554
35555
35556
35557
35558 # Used to indicate true or false condition
35559 ax_compare_version=false
35560
35561 # Convert the two version strings to be compared into a format that
35562 # allows a simple string comparison. The end result is that a version
35563 # string of the form 1.12.5-r617 will be converted to the form
35564 # 0001001200050617. In other words, each number is zero padded to four
35565 # digits, and non digits are removed.
35566
35567 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35568 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35569 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35570 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35571 -e 's/[^0-9]//g'`
35572
35573
35574 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35575 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35576 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35577 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35578 -e 's/[^0-9]//g'`
35579
35580
35581 ax_compare_version=`echo "x$ax_compare_version_A
35582x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35583
35584
35585
35586 if test "$ax_compare_version" = "true" ; then
35587
35588 :
35589 PERL_SUPPORTS_DESTDIR='yes'
35590
35591 else
35592 :
35593 PERL_SUPPORTS_DESTDIR='no'
35594
35595 fi
35596
35597
35598else
35599
35600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35601$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35602 PERL_SUPPORTS_DESTDIR='no'
35603
cristy3ed852e2009-09-05 21:47:34 +000035604fi
cristy73bd4a52010-10-05 11:24:23 +000035605
35606fi
35607 if test "$have_perl" != 'no'; then
35608 WITH_PERL_TRUE=
35609 WITH_PERL_FALSE='#'
35610else
35611 WITH_PERL_TRUE='#'
35612 WITH_PERL_FALSE=
35613fi
35614
35615 if test $with_perl_static = 'yes'; then
35616 WITH_PERL_STATIC_TRUE=
35617 WITH_PERL_STATIC_FALSE='#'
35618else
35619 WITH_PERL_STATIC_TRUE='#'
35620 WITH_PERL_STATIC_FALSE=
35621fi
35622
35623 if test $with_perl_dynamic = 'yes'; then
35624 WITH_PERL_DYNAMIC_TRUE=
35625 WITH_PERL_DYNAMIC_FALSE='#'
35626else
35627 WITH_PERL_DYNAMIC_TRUE='#'
35628 WITH_PERL_DYNAMIC_FALSE=
35629fi
35630
cristy3ed852e2009-09-05 21:47:34 +000035631
35632
35633# Determine path to pick up MagickCore library from for use with building PerlMagick
35634MAGICKCORE_PATH="${LIB_DIR}"
35635if test $with_perl_static = 'yes'; then
35636 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35637 libtool_objdir=$objdir
35638
35639 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035640 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035641fi
35642
35643
cristy2a3eb392012-12-17 13:39:20 +000035644# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035645MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035646if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035647 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035648fi
cristy2a3eb392012-12-17 13:39:20 +000035649if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035650 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035651fi
35652if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035653 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035654fi
35655if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035656 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035657fi
cristy81ab5af2013-10-06 18:28:39 +000035658if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035659 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035660fi
cristy854c9cf2013-08-10 21:03:06 +000035661if test "$have_mupdf" = 'yes' ; then
35662 MAGICK_DELEGATES="$MAGICK_DELEGATES mupdf"
cristyc0884e92013-08-10 17:14:59 +000035663fi
cristy2a3eb392012-12-17 13:39:20 +000035664if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035665 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035666fi
cristy2a3eb392012-12-17 13:39:20 +000035667if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035668 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035669fi
35670if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035671 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035672fi
35673if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035674 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035675fi
35676if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035677 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035678fi
35679if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035680 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035681fi
35682if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035683 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035684fi
35685if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035686 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035687fi
35688if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035689 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035690fi
35691if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035692 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035693fi
35694if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035695 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035696fi
35697if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035698 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035699fi
35700if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035701 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035702fi
35703if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035704 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035705fi
35706if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035707 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035708fi
35709have_ps='no'
35710if test "$have_dps" = 'yes' || \
35711 test "$have_gs" = 'yes' || \
35712 test "${native_win32_build}" = 'yes' ; then
35713 have_ps='yes'
35714fi
35715if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035716 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035717fi
cristy2a3eb392012-12-17 13:39:20 +000035718if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035719 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035720fi
35721if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035722 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035723fi
35724if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035725 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035726fi
35727if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035728 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035729fi
cristy3b640ed2013-07-29 00:27:59 +000035730if test "$have_webp" = 'yes' ; then
35731 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35732fi
cristy2a3eb392012-12-17 13:39:20 +000035733if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035734 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035735fi
35736if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035737 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035738fi
35739if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035740 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035741fi
35742if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035743 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035744fi
cristy2a3eb392012-12-17 13:39:20 +000035745# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035746MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035747MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035748
35749
cristyfa161182012-12-19 15:45:28 +000035750
cristy3ed852e2009-09-05 21:47:34 +000035751#
35752# Handle special compiler flags
35753#
35754
35755# Add '-p' if prof source profiling support enabled
35756if test "$enable_prof" = 'yes'; then
35757 CFLAGS="-p $CFLAGS"
35758 CXXFLAGS="-p $CXXFLAGS"
35759 LDFLAGS="-p $LDFLAGS"
35760fi
35761
35762# Add '-pg' if gprof source profiling support enabled
35763if test "$enable_gprof" = 'yes'; then
35764 CFLAGS="-pg $CFLAGS"
35765 CXXFLAGS="-pg $CXXFLAGS"
35766 LDFLAGS="-pg $LDFLAGS"
35767fi
35768
35769# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35770# This is a gcc-specific feature
35771if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035773$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035774if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035775 $as_echo_n "(cached) " >&6
35776else
35777 ac_check_lib_save_LIBS=$LIBS
35778LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035780/* end confdefs.h. */
35781
35782/* Override any GCC internal prototype to avoid an error.
35783 Use char because int might match the return type of a GCC
35784 builtin and then its argument prototype would still apply. */
35785#ifdef __cplusplus
35786extern "C"
35787#endif
35788char _gcov_init ();
35789int
35790main ()
35791{
35792return _gcov_init ();
35793 ;
35794 return 0;
35795}
35796_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035797if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035798 ac_cv_lib_gcov__gcov_init=yes
35799else
cristy8b350f62009-11-15 23:12:43 +000035800 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035801fi
cristy8b350f62009-11-15 23:12:43 +000035802rm -f core conftest.err conftest.$ac_objext \
35803 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035804LIBS=$ac_check_lib_save_LIBS
35805fi
cristy8b350f62009-11-15 23:12:43 +000035806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035807$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035808if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035809 cat >>confdefs.h <<_ACEOF
35810#define HAVE_LIBGCOV 1
35811_ACEOF
35812
35813 LIBS="-lgcov $LIBS"
35814
35815fi
35816
cristy8b350f62009-11-15 23:12:43 +000035817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035818$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035819if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035820 $as_echo_n "(cached) " >&6
35821else
35822 ac_check_lib_save_LIBS=$LIBS
35823LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035825/* end confdefs.h. */
35826
35827/* Override any GCC internal prototype to avoid an error.
35828 Use char because int might match the return type of a GCC
35829 builtin and then its argument prototype would still apply. */
35830#ifdef __cplusplus
35831extern "C"
35832#endif
35833char __gcov_init ();
35834int
35835main ()
35836{
35837return __gcov_init ();
35838 ;
35839 return 0;
35840}
35841_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035842if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035843 ac_cv_lib_gcov___gcov_init=yes
35844else
cristy8b350f62009-11-15 23:12:43 +000035845 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035846fi
cristy8b350f62009-11-15 23:12:43 +000035847rm -f core conftest.err conftest.$ac_objext \
35848 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035849LIBS=$ac_check_lib_save_LIBS
35850fi
cristy8b350f62009-11-15 23:12:43 +000035851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035852$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035853if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035854 cat >>confdefs.h <<_ACEOF
35855#define HAVE_LIBGCOV 1
35856_ACEOF
35857
35858 LIBS="-lgcov $LIBS"
35859
35860fi
35861
35862 case "$target_os" in
35863 darwin*)
35864 OSX_GCOV_LDFLAG="-Wl,-single_module"
35865 ;;
35866 *)
35867 OSX_GCOV_LDFLAG=""
35868 ;;
35869 esac
35870
35871 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35872 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35873 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35874fi
35875
35876#
35877# Build library dependency list for libMagickCore
35878#
35879
cristyc6722092012-10-14 00:19:31 +000035880if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035881 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 +000035882else
cristy3a75f062012-09-08 23:29:40 +000035883 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 +000035884fi
35885
35886
35887#
35888# Remove extraneous spaces from output variables (asthetic)
35889#
35890X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35891X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35892X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35893X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35894
35895CC=`echo $CC | sed -e 's/ */ /g'`
35896CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35897CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35898CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035899DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35900LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35901TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35902MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35903#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35904
35905# Pass only user-provided LIBS as "global" libraries
35906LIBS=$USER_LIBS
35907
35908#AC_SUBST(CPPFLAGS)
35909
35910#AC_SUBST(LDFLAGS)
35911#AC_SUBST(X_PRE_LIBS)
35912#AC_SUBST(X_LIBS)
35913#AC_SUBST(X_EXTRA_LIBS)
35914
35915MAGICK_CFLAGS=$CFLAGS
35916MAGICK_CXXFLAGS="$CXXFLAGS"
35917MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35918MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35919MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000035920MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035921
35922
35923
35924
35925
35926
35927
35928
35929# Set configured scripts to executable.
35930ac_config_commands="$ac_config_commands default"
35931
cristy2bd4b6e2012-07-22 15:29:11 +000035932ac_config_commands="$ac_config_commands magick.sh.in"
35933
cristy3ed852e2009-09-05 21:47:34 +000035934ac_config_commands="$ac_config_commands MagickCore-config.in"
35935
cristy3ed852e2009-09-05 21:47:34 +000035936ac_config_commands="$ac_config_commands MagickWand-config.in"
35937
cristy3ed852e2009-09-05 21:47:34 +000035938ac_config_commands="$ac_config_commands Magick++-config.in"
35939
35940ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35941
35942
cristyad38abe2012-12-23 23:03:21 +000035943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35944$as_echo "-------------------------------------------------------------" >&6; }
35945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35946$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035947cat >confcache <<\_ACEOF
35948# This file is a shell script that caches the results of configure
35949# tests run on this system so they can be shared between configure
35950# scripts and configure runs, see configure's option --config-cache.
35951# It is not useful on other systems. If it contains results you don't
35952# want to keep, you may remove or edit it.
35953#
35954# config.status only pays attention to the cache file if you give it
35955# the --recheck option to rerun configure.
35956#
35957# `ac_cv_env_foo' variables (set or unset) will be overridden when
35958# loading this file, other *unset* `ac_cv_foo' will be assigned the
35959# following values.
35960
35961_ACEOF
35962
35963# The following way of writing the cache mishandles newlines in values,
35964# but we know of no workaround that is simple, portable, and efficient.
35965# So, we kill variables containing newlines.
35966# Ultrix sh set writes to stderr and can't be redirected directly,
35967# and sets the high bit in the cache file unless we assign to the vars.
35968(
35969 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35970 eval ac_val=\$$ac_var
35971 case $ac_val in #(
35972 *${as_nl}*)
35973 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035974 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035975$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35976 esac
35977 case $ac_var in #(
35978 _ | IFS | as_nl) ;; #(
35979 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035980 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035981 esac ;;
35982 esac
35983 done
35984
35985 (set) 2>&1 |
35986 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35987 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035988 # `set' does not quote correctly, so add quotes: double-quote
35989 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035990 sed -n \
35991 "s/'/'\\\\''/g;
35992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35993 ;; #(
35994 *)
35995 # `set' quotes correctly as required by POSIX, so do not add quotes.
35996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35997 ;;
35998 esac |
35999 sort
36000) |
36001 sed '
36002 /^ac_cv_env_/b end
36003 t clear
36004 :clear
36005 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36006 t end
36007 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36008 :end' >>confcache
36009if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36010 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036011 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036012 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036013$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036014 if test ! -f "$cache_file" || test -h "$cache_file"; then
36015 cat confcache >"$cache_file"
36016 else
36017 case $cache_file in #(
36018 */* | ?:*)
36019 mv -f confcache "$cache_file"$$ &&
36020 mv -f "$cache_file"$$ "$cache_file" ;; #(
36021 *)
36022 mv -f confcache "$cache_file" ;;
36023 esac
36024 fi
36025 fi
cristy3ed852e2009-09-05 21:47:34 +000036026 else
cristy8b350f62009-11-15 23:12:43 +000036027 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036028$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36029 fi
36030fi
36031rm -f confcache
36032
36033test "x$prefix" = xNONE && prefix=$ac_default_prefix
36034# Let make expand exec_prefix.
36035test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36036
36037DEFS=-DHAVE_CONFIG_H
36038
36039ac_libobjs=
36040ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036041U=
cristy3ed852e2009-09-05 21:47:34 +000036042for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36043 # 1. Remove the extension, and $U if already installed.
36044 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36045 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36046 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36047 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036048 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36049 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036050done
36051LIBOBJS=$ac_libobjs
36052
36053LTLIBOBJS=$ac_ltlibobjs
36054
36055
cristyc0890a62012-07-19 00:18:20 +000036056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36057$as_echo_n "checking that generated files are newer than configure... " >&6; }
36058 if test -n "$am_sleep_pid"; then
36059 # Hide warnings about reused PIDs.
36060 wait $am_sleep_pid 2>/dev/null
36061 fi
36062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36063$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036064 if test -n "$EXEEXT"; then
36065 am__EXEEXT_TRUE=
36066 am__EXEEXT_FALSE='#'
36067else
36068 am__EXEEXT_TRUE='#'
36069 am__EXEEXT_FALSE=
36070fi
cristy3ed852e2009-09-05 21:47:34 +000036071
cristy73bd4a52010-10-05 11:24:23 +000036072if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036073 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036074Usually this means the macro was only invoked conditionally." "$LINENO" 5
36075fi
36076if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036077 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036078Usually this means the macro was only invoked conditionally." "$LINENO" 5
36079fi
36080if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036081 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036082Usually this means the macro was only invoked conditionally." "$LINENO" 5
36083fi
36084if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036085 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036086Usually this means the macro was only invoked conditionally." "$LINENO" 5
36087fi
cristy9b86f202012-11-28 21:55:35 +000036088if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36089 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36090Usually this means the macro was only invoked conditionally." "$LINENO" 5
36091fi
cristy73bd4a52010-10-05 11:24:23 +000036092if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036093 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036094Usually this means the macro was only invoked conditionally." "$LINENO" 5
36095fi
36096if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036097 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036098Usually this means the macro was only invoked conditionally." "$LINENO" 5
36099fi
36100if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036101 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036102Usually this means the macro was only invoked conditionally." "$LINENO" 5
36103fi
36104if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036105 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036106Usually this means the macro was only invoked conditionally." "$LINENO" 5
36107fi
cristy73bd4a52010-10-05 11:24:23 +000036108if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036109 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036110Usually this means the macro was only invoked conditionally." "$LINENO" 5
36111fi
36112if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036113 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036114Usually this means the macro was only invoked conditionally." "$LINENO" 5
36115fi
cristy73bd4a52010-10-05 11:24:23 +000036116if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036117 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036118Usually this means the macro was only invoked conditionally." "$LINENO" 5
36119fi
cristy71d8c202012-03-20 17:05:01 +000036120if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36121 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36122Usually this means the macro was only invoked conditionally." "$LINENO" 5
36123fi
cristy73bd4a52010-10-05 11:24:23 +000036124
36125if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036126 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036127Usually this means the macro was only invoked conditionally." "$LINENO" 5
36128fi
36129if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036130 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036131Usually this means the macro was only invoked conditionally." "$LINENO" 5
36132fi
36133if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036134 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036135Usually this means the macro was only invoked conditionally." "$LINENO" 5
36136fi
36137if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036138 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036139Usually this means the macro was only invoked conditionally." "$LINENO" 5
36140fi
36141if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036142 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036143Usually this means the macro was only invoked conditionally." "$LINENO" 5
36144fi
36145if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036146 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036147Usually this means the macro was only invoked conditionally." "$LINENO" 5
36148fi
cristy5eef09f2012-10-16 12:08:28 +000036149if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36150 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36151Usually this means the macro was only invoked conditionally." "$LINENO" 5
36152fi
cristy73bd4a52010-10-05 11:24:23 +000036153if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036154 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036155Usually this means the macro was only invoked conditionally." "$LINENO" 5
36156fi
36157if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036158 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036159Usually this means the macro was only invoked conditionally." "$LINENO" 5
36160fi
36161if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036162 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036163Usually this means the macro was only invoked conditionally." "$LINENO" 5
36164fi
36165if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036166 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036167Usually this means the macro was only invoked conditionally." "$LINENO" 5
36168fi
36169if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036170 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036171Usually this means the macro was only invoked conditionally." "$LINENO" 5
36172fi
36173if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036174 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036175Usually this means the macro was only invoked conditionally." "$LINENO" 5
36176fi
36177if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036178 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036179Usually this means the macro was only invoked conditionally." "$LINENO" 5
36180fi
36181if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036182 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036183Usually this means the macro was only invoked conditionally." "$LINENO" 5
36184fi
36185if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036186 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036187Usually this means the macro was only invoked conditionally." "$LINENO" 5
36188fi
36189if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036190 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036191Usually this means the macro was only invoked conditionally." "$LINENO" 5
36192fi
36193if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036194 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036195Usually this means the macro was only invoked conditionally." "$LINENO" 5
36196fi
36197if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036198 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036199Usually this means the macro was only invoked conditionally." "$LINENO" 5
36200fi
36201if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036202 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036203Usually this means the macro was only invoked conditionally." "$LINENO" 5
36204fi
36205if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036206 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036207Usually this means the macro was only invoked conditionally." "$LINENO" 5
36208fi
cristyfbb0ef02010-12-19 02:32:11 +000036209if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36210 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36211Usually this means the macro was only invoked conditionally." "$LINENO" 5
36212fi
cristy854c9cf2013-08-10 21:03:06 +000036213if test -z "${MUPDF_DELEGATE_TRUE}" && test -z "${MUPDF_DELEGATE_FALSE}"; then
36214 as_fn_error $? "conditional \"MUPDF_DELEGATE\" was never defined.
36215Usually this means the macro was only invoked conditionally." "$LINENO" 5
36216fi
cristy73bd4a52010-10-05 11:24:23 +000036217if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036218 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036219Usually this means the macro was only invoked conditionally." "$LINENO" 5
36220fi
cristy41cbe8a2011-10-27 01:35:18 +000036221if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36222 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36223Usually this means the macro was only invoked conditionally." "$LINENO" 5
36224fi
cristya054b762012-03-26 23:16:00 +000036225if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36226 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036227Usually this means the macro was only invoked conditionally." "$LINENO" 5
36228fi
cristy73bd4a52010-10-05 11:24:23 +000036229if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036230 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036231Usually this means the macro was only invoked conditionally." "$LINENO" 5
36232fi
36233if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036234 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036235Usually this means the macro was only invoked conditionally." "$LINENO" 5
36236fi
36237if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036238 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036239Usually this means the macro was only invoked conditionally." "$LINENO" 5
36240fi
36241if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036242 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036243Usually this means the macro was only invoked conditionally." "$LINENO" 5
36244fi
cristyb1860752011-03-14 00:27:46 +000036245if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36246 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36247Usually this means the macro was only invoked conditionally." "$LINENO" 5
36248fi
cristy73bd4a52010-10-05 11:24:23 +000036249if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036250 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036251Usually this means the macro was only invoked conditionally." "$LINENO" 5
36252fi
36253if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036254 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036255Usually this means the macro was only invoked conditionally." "$LINENO" 5
36256fi
36257if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036258 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036259Usually this means the macro was only invoked conditionally." "$LINENO" 5
36260fi
36261if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036262 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036263Usually this means the macro was only invoked conditionally." "$LINENO" 5
36264fi
36265if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036266 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036267Usually this means the macro was only invoked conditionally." "$LINENO" 5
36268fi
36269if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036270 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036271Usually this means the macro was only invoked conditionally." "$LINENO" 5
36272fi
36273if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036274 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036275Usually this means the macro was only invoked conditionally." "$LINENO" 5
36276fi
36277if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036278 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036279Usually this means the macro was only invoked conditionally." "$LINENO" 5
36280fi
cristy3ed852e2009-09-05 21:47:34 +000036281
cristyda16f162011-02-19 23:52:17 +000036282: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036283ac_write_fail=0
36284ac_clean_files_save=$ac_clean_files
36285ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036286{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036287$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036288as_write_fail=0
36289cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036290#! $SHELL
36291# Generated by $as_me.
36292# Run this file to recreate the current configuration.
36293# Compiler output produced by configure, useful for debugging
36294# configure, is in config.log if it exists.
36295
36296debug=false
36297ac_cs_recheck=false
36298ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036299
cristy8b350f62009-11-15 23:12:43 +000036300SHELL=\${CONFIG_SHELL-$SHELL}
36301export SHELL
36302_ASEOF
36303cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36304## -------------------- ##
36305## M4sh Initialization. ##
36306## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036307
36308# Be more Bourne compatible
36309DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036310if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036311 emulate sh
36312 NULLCMD=:
36313 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36314 # is contrary to our usage. Disable this feature.
36315 alias -g '${1+"$@"}'='"$@"'
36316 setopt NO_GLOB_SUBST
36317else
cristy8b350f62009-11-15 23:12:43 +000036318 case `(set -o) 2>/dev/null` in #(
36319 *posix*) :
36320 set -o posix ;; #(
36321 *) :
36322 ;;
cristy3ed852e2009-09-05 21:47:34 +000036323esac
cristy3ed852e2009-09-05 21:47:34 +000036324fi
36325
36326
cristy3ed852e2009-09-05 21:47:34 +000036327as_nl='
36328'
36329export as_nl
36330# Printing a long string crashes Solaris 7 /usr/bin/printf.
36331as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36332as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36333as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036334# Prefer a ksh shell builtin over an external printf program on Solaris,
36335# but without wasting forks for bash or zsh.
36336if test -z "$BASH_VERSION$ZSH_VERSION" \
36337 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36338 as_echo='print -r --'
36339 as_echo_n='print -rn --'
36340elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036341 as_echo='printf %s\n'
36342 as_echo_n='printf %s'
36343else
36344 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36345 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36346 as_echo_n='/usr/ucb/echo -n'
36347 else
36348 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36349 as_echo_n_body='eval
36350 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036351 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036352 *"$as_nl"*)
36353 expr "X$arg" : "X\\(.*\\)$as_nl";
36354 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36355 esac;
36356 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36357 '
36358 export as_echo_n_body
36359 as_echo_n='sh -c $as_echo_n_body as_echo'
36360 fi
36361 export as_echo_body
36362 as_echo='sh -c $as_echo_body as_echo'
36363fi
36364
36365# The user is always right.
36366if test "${PATH_SEPARATOR+set}" != set; then
36367 PATH_SEPARATOR=:
36368 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36369 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36370 PATH_SEPARATOR=';'
36371 }
36372fi
36373
cristy3ed852e2009-09-05 21:47:34 +000036374
36375# IFS
36376# We need space, tab and new line, in precisely that order. Quoting is
36377# there to prevent editors from complaining about space-tab.
36378# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36379# splitting by setting IFS to empty value.)
36380IFS=" "" $as_nl"
36381
36382# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036383as_myself=
cristy8b350f62009-11-15 23:12:43 +000036384case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036385 *[\\/]* ) as_myself=$0 ;;
36386 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36387for as_dir in $PATH
36388do
36389 IFS=$as_save_IFS
36390 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036391 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36392 done
cristy3ed852e2009-09-05 21:47:34 +000036393IFS=$as_save_IFS
36394
36395 ;;
36396esac
36397# We did not find ourselves, most probably we were run as `sh COMMAND'
36398# in which case we are not to be found in the path.
36399if test "x$as_myself" = x; then
36400 as_myself=$0
36401fi
36402if test ! -f "$as_myself"; then
36403 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036404 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036405fi
36406
cristy8b350f62009-11-15 23:12:43 +000036407# Unset variables that we do not need and which cause bugs (e.g. in
36408# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36409# suppresses any "Segmentation fault" message there. '((' could
36410# trigger a bug in pdksh 5.2.14.
36411for as_var in BASH_ENV ENV MAIL MAILPATH
36412do eval test x\${$as_var+set} = xset \
36413 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036414done
36415PS1='$ '
36416PS2='> '
36417PS4='+ '
36418
36419# NLS nuisances.
36420LC_ALL=C
36421export LC_ALL
36422LANGUAGE=C
36423export LANGUAGE
36424
cristy8b350f62009-11-15 23:12:43 +000036425# CDPATH.
36426(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36427
36428
cristy98dddb52010-11-04 00:30:15 +000036429# as_fn_error STATUS ERROR [LINENO LOG_FD]
36430# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036431# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36432# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036433# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036434as_fn_error ()
36435{
cristy98dddb52010-11-04 00:30:15 +000036436 as_status=$1; test $as_status -eq 0 && as_status=1
36437 if test "$4"; then
36438 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36439 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036440 fi
cristy98dddb52010-11-04 00:30:15 +000036441 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036442 as_fn_exit $as_status
36443} # as_fn_error
36444
36445
36446# as_fn_set_status STATUS
36447# -----------------------
36448# Set $? to STATUS, without forking.
36449as_fn_set_status ()
36450{
36451 return $1
36452} # as_fn_set_status
36453
36454# as_fn_exit STATUS
36455# -----------------
36456# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36457as_fn_exit ()
36458{
36459 set +e
36460 as_fn_set_status $1
36461 exit $1
36462} # as_fn_exit
36463
36464# as_fn_unset VAR
36465# ---------------
36466# Portably unset VAR.
36467as_fn_unset ()
36468{
36469 { eval $1=; unset $1;}
36470}
36471as_unset=as_fn_unset
36472# as_fn_append VAR VALUE
36473# ----------------------
36474# Append the text in VALUE to the end of the definition contained in VAR. Take
36475# advantage of any shell optimizations that allow amortized linear growth over
36476# repeated appends, instead of the typical quadratic growth present in naive
36477# implementations.
36478if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36479 eval 'as_fn_append ()
36480 {
36481 eval $1+=\$2
36482 }'
36483else
36484 as_fn_append ()
36485 {
36486 eval $1=\$$1\$2
36487 }
36488fi # as_fn_append
36489
36490# as_fn_arith ARG...
36491# ------------------
36492# Perform arithmetic evaluation on the ARGs, and store the result in the
36493# global $as_val. Take advantage of shells that can avoid forks. The arguments
36494# must be portable across $(()) and expr.
36495if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36496 eval 'as_fn_arith ()
36497 {
36498 as_val=$(( $* ))
36499 }'
36500else
36501 as_fn_arith ()
36502 {
36503 as_val=`expr "$@" || test $? -eq 1`
36504 }
36505fi # as_fn_arith
36506
36507
cristy3ed852e2009-09-05 21:47:34 +000036508if expr a : '\(a\)' >/dev/null 2>&1 &&
36509 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36510 as_expr=expr
36511else
36512 as_expr=false
36513fi
36514
36515if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36516 as_basename=basename
36517else
36518 as_basename=false
36519fi
36520
cristy8b350f62009-11-15 23:12:43 +000036521if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36522 as_dirname=dirname
36523else
36524 as_dirname=false
36525fi
cristy3ed852e2009-09-05 21:47:34 +000036526
cristy3ed852e2009-09-05 21:47:34 +000036527as_me=`$as_basename -- "$0" ||
36528$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36529 X"$0" : 'X\(//\)$' \| \
36530 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36531$as_echo X/"$0" |
36532 sed '/^.*\/\([^/][^/]*\)\/*$/{
36533 s//\1/
36534 q
36535 }
36536 /^X\/\(\/\/\)$/{
36537 s//\1/
36538 q
36539 }
36540 /^X\/\(\/\).*/{
36541 s//\1/
36542 q
36543 }
36544 s/.*/./; q'`
36545
cristy8b350f62009-11-15 23:12:43 +000036546# Avoid depending upon Character Ranges.
36547as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36548as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36549as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36550as_cr_digits='0123456789'
36551as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036552
36553ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036554case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036555-n*)
cristy8b350f62009-11-15 23:12:43 +000036556 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036557 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036558 xy) ECHO_C='\c';;
36559 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36560 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036561 esac;;
36562*)
36563 ECHO_N='-n';;
36564esac
cristy3ed852e2009-09-05 21:47:34 +000036565
36566rm -f conf$$ conf$$.exe conf$$.file
36567if test -d conf$$.dir; then
36568 rm -f conf$$.dir/conf$$.file
36569else
36570 rm -f conf$$.dir
36571 mkdir conf$$.dir 2>/dev/null
36572fi
36573if (echo >conf$$.file) 2>/dev/null; then
36574 if ln -s conf$$.file conf$$ 2>/dev/null; then
36575 as_ln_s='ln -s'
36576 # ... but there are two gotchas:
36577 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36578 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036579 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036580 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036581 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036582 elif ln conf$$.file conf$$ 2>/dev/null; then
36583 as_ln_s=ln
36584 else
cristy14fefe52012-05-21 00:59:18 +000036585 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036586 fi
36587else
cristy14fefe52012-05-21 00:59:18 +000036588 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036589fi
36590rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36591rmdir conf$$.dir 2>/dev/null
36592
cristy8b350f62009-11-15 23:12:43 +000036593
36594# as_fn_mkdir_p
36595# -------------
36596# Create "$as_dir" as a directory, including parents if necessary.
36597as_fn_mkdir_p ()
36598{
36599
36600 case $as_dir in #(
36601 -*) as_dir=./$as_dir;;
36602 esac
36603 test -d "$as_dir" || eval $as_mkdir_p || {
36604 as_dirs=
36605 while :; do
36606 case $as_dir in #(
36607 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36608 *) as_qdir=$as_dir;;
36609 esac
36610 as_dirs="'$as_qdir' $as_dirs"
36611 as_dir=`$as_dirname -- "$as_dir" ||
36612$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36613 X"$as_dir" : 'X\(//\)[^/]' \| \
36614 X"$as_dir" : 'X\(//\)$' \| \
36615 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36616$as_echo X"$as_dir" |
36617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36618 s//\1/
36619 q
36620 }
36621 /^X\(\/\/\)[^/].*/{
36622 s//\1/
36623 q
36624 }
36625 /^X\(\/\/\)$/{
36626 s//\1/
36627 q
36628 }
36629 /^X\(\/\).*/{
36630 s//\1/
36631 q
36632 }
36633 s/.*/./; q'`
36634 test -d "$as_dir" && break
36635 done
36636 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036637 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036638
36639
36640} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036641if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036642 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036643else
36644 test -d ./-p && rmdir ./-p
36645 as_mkdir_p=false
36646fi
36647
cristy14fefe52012-05-21 00:59:18 +000036648
36649# as_fn_executable_p FILE
36650# -----------------------
36651# Test if FILE is an executable regular file.
36652as_fn_executable_p ()
36653{
36654 test -f "$1" && test -x "$1"
36655} # as_fn_executable_p
36656as_test_x='test -x'
36657as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036658
36659# Sed expression to map a string onto a valid CPP name.
36660as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36661
36662# Sed expression to map a string onto a valid variable name.
36663as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36664
36665
36666exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036667## ----------------------------------- ##
36668## Main body of $CONFIG_STATUS script. ##
36669## ----------------------------------- ##
36670_ASEOF
36671test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036672
cristy8b350f62009-11-15 23:12:43 +000036673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36674# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036675# report actual input values of CONFIG_FILES etc. instead of their
36676# values after options handling.
36677ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036678This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036679generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036680
36681 CONFIG_FILES = $CONFIG_FILES
36682 CONFIG_HEADERS = $CONFIG_HEADERS
36683 CONFIG_LINKS = $CONFIG_LINKS
36684 CONFIG_COMMANDS = $CONFIG_COMMANDS
36685 $ $0 $@
36686
36687on `(hostname || uname -n) 2>/dev/null | sed 1q`
36688"
36689
36690_ACEOF
36691
36692case $ac_config_files in *"
36693"*) set x $ac_config_files; shift; ac_config_files=$*;;
36694esac
36695
36696case $ac_config_headers in *"
36697"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36698esac
36699
36700
36701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36702# Files that config.status was made for.
36703config_files="$ac_config_files"
36704config_headers="$ac_config_headers"
36705config_commands="$ac_config_commands"
36706
36707_ACEOF
36708
36709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36710ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036711\`$as_me' instantiates files and other configuration actions
36712from templates according to the current configuration. Unless the files
36713and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036714
cristy8b350f62009-11-15 23:12:43 +000036715Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036716
36717 -h, --help print this help, then exit
36718 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036719 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036720 -q, --quiet, --silent
36721 do not print progress messages
36722 -d, --debug don't remove temporary files
36723 --recheck update $as_me by reconfiguring in the same conditions
36724 --file=FILE[:TEMPLATE]
36725 instantiate the configuration file FILE
36726 --header=FILE[:TEMPLATE]
36727 instantiate the configuration header FILE
36728
36729Configuration files:
36730$config_files
36731
36732Configuration headers:
36733$config_headers
36734
36735Configuration commands:
36736$config_commands
36737
cristy8b350f62009-11-15 23:12:43 +000036738Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036739
36740_ACEOF
36741cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036742ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036743ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036744ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036745configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036746 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036747
cristy14fefe52012-05-21 00:59:18 +000036748Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036749This config.status script is free software; the Free Software Foundation
36750gives unlimited permission to copy, distribute and modify it."
36751
36752ac_pwd='$ac_pwd'
36753srcdir='$srcdir'
36754INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036755MKDIR_P='$MKDIR_P'
36756AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036757test -n "\$AWK" || AWK=awk
36758_ACEOF
36759
36760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36761# The default lists apply if the user does not specify any file.
36762ac_need_defaults=:
36763while test $# != 0
36764do
36765 case $1 in
cristyda16f162011-02-19 23:52:17 +000036766 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036767 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36768 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36769 ac_shift=:
36770 ;;
cristyda16f162011-02-19 23:52:17 +000036771 --*=)
36772 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36773 ac_optarg=
36774 ac_shift=:
36775 ;;
cristy3ed852e2009-09-05 21:47:34 +000036776 *)
36777 ac_option=$1
36778 ac_optarg=$2
36779 ac_shift=shift
36780 ;;
36781 esac
36782
36783 case $ac_option in
36784 # Handling of the options.
36785 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36786 ac_cs_recheck=: ;;
36787 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36788 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036789 --config | --confi | --conf | --con | --co | --c )
36790 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036791 --debug | --debu | --deb | --de | --d | -d )
36792 debug=: ;;
36793 --file | --fil | --fi | --f )
36794 $ac_shift
36795 case $ac_optarg in
36796 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036797 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036798 esac
cristy8b350f62009-11-15 23:12:43 +000036799 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036800 ac_need_defaults=false;;
36801 --header | --heade | --head | --hea )
36802 $ac_shift
36803 case $ac_optarg in
36804 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36805 esac
cristy8b350f62009-11-15 23:12:43 +000036806 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036807 ac_need_defaults=false;;
36808 --he | --h)
36809 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036810 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036811Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036812 --help | --hel | -h )
36813 $as_echo "$ac_cs_usage"; exit ;;
36814 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36815 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36816 ac_cs_silent=: ;;
36817
36818 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036819 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036820Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036821
cristy8b350f62009-11-15 23:12:43 +000036822 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036823 ac_need_defaults=false ;;
36824
36825 esac
36826 shift
36827done
36828
36829ac_configure_extra_args=
36830
36831if $ac_cs_silent; then
36832 exec 6>/dev/null
36833 ac_configure_extra_args="$ac_configure_extra_args --silent"
36834fi
36835
36836_ACEOF
36837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36838if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036839 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036840 shift
36841 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36842 CONFIG_SHELL='$SHELL'
36843 export CONFIG_SHELL
36844 exec "\$@"
36845fi
36846
36847_ACEOF
36848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36849exec 5>>config.log
36850{
36851 echo
36852 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36853## Running $as_me. ##
36854_ASBOX
36855 $as_echo "$ac_log"
36856} >&5
36857
36858_ACEOF
36859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036860#
36861# INIT-COMMANDS
36862#
36863PACKAGE="$PACKAGE"
36864AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36865
36866
36867# The HP-UX ksh and POSIX shell print the target directory to stdout
36868# if CDPATH is set.
36869(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36870
36871sed_quote_subst='$sed_quote_subst'
36872double_quote_subst='$double_quote_subst'
36873delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036874SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36875Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36876GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36877EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36878FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36879SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36880ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36881LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36882macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36883macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36884AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36885DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36886OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36887enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36888enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36889pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36890enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036891PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036892host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36893host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36894host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36895build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36896build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36897build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36898NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36899LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36900max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36901ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36902exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36903lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36904lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36905lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036906lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36907lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036908reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36909reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36910deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36911file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036912file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36913want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36914sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036915AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36916AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036917archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036918STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36919RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36920old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36921old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36922old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36923lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36924CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36925CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36926compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36927GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36928lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36929lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36930lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36931lt_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 +000036932nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36933lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036934objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36935MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36936lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036937lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036938lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036939lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36940lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36941need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036942MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036943DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36944NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36945LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36946OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36947OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36948libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36949shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36950extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36951archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36952enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36953export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36954whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36955compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36956old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36957old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36958archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36959archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36960module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36961module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36962with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36963allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36964no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36965hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036966hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36967hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36968hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36969hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36970hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36971hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36972inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36973link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036974always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36975export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36976exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36977include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36978prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036979postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036980file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36981variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36982need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36983need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36984version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36985runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36986shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36987shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36988libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36989library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36990soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36991install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36992postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36993postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36994finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36995finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36996hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36997sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36998sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36999hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37000enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37001enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37002enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37003old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37004striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37005compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37006predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37007postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37008predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37009postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37010compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37011LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37012reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37013reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37014old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37015compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37016GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37017lt_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 +000037018lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037019lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037020lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37021lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37022archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37023enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37024export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37025whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37026compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37027old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37028old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37029archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37030archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37031module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37032module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37033with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37034allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37035no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37036hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037037hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37038hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37039hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37040hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37041hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37042hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37043inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37044link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037045always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37046export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37047exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37048include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37049prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037050postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037051file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37052hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37053compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37054predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37055postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37056predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37057postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37058compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037059
37060LTCC='$LTCC'
37061LTCFLAGS='$LTCFLAGS'
37062compiler='$compiler_DEFAULT'
37063
cristy0c60a692010-11-04 01:09:47 +000037064# A function that is used when there is no print builtin or printf.
37065func_fallback_echo ()
37066{
37067 eval 'cat <<_LTECHO_EOF
37068\$1
37069_LTECHO_EOF'
37070}
37071
cristy73bd4a52010-10-05 11:24:23 +000037072# Quote evaled strings.
37073for var in SED \
37074GREP \
37075EGREP \
37076FGREP \
cristy0c60a692010-11-04 01:09:47 +000037077SHELL \
37078ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037079LD \
cristy0c60a692010-11-04 01:09:47 +000037080AS \
37081DLLTOOL \
37082OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037083PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037084NM \
37085LN_S \
37086lt_SP2NL \
37087lt_NL2SP \
37088reload_flag \
37089deplibs_check_method \
37090file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037091file_magic_glob \
37092want_nocaseglob \
37093sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037094AR \
37095AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037096archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037097STRIP \
37098RANLIB \
37099CC \
37100CFLAGS \
37101compiler \
37102lt_cv_sys_global_symbol_pipe \
37103lt_cv_sys_global_symbol_to_cdecl \
37104lt_cv_sys_global_symbol_to_c_name_address \
37105lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037106nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037107lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037108lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037109lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037110lt_prog_compiler_static \
37111lt_cv_prog_compiler_c_o \
37112need_locks \
cristyda16f162011-02-19 23:52:17 +000037113MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037114DSYMUTIL \
37115NMEDIT \
37116LIPO \
37117OTOOL \
37118OTOOL64 \
37119shrext_cmds \
37120export_dynamic_flag_spec \
37121whole_archive_flag_spec \
37122compiler_needs_object \
37123with_gnu_ld \
37124allow_undefined_flag \
37125no_undefined_flag \
37126hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037127hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037128exclude_expsyms \
37129include_expsyms \
37130file_list_spec \
37131variables_saved_for_relink \
37132libname_spec \
37133library_names_spec \
37134soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037135install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037136finish_eval \
37137old_striplib \
37138striplib \
37139compiler_lib_search_dirs \
37140predep_objects \
37141postdep_objects \
37142predeps \
37143postdeps \
37144compiler_lib_search_path \
37145LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037146reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037147compiler_CXX \
37148lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037149lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037150lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037151lt_prog_compiler_static_CXX \
37152lt_cv_prog_compiler_c_o_CXX \
37153export_dynamic_flag_spec_CXX \
37154whole_archive_flag_spec_CXX \
37155compiler_needs_object_CXX \
37156with_gnu_ld_CXX \
37157allow_undefined_flag_CXX \
37158no_undefined_flag_CXX \
37159hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037160hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037161exclude_expsyms_CXX \
37162include_expsyms_CXX \
37163file_list_spec_CXX \
37164compiler_lib_search_dirs_CXX \
37165predep_objects_CXX \
37166postdep_objects_CXX \
37167predeps_CXX \
37168postdeps_CXX \
37169compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037170 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037171 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037172 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037173 ;;
37174 *)
37175 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37176 ;;
37177 esac
37178done
37179
37180# Double-quote double-evaled strings.
37181for var in reload_cmds \
37182old_postinstall_cmds \
37183old_postuninstall_cmds \
37184old_archive_cmds \
37185extract_expsyms_cmds \
37186old_archive_from_new_cmds \
37187old_archive_from_expsyms_cmds \
37188archive_cmds \
37189archive_expsym_cmds \
37190module_cmds \
37191module_expsym_cmds \
37192export_symbols_cmds \
37193prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037194postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037195postinstall_cmds \
37196postuninstall_cmds \
37197finish_cmds \
37198sys_lib_search_path_spec \
37199sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037200reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037201old_archive_cmds_CXX \
37202old_archive_from_new_cmds_CXX \
37203old_archive_from_expsyms_cmds_CXX \
37204archive_cmds_CXX \
37205archive_expsym_cmds_CXX \
37206module_cmds_CXX \
37207module_expsym_cmds_CXX \
37208export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037209prelink_cmds_CXX \
37210postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037211 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037212 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037213 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037214 ;;
37215 *)
37216 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37217 ;;
37218 esac
37219done
37220
cristy73bd4a52010-10-05 11:24:23 +000037221ac_aux_dir='$ac_aux_dir'
37222xsi_shell='$xsi_shell'
37223lt_shell_append='$lt_shell_append'
37224
37225# See if we are running on zsh, and set the options which allow our
37226# commands through without removal of \ escapes INIT.
37227if test -n "\${ZSH_VERSION+set}" ; then
37228 setopt NO_GLOB_SUBST
37229fi
37230
37231
37232 PACKAGE='$PACKAGE'
37233 VERSION='$VERSION'
37234 TIMESTAMP='$TIMESTAMP'
37235 RM='$RM'
37236 ofile='$ofile'
37237
37238
37239
37240
37241
37242
cristy3ed852e2009-09-05 21:47:34 +000037243_ACEOF
37244
37245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37246
37247# Handling of arguments.
37248for ac_config_target in $ac_config_targets
37249do
37250 case $ac_config_target in
37251 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037252 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037253 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037254 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37255 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37256 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37257 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37258 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037259 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037260 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037261 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37262 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37263 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37264 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37265 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037266 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037267 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037268 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37269 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37270 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037271 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37272 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037273 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037274 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037275 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037276 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037277 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37278 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37279 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37280 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037281 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37282 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37283 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37284 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37285 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37286 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37287 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37288 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37289 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37290 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37291 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37292 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037293 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37294 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037295 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37296 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037297 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037298 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037299 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037300 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037301 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37302 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37303
cristy98dddb52010-11-04 00:30:15 +000037304 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037305 esac
37306done
37307
37308
37309# If the user did not use the arguments to specify the items to instantiate,
37310# then the envvar interface is used. Set only those that are not.
37311# We use the long form for the default assignment because of an extremely
37312# bizarre bug on SunOS 4.1.3.
37313if $ac_need_defaults; then
37314 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37315 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37316 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37317fi
37318
37319# Have a temporary directory for convenience. Make it in the build tree
37320# simply because there is no reason against having it here, and in addition,
37321# creating and moving files from /tmp can sometimes cause problems.
37322# Hook for its removal unless debugging.
37323# Note that there is a small window in which the directory will not be cleaned:
37324# after its creation but before its name has been assigned to `$tmp'.
37325$debug ||
37326{
cristyda16f162011-02-19 23:52:17 +000037327 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037328 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037329 : "${ac_tmp:=$tmp}"
37330 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037331' 0
cristy8b350f62009-11-15 23:12:43 +000037332 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037333}
37334# Create a (secure) tmp directory for tmp files.
37335
37336{
37337 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037338 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037339} ||
37340{
37341 tmp=./conf$$-$RANDOM
37342 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037343} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037344ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037345
37346# Set up the scripts for CONFIG_FILES section.
37347# No need to generate them if there are no CONFIG_FILES.
37348# This happens for instance with `./config.status config.h'.
37349if test -n "$CONFIG_FILES"; then
37350
37351
cristy8b350f62009-11-15 23:12:43 +000037352ac_cr=`echo X | tr X '\015'`
37353# On cygwin, bash can eat \r inside `` if the user requested igncr.
37354# But we know of no other shell where ac_cr would be empty at this
37355# point, so we can use a bashism as a fallback.
37356if test "x$ac_cr" = x; then
37357 eval ac_cr=\$\'\\r\'
37358fi
cristy3ed852e2009-09-05 21:47:34 +000037359ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37360if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037361 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037362else
37363 ac_cs_awk_cr=$ac_cr
37364fi
37365
cristyda16f162011-02-19 23:52:17 +000037366echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037367_ACEOF
37368
37369
37370{
37371 echo "cat >conf$$subs.awk <<_ACEOF" &&
37372 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37373 echo "_ACEOF"
37374} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037375 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37376ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037377ac_delim='%!_!# '
37378for ac_last_try in false false false false false :; do
37379 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037380 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037381
37382 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37383 if test $ac_delim_n = $ac_delim_num; then
37384 break
37385 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037386 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037387 else
37388 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37389 fi
37390done
37391rm -f conf$$subs.sh
37392
37393cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037394cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037395_ACEOF
37396sed -n '
37397h
37398s/^/S["/; s/!.*/"]=/
37399p
37400g
37401s/^[^!]*!//
37402:repl
37403t repl
37404s/'"$ac_delim"'$//
37405t delim
37406:nl
37407h
cristycd4c5312009-11-22 01:19:08 +000037408s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037409t more1
37410s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37411p
37412n
37413b repl
37414:more1
37415s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37416p
37417g
37418s/.\{148\}//
37419t nl
37420:delim
37421h
cristycd4c5312009-11-22 01:19:08 +000037422s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037423t more2
37424s/["\\]/\\&/g; s/^/"/; s/$/"/
37425p
37426b
37427:more2
37428s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37429p
37430g
37431s/.\{148\}//
37432t delim
37433' <conf$$subs.awk | sed '
37434/^[^""]/{
37435 N
37436 s/\n//
37437}
37438' >>$CONFIG_STATUS || ac_write_fail=1
37439rm -f conf$$subs.awk
37440cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37441_ACAWK
cristyda16f162011-02-19 23:52:17 +000037442cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037443 for (key in S) S_is_set[key] = 1
37444 FS = ""
37445
37446}
37447{
37448 line = $ 0
37449 nfields = split(line, field, "@")
37450 substed = 0
37451 len = length(field[1])
37452 for (i = 2; i < nfields; i++) {
37453 key = field[i]
37454 keylen = length(key)
37455 if (S_is_set[key]) {
37456 value = S[key]
37457 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37458 len += length(value) + length(field[++i])
37459 substed = 1
37460 } else
37461 len += 1 + keylen
37462 }
37463
37464 print line
37465}
37466
37467_ACAWK
37468_ACEOF
37469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37470if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37471 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37472else
37473 cat
cristyda16f162011-02-19 23:52:17 +000037474fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037475 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037476_ACEOF
37477
cristy98dddb52010-11-04 00:30:15 +000037478# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37479# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037480# trailing colons and then remove the whole line if VPATH becomes empty
37481# (actually we leave an empty line to preserve line numbers).
37482if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037483 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37484h
37485s///
37486s/^/:/
37487s/[ ]*$/:/
37488s/:\$(srcdir):/:/g
37489s/:\${srcdir}:/:/g
37490s/:@srcdir@:/:/g
37491s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037492s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037493x
37494s/\(=[ ]*\).*/\1/
37495G
37496s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037497s/^[^=]*=[ ]*$//
37498}'
37499fi
37500
37501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37502fi # test -n "$CONFIG_FILES"
37503
37504# Set up the scripts for CONFIG_HEADERS section.
37505# No need to generate them if there are no CONFIG_HEADERS.
37506# This happens for instance with `./config.status Makefile'.
37507if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037508cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037509BEGIN {
37510_ACEOF
37511
37512# Transform confdefs.h into an awk script `defines.awk', embedded as
37513# here-document in config.status, that substitutes the proper values into
37514# config.h.in to produce config.h.
37515
37516# Create a delimiter string that does not exist in confdefs.h, to ease
37517# handling of long lines.
37518ac_delim='%!_!# '
37519for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037520 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37521 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037522 break
37523 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037524 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037525 else
37526 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37527 fi
37528done
37529
37530# For the awk script, D is an array of macro values keyed by name,
37531# likewise P contains macro parameters if any. Preserve backslash
37532# newline sequences.
37533
37534ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37535sed -n '
37536s/.\{148\}/&'"$ac_delim"'/g
37537t rset
37538:rset
37539s/^[ ]*#[ ]*define[ ][ ]*/ /
37540t def
37541d
37542:def
37543s/\\$//
37544t bsnl
37545s/["\\]/\\&/g
37546s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37547D["\1"]=" \3"/p
37548s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37549d
37550:bsnl
37551s/["\\]/\\&/g
37552s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37553D["\1"]=" \3\\\\\\n"\\/p
37554t cont
37555s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37556t cont
37557d
37558:cont
37559n
37560s/.\{148\}/&'"$ac_delim"'/g
37561t clear
37562:clear
37563s/\\$//
37564t bsnlc
37565s/["\\]/\\&/g; s/^/"/; s/$/"/p
37566d
37567:bsnlc
37568s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37569b cont
37570' <confdefs.h | sed '
37571s/'"$ac_delim"'/"\\\
37572"/g' >>$CONFIG_STATUS || ac_write_fail=1
37573
37574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37575 for (key in D) D_is_set[key] = 1
37576 FS = ""
37577}
37578/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37579 line = \$ 0
37580 split(line, arg, " ")
37581 if (arg[1] == "#") {
37582 defundef = arg[2]
37583 mac1 = arg[3]
37584 } else {
37585 defundef = substr(arg[1], 2)
37586 mac1 = arg[2]
37587 }
37588 split(mac1, mac2, "(") #)
37589 macro = mac2[1]
37590 prefix = substr(line, 1, index(line, defundef) - 1)
37591 if (D_is_set[macro]) {
37592 # Preserve the white space surrounding the "#".
37593 print prefix "define", macro P[macro] D[macro]
37594 next
37595 } else {
37596 # Replace #undef with comments. This is necessary, for example,
37597 # in the case of _POSIX_SOURCE, which is predefined and required
37598 # on some systems where configure will not decide to define it.
37599 if (defundef == "undef") {
37600 print "/*", prefix defundef, macro, "*/"
37601 next
37602 }
37603 }
37604}
37605{ print }
37606_ACAWK
37607_ACEOF
37608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037609 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037610fi # test -n "$CONFIG_HEADERS"
37611
37612
37613eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37614shift
37615for ac_tag
37616do
37617 case $ac_tag in
37618 :[FHLC]) ac_mode=$ac_tag; continue;;
37619 esac
37620 case $ac_mode$ac_tag in
37621 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037622 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037623 :[FH]-) ac_tag=-:-;;
37624 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37625 esac
37626 ac_save_IFS=$IFS
37627 IFS=:
37628 set x $ac_tag
37629 IFS=$ac_save_IFS
37630 shift
37631 ac_file=$1
37632 shift
37633
37634 case $ac_mode in
37635 :L) ac_source=$1;;
37636 :[FH])
37637 ac_file_inputs=
37638 for ac_f
37639 do
37640 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037641 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037642 *) # Look for the file first in the build tree, then in the source tree
37643 # (if the path is not absolute). The absolute path cannot be DOS-style,
37644 # because $ac_f cannot contain `:'.
37645 test -f "$ac_f" ||
37646 case $ac_f in
37647 [\\/$]*) false;;
37648 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37649 esac ||
cristy98dddb52010-11-04 00:30:15 +000037650 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037651 esac
37652 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037653 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037654 done
37655
37656 # Let's still pretend it is `configure' which instantiates (i.e., don't
37657 # use $as_me), people would be surprised to read:
37658 # /* config.h. Generated by config.status. */
37659 configure_input='Generated from '`
37660 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37661 `' by configure.'
37662 if test x"$ac_file" != x-; then
37663 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037664 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037665$as_echo "$as_me: creating $ac_file" >&6;}
37666 fi
37667 # Neutralize special characters interpreted by sed in replacement strings.
37668 case $configure_input in #(
37669 *\&* | *\|* | *\\* )
37670 ac_sed_conf_input=`$as_echo "$configure_input" |
37671 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37672 *) ac_sed_conf_input=$configure_input;;
37673 esac
37674
37675 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037676 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037677 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037678 esac
37679 ;;
37680 esac
37681
37682 ac_dir=`$as_dirname -- "$ac_file" ||
37683$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37684 X"$ac_file" : 'X\(//\)[^/]' \| \
37685 X"$ac_file" : 'X\(//\)$' \| \
37686 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37687$as_echo X"$ac_file" |
37688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37689 s//\1/
37690 q
37691 }
37692 /^X\(\/\/\)[^/].*/{
37693 s//\1/
37694 q
37695 }
37696 /^X\(\/\/\)$/{
37697 s//\1/
37698 q
37699 }
37700 /^X\(\/\).*/{
37701 s//\1/
37702 q
37703 }
37704 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037705 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037706 ac_builddir=.
37707
37708case "$ac_dir" in
37709.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37710*)
37711 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37712 # A ".." for each directory in $ac_dir_suffix.
37713 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37714 case $ac_top_builddir_sub in
37715 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37716 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37717 esac ;;
37718esac
37719ac_abs_top_builddir=$ac_pwd
37720ac_abs_builddir=$ac_pwd$ac_dir_suffix
37721# for backward compatibility:
37722ac_top_builddir=$ac_top_build_prefix
37723
37724case $srcdir in
37725 .) # We are building in place.
37726 ac_srcdir=.
37727 ac_top_srcdir=$ac_top_builddir_sub
37728 ac_abs_top_srcdir=$ac_pwd ;;
37729 [\\/]* | ?:[\\/]* ) # Absolute name.
37730 ac_srcdir=$srcdir$ac_dir_suffix;
37731 ac_top_srcdir=$srcdir
37732 ac_abs_top_srcdir=$srcdir ;;
37733 *) # Relative name.
37734 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37735 ac_top_srcdir=$ac_top_build_prefix$srcdir
37736 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37737esac
37738ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37739
37740
37741 case $ac_mode in
37742 :F)
37743 #
37744 # CONFIG_FILE
37745 #
37746
37747 case $INSTALL in
37748 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37749 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37750 esac
cristy73bd4a52010-10-05 11:24:23 +000037751 ac_MKDIR_P=$MKDIR_P
37752 case $MKDIR_P in
37753 [\\/$]* | ?:[\\/]* ) ;;
37754 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37755 esac
cristy3ed852e2009-09-05 21:47:34 +000037756_ACEOF
37757
37758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37759# If the template does not know about datarootdir, expand it.
37760# FIXME: This hack should be removed a few years after 2.60.
37761ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037762ac_sed_dataroot='
37763/datarootdir/ {
37764 p
37765 q
37766}
37767/@datadir@/p
37768/@docdir@/p
37769/@infodir@/p
37770/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037771/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037772case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37773*datarootdir*) ac_datarootdir_seen=yes;;
37774*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037776$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37777_ACEOF
37778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37779 ac_datarootdir_hack='
37780 s&@datadir@&$datadir&g
37781 s&@docdir@&$docdir&g
37782 s&@infodir@&$infodir&g
37783 s&@localedir@&$localedir&g
37784 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037785 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037786esac
37787_ACEOF
37788
37789# Neutralize VPATH when `$srcdir' = `.'.
37790# Shell code in configure.ac might set extrasub.
37791# FIXME: do we really want to maintain this feature?
37792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37793ac_sed_extra="$ac_vpsub
37794$extrasub
37795_ACEOF
37796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37797:t
37798/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37799s|@configure_input@|$ac_sed_conf_input|;t t
37800s&@top_builddir@&$ac_top_builddir_sub&;t t
37801s&@top_build_prefix@&$ac_top_build_prefix&;t t
37802s&@srcdir@&$ac_srcdir&;t t
37803s&@abs_srcdir@&$ac_abs_srcdir&;t t
37804s&@top_srcdir@&$ac_top_srcdir&;t t
37805s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37806s&@builddir@&$ac_builddir&;t t
37807s&@abs_builddir@&$ac_abs_builddir&;t t
37808s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37809s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037810s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037811$ac_datarootdir_hack
37812"
cristyda16f162011-02-19 23:52:17 +000037813eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37814 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037815
37816test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037817 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37818 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37819 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037821which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037822$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037823which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037824
cristyda16f162011-02-19 23:52:17 +000037825 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037826 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037827 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37828 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037829 esac \
cristy98dddb52010-11-04 00:30:15 +000037830 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037831 ;;
37832 :H)
37833 #
37834 # CONFIG_HEADER
37835 #
37836 if test x"$ac_file" != x-; then
37837 {
37838 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037839 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37840 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037842 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037843 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037844$as_echo "$as_me: $ac_file is unchanged" >&6;}
37845 else
37846 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037847 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037848 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037849 fi
37850 else
37851 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037852 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037853 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037854 fi
cristy73bd4a52010-10-05 11:24:23 +000037855# Compute "$ac_file"'s index in $config_headers.
37856_am_arg="$ac_file"
37857_am_stamp_count=1
37858for _am_header in $config_headers :; do
37859 case $_am_header in
37860 $_am_arg | $_am_arg:* )
37861 break ;;
37862 * )
37863 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37864 esac
37865done
37866echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37867$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37868 X"$_am_arg" : 'X\(//\)[^/]' \| \
37869 X"$_am_arg" : 'X\(//\)$' \| \
37870 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37871$as_echo X"$_am_arg" |
37872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37873 s//\1/
37874 q
37875 }
37876 /^X\(\/\/\)[^/].*/{
37877 s//\1/
37878 q
37879 }
37880 /^X\(\/\/\)$/{
37881 s//\1/
37882 q
37883 }
37884 /^X\(\/\).*/{
37885 s//\1/
37886 q
37887 }
37888 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037889 ;;
37890
cristy8b350f62009-11-15 23:12:43 +000037891 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037892$as_echo "$as_me: executing $ac_file commands" >&6;}
37893 ;;
37894 esac
37895
37896
37897 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037898 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037899ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37900ac_prefix_conf_PKG=`echo MagickCore`
37901ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37902ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37903ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37904if test ".$ac_prefix_conf_INP" = "."; then
37905 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37906 case "$ac_file" in
37907 *.h) ac_prefix_conf_INP=$ac_file ;;
37908 *)
37909 esac
37910 test ".$ac_prefix_conf_INP" != "." && break
37911 done
37912fi
37913if test ".$ac_prefix_conf_INP" = "."; then
37914 case "$ac_prefix_conf_OUT" in
37915 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37916 ;;
37917 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37918 ;;
37919 *) ac_prefix_conf_INP=config.h
37920 ;;
37921 esac
37922fi
37923if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037924 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037925else
37926 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37927 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37928 fi fi
37929 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37930$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37931 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037932 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37933 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37934 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37935 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37936 $as_echo "#endif/" >> conftest.prefix
37937 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37938 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37939 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037940 # now executing _script on _DEF input to create _OUT output file
37941 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37942 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37943 echo ' ' >>$tmp/pconfig.h
37944 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37945
37946 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37947 echo ' ' >>$tmp/pconfig.h
37948 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37949 echo "#endif" >>$tmp/pconfig.h
37950 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37951 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37952$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37953 else
37954 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37955$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37956 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37957 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37958 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37959$as_echo X"$ac_prefix_conf_OUT" |
37960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37961 s//\1/
37962 q
37963 }
37964 /^X\(\/\/\)[^/].*/{
37965 s//\1/
37966 q
37967 }
37968 /^X\(\/\/\)$/{
37969 s//\1/
37970 q
37971 }
37972 /^X\(\/\).*/{
37973 s//\1/
37974 q
37975 }
37976 s/.*/./; q'`
37977 as_dir="$ac_dir"; as_fn_mkdir_p
37978 rm -f "$ac_prefix_conf_OUT"
37979 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37980 fi
37981 cp conftest.prefix _configs.sed
37982 else
cristy98dddb52010-11-04 00:30:15 +000037983 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 +000037984 fi
37985 rm -f conftest.*
37986fi
37987 ;;
37988 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037989 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037990 # are listed without --file. Let's play safe and only enable the eval
37991 # if we detect the quoting.
37992 case $CONFIG_FILES in
37993 *\'*) eval set x "$CONFIG_FILES" ;;
37994 *) set x $CONFIG_FILES ;;
37995 esac
37996 shift
37997 for mf
37998 do
37999 # Strip MF so we end up with the name of the file.
38000 mf=`echo "$mf" | sed -e 's/:.*$//'`
38001 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038002 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038003 # some people rename them; so instead we look at the file content.
38004 # Grep'ing the first line is not enough: some people post-process
38005 # each Makefile.in and add a new line on top of each file to say so.
38006 # Grep'ing the whole file is not good either: AIX grep has a line
38007 # limit of 2048, but all sed's we know have understand at least 4000.
38008 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38009 dirpart=`$as_dirname -- "$mf" ||
38010$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38011 X"$mf" : 'X\(//\)[^/]' \| \
38012 X"$mf" : 'X\(//\)$' \| \
38013 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38014$as_echo X"$mf" |
38015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38016 s//\1/
38017 q
38018 }
38019 /^X\(\/\/\)[^/].*/{
38020 s//\1/
38021 q
38022 }
38023 /^X\(\/\/\)$/{
38024 s//\1/
38025 q
38026 }
38027 /^X\(\/\).*/{
38028 s//\1/
38029 q
38030 }
38031 s/.*/./; q'`
38032 else
38033 continue
38034 fi
38035 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038036 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038037 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38038 test -z "$DEPDIR" && continue
38039 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038040 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038041 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038042 # Find all dependency output files, they are included files with
38043 # $(DEPDIR) in their names. We invoke sed twice because it is the
38044 # simplest approach to changing $(DEPDIR) to its actual value in the
38045 # expansion.
38046 for file in `sed -n "
38047 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038048 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038049 # Make sure the directory exists.
38050 test -f "$dirpart/$file" && continue
38051 fdir=`$as_dirname -- "$file" ||
38052$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38053 X"$file" : 'X\(//\)[^/]' \| \
38054 X"$file" : 'X\(//\)$' \| \
38055 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38056$as_echo X"$file" |
38057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38058 s//\1/
38059 q
38060 }
38061 /^X\(\/\/\)[^/].*/{
38062 s//\1/
38063 q
38064 }
38065 /^X\(\/\/\)$/{
38066 s//\1/
38067 q
38068 }
38069 /^X\(\/\).*/{
38070 s//\1/
38071 q
38072 }
38073 s/.*/./; q'`
38074 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38075 # echo "creating $dirpart/$file"
38076 echo '# dummy' > "$dirpart/$file"
38077 done
38078 done
38079}
38080 ;;
38081 "libtool":C)
38082
38083 # See if we are running on zsh, and set the options which allow our
38084 # commands through without removal of \ escapes.
38085 if test -n "${ZSH_VERSION+set}" ; then
38086 setopt NO_GLOB_SUBST
38087 fi
38088
38089 cfgfile="${ofile}T"
38090 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38091 $RM "$cfgfile"
38092
38093 cat <<_LT_EOF >> "$cfgfile"
38094#! $SHELL
38095
38096# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38097# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38098# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38099# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38100#
38101# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038102# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38103# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038104# Written by Gordon Matzigkeit, 1996
38105#
38106# This file is part of GNU Libtool.
38107#
38108# GNU Libtool is free software; you can redistribute it and/or
38109# modify it under the terms of the GNU General Public License as
38110# published by the Free Software Foundation; either version 2 of
38111# the License, or (at your option) any later version.
38112#
38113# As a special exception to the GNU General Public License,
38114# if you distribute this file as part of a program or library that
38115# is built using GNU Libtool, you may include this file under the
38116# same distribution terms that you use for the rest of that program.
38117#
38118# GNU Libtool is distributed in the hope that it will be useful,
38119# but WITHOUT ANY WARRANTY; without even the implied warranty of
38120# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38121# GNU General Public License for more details.
38122#
38123# You should have received a copy of the GNU General Public License
38124# along with GNU Libtool; see the file COPYING. If not, a copy
38125# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38126# obtained by writing to the Free Software Foundation, Inc.,
38127# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38128
38129
38130# The names of the tagged configurations supported by this script.
38131available_tags="CXX "
38132
38133# ### BEGIN LIBTOOL CONFIG
38134
38135# A sed program that does not truncate output.
38136SED=$lt_SED
38137
38138# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38139Xsed="\$SED -e 1s/^X//"
38140
38141# A grep program that handles long lines.
38142GREP=$lt_GREP
38143
38144# An ERE matcher.
38145EGREP=$lt_EGREP
38146
38147# A literal string matcher.
38148FGREP=$lt_FGREP
38149
cristy0c60a692010-11-04 01:09:47 +000038150# Shell to use when invoking shell scripts.
38151SHELL=$lt_SHELL
38152
38153# An echo program that protects backslashes.
38154ECHO=$lt_ECHO
38155
cristy73bd4a52010-10-05 11:24:23 +000038156# Which release of libtool.m4 was used?
38157macro_version=$macro_version
38158macro_revision=$macro_revision
38159
38160# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038161AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038162
38163# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038164DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038165
38166# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038167OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038168
38169# Whether or not to build shared libraries.
38170build_libtool_libs=$enable_shared
38171
38172# Whether or not to build static libraries.
38173build_old_libs=$enable_static
38174
38175# What type of objects to build.
38176pic_mode=$pic_mode
38177
38178# Whether or not to optimize for fast installation.
38179fast_install=$enable_fast_install
38180
cristy99bd5232011-12-07 14:38:20 +000038181# The PATH separator for the build system.
38182PATH_SEPARATOR=$lt_PATH_SEPARATOR
38183
cristy73bd4a52010-10-05 11:24:23 +000038184# The host system.
38185host_alias=$host_alias
38186host=$host
38187host_os=$host_os
38188
38189# The build system.
38190build_alias=$build_alias
38191build=$build
38192build_os=$build_os
38193
38194# A BSD- or MS-compatible name lister.
38195NM=$lt_NM
38196
38197# Whether we need soft or hard links.
38198LN_S=$lt_LN_S
38199
38200# What is the maximum length of a command?
38201max_cmd_len=$max_cmd_len
38202
38203# Object file suffix (normally "o").
38204objext=$ac_objext
38205
38206# Executable file suffix (normally "").
38207exeext=$exeext
38208
38209# whether the shell understands "unset".
38210lt_unset=$lt_unset
38211
38212# turn spaces into newlines.
38213SP2NL=$lt_lt_SP2NL
38214
38215# turn newlines into spaces.
38216NL2SP=$lt_lt_NL2SP
38217
cristyda16f162011-02-19 23:52:17 +000038218# convert \$build file names to \$host format.
38219to_host_file_cmd=$lt_cv_to_host_file_cmd
38220
38221# convert \$build files to toolchain format.
38222to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38223
cristy73bd4a52010-10-05 11:24:23 +000038224# Method to check whether dependent libraries are shared objects.
38225deplibs_check_method=$lt_deplibs_check_method
38226
cristyda16f162011-02-19 23:52:17 +000038227# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038228file_magic_cmd=$lt_file_magic_cmd
38229
cristyda16f162011-02-19 23:52:17 +000038230# How to find potential files when deplibs_check_method = "file_magic".
38231file_magic_glob=$lt_file_magic_glob
38232
38233# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38234want_nocaseglob=$lt_want_nocaseglob
38235
38236# Command to associate shared and link libraries.
38237sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38238
cristy73bd4a52010-10-05 11:24:23 +000038239# The archiver.
38240AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038241
38242# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038243AR_FLAGS=$lt_AR_FLAGS
38244
cristyda16f162011-02-19 23:52:17 +000038245# How to feed a file listing to the archiver.
38246archiver_list_spec=$lt_archiver_list_spec
38247
cristy73bd4a52010-10-05 11:24:23 +000038248# A symbol stripping program.
38249STRIP=$lt_STRIP
38250
38251# Commands used to install an old-style archive.
38252RANLIB=$lt_RANLIB
38253old_postinstall_cmds=$lt_old_postinstall_cmds
38254old_postuninstall_cmds=$lt_old_postuninstall_cmds
38255
cristy0c60a692010-11-04 01:09:47 +000038256# Whether to use a lock for old archive extraction.
38257lock_old_archive_extraction=$lock_old_archive_extraction
38258
cristy73bd4a52010-10-05 11:24:23 +000038259# A C compiler.
38260LTCC=$lt_CC
38261
38262# LTCC compiler flags.
38263LTCFLAGS=$lt_CFLAGS
38264
38265# Take the output of nm and produce a listing of raw symbols and C names.
38266global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38267
38268# Transform the output of nm in a proper C declaration.
38269global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38270
38271# Transform the output of nm in a C name address pair.
38272global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38273
38274# Transform the output of nm in a C name address pair when lib prefix is needed.
38275global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38276
cristyda16f162011-02-19 23:52:17 +000038277# Specify filename containing input files for \$NM.
38278nm_file_list_spec=$lt_nm_file_list_spec
38279
38280# The root where to search for dependent libraries,and in which our libraries should be installed.
38281lt_sysroot=$lt_sysroot
38282
cristy73bd4a52010-10-05 11:24:23 +000038283# The name of the directory that contains temporary libtool files.
38284objdir=$objdir
38285
cristy73bd4a52010-10-05 11:24:23 +000038286# Used to examine libraries when file_magic_cmd begins with "file".
38287MAGIC_CMD=$MAGIC_CMD
38288
38289# Must we lock files when doing compilation?
38290need_locks=$lt_need_locks
38291
cristyda16f162011-02-19 23:52:17 +000038292# Manifest tool.
38293MANIFEST_TOOL=$lt_MANIFEST_TOOL
38294
cristy73bd4a52010-10-05 11:24:23 +000038295# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38296DSYMUTIL=$lt_DSYMUTIL
38297
38298# Tool to change global to local symbols on Mac OS X.
38299NMEDIT=$lt_NMEDIT
38300
38301# Tool to manipulate fat objects and archives on Mac OS X.
38302LIPO=$lt_LIPO
38303
38304# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38305OTOOL=$lt_OTOOL
38306
38307# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38308OTOOL64=$lt_OTOOL64
38309
38310# Old archive suffix (normally "a").
38311libext=$libext
38312
38313# Shared library suffix (normally ".so").
38314shrext_cmds=$lt_shrext_cmds
38315
38316# The commands to extract the exported symbol list from a shared archive.
38317extract_expsyms_cmds=$lt_extract_expsyms_cmds
38318
38319# Variables whose values should be saved in libtool wrapper scripts and
38320# restored at link time.
38321variables_saved_for_relink=$lt_variables_saved_for_relink
38322
38323# Do we need the "lib" prefix for modules?
38324need_lib_prefix=$need_lib_prefix
38325
38326# Do we need a version for libraries?
38327need_version=$need_version
38328
38329# Library versioning type.
38330version_type=$version_type
38331
38332# Shared library runtime path variable.
38333runpath_var=$runpath_var
38334
38335# Shared library path variable.
38336shlibpath_var=$shlibpath_var
38337
38338# Is shlibpath searched before the hard-coded library search path?
38339shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38340
38341# Format of library name prefix.
38342libname_spec=$lt_libname_spec
38343
38344# List of archive names. First name is the real one, the rest are links.
38345# The last name is the one that the linker finds with -lNAME
38346library_names_spec=$lt_library_names_spec
38347
38348# The coded name of the library, if different from the real name.
38349soname_spec=$lt_soname_spec
38350
cristy0c60a692010-11-04 01:09:47 +000038351# Permission mode override for installation of shared libraries.
38352install_override_mode=$lt_install_override_mode
38353
cristy73bd4a52010-10-05 11:24:23 +000038354# Command to use after installation of a shared archive.
38355postinstall_cmds=$lt_postinstall_cmds
38356
38357# Command to use after uninstallation of a shared archive.
38358postuninstall_cmds=$lt_postuninstall_cmds
38359
38360# Commands used to finish a libtool library installation in a directory.
38361finish_cmds=$lt_finish_cmds
38362
38363# As "finish_cmds", except a single script fragment to be evaled but
38364# not shown.
38365finish_eval=$lt_finish_eval
38366
38367# Whether we should hardcode library paths into libraries.
38368hardcode_into_libs=$hardcode_into_libs
38369
38370# Compile-time system search path for libraries.
38371sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38372
38373# Run-time system search path for libraries.
38374sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38375
38376# Whether dlopen is supported.
38377dlopen_support=$enable_dlopen
38378
38379# Whether dlopen of programs is supported.
38380dlopen_self=$enable_dlopen_self
38381
38382# Whether dlopen of statically linked programs is supported.
38383dlopen_self_static=$enable_dlopen_self_static
38384
38385# Commands to strip libraries.
38386old_striplib=$lt_old_striplib
38387striplib=$lt_striplib
38388
38389
38390# The linker used to build libraries.
38391LD=$lt_LD
38392
cristy0c60a692010-11-04 01:09:47 +000038393# How to create reloadable object files.
38394reload_flag=$lt_reload_flag
38395reload_cmds=$lt_reload_cmds
38396
cristy73bd4a52010-10-05 11:24:23 +000038397# Commands used to build an old-style archive.
38398old_archive_cmds=$lt_old_archive_cmds
38399
38400# A language specific compiler.
38401CC=$lt_compiler
38402
38403# Is the compiler the GNU compiler?
38404with_gcc=$GCC
38405
38406# Compiler flag to turn off builtin functions.
38407no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38408
cristy73bd4a52010-10-05 11:24:23 +000038409# Additional compiler flags for building library objects.
38410pic_flag=$lt_lt_prog_compiler_pic
38411
cristyda16f162011-02-19 23:52:17 +000038412# How to pass a linker flag through the compiler.
38413wl=$lt_lt_prog_compiler_wl
38414
cristy73bd4a52010-10-05 11:24:23 +000038415# Compiler flag to prevent dynamic linking.
38416link_static_flag=$lt_lt_prog_compiler_static
38417
38418# Does compiler simultaneously support -c and -o options?
38419compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38420
38421# Whether or not to add -lc for building shared libraries.
38422build_libtool_need_lc=$archive_cmds_need_lc
38423
38424# Whether or not to disallow shared libs when runtime libs are static.
38425allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38426
38427# Compiler flag to allow reflexive dlopens.
38428export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38429
38430# Compiler flag to generate shared objects directly from archives.
38431whole_archive_flag_spec=$lt_whole_archive_flag_spec
38432
38433# Whether the compiler copes with passing no objects directly.
38434compiler_needs_object=$lt_compiler_needs_object
38435
38436# Create an old-style archive from a shared archive.
38437old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38438
38439# Create a temporary old-style archive to link instead of a shared archive.
38440old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38441
38442# Commands used to build a shared archive.
38443archive_cmds=$lt_archive_cmds
38444archive_expsym_cmds=$lt_archive_expsym_cmds
38445
38446# Commands used to build a loadable module if different from building
38447# a shared archive.
38448module_cmds=$lt_module_cmds
38449module_expsym_cmds=$lt_module_expsym_cmds
38450
38451# Whether we are building with GNU ld or not.
38452with_gnu_ld=$lt_with_gnu_ld
38453
38454# Flag that allows shared libraries with undefined symbols to be built.
38455allow_undefined_flag=$lt_allow_undefined_flag
38456
38457# Flag that enforces no undefined symbols.
38458no_undefined_flag=$lt_no_undefined_flag
38459
38460# Flag to hardcode \$libdir into a binary during linking.
38461# This must work even if \$libdir does not exist
38462hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38463
cristy73bd4a52010-10-05 11:24:23 +000038464# Whether we need a single "-rpath" flag with a separated argument.
38465hardcode_libdir_separator=$lt_hardcode_libdir_separator
38466
38467# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38468# DIR into the resulting binary.
38469hardcode_direct=$hardcode_direct
38470
38471# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38472# DIR into the resulting binary and the resulting library dependency is
38473# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38474# library is relocated.
38475hardcode_direct_absolute=$hardcode_direct_absolute
38476
38477# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38478# into the resulting binary.
38479hardcode_minus_L=$hardcode_minus_L
38480
38481# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38482# into the resulting binary.
38483hardcode_shlibpath_var=$hardcode_shlibpath_var
38484
38485# Set to "yes" if building a shared library automatically hardcodes DIR
38486# into the library and all subsequent libraries and executables linked
38487# against it.
38488hardcode_automatic=$hardcode_automatic
38489
38490# Set to yes if linker adds runtime paths of dependent libraries
38491# to runtime path list.
38492inherit_rpath=$inherit_rpath
38493
38494# Whether libtool must link a program against all its dependency libraries.
38495link_all_deplibs=$link_all_deplibs
38496
cristy73bd4a52010-10-05 11:24:23 +000038497# Set to "yes" if exported symbols are required.
38498always_export_symbols=$always_export_symbols
38499
38500# The commands to list exported symbols.
38501export_symbols_cmds=$lt_export_symbols_cmds
38502
38503# Symbols that should not be listed in the preloaded symbols.
38504exclude_expsyms=$lt_exclude_expsyms
38505
38506# Symbols that must always be exported.
38507include_expsyms=$lt_include_expsyms
38508
38509# Commands necessary for linking programs (against libraries) with templates.
38510prelink_cmds=$lt_prelink_cmds
38511
cristyda16f162011-02-19 23:52:17 +000038512# Commands necessary for finishing linking programs.
38513postlink_cmds=$lt_postlink_cmds
38514
cristy73bd4a52010-10-05 11:24:23 +000038515# Specify filename containing input files.
38516file_list_spec=$lt_file_list_spec
38517
38518# How to hardcode a shared library path into an executable.
38519hardcode_action=$hardcode_action
38520
38521# The directories searched by this compiler when creating a shared library.
38522compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38523
38524# Dependencies to place before and after the objects being linked to
38525# create a shared library.
38526predep_objects=$lt_predep_objects
38527postdep_objects=$lt_postdep_objects
38528predeps=$lt_predeps
38529postdeps=$lt_postdeps
38530
38531# The library search path used internally by the compiler when linking
38532# a shared library.
38533compiler_lib_search_path=$lt_compiler_lib_search_path
38534
38535# ### END LIBTOOL CONFIG
38536
38537_LT_EOF
38538
38539 case $host_os in
38540 aix3*)
38541 cat <<\_LT_EOF >> "$cfgfile"
38542# AIX sometimes has problems with the GCC collect2 program. For some
38543# reason, if we set the COLLECT_NAMES environment variable, the problems
38544# vanish in a puff of smoke.
38545if test "X${COLLECT_NAMES+set}" != Xset; then
38546 COLLECT_NAMES=
38547 export COLLECT_NAMES
38548fi
38549_LT_EOF
38550 ;;
38551 esac
38552
38553
38554ltmain="$ac_aux_dir/ltmain.sh"
38555
38556
38557 # We use sed instead of cat because bash on DJGPP gets confused if
38558 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38559 # text mode, it properly converts lines to CR/LF. This bash problem
38560 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038561 sed '$q' "$ltmain" >> "$cfgfile" \
38562 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038563
cristyda16f162011-02-19 23:52:17 +000038564 if test x"$xsi_shell" = xyes; then
38565 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38566func_dirname ()\
38567{\
38568\ case ${1} in\
38569\ */*) func_dirname_result="${1%/*}${2}" ;;\
38570\ * ) func_dirname_result="${3}" ;;\
38571\ esac\
38572} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38573 && mv -f "$cfgfile.tmp" "$cfgfile" \
38574 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38575test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038576
38577
cristyda16f162011-02-19 23:52:17 +000038578 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38579func_basename ()\
38580{\
38581\ func_basename_result="${1##*/}"\
38582} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38583 && mv -f "$cfgfile.tmp" "$cfgfile" \
38584 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38585test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038586
38587
cristyda16f162011-02-19 23:52:17 +000038588 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38589func_dirname_and_basename ()\
38590{\
38591\ case ${1} in\
38592\ */*) func_dirname_result="${1%/*}${2}" ;;\
38593\ * ) func_dirname_result="${3}" ;;\
38594\ esac\
38595\ func_basename_result="${1##*/}"\
38596} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38597 && mv -f "$cfgfile.tmp" "$cfgfile" \
38598 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38599test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038600
cristyda16f162011-02-19 23:52:17 +000038601
38602 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38603func_stripname ()\
38604{\
38605\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38606\ # positional parameters, so assign one to ordinary parameter first.\
38607\ func_stripname_result=${3}\
38608\ func_stripname_result=${func_stripname_result#"${1}"}\
38609\ func_stripname_result=${func_stripname_result%"${2}"}\
38610} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38611 && mv -f "$cfgfile.tmp" "$cfgfile" \
38612 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38613test 0 -eq $? || _lt_function_replace_fail=:
38614
38615
38616 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38617func_split_long_opt ()\
38618{\
38619\ func_split_long_opt_name=${1%%=*}\
38620\ func_split_long_opt_arg=${1#*=}\
38621} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38622 && mv -f "$cfgfile.tmp" "$cfgfile" \
38623 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38624test 0 -eq $? || _lt_function_replace_fail=:
38625
38626
38627 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38628func_split_short_opt ()\
38629{\
38630\ func_split_short_opt_arg=${1#??}\
38631\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38632} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38633 && mv -f "$cfgfile.tmp" "$cfgfile" \
38634 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38635test 0 -eq $? || _lt_function_replace_fail=:
38636
38637
38638 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38639func_lo2o ()\
38640{\
38641\ case ${1} in\
38642\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38643\ *) func_lo2o_result=${1} ;;\
38644\ esac\
38645} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38646 && mv -f "$cfgfile.tmp" "$cfgfile" \
38647 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38648test 0 -eq $? || _lt_function_replace_fail=:
38649
38650
38651 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38652func_xform ()\
38653{\
38654 func_xform_result=${1%.*}.lo\
38655} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38656 && mv -f "$cfgfile.tmp" "$cfgfile" \
38657 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38658test 0 -eq $? || _lt_function_replace_fail=:
38659
38660
38661 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38662func_arith ()\
38663{\
38664 func_arith_result=$(( $* ))\
38665} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38666 && mv -f "$cfgfile.tmp" "$cfgfile" \
38667 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38668test 0 -eq $? || _lt_function_replace_fail=:
38669
38670
38671 sed -e '/^func_len ()$/,/^} # func_len /c\
38672func_len ()\
38673{\
38674 func_len_result=${#1}\
38675} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38676 && mv -f "$cfgfile.tmp" "$cfgfile" \
38677 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38678test 0 -eq $? || _lt_function_replace_fail=:
38679
38680fi
38681
38682if test x"$lt_shell_append" = xyes; then
38683 sed -e '/^func_append ()$/,/^} # func_append /c\
38684func_append ()\
38685{\
38686 eval "${1}+=\\${2}"\
38687} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38688 && mv -f "$cfgfile.tmp" "$cfgfile" \
38689 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38690test 0 -eq $? || _lt_function_replace_fail=:
38691
38692
38693 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38694func_append_quoted ()\
38695{\
38696\ func_quote_for_eval "${2}"\
38697\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38698} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38699 && mv -f "$cfgfile.tmp" "$cfgfile" \
38700 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38701test 0 -eq $? || _lt_function_replace_fail=:
38702
38703
38704 # Save a `func_append' function call where possible by direct use of '+='
38705 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38706 && mv -f "$cfgfile.tmp" "$cfgfile" \
38707 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38708 test 0 -eq $? || _lt_function_replace_fail=:
38709else
38710 # Save a `func_append' function call even when '+=' is not available
38711 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38712 && mv -f "$cfgfile.tmp" "$cfgfile" \
38713 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38714 test 0 -eq $? || _lt_function_replace_fail=:
38715fi
38716
38717if test x"$_lt_function_replace_fail" = x":"; then
38718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38719$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38720fi
38721
38722
38723 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038724 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38725 chmod +x "$ofile"
38726
38727
38728 cat <<_LT_EOF >> "$ofile"
38729
38730# ### BEGIN LIBTOOL TAG CONFIG: CXX
38731
38732# The linker used to build libraries.
38733LD=$lt_LD_CXX
38734
cristy0c60a692010-11-04 01:09:47 +000038735# How to create reloadable object files.
38736reload_flag=$lt_reload_flag_CXX
38737reload_cmds=$lt_reload_cmds_CXX
38738
cristy73bd4a52010-10-05 11:24:23 +000038739# Commands used to build an old-style archive.
38740old_archive_cmds=$lt_old_archive_cmds_CXX
38741
38742# A language specific compiler.
38743CC=$lt_compiler_CXX
38744
38745# Is the compiler the GNU compiler?
38746with_gcc=$GCC_CXX
38747
38748# Compiler flag to turn off builtin functions.
38749no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38750
cristy73bd4a52010-10-05 11:24:23 +000038751# Additional compiler flags for building library objects.
38752pic_flag=$lt_lt_prog_compiler_pic_CXX
38753
cristyda16f162011-02-19 23:52:17 +000038754# How to pass a linker flag through the compiler.
38755wl=$lt_lt_prog_compiler_wl_CXX
38756
cristy73bd4a52010-10-05 11:24:23 +000038757# Compiler flag to prevent dynamic linking.
38758link_static_flag=$lt_lt_prog_compiler_static_CXX
38759
38760# Does compiler simultaneously support -c and -o options?
38761compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38762
38763# Whether or not to add -lc for building shared libraries.
38764build_libtool_need_lc=$archive_cmds_need_lc_CXX
38765
38766# Whether or not to disallow shared libs when runtime libs are static.
38767allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38768
38769# Compiler flag to allow reflexive dlopens.
38770export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38771
38772# Compiler flag to generate shared objects directly from archives.
38773whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38774
38775# Whether the compiler copes with passing no objects directly.
38776compiler_needs_object=$lt_compiler_needs_object_CXX
38777
38778# Create an old-style archive from a shared archive.
38779old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38780
38781# Create a temporary old-style archive to link instead of a shared archive.
38782old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38783
38784# Commands used to build a shared archive.
38785archive_cmds=$lt_archive_cmds_CXX
38786archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38787
38788# Commands used to build a loadable module if different from building
38789# a shared archive.
38790module_cmds=$lt_module_cmds_CXX
38791module_expsym_cmds=$lt_module_expsym_cmds_CXX
38792
38793# Whether we are building with GNU ld or not.
38794with_gnu_ld=$lt_with_gnu_ld_CXX
38795
38796# Flag that allows shared libraries with undefined symbols to be built.
38797allow_undefined_flag=$lt_allow_undefined_flag_CXX
38798
38799# Flag that enforces no undefined symbols.
38800no_undefined_flag=$lt_no_undefined_flag_CXX
38801
38802# Flag to hardcode \$libdir into a binary during linking.
38803# This must work even if \$libdir does not exist
38804hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38805
cristy73bd4a52010-10-05 11:24:23 +000038806# Whether we need a single "-rpath" flag with a separated argument.
38807hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38808
38809# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38810# DIR into the resulting binary.
38811hardcode_direct=$hardcode_direct_CXX
38812
38813# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38814# DIR into the resulting binary and the resulting library dependency is
38815# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38816# library is relocated.
38817hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38818
38819# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38820# into the resulting binary.
38821hardcode_minus_L=$hardcode_minus_L_CXX
38822
38823# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38824# into the resulting binary.
38825hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38826
38827# Set to "yes" if building a shared library automatically hardcodes DIR
38828# into the library and all subsequent libraries and executables linked
38829# against it.
38830hardcode_automatic=$hardcode_automatic_CXX
38831
38832# Set to yes if linker adds runtime paths of dependent libraries
38833# to runtime path list.
38834inherit_rpath=$inherit_rpath_CXX
38835
38836# Whether libtool must link a program against all its dependency libraries.
38837link_all_deplibs=$link_all_deplibs_CXX
38838
cristy73bd4a52010-10-05 11:24:23 +000038839# Set to "yes" if exported symbols are required.
38840always_export_symbols=$always_export_symbols_CXX
38841
38842# The commands to list exported symbols.
38843export_symbols_cmds=$lt_export_symbols_cmds_CXX
38844
38845# Symbols that should not be listed in the preloaded symbols.
38846exclude_expsyms=$lt_exclude_expsyms_CXX
38847
38848# Symbols that must always be exported.
38849include_expsyms=$lt_include_expsyms_CXX
38850
38851# Commands necessary for linking programs (against libraries) with templates.
38852prelink_cmds=$lt_prelink_cmds_CXX
38853
cristyda16f162011-02-19 23:52:17 +000038854# Commands necessary for finishing linking programs.
38855postlink_cmds=$lt_postlink_cmds_CXX
38856
cristy73bd4a52010-10-05 11:24:23 +000038857# Specify filename containing input files.
38858file_list_spec=$lt_file_list_spec_CXX
38859
38860# How to hardcode a shared library path into an executable.
38861hardcode_action=$hardcode_action_CXX
38862
38863# The directories searched by this compiler when creating a shared library.
38864compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38865
38866# Dependencies to place before and after the objects being linked to
38867# create a shared library.
38868predep_objects=$lt_predep_objects_CXX
38869postdep_objects=$lt_postdep_objects_CXX
38870predeps=$lt_predeps_CXX
38871postdeps=$lt_postdeps_CXX
38872
38873# The library search path used internally by the compiler when linking
38874# a shared library.
38875compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38876
38877# ### END LIBTOOL TAG CONFIG: CXX
38878_LT_EOF
38879
38880 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038881 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038882 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038883 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038884 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38885 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38886
38887 esac
38888done # for ac_tag
38889
38890
cristy8b350f62009-11-15 23:12:43 +000038891as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038892_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038893ac_clean_files=$ac_clean_files_save
38894
38895test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038896 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038897
38898
38899# configure is writing to config.log, and then calls config.status.
38900# config.status does its own redirection, appending to config.log.
38901# Unfortunately, on DOS this fails, as config.log is still kept open
38902# by configure, so config.status won't be able to write to it; its
38903# output is simply discarded. So we exec the FD to /dev/null,
38904# effectively closing config.log, so it can be properly (re)opened and
38905# appended to by config.status. When coming back to configure, we
38906# need to make the FD available again.
38907if test "$no_create" != yes; then
38908 ac_cs_success=:
38909 ac_config_status_args=
38910 test "$silent" = yes &&
38911 ac_config_status_args="$ac_config_status_args --quiet"
38912 exec 5>/dev/null
38913 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38914 exec 5>>config.log
38915 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38916 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038917 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038918fi
38919if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038921$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38922fi
38923
38924
38925rm -f magick-version
38926
cristy430a7312010-01-21 20:44:04 +000038927result_dejavu_font_dir='none'
38928if test "${dejavu_font_dir}x" != 'x'; then
38929 result_dejavu_font_dir=$dejavu_font_dir
38930fi
38931
cristy3ed852e2009-09-05 21:47:34 +000038932result_ghostscript_font_dir='none'
38933if test "${ghostscript_font_dir}x" != 'x'; then
38934 result_ghostscript_font_dir=$ghostscript_font_dir
38935fi
38936
38937result_windows_font_dir='none'
38938if test "${windows_font_dir}x" != 'x'; then
38939 result_windows_font_dir=${windows_font_dir}
38940fi
38941
cristyad38abe2012-12-23 23:03:21 +000038942{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038943ImageMagick is configured as follows. Please verify that this configuration
38944matches your expectations.
38945
38946Host system type: $host
38947Build system type: $build
38948
38949 Option Value
38950-------------------------------------------------------------------------------
38951Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38952Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038953Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038954GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38955Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38956High Dynamic Range Imagery
38957 --enable-hdri=$enable_hdri $enable_hdri
38958
38959Delegate Configuration:
38960BZLIB --with-bzlib=$with_bzlib $have_bzlib
38961Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038962Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038963DJVU --with-djvu=$with_djvu $have_djvu
38964DPS --with-dps=$with_dps $have_dps
38965FFTW --with-fftw=$with_fftw $have_fftw
38966FlashPIX --with-fpx=$with_fpx $have_fpx
38967FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38968FreeType --with-freetype=$with_freetype $have_freetype
38969GhostPCL None $PCLDelegate ($PCLVersion)
38970GhostXPS None $XPSDelegate ($XPSVersion)
38971Ghostscript None $PSDelegate ($GSVersion)
38972Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38973Ghostscript lib --with-gslib=$with_gslib $have_gslib
38974Graphviz --with-gvc=$with_gvc $have_gvc
38975JBIG --with-jbig=$with_jbig $have_jbig
38976JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38977JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038978LCMS v1 --with-lcms=$with_lcms $have_lcms
38979LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038980LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038981LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038982LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038983Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000038984MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000038985OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038986PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038987PERL --with-perl=$with_perl $have_perl
38988PNG --with-png=$with_png $have_png
38989RSVG --with-rsvg=$with_rsvg $have_rsvg
38990TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038991WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038992Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038993WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038994X11 --with-x=$with_x $have_x
38995XML --with-xml=$with_xml $have_xml
38996ZLIB --with-zlib=$with_zlib $have_zlib
38997
38998X11 Configuration:
38999 X_CFLAGS = $X_CFLAGS
39000 X_PRE_LIBS = $X_PRE_LIBS
39001 X_LIBS = $X_LIBS
39002 X_EXTRA_LIBS = $X_EXTRA_LIBS
39003
39004Options used to compile and link:
39005 PREFIX = $PREFIX_DIR
39006 EXEC-PREFIX = $EXEC_PREFIX_DIR
39007 VERSION = $PACKAGE_VERSION
39008 CC = $CC
39009 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039010 CPPFLAGS = $MAGICK_CPPFLAGS
39011 PCFLAGS = $MAGICK_PCFLAGS
39012 DEFS = $DEFS
39013 LDFLAGS = $LDFLAGS
39014 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39015 LIBS = $MAGICK_LIBS
39016 CXX = $CXX
39017 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039018 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039019 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000039020" >&5
cristyad38abe2012-12-23 23:03:21 +000039021$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000039022ImageMagick is configured as follows. Please verify that this configuration
39023matches your expectations.
39024
39025Host system type: $host
39026Build system type: $build
39027
39028 Option Value
39029-------------------------------------------------------------------------------
39030Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39031Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039032Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039033GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39034Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39035High Dynamic Range Imagery
39036 --enable-hdri=$enable_hdri $enable_hdri
39037
39038Delegate Configuration:
39039BZLIB --with-bzlib=$with_bzlib $have_bzlib
39040Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039041Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039042DJVU --with-djvu=$with_djvu $have_djvu
39043DPS --with-dps=$with_dps $have_dps
39044FFTW --with-fftw=$with_fftw $have_fftw
39045FlashPIX --with-fpx=$with_fpx $have_fpx
39046FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39047FreeType --with-freetype=$with_freetype $have_freetype
39048GhostPCL None $PCLDelegate ($PCLVersion)
39049GhostXPS None $XPSDelegate ($XPSVersion)
39050Ghostscript None $PSDelegate ($GSVersion)
39051Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39052Ghostscript lib --with-gslib=$with_gslib $have_gslib
39053Graphviz --with-gvc=$with_gvc $have_gvc
39054JBIG --with-jbig=$with_jbig $have_jbig
39055JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39056JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039057LCMS v1 --with-lcms=$with_lcms $have_lcms
39058LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000039059LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039060LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039061LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039062Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000039063MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000039064OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039065PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039066PERL --with-perl=$with_perl $have_perl
39067PNG --with-png=$with_png $have_png
39068RSVG --with-rsvg=$with_rsvg $have_rsvg
39069TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039070WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039071Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039072WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039073X11 --with-x=$with_x $have_x
39074XML --with-xml=$with_xml $have_xml
39075ZLIB --with-zlib=$with_zlib $have_zlib
39076
39077X11 Configuration:
39078 X_CFLAGS = $X_CFLAGS
39079 X_PRE_LIBS = $X_PRE_LIBS
39080 X_LIBS = $X_LIBS
39081 X_EXTRA_LIBS = $X_EXTRA_LIBS
39082
39083Options used to compile and link:
39084 PREFIX = $PREFIX_DIR
39085 EXEC-PREFIX = $EXEC_PREFIX_DIR
39086 VERSION = $PACKAGE_VERSION
39087 CC = $CC
39088 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039089 CPPFLAGS = $MAGICK_CPPFLAGS
39090 PCFLAGS = $MAGICK_PCFLAGS
39091 DEFS = $DEFS
39092 LDFLAGS = $LDFLAGS
39093 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39094 LIBS = $MAGICK_LIBS
39095 CXX = $CXX
39096 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039097 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039098 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000039099" >&6; }