blob: 3274ec0018caf29b5e72e7ce90df13d9e4103d90 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy4c08aed2011-07-01 19:47:50 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 7.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#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristy98dddb52010-11-04 00:30:15 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000094as_myself=
cristy8b350f62009-11-15 23:12:43 +000095case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
cristy3ed852e2009-09-05 21:47:34 +0000104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000115 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000116fi
117
cristy8b350f62009-11-15 23:12:43 +0000118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
cristy8b350f62009-11-15 23:12:43 +0000136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000177test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
cristyda16f162011-02-19 23:52:17 +0000228 # Preserve -v and -x to the replacement shell.
cristy8b350f62009-11-15 23:12:43 +0000229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
cristyda16f162011-02-19 23:52:17 +0000233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
cristy8b350f62009-11-15 23:12:43 +0000240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: http://www.imagemagick.org about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
cristy98dddb52010-11-04 00:30:15 +0000378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000382# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000383as_fn_error ()
384{
cristy98dddb52010-11-04 00:30:15 +0000385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000389 fi
cristy98dddb52010-11-04 00:30:15 +0000390 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000391 as_fn_exit $as_status
392} # as_fn_error
393
cristy3ed852e2009-09-05 21:47:34 +0000394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
cristy8b350f62009-11-15 23:12:43 +0000407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
cristy3ed852e2009-09-05 21:47:34 +0000412
cristy3ed852e2009-09-05 21:47:34 +0000413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
cristy8b350f62009-11-15 23:12:43 +0000432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000438
439
cristy8b350f62009-11-15 23:12:43 +0000440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000461 { $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 +0000462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
cristy3ed852e2009-09-05 21:47:34 +0000471ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000472case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000473-n*)
cristy8b350f62009-11-15 23:12:43 +0000474 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000479 esac;;
480*)
481 ECHO_N='-n';;
482esac
cristy3ed852e2009-09-05 21:47:34 +0000483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000512 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
cristy8b350f62009-11-15 23:12:43 +0000531 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000532 -*)set "./$1";;
533 esac;
cristy8b350f62009-11-15 23:12:43 +0000534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
cristy73bd4a52010-10-05 11:24:23 +0000547SHELL=${CONFIG_SHELL-/bin/sh}
548
cristy73bd4a52010-10-05 11:24:23 +0000549lt_ltdl_dir='ltdl'
550
551lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
cristy0c60a692010-11-04 01:09:47 +0000553
cristycd4c5312009-11-22 01:19:08 +0000554test -n "$DJDIR" || exec 7<&0 </dev/null
555exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000556
557# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000558# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000573
574# Identity of this package.
575PACKAGE_NAME='ImageMagick'
cristy4c08aed2011-07-01 19:47:50 +0000576PACKAGE_TARNAME='ImageMagick-7.0.0'
577PACKAGE_VERSION='7.0.0'
578PACKAGE_STRING='ImageMagick 7.0.0'
cristy3ed852e2009-09-05 21:47:34 +0000579PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000580PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000581
cristy4c08aed2011-07-01 19:47:50 +0000582ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000684UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000685TXTDelegate
686SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000687RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688RMDelegate
689RLEEncodeDelegate
690PSDelegate
691POVDelegate
692PGPDecodeDelegate
693PCLDelegate
694MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000695MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696MPEGEncodeDelegate
697MPEGDecodeDelegate
698MANDelegate
699LaunchDelegate
700LZWEncodeDelegate
701LZWDecodeDelegate
702LPRDelegate
703LPDelegate
704ILBMEncodeDelegate
705ILBMDecodeDelegate
706HTMLDecodeDelegate
707HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708GnuplotDecodeDelegate
709MogrifyDelegate
710DisplayDelegate
711ConvertDelegate
712FIGDecodeDelegate
713EditorDelegate
714EchoDelegate
715DVIDecodeDelegate
716GVCDecodeDelegate
717DNGDecodeDelegate
718CatDelegate
719CGMDecodeDelegate
720BrowseDelegate
721BZIPDelegate
722BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723AutotraceDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000724SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000725CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000726DOCUMENTATION_PATH
727FILTER_PATH
728CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000729LIBRARY_PATH
730EXECUTABLE_PATH
731PERLMAINCC
732XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000733XML_DELEGATE_FALSE
734XML_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000735xml2_config
cristy9243a2d2011-08-22 17:32:32 +0000736WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000737WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000738WMF_DELEGATE_FALSE
739WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000740WEBP_LIBS
741WEBP_DELEGATE_FALSE
742WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000743TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000744TIFF_DELEGATE_FALSE
745TIFF_DELEGATE_TRUE
746CAIRO_DELEGATE_FALSE
747CAIRO_DELEGATE_TRUE
748RSVG_DELEGATE_FALSE
749RSVG_DELEGATE_TRUE
750CAIRO_SVG_LIBS
751CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000752RSVG_LIBS
753RSVG_CFLAGS
754PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000755PNG_DELEGATE_FALSE
756PNG_DELEGATE_TRUE
757OPENEXR_DELEGATE_FALSE
758OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000759OPENEXR_LIBS
760OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000761LZMA_LIBS
762LZMA_DELEGATE_FALSE
763LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000764LQR_DELEGATE_FALSE
765LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000766LQR_LIBS
767LQR_CFLAGS
768LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000769LCMS_DELEGATE_FALSE
770LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000771JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772JP2_DELEGATE_FALSE
773JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000774JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000775JPEG_DELEGATE_FALSE
776JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000777JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778JBIG_DELEGATE_FALSE
779JBIG_DELEGATE_TRUE
780GVC_DELEGATE_FALSE
781GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000782GVC_LIBS
783GVC_CFLAGS
784GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000785GS_DELEGATE_FALSE
786GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000787FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000788FREETYPE_DELEGATE_FALSE
789FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000790freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000791FONTCONFIG_DELEGATE_FALSE
792FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000793FONTCONFIG_LIBS
794FONTCONFIG_CFLAGS
795FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000796FPX_DELEGATE_FALSE
797FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000798FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000799FFTW_DELEGATE_FALSE
800FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000801DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000802DJVU_DELEGATE_FALSE
803DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000804DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000805DPS_DELEGATE_FALSE
806DPS_DELEGATE_TRUE
807AUTOTRACE_DELEGATE_FALSE
808AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809AUTOTRACE_LIBS
810AUTOTRACE_CFLAGS
811LIB_DL
812ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813ZLIB_DELEGATE_FALSE
814ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815XEXT_LIBS
816X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817X11_DELEGATE_FALSE
818X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000819X_EXTRA_LIBS
820X_LIBS
821X_PRE_LIBS
822X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000823XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000824BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000825BZLIB_DELEGATE_FALSE
826BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000827CCMALLOCDelegate
828UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000829HasUMEM_FALSE
830HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000831THREAD_LIBS
832GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000833WITH_MAGICK_PLUS_PLUS_FALSE
834WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000835OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000836MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000837POW_LIB
838LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000839UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000840UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000841UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000842UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000843UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000844UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000845INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000846INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000847UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000848UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000849INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000850INT32_T
851UINT16_T
852INT16_T
853UINT8_T
854INT8_T
855LIBRARY_EXTRA_CPPFLAGS
856MODULE_EXTRA_CPPFLAGS
857LIBSTDCLDFLAGS
858PERL_MAKE_OPTIONS
859QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000860MAINT
861MAINTAINER_MODE_FALSE
862MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000863MAGICK_HDRI
864DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000865WITH_LTDL_FALSE
866WITH_LTDL_TRUE
867WITH_MODULES_FALSE
868WITH_MODULES_TRUE
869WITH_SHARED_LIBS_FALSE
870WITH_SHARED_LIBS_TRUE
871LTDLOPEN
872LT_CONFIG_H
873CONVENIENCE_LTDL_FALSE
874CONVENIENCE_LTDL_TRUE
875INSTALL_LTDL_FALSE
876INSTALL_LTDL_TRUE
877ARGZ_H
878sys_symbol_underscore
879LIBADD_DL
880LT_DLPREOPEN
881LIBADD_DLD_LINK
882LIBADD_SHL_LOAD
883LIBADD_DLOPEN
884LT_DLLOADERS
885INCLTDL
886LTDLINCL
887LTDLDEPS
888LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000889LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000890CXXCPP
891OTOOL64
892OTOOL
893LIPO
894NMEDIT
895DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000896MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000897RANLIB
cristyda16f162011-02-19 23:52:17 +0000898ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000899AR
900NM
901ac_ct_DUMPBIN
902DUMPBIN
903LIBTOOL
904OBJDUMP
905DLLTOOL
906AS
cristy3ed852e2009-09-05 21:47:34 +0000907LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000908CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000909CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000910OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000911PTHREAD_CFLAGS
912PTHREAD_LIBS
913PTHREAD_CC
914ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000915WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000916USING_CL_FALSE
917USING_CL_TRUE
918CYGWIN_BUILD_FALSE
919CYGWIN_BUILD_TRUE
920WIN32_NATIVE_BUILD_FALSE
921WIN32_NATIVE_BUILD_TRUE
922WINGDI32_DELEGATE_FALSE
923WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000924GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000925PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000926LN_S
cristy3ed852e2009-09-05 21:47:34 +0000927LD
cristy73bd4a52010-10-05 11:24:23 +0000928FGREP
929SED
930am__fastdepCXX_FALSE
931am__fastdepCXX_TRUE
932CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000933ac_ct_CXX
934CXXFLAGS
935CXX
cristya0b81c32010-01-22 02:54:33 +0000936EGREP
937GREP
938CPP
cristy73bd4a52010-10-05 11:24:23 +0000939am__fastdepCC_FALSE
940am__fastdepCC_TRUE
941CCDEPMODE
942AMDEPBACKSLASH
943AMDEP_FALSE
944AMDEP_TRUE
945am__quote
946am__include
947DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000948OBJEXT
949EXEEXT
950ac_ct_CC
951CPPFLAGS
952LDFLAGS
953CFLAGS
954CC
955DIRSEP
956MAGICK_FILTER_MODULE_PATH
957MAGICK_CONFIGURE_BUILD_PATH
958MAGICK_CONFIGURE_SRC_PATH
959MAGICK_CODER_MODULE_PATH
960MAN_DIR
961INFO_DIR
962PERSISTINCLUDE_DIR
963INCLUDE_DIR
964LIB_DIR
965LOCALSTATE_DIR
966SHAREDSTATE_DIR
967SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000968DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000969DATA_DIR
970LIBEXEC_DIR
971SBIN_DIR
972BIN_DIR
973EXEC_PREFIX_DIR
974PREFIX_DIR
975CONFIG_STATUS_DEPENDENCIES
976MAGICK_LIB_VERSION_NUMBER
977MAGICK_LIB_VERSION_TEXT
978MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000979AM_BACKSLASH
980AM_DEFAULT_VERBOSITY
981am__untar
982am__tar
983AMTAR
984am__leading_dot
985SET_MAKE
986AWK
987mkdir_p
988MKDIR_P
989INSTALL_STRIP_PROGRAM
990STRIP
991install_sh
992MAKEINFO
993AUTOHEADER
994AUTOMAKE
995AUTOCONF
996ACLOCAL
997VERSION
998PACKAGE
999CYGPATH_W
1000am__isrc
1001INSTALL_DATA
1002INSTALL_SCRIPT
1003INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001004PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001005PACKAGE_RELEASE_DATE
1006PACKAGE_LIB_VERSION_NUMBER
1007PACKAGE_LIB_VERSION
1008PACKAGE_CHANGE_DATE
1009PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001010PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001011MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001012MAGICK_LIBRARY_VERSION_INFO
1013MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001014MAGICK_LIBRARY_AGE
1015MAGICK_LIBRARY_REVISION
1016MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001017MAGICK_TARGET_OS
1018MAGICK_TARGET_VENDOR
1019MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001020target_os
1021target_vendor
1022target_cpu
1023target
1024host_os
1025host_vendor
1026host_cpu
1027host
1028build_os
1029build_vendor
1030build_cpu
1031build
1032CONFIGURE_ARGS
1033DISTCHECK_CONFIG_FLAGS
1034target_alias
1035host_alias
1036build_alias
1037LIBS
1038ECHO_T
1039ECHO_N
1040ECHO_C
1041DEFS
1042mandir
1043localedir
1044libdir
1045psdir
1046pdfdir
1047dvidir
1048htmldir
1049infodir
1050docdir
1051oldincludedir
1052includedir
1053localstatedir
1054sharedstatedir
1055sysconfdir
1056datadir
1057datarootdir
1058libexecdir
1059sbindir
1060bindir
1061program_transform_name
1062prefix
1063exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001064PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001065PACKAGE_BUGREPORT
1066PACKAGE_STRING
1067PACKAGE_VERSION
1068PACKAGE_TARNAME
1069PACKAGE_NAME
1070PATH_SEPARATOR
1071SHELL'
1072ac_subst_files=''
1073ac_user_opts='
1074enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001075enable_silent_rules
1076enable_dependency_tracking
1077with_gnu_ld
1078with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001079enable_bounds_checking
1080enable_osx_universal_binary
1081with_threads
1082enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001083enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001084enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001085enable_shared
1086enable_static
1087with_pic
1088enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001089with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001090enable_libtool_lock
1091with_included_ltdl
1092with_ltdl_include
1093with_ltdl_lib
1094enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001095with_modules
1096enable_delegate_build
1097enable_deprecated
1098enable_installed
1099enable_cipher
1100enable_embeddable
1101enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001102enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001103enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001104enable_ccmalloc
1105enable_efence
1106enable_prof
1107enable_gprof
1108enable_gcov
1109with_method_prefix
1110with_quantum_depth
1111with_cache
1112with_frozenpaths
1113with_magick_plus_plus
1114with_perl
1115with_perl_options
1116with_umem
1117with_libstdc
1118with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001119with_x
cristy3ed852e2009-09-05 21:47:34 +00001120with_zlib
1121with_autotrace
1122with_dps
1123with_djvu
cristy430a7312010-01-21 20:44:04 +00001124with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001125with_fftw
1126with_fpx
1127with_fontconfig
1128with_freetype
1129with_gslib
1130with_fontpath
1131with_gs_font_dir
1132with_gvc
1133with_jbig
1134with_jpeg
1135with_jp2
1136with_lcms
cristy71203402010-06-18 13:12:03 +00001137with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001138with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001139with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001140with_openexr
1141with_png
1142with_rsvg
1143with_tiff
cristyb1860752011-03-14 00:27:46 +00001144with_webp
cristy3ed852e2009-09-05 21:47:34 +00001145with_windows_font_dir
1146with_wmf
1147with_xml
1148'
1149 ac_precious_vars='build_alias
1150host_alias
1151target_alias
1152CC
1153CFLAGS
1154LDFLAGS
1155LIBS
1156CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001157CPP
cristy3ed852e2009-09-05 21:47:34 +00001158CXX
1159CXXFLAGS
1160CCC
cristy73bd4a52010-10-05 11:24:23 +00001161PKG_CONFIG
1162CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001163XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001164AUTOTRACE_CFLAGS
1165AUTOTRACE_LIBS
1166FONTCONFIG_CFLAGS
1167FONTCONFIG_LIBS
1168GVC_CFLAGS
1169GVC_LIBS
1170LQR_CFLAGS
1171LQR_LIBS
1172OPENEXR_CFLAGS
1173OPENEXR_LIBS
1174RSVG_CFLAGS
1175RSVG_LIBS
1176CAIRO_SVG_CFLAGS
1177CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001178
1179
1180# Initialize some variables set by options.
1181ac_init_help=
1182ac_init_version=false
1183ac_unrecognized_opts=
1184ac_unrecognized_sep=
1185# The variables have the same names as the options, with
1186# dashes changed to underlines.
1187cache_file=/dev/null
1188exec_prefix=NONE
1189no_create=
1190no_recursion=
1191prefix=NONE
1192program_prefix=NONE
1193program_suffix=NONE
1194program_transform_name=s,x,x,
1195silent=
1196site=
1197srcdir=
1198verbose=
1199x_includes=NONE
1200x_libraries=NONE
1201
1202# Installation directory options.
1203# These are left unexpanded so users can "make install exec_prefix=/foo"
1204# and all the variables that are supposed to be based on exec_prefix
1205# by default will actually change.
1206# Use braces instead of parens because sh, perl, etc. also accept them.
1207# (The list follows the same order as the GNU Coding Standards.)
1208bindir='${exec_prefix}/bin'
1209sbindir='${exec_prefix}/sbin'
1210libexecdir='${exec_prefix}/libexec'
1211datarootdir='${prefix}/share'
1212datadir='${datarootdir}'
1213sysconfdir='${prefix}/etc'
1214sharedstatedir='${prefix}/com'
1215localstatedir='${prefix}/var'
1216includedir='${prefix}/include'
1217oldincludedir='/usr/include'
1218docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1219infodir='${datarootdir}/info'
1220htmldir='${docdir}'
1221dvidir='${docdir}'
1222pdfdir='${docdir}'
1223psdir='${docdir}'
1224libdir='${exec_prefix}/lib'
1225localedir='${datarootdir}/locale'
1226mandir='${datarootdir}/man'
1227
1228ac_prev=
1229ac_dashdash=
1230for ac_option
1231do
1232 # If the previous option needs an argument, assign it.
1233 if test -n "$ac_prev"; then
1234 eval $ac_prev=\$ac_option
1235 ac_prev=
1236 continue
1237 fi
1238
1239 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001240 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1241 *=) ac_optarg= ;;
1242 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001243 esac
1244
1245 # Accept the important Cygnus configure options, so we can diagnose typos.
1246
1247 case $ac_dashdash$ac_option in
1248 --)
1249 ac_dashdash=yes ;;
1250
1251 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1252 ac_prev=bindir ;;
1253 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1254 bindir=$ac_optarg ;;
1255
1256 -build | --build | --buil | --bui | --bu)
1257 ac_prev=build_alias ;;
1258 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1259 build_alias=$ac_optarg ;;
1260
1261 -cache-file | --cache-file | --cache-fil | --cache-fi \
1262 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1263 ac_prev=cache_file ;;
1264 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1265 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1266 cache_file=$ac_optarg ;;
1267
1268 --config-cache | -C)
1269 cache_file=config.cache ;;
1270
1271 -datadir | --datadir | --datadi | --datad)
1272 ac_prev=datadir ;;
1273 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1274 datadir=$ac_optarg ;;
1275
1276 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1277 | --dataroo | --dataro | --datar)
1278 ac_prev=datarootdir ;;
1279 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1280 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1281 datarootdir=$ac_optarg ;;
1282
1283 -disable-* | --disable-*)
1284 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001287 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001288 ac_useropt_orig=$ac_useropt
1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1291 *"
1292"enable_$ac_useropt"
1293"*) ;;
1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1295 ac_unrecognized_sep=', ';;
1296 esac
1297 eval enable_$ac_useropt=no ;;
1298
1299 -docdir | --docdir | --docdi | --doc | --do)
1300 ac_prev=docdir ;;
1301 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1302 docdir=$ac_optarg ;;
1303
1304 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1305 ac_prev=dvidir ;;
1306 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1307 dvidir=$ac_optarg ;;
1308
1309 -enable-* | --enable-*)
1310 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001313 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1317 *"
1318"enable_$ac_useropt"
1319"*) ;;
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1322 esac
1323 eval enable_$ac_useropt=\$ac_optarg ;;
1324
1325 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1326 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1327 | --exec | --exe | --ex)
1328 ac_prev=exec_prefix ;;
1329 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1330 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1331 | --exec=* | --exe=* | --ex=*)
1332 exec_prefix=$ac_optarg ;;
1333
1334 -gas | --gas | --ga | --g)
1335 # Obsolete; use --with-gas.
1336 with_gas=yes ;;
1337
1338 -help | --help | --hel | --he | -h)
1339 ac_init_help=long ;;
1340 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1341 ac_init_help=recursive ;;
1342 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1343 ac_init_help=short ;;
1344
1345 -host | --host | --hos | --ho)
1346 ac_prev=host_alias ;;
1347 -host=* | --host=* | --hos=* | --ho=*)
1348 host_alias=$ac_optarg ;;
1349
1350 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1351 ac_prev=htmldir ;;
1352 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1353 | --ht=*)
1354 htmldir=$ac_optarg ;;
1355
1356 -includedir | --includedir | --includedi | --included | --include \
1357 | --includ | --inclu | --incl | --inc)
1358 ac_prev=includedir ;;
1359 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1360 | --includ=* | --inclu=* | --incl=* | --inc=*)
1361 includedir=$ac_optarg ;;
1362
1363 -infodir | --infodir | --infodi | --infod | --info | --inf)
1364 ac_prev=infodir ;;
1365 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1366 infodir=$ac_optarg ;;
1367
1368 -libdir | --libdir | --libdi | --libd)
1369 ac_prev=libdir ;;
1370 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1371 libdir=$ac_optarg ;;
1372
1373 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1374 | --libexe | --libex | --libe)
1375 ac_prev=libexecdir ;;
1376 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1377 | --libexe=* | --libex=* | --libe=*)
1378 libexecdir=$ac_optarg ;;
1379
1380 -localedir | --localedir | --localedi | --localed | --locale)
1381 ac_prev=localedir ;;
1382 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1383 localedir=$ac_optarg ;;
1384
1385 -localstatedir | --localstatedir | --localstatedi | --localstated \
1386 | --localstate | --localstat | --localsta | --localst | --locals)
1387 ac_prev=localstatedir ;;
1388 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1389 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1390 localstatedir=$ac_optarg ;;
1391
1392 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1393 ac_prev=mandir ;;
1394 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1395 mandir=$ac_optarg ;;
1396
1397 -nfp | --nfp | --nf)
1398 # Obsolete; use --without-fp.
1399 with_fp=no ;;
1400
1401 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1402 | --no-cr | --no-c | -n)
1403 no_create=yes ;;
1404
1405 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1406 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1407 no_recursion=yes ;;
1408
1409 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1410 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1411 | --oldin | --oldi | --old | --ol | --o)
1412 ac_prev=oldincludedir ;;
1413 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1414 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1415 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1416 oldincludedir=$ac_optarg ;;
1417
1418 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1419 ac_prev=prefix ;;
1420 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1421 prefix=$ac_optarg ;;
1422
1423 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1424 | --program-pre | --program-pr | --program-p)
1425 ac_prev=program_prefix ;;
1426 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1427 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1428 program_prefix=$ac_optarg ;;
1429
1430 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1431 | --program-suf | --program-su | --program-s)
1432 ac_prev=program_suffix ;;
1433 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1434 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1435 program_suffix=$ac_optarg ;;
1436
1437 -program-transform-name | --program-transform-name \
1438 | --program-transform-nam | --program-transform-na \
1439 | --program-transform-n | --program-transform- \
1440 | --program-transform | --program-transfor \
1441 | --program-transfo | --program-transf \
1442 | --program-trans | --program-tran \
1443 | --progr-tra | --program-tr | --program-t)
1444 ac_prev=program_transform_name ;;
1445 -program-transform-name=* | --program-transform-name=* \
1446 | --program-transform-nam=* | --program-transform-na=* \
1447 | --program-transform-n=* | --program-transform-=* \
1448 | --program-transform=* | --program-transfor=* \
1449 | --program-transfo=* | --program-transf=* \
1450 | --program-trans=* | --program-tran=* \
1451 | --progr-tra=* | --program-tr=* | --program-t=*)
1452 program_transform_name=$ac_optarg ;;
1453
1454 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1455 ac_prev=pdfdir ;;
1456 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1457 pdfdir=$ac_optarg ;;
1458
1459 -psdir | --psdir | --psdi | --psd | --ps)
1460 ac_prev=psdir ;;
1461 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1462 psdir=$ac_optarg ;;
1463
1464 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1465 | -silent | --silent | --silen | --sile | --sil)
1466 silent=yes ;;
1467
1468 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1469 ac_prev=sbindir ;;
1470 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1471 | --sbi=* | --sb=*)
1472 sbindir=$ac_optarg ;;
1473
1474 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1475 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1476 | --sharedst | --shareds | --shared | --share | --shar \
1477 | --sha | --sh)
1478 ac_prev=sharedstatedir ;;
1479 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1480 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1481 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1482 | --sha=* | --sh=*)
1483 sharedstatedir=$ac_optarg ;;
1484
1485 -site | --site | --sit)
1486 ac_prev=site ;;
1487 -site=* | --site=* | --sit=*)
1488 site=$ac_optarg ;;
1489
1490 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1491 ac_prev=srcdir ;;
1492 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1493 srcdir=$ac_optarg ;;
1494
1495 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1496 | --syscon | --sysco | --sysc | --sys | --sy)
1497 ac_prev=sysconfdir ;;
1498 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1499 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1500 sysconfdir=$ac_optarg ;;
1501
1502 -target | --target | --targe | --targ | --tar | --ta | --t)
1503 ac_prev=target_alias ;;
1504 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1505 target_alias=$ac_optarg ;;
1506
1507 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1508 verbose=yes ;;
1509
1510 -version | --version | --versio | --versi | --vers | -V)
1511 ac_init_version=: ;;
1512
1513 -with-* | --with-*)
1514 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1515 # Reject names that are not valid shell variable names.
1516 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001517 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001518 ac_useropt_orig=$ac_useropt
1519 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1520 case $ac_user_opts in
1521 *"
1522"with_$ac_useropt"
1523"*) ;;
1524 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1525 ac_unrecognized_sep=', ';;
1526 esac
1527 eval with_$ac_useropt=\$ac_optarg ;;
1528
1529 -without-* | --without-*)
1530 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1531 # Reject names that are not valid shell variable names.
1532 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001533 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001534 ac_useropt_orig=$ac_useropt
1535 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1536 case $ac_user_opts in
1537 *"
1538"with_$ac_useropt"
1539"*) ;;
1540 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1541 ac_unrecognized_sep=', ';;
1542 esac
1543 eval with_$ac_useropt=no ;;
1544
1545 --x)
1546 # Obsolete; use --with-x.
1547 with_x=yes ;;
1548
1549 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1550 | --x-incl | --x-inc | --x-in | --x-i)
1551 ac_prev=x_includes ;;
1552 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1553 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1554 x_includes=$ac_optarg ;;
1555
1556 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1557 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1558 ac_prev=x_libraries ;;
1559 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1560 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1561 x_libraries=$ac_optarg ;;
1562
cristy98dddb52010-11-04 00:30:15 +00001563 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1564Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001565 ;;
1566
1567 *=*)
1568 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1569 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001570 case $ac_envvar in #(
1571 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001572 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001573 esac
cristy3ed852e2009-09-05 21:47:34 +00001574 eval $ac_envvar=\$ac_optarg
1575 export $ac_envvar ;;
1576
1577 *)
1578 # FIXME: should be removed in autoconf 3.0.
1579 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1580 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1581 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001582 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001583 ;;
1584
1585 esac
1586done
1587
1588if test -n "$ac_prev"; then
1589 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001590 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001591fi
1592
1593if test -n "$ac_unrecognized_opts"; then
1594 case $enable_option_checking in
1595 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001596 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001597 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1598 esac
1599fi
1600
1601# Check all directory arguments for consistency.
1602for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1603 datadir sysconfdir sharedstatedir localstatedir includedir \
1604 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1605 libdir localedir mandir
1606do
1607 eval ac_val=\$$ac_var
1608 # Remove trailing slashes.
1609 case $ac_val in
1610 */ )
1611 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1612 eval $ac_var=\$ac_val;;
1613 esac
1614 # Be sure to have absolute directory names.
1615 case $ac_val in
1616 [\\/$]* | ?:[\\/]* ) continue;;
1617 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1618 esac
cristy98dddb52010-11-04 00:30:15 +00001619 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001620done
1621
1622# There might be people who depend on the old broken behavior: `$host'
1623# used to hold the argument of --host etc.
1624# FIXME: To remove some day.
1625build=$build_alias
1626host=$host_alias
1627target=$target_alias
1628
1629# FIXME: To remove some day.
1630if test "x$host_alias" != x; then
1631 if test "x$build_alias" = x; then
1632 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001633 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1634 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001635 elif test "x$build_alias" != "x$host_alias"; then
1636 cross_compiling=yes
1637 fi
1638fi
1639
1640ac_tool_prefix=
1641test -n "$host_alias" && ac_tool_prefix=$host_alias-
1642
1643test "$silent" = yes && exec 6>/dev/null
1644
1645
1646ac_pwd=`pwd` && test -n "$ac_pwd" &&
1647ac_ls_di=`ls -di .` &&
1648ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001649 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001650test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001651 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001652
1653
1654# Find the source files, if location was not specified.
1655if test -z "$srcdir"; then
1656 ac_srcdir_defaulted=yes
1657 # Try the directory containing this script, then the parent directory.
1658 ac_confdir=`$as_dirname -- "$as_myself" ||
1659$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1660 X"$as_myself" : 'X\(//\)[^/]' \| \
1661 X"$as_myself" : 'X\(//\)$' \| \
1662 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1663$as_echo X"$as_myself" |
1664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1665 s//\1/
1666 q
1667 }
1668 /^X\(\/\/\)[^/].*/{
1669 s//\1/
1670 q
1671 }
1672 /^X\(\/\/\)$/{
1673 s//\1/
1674 q
1675 }
1676 /^X\(\/\).*/{
1677 s//\1/
1678 q
1679 }
1680 s/.*/./; q'`
1681 srcdir=$ac_confdir
1682 if test ! -r "$srcdir/$ac_unique_file"; then
1683 srcdir=..
1684 fi
1685else
1686 ac_srcdir_defaulted=no
1687fi
1688if test ! -r "$srcdir/$ac_unique_file"; then
1689 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001690 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001691fi
1692ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1693ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001694 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001695 pwd)`
1696# When building in place, set srcdir=.
1697if test "$ac_abs_confdir" = "$ac_pwd"; then
1698 srcdir=.
1699fi
1700# Remove unnecessary trailing slashes from srcdir.
1701# Double slashes in file names in object file debugging info
1702# mess up M-x gdb in Emacs.
1703case $srcdir in
1704*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1705esac
1706for ac_var in $ac_precious_vars; do
1707 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1708 eval ac_env_${ac_var}_value=\$${ac_var}
1709 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1710 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1711done
1712
1713#
1714# Report the --help message.
1715#
1716if test "$ac_init_help" = "long"; then
1717 # Omit some internal or obsolete options to make the list less imposing.
1718 # This message is too long to be a string in the A/UX 3.1 sh.
1719 cat <<_ACEOF
cristy4c08aed2011-07-01 19:47:50 +00001720\`configure' configures ImageMagick 7.0.0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001721
1722Usage: $0 [OPTION]... [VAR=VALUE]...
1723
1724To assign environment variables (e.g., CC, CFLAGS...), specify them as
1725VAR=VALUE. See below for descriptions of some of the useful variables.
1726
1727Defaults for the options are specified in brackets.
1728
1729Configuration:
1730 -h, --help display this help and exit
1731 --help=short display options specific to this package
1732 --help=recursive display the short help of all the included packages
1733 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001734 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001735 --cache-file=FILE cache test results in FILE [disabled]
1736 -C, --config-cache alias for \`--cache-file=config.cache'
1737 -n, --no-create do not create output files
1738 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1739
1740Installation directories:
1741 --prefix=PREFIX install architecture-independent files in PREFIX
1742 [$ac_default_prefix]
1743 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1744 [PREFIX]
1745
1746By default, \`make install' will install all the files in
1747\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1748an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1749for instance \`--prefix=\$HOME'.
1750
1751For better control, use the options below.
1752
1753Fine tuning of the installation directories:
1754 --bindir=DIR user executables [EPREFIX/bin]
1755 --sbindir=DIR system admin executables [EPREFIX/sbin]
1756 --libexecdir=DIR program executables [EPREFIX/libexec]
1757 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1758 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1759 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1760 --libdir=DIR object code libraries [EPREFIX/lib]
1761 --includedir=DIR C header files [PREFIX/include]
1762 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1763 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1764 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1765 --infodir=DIR info documentation [DATAROOTDIR/info]
1766 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1767 --mandir=DIR man documentation [DATAROOTDIR/man]
cristyd55889c2011-03-27 00:50:24 +00001768 --docdir=DIR documentation root
cristy4c08aed2011-07-01 19:47:50 +00001769 [DATAROOTDIR/doc/ImageMagick-7.0.0]
cristy3ed852e2009-09-05 21:47:34 +00001770 --htmldir=DIR html documentation [DOCDIR]
1771 --dvidir=DIR dvi documentation [DOCDIR]
1772 --pdfdir=DIR pdf documentation [DOCDIR]
1773 --psdir=DIR ps documentation [DOCDIR]
1774_ACEOF
1775
1776 cat <<\_ACEOF
1777
cristy73bd4a52010-10-05 11:24:23 +00001778Program names:
1779 --program-prefix=PREFIX prepend PREFIX to installed program names
1780 --program-suffix=SUFFIX append SUFFIX to installed program names
1781 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1782
cristy3ed852e2009-09-05 21:47:34 +00001783X features:
1784 --x-includes=DIR X include files are in DIR
1785 --x-libraries=DIR X library files are in DIR
1786
1787System types:
1788 --build=BUILD configure for building on BUILD [guessed]
1789 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1790 --target=TARGET configure for building compilers for TARGET [HOST]
1791_ACEOF
1792fi
1793
1794if test -n "$ac_init_help"; then
1795 case $ac_init_help in
cristy4c08aed2011-07-01 19:47:50 +00001796 short | recursive ) echo "Configuration of ImageMagick 7.0.0:";;
cristy3ed852e2009-09-05 21:47:34 +00001797 esac
1798 cat <<\_ACEOF
1799
1800Optional Features:
1801 --disable-option-checking ignore unrecognized --enable/--with options
1802 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1803 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001804 --enable-silent-rules less verbose build output (undo: `make V=1')
1805 --disable-silent-rules verbose build output (undo: `make V=0')
1806 --disable-dependency-tracking speeds up one-time build
1807 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001808 --bounds-checking enable run-time bounds-checking
1809 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001810 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001811 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001812 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001813 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001814 --enable-shared[=PKGS] build shared libraries [default=yes]
1815 --enable-static[=PKGS] build static libraries [default=yes]
1816 --enable-fast-install[=PKGS]
1817 optimize for fast installation [default=yes]
1818 --disable-libtool-lock avoid locking (might break parallel builds)
1819 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001820 --enable-delegate-build look for delegate libraries in build directory
1821 --disable-deprecated exclude deprecated methods in MagickCore and
1822 MagickWand API's
1823 --disable-installed Formally install ImageMagick under PREFIX
1824 --disable-cipher disable enciphering and deciphering image pixels
1825 --enable-embeddable enable self-contained, embeddable,
1826 zero-configuration ImageMagick
1827 --enable-hdri accurately represent the wide range of intensity
1828 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001829 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001830 --enable-maintainer-mode enable make rules and dependencies not useful
1831 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001832 --enable-ccmalloc enable 'ccmalloc' memory debug support
1833 --enable-efence enable 'efence' memory debug support
1834 --enable-prof enable 'prof' profiling support
1835 --enable-gprof enable 'gprof' profiling support
1836 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001837 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001838
1839Optional Packages:
1840 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1841 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001842 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1843 --with-dmalloc use dmalloc, as in
1844 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001845 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001846 --with-pic try to use only PIC/non-PIC objects [default=use
1847 both]
cristyda16f162011-02-19 23:52:17 +00001848 --with-sysroot=DIR Search for dependent libraries within DIR
1849 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001850 --with-included-ltdl use the GNU ltdl sources included here
1851 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1852 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001853 --with-modules enable building dynamically loadable modules
1854 --with-method-prefix=PREFIX
1855 prefix MagickCore API methods
1856 --with-quantum-depth=DEPTH
1857 number of bits in a pixel quantum (default 16)
1858 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1859 memory)
1860 --with-frozenpaths freeze delegate paths
1861 --without-magick-plus-plus
1862 disable build/install of Magick++
1863 --with-perl enable build/install of PerlMagick
1864 --with-perl-options=OPTIONS
1865 options to pass on command-line when generating
1866 PerlMagick's build file
1867 --with-umem enable umem memory allocation library support
1868 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1869 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001870 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001871 --without-zlib disable ZLIB support
1872 --with-autotrace enable autotrace support
1873 --without-dps disable Display Postscript support
1874 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001875 --with-dejavu-font-dir=DIR
1876 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001877 --without-fftw disable FFTW support
1878 --without-fpx disable FlashPIX support
1879 --without-fontconfig disable fontconfig support
1880 --without-freetype disable Freetype support
1881 --without-gslib enable Ghostscript library support
1882 --with-fontpath=DIR prepend to default font search path
1883 --with-gs-font-dir=DIR Ghostscript font directory
1884 --without-gvc disable GVC support
1885 --without-jbig disable JBIG support
1886 --without-jpeg disable JPEG support
1887 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001888 --without-lcms disable lcms (v1.1X) support
1889 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001890 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001891 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001892 --without-openexr disable OpenEXR support
1893 --without-png disable PNG support
1894 --without-rsvg disable RSVG support
1895 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001896 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001897 --with-windows-font-dir=DIR
1898 directory containing MS-Windows fonts
1899 --without-wmf disable WMF support
1900 --without-xml disable XML support
1901
1902Some influential environment variables:
1903 CC C compiler command
1904 CFLAGS C compiler flags
1905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1906 nonstandard directory <lib dir>
1907 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001908 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001909 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001910 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001911 CXX C++ compiler command
1912 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001913 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001914 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001915 XMKMF Path to xmkmf, Makefile generator for X Window System
1916 AUTOTRACE_CFLAGS
1917 C compiler flags for AUTOTRACE, overriding pkg-config
1918 AUTOTRACE_LIBS
1919 linker flags for AUTOTRACE, overriding pkg-config
1920 FONTCONFIG_CFLAGS
1921 C compiler flags for FONTCONFIG, overriding pkg-config
1922 FONTCONFIG_LIBS
1923 linker flags for FONTCONFIG, overriding pkg-config
1924 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1925 GVC_LIBS linker flags for GVC, overriding pkg-config
1926 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1927 LQR_LIBS linker flags for LQR, overriding pkg-config
1928 OPENEXR_CFLAGS
1929 C compiler flags for OPENEXR, overriding pkg-config
1930 OPENEXR_LIBS
1931 linker flags for OPENEXR, overriding pkg-config
1932 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1933 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1934 CAIRO_SVG_CFLAGS
1935 C compiler flags for CAIRO_SVG, overriding pkg-config
1936 CAIRO_SVG_LIBS
1937 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001938
1939Use these variables to override the choices made by `configure' or to help
1940it to find libraries and programs with nonstandard names/locations.
1941
1942Report bugs to <http://www.imagemagick.org>.
1943_ACEOF
1944ac_status=$?
1945fi
1946
1947if test "$ac_init_help" = "recursive"; then
1948 # If there are subdirs, report their specific --help.
1949 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1950 test -d "$ac_dir" ||
1951 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1952 continue
1953 ac_builddir=.
1954
1955case "$ac_dir" in
1956.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1957*)
1958 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1959 # A ".." for each directory in $ac_dir_suffix.
1960 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1961 case $ac_top_builddir_sub in
1962 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1963 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1964 esac ;;
1965esac
1966ac_abs_top_builddir=$ac_pwd
1967ac_abs_builddir=$ac_pwd$ac_dir_suffix
1968# for backward compatibility:
1969ac_top_builddir=$ac_top_build_prefix
1970
1971case $srcdir in
1972 .) # We are building in place.
1973 ac_srcdir=.
1974 ac_top_srcdir=$ac_top_builddir_sub
1975 ac_abs_top_srcdir=$ac_pwd ;;
1976 [\\/]* | ?:[\\/]* ) # Absolute name.
1977 ac_srcdir=$srcdir$ac_dir_suffix;
1978 ac_top_srcdir=$srcdir
1979 ac_abs_top_srcdir=$srcdir ;;
1980 *) # Relative name.
1981 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1982 ac_top_srcdir=$ac_top_build_prefix$srcdir
1983 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1984esac
1985ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1986
1987 cd "$ac_dir" || { ac_status=$?; continue; }
1988 # Check for guested configure.
1989 if test -f "$ac_srcdir/configure.gnu"; then
1990 echo &&
1991 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1992 elif test -f "$ac_srcdir/configure"; then
1993 echo &&
1994 $SHELL "$ac_srcdir/configure" --help=recursive
1995 else
1996 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1997 fi || ac_status=$?
1998 cd "$ac_pwd" || { ac_status=$?; break; }
1999 done
2000fi
2001
2002test -n "$ac_init_help" && exit $ac_status
2003if $ac_init_version; then
2004 cat <<\_ACEOF
cristy4c08aed2011-07-01 19:47:50 +00002005ImageMagick configure 7.0.0
cristyda16f162011-02-19 23:52:17 +00002006generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002007
cristy98dddb52010-11-04 00:30:15 +00002008Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002009This configure script is free software; the Free Software Foundation
2010gives unlimited permission to copy, distribute and modify it.
2011_ACEOF
2012 exit
2013fi
cristy8b350f62009-11-15 23:12:43 +00002014
2015## ------------------------ ##
2016## Autoconf initialization. ##
2017## ------------------------ ##
2018
2019# ac_fn_c_try_compile LINENO
2020# --------------------------
2021# Try to compile conftest.$ac_ext, and return whether this succeeded.
2022ac_fn_c_try_compile ()
2023{
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 rm -f conftest.$ac_objext
2026 if { { ac_try="$ac_compile"
2027case "(($ac_try" in
2028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2029 *) ac_try_echo=$ac_try;;
2030esac
2031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2032$as_echo "$ac_try_echo"; } >&5
2033 (eval "$ac_compile") 2>conftest.err
2034 ac_status=$?
2035 if test -s conftest.err; then
2036 grep -v '^ *+' conftest.err >conftest.er1
2037 cat conftest.er1 >&5
2038 mv -f conftest.er1 conftest.err
2039 fi
2040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2041 test $ac_status = 0; } && {
2042 test -z "$ac_c_werror_flag" ||
2043 test ! -s conftest.err
2044 } && test -s conftest.$ac_objext; then :
2045 ac_retval=0
2046else
2047 $as_echo "$as_me: failed program was:" >&5
2048sed 's/^/| /' conftest.$ac_ext >&5
2049
2050 ac_retval=1
2051fi
cristyda16f162011-02-19 23:52:17 +00002052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002053 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002054
2055} # ac_fn_c_try_compile
2056
cristy95646052009-11-28 23:05:30 +00002057# ac_fn_c_try_cpp LINENO
2058# ----------------------
2059# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2060ac_fn_c_try_cpp ()
2061{
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 if { { ac_try="$ac_cpp conftest.$ac_ext"
2064case "(($ac_try" in
2065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066 *) ac_try_echo=$ac_try;;
2067esac
2068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069$as_echo "$ac_try_echo"; } >&5
2070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2071 ac_status=$?
2072 if test -s conftest.err; then
2073 grep -v '^ *+' conftest.err >conftest.er1
2074 cat conftest.er1 >&5
2075 mv -f conftest.er1 conftest.err
2076 fi
2077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002078 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2080 test ! -s conftest.err
2081 }; then :
2082 ac_retval=0
2083else
2084 $as_echo "$as_me: failed program was:" >&5
2085sed 's/^/| /' conftest.$ac_ext >&5
2086
2087 ac_retval=1
2088fi
cristyda16f162011-02-19 23:52:17 +00002089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002090 as_fn_set_status $ac_retval
2091
2092} # ac_fn_c_try_cpp
2093
cristy8b350f62009-11-15 23:12:43 +00002094# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2095# -------------------------------------------------------
2096# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2097# the include files in INCLUDES and setting the cache variable VAR
2098# accordingly.
2099ac_fn_c_check_header_mongrel ()
2100{
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002102 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002105if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002106 $as_echo_n "(cached) " >&6
2107fi
2108eval ac_res=\$$3
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110$as_echo "$ac_res" >&6; }
2111else
2112 # Is the header compilable?
2113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2114$as_echo_n "checking $2 usability... " >&6; }
2115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116/* end confdefs.h. */
2117$4
2118#include <$2>
2119_ACEOF
2120if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_header_compiler=yes
2122else
2123 ac_header_compiler=no
2124fi
2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2127$as_echo "$ac_header_compiler" >&6; }
2128
2129# Is the header present?
2130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2131$as_echo_n "checking $2 presence... " >&6; }
2132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h. */
2134#include <$2>
2135_ACEOF
2136if ac_fn_c_try_cpp "$LINENO"; then :
2137 ac_header_preproc=yes
2138else
2139 ac_header_preproc=no
2140fi
cristyda16f162011-02-19 23:52:17 +00002141rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2143$as_echo "$ac_header_preproc" >&6; }
2144
2145# So? What about this header?
2146case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2147 yes:no: )
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2149$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2151$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2152 ;;
2153 no:yes:* )
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2155$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2157$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2159$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2161$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2163$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002164( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002165## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002166## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002167 ) | sed "s/^/$as_me: WARNING: /" >&2
2168 ;;
2169esac
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2171$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002172if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002173 $as_echo_n "(cached) " >&6
2174else
2175 eval "$3=\$ac_header_compiler"
2176fi
2177eval ac_res=\$$3
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179$as_echo "$ac_res" >&6; }
2180fi
cristyda16f162011-02-19 23:52:17 +00002181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002182
2183} # ac_fn_c_check_header_mongrel
2184
2185# ac_fn_c_try_run LINENO
2186# ----------------------
2187# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2188# that executables *can* be run.
2189ac_fn_c_try_run ()
2190{
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 if { { ac_try="$ac_link"
2193case "(($ac_try" in
2194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195 *) ac_try_echo=$ac_try;;
2196esac
2197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2198$as_echo "$ac_try_echo"; } >&5
2199 (eval "$ac_link") 2>&5
2200 ac_status=$?
2201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2202 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2203 { { case "(($ac_try" in
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2206esac
2207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2208$as_echo "$ac_try_echo"; } >&5
2209 (eval "$ac_try") 2>&5
2210 ac_status=$?
2211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2212 test $ac_status = 0; }; }; then :
2213 ac_retval=0
2214else
2215 $as_echo "$as_me: program exited with status $ac_status" >&5
2216 $as_echo "$as_me: failed program was:" >&5
2217sed 's/^/| /' conftest.$ac_ext >&5
2218
2219 ac_retval=$ac_status
2220fi
2221 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002223 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002224
2225} # ac_fn_c_try_run
2226
2227# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2228# -------------------------------------------------------
2229# Tests whether HEADER exists and can be compiled using the include files in
2230# INCLUDES, setting the cache variable VAR accordingly.
2231ac_fn_c_check_header_compile ()
2232{
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002236if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002237 $as_echo_n "(cached) " >&6
2238else
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240/* end confdefs.h. */
2241$4
2242#include <$2>
2243_ACEOF
2244if ac_fn_c_try_compile "$LINENO"; then :
2245 eval "$3=yes"
2246else
2247 eval "$3=no"
2248fi
2249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250fi
2251eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002255
2256} # ac_fn_c_check_header_compile
2257
cristya0b81c32010-01-22 02:54:33 +00002258# ac_fn_cxx_try_compile LINENO
2259# ----------------------------
2260# Try to compile conftest.$ac_ext, and return whether this succeeded.
2261ac_fn_cxx_try_compile ()
2262{
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 rm -f conftest.$ac_objext
2265 if { { ac_try="$ac_compile"
2266case "(($ac_try" in
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2269esac
2270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2271$as_echo "$ac_try_echo"; } >&5
2272 (eval "$ac_compile") 2>conftest.err
2273 ac_status=$?
2274 if test -s conftest.err; then
2275 grep -v '^ *+' conftest.err >conftest.er1
2276 cat conftest.er1 >&5
2277 mv -f conftest.er1 conftest.err
2278 fi
2279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2280 test $ac_status = 0; } && {
2281 test -z "$ac_cxx_werror_flag" ||
2282 test ! -s conftest.err
2283 } && test -s conftest.$ac_objext; then :
2284 ac_retval=0
2285else
2286 $as_echo "$as_me: failed program was:" >&5
2287sed 's/^/| /' conftest.$ac_ext >&5
2288
2289 ac_retval=1
2290fi
cristyda16f162011-02-19 23:52:17 +00002291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002292 as_fn_set_status $ac_retval
2293
2294} # ac_fn_cxx_try_compile
2295
cristy8b350f62009-11-15 23:12:43 +00002296# ac_fn_c_try_link LINENO
2297# -----------------------
2298# Try to link conftest.$ac_ext, and return whether this succeeded.
2299ac_fn_c_try_link ()
2300{
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 rm -f conftest.$ac_objext conftest$ac_exeext
2303 if { { ac_try="$ac_link"
2304case "(($ac_try" in
2305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2306 *) ac_try_echo=$ac_try;;
2307esac
2308eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2309$as_echo "$ac_try_echo"; } >&5
2310 (eval "$ac_link") 2>conftest.err
2311 ac_status=$?
2312 if test -s conftest.err; then
2313 grep -v '^ *+' conftest.err >conftest.er1
2314 cat conftest.er1 >&5
2315 mv -f conftest.er1 conftest.err
2316 fi
2317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2318 test $ac_status = 0; } && {
2319 test -z "$ac_c_werror_flag" ||
2320 test ! -s conftest.err
2321 } && test -s conftest$ac_exeext && {
2322 test "$cross_compiling" = yes ||
2323 $as_test_x conftest$ac_exeext
2324 }; then :
2325 ac_retval=0
2326else
2327 $as_echo "$as_me: failed program was:" >&5
2328sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 ac_retval=1
2331fi
2332 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2333 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2334 # interfere with the next link command; also delete a directory that is
2335 # left behind by Apple's compiler. We do this before executing the actions.
2336 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002337 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002338 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002339
2340} # ac_fn_c_try_link
2341
cristy73bd4a52010-10-05 11:24:23 +00002342# ac_fn_c_check_func LINENO FUNC VAR
2343# ----------------------------------
2344# Tests whether FUNC exists, setting the cache variable VAR accordingly
2345ac_fn_c_check_func ()
2346{
2347 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2349$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002350if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002351 $as_echo_n "(cached) " >&6
2352else
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354/* end confdefs.h. */
2355/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2357#define $2 innocuous_$2
2358
2359/* System header to define __stub macros and hopefully few prototypes,
2360 which can conflict with char $2 (); below.
2361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2362 <limits.h> exists even on freestanding compilers. */
2363
2364#ifdef __STDC__
2365# include <limits.h>
2366#else
2367# include <assert.h>
2368#endif
2369
2370#undef $2
2371
2372/* Override any GCC internal prototype to avoid an error.
2373 Use char because int might match the return type of a GCC
2374 builtin and then its argument prototype would still apply. */
2375#ifdef __cplusplus
2376extern "C"
2377#endif
2378char $2 ();
2379/* The GNU C library defines this for functions which it implements
2380 to always fail with ENOSYS. Some functions are actually named
2381 something starting with __ and the normal name is an alias. */
2382#if defined __stub_$2 || defined __stub___$2
2383choke me
2384#endif
2385
2386int
2387main ()
2388{
2389return $2 ();
2390 ;
2391 return 0;
2392}
2393_ACEOF
2394if ac_fn_c_try_link "$LINENO"; then :
2395 eval "$3=yes"
2396else
2397 eval "$3=no"
2398fi
2399rm -f core conftest.err conftest.$ac_objext \
2400 conftest$ac_exeext conftest.$ac_ext
2401fi
2402eval ac_res=\$$3
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002405 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002406
2407} # ac_fn_c_check_func
2408
2409# ac_fn_cxx_try_cpp LINENO
2410# ------------------------
2411# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2412ac_fn_cxx_try_cpp ()
2413{
2414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2415 if { { ac_try="$ac_cpp conftest.$ac_ext"
2416case "(($ac_try" in
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2419esac
2420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2421$as_echo "$ac_try_echo"; } >&5
2422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2423 ac_status=$?
2424 if test -s conftest.err; then
2425 grep -v '^ *+' conftest.err >conftest.er1
2426 cat conftest.er1 >&5
2427 mv -f conftest.er1 conftest.err
2428 fi
2429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002430 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002431 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2432 test ! -s conftest.err
2433 }; then :
2434 ac_retval=0
2435else
2436 $as_echo "$as_me: failed program was:" >&5
2437sed 's/^/| /' conftest.$ac_ext >&5
2438
2439 ac_retval=1
2440fi
cristyda16f162011-02-19 23:52:17 +00002441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002442 as_fn_set_status $ac_retval
2443
2444} # ac_fn_cxx_try_cpp
2445
2446# ac_fn_cxx_try_link LINENO
2447# -------------------------
2448# Try to link conftest.$ac_ext, and return whether this succeeded.
2449ac_fn_cxx_try_link ()
2450{
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 rm -f conftest.$ac_objext conftest$ac_exeext
2453 if { { ac_try="$ac_link"
2454case "(($ac_try" in
2455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456 *) ac_try_echo=$ac_try;;
2457esac
2458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2459$as_echo "$ac_try_echo"; } >&5
2460 (eval "$ac_link") 2>conftest.err
2461 ac_status=$?
2462 if test -s conftest.err; then
2463 grep -v '^ *+' conftest.err >conftest.er1
2464 cat conftest.er1 >&5
2465 mv -f conftest.er1 conftest.err
2466 fi
2467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2468 test $ac_status = 0; } && {
2469 test -z "$ac_cxx_werror_flag" ||
2470 test ! -s conftest.err
2471 } && test -s conftest$ac_exeext && {
2472 test "$cross_compiling" = yes ||
2473 $as_test_x conftest$ac_exeext
2474 }; then :
2475 ac_retval=0
2476else
2477 $as_echo "$as_me: failed program was:" >&5
2478sed 's/^/| /' conftest.$ac_ext >&5
2479
2480 ac_retval=1
2481fi
2482 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2483 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2484 # interfere with the next link command; also delete a directory that is
2485 # left behind by Apple's compiler. We do this before executing the actions.
2486 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002487 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002488 as_fn_set_status $ac_retval
2489
2490} # ac_fn_cxx_try_link
2491
cristy98dddb52010-11-04 00:30:15 +00002492# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2493# ---------------------------------------------
2494# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2495# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002496ac_fn_c_check_decl ()
2497{
2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002499 as_decl_name=`echo $2|sed 's/ *(.*//'`
2500 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2502$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002503if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002504 $as_echo_n "(cached) " >&6
2505else
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507/* end confdefs.h. */
2508$4
2509int
2510main ()
2511{
cristy98dddb52010-11-04 00:30:15 +00002512#ifndef $as_decl_name
2513#ifdef __cplusplus
2514 (void) $as_decl_use;
2515#else
2516 (void) $as_decl_name;
2517#endif
cristy73bd4a52010-10-05 11:24:23 +00002518#endif
2519
2520 ;
2521 return 0;
2522}
2523_ACEOF
2524if ac_fn_c_try_compile "$LINENO"; then :
2525 eval "$3=yes"
2526else
2527 eval "$3=no"
2528fi
2529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2530fi
2531eval ac_res=\$$3
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2533$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002535
2536} # ac_fn_c_check_decl
2537
cristy8b350f62009-11-15 23:12:43 +00002538# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2539# -------------------------------------------
2540# Tests whether TYPE exists after having included INCLUDES, setting cache
2541# variable VAR accordingly.
2542ac_fn_c_check_type ()
2543{
2544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2546$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002547if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002548 $as_echo_n "(cached) " >&6
2549else
2550 eval "$3=no"
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552/* end confdefs.h. */
2553$4
2554int
2555main ()
2556{
2557if (sizeof ($2))
2558 return 0;
2559 ;
2560 return 0;
2561}
2562_ACEOF
2563if ac_fn_c_try_compile "$LINENO"; then :
2564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565/* end confdefs.h. */
2566$4
2567int
2568main ()
2569{
2570if (sizeof (($2)))
2571 return 0;
2572 ;
2573 return 0;
2574}
2575_ACEOF
2576if ac_fn_c_try_compile "$LINENO"; then :
2577
2578else
2579 eval "$3=yes"
2580fi
2581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582fi
2583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584fi
2585eval ac_res=\$$3
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2587$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002589
2590} # ac_fn_c_check_type
2591
cristy92703d82010-04-26 00:18:18 +00002592# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2593# ----------------------------------------------------
2594# Tries to find if the field MEMBER exists in type AGGR, after including
2595# INCLUDES, setting cache variable VAR accordingly.
2596ac_fn_c_check_member ()
2597{
2598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2600$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002601if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002602 $as_echo_n "(cached) " >&6
2603else
2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605/* end confdefs.h. */
2606$5
2607int
2608main ()
2609{
2610static $2 ac_aggr;
2611if (ac_aggr.$3)
2612return 0;
2613 ;
2614 return 0;
2615}
2616_ACEOF
2617if ac_fn_c_try_compile "$LINENO"; then :
2618 eval "$4=yes"
2619else
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621/* end confdefs.h. */
2622$5
2623int
2624main ()
2625{
2626static $2 ac_aggr;
2627if (sizeof ac_aggr.$3)
2628return 0;
2629 ;
2630 return 0;
2631}
2632_ACEOF
2633if ac_fn_c_try_compile "$LINENO"; then :
2634 eval "$4=yes"
2635else
2636 eval "$4=no"
2637fi
2638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639fi
2640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641fi
2642eval ac_res=\$$4
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2644$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002646
2647} # ac_fn_c_check_member
2648
cristy501c8042011-05-26 17:46:28 +00002649# ac_fn_c_find_intX_t LINENO BITS VAR
2650# -----------------------------------
2651# Finds a signed integer type with width BITS, setting cache variable VAR
2652# accordingly.
2653ac_fn_c_find_intX_t ()
2654{
2655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2657$as_echo_n "checking for int$2_t... " >&6; }
2658if eval \${$3+:} false; then :
2659 $as_echo_n "(cached) " >&6
2660else
2661 eval "$3=no"
2662 # Order is important - never check a type that is potentially smaller
2663 # than half of the expected target width.
2664 for ac_type in int$2_t 'int' 'long int' \
2665 'long long int' 'short int' 'signed char'; do
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667/* end confdefs.h. */
2668$ac_includes_default
2669 enum { N = $2 / 2 - 1 };
2670int
2671main ()
2672{
2673static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2674test_array [0] = 0
2675
2676 ;
2677 return 0;
2678}
2679_ACEOF
2680if ac_fn_c_try_compile "$LINENO"; then :
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682/* end confdefs.h. */
2683$ac_includes_default
2684 enum { N = $2 / 2 - 1 };
2685int
2686main ()
2687{
2688static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2689 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2690test_array [0] = 0
2691
2692 ;
2693 return 0;
2694}
2695_ACEOF
2696if ac_fn_c_try_compile "$LINENO"; then :
2697
2698else
2699 case $ac_type in #(
2700 int$2_t) :
2701 eval "$3=yes" ;; #(
2702 *) :
2703 eval "$3=\$ac_type" ;;
2704esac
2705fi
2706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707fi
2708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 if eval test \"x\$"$3"\" = x"no"; then :
2710
2711else
2712 break
2713fi
2714 done
2715fi
2716eval ac_res=\$$3
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2718$as_echo "$ac_res" >&6; }
2719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2720
2721} # ac_fn_c_find_intX_t
2722
2723# ac_fn_c_find_uintX_t LINENO BITS VAR
2724# ------------------------------------
2725# Finds an unsigned integer type with width BITS, setting cache variable VAR
2726# accordingly.
2727ac_fn_c_find_uintX_t ()
2728{
2729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2731$as_echo_n "checking for uint$2_t... " >&6; }
2732if eval \${$3+:} false; then :
2733 $as_echo_n "(cached) " >&6
2734else
2735 eval "$3=no"
2736 # Order is important - never check a type that is potentially smaller
2737 # than half of the expected target width.
2738 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2739 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741/* end confdefs.h. */
2742$ac_includes_default
2743int
2744main ()
2745{
2746static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2747test_array [0] = 0
2748
2749 ;
2750 return 0;
2751}
2752_ACEOF
2753if ac_fn_c_try_compile "$LINENO"; then :
2754 case $ac_type in #(
2755 uint$2_t) :
2756 eval "$3=yes" ;; #(
2757 *) :
2758 eval "$3=\$ac_type" ;;
2759esac
2760fi
2761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762 if eval test \"x\$"$3"\" = x"no"; then :
2763
2764else
2765 break
2766fi
2767 done
2768fi
2769eval ac_res=\$$3
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2771$as_echo "$ac_res" >&6; }
2772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2773
2774} # ac_fn_c_find_uintX_t
2775
cristy8b350f62009-11-15 23:12:43 +00002776# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2777# --------------------------------------------
2778# Tries to find the compile-time value of EXPR in a program that includes
2779# INCLUDES, setting VAR accordingly. Returns whether the value could be
2780# computed
2781ac_fn_c_compute_int ()
2782{
2783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2784 if test "$cross_compiling" = yes; then
2785 # Depending upon the size, compute the lo and hi bounds.
2786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2787/* end confdefs.h. */
2788$4
2789int
2790main ()
2791{
2792static int test_array [1 - 2 * !(($2) >= 0)];
2793test_array [0] = 0
2794
2795 ;
2796 return 0;
2797}
2798_ACEOF
2799if ac_fn_c_try_compile "$LINENO"; then :
2800 ac_lo=0 ac_mid=0
2801 while :; do
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803/* end confdefs.h. */
2804$4
2805int
2806main ()
2807{
2808static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2809test_array [0] = 0
2810
2811 ;
2812 return 0;
2813}
2814_ACEOF
2815if ac_fn_c_try_compile "$LINENO"; then :
2816 ac_hi=$ac_mid; break
2817else
2818 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2819 if test $ac_lo -le $ac_mid; then
2820 ac_lo= ac_hi=
2821 break
2822 fi
2823 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2824fi
2825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2826 done
2827else
2828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2829/* end confdefs.h. */
2830$4
2831int
2832main ()
2833{
2834static int test_array [1 - 2 * !(($2) < 0)];
2835test_array [0] = 0
2836
2837 ;
2838 return 0;
2839}
2840_ACEOF
2841if ac_fn_c_try_compile "$LINENO"; then :
2842 ac_hi=-1 ac_mid=-1
2843 while :; do
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845/* end confdefs.h. */
2846$4
2847int
2848main ()
2849{
2850static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2851test_array [0] = 0
2852
2853 ;
2854 return 0;
2855}
2856_ACEOF
2857if ac_fn_c_try_compile "$LINENO"; then :
2858 ac_lo=$ac_mid; break
2859else
2860 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2861 if test $ac_mid -le $ac_hi; then
2862 ac_lo= ac_hi=
2863 break
2864 fi
2865 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2866fi
2867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 done
2869else
2870 ac_lo= ac_hi=
2871fi
2872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873fi
2874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2875# Binary search between lo and hi bounds.
2876while test "x$ac_lo" != "x$ac_hi"; do
2877 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879/* end confdefs.h. */
2880$4
2881int
2882main ()
2883{
2884static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2885test_array [0] = 0
2886
2887 ;
2888 return 0;
2889}
2890_ACEOF
2891if ac_fn_c_try_compile "$LINENO"; then :
2892 ac_hi=$ac_mid
2893else
2894 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2895fi
2896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897done
2898case $ac_lo in #((
2899?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2900'') ac_retval=1 ;;
2901esac
2902 else
2903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904/* end confdefs.h. */
2905$4
2906static long int longval () { return $2; }
2907static unsigned long int ulongval () { return $2; }
2908#include <stdio.h>
2909#include <stdlib.h>
2910int
2911main ()
2912{
2913
2914 FILE *f = fopen ("conftest.val", "w");
2915 if (! f)
2916 return 1;
2917 if (($2) < 0)
2918 {
2919 long int i = longval ();
2920 if (i != ($2))
2921 return 1;
2922 fprintf (f, "%ld", i);
2923 }
2924 else
2925 {
2926 unsigned long int i = ulongval ();
2927 if (i != ($2))
2928 return 1;
2929 fprintf (f, "%lu", i);
2930 }
2931 /* Do not output a trailing newline, as this causes \r\n confusion
2932 on some platforms. */
2933 return ferror (f) || fclose (f) != 0;
2934
2935 ;
2936 return 0;
2937}
2938_ACEOF
2939if ac_fn_c_try_run "$LINENO"; then :
2940 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2941else
2942 ac_retval=1
2943fi
2944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2945 conftest.$ac_objext conftest.beam conftest.$ac_ext
2946rm -f conftest.val
2947
2948 fi
cristyda16f162011-02-19 23:52:17 +00002949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002950 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002951
2952} # ac_fn_c_compute_int
2953
2954# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2955# ---------------------------------------------------------
2956# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2957# the include files in INCLUDES and setting the cache variable VAR
2958# accordingly.
2959ac_fn_cxx_check_header_mongrel ()
2960{
2961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002962 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2964$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002965if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002966 $as_echo_n "(cached) " >&6
2967fi
2968eval ac_res=\$$3
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2970$as_echo "$ac_res" >&6; }
2971else
2972 # Is the header compilable?
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2974$as_echo_n "checking $2 usability... " >&6; }
2975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2976/* end confdefs.h. */
2977$4
2978#include <$2>
2979_ACEOF
2980if ac_fn_cxx_try_compile "$LINENO"; then :
2981 ac_header_compiler=yes
2982else
2983 ac_header_compiler=no
2984fi
2985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2987$as_echo "$ac_header_compiler" >&6; }
2988
2989# Is the header present?
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2991$as_echo_n "checking $2 presence... " >&6; }
2992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993/* end confdefs.h. */
2994#include <$2>
2995_ACEOF
2996if ac_fn_cxx_try_cpp "$LINENO"; then :
2997 ac_header_preproc=yes
2998else
2999 ac_header_preproc=no
3000fi
cristyda16f162011-02-19 23:52:17 +00003001rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3003$as_echo "$ac_header_preproc" >&6; }
3004
3005# So? What about this header?
3006case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3007 yes:no: )
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3009$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3011$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3012 ;;
3013 no:yes:* )
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3015$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3017$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3019$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3021$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3023$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003024( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003025## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003026## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003027 ) | sed "s/^/$as_me: WARNING: /" >&2
3028 ;;
3029esac
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3031$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003032if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003033 $as_echo_n "(cached) " >&6
3034else
3035 eval "$3=\$ac_header_compiler"
3036fi
3037eval ac_res=\$$3
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3039$as_echo "$ac_res" >&6; }
3040fi
cristyda16f162011-02-19 23:52:17 +00003041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003042
3043} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003044cat >config.log <<_ACEOF
3045This file contains any messages produced by compilers while
3046running configure, to aid debugging if configure makes a mistake.
3047
cristy4c08aed2011-07-01 19:47:50 +00003048It was created by ImageMagick $as_me 7.0.0, which was
cristyda16f162011-02-19 23:52:17 +00003049generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003050
3051 $ $0 $@
3052
3053_ACEOF
3054exec 5>>config.log
3055{
3056cat <<_ASUNAME
3057## --------- ##
3058## Platform. ##
3059## --------- ##
3060
3061hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3062uname -m = `(uname -m) 2>/dev/null || echo unknown`
3063uname -r = `(uname -r) 2>/dev/null || echo unknown`
3064uname -s = `(uname -s) 2>/dev/null || echo unknown`
3065uname -v = `(uname -v) 2>/dev/null || echo unknown`
3066
3067/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3068/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3069
3070/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3071/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3072/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3073/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3074/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3075/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3076/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3077
3078_ASUNAME
3079
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003085 $as_echo "PATH: $as_dir"
3086 done
cristy3ed852e2009-09-05 21:47:34 +00003087IFS=$as_save_IFS
3088
3089} >&5
3090
3091cat >&5 <<_ACEOF
3092
3093
3094## ----------- ##
3095## Core tests. ##
3096## ----------- ##
3097
3098_ACEOF
3099
3100
3101# Keep a trace of the command line.
3102# Strip out --no-create and --no-recursion so they do not pile up.
3103# Strip out --silent because we don't want to record it for future runs.
3104# Also quote any args containing shell meta-characters.
3105# Make two passes to allow for proper duplicate-argument suppression.
3106ac_configure_args=
3107ac_configure_args0=
3108ac_configure_args1=
3109ac_must_keep_next=false
3110for ac_pass in 1 2
3111do
3112 for ac_arg
3113 do
3114 case $ac_arg in
3115 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3117 | -silent | --silent | --silen | --sile | --sil)
3118 continue ;;
3119 *\'*)
3120 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3121 esac
3122 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003123 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003124 2)
cristy8b350f62009-11-15 23:12:43 +00003125 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003126 if test $ac_must_keep_next = true; then
3127 ac_must_keep_next=false # Got value, back to normal.
3128 else
3129 case $ac_arg in
3130 *=* | --config-cache | -C | -disable-* | --disable-* \
3131 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3132 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3133 | -with-* | --with-* | -without-* | --without-* | --x)
3134 case "$ac_configure_args0 " in
3135 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3136 esac
3137 ;;
3138 -* ) ac_must_keep_next=true ;;
3139 esac
3140 fi
cristy8b350f62009-11-15 23:12:43 +00003141 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003142 ;;
3143 esac
3144 done
3145done
cristy8b350f62009-11-15 23:12:43 +00003146{ ac_configure_args0=; unset ac_configure_args0;}
3147{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003148
3149# When interrupted or exit'd, cleanup temporary files, and complete
3150# config.log. We remove comments because anyway the quotes in there
3151# would cause problems or look ugly.
3152# WARNING: Use '\'' to represent an apostrophe within the trap.
3153# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3154trap 'exit_status=$?
3155 # Save into config.log some information that might help in debugging.
3156 {
3157 echo
3158
cristy98dddb52010-11-04 00:30:15 +00003159 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003160## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003161## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003162 echo
3163 # The following way of writing the cache mishandles newlines in values,
3164(
3165 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3166 eval ac_val=\$$ac_var
3167 case $ac_val in #(
3168 *${as_nl}*)
3169 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003170 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003171$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3172 esac
3173 case $ac_var in #(
3174 _ | IFS | as_nl) ;; #(
3175 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003176 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003177 esac ;;
3178 esac
3179 done
3180 (set) 2>&1 |
3181 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3182 *${as_nl}ac_space=\ *)
3183 sed -n \
3184 "s/'\''/'\''\\\\'\'''\''/g;
3185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3186 ;; #(
3187 *)
3188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3189 ;;
3190 esac |
3191 sort
3192)
3193 echo
3194
cristy98dddb52010-11-04 00:30:15 +00003195 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003196## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003197## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003198 echo
3199 for ac_var in $ac_subst_vars
3200 do
3201 eval ac_val=\$$ac_var
3202 case $ac_val in
3203 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3204 esac
3205 $as_echo "$ac_var='\''$ac_val'\''"
3206 done | sort
3207 echo
3208
3209 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003210 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003211## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003212## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003213 echo
3214 for ac_var in $ac_subst_files
3215 do
3216 eval ac_val=\$$ac_var
3217 case $ac_val in
3218 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3219 esac
3220 $as_echo "$ac_var='\''$ac_val'\''"
3221 done | sort
3222 echo
3223 fi
3224
3225 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003226 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003227## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003228## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003229 echo
3230 cat confdefs.h
3231 echo
3232 fi
3233 test "$ac_signal" != 0 &&
3234 $as_echo "$as_me: caught signal $ac_signal"
3235 $as_echo "$as_me: exit $exit_status"
3236 } >&5
3237 rm -f core *.core core.conftest.* &&
3238 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3239 exit $exit_status
3240' 0
3241for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003242 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003243done
3244ac_signal=0
3245
3246# confdefs.h avoids OS command line length limits that DEFS can exceed.
3247rm -f -r conftest* confdefs.h
3248
cristy8b350f62009-11-15 23:12:43 +00003249$as_echo "/* confdefs.h */" > confdefs.h
3250
cristy3ed852e2009-09-05 21:47:34 +00003251# Predefined preprocessor variables.
3252
3253cat >>confdefs.h <<_ACEOF
3254#define PACKAGE_NAME "$PACKAGE_NAME"
3255_ACEOF
3256
cristy3ed852e2009-09-05 21:47:34 +00003257cat >>confdefs.h <<_ACEOF
3258#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3259_ACEOF
3260
cristy3ed852e2009-09-05 21:47:34 +00003261cat >>confdefs.h <<_ACEOF
3262#define PACKAGE_VERSION "$PACKAGE_VERSION"
3263_ACEOF
3264
cristy3ed852e2009-09-05 21:47:34 +00003265cat >>confdefs.h <<_ACEOF
3266#define PACKAGE_STRING "$PACKAGE_STRING"
3267_ACEOF
3268
cristy3ed852e2009-09-05 21:47:34 +00003269cat >>confdefs.h <<_ACEOF
3270#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3271_ACEOF
3272
cristy8b350f62009-11-15 23:12:43 +00003273cat >>confdefs.h <<_ACEOF
3274#define PACKAGE_URL "$PACKAGE_URL"
3275_ACEOF
3276
cristy3ed852e2009-09-05 21:47:34 +00003277
3278# Let the site file select an alternate cache file if it wants to.
3279# Prefer an explicitly selected file to automatically selected ones.
3280ac_site_file1=NONE
3281ac_site_file2=NONE
3282if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003283 # We do not want a PATH search for config.site.
3284 case $CONFIG_SITE in #((
3285 -*) ac_site_file1=./$CONFIG_SITE;;
3286 */*) ac_site_file1=$CONFIG_SITE;;
3287 *) ac_site_file1=./$CONFIG_SITE;;
3288 esac
cristy3ed852e2009-09-05 21:47:34 +00003289elif test "x$prefix" != xNONE; then
3290 ac_site_file1=$prefix/share/config.site
3291 ac_site_file2=$prefix/etc/config.site
3292else
3293 ac_site_file1=$ac_default_prefix/share/config.site
3294 ac_site_file2=$ac_default_prefix/etc/config.site
3295fi
3296for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3297do
3298 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003299 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003300 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003301$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3302 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003303 . "$ac_site_file" \
3304 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306as_fn_error $? "failed to load site script $ac_site_file
3307See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003308 fi
3309done
3310
3311if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003312 # Some versions of bash will fail to source /dev/null (special files
3313 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3314 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003315 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003316$as_echo "$as_me: loading cache $cache_file" >&6;}
3317 case $cache_file in
3318 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3319 *) . "./$cache_file";;
3320 esac
3321 fi
3322else
cristy8b350f62009-11-15 23:12:43 +00003323 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003324$as_echo "$as_me: creating cache $cache_file" >&6;}
3325 >$cache_file
3326fi
3327
cristycd4c5312009-11-22 01:19:08 +00003328as_fn_append ac_header_list " stdlib.h"
3329as_fn_append ac_header_list " unistd.h"
3330as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003331# Check that the precious variables saved in the cache have kept the same
3332# value.
3333ac_cache_corrupted=false
3334for ac_var in $ac_precious_vars; do
3335 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3336 eval ac_new_set=\$ac_env_${ac_var}_set
3337 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3338 eval ac_new_val=\$ac_env_${ac_var}_value
3339 case $ac_old_set,$ac_new_set in
3340 set,)
cristy8b350f62009-11-15 23:12:43 +00003341 { $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 +00003342$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3343 ac_cache_corrupted=: ;;
3344 ,set)
cristy8b350f62009-11-15 23:12:43 +00003345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003346$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3347 ac_cache_corrupted=: ;;
3348 ,);;
3349 *)
3350 if test "x$ac_old_val" != "x$ac_new_val"; then
3351 # differences in whitespace do not lead to failure.
3352 ac_old_val_w=`echo x $ac_old_val`
3353 ac_new_val_w=`echo x $ac_new_val`
3354 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003356$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3357 ac_cache_corrupted=:
3358 else
cristy8b350f62009-11-15 23:12:43 +00003359 { $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 +00003360$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3361 eval $ac_var=\$ac_old_val
3362 fi
cristy8b350f62009-11-15 23:12:43 +00003363 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003364$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003365 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003366$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3367 fi;;
3368 esac
3369 # Pass precious variables to config.status.
3370 if test "$ac_new_set" = set; then
3371 case $ac_new_val in
3372 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3373 *) ac_arg=$ac_var=$ac_new_val ;;
3374 esac
3375 case " $ac_configure_args " in
3376 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003377 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003378 esac
3379 fi
3380done
3381if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003385$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003386 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003387fi
cristy8b350f62009-11-15 23:12:43 +00003388## -------------------- ##
3389## Main body of script. ##
3390## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003391
3392ac_ext=c
3393ac_cpp='$CPP $CPPFLAGS'
3394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397
3398
3399
3400ac_aux_dir=
3401for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003402 if test -f "$ac_dir/install-sh"; then
3403 ac_aux_dir=$ac_dir
3404 ac_install_sh="$ac_aux_dir/install-sh -c"
3405 break
3406 elif test -f "$ac_dir/install.sh"; then
3407 ac_aux_dir=$ac_dir
3408 ac_install_sh="$ac_aux_dir/install.sh -c"
3409 break
3410 elif test -f "$ac_dir/shtool"; then
3411 ac_aux_dir=$ac_dir
3412 ac_install_sh="$ac_aux_dir/shtool install -c"
3413 break
3414 fi
cristy3ed852e2009-09-05 21:47:34 +00003415done
3416if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003417 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003418fi
3419
3420# These three variables are undocumented and unsupported,
3421# and are intended to be withdrawn in a future Autoconf release.
3422# They can cause serious problems if a builder's source tree is in a directory
3423# whose full name contains unusual characters.
3424ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3425ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3426ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3427
3428
3429
3430
3431ac_config_headers="$ac_config_headers config/config.h"
3432
cristy24fc1fe2010-10-23 21:13:01 +00003433
cristy4c08aed2011-07-01 19:47:50 +00003434ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003435
cristy4c08aed2011-07-01 19:47:50 +00003436ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.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/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh 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 +00003437
3438
3439#
3440# Save initial user-tunable values
3441#
3442USER_LIBS=$LIBS
3443for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3444 eval isset=\${$var+set}
3445 if test "$isset" = 'set'; then
3446 eval val=$`echo $var`
3447 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3448 fi
3449done
3450
3451
3452CONFIGURE_ARGS="$0 ${ac_configure_args}"
3453
3454
3455# Source file containing package/library versioning information.
3456. ${srcdir}/version.sh
3457
cristy15a88782010-01-31 23:24:49 +00003458echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003459# Make sure we can run config.sub.
3460$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003461 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003462
cristy8b350f62009-11-15 23:12:43 +00003463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003464$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003465if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003466 $as_echo_n "(cached) " >&6
3467else
3468 ac_build_alias=$build_alias
3469test "x$ac_build_alias" = x &&
3470 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3471test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003472 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003473ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003474 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003475
3476fi
cristy8b350f62009-11-15 23:12:43 +00003477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003478$as_echo "$ac_cv_build" >&6; }
3479case $ac_cv_build in
3480*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003481*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003482esac
3483build=$ac_cv_build
3484ac_save_IFS=$IFS; IFS='-'
3485set x $ac_cv_build
3486shift
3487build_cpu=$1
3488build_vendor=$2
3489shift; shift
3490# Remember, the first character of IFS is used to create $*,
3491# except with old shells:
3492build_os=$*
3493IFS=$ac_save_IFS
3494case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3495
3496
cristy8b350f62009-11-15 23:12:43 +00003497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003498$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003499if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003500 $as_echo_n "(cached) " >&6
3501else
3502 if test "x$host_alias" = x; then
3503 ac_cv_host=$ac_cv_build
3504else
3505 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003506 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003507fi
3508
3509fi
cristy8b350f62009-11-15 23:12:43 +00003510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003511$as_echo "$ac_cv_host" >&6; }
3512case $ac_cv_host in
3513*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003514*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003515esac
3516host=$ac_cv_host
3517ac_save_IFS=$IFS; IFS='-'
3518set x $ac_cv_host
3519shift
3520host_cpu=$1
3521host_vendor=$2
3522shift; shift
3523# Remember, the first character of IFS is used to create $*,
3524# except with old shells:
3525host_os=$*
3526IFS=$ac_save_IFS
3527case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3528
3529
cristy8b350f62009-11-15 23:12:43 +00003530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003531$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003532if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003533 $as_echo_n "(cached) " >&6
3534else
3535 if test "x$target_alias" = x; then
3536 ac_cv_target=$ac_cv_host
3537else
3538 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003539 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003540fi
3541
3542fi
cristy8b350f62009-11-15 23:12:43 +00003543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003544$as_echo "$ac_cv_target" >&6; }
3545case $ac_cv_target in
3546*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003547*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003548esac
3549target=$ac_cv_target
3550ac_save_IFS=$IFS; IFS='-'
3551set x $ac_cv_target
3552shift
3553target_cpu=$1
3554target_vendor=$2
3555shift; shift
3556# Remember, the first character of IFS is used to create $*,
3557# except with old shells:
3558target_os=$*
3559IFS=$ac_save_IFS
3560case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3561
3562
3563# The aliases save the names the user supplied, while $host etc.
3564# will get canonicalized.
3565test -n "$target_alias" &&
3566 test "$program_prefix$program_suffix$program_transform_name" = \
3567 NONENONEs,x,x, &&
3568 program_prefix=${target_alias}-
3569
cristy837d6dc2010-02-27 01:16:57 +00003570
3571
3572
cristy19615b82011-04-13 20:02:01 +00003573MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003574
3575
cristy19615b82011-04-13 20:02:01 +00003576MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003577
3578
cristy19615b82011-04-13 20:02:01 +00003579MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003580
3581
cristy3ed852e2009-09-05 21:47:34 +00003582# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003583MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3584
3585MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3586
cristy64877302011-08-23 19:10:31 +00003587MAGICK_SVN_REVISION=5041
cristyd694ca32011-03-27 21:42:54 +00003588
3589
cristy3ed852e2009-09-05 21:47:34 +00003590
3591
3592# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3594$as_echo_n "checking whether build environment is sane... " >&6; }
3595# Just in case
3596sleep 1
3597echo timestamp > conftest.file
3598# Reject unsafe characters in $srcdir or the absolute working directory
3599# name. Accept space and tab only in the latter.
3600am_lf='
3601'
3602case `pwd` in
3603 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003604 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003605esac
3606case $srcdir in
3607 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003608 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003609esac
cristy3ed852e2009-09-05 21:47:34 +00003610
cristy73bd4a52010-10-05 11:24:23 +00003611# Do `set' in a subshell so we don't clobber the current shell's
3612# arguments. Must try -L first in case configure is actually a
3613# symlink; some systems play weird games with the mod time of symlinks
3614# (eg FreeBSD returns the mod time of the symlink's containing
3615# directory).
3616if (
3617 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3618 if test "$*" = "X"; then
3619 # -L didn't work.
3620 set X `ls -t "$srcdir/configure" conftest.file`
3621 fi
3622 rm -f conftest.file
3623 if test "$*" != "X $srcdir/configure conftest.file" \
3624 && test "$*" != "X conftest.file $srcdir/configure"; then
3625
3626 # If neither matched, then we have a broken ls. This can happen
3627 # if, for instance, CONFIG_SHELL is bash and it inherits a
3628 # broken ls alias from the environment. This has actually
3629 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003630 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003631alias in your environment" "$LINENO" 5
3632 fi
3633
3634 test "$2" = conftest.file
3635 )
3636then
3637 # Ok.
3638 :
3639else
cristy98dddb52010-11-04 00:30:15 +00003640 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003641Check your system clock" "$LINENO" 5
3642fi
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3644$as_echo "yes" >&6; }
3645
3646am__api_version='1.11'
3647
3648# Find a good install program. We prefer a C program (faster),
3649# so one script is as good as another. But avoid the broken or
3650# incompatible versions:
3651# SysV /etc/install, /usr/sbin/install
3652# SunOS /usr/etc/install
3653# IRIX /sbin/install
3654# AIX /bin/install
3655# AmigaOS /C/install, which installs bootblocks on floppy discs
3656# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3657# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3658# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3659# OS/2's system install, which has a completely different semantic
3660# ./install, which can be erroneously created by make from ./install.sh.
3661# Reject install programs that cannot install multiple files.
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3663$as_echo_n "checking for a BSD-compatible install... " >&6; }
3664if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003665if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003666 $as_echo_n "(cached) " >&6
3667else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 # Account for people who put trailing slashes in PATH elements.
3674case $as_dir/ in #((
3675 ./ | .// | /[cC]/* | \
3676 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3677 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3678 /usr/ucb/* ) ;;
3679 *)
3680 # OSF1 and SCO ODT 3.0 have their own names for install.
3681 # Don't use installbsd from OSF since it installs stuff as root
3682 # by default.
3683 for ac_prog in ginstall scoinst install; do
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3686 if test $ac_prog = install &&
3687 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3688 # AIX install. It has an incompatible calling convention.
3689 :
3690 elif test $ac_prog = install &&
3691 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3692 # program-specific install script used by HP pwplus--don't use.
3693 :
3694 else
3695 rm -rf conftest.one conftest.two conftest.dir
3696 echo one > conftest.one
3697 echo two > conftest.two
3698 mkdir conftest.dir
3699 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3700 test -s conftest.one && test -s conftest.two &&
3701 test -s conftest.dir/conftest.one &&
3702 test -s conftest.dir/conftest.two
3703 then
3704 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3705 break 3
3706 fi
3707 fi
3708 fi
3709 done
3710 done
3711 ;;
3712esac
3713
3714 done
3715IFS=$as_save_IFS
3716
3717rm -rf conftest.one conftest.two conftest.dir
3718
3719fi
3720 if test "${ac_cv_path_install+set}" = set; then
3721 INSTALL=$ac_cv_path_install
3722 else
3723 # As a last resort, use the slow shell script. Don't cache a
3724 # value for INSTALL within a source directory, because that will
3725 # break other packages using the cache if that directory is
3726 # removed, or if the value is a relative name.
3727 INSTALL=$ac_install_sh
3728 fi
3729fi
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3731$as_echo "$INSTALL" >&6; }
3732
3733# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3734# It thinks the first close brace ends the variable substitution.
3735test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3736
3737test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3738
3739test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3740
3741test "$program_prefix" != NONE &&
3742 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3743# Use a double $ so make ignores it.
3744test "$program_suffix" != NONE &&
3745 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3746# Double any \ or $.
3747# By default was `s,x,x', remove it if useless.
3748ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3749program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3750
3751# expand $ac_aux_dir to an absolute path
3752am_aux_dir=`cd $ac_aux_dir && pwd`
3753
3754if test x"${MISSING+set}" != xset; then
3755 case $am_aux_dir in
3756 *\ * | *\ *)
3757 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3758 *)
3759 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3760 esac
3761fi
3762# Use eval to expand $SHELL
3763if eval "$MISSING --run true"; then
3764 am_missing_run="$MISSING --run "
3765else
3766 am_missing_run=
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3768$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3769fi
3770
3771if test x"${install_sh}" != xset; then
3772 case $am_aux_dir in
3773 *\ * | *\ *)
3774 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3775 *)
3776 install_sh="\${SHELL} $am_aux_dir/install-sh"
3777 esac
3778fi
3779
3780# Installed binaries are usually stripped using `strip' when the user
3781# run `make install-strip'. However `strip' might not be the right
3782# tool to use in cross-compilation environments, therefore Automake
3783# will honor the `STRIP' environment variable to overrule this program.
3784if test "$cross_compiling" != no; then
3785 if test -n "$ac_tool_prefix"; then
3786 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3787set dummy ${ac_tool_prefix}strip; ac_word=$2
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3789$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003790if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003791 $as_echo_n "(cached) " >&6
3792else
3793 if test -n "$STRIP"; then
3794 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3795else
3796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797for as_dir in $PATH
3798do
3799 IFS=$as_save_IFS
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3803 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 break 2
3806 fi
3807done
3808 done
3809IFS=$as_save_IFS
3810
3811fi
3812fi
3813STRIP=$ac_cv_prog_STRIP
3814if test -n "$STRIP"; then
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3816$as_echo "$STRIP" >&6; }
3817else
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819$as_echo "no" >&6; }
3820fi
3821
3822
3823fi
3824if test -z "$ac_cv_prog_STRIP"; then
3825 ac_ct_STRIP=$STRIP
3826 # Extract the first word of "strip", so it can be a program name with args.
3827set dummy strip; ac_word=$2
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003830if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003831 $as_echo_n "(cached) " >&6
3832else
3833 if test -n "$ac_ct_STRIP"; then
3834 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3835else
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH
3838do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3843 ac_cv_prog_ac_ct_STRIP="strip"
3844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 break 2
3846 fi
3847done
3848 done
3849IFS=$as_save_IFS
3850
3851fi
3852fi
3853ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3854if test -n "$ac_ct_STRIP"; then
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3856$as_echo "$ac_ct_STRIP" >&6; }
3857else
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859$as_echo "no" >&6; }
3860fi
3861
3862 if test "x$ac_ct_STRIP" = x; then
3863 STRIP=":"
3864 else
3865 case $cross_compiling:$ac_tool_warned in
3866yes:)
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3869ac_tool_warned=yes ;;
3870esac
3871 STRIP=$ac_ct_STRIP
3872 fi
3873else
3874 STRIP="$ac_cv_prog_STRIP"
3875fi
3876
3877fi
3878INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3879
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3881$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3882if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003883 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003884 $as_echo_n "(cached) " >&6
3885else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3888do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_prog in mkdir gmkdir; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3894 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3895 'mkdir (GNU coreutils) '* | \
3896 'mkdir (coreutils) '* | \
3897 'mkdir (fileutils) '4.1*)
3898 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3899 break 3;;
3900 esac
3901 done
3902 done
3903 done
3904IFS=$as_save_IFS
3905
3906fi
3907
3908 test -d ./--version && rmdir ./--version
3909 if test "${ac_cv_path_mkdir+set}" = set; then
3910 MKDIR_P="$ac_cv_path_mkdir -p"
3911 else
3912 # As a last resort, use the slow shell script. Don't cache a
3913 # value for MKDIR_P within a source directory, because that will
3914 # break other packages using the cache if that directory is
3915 # removed, or if the value is a relative name.
3916 MKDIR_P="$ac_install_sh -d"
3917 fi
3918fi
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3920$as_echo "$MKDIR_P" >&6; }
3921
3922mkdir_p="$MKDIR_P"
3923case $mkdir_p in
3924 [\\/$]* | ?:[\\/]*) ;;
3925 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3926esac
3927
3928for ac_prog in gawk mawk nawk awk
3929do
3930 # Extract the first word of "$ac_prog", so it can be a program name with args.
3931set dummy $ac_prog; ac_word=$2
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3933$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003934if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003935 $as_echo_n "(cached) " >&6
3936else
3937 if test -n "$AWK"; then
3938 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3939else
3940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941for as_dir in $PATH
3942do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3947 ac_cv_prog_AWK="$ac_prog"
3948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 break 2
3950 fi
3951done
3952 done
3953IFS=$as_save_IFS
3954
3955fi
3956fi
3957AWK=$ac_cv_prog_AWK
3958if test -n "$AWK"; then
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3960$as_echo "$AWK" >&6; }
3961else
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963$as_echo "no" >&6; }
3964fi
3965
3966
3967 test -n "$AWK" && break
3968done
3969
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3971$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3972set x ${MAKE-make}
3973ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003974if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003975 $as_echo_n "(cached) " >&6
3976else
3977 cat >conftest.make <<\_ACEOF
3978SHELL = /bin/sh
3979all:
3980 @echo '@@@%%%=$(MAKE)=@@@%%%'
3981_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003982# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003983case `${MAKE-make} -f conftest.make 2>/dev/null` in
3984 *@@@%%%=?*=@@@%%%*)
3985 eval ac_cv_prog_make_${ac_make}_set=yes;;
3986 *)
3987 eval ac_cv_prog_make_${ac_make}_set=no;;
3988esac
3989rm -f conftest.make
3990fi
3991if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3993$as_echo "yes" >&6; }
3994 SET_MAKE=
3995else
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997$as_echo "no" >&6; }
3998 SET_MAKE="MAKE=${MAKE-make}"
3999fi
4000
4001rm -rf .tst 2>/dev/null
4002mkdir .tst 2>/dev/null
4003if test -d .tst; then
4004 am__leading_dot=.
4005else
4006 am__leading_dot=_
4007fi
4008rmdir .tst 2>/dev/null
4009
4010if test "`cd $srcdir && pwd`" != "`pwd`"; then
4011 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4012 # is not polluted with repeated "-I."
4013 am__isrc=' -I$(srcdir)'
4014 # test to see if srcdir already configured
4015 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004016 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004017 fi
4018fi
4019
4020# test whether we have cygpath
4021if test -z "$CYGPATH_W"; then
4022 if (cygpath --version) >/dev/null 2>/dev/null; then
4023 CYGPATH_W='cygpath -w'
4024 else
4025 CYGPATH_W=echo
4026 fi
4027fi
4028
4029
4030# Define the identity of the package.
4031 PACKAGE=$PACKAGE_NAME
4032 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4033
4034
4035# Some tools Automake needs.
4036
4037ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4038
4039
4040AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4041
4042
4043AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4044
4045
4046AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4047
4048
4049MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4050
4051# We need awk for the "check" target. The system "awk" is bad on
4052# some platforms.
4053# Always define AMTAR for backward compatibility.
4054
4055AMTAR=${AMTAR-"${am_missing_run}tar"}
4056
4057am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4058
4059
4060
4061
4062
cristy3ed852e2009-09-05 21:47:34 +00004063
4064# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004065# Check whether --enable-silent-rules was given.
4066if test "${enable_silent_rules+set}" = set; then :
4067 enableval=$enable_silent_rules;
4068fi
4069
4070case $enable_silent_rules in
4071yes) AM_DEFAULT_VERBOSITY=0;;
4072no) AM_DEFAULT_VERBOSITY=1;;
4073*) AM_DEFAULT_VERBOSITY=0;;
4074esac
4075AM_BACKSLASH='\'
4076
cristy3ed852e2009-09-05 21:47:34 +00004077
4078MAGICK_LIB_VERSION="0x"
4079if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4080 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4081fi
4082MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4083if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4084 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4085fi
4086MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4087if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4088 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4089fi
4090MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4091
4092
4093# Definition used to define MagickLibVersionText in version.h
4094MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4095
4096
4097# Definition used to define MagickLibVersionNumber in version.h
4098MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4099
4100
4101# Regenerate config.status if ChangeLog or version.sh is updated.
4102CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4103
4104
4105PERLMAINCC=$CC
4106
4107MAGICK_CFLAGS=''
4108MAGICK_CPPFLAGS=$CPPFLAGS_USER
4109MAGICK_PCFLAGS=$CPPFLAGS_USER
4110MAGICK_LDFLAGS=''
4111MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004112MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004113
4114#
4115# Evaluate shell variable equivalents to Makefile directory variables
4116#
4117if test "x$prefix" = xNONE; then
4118 prefix=$ac_default_prefix
4119fi
4120# Let make expand exec_prefix.
4121if test "x$exec_prefix" = xNONE; then
4122 exec_prefix='${prefix}'
4123fi
4124
4125#
4126eval "eval PREFIX_DIR=${prefix}"
4127
4128eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4129
4130eval "eval BIN_DIR=$bindir"
4131
4132eval "eval SBIN_DIR=$sbindir"
4133
4134eval "eval LIBEXEC_DIR=$libexecdir"
4135
4136eval "eval DATA_DIR=$datadir"
4137
cristyd55889c2011-03-27 00:50:24 +00004138eval "eval DOC_DIR=$docdir"
4139
cristy3ed852e2009-09-05 21:47:34 +00004140eval "eval SYSCONF_DIR=$sysconfdir"
4141
4142eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4143
4144eval "eval LOCALSTATE_DIR=$localstatedir"
4145
4146eval "eval LIB_DIR=$libdir"
4147
4148eval "eval INCLUDE_DIR=$includedir"
4149
4150eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4151
4152eval "eval INFO_DIR=$infodir"
4153
4154eval "eval MAN_DIR=$mandir"
4155
4156
4157# Get full paths to source and build directories
4158srcdirfull="`cd $srcdir && pwd`"
4159builddir="`pwd`"
4160
4161#
4162# Compute variables useful for running uninstalled software.
4163#
4164MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4165MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4166MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4167MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4168DIRSEP=':'
4169case "${build_os}" in
4170 mingw* )
4171 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4172 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4173 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4174 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4175 DIRSEP=';'
4176 ;;
4177esac
4178case "${host_os}" in
4179 mingw* )
4180 DIRSEP=';'
4181 ;;
4182esac
4183
4184
4185
4186
4187
4188
cristya0b81c32010-01-22 02:54:33 +00004189
4190#
4191# Enable OS features.
4192#
cristy73bd4a52010-10-05 11:24:23 +00004193DEPDIR="${am__leading_dot}deps"
4194
4195ac_config_commands="$ac_config_commands depfiles"
4196
4197
4198am_make=${MAKE-make}
4199cat > confinc << 'END'
4200am__doit:
4201 @echo this is the am__doit target
4202.PHONY: am__doit
4203END
4204# If we don't find an include directive, just comment out the code.
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4206$as_echo_n "checking for style of include used by $am_make... " >&6; }
4207am__include="#"
4208am__quote=
4209_am_result=none
4210# First try GNU make style include.
4211echo "include confinc" > confmf
4212# Ignore all kinds of additional output from `make'.
4213case `$am_make -s -f confmf 2> /dev/null` in #(
4214*the\ am__doit\ target*)
4215 am__include=include
4216 am__quote=
4217 _am_result=GNU
4218 ;;
4219esac
4220# Now try BSD make style include.
4221if test "$am__include" = "#"; then
4222 echo '.include "confinc"' > confmf
4223 case `$am_make -s -f confmf 2> /dev/null` in #(
4224 *the\ am__doit\ target*)
4225 am__include=.include
4226 am__quote="\""
4227 _am_result=BSD
4228 ;;
4229 esac
4230fi
4231
4232
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4234$as_echo "$_am_result" >&6; }
4235rm -f confinc confmf
4236
4237# Check whether --enable-dependency-tracking was given.
4238if test "${enable_dependency_tracking+set}" = set; then :
4239 enableval=$enable_dependency_tracking;
4240fi
4241
4242if test "x$enable_dependency_tracking" != xno; then
4243 am_depcomp="$ac_aux_dir/depcomp"
4244 AMDEPBACKSLASH='\'
4245fi
4246 if test "x$enable_dependency_tracking" != xno; then
4247 AMDEP_TRUE=
4248 AMDEP_FALSE='#'
4249else
4250 AMDEP_TRUE='#'
4251 AMDEP_FALSE=
4252fi
4253
4254
cristy3ed852e2009-09-05 21:47:34 +00004255ac_ext=c
4256ac_cpp='$CPP $CPPFLAGS'
4257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260if test -n "$ac_tool_prefix"; then
4261 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4262set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004264$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004265if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004266 $as_echo_n "(cached) " >&6
4267else
4268 if test -n "$CC"; then
4269 ac_cv_prog_CC="$CC" # Let the user override the test.
4270else
4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004276 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004280 break 2
4281 fi
4282done
cristy8b350f62009-11-15 23:12:43 +00004283 done
cristy3ed852e2009-09-05 21:47:34 +00004284IFS=$as_save_IFS
4285
4286fi
4287fi
4288CC=$ac_cv_prog_CC
4289if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004291$as_echo "$CC" >&6; }
4292else
cristy8b350f62009-11-15 23:12:43 +00004293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004294$as_echo "no" >&6; }
4295fi
4296
4297
4298fi
4299if test -z "$ac_cv_prog_CC"; then
4300 ac_ct_CC=$CC
4301 # Extract the first word of "gcc", so it can be a program name with args.
4302set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004304$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004305if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004306 $as_echo_n "(cached) " >&6
4307else
4308 if test -n "$ac_ct_CC"; then
4309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4310else
4311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312for as_dir in $PATH
4313do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004316 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004320 break 2
4321 fi
4322done
cristy8b350f62009-11-15 23:12:43 +00004323 done
cristy3ed852e2009-09-05 21:47:34 +00004324IFS=$as_save_IFS
4325
4326fi
4327fi
4328ac_ct_CC=$ac_cv_prog_ac_ct_CC
4329if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004331$as_echo "$ac_ct_CC" >&6; }
4332else
cristy8b350f62009-11-15 23:12:43 +00004333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004334$as_echo "no" >&6; }
4335fi
4336
4337 if test "x$ac_ct_CC" = x; then
4338 CC=""
4339 else
4340 case $cross_compiling:$ac_tool_warned in
4341yes:)
cristy8b350f62009-11-15 23:12:43 +00004342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4344ac_tool_warned=yes ;;
4345esac
4346 CC=$ac_ct_CC
4347 fi
4348else
4349 CC="$ac_cv_prog_CC"
4350fi
4351
4352if test -z "$CC"; then
4353 if test -n "$ac_tool_prefix"; then
4354 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4355set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004357$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004358if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004359 $as_echo_n "(cached) " >&6
4360else
4361 if test -n "$CC"; then
4362 ac_cv_prog_CC="$CC" # Let the user override the test.
4363else
4364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH
4366do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004369 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4371 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004373 break 2
4374 fi
4375done
cristy8b350f62009-11-15 23:12:43 +00004376 done
cristy3ed852e2009-09-05 21:47:34 +00004377IFS=$as_save_IFS
4378
4379fi
4380fi
4381CC=$ac_cv_prog_CC
4382if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004384$as_echo "$CC" >&6; }
4385else
cristy8b350f62009-11-15 23:12:43 +00004386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004387$as_echo "no" >&6; }
4388fi
4389
4390
4391 fi
4392fi
4393if test -z "$CC"; then
4394 # Extract the first word of "cc", so it can be a program name with args.
4395set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004397$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004398if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004399 $as_echo_n "(cached) " >&6
4400else
4401 if test -n "$CC"; then
4402 ac_cv_prog_CC="$CC" # Let the user override the test.
4403else
4404 ac_prog_rejected=no
4405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406for as_dir in $PATH
4407do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004410 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4413 ac_prog_rejected=yes
4414 continue
4415 fi
4416 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004418 break 2
4419 fi
4420done
cristy8b350f62009-11-15 23:12:43 +00004421 done
cristy3ed852e2009-09-05 21:47:34 +00004422IFS=$as_save_IFS
4423
4424if test $ac_prog_rejected = yes; then
4425 # We found a bogon in the path, so make sure we never use it.
4426 set dummy $ac_cv_prog_CC
4427 shift
4428 if test $# != 0; then
4429 # We chose a different compiler from the bogus one.
4430 # However, it has the same basename, so the bogon will be chosen
4431 # first if we set CC to just the basename; use the full file name.
4432 shift
4433 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4434 fi
4435fi
4436fi
4437fi
4438CC=$ac_cv_prog_CC
4439if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004441$as_echo "$CC" >&6; }
4442else
cristy8b350f62009-11-15 23:12:43 +00004443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004444$as_echo "no" >&6; }
4445fi
4446
4447
4448fi
4449if test -z "$CC"; then
4450 if test -n "$ac_tool_prefix"; then
4451 for ac_prog in cl.exe
4452 do
4453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4454set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004457if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004458 $as_echo_n "(cached) " >&6
4459else
4460 if test -n "$CC"; then
4461 ac_cv_prog_CC="$CC" # Let the user override the test.
4462else
4463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464for as_dir in $PATH
4465do
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4470 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004472 break 2
4473 fi
4474done
cristy8b350f62009-11-15 23:12:43 +00004475 done
cristy3ed852e2009-09-05 21:47:34 +00004476IFS=$as_save_IFS
4477
4478fi
4479fi
4480CC=$ac_cv_prog_CC
4481if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004483$as_echo "$CC" >&6; }
4484else
cristy8b350f62009-11-15 23:12:43 +00004485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004486$as_echo "no" >&6; }
4487fi
4488
4489
4490 test -n "$CC" && break
4491 done
4492fi
4493if test -z "$CC"; then
4494 ac_ct_CC=$CC
4495 for ac_prog in cl.exe
4496do
4497 # Extract the first word of "$ac_prog", so it can be a program name with args.
4498set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004500$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004501if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004502 $as_echo_n "(cached) " >&6
4503else
4504 if test -n "$ac_ct_CC"; then
4505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4506else
4507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508for as_dir in $PATH
4509do
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004512 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4514 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004516 break 2
4517 fi
4518done
cristy8b350f62009-11-15 23:12:43 +00004519 done
cristy3ed852e2009-09-05 21:47:34 +00004520IFS=$as_save_IFS
4521
4522fi
4523fi
4524ac_ct_CC=$ac_cv_prog_ac_ct_CC
4525if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004527$as_echo "$ac_ct_CC" >&6; }
4528else
cristy8b350f62009-11-15 23:12:43 +00004529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004530$as_echo "no" >&6; }
4531fi
4532
4533
4534 test -n "$ac_ct_CC" && break
4535done
4536
4537 if test "x$ac_ct_CC" = x; then
4538 CC=""
4539 else
4540 case $cross_compiling:$ac_tool_warned in
4541yes:)
cristy8b350f62009-11-15 23:12:43 +00004542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4544ac_tool_warned=yes ;;
4545esac
4546 CC=$ac_ct_CC
4547 fi
4548fi
4549
4550fi
4551
4552
cristy8b350f62009-11-15 23:12:43 +00004553test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004555as_fn_error $? "no acceptable C compiler found in \$PATH
4556See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004557
4558# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004559$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004560set X $ac_compile
4561ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004562for ac_option in --version -v -V -qversion; do
4563 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004564case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567esac
cristy8b350f62009-11-15 23:12:43 +00004568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569$as_echo "$ac_try_echo"; } >&5
4570 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004571 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004572 if test -s conftest.err; then
4573 sed '10a\
4574... rest of stderr output deleted ...
4575 10q' conftest.err >conftest.er1
4576 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004577 fi
cristycd4c5312009-11-22 01:19:08 +00004578 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4580 test $ac_status = 0; }
4581done
cristy3ed852e2009-09-05 21:47:34 +00004582
cristy8b350f62009-11-15 23:12:43 +00004583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004584/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004585
cristy3ed852e2009-09-05 21:47:34 +00004586int
4587main ()
4588{
4589
4590 ;
4591 return 0;
4592}
4593_ACEOF
4594ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004595ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004596# Try to create an executable without -o first, disregard a.out.
4597# It will help us diagnose broken compilers, and finding out an intuition
4598# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4600$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004601ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4602
4603# The possible output files:
4604ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4605
4606ac_rmfiles=
4607for ac_file in $ac_files
4608do
4609 case $ac_file in
4610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4611 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4612 esac
4613done
4614rm -f $ac_rmfiles
4615
cristy8b350f62009-11-15 23:12:43 +00004616if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004617case "(($ac_try" in
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4620esac
cristy8b350f62009-11-15 23:12:43 +00004621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4622$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004623 (eval "$ac_link_default") 2>&5
4624 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4626 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004627 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4628# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4629# in a Makefile. We should not override ac_cv_exeext if it was cached,
4630# so that the user can short-circuit this test for compilers unknown to
4631# Autoconf.
4632for ac_file in $ac_files ''
4633do
4634 test -f "$ac_file" || continue
4635 case $ac_file in
4636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4637 ;;
4638 [ab].out )
4639 # We found the default executable, but exeext='' is most
4640 # certainly right.
4641 break;;
4642 *.* )
cristy8b350f62009-11-15 23:12:43 +00004643 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004644 then :; else
4645 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4646 fi
4647 # We set ac_cv_exeext here because the later test for it is not
4648 # safe: cross compilers may not add the suffix if given an `-o'
4649 # argument, so we may need to know it at that point already.
4650 # Even if this section looks crufty: it has the advantage of
4651 # actually working.
4652 break;;
4653 * )
4654 break;;
4655 esac
4656done
4657test "$ac_cv_exeext" = no && ac_cv_exeext=
4658
4659else
4660 ac_file=''
4661fi
cristy8b350f62009-11-15 23:12:43 +00004662if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664$as_echo "no" >&6; }
4665$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004666sed 's/^/| /' conftest.$ac_ext >&5
4667
cristy8b350f62009-11-15 23:12:43 +00004668{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004670as_fn_error 77 "C compiler cannot create executables
4671See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004672else
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4674$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004675fi
cristycd4c5312009-11-22 01:19:08 +00004676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4677$as_echo_n "checking for C compiler default output file name... " >&6; }
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4679$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004680ac_exeext=$ac_cv_exeext
4681
cristycd4c5312009-11-22 01:19:08 +00004682rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004683ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004685$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004686if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004687case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4690esac
cristy8b350f62009-11-15 23:12:43 +00004691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4692$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004693 (eval "$ac_link") 2>&5
4694 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4696 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004697 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4698# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4699# work properly (i.e., refer to `conftest.exe'), while it won't with
4700# `rm'.
4701for ac_file in conftest.exe conftest conftest.*; do
4702 test -f "$ac_file" || continue
4703 case $ac_file in
4704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4705 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4706 break;;
4707 * ) break;;
4708 esac
4709done
4710else
cristy8b350f62009-11-15 23:12:43 +00004711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004713as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4714See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004715fi
cristycd4c5312009-11-22 01:19:08 +00004716rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004718$as_echo "$ac_cv_exeext" >&6; }
4719
4720rm -f conftest.$ac_ext
4721EXEEXT=$ac_cv_exeext
4722ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724/* end confdefs.h. */
4725#include <stdio.h>
4726int
4727main ()
4728{
4729FILE *f = fopen ("conftest.out", "w");
4730 return ferror (f) || fclose (f) != 0;
4731
4732 ;
4733 return 0;
4734}
4735_ACEOF
4736ac_clean_files="$ac_clean_files conftest.out"
4737# Check that the compiler produces executables we can run. If not, either
4738# the compiler is broken, or we cross compile.
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4740$as_echo_n "checking whether we are cross compiling... " >&6; }
4741if test "$cross_compiling" != yes; then
4742 { { ac_try="$ac_link"
4743case "(($ac_try" in
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4746esac
4747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4748$as_echo "$ac_try_echo"; } >&5
4749 (eval "$ac_link") 2>&5
4750 ac_status=$?
4751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4752 test $ac_status = 0; }
4753 if { ac_try='./conftest$ac_cv_exeext'
4754 { { case "(($ac_try" in
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4757esac
4758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4759$as_echo "$ac_try_echo"; } >&5
4760 (eval "$ac_try") 2>&5
4761 ac_status=$?
4762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4763 test $ac_status = 0; }; }; then
4764 cross_compiling=no
4765 else
4766 if test "$cross_compiling" = maybe; then
4767 cross_compiling=yes
4768 else
4769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004771as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004772If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004773See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004774 fi
4775 fi
4776fi
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4778$as_echo "$cross_compiling" >&6; }
4779
4780rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4781ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004783$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004784if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004785 $as_echo_n "(cached) " >&6
4786else
cristy8b350f62009-11-15 23:12:43 +00004787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004788/* end confdefs.h. */
4789
4790int
4791main ()
4792{
4793
4794 ;
4795 return 0;
4796}
4797_ACEOF
4798rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004799if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004800case "(($ac_try" in
4801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4802 *) ac_try_echo=$ac_try;;
4803esac
cristy8b350f62009-11-15 23:12:43 +00004804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4805$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004806 (eval "$ac_compile") 2>&5
4807 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4809 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004810 for ac_file in conftest.o conftest.obj conftest.*; do
4811 test -f "$ac_file" || continue;
4812 case $ac_file in
4813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4814 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4815 break;;
4816 esac
4817done
4818else
4819 $as_echo "$as_me: failed program was:" >&5
4820sed 's/^/| /' conftest.$ac_ext >&5
4821
cristy8b350f62009-11-15 23:12:43 +00004822{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004824as_fn_error $? "cannot compute suffix of object files: cannot compile
4825See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004826fi
cristy3ed852e2009-09-05 21:47:34 +00004827rm -f conftest.$ac_cv_objext conftest.$ac_ext
4828fi
cristy8b350f62009-11-15 23:12:43 +00004829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004830$as_echo "$ac_cv_objext" >&6; }
4831OBJEXT=$ac_cv_objext
4832ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004834$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004835if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004836 $as_echo_n "(cached) " >&6
4837else
cristy8b350f62009-11-15 23:12:43 +00004838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004839/* end confdefs.h. */
4840
4841int
4842main ()
4843{
4844#ifndef __GNUC__
4845 choke me
4846#endif
4847
4848 ;
4849 return 0;
4850}
4851_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004852if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004853 ac_compiler_gnu=yes
4854else
cristy8b350f62009-11-15 23:12:43 +00004855 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004856fi
cristy3ed852e2009-09-05 21:47:34 +00004857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858ac_cv_c_compiler_gnu=$ac_compiler_gnu
4859
4860fi
cristy8b350f62009-11-15 23:12:43 +00004861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004862$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4863if test $ac_compiler_gnu = yes; then
4864 GCC=yes
4865else
4866 GCC=
4867fi
4868ac_test_CFLAGS=${CFLAGS+set}
4869ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004871$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004872if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004873 $as_echo_n "(cached) " >&6
4874else
4875 ac_save_c_werror_flag=$ac_c_werror_flag
4876 ac_c_werror_flag=yes
4877 ac_cv_prog_cc_g=no
4878 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004880/* end confdefs.h. */
4881
4882int
4883main ()
4884{
4885
4886 ;
4887 return 0;
4888}
4889_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004890if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004891 ac_cv_prog_cc_g=yes
4892else
cristy8b350f62009-11-15 23:12:43 +00004893 CFLAGS=""
4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004895/* end confdefs.h. */
4896
4897int
4898main ()
4899{
4900
4901 ;
4902 return 0;
4903}
4904_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004905if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004906
cristy8b350f62009-11-15 23:12:43 +00004907else
4908 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004909 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004911/* end confdefs.h. */
4912
4913int
4914main ()
4915{
4916
4917 ;
4918 return 0;
4919}
4920_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004921if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004922 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004923fi
cristy3ed852e2009-09-05 21:47:34 +00004924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925fi
cristy3ed852e2009-09-05 21:47:34 +00004926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927fi
cristy3ed852e2009-09-05 21:47:34 +00004928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 ac_c_werror_flag=$ac_save_c_werror_flag
4930fi
cristy8b350f62009-11-15 23:12:43 +00004931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004932$as_echo "$ac_cv_prog_cc_g" >&6; }
4933if test "$ac_test_CFLAGS" = set; then
4934 CFLAGS=$ac_save_CFLAGS
4935elif test $ac_cv_prog_cc_g = yes; then
4936 if test "$GCC" = yes; then
4937 CFLAGS="-g -O2"
4938 else
4939 CFLAGS="-g"
4940 fi
4941else
4942 if test "$GCC" = yes; then
4943 CFLAGS="-O2"
4944 else
4945 CFLAGS=
4946 fi
4947fi
cristy8b350f62009-11-15 23:12:43 +00004948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004949$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004950if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004951 $as_echo_n "(cached) " >&6
4952else
4953 ac_cv_prog_cc_c89=no
4954ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004956/* end confdefs.h. */
4957#include <stdarg.h>
4958#include <stdio.h>
4959#include <sys/types.h>
4960#include <sys/stat.h>
4961/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4962struct buf { int x; };
4963FILE * (*rcsopen) (struct buf *, struct stat *, int);
4964static char *e (p, i)
4965 char **p;
4966 int i;
4967{
4968 return p[i];
4969}
4970static char *f (char * (*g) (char **, int), char **p, ...)
4971{
4972 char *s;
4973 va_list v;
4974 va_start (v,p);
4975 s = g (p, va_arg (v,int));
4976 va_end (v);
4977 return s;
4978}
4979
4980/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4981 function prototypes and stuff, but not '\xHH' hex character constants.
4982 These don't provoke an error unfortunately, instead are silently treated
4983 as 'x'. The following induces an error, until -std is added to get
4984 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4985 array size at least. It's necessary to write '\x00'==0 to get something
4986 that's true only with -std. */
4987int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4988
4989/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4990 inside strings and character constants. */
4991#define FOO(x) 'x'
4992int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4993
4994int test (int i, double x);
4995struct s1 {int (*f) (int a);};
4996struct s2 {int (*f) (double a);};
4997int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4998int argc;
4999char **argv;
5000int
5001main ()
5002{
5003return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5004 ;
5005 return 0;
5006}
5007_ACEOF
5008for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5009 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5010do
5011 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005012 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005013 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005014fi
cristy3ed852e2009-09-05 21:47:34 +00005015rm -f core conftest.err conftest.$ac_objext
5016 test "x$ac_cv_prog_cc_c89" != "xno" && break
5017done
5018rm -f conftest.$ac_ext
5019CC=$ac_save_CC
5020
5021fi
5022# AC_CACHE_VAL
5023case "x$ac_cv_prog_cc_c89" in
5024 x)
cristy8b350f62009-11-15 23:12:43 +00005025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005026$as_echo "none needed" >&6; } ;;
5027 xno)
cristy8b350f62009-11-15 23:12:43 +00005028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005029$as_echo "unsupported" >&6; } ;;
5030 *)
5031 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005033$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5034esac
cristy8b350f62009-11-15 23:12:43 +00005035if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005036
cristy8b350f62009-11-15 23:12:43 +00005037fi
cristy3ed852e2009-09-05 21:47:34 +00005038
5039ac_ext=c
5040ac_cpp='$CPP $CPPFLAGS'
5041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5043ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005044
cristy73bd4a52010-10-05 11:24:23 +00005045depcc="$CC" am_compiler_list=
5046
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5048$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005049if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005050 $as_echo_n "(cached) " >&6
5051else
5052 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5053 # We make a subdir and do the tests there. Otherwise we can end up
5054 # making bogus files that we don't know about and never remove. For
5055 # instance it was reported that on HP-UX the gcc test will end up
5056 # making a dummy file named `D' -- because `-MD' means `put the output
5057 # in D'.
5058 mkdir conftest.dir
5059 # Copy depcomp to subdir because otherwise we won't find it if we're
5060 # using a relative directory.
5061 cp "$am_depcomp" conftest.dir
5062 cd conftest.dir
5063 # We will build objects and dependencies in a subdirectory because
5064 # it helps to detect inapplicable dependency modes. For instance
5065 # both Tru64's cc and ICC support -MD to output dependencies as a
5066 # side effect of compilation, but ICC will put the dependencies in
5067 # the current directory while Tru64 will put them in the object
5068 # directory.
5069 mkdir sub
5070
5071 am_cv_CC_dependencies_compiler_type=none
5072 if test "$am_compiler_list" = ""; then
5073 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5074 fi
5075 am__universal=false
5076 case " $depcc " in #(
5077 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5078 esac
5079
5080 for depmode in $am_compiler_list; do
5081 # Setup a source with many dependencies, because some compilers
5082 # like to wrap large dependency lists on column 80 (with \), and
5083 # we should not choose a depcomp mode which is confused by this.
5084 #
5085 # We need to recreate these files for each test, as the compiler may
5086 # overwrite some of them when testing with obscure command lines.
5087 # This happens at least with the AIX C compiler.
5088 : > sub/conftest.c
5089 for i in 1 2 3 4 5 6; do
5090 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5091 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5092 # Solaris 8's {/usr,}/bin/sh.
5093 touch sub/conftst$i.h
5094 done
5095 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5096
5097 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5098 # mode. It turns out that the SunPro C++ compiler does not properly
5099 # handle `-M -o', and we need to detect this. Also, some Intel
5100 # versions had trouble with output in subdirs
5101 am__obj=sub/conftest.${OBJEXT-o}
5102 am__minus_obj="-o $am__obj"
5103 case $depmode in
5104 gcc)
5105 # This depmode causes a compiler race in universal mode.
5106 test "$am__universal" = false || continue
5107 ;;
5108 nosideeffect)
5109 # after this tag, mechanisms are not by side-effect, so they'll
5110 # only be used when explicitly requested
5111 if test "x$enable_dependency_tracking" = xyes; then
5112 continue
5113 else
5114 break
5115 fi
5116 ;;
5117 msvisualcpp | msvcmsys)
5118 # This compiler won't grok `-c -o', but also, the minuso test has
5119 # not run yet. These depmodes are late enough in the game, and
5120 # so weak that their functioning should not be impacted.
5121 am__obj=conftest.${OBJEXT-o}
5122 am__minus_obj=
5123 ;;
5124 none) break ;;
5125 esac
5126 if depmode=$depmode \
5127 source=sub/conftest.c object=$am__obj \
5128 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5129 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5130 >/dev/null 2>conftest.err &&
5131 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5132 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5133 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5134 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5135 # icc doesn't choke on unknown options, it will just issue warnings
5136 # or remarks (even with -Werror). So we grep stderr for any message
5137 # that says an option was ignored or not supported.
5138 # When given -MP, icc 7.0 and 7.1 complain thusly:
5139 # icc: Command line warning: ignoring option '-M'; no argument required
5140 # The diagnosis changed in icc 8.0:
5141 # icc: Command line remark: option '-MP' not supported
5142 if (grep 'ignoring option' conftest.err ||
5143 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5144 am_cv_CC_dependencies_compiler_type=$depmode
5145 break
5146 fi
5147 fi
5148 done
5149
5150 cd ..
5151 rm -rf conftest.dir
5152else
5153 am_cv_CC_dependencies_compiler_type=none
5154fi
5155
5156fi
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5158$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5159CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5160
5161 if
5162 test "x$enable_dependency_tracking" != xno \
5163 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5164 am__fastdepCC_TRUE=
5165 am__fastdepCC_FALSE='#'
5166else
5167 am__fastdepCC_TRUE='#'
5168 am__fastdepCC_FALSE=
5169fi
5170
5171
cristy3ed852e2009-09-05 21:47:34 +00005172
cristya0b81c32010-01-22 02:54:33 +00005173ac_ext=c
5174ac_cpp='$CPP $CPPFLAGS'
5175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177ac_compiler_gnu=$ac_cv_c_compiler_gnu
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5179$as_echo_n "checking how to run the C preprocessor... " >&6; }
5180# On Suns, sometimes $CPP names a directory.
5181if test -n "$CPP" && test -d "$CPP"; then
5182 CPP=
5183fi
5184if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005185 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005186 $as_echo_n "(cached) " >&6
5187else
5188 # Double quotes because CPP needs to be expanded
5189 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5190 do
5191 ac_preproc_ok=false
5192for ac_c_preproc_warn_flag in '' yes
5193do
5194 # Use a header file that comes with gcc, so configuring glibc
5195 # with a fresh cross-compiler works.
5196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5197 # <limits.h> exists even on freestanding compilers.
5198 # On the NeXT, cc -E runs the code through the compiler's parser,
5199 # not just through cpp. "Syntax error" is here to catch this case.
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201/* end confdefs.h. */
5202#ifdef __STDC__
5203# include <limits.h>
5204#else
5205# include <assert.h>
5206#endif
5207 Syntax error
5208_ACEOF
5209if ac_fn_c_try_cpp "$LINENO"; then :
5210
5211else
5212 # Broken: fails on valid input.
5213continue
5214fi
cristyda16f162011-02-19 23:52:17 +00005215rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005216
5217 # OK, works on sane cases. Now check whether nonexistent headers
5218 # can be detected and how.
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220/* end confdefs.h. */
5221#include <ac_nonexistent.h>
5222_ACEOF
5223if ac_fn_c_try_cpp "$LINENO"; then :
5224 # Broken: success on invalid input.
5225continue
5226else
5227 # Passes both tests.
5228ac_preproc_ok=:
5229break
5230fi
cristyda16f162011-02-19 23:52:17 +00005231rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005232
5233done
5234# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005235rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005236if $ac_preproc_ok; then :
5237 break
5238fi
5239
5240 done
5241 ac_cv_prog_CPP=$CPP
5242
5243fi
5244 CPP=$ac_cv_prog_CPP
5245else
5246 ac_cv_prog_CPP=$CPP
5247fi
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5249$as_echo "$CPP" >&6; }
5250ac_preproc_ok=false
5251for ac_c_preproc_warn_flag in '' yes
5252do
5253 # Use a header file that comes with gcc, so configuring glibc
5254 # with a fresh cross-compiler works.
5255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5256 # <limits.h> exists even on freestanding compilers.
5257 # On the NeXT, cc -E runs the code through the compiler's parser,
5258 # not just through cpp. "Syntax error" is here to catch this case.
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260/* end confdefs.h. */
5261#ifdef __STDC__
5262# include <limits.h>
5263#else
5264# include <assert.h>
5265#endif
5266 Syntax error
5267_ACEOF
5268if ac_fn_c_try_cpp "$LINENO"; then :
5269
5270else
5271 # Broken: fails on valid input.
5272continue
5273fi
cristyda16f162011-02-19 23:52:17 +00005274rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005275
5276 # OK, works on sane cases. Now check whether nonexistent headers
5277 # can be detected and how.
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279/* end confdefs.h. */
5280#include <ac_nonexistent.h>
5281_ACEOF
5282if ac_fn_c_try_cpp "$LINENO"; then :
5283 # Broken: success on invalid input.
5284continue
5285else
5286 # Passes both tests.
5287ac_preproc_ok=:
5288break
5289fi
cristyda16f162011-02-19 23:52:17 +00005290rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005291
5292done
5293# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005294rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005295if $ac_preproc_ok; then :
5296
5297else
5298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005300as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5301See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005302fi
5303
5304ac_ext=c
5305ac_cpp='$CPP $CPPFLAGS'
5306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309
5310
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5312$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005313if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005314 $as_echo_n "(cached) " >&6
5315else
5316 if test -z "$GREP"; then
5317 ac_path_GREP_found=false
5318 # Loop through the user's path and test for each of PROGNAME-LIST
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5321do
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_prog in grep ggrep; do
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5327 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5328# Check for GNU ac_path_GREP and select it if it is found.
5329 # Check for GNU $ac_path_GREP
5330case `"$ac_path_GREP" --version 2>&1` in
5331*GNU*)
5332 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5333*)
5334 ac_count=0
5335 $as_echo_n 0123456789 >"conftest.in"
5336 while :
5337 do
5338 cat "conftest.in" "conftest.in" >"conftest.tmp"
5339 mv "conftest.tmp" "conftest.in"
5340 cp "conftest.in" "conftest.nl"
5341 $as_echo 'GREP' >> "conftest.nl"
5342 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5343 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5344 as_fn_arith $ac_count + 1 && ac_count=$as_val
5345 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5346 # Best one so far, save it but keep looking for a better one
5347 ac_cv_path_GREP="$ac_path_GREP"
5348 ac_path_GREP_max=$ac_count
5349 fi
5350 # 10*(2^10) chars as input seems more than enough
5351 test $ac_count -gt 10 && break
5352 done
5353 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5354esac
5355
5356 $ac_path_GREP_found && break 3
5357 done
5358 done
5359 done
5360IFS=$as_save_IFS
5361 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005362 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005363 fi
5364else
5365 ac_cv_path_GREP=$GREP
5366fi
5367
5368fi
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5370$as_echo "$ac_cv_path_GREP" >&6; }
5371 GREP="$ac_cv_path_GREP"
5372
5373
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5375$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005376if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005377 $as_echo_n "(cached) " >&6
5378else
5379 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5380 then ac_cv_path_EGREP="$GREP -E"
5381 else
5382 if test -z "$EGREP"; then
5383 ac_path_EGREP_found=false
5384 # Loop through the user's path and test for each of PROGNAME-LIST
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5387do
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_prog in egrep; do
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5393 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5394# Check for GNU ac_path_EGREP and select it if it is found.
5395 # Check for GNU $ac_path_EGREP
5396case `"$ac_path_EGREP" --version 2>&1` in
5397*GNU*)
5398 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5399*)
5400 ac_count=0
5401 $as_echo_n 0123456789 >"conftest.in"
5402 while :
5403 do
5404 cat "conftest.in" "conftest.in" >"conftest.tmp"
5405 mv "conftest.tmp" "conftest.in"
5406 cp "conftest.in" "conftest.nl"
5407 $as_echo 'EGREP' >> "conftest.nl"
5408 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5410 as_fn_arith $ac_count + 1 && ac_count=$as_val
5411 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5412 # Best one so far, save it but keep looking for a better one
5413 ac_cv_path_EGREP="$ac_path_EGREP"
5414 ac_path_EGREP_max=$ac_count
5415 fi
5416 # 10*(2^10) chars as input seems more than enough
5417 test $ac_count -gt 10 && break
5418 done
5419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5420esac
5421
5422 $ac_path_EGREP_found && break 3
5423 done
5424 done
5425 done
5426IFS=$as_save_IFS
5427 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005428 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005429 fi
5430else
5431 ac_cv_path_EGREP=$EGREP
5432fi
5433
5434 fi
5435fi
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5437$as_echo "$ac_cv_path_EGREP" >&6; }
5438 EGREP="$ac_cv_path_EGREP"
5439
5440
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5442$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005443if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005444 $as_echo_n "(cached) " >&6
5445else
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447/* end confdefs.h. */
5448#include <stdlib.h>
5449#include <stdarg.h>
5450#include <string.h>
5451#include <float.h>
5452
5453int
5454main ()
5455{
5456
5457 ;
5458 return 0;
5459}
5460_ACEOF
5461if ac_fn_c_try_compile "$LINENO"; then :
5462 ac_cv_header_stdc=yes
5463else
5464 ac_cv_header_stdc=no
5465fi
5466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467
5468if test $ac_cv_header_stdc = yes; then
5469 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471/* end confdefs.h. */
5472#include <string.h>
5473
5474_ACEOF
5475if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5476 $EGREP "memchr" >/dev/null 2>&1; then :
5477
5478else
5479 ac_cv_header_stdc=no
5480fi
5481rm -f conftest*
5482
5483fi
5484
5485if test $ac_cv_header_stdc = yes; then
5486 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488/* end confdefs.h. */
5489#include <stdlib.h>
5490
5491_ACEOF
5492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5493 $EGREP "free" >/dev/null 2>&1; then :
5494
5495else
5496 ac_cv_header_stdc=no
5497fi
5498rm -f conftest*
5499
5500fi
5501
5502if test $ac_cv_header_stdc = yes; then
5503 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5504 if test "$cross_compiling" = yes; then :
5505 :
5506else
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508/* end confdefs.h. */
5509#include <ctype.h>
5510#include <stdlib.h>
5511#if ((' ' & 0x0FF) == 0x020)
5512# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5513# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5514#else
5515# define ISLOWER(c) \
5516 (('a' <= (c) && (c) <= 'i') \
5517 || ('j' <= (c) && (c) <= 'r') \
5518 || ('s' <= (c) && (c) <= 'z'))
5519# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5520#endif
5521
5522#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5523int
5524main ()
5525{
5526 int i;
5527 for (i = 0; i < 256; i++)
5528 if (XOR (islower (i), ISLOWER (i))
5529 || toupper (i) != TOUPPER (i))
5530 return 2;
5531 return 0;
5532}
5533_ACEOF
5534if ac_fn_c_try_run "$LINENO"; then :
5535
5536else
5537 ac_cv_header_stdc=no
5538fi
5539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5540 conftest.$ac_objext conftest.beam conftest.$ac_ext
5541fi
5542
5543fi
5544fi
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5546$as_echo "$ac_cv_header_stdc" >&6; }
5547if test $ac_cv_header_stdc = yes; then
5548
5549$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5550
5551fi
5552
5553# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5554for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5555 inttypes.h stdint.h unistd.h
5556do :
5557 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5558ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5559"
cristy98dddb52010-11-04 00:30:15 +00005560if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005561 cat >>confdefs.h <<_ACEOF
5562#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5563_ACEOF
5564
5565fi
5566
5567done
5568
5569
5570
5571 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 +00005572if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005573 MINIX=yes
5574else
5575 MINIX=
5576fi
5577
5578
5579 if test "$MINIX" = yes; then
5580
5581$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5582
5583
5584$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5585
5586
5587$as_echo "#define _MINIX 1" >>confdefs.h
5588
5589 fi
5590
5591
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5593$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005594if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005595 $as_echo_n "(cached) " >&6
5596else
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598/* end confdefs.h. */
5599
5600# define __EXTENSIONS__ 1
5601 $ac_includes_default
5602int
5603main ()
5604{
5605
5606 ;
5607 return 0;
5608}
5609_ACEOF
5610if ac_fn_c_try_compile "$LINENO"; then :
5611 ac_cv_safe_to_define___extensions__=yes
5612else
5613 ac_cv_safe_to_define___extensions__=no
5614fi
5615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616fi
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5618$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5619 test $ac_cv_safe_to_define___extensions__ = yes &&
5620 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5621
5622 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5623
5624 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5625
5626 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5627
5628 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5629
5630
5631
5632# Check for programs
5633ac_ext=c
5634ac_cpp='$CPP $CPPFLAGS'
5635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637ac_compiler_gnu=$ac_cv_c_compiler_gnu
5638if test -n "$ac_tool_prefix"; then
5639 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5640set dummy ${ac_tool_prefix}gcc; ac_word=$2
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005643if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005644 $as_echo_n "(cached) " >&6
5645else
5646 if test -n "$CC"; then
5647 ac_cv_prog_CC="$CC" # Let the user override the test.
5648else
5649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650for as_dir in $PATH
5651do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5656 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5659 fi
5660done
5661 done
5662IFS=$as_save_IFS
5663
5664fi
5665fi
5666CC=$ac_cv_prog_CC
5667if test -n "$CC"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5669$as_echo "$CC" >&6; }
5670else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672$as_echo "no" >&6; }
5673fi
5674
5675
5676fi
5677if test -z "$ac_cv_prog_CC"; then
5678 ac_ct_CC=$CC
5679 # Extract the first word of "gcc", so it can be a program name with args.
5680set dummy gcc; ac_word=$2
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005683if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005684 $as_echo_n "(cached) " >&6
5685else
5686 if test -n "$ac_ct_CC"; then
5687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5688else
5689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690for as_dir in $PATH
5691do
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5696 ac_cv_prog_ac_ct_CC="gcc"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 break 2
5699 fi
5700done
5701 done
5702IFS=$as_save_IFS
5703
5704fi
5705fi
5706ac_ct_CC=$ac_cv_prog_ac_ct_CC
5707if test -n "$ac_ct_CC"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5709$as_echo "$ac_ct_CC" >&6; }
5710else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712$as_echo "no" >&6; }
5713fi
5714
5715 if test "x$ac_ct_CC" = x; then
5716 CC=""
5717 else
5718 case $cross_compiling:$ac_tool_warned in
5719yes:)
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5722ac_tool_warned=yes ;;
5723esac
5724 CC=$ac_ct_CC
5725 fi
5726else
5727 CC="$ac_cv_prog_CC"
5728fi
5729
5730if test -z "$CC"; then
5731 if test -n "$ac_tool_prefix"; then
5732 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5733set dummy ${ac_tool_prefix}cc; ac_word=$2
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005736if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005737 $as_echo_n "(cached) " >&6
5738else
5739 if test -n "$CC"; then
5740 ac_cv_prog_CC="$CC" # Let the user override the test.
5741else
5742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743for as_dir in $PATH
5744do
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5749 ac_cv_prog_CC="${ac_tool_prefix}cc"
5750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751 break 2
5752 fi
5753done
5754 done
5755IFS=$as_save_IFS
5756
5757fi
5758fi
5759CC=$ac_cv_prog_CC
5760if test -n "$CC"; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5762$as_echo "$CC" >&6; }
5763else
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765$as_echo "no" >&6; }
5766fi
5767
5768
5769 fi
5770fi
5771if test -z "$CC"; then
5772 # Extract the first word of "cc", so it can be a program name with args.
5773set dummy cc; ac_word=$2
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005776if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005777 $as_echo_n "(cached) " >&6
5778else
5779 if test -n "$CC"; then
5780 ac_cv_prog_CC="$CC" # Let the user override the test.
5781else
5782 ac_prog_rejected=no
5783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784for as_dir in $PATH
5785do
5786 IFS=$as_save_IFS
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5790 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5791 ac_prog_rejected=yes
5792 continue
5793 fi
5794 ac_cv_prog_CC="cc"
5795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5796 break 2
5797 fi
5798done
5799 done
5800IFS=$as_save_IFS
5801
5802if test $ac_prog_rejected = yes; then
5803 # We found a bogon in the path, so make sure we never use it.
5804 set dummy $ac_cv_prog_CC
5805 shift
5806 if test $# != 0; then
5807 # We chose a different compiler from the bogus one.
5808 # However, it has the same basename, so the bogon will be chosen
5809 # first if we set CC to just the basename; use the full file name.
5810 shift
5811 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5812 fi
5813fi
5814fi
5815fi
5816CC=$ac_cv_prog_CC
5817if test -n "$CC"; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5819$as_echo "$CC" >&6; }
5820else
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822$as_echo "no" >&6; }
5823fi
5824
5825
5826fi
5827if test -z "$CC"; then
5828 if test -n "$ac_tool_prefix"; then
5829 for ac_prog in cl.exe
5830 do
5831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5832set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005835if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005836 $as_echo_n "(cached) " >&6
5837else
5838 if test -n "$CC"; then
5839 ac_cv_prog_CC="$CC" # Let the user override the test.
5840else
5841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842for as_dir in $PATH
5843do
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852done
5853 done
5854IFS=$as_save_IFS
5855
5856fi
5857fi
5858CC=$ac_cv_prog_CC
5859if test -n "$CC"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5861$as_echo "$CC" >&6; }
5862else
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864$as_echo "no" >&6; }
5865fi
5866
5867
5868 test -n "$CC" && break
5869 done
5870fi
5871if test -z "$CC"; then
5872 ac_ct_CC=$CC
5873 for ac_prog in cl.exe
5874do
5875 # Extract the first word of "$ac_prog", so it can be a program name with args.
5876set dummy $ac_prog; ac_word=$2
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5878$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005879if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005880 $as_echo_n "(cached) " >&6
5881else
5882 if test -n "$ac_ct_CC"; then
5883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5884else
5885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886for as_dir in $PATH
5887do
5888 IFS=$as_save_IFS
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5892 ac_cv_prog_ac_ct_CC="$ac_prog"
5893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 break 2
5895 fi
5896done
5897 done
5898IFS=$as_save_IFS
5899
5900fi
5901fi
5902ac_ct_CC=$ac_cv_prog_ac_ct_CC
5903if test -n "$ac_ct_CC"; then
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5905$as_echo "$ac_ct_CC" >&6; }
5906else
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908$as_echo "no" >&6; }
5909fi
5910
5911
5912 test -n "$ac_ct_CC" && break
5913done
5914
5915 if test "x$ac_ct_CC" = x; then
5916 CC=""
5917 else
5918 case $cross_compiling:$ac_tool_warned in
5919yes:)
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5922ac_tool_warned=yes ;;
5923esac
5924 CC=$ac_ct_CC
5925 fi
5926fi
5927
5928fi
5929
5930
5931test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005933as_fn_error $? "no acceptable C compiler found in \$PATH
5934See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005935
5936# Provide some information about the compiler.
5937$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5938set X $ac_compile
5939ac_compiler=$2
5940for ac_option in --version -v -V -qversion; do
5941 { { ac_try="$ac_compiler $ac_option >&5"
5942case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945esac
5946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5947$as_echo "$ac_try_echo"; } >&5
5948 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5949 ac_status=$?
5950 if test -s conftest.err; then
5951 sed '10a\
5952... rest of stderr output deleted ...
5953 10q' conftest.err >conftest.er1
5954 cat conftest.er1 >&5
5955 fi
5956 rm -f conftest.er1 conftest.err
5957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5958 test $ac_status = 0; }
5959done
5960
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5962$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005963if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005964 $as_echo_n "(cached) " >&6
5965else
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967/* end confdefs.h. */
5968
5969int
5970main ()
5971{
5972#ifndef __GNUC__
5973 choke me
5974#endif
5975
5976 ;
5977 return 0;
5978}
5979_ACEOF
5980if ac_fn_c_try_compile "$LINENO"; then :
5981 ac_compiler_gnu=yes
5982else
5983 ac_compiler_gnu=no
5984fi
5985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986ac_cv_c_compiler_gnu=$ac_compiler_gnu
5987
5988fi
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5990$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5991if test $ac_compiler_gnu = yes; then
5992 GCC=yes
5993else
5994 GCC=
5995fi
5996ac_test_CFLAGS=${CFLAGS+set}
5997ac_save_CFLAGS=$CFLAGS
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5999$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006000if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006001 $as_echo_n "(cached) " >&6
6002else
6003 ac_save_c_werror_flag=$ac_c_werror_flag
6004 ac_c_werror_flag=yes
6005 ac_cv_prog_cc_g=no
6006 CFLAGS="-g"
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h. */
6009
6010int
6011main ()
6012{
6013
6014 ;
6015 return 0;
6016}
6017_ACEOF
6018if ac_fn_c_try_compile "$LINENO"; then :
6019 ac_cv_prog_cc_g=yes
6020else
6021 CFLAGS=""
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023/* end confdefs.h. */
6024
6025int
6026main ()
6027{
6028
6029 ;
6030 return 0;
6031}
6032_ACEOF
6033if ac_fn_c_try_compile "$LINENO"; then :
6034
6035else
6036 ac_c_werror_flag=$ac_save_c_werror_flag
6037 CFLAGS="-g"
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039/* end confdefs.h. */
6040
6041int
6042main ()
6043{
6044
6045 ;
6046 return 0;
6047}
6048_ACEOF
6049if ac_fn_c_try_compile "$LINENO"; then :
6050 ac_cv_prog_cc_g=yes
6051fi
6052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053fi
6054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055fi
6056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 ac_c_werror_flag=$ac_save_c_werror_flag
6058fi
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6060$as_echo "$ac_cv_prog_cc_g" >&6; }
6061if test "$ac_test_CFLAGS" = set; then
6062 CFLAGS=$ac_save_CFLAGS
6063elif test $ac_cv_prog_cc_g = yes; then
6064 if test "$GCC" = yes; then
6065 CFLAGS="-g -O2"
6066 else
6067 CFLAGS="-g"
6068 fi
6069else
6070 if test "$GCC" = yes; then
6071 CFLAGS="-O2"
6072 else
6073 CFLAGS=
6074 fi
6075fi
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6077$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006078if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006079 $as_echo_n "(cached) " >&6
6080else
6081 ac_cv_prog_cc_c89=no
6082ac_save_CC=$CC
6083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084/* end confdefs.h. */
6085#include <stdarg.h>
6086#include <stdio.h>
6087#include <sys/types.h>
6088#include <sys/stat.h>
6089/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6090struct buf { int x; };
6091FILE * (*rcsopen) (struct buf *, struct stat *, int);
6092static char *e (p, i)
6093 char **p;
6094 int i;
6095{
6096 return p[i];
6097}
6098static char *f (char * (*g) (char **, int), char **p, ...)
6099{
6100 char *s;
6101 va_list v;
6102 va_start (v,p);
6103 s = g (p, va_arg (v,int));
6104 va_end (v);
6105 return s;
6106}
6107
6108/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6109 function prototypes and stuff, but not '\xHH' hex character constants.
6110 These don't provoke an error unfortunately, instead are silently treated
6111 as 'x'. The following induces an error, until -std is added to get
6112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6113 array size at least. It's necessary to write '\x00'==0 to get something
6114 that's true only with -std. */
6115int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6116
6117/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6118 inside strings and character constants. */
6119#define FOO(x) 'x'
6120int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6121
6122int test (int i, double x);
6123struct s1 {int (*f) (int a);};
6124struct s2 {int (*f) (double a);};
6125int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6126int argc;
6127char **argv;
6128int
6129main ()
6130{
6131return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6132 ;
6133 return 0;
6134}
6135_ACEOF
6136for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6138do
6139 CC="$ac_save_CC $ac_arg"
6140 if ac_fn_c_try_compile "$LINENO"; then :
6141 ac_cv_prog_cc_c89=$ac_arg
6142fi
6143rm -f core conftest.err conftest.$ac_objext
6144 test "x$ac_cv_prog_cc_c89" != "xno" && break
6145done
6146rm -f conftest.$ac_ext
6147CC=$ac_save_CC
6148
6149fi
6150# AC_CACHE_VAL
6151case "x$ac_cv_prog_cc_c89" in
6152 x)
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6154$as_echo "none needed" >&6; } ;;
6155 xno)
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6157$as_echo "unsupported" >&6; } ;;
6158 *)
6159 CC="$CC $ac_cv_prog_cc_c89"
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6161$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6162esac
6163if test "x$ac_cv_prog_cc_c89" != xno; then :
6164
6165fi
6166
6167ac_ext=c
6168ac_cpp='$CPP $CPPFLAGS'
6169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6171ac_compiler_gnu=$ac_cv_c_compiler_gnu
6172
cristy73bd4a52010-10-05 11:24:23 +00006173depcc="$CC" am_compiler_list=
6174
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6176$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006177if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006178 $as_echo_n "(cached) " >&6
6179else
6180 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6181 # We make a subdir and do the tests there. Otherwise we can end up
6182 # making bogus files that we don't know about and never remove. For
6183 # instance it was reported that on HP-UX the gcc test will end up
6184 # making a dummy file named `D' -- because `-MD' means `put the output
6185 # in D'.
6186 mkdir conftest.dir
6187 # Copy depcomp to subdir because otherwise we won't find it if we're
6188 # using a relative directory.
6189 cp "$am_depcomp" conftest.dir
6190 cd conftest.dir
6191 # We will build objects and dependencies in a subdirectory because
6192 # it helps to detect inapplicable dependency modes. For instance
6193 # both Tru64's cc and ICC support -MD to output dependencies as a
6194 # side effect of compilation, but ICC will put the dependencies in
6195 # the current directory while Tru64 will put them in the object
6196 # directory.
6197 mkdir sub
6198
6199 am_cv_CC_dependencies_compiler_type=none
6200 if test "$am_compiler_list" = ""; then
6201 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6202 fi
6203 am__universal=false
6204 case " $depcc " in #(
6205 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6206 esac
6207
6208 for depmode in $am_compiler_list; do
6209 # Setup a source with many dependencies, because some compilers
6210 # like to wrap large dependency lists on column 80 (with \), and
6211 # we should not choose a depcomp mode which is confused by this.
6212 #
6213 # We need to recreate these files for each test, as the compiler may
6214 # overwrite some of them when testing with obscure command lines.
6215 # This happens at least with the AIX C compiler.
6216 : > sub/conftest.c
6217 for i in 1 2 3 4 5 6; do
6218 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6219 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6220 # Solaris 8's {/usr,}/bin/sh.
6221 touch sub/conftst$i.h
6222 done
6223 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6224
6225 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6226 # mode. It turns out that the SunPro C++ compiler does not properly
6227 # handle `-M -o', and we need to detect this. Also, some Intel
6228 # versions had trouble with output in subdirs
6229 am__obj=sub/conftest.${OBJEXT-o}
6230 am__minus_obj="-o $am__obj"
6231 case $depmode in
6232 gcc)
6233 # This depmode causes a compiler race in universal mode.
6234 test "$am__universal" = false || continue
6235 ;;
6236 nosideeffect)
6237 # after this tag, mechanisms are not by side-effect, so they'll
6238 # only be used when explicitly requested
6239 if test "x$enable_dependency_tracking" = xyes; then
6240 continue
6241 else
6242 break
6243 fi
6244 ;;
6245 msvisualcpp | msvcmsys)
6246 # This compiler won't grok `-c -o', but also, the minuso test has
6247 # not run yet. These depmodes are late enough in the game, and
6248 # so weak that their functioning should not be impacted.
6249 am__obj=conftest.${OBJEXT-o}
6250 am__minus_obj=
6251 ;;
6252 none) break ;;
6253 esac
6254 if depmode=$depmode \
6255 source=sub/conftest.c object=$am__obj \
6256 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6257 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6258 >/dev/null 2>conftest.err &&
6259 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6260 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6261 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6262 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6263 # icc doesn't choke on unknown options, it will just issue warnings
6264 # or remarks (even with -Werror). So we grep stderr for any message
6265 # that says an option was ignored or not supported.
6266 # When given -MP, icc 7.0 and 7.1 complain thusly:
6267 # icc: Command line warning: ignoring option '-M'; no argument required
6268 # The diagnosis changed in icc 8.0:
6269 # icc: Command line remark: option '-MP' not supported
6270 if (grep 'ignoring option' conftest.err ||
6271 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6272 am_cv_CC_dependencies_compiler_type=$depmode
6273 break
6274 fi
6275 fi
6276 done
6277
6278 cd ..
6279 rm -rf conftest.dir
6280else
6281 am_cv_CC_dependencies_compiler_type=none
6282fi
6283
6284fi
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6286$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6287CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6288
6289 if
6290 test "x$enable_dependency_tracking" != xno \
6291 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6292 am__fastdepCC_TRUE=
6293 am__fastdepCC_FALSE='#'
6294else
6295 am__fastdepCC_TRUE='#'
6296 am__fastdepCC_FALSE=
6297fi
6298
6299
cristy95646052009-11-28 23:05:30 +00006300ac_ext=cpp
6301ac_cpp='$CXXCPP $CPPFLAGS'
6302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6305if test -z "$CXX"; then
6306 if test -n "$CCC"; then
6307 CXX=$CCC
6308 else
6309 if test -n "$ac_tool_prefix"; then
6310 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6311 do
6312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6313set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006316if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006317 $as_echo_n "(cached) " >&6
6318else
6319 if test -n "$CXX"; then
6320 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6321else
6322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323for as_dir in $PATH
6324do
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6332 fi
6333done
6334 done
6335IFS=$as_save_IFS
6336
6337fi
6338fi
6339CXX=$ac_cv_prog_CXX
6340if test -n "$CXX"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6342$as_echo "$CXX" >&6; }
6343else
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345$as_echo "no" >&6; }
6346fi
6347
6348
6349 test -n "$CXX" && break
6350 done
6351fi
6352if test -z "$CXX"; then
6353 ac_ct_CXX=$CXX
6354 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6355do
6356 # Extract the first word of "$ac_prog", so it can be a program name with args.
6357set dummy $ac_prog; ac_word=$2
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006360if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006361 $as_echo_n "(cached) " >&6
6362else
6363 if test -n "$ac_ct_CXX"; then
6364 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6365else
6366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367for as_dir in $PATH
6368do
6369 IFS=$as_save_IFS
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_prog_ac_ct_CXX="$ac_prog"
6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 break 2
6376 fi
6377done
6378 done
6379IFS=$as_save_IFS
6380
6381fi
6382fi
6383ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6384if test -n "$ac_ct_CXX"; then
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6386$as_echo "$ac_ct_CXX" >&6; }
6387else
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389$as_echo "no" >&6; }
6390fi
6391
6392
6393 test -n "$ac_ct_CXX" && break
6394done
6395
6396 if test "x$ac_ct_CXX" = x; then
6397 CXX="g++"
6398 else
6399 case $cross_compiling:$ac_tool_warned in
6400yes:)
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6403ac_tool_warned=yes ;;
6404esac
6405 CXX=$ac_ct_CXX
6406 fi
6407fi
6408
6409 fi
6410fi
6411# Provide some information about the compiler.
6412$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6413set X $ac_compile
6414ac_compiler=$2
6415for ac_option in --version -v -V -qversion; do
6416 { { ac_try="$ac_compiler $ac_option >&5"
6417case "(($ac_try" in
6418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6419 *) ac_try_echo=$ac_try;;
6420esac
6421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6422$as_echo "$ac_try_echo"; } >&5
6423 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6424 ac_status=$?
6425 if test -s conftest.err; then
6426 sed '10a\
6427... rest of stderr output deleted ...
6428 10q' conftest.err >conftest.er1
6429 cat conftest.er1 >&5
6430 fi
6431 rm -f conftest.er1 conftest.err
6432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6433 test $ac_status = 0; }
6434done
6435
6436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6437$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006438if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006439 $as_echo_n "(cached) " >&6
6440else
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442/* end confdefs.h. */
6443
6444int
6445main ()
6446{
6447#ifndef __GNUC__
6448 choke me
6449#endif
6450
6451 ;
6452 return 0;
6453}
6454_ACEOF
6455if ac_fn_cxx_try_compile "$LINENO"; then :
6456 ac_compiler_gnu=yes
6457else
6458 ac_compiler_gnu=no
6459fi
6460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6462
6463fi
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6465$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6466if test $ac_compiler_gnu = yes; then
6467 GXX=yes
6468else
6469 GXX=
6470fi
6471ac_test_CXXFLAGS=${CXXFLAGS+set}
6472ac_save_CXXFLAGS=$CXXFLAGS
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6474$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006475if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006476 $as_echo_n "(cached) " >&6
6477else
6478 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6479 ac_cxx_werror_flag=yes
6480 ac_cv_prog_cxx_g=no
6481 CXXFLAGS="-g"
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483/* end confdefs.h. */
6484
6485int
6486main ()
6487{
6488
6489 ;
6490 return 0;
6491}
6492_ACEOF
6493if ac_fn_cxx_try_compile "$LINENO"; then :
6494 ac_cv_prog_cxx_g=yes
6495else
6496 CXXFLAGS=""
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498/* end confdefs.h. */
6499
6500int
6501main ()
6502{
6503
6504 ;
6505 return 0;
6506}
6507_ACEOF
6508if ac_fn_cxx_try_compile "$LINENO"; then :
6509
6510else
6511 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6512 CXXFLAGS="-g"
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514/* end confdefs.h. */
6515
6516int
6517main ()
6518{
6519
6520 ;
6521 return 0;
6522}
6523_ACEOF
6524if ac_fn_cxx_try_compile "$LINENO"; then :
6525 ac_cv_prog_cxx_g=yes
6526fi
6527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528fi
6529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530fi
6531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6533fi
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6535$as_echo "$ac_cv_prog_cxx_g" >&6; }
6536if test "$ac_test_CXXFLAGS" = set; then
6537 CXXFLAGS=$ac_save_CXXFLAGS
6538elif test $ac_cv_prog_cxx_g = yes; then
6539 if test "$GXX" = yes; then
6540 CXXFLAGS="-g -O2"
6541 else
6542 CXXFLAGS="-g"
6543 fi
6544else
6545 if test "$GXX" = yes; then
6546 CXXFLAGS="-O2"
6547 else
6548 CXXFLAGS=
6549 fi
6550fi
6551ac_ext=c
6552ac_cpp='$CPP $CPPFLAGS'
6553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6555ac_compiler_gnu=$ac_cv_c_compiler_gnu
6556
cristy73bd4a52010-10-05 11:24:23 +00006557depcc="$CXX" am_compiler_list=
6558
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6560$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006561if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006562 $as_echo_n "(cached) " >&6
6563else
6564 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6565 # We make a subdir and do the tests there. Otherwise we can end up
6566 # making bogus files that we don't know about and never remove. For
6567 # instance it was reported that on HP-UX the gcc test will end up
6568 # making a dummy file named `D' -- because `-MD' means `put the output
6569 # in D'.
6570 mkdir conftest.dir
6571 # Copy depcomp to subdir because otherwise we won't find it if we're
6572 # using a relative directory.
6573 cp "$am_depcomp" conftest.dir
6574 cd conftest.dir
6575 # We will build objects and dependencies in a subdirectory because
6576 # it helps to detect inapplicable dependency modes. For instance
6577 # both Tru64's cc and ICC support -MD to output dependencies as a
6578 # side effect of compilation, but ICC will put the dependencies in
6579 # the current directory while Tru64 will put them in the object
6580 # directory.
6581 mkdir sub
6582
6583 am_cv_CXX_dependencies_compiler_type=none
6584 if test "$am_compiler_list" = ""; then
6585 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6586 fi
6587 am__universal=false
6588 case " $depcc " in #(
6589 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6590 esac
6591
6592 for depmode in $am_compiler_list; do
6593 # Setup a source with many dependencies, because some compilers
6594 # like to wrap large dependency lists on column 80 (with \), and
6595 # we should not choose a depcomp mode which is confused by this.
6596 #
6597 # We need to recreate these files for each test, as the compiler may
6598 # overwrite some of them when testing with obscure command lines.
6599 # This happens at least with the AIX C compiler.
6600 : > sub/conftest.c
6601 for i in 1 2 3 4 5 6; do
6602 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6603 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6604 # Solaris 8's {/usr,}/bin/sh.
6605 touch sub/conftst$i.h
6606 done
6607 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6608
6609 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6610 # mode. It turns out that the SunPro C++ compiler does not properly
6611 # handle `-M -o', and we need to detect this. Also, some Intel
6612 # versions had trouble with output in subdirs
6613 am__obj=sub/conftest.${OBJEXT-o}
6614 am__minus_obj="-o $am__obj"
6615 case $depmode in
6616 gcc)
6617 # This depmode causes a compiler race in universal mode.
6618 test "$am__universal" = false || continue
6619 ;;
6620 nosideeffect)
6621 # after this tag, mechanisms are not by side-effect, so they'll
6622 # only be used when explicitly requested
6623 if test "x$enable_dependency_tracking" = xyes; then
6624 continue
6625 else
6626 break
6627 fi
6628 ;;
6629 msvisualcpp | msvcmsys)
6630 # This compiler won't grok `-c -o', but also, the minuso test has
6631 # not run yet. These depmodes are late enough in the game, and
6632 # so weak that their functioning should not be impacted.
6633 am__obj=conftest.${OBJEXT-o}
6634 am__minus_obj=
6635 ;;
6636 none) break ;;
6637 esac
6638 if depmode=$depmode \
6639 source=sub/conftest.c object=$am__obj \
6640 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6641 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6642 >/dev/null 2>conftest.err &&
6643 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6644 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6645 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6646 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6647 # icc doesn't choke on unknown options, it will just issue warnings
6648 # or remarks (even with -Werror). So we grep stderr for any message
6649 # that says an option was ignored or not supported.
6650 # When given -MP, icc 7.0 and 7.1 complain thusly:
6651 # icc: Command line warning: ignoring option '-M'; no argument required
6652 # The diagnosis changed in icc 8.0:
6653 # icc: Command line remark: option '-MP' not supported
6654 if (grep 'ignoring option' conftest.err ||
6655 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6656 am_cv_CXX_dependencies_compiler_type=$depmode
6657 break
6658 fi
6659 fi
6660 done
6661
6662 cd ..
6663 rm -rf conftest.dir
6664else
6665 am_cv_CXX_dependencies_compiler_type=none
6666fi
6667
6668fi
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6670$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6671CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6672
6673 if
6674 test "x$enable_dependency_tracking" != xno \
6675 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6676 am__fastdepCXX_TRUE=
6677 am__fastdepCXX_FALSE='#'
6678else
6679 am__fastdepCXX_TRUE='#'
6680 am__fastdepCXX_FALSE=
6681fi
6682
6683
cristy8b350f62009-11-15 23:12:43 +00006684 case $ac_cv_prog_cc_stdc in #(
6685 no) :
6686 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6687 *) :
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006689$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006690if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006691 $as_echo_n "(cached) " >&6
6692else
6693 ac_cv_prog_cc_c99=no
6694ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006696/* end confdefs.h. */
6697#include <stdarg.h>
6698#include <stdbool.h>
6699#include <stdlib.h>
6700#include <wchar.h>
6701#include <stdio.h>
6702
6703// Check varargs macros. These examples are taken from C99 6.10.3.5.
6704#define debug(...) fprintf (stderr, __VA_ARGS__)
6705#define showlist(...) puts (#__VA_ARGS__)
6706#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6707static void
6708test_varargs_macros (void)
6709{
6710 int x = 1234;
6711 int y = 5678;
6712 debug ("Flag");
6713 debug ("X = %d\n", x);
6714 showlist (The first, second, and third items.);
6715 report (x>y, "x is %d but y is %d", x, y);
6716}
6717
6718// Check long long types.
6719#define BIG64 18446744073709551615ull
6720#define BIG32 4294967295ul
6721#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6722#if !BIG_OK
6723 your preprocessor is broken;
6724#endif
6725#if BIG_OK
6726#else
6727 your preprocessor is broken;
6728#endif
6729static long long int bignum = -9223372036854775807LL;
6730static unsigned long long int ubignum = BIG64;
6731
6732struct incomplete_array
6733{
6734 int datasize;
6735 double data[];
6736};
6737
6738struct named_init {
6739 int number;
6740 const wchar_t *name;
6741 double average;
6742};
6743
6744typedef const char *ccp;
6745
6746static inline int
6747test_restrict (ccp restrict text)
6748{
6749 // See if C++-style comments work.
6750 // Iterate through items via the restricted pointer.
6751 // Also check for declarations in for loops.
6752 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6753 continue;
6754 return 0;
6755}
6756
6757// Check varargs and va_copy.
6758static void
6759test_varargs (const char *format, ...)
6760{
6761 va_list args;
6762 va_start (args, format);
6763 va_list args_copy;
6764 va_copy (args_copy, args);
6765
6766 const char *str;
6767 int number;
6768 float fnumber;
6769
6770 while (*format)
6771 {
6772 switch (*format++)
6773 {
6774 case 's': // string
6775 str = va_arg (args_copy, const char *);
6776 break;
6777 case 'd': // int
6778 number = va_arg (args_copy, int);
6779 break;
6780 case 'f': // float
6781 fnumber = va_arg (args_copy, double);
6782 break;
6783 default:
6784 break;
6785 }
6786 }
6787 va_end (args_copy);
6788 va_end (args);
6789}
6790
6791int
6792main ()
6793{
6794
6795 // Check bool.
6796 _Bool success = false;
6797
6798 // Check restrict.
6799 if (test_restrict ("String literal") == 0)
6800 success = true;
6801 char *restrict newvar = "Another string";
6802
6803 // Check varargs.
6804 test_varargs ("s, d' f .", "string", 65, 34.234);
6805 test_varargs_macros ();
6806
6807 // Check flexible array members.
6808 struct incomplete_array *ia =
6809 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6810 ia->datasize = 10;
6811 for (int i = 0; i < ia->datasize; ++i)
6812 ia->data[i] = i * 1.234;
6813
6814 // Check named initializers.
6815 struct named_init ni = {
6816 .number = 34,
6817 .name = L"Test wide string",
6818 .average = 543.34343,
6819 };
6820
6821 ni.number = 58;
6822
6823 int dynamic_array[ni.number];
6824 dynamic_array[ni.number - 1] = 543;
6825
6826 // work around unused variable warnings
6827 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6828 || dynamic_array[ni.number - 1] != 543);
6829
6830 ;
6831 return 0;
6832}
6833_ACEOF
6834for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6835do
6836 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006837 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006838 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006839fi
cristy3ed852e2009-09-05 21:47:34 +00006840rm -f core conftest.err conftest.$ac_objext
6841 test "x$ac_cv_prog_cc_c99" != "xno" && break
6842done
6843rm -f conftest.$ac_ext
6844CC=$ac_save_CC
6845
6846fi
6847# AC_CACHE_VAL
6848case "x$ac_cv_prog_cc_c99" in
6849 x)
cristy8b350f62009-11-15 23:12:43 +00006850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006851$as_echo "none needed" >&6; } ;;
6852 xno)
cristy8b350f62009-11-15 23:12:43 +00006853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006854$as_echo "unsupported" >&6; } ;;
6855 *)
6856 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006858$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6859esac
cristy8b350f62009-11-15 23:12:43 +00006860if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006861 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6862else
cristy8b350f62009-11-15 23:12:43 +00006863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006864$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006865if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006866 $as_echo_n "(cached) " >&6
6867else
6868 ac_cv_prog_cc_c89=no
6869ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006871/* end confdefs.h. */
6872#include <stdarg.h>
6873#include <stdio.h>
6874#include <sys/types.h>
6875#include <sys/stat.h>
6876/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6877struct buf { int x; };
6878FILE * (*rcsopen) (struct buf *, struct stat *, int);
6879static char *e (p, i)
6880 char **p;
6881 int i;
6882{
6883 return p[i];
6884}
6885static char *f (char * (*g) (char **, int), char **p, ...)
6886{
6887 char *s;
6888 va_list v;
6889 va_start (v,p);
6890 s = g (p, va_arg (v,int));
6891 va_end (v);
6892 return s;
6893}
6894
6895/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6896 function prototypes and stuff, but not '\xHH' hex character constants.
6897 These don't provoke an error unfortunately, instead are silently treated
6898 as 'x'. The following induces an error, until -std is added to get
6899 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6900 array size at least. It's necessary to write '\x00'==0 to get something
6901 that's true only with -std. */
6902int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6903
6904/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6905 inside strings and character constants. */
6906#define FOO(x) 'x'
6907int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6908
6909int test (int i, double x);
6910struct s1 {int (*f) (int a);};
6911struct s2 {int (*f) (double a);};
6912int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6913int argc;
6914char **argv;
6915int
6916main ()
6917{
6918return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6919 ;
6920 return 0;
6921}
6922_ACEOF
6923for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6924 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6925do
6926 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006927 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006928 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006929fi
cristy3ed852e2009-09-05 21:47:34 +00006930rm -f core conftest.err conftest.$ac_objext
6931 test "x$ac_cv_prog_cc_c89" != "xno" && break
6932done
6933rm -f conftest.$ac_ext
6934CC=$ac_save_CC
6935
6936fi
6937# AC_CACHE_VAL
6938case "x$ac_cv_prog_cc_c89" in
6939 x)
cristy8b350f62009-11-15 23:12:43 +00006940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006941$as_echo "none needed" >&6; } ;;
6942 xno)
cristy8b350f62009-11-15 23:12:43 +00006943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006944$as_echo "unsupported" >&6; } ;;
6945 *)
6946 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006948$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6949esac
cristy8b350f62009-11-15 23:12:43 +00006950if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006951 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6952else
6953 ac_cv_prog_cc_stdc=no
6954fi
6955
cristy3ed852e2009-09-05 21:47:34 +00006956fi
cristy3ed852e2009-09-05 21:47:34 +00006957 ;;
6958esac
cristy8b350f62009-11-15 23:12:43 +00006959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006960$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006961 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006962 $as_echo_n "(cached) " >&6
6963fi
6964
cristy8b350f62009-11-15 23:12:43 +00006965 case $ac_cv_prog_cc_stdc in #(
6966 no) :
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6968$as_echo "unsupported" >&6; } ;; #(
6969 '') :
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6971$as_echo "none needed" >&6; } ;; #(
6972 *) :
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006974$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6975esac
6976
cristy3ed852e2009-09-05 21:47:34 +00006977ac_ext=c
6978ac_cpp='$CPP $CPPFLAGS'
6979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6981ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006983$as_echo_n "checking how to run the C preprocessor... " >&6; }
6984# On Suns, sometimes $CPP names a directory.
6985if test -n "$CPP" && test -d "$CPP"; then
6986 CPP=
6987fi
6988if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00006989 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006990 $as_echo_n "(cached) " >&6
6991else
6992 # Double quotes because CPP needs to be expanded
6993 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6994 do
6995 ac_preproc_ok=false
6996for ac_c_preproc_warn_flag in '' yes
6997do
6998 # Use a header file that comes with gcc, so configuring glibc
6999 # with a fresh cross-compiler works.
7000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7001 # <limits.h> exists even on freestanding compilers.
7002 # On the NeXT, cc -E runs the code through the compiler's parser,
7003 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007005/* end confdefs.h. */
7006#ifdef __STDC__
7007# include <limits.h>
7008#else
7009# include <assert.h>
7010#endif
7011 Syntax error
7012_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007013if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007014
cristy8b350f62009-11-15 23:12:43 +00007015else
cristy3ed852e2009-09-05 21:47:34 +00007016 # Broken: fails on valid input.
7017continue
7018fi
cristyda16f162011-02-19 23:52:17 +00007019rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007020
7021 # OK, works on sane cases. Now check whether nonexistent headers
7022 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007024/* end confdefs.h. */
7025#include <ac_nonexistent.h>
7026_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007027if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007028 # Broken: success on invalid input.
7029continue
7030else
cristy3ed852e2009-09-05 21:47:34 +00007031 # Passes both tests.
7032ac_preproc_ok=:
7033break
7034fi
cristyda16f162011-02-19 23:52:17 +00007035rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007036
7037done
7038# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007039rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007040if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007041 break
7042fi
7043
7044 done
7045 ac_cv_prog_CPP=$CPP
7046
7047fi
7048 CPP=$ac_cv_prog_CPP
7049else
7050 ac_cv_prog_CPP=$CPP
7051fi
cristy8b350f62009-11-15 23:12:43 +00007052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007053$as_echo "$CPP" >&6; }
7054ac_preproc_ok=false
7055for ac_c_preproc_warn_flag in '' yes
7056do
7057 # Use a header file that comes with gcc, so configuring glibc
7058 # with a fresh cross-compiler works.
7059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7060 # <limits.h> exists even on freestanding compilers.
7061 # On the NeXT, cc -E runs the code through the compiler's parser,
7062 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007064/* end confdefs.h. */
7065#ifdef __STDC__
7066# include <limits.h>
7067#else
7068# include <assert.h>
7069#endif
7070 Syntax error
7071_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007072if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007073
cristy8b350f62009-11-15 23:12:43 +00007074else
cristy3ed852e2009-09-05 21:47:34 +00007075 # Broken: fails on valid input.
7076continue
7077fi
cristyda16f162011-02-19 23:52:17 +00007078rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007079
7080 # OK, works on sane cases. Now check whether nonexistent headers
7081 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007083/* end confdefs.h. */
7084#include <ac_nonexistent.h>
7085_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007086if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007087 # Broken: success on invalid input.
7088continue
7089else
cristy3ed852e2009-09-05 21:47:34 +00007090 # Passes both tests.
7091ac_preproc_ok=:
7092break
7093fi
cristyda16f162011-02-19 23:52:17 +00007094rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007095
7096done
7097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007098rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007099if $ac_preproc_ok; then :
7100
cristy3ed852e2009-09-05 21:47:34 +00007101else
cristy8b350f62009-11-15 23:12:43 +00007102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007104as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7105See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007106fi
7107
7108ac_ext=c
7109ac_cpp='$CPP $CPPFLAGS'
7110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7112ac_compiler_gnu=$ac_cv_c_compiler_gnu
7113
cristy73bd4a52010-10-05 11:24:23 +00007114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7115$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007116if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007117 $as_echo_n "(cached) " >&6
7118else
7119 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7120 for ac_i in 1 2 3 4 5 6 7; do
7121 ac_script="$ac_script$as_nl$ac_script"
7122 done
7123 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7124 { ac_script=; unset ac_script;}
7125 if test -z "$SED"; then
7126 ac_path_SED_found=false
7127 # Loop through the user's path and test for each of PROGNAME-LIST
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129for as_dir in $PATH
7130do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_prog in sed gsed; do
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7136 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7137# Check for GNU ac_path_SED and select it if it is found.
7138 # Check for GNU $ac_path_SED
7139case `"$ac_path_SED" --version 2>&1` in
7140*GNU*)
7141 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7142*)
7143 ac_count=0
7144 $as_echo_n 0123456789 >"conftest.in"
7145 while :
7146 do
7147 cat "conftest.in" "conftest.in" >"conftest.tmp"
7148 mv "conftest.tmp" "conftest.in"
7149 cp "conftest.in" "conftest.nl"
7150 $as_echo '' >> "conftest.nl"
7151 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7153 as_fn_arith $ac_count + 1 && ac_count=$as_val
7154 if test $ac_count -gt ${ac_path_SED_max-0}; then
7155 # Best one so far, save it but keep looking for a better one
7156 ac_cv_path_SED="$ac_path_SED"
7157 ac_path_SED_max=$ac_count
7158 fi
7159 # 10*(2^10) chars as input seems more than enough
7160 test $ac_count -gt 10 && break
7161 done
7162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7163esac
7164
7165 $ac_path_SED_found && break 3
7166 done
7167 done
7168 done
7169IFS=$as_save_IFS
7170 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007171 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007172 fi
7173else
7174 ac_cv_path_SED=$SED
7175fi
7176
7177fi
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7179$as_echo "$ac_cv_path_SED" >&6; }
7180 SED="$ac_cv_path_SED"
7181 rm -f conftest.sed
7182
7183test -z "$SED" && SED=sed
7184Xsed="$SED -e 1s/^X//"
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7197$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007198if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007199 $as_echo_n "(cached) " >&6
7200else
7201 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7202 then ac_cv_path_FGREP="$GREP -F"
7203 else
7204 if test -z "$FGREP"; then
7205 ac_path_FGREP_found=false
7206 # Loop through the user's path and test for each of PROGNAME-LIST
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7209do
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_prog in fgrep; do
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7215 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7216# Check for GNU ac_path_FGREP and select it if it is found.
7217 # Check for GNU $ac_path_FGREP
7218case `"$ac_path_FGREP" --version 2>&1` in
7219*GNU*)
7220 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7221*)
7222 ac_count=0
7223 $as_echo_n 0123456789 >"conftest.in"
7224 while :
7225 do
7226 cat "conftest.in" "conftest.in" >"conftest.tmp"
7227 mv "conftest.tmp" "conftest.in"
7228 cp "conftest.in" "conftest.nl"
7229 $as_echo 'FGREP' >> "conftest.nl"
7230 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7232 as_fn_arith $ac_count + 1 && ac_count=$as_val
7233 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7234 # Best one so far, save it but keep looking for a better one
7235 ac_cv_path_FGREP="$ac_path_FGREP"
7236 ac_path_FGREP_max=$ac_count
7237 fi
7238 # 10*(2^10) chars as input seems more than enough
7239 test $ac_count -gt 10 && break
7240 done
7241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7242esac
7243
7244 $ac_path_FGREP_found && break 3
7245 done
7246 done
7247 done
7248IFS=$as_save_IFS
7249 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007250 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007251 fi
7252else
7253 ac_cv_path_FGREP=$FGREP
7254fi
7255
7256 fi
7257fi
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7259$as_echo "$ac_cv_path_FGREP" >&6; }
7260 FGREP="$ac_cv_path_FGREP"
7261
7262
7263test -z "$GREP" && GREP=grep
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
cristy0c60a692010-11-04 01:09:47 +00007281ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7282ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7283ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7284
7285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7286$as_echo_n "checking how to print strings... " >&6; }
7287# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007288if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007289 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7290 ECHO='print -r --'
7291elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7292 ECHO='printf %s\n'
7293else
7294 # Use this function as a fallback that always works.
7295 func_fallback_echo ()
7296 {
7297 eval 'cat <<_LTECHO_EOF
7298$1
7299_LTECHO_EOF'
7300 }
7301 ECHO='func_fallback_echo'
7302fi
7303
7304# func_echo_all arg...
7305# Invoke $ECHO with all args, space-separated.
7306func_echo_all ()
7307{
7308 $ECHO ""
7309}
7310
7311case "$ECHO" in
7312 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7313$as_echo "printf" >&6; } ;;
7314 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7315$as_echo "print -r" >&6; } ;;
7316 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7317$as_echo "cat" >&6; } ;;
7318esac
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
cristy73bd4a52010-10-05 11:24:23 +00007333
7334
7335# Check whether --with-gnu-ld was given.
7336if test "${with_gnu_ld+set}" = set; then :
7337 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7338else
7339 with_gnu_ld=no
7340fi
7341
7342ac_prog=ld
7343if test "$GCC" = yes; then
7344 # Check if gcc -print-prog-name=ld gives a path.
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7346$as_echo_n "checking for ld used by $CC... " >&6; }
7347 case $host in
7348 *-*-mingw*)
7349 # gcc leaves a trailing carriage return which upsets mingw
7350 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7351 *)
7352 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7353 esac
7354 case $ac_prog in
7355 # Accept absolute paths.
7356 [\\/]* | ?:[\\/]*)
7357 re_direlt='/[^/][^/]*/\.\./'
7358 # Canonicalize the pathname of ld
7359 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7360 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7361 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7362 done
7363 test -z "$LD" && LD="$ac_prog"
7364 ;;
7365 "")
7366 # If it fails, then pretend we aren't using GCC.
7367 ac_prog=ld
7368 ;;
7369 *)
7370 # If it is relative, then search for the first ld in PATH.
7371 with_gnu_ld=unknown
7372 ;;
7373 esac
7374elif test "$with_gnu_ld" = yes; then
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7376$as_echo_n "checking for GNU ld... " >&6; }
7377else
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7379$as_echo_n "checking for non-GNU ld... " >&6; }
7380fi
cristyda16f162011-02-19 23:52:17 +00007381if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007382 $as_echo_n "(cached) " >&6
7383else
7384 if test -z "$LD"; then
7385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7386 for ac_dir in $PATH; do
7387 IFS="$lt_save_ifs"
7388 test -z "$ac_dir" && ac_dir=.
7389 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7390 lt_cv_path_LD="$ac_dir/$ac_prog"
7391 # Check to see if the program is GNU ld. I'd rather use --version,
7392 # but apparently some variants of GNU ld only accept -v.
7393 # Break only if it was the GNU/non-GNU ld that we prefer.
7394 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7395 *GNU* | *'with BFD'*)
7396 test "$with_gnu_ld" != no && break
7397 ;;
7398 *)
7399 test "$with_gnu_ld" != yes && break
7400 ;;
7401 esac
7402 fi
7403 done
7404 IFS="$lt_save_ifs"
7405else
7406 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7407fi
7408fi
7409
7410LD="$lt_cv_path_LD"
7411if test -n "$LD"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7413$as_echo "$LD" >&6; }
7414else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416$as_echo "no" >&6; }
7417fi
cristy98dddb52010-11-04 00:30:15 +00007418test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7420$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007421if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007422 $as_echo_n "(cached) " >&6
7423else
7424 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7425case `$LD -v 2>&1 </dev/null` in
7426*GNU* | *'with BFD'*)
7427 lt_cv_prog_gnu_ld=yes
7428 ;;
7429*)
7430 lt_cv_prog_gnu_ld=no
7431 ;;
7432esac
7433fi
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7435$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7436with_gnu_ld=$lt_cv_prog_gnu_ld
7437
7438
7439
7440
7441
7442
7443
7444
7445
cristy3ed852e2009-09-05 21:47:34 +00007446
cristy837d6dc2010-02-27 01:16:57 +00007447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7448$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007449if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007450 $as_echo_n "(cached) " >&6
7451else
7452 ac_cv_prog_cc_c99=no
7453ac_save_CC=$CC
7454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455/* end confdefs.h. */
7456#include <stdarg.h>
7457#include <stdbool.h>
7458#include <stdlib.h>
7459#include <wchar.h>
7460#include <stdio.h>
7461
7462// Check varargs macros. These examples are taken from C99 6.10.3.5.
7463#define debug(...) fprintf (stderr, __VA_ARGS__)
7464#define showlist(...) puts (#__VA_ARGS__)
7465#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7466static void
7467test_varargs_macros (void)
7468{
7469 int x = 1234;
7470 int y = 5678;
7471 debug ("Flag");
7472 debug ("X = %d\n", x);
7473 showlist (The first, second, and third items.);
7474 report (x>y, "x is %d but y is %d", x, y);
7475}
7476
7477// Check long long types.
7478#define BIG64 18446744073709551615ull
7479#define BIG32 4294967295ul
7480#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7481#if !BIG_OK
7482 your preprocessor is broken;
7483#endif
7484#if BIG_OK
7485#else
7486 your preprocessor is broken;
7487#endif
7488static long long int bignum = -9223372036854775807LL;
7489static unsigned long long int ubignum = BIG64;
7490
7491struct incomplete_array
7492{
7493 int datasize;
7494 double data[];
7495};
7496
7497struct named_init {
7498 int number;
7499 const wchar_t *name;
7500 double average;
7501};
7502
7503typedef const char *ccp;
7504
7505static inline int
7506test_restrict (ccp restrict text)
7507{
7508 // See if C++-style comments work.
7509 // Iterate through items via the restricted pointer.
7510 // Also check for declarations in for loops.
7511 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7512 continue;
7513 return 0;
7514}
7515
7516// Check varargs and va_copy.
7517static void
7518test_varargs (const char *format, ...)
7519{
7520 va_list args;
7521 va_start (args, format);
7522 va_list args_copy;
7523 va_copy (args_copy, args);
7524
7525 const char *str;
7526 int number;
7527 float fnumber;
7528
7529 while (*format)
7530 {
7531 switch (*format++)
7532 {
7533 case 's': // string
7534 str = va_arg (args_copy, const char *);
7535 break;
7536 case 'd': // int
7537 number = va_arg (args_copy, int);
7538 break;
7539 case 'f': // float
7540 fnumber = va_arg (args_copy, double);
7541 break;
7542 default:
7543 break;
7544 }
7545 }
7546 va_end (args_copy);
7547 va_end (args);
7548}
7549
7550int
7551main ()
7552{
7553
7554 // Check bool.
7555 _Bool success = false;
7556
7557 // Check restrict.
7558 if (test_restrict ("String literal") == 0)
7559 success = true;
7560 char *restrict newvar = "Another string";
7561
7562 // Check varargs.
7563 test_varargs ("s, d' f .", "string", 65, 34.234);
7564 test_varargs_macros ();
7565
7566 // Check flexible array members.
7567 struct incomplete_array *ia =
7568 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7569 ia->datasize = 10;
7570 for (int i = 0; i < ia->datasize; ++i)
7571 ia->data[i] = i * 1.234;
7572
7573 // Check named initializers.
7574 struct named_init ni = {
7575 .number = 34,
7576 .name = L"Test wide string",
7577 .average = 543.34343,
7578 };
7579
7580 ni.number = 58;
7581
7582 int dynamic_array[ni.number];
7583 dynamic_array[ni.number - 1] = 543;
7584
7585 // work around unused variable warnings
7586 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7587 || dynamic_array[ni.number - 1] != 543);
7588
7589 ;
7590 return 0;
7591}
7592_ACEOF
7593for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7594do
7595 CC="$ac_save_CC $ac_arg"
7596 if ac_fn_c_try_compile "$LINENO"; then :
7597 ac_cv_prog_cc_c99=$ac_arg
7598fi
7599rm -f core conftest.err conftest.$ac_objext
7600 test "x$ac_cv_prog_cc_c99" != "xno" && break
7601done
7602rm -f conftest.$ac_ext
7603CC=$ac_save_CC
7604
7605fi
7606# AC_CACHE_VAL
7607case "x$ac_cv_prog_cc_c99" in
7608 x)
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7610$as_echo "none needed" >&6; } ;;
7611 xno)
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7613$as_echo "unsupported" >&6; } ;;
7614 *)
7615 CC="$CC $ac_cv_prog_cc_c99"
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7617$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7618esac
7619if test "x$ac_cv_prog_cc_c99" != xno; then :
7620
7621fi
7622
7623
cristy73bd4a52010-10-05 11:24:23 +00007624if test "x$CC" != xcc; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7626$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7627else
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7629$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7630fi
7631set dummy $CC; ac_cc=`$as_echo "$2" |
7632 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007633if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007634 $as_echo_n "(cached) " >&6
7635else
cristy73bd4a52010-10-05 11:24:23 +00007636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637/* end confdefs.h. */
7638
7639int
7640main ()
7641{
7642
7643 ;
7644 return 0;
7645}
7646_ACEOF
7647# Make sure it works both with $CC and with simple cc.
7648# We do the test twice because some compilers refuse to overwrite an
7649# existing .o file with -o, though they will create one.
7650ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7651rm -f conftest2.*
7652if { { case "(($ac_try" in
7653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654 *) ac_try_echo=$ac_try;;
7655esac
7656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7657$as_echo "$ac_try_echo"; } >&5
7658 (eval "$ac_try") 2>&5
7659 ac_status=$?
7660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7661 test $ac_status = 0; } &&
7662 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7665esac
7666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7667$as_echo "$ac_try_echo"; } >&5
7668 (eval "$ac_try") 2>&5
7669 ac_status=$?
7670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7671 test $ac_status = 0; };
7672then
7673 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7674 if test "x$CC" != xcc; then
7675 # Test first that cc exists at all.
7676 if { ac_try='cc -c conftest.$ac_ext >&5'
7677 { { case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7680esac
7681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7682$as_echo "$ac_try_echo"; } >&5
7683 (eval "$ac_try") 2>&5
7684 ac_status=$?
7685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7686 test $ac_status = 0; }; }; then
7687 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7688 rm -f conftest2.*
7689 if { { case "(($ac_try" in
7690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7692esac
7693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7694$as_echo "$ac_try_echo"; } >&5
7695 (eval "$ac_try") 2>&5
7696 ac_status=$?
7697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7698 test $ac_status = 0; } &&
7699 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701 *) ac_try_echo=$ac_try;;
7702esac
7703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7704$as_echo "$ac_try_echo"; } >&5
7705 (eval "$ac_try") 2>&5
7706 ac_status=$?
7707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708 test $ac_status = 0; };
7709 then
7710 # cc works too.
7711 :
7712 else
7713 # cc exists but doesn't like -o.
7714 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7715 fi
7716 fi
7717 fi
7718else
7719 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7720fi
7721rm -f core conftest*
7722
7723fi
7724if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7726$as_echo "yes" >&6; }
7727else
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729$as_echo "no" >&6; }
7730
7731$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7732
7733fi
7734
7735# FIXME: we rely on the cache variable name because
7736# there is no other way.
7737set dummy $CC
7738am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7739eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7740if test "$am_t" != yes; then
7741 # Losing compiler, so override with the script.
7742 # FIXME: It is wrong to rewrite CC.
7743 # But if we don't then we get into trouble of one sort or another.
7744 # A longer-term fix would be to have automake use am__CC in this case,
7745 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7746 CC="$am_aux_dir/compile $CC"
7747fi
7748
7749
7750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7751$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007752if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007753 $as_echo_n "(cached) " >&6
7754else
7755 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007756 ac_ext=c
7757ac_cpp='$CPP $CPPFLAGS'
7758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7760ac_compiler_gnu=$ac_cv_c_compiler_gnu
7761
7762 ac_save_CFLAGS="$CFLAGS"
7763for 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" #
7764do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766/* end confdefs.h. */
7767
7768int
7769main ()
7770{
cristy24fc1fe2010-10-23 21:13:01 +00007771
cristy73bd4a52010-10-05 11:24:23 +00007772 ;
7773 return 0;
7774}
7775_ACEOF
7776if ac_fn_c_try_compile "$LINENO"; then :
7777 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7778fi
7779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780done
7781 CFLAGS="$ac_save_CFLAGS"
7782 ac_ext=c
7783ac_cpp='$CPP $CPPFLAGS'
7784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786ac_compiler_gnu=$ac_cv_c_compiler_gnu
7787
7788
7789fi
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7791$as_echo "$ac_cv_cflags_warn_all" >&6; }
7792case ".$ac_cv_cflags_warn_all" in
7793 .ok|.ok,*) ;;
7794 .|.no|.no,*)
7795 ;;
7796 *)
7797 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7798 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7799 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7800 ac_status=$?
7801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7802 test $ac_status = 0; }
7803 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7804 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7805 ac_status=$?
7806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7807 test $ac_status = 0; }
7808 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7809 fi
7810 ;;
nicolas6237c462010-10-05 06:11:49 +00007811esac
cristy3ed852e2009-09-05 21:47:34 +00007812
cristya0b81c32010-01-22 02:54:33 +00007813
7814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7815$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7816set x ${MAKE-make}
7817ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007818if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007819 $as_echo_n "(cached) " >&6
7820else
7821 cat >conftest.make <<\_ACEOF
7822SHELL = /bin/sh
7823all:
7824 @echo '@@@%%%=$(MAKE)=@@@%%%'
7825_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007826# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007827case `${MAKE-make} -f conftest.make 2>/dev/null` in
7828 *@@@%%%=?*=@@@%%%*)
7829 eval ac_cv_prog_make_${ac_make}_set=yes;;
7830 *)
7831 eval ac_cv_prog_make_${ac_make}_set=no;;
7832esac
7833rm -f conftest.make
7834fi
7835if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7837$as_echo "yes" >&6; }
7838 SET_MAKE=
7839else
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841$as_echo "no" >&6; }
7842 SET_MAKE="MAKE=${MAKE-make}"
7843fi
7844
cristy8b350f62009-11-15 23:12:43 +00007845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007846$as_echo_n "checking whether ln -s works... " >&6; }
7847LN_S=$as_ln_s
7848if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007850$as_echo "yes" >&6; }
7851else
cristy8b350f62009-11-15 23:12:43 +00007852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007853$as_echo "no, using $LN_S" >&6; }
7854fi
7855
cristy73bd4a52010-10-05 11:24:23 +00007856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7857$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7858
7859# Check whether --with-dmalloc was given.
7860if test "${with_dmalloc+set}" = set; then :
7861 withval=$with_dmalloc; if test "$withval" = yes; then
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7863$as_echo "yes" >&6; }
7864
7865$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7866
7867 LIBS="$LIBS -ldmalloc"
7868 LDFLAGS="$LDFLAGS -g"
7869else
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871$as_echo "no" >&6; }
7872fi
7873else
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875$as_echo "no" >&6; }
7876fi
7877
7878
7879
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7881$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007882if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007883 $as_echo_n "(cached) " >&6
7884else
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886/* end confdefs.h. */
7887#include <stdlib.h>
7888 static void foo(void) __attribute__ ((unused));
7889 static void
7890 foo(void) {
7891 exit(1);
7892 }
7893
7894int
7895main ()
7896{
7897
7898 ;
7899 return 0;
7900}
7901_ACEOF
7902if ac_fn_c_try_compile "$LINENO"; then :
7903 ax_cv___attribute__=yes
7904else
7905 ax_cv___attribute__=no
7906
7907fi
7908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7909
7910fi
7911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7912$as_echo "$ax_cv___attribute__" >&6; }
7913 if test "$ax_cv___attribute__" = "yes"; then
7914
7915$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7916
7917 fi
7918
7919
7920
7921if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7922 if test -n "$ac_tool_prefix"; then
7923 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7924set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007927if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007928 $as_echo_n "(cached) " >&6
7929else
7930 case $PKG_CONFIG in
7931 [\\/]* | ?:[\\/]*)
7932 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7933 ;;
7934 *)
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936for as_dir in $PATH
7937do
7938 IFS=$as_save_IFS
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 break 2
7945 fi
7946done
7947 done
7948IFS=$as_save_IFS
7949
7950 ;;
7951esac
7952fi
7953PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7954if test -n "$PKG_CONFIG"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7956$as_echo "$PKG_CONFIG" >&6; }
7957else
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959$as_echo "no" >&6; }
7960fi
7961
7962
7963fi
7964if test -z "$ac_cv_path_PKG_CONFIG"; then
7965 ac_pt_PKG_CONFIG=$PKG_CONFIG
7966 # Extract the first word of "pkg-config", so it can be a program name with args.
7967set dummy pkg-config; ac_word=$2
7968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007970if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007971 $as_echo_n "(cached) " >&6
7972else
7973 case $ac_pt_PKG_CONFIG in
7974 [\\/]* | ?:[\\/]*)
7975 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7976 ;;
7977 *)
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979for as_dir in $PATH
7980do
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7985 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 break 2
7988 fi
7989done
7990 done
7991IFS=$as_save_IFS
7992
7993 ;;
7994esac
7995fi
7996ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7997if test -n "$ac_pt_PKG_CONFIG"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7999$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8000else
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002$as_echo "no" >&6; }
8003fi
8004
8005 if test "x$ac_pt_PKG_CONFIG" = x; then
8006 PKG_CONFIG=""
8007 else
8008 case $cross_compiling:$ac_tool_warned in
8009yes:)
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8012ac_tool_warned=yes ;;
8013esac
8014 PKG_CONFIG=$ac_pt_PKG_CONFIG
8015 fi
8016else
8017 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8018fi
8019
8020fi
8021if test -n "$PKG_CONFIG"; then
8022 _pkg_min_version=0.9.0
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8024$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8025 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8027$as_echo "yes" >&6; }
8028 else
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030$as_echo "no" >&6; }
8031 PKG_CONFIG=""
8032 fi
8033
8034fi
cristy3ed852e2009-09-05 21:47:34 +00008035
8036#
cristy3ed852e2009-09-05 21:47:34 +00008037# Enable run-time checking.
8038#
8039# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008040if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008041 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8042else
8043 enable_bounds_checking='no'
8044fi
8045
8046
8047if test "$enable_bounds_checking" = yes; then
8048
cristy8b350f62009-11-15 23:12:43 +00008049$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008050
8051fi
8052
8053#
8054# Tests for Windows
8055#
8056
8057
cristy73bd4a52010-10-05 11:24:23 +00008058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8059$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008060if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008061 $as_echo_n "(cached) " >&6
8062else
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064/* end confdefs.h. */
8065
8066int
8067main ()
8068{
8069#ifndef _MSC_VER
8070 choke me
8071#endif
8072
8073 ;
8074 return 0;
8075}
8076_ACEOF
8077if ac_fn_c_try_compile "$LINENO"; then :
8078 ax_compiler_ms=yes
8079else
8080 ax_compiler_ms=no
8081fi
8082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083ax_cv_c_compiler_ms=$ax_compiler_ms
8084
8085fi
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8087$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008088
8089GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008090native_win32_build='no'
8091cygwin_build='no'
8092case "${host_os}" in
8093 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008094 cygwin_build='yes'
8095 GDI32_LIBS='-lgdi32'
8096 ;;
8097 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008098 native_win32_build='yes'
8099 GDI32_LIBS='-lgdi32'
8100 ;;
8101esac
8102if test "${GDI32_LIBS}x" != 'x'; then
8103
cristy8b350f62009-11-15 23:12:43 +00008104$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008105
8106fi
8107
cristy73bd4a52010-10-05 11:24:23 +00008108 if test "${GDI32_LIBS}x" != 'x' ; then
8109 WINGDI32_DELEGATE_TRUE=
8110 WINGDI32_DELEGATE_FALSE='#'
8111else
8112 WINGDI32_DELEGATE_TRUE='#'
8113 WINGDI32_DELEGATE_FALSE=
8114fi
8115
8116 if test "${native_win32_build}" = 'yes' ; then
8117 WIN32_NATIVE_BUILD_TRUE=
8118 WIN32_NATIVE_BUILD_FALSE='#'
8119else
8120 WIN32_NATIVE_BUILD_TRUE='#'
8121 WIN32_NATIVE_BUILD_FALSE=
8122fi
8123
8124 if test "${cygwin_build}" = 'yes' ; then
8125 CYGWIN_BUILD_TRUE=
8126 CYGWIN_BUILD_FALSE='#'
8127else
8128 CYGWIN_BUILD_TRUE='#'
8129 CYGWIN_BUILD_FALSE=
8130fi
8131
8132 if test "x${CC}" = 'xcl.exe' ; then
8133 USING_CL_TRUE=
8134 USING_CL_FALSE='#'
8135else
8136 USING_CL_TRUE='#'
8137 USING_CL_FALSE=
8138fi
8139
cristy3ed852e2009-09-05 21:47:34 +00008140
8141WinPathScript="${srcdirfull}/winpath.sh"
8142
8143
8144#
8145# Compiler flags tweaks
8146#
8147if test "${GCC}" != "yes"; then
8148 case "${host}" in
8149 *-*-hpux* )
8150 # aCC: HP ANSI C++ B3910B A.03.34
8151 CFLAGS="${CFLAGS} -Wp,-H30000"
8152 if test -n "${CXXFLAGS}"; then
8153 CXXFLAGS='-AA'
8154 else
8155 CXXFLAGS="${CXXFLAGS} -AA"
8156 fi
8157 ;;
8158 *-dec-osf5.* )
8159 # Compaq alphaev68-dec-osf5.1 compiler
8160 if test -n "${CXXFLAGS}"; then
8161 CXXFLAGS='-std strict_ansi -noimplicit_include'
8162 else
8163 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8164 fi
8165 esac
8166fi
8167
8168# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008170$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008171if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008172 $as_echo_n "(cached) " >&6
8173else
8174
8175im_cv_ld_lazyload='none'
8176case "${host}" in
8177 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8178 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8179 im_cv_ld_lazyload='-Wl,-zlazyload'
8180 fi
8181 ;;
8182esac
8183
8184fi
cristy8b350f62009-11-15 23:12:43 +00008185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008186$as_echo "$im_cv_ld_lazyload" >&6; }
8187if test "${im_cv_ld_lazyload}" != 'none' ; then
8188 if test -z "${LDFLAGS}" ; then
8189 LDFLAGS="${im_cv_ld_lazyload}"
8190 else
8191 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8192 fi
8193fi
8194
8195case "$host" in
8196*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008197 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008198if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008199 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8200else
8201 build_osxuniversal=no
8202fi
8203
8204
8205 if test "${build_osxuniversal}" != no ; then
8206 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008207 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008208Please re-run configure with these options:
8209 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008210 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008211 fi
8212 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8213 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8214 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8215 fi
8216 ;;
8217esac
8218
8219# Enable support for threads
8220
8221# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008222if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008223 withval=$with_threads; with_threads=$withval
8224else
8225 with_threads='yes'
8226fi
8227
8228
8229have_threads=no
8230if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008231
8232
8233
8234ac_ext=c
8235ac_cpp='$CPP $CPPFLAGS'
8236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8238ac_compiler_gnu=$ac_cv_c_compiler_gnu
8239
8240ax_pthread_ok=no
8241
8242# We used to check for pthread.h first, but this fails if pthread.h
8243# requires special compiler flags (e.g. on True64 or Sequent).
8244# It gets checked for in the link test anyway.
8245
8246# First of all, check if the user has set any of the PTHREAD_LIBS,
8247# etcetera environment variables, and if threads linking works using
8248# them:
8249if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8250 save_CFLAGS="$CFLAGS"
8251 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8252 save_LIBS="$LIBS"
8253 LIBS="$PTHREAD_LIBS $LIBS"
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8255$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257/* end confdefs.h. */
8258
8259/* Override any GCC internal prototype to avoid an error.
8260 Use char because int might match the return type of a GCC
8261 builtin and then its argument prototype would still apply. */
8262#ifdef __cplusplus
8263extern "C"
8264#endif
8265char pthread_join ();
8266int
8267main ()
8268{
8269return pthread_join ();
8270 ;
8271 return 0;
8272}
8273_ACEOF
8274if ac_fn_c_try_link "$LINENO"; then :
8275 ax_pthread_ok=yes
8276fi
8277rm -f core conftest.err conftest.$ac_objext \
8278 conftest$ac_exeext conftest.$ac_ext
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8280$as_echo "$ax_pthread_ok" >&6; }
8281 if test x"$ax_pthread_ok" = xno; then
8282 PTHREAD_LIBS=""
8283 PTHREAD_CFLAGS=""
8284 fi
8285 LIBS="$save_LIBS"
8286 CFLAGS="$save_CFLAGS"
8287fi
8288
8289# We must check for the threads library under a number of different
8290# names; the ordering is very important because some systems
8291# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8292# libraries is broken (non-POSIX).
8293
8294# Create a list of thread flags to try. Items starting with a "-" are
8295# C compiler flags, and other items are library names, except for "none"
8296# which indicates that we try without any flags at all, and "pthread-config"
8297# which is a program returning the flags for the Pth emulation library.
8298
8299ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8300
8301# The ordering *is* (sometimes) important. Some notes on the
8302# individual items follow:
8303
8304# pthreads: AIX (must check this before -lpthread)
8305# none: in case threads are in libc; should be tried before -Kthread and
8306# other compiler flags to prevent continual compiler warnings
8307# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8308# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8309# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8310# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8311# -pthreads: Solaris/gcc
8312# -mthreads: Mingw32/gcc, Lynx/gcc
8313# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8314# doesn't hurt to check since this sometimes defines pthreads too;
8315# also defines -D_REENTRANT)
8316# ... -mt is also the pthreads flag for HP/aCC
8317# pthread: Linux, etcetera
8318# --thread-safe: KAI C++
8319# pthread-config: use pthread-config program (for GNU Pth library)
8320
8321case "${host_cpu}-${host_os}" in
8322 *solaris*)
8323
8324 # On Solaris (at least, for some versions), libc contains stubbed
8325 # (non-functional) versions of the pthreads routines, so link-based
8326 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8327 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8328 # a function called by this macro, so we could check for that, but
8329 # who knows whether they'll stub that too in a future libc.) So,
8330 # we'll just look for -pthreads and -lpthread first:
8331
8332 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8333 ;;
8334
8335 *-darwin*)
8336 ax_pthread_flags="-pthread $ax_pthread_flags"
8337 ;;
8338esac
8339
8340if test x"$ax_pthread_ok" = xno; then
8341for flag in $ax_pthread_flags; do
8342
8343 case $flag in
8344 none)
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8346$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8347 ;;
8348
8349 -*)
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8351$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8352 PTHREAD_CFLAGS="$flag"
8353 ;;
8354
8355 pthread-config)
8356 # Extract the first word of "pthread-config", so it can be a program name with args.
8357set dummy pthread-config; ac_word=$2
8358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008360if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008361 $as_echo_n "(cached) " >&6
8362else
8363 if test -n "$ax_pthread_config"; then
8364 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8365else
8366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367for as_dir in $PATH
8368do
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8373 ac_cv_prog_ax_pthread_config="yes"
8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8375 break 2
8376 fi
8377done
8378 done
8379IFS=$as_save_IFS
8380
8381 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8382fi
8383fi
8384ax_pthread_config=$ac_cv_prog_ax_pthread_config
8385if test -n "$ax_pthread_config"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8387$as_echo "$ax_pthread_config" >&6; }
8388else
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390$as_echo "no" >&6; }
8391fi
8392
8393
8394 if test x"$ax_pthread_config" = xno; then continue; fi
8395 PTHREAD_CFLAGS="`pthread-config --cflags`"
8396 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8397 ;;
8398
8399 *)
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8401$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8402 PTHREAD_LIBS="-l$flag"
8403 ;;
8404 esac
8405
8406 save_LIBS="$LIBS"
8407 save_CFLAGS="$CFLAGS"
8408 LIBS="$PTHREAD_LIBS $LIBS"
8409 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8410
8411 # Check for various functions. We must include pthread.h,
8412 # since some functions may be macros. (On the Sequent, we
8413 # need a special flag -Kthread to make this header compile.)
8414 # We check for pthread_join because it is in -lpthread on IRIX
8415 # while pthread_create is in libc. We check for pthread_attr_init
8416 # due to DEC craziness with -lpthreads. We check for
8417 # pthread_cleanup_push because it is one of the few pthread
8418 # functions on Solaris that doesn't have a non-functional libc stub.
8419 # We try pthread_create on general principles.
8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421/* end confdefs.h. */
8422#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008423 static void routine(void* a) {a=0;}
8424 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008425int
8426main ()
8427{
8428pthread_t th; pthread_attr_t attr;
8429 pthread_create(&th,0,start_routine,0);
8430 pthread_join(th, 0);
8431 pthread_attr_init(&attr);
8432 pthread_cleanup_push(routine, 0);
8433 pthread_cleanup_pop(0);
8434 ;
8435 return 0;
8436}
8437_ACEOF
8438if ac_fn_c_try_link "$LINENO"; then :
8439 ax_pthread_ok=yes
8440fi
8441rm -f core conftest.err conftest.$ac_objext \
8442 conftest$ac_exeext conftest.$ac_ext
8443
8444 LIBS="$save_LIBS"
8445 CFLAGS="$save_CFLAGS"
8446
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8448$as_echo "$ax_pthread_ok" >&6; }
8449 if test "x$ax_pthread_ok" = xyes; then
8450 break;
8451 fi
8452
8453 PTHREAD_LIBS=""
8454 PTHREAD_CFLAGS=""
8455done
8456fi
8457
8458# Various other checks:
8459if test "x$ax_pthread_ok" = xyes; then
8460 save_LIBS="$LIBS"
8461 LIBS="$PTHREAD_LIBS $LIBS"
8462 save_CFLAGS="$CFLAGS"
8463 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8464
8465 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8467$as_echo_n "checking for joinable pthread attribute... " >&6; }
8468 attr_name=unknown
8469 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471/* end confdefs.h. */
8472#include <pthread.h>
8473int
8474main ()
8475{
8476int attr=$attr; return attr;
8477 ;
8478 return 0;
8479}
8480_ACEOF
8481if ac_fn_c_try_link "$LINENO"; then :
8482 attr_name=$attr; break
8483fi
8484rm -f core conftest.err conftest.$ac_objext \
8485 conftest$ac_exeext conftest.$ac_ext
8486 done
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8488$as_echo "$attr_name" >&6; }
8489 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8490
8491cat >>confdefs.h <<_ACEOF
8492#define PTHREAD_CREATE_JOINABLE $attr_name
8493_ACEOF
8494
8495 fi
8496
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8498$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8499 flag=no
8500 case "${host_cpu}-${host_os}" in
8501 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8502 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8503 esac
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8505$as_echo "${flag}" >&6; }
8506 if test "x$flag" != xno; then
8507 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8508 fi
8509
8510 LIBS="$save_LIBS"
8511 CFLAGS="$save_CFLAGS"
8512
8513 # More AIX lossage: must compile with xlc_r or cc_r
8514 if test x"$GCC" != xyes; then
8515 for ac_prog in xlc_r cc_r
8516do
8517 # Extract the first word of "$ac_prog", so it can be a program name with args.
8518set dummy $ac_prog; ac_word=$2
8519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008521if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008522 $as_echo_n "(cached) " >&6
8523else
8524 if test -n "$PTHREAD_CC"; then
8525 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8526else
8527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528for as_dir in $PATH
8529do
8530 IFS=$as_save_IFS
8531 test -z "$as_dir" && as_dir=.
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8534 ac_cv_prog_PTHREAD_CC="$ac_prog"
8535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 break 2
8537 fi
8538done
8539 done
8540IFS=$as_save_IFS
8541
8542fi
8543fi
8544PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8545if test -n "$PTHREAD_CC"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8547$as_echo "$PTHREAD_CC" >&6; }
8548else
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550$as_echo "no" >&6; }
8551fi
8552
8553
8554 test -n "$PTHREAD_CC" && break
8555done
8556test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8557
8558 else
8559 PTHREAD_CC=$CC
8560 fi
8561else
8562 PTHREAD_CC="$CC"
8563fi
8564
8565
8566
8567
8568
8569# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8570if test x"$ax_pthread_ok" = xyes; then
8571
8572$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8573
8574 :
8575else
8576 ax_pthread_ok=no
8577
8578fi
8579ac_ext=c
8580ac_cpp='$CPP $CPPFLAGS'
8581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8583ac_compiler_gnu=$ac_cv_c_compiler_gnu
8584
8585
cristy7acf8fb2010-09-23 19:58:53 +00008586 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008587 have_threads=yes
8588 DEF_THREAD="$PTHREAD_CFLAGS"
8589 CFLAGS="$CFLAGS $DEF_THREAD"
8590 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8591 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008592 { $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 +00008593$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8594 CC="$PTHREAD_CC"
8595 fi
cristy55bf91c2010-09-24 00:29:41 +00008596
8597$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8598
cristy3ed852e2009-09-05 21:47:34 +00008599 fi
8600fi
8601
8602# Enable support for OpenMP
8603if test "$have_threads" != 'yes'; then
8604 ac_cv_prog_c_openmp=unsupported
8605fi
8606
8607 OPENMP_CFLAGS=
8608 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008609if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008610 enableval=$enable_openmp;
8611fi
8612
8613 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008615$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008616if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008617 $as_echo_n "(cached) " >&6
8618else
cristy8b350f62009-11-15 23:12:43 +00008619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008621
8622#ifndef _OPENMP
8623 choke me
8624#endif
8625#include <omp.h>
8626int main () { return omp_get_num_threads (); }
8627
8628_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008629if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008630 ac_cv_prog_c_openmp='none needed'
8631else
cristy8b350f62009-11-15 23:12:43 +00008632 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008633 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8634 ac_save_CFLAGS=$CFLAGS
8635 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008638
8639#ifndef _OPENMP
8640 choke me
8641#endif
8642#include <omp.h>
8643int main () { return omp_get_num_threads (); }
8644
8645_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008646if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008647 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008648fi
cristy8b350f62009-11-15 23:12:43 +00008649rm -f core conftest.err conftest.$ac_objext \
8650 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008651 CFLAGS=$ac_save_CFLAGS
8652 if test "$ac_cv_prog_c_openmp" != unsupported; then
8653 break
8654 fi
8655 done
8656fi
cristy8b350f62009-11-15 23:12:43 +00008657rm -f core conftest.err conftest.$ac_objext \
8658 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008659fi
cristy8b350f62009-11-15 23:12:43 +00008660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008661$as_echo "$ac_cv_prog_c_openmp" >&6; }
8662 case $ac_cv_prog_c_openmp in #(
8663 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008664 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008665 *)
cristy8b350f62009-11-15 23:12:43 +00008666 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008667 esac
8668 fi
8669
8670
8671CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8672MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8673
cristy391f1ce2010-09-09 17:23:28 +00008674if test "$enable_openmp" != no; then
8675 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8676 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8677 fi
8678fi
cristy3ed852e2009-09-05 21:47:34 +00008679
cristy736173a2009-09-20 21:18:22 +00008680# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008681
8682
8683
8684ac_ext=c
8685ac_cpp='$CPP $CPPFLAGS'
8686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8688ac_compiler_gnu=$ac_cv_c_compiler_gnu
8689
8690ax_pthread_ok=no
8691
8692# We used to check for pthread.h first, but this fails if pthread.h
8693# requires special compiler flags (e.g. on True64 or Sequent).
8694# It gets checked for in the link test anyway.
8695
8696# First of all, check if the user has set any of the PTHREAD_LIBS,
8697# etcetera environment variables, and if threads linking works using
8698# them:
8699if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8700 save_CFLAGS="$CFLAGS"
8701 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8702 save_LIBS="$LIBS"
8703 LIBS="$PTHREAD_LIBS $LIBS"
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8705$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707/* end confdefs.h. */
8708
8709/* Override any GCC internal prototype to avoid an error.
8710 Use char because int might match the return type of a GCC
8711 builtin and then its argument prototype would still apply. */
8712#ifdef __cplusplus
8713extern "C"
8714#endif
8715char pthread_join ();
8716int
8717main ()
8718{
8719return pthread_join ();
8720 ;
8721 return 0;
8722}
8723_ACEOF
8724if ac_fn_c_try_link "$LINENO"; then :
8725 ax_pthread_ok=yes
8726fi
8727rm -f core conftest.err conftest.$ac_objext \
8728 conftest$ac_exeext conftest.$ac_ext
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8730$as_echo "$ax_pthread_ok" >&6; }
8731 if test x"$ax_pthread_ok" = xno; then
8732 PTHREAD_LIBS=""
8733 PTHREAD_CFLAGS=""
8734 fi
8735 LIBS="$save_LIBS"
8736 CFLAGS="$save_CFLAGS"
8737fi
8738
8739# We must check for the threads library under a number of different
8740# names; the ordering is very important because some systems
8741# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8742# libraries is broken (non-POSIX).
8743
8744# Create a list of thread flags to try. Items starting with a "-" are
8745# C compiler flags, and other items are library names, except for "none"
8746# which indicates that we try without any flags at all, and "pthread-config"
8747# which is a program returning the flags for the Pth emulation library.
8748
8749ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8750
8751# The ordering *is* (sometimes) important. Some notes on the
8752# individual items follow:
8753
8754# pthreads: AIX (must check this before -lpthread)
8755# none: in case threads are in libc; should be tried before -Kthread and
8756# other compiler flags to prevent continual compiler warnings
8757# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8758# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8759# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8760# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8761# -pthreads: Solaris/gcc
8762# -mthreads: Mingw32/gcc, Lynx/gcc
8763# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8764# doesn't hurt to check since this sometimes defines pthreads too;
8765# also defines -D_REENTRANT)
8766# ... -mt is also the pthreads flag for HP/aCC
8767# pthread: Linux, etcetera
8768# --thread-safe: KAI C++
8769# pthread-config: use pthread-config program (for GNU Pth library)
8770
8771case "${host_cpu}-${host_os}" in
8772 *solaris*)
8773
8774 # On Solaris (at least, for some versions), libc contains stubbed
8775 # (non-functional) versions of the pthreads routines, so link-based
8776 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8777 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8778 # a function called by this macro, so we could check for that, but
8779 # who knows whether they'll stub that too in a future libc.) So,
8780 # we'll just look for -pthreads and -lpthread first:
8781
8782 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8783 ;;
8784
8785 *-darwin*)
8786 ax_pthread_flags="-pthread $ax_pthread_flags"
8787 ;;
8788esac
8789
8790if test x"$ax_pthread_ok" = xno; then
8791for flag in $ax_pthread_flags; do
8792
8793 case $flag in
8794 none)
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8796$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8797 ;;
8798
8799 -*)
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8801$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8802 PTHREAD_CFLAGS="$flag"
8803 ;;
8804
8805 pthread-config)
8806 # Extract the first word of "pthread-config", so it can be a program name with args.
8807set dummy pthread-config; ac_word=$2
8808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8809$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008810if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008811 $as_echo_n "(cached) " >&6
8812else
8813 if test -n "$ax_pthread_config"; then
8814 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8815else
8816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817for as_dir in $PATH
8818do
8819 IFS=$as_save_IFS
8820 test -z "$as_dir" && as_dir=.
8821 for ac_exec_ext in '' $ac_executable_extensions; do
8822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8823 ac_cv_prog_ax_pthread_config="yes"
8824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8825 break 2
8826 fi
8827done
8828 done
8829IFS=$as_save_IFS
8830
8831 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8832fi
8833fi
8834ax_pthread_config=$ac_cv_prog_ax_pthread_config
8835if test -n "$ax_pthread_config"; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8837$as_echo "$ax_pthread_config" >&6; }
8838else
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840$as_echo "no" >&6; }
8841fi
8842
8843
8844 if test x"$ax_pthread_config" = xno; then continue; fi
8845 PTHREAD_CFLAGS="`pthread-config --cflags`"
8846 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8847 ;;
8848
8849 *)
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8851$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8852 PTHREAD_LIBS="-l$flag"
8853 ;;
8854 esac
8855
8856 save_LIBS="$LIBS"
8857 save_CFLAGS="$CFLAGS"
8858 LIBS="$PTHREAD_LIBS $LIBS"
8859 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8860
8861 # Check for various functions. We must include pthread.h,
8862 # since some functions may be macros. (On the Sequent, we
8863 # need a special flag -Kthread to make this header compile.)
8864 # We check for pthread_join because it is in -lpthread on IRIX
8865 # while pthread_create is in libc. We check for pthread_attr_init
8866 # due to DEC craziness with -lpthreads. We check for
8867 # pthread_cleanup_push because it is one of the few pthread
8868 # functions on Solaris that doesn't have a non-functional libc stub.
8869 # We try pthread_create on general principles.
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871/* end confdefs.h. */
8872#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008873 static void routine(void* a) {a=0;}
8874 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008875int
8876main ()
8877{
8878pthread_t th; pthread_attr_t attr;
8879 pthread_create(&th,0,start_routine,0);
8880 pthread_join(th, 0);
8881 pthread_attr_init(&attr);
8882 pthread_cleanup_push(routine, 0);
8883 pthread_cleanup_pop(0);
8884 ;
8885 return 0;
8886}
8887_ACEOF
8888if ac_fn_c_try_link "$LINENO"; then :
8889 ax_pthread_ok=yes
8890fi
8891rm -f core conftest.err conftest.$ac_objext \
8892 conftest$ac_exeext conftest.$ac_ext
8893
8894 LIBS="$save_LIBS"
8895 CFLAGS="$save_CFLAGS"
8896
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8898$as_echo "$ax_pthread_ok" >&6; }
8899 if test "x$ax_pthread_ok" = xyes; then
8900 break;
8901 fi
8902
8903 PTHREAD_LIBS=""
8904 PTHREAD_CFLAGS=""
8905done
8906fi
8907
8908# Various other checks:
8909if test "x$ax_pthread_ok" = xyes; then
8910 save_LIBS="$LIBS"
8911 LIBS="$PTHREAD_LIBS $LIBS"
8912 save_CFLAGS="$CFLAGS"
8913 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8914
8915 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8917$as_echo_n "checking for joinable pthread attribute... " >&6; }
8918 attr_name=unknown
8919 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921/* end confdefs.h. */
8922#include <pthread.h>
8923int
8924main ()
8925{
8926int attr=$attr; return attr;
8927 ;
8928 return 0;
8929}
8930_ACEOF
8931if ac_fn_c_try_link "$LINENO"; then :
8932 attr_name=$attr; break
8933fi
8934rm -f core conftest.err conftest.$ac_objext \
8935 conftest$ac_exeext conftest.$ac_ext
8936 done
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8938$as_echo "$attr_name" >&6; }
8939 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8940
8941cat >>confdefs.h <<_ACEOF
8942#define PTHREAD_CREATE_JOINABLE $attr_name
8943_ACEOF
8944
8945 fi
8946
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8948$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8949 flag=no
8950 case "${host_cpu}-${host_os}" in
8951 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8952 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8953 esac
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8955$as_echo "${flag}" >&6; }
8956 if test "x$flag" != xno; then
8957 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8958 fi
8959
8960 LIBS="$save_LIBS"
8961 CFLAGS="$save_CFLAGS"
8962
8963 # More AIX lossage: must compile with xlc_r or cc_r
8964 if test x"$GCC" != xyes; then
8965 for ac_prog in xlc_r cc_r
8966do
8967 # Extract the first word of "$ac_prog", so it can be a program name with args.
8968set dummy $ac_prog; ac_word=$2
8969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008971if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008972 $as_echo_n "(cached) " >&6
8973else
8974 if test -n "$PTHREAD_CC"; then
8975 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8976else
8977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978for as_dir in $PATH
8979do
8980 IFS=$as_save_IFS
8981 test -z "$as_dir" && as_dir=.
8982 for ac_exec_ext in '' $ac_executable_extensions; do
8983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8984 ac_cv_prog_PTHREAD_CC="$ac_prog"
8985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8986 break 2
8987 fi
8988done
8989 done
8990IFS=$as_save_IFS
8991
8992fi
8993fi
8994PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8995if test -n "$PTHREAD_CC"; then
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8997$as_echo "$PTHREAD_CC" >&6; }
8998else
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000$as_echo "no" >&6; }
9001fi
9002
9003
9004 test -n "$PTHREAD_CC" && break
9005done
9006test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9007
9008 else
9009 PTHREAD_CC=$CC
9010 fi
9011else
9012 PTHREAD_CC="$CC"
9013fi
9014
9015
9016
9017
9018
9019# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9020if test x"$ax_pthread_ok" = xyes; then
9021
9022$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9023
9024 :
9025else
9026 ax_pthread_ok=no
9027
9028fi
9029ac_ext=c
9030ac_cpp='$CPP $CPPFLAGS'
9031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9033ac_compiler_gnu=$ac_cv_c_compiler_gnu
9034
9035
9036
9037# Check whether --enable-opencl was given.
9038if test "${enable_opencl+set}" = set; then :
9039 enableval=$enable_opencl; disable_opencl=$enableval
9040else
9041 disable_opencl='yes'
9042fi
9043
9044
9045if test "$disable_opencl" = 'yes'; then
9046 ac_ext=c
9047ac_cpp='$CPP $CPPFLAGS'
9048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9050ac_compiler_gnu=$ac_cv_c_compiler_gnu
9051
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9053$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009054if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009055 $as_echo_n "(cached) " >&6
9056else
9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058/* end confdefs.h. */
9059
9060int
9061main ()
9062{
9063#ifndef _MSC_VER
9064 choke me
9065#endif
9066
9067 ;
9068 return 0;
9069}
9070_ACEOF
9071if ac_fn_c_try_compile "$LINENO"; then :
9072 ax_compiler_ms=yes
9073else
9074 ax_compiler_ms=no
9075fi
9076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077ax_cv_c_compiler_ms=$ax_compiler_ms
9078
9079fi
9080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9081$as_echo "$ax_cv_c_compiler_ms" >&6; }
9082 if test X$ax_compiler_ms = Xno; then :
9083 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9084fi
9085
9086 ax_save_CPPFLAGS=$CPPFLAGS
9087 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9088 for ac_header in CL/cl.h OpenCL/cl.h
9089do :
9090 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9091ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009092if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009093 cat >>confdefs.h <<_ACEOF
9094#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9095_ACEOF
9096
9097fi
9098
9099done
9100
9101 CPPFLAGS=$ax_save_CPPFLAGS
9102
9103 for ac_header in windows.h
9104do :
9105 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009106if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009107 cat >>confdefs.h <<_ACEOF
9108#define HAVE_WINDOWS_H 1
9109_ACEOF
9110
9111fi
9112
9113done
9114
9115
9116
9117
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9119$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009120if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009121 $as_echo_n "(cached) " >&6
9122else
9123 ax_cv_check_cl_libcl=no
9124 case $host_cpu in
9125 x86_64) ax_check_cl_libdir=lib64 ;;
9126 *) ax_check_cl_libdir=lib ;;
9127 esac
9128 ax_save_CPPFLAGS=$CPPFLAGS
9129 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9130 ax_save_LIBS=$LIBS
9131 LIBS=""
9132 ax_check_libs="-lOpenCL -lCL -lclparser"
9133 for ax_lib in $ax_check_libs; do
9134 if test X$ax_compiler_ms = Xyes; then :
9135 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9136else
9137 ax_try_lib=$ax_lib
9138fi
9139 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141/* end confdefs.h. */
9142
9143 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9144 # include <windows.h>
9145 # endif
9146 # ifdef HAVE_CL_CL_H
9147 # include <CL/cl.h>
9148 # elif defined(HAVE_OPENCL_CL_H)
9149 # include <OpenCL/cl.h>
9150 # else
9151 # error no CL.h
9152 # endif
9153int
9154main ()
9155{
9156clCreateContextFromType(0,0,0,0,0)
9157 ;
9158 return 0;
9159}
9160_ACEOF
9161if ac_fn_c_try_link "$LINENO"; then :
9162 ax_cv_check_cl_libcl=$ax_try_lib; break
9163else
9164 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"
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166/* end confdefs.h. */
9167
9168 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9169 # include <windows.h>
9170 # endif
9171 # ifdef HAVE_CL_CL_H
9172 # include <CL/cl.h>
9173 # elif defined(HAVE_OPENCL_CL_H)
9174 # include <OpenCL/cl.h>
9175 # else
9176 # error no CL.h
9177 # endif
9178int
9179main ()
9180{
9181clCreateContextFromType(0,0,0,0,0)
9182 ;
9183 return 0;
9184}
9185_ACEOF
9186if ac_fn_c_try_link "$LINENO"; then :
9187 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9188else
cristy78c5a0c2010-12-04 20:00:59 +00009189 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 +00009190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191/* end confdefs.h. */
9192
9193 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9194 # include <windows.h>
9195 # endif
9196 # ifdef HAVE_CL_CL_H
9197 # include <CL/cl.h>
9198 # elif defined(HAVE_OPENCL_CL_H)
9199 # include <OpenCL/cl.h>
9200 # else
9201 # error no CL.h
9202 # endif
9203int
9204main ()
9205{
9206clCreateContextFromType(0,0,0,0,0)
9207 ;
9208 return 0;
9209}
9210_ACEOF
9211if ac_fn_c_try_link "$LINENO"; then :
9212 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9213fi
9214rm -f core conftest.err conftest.$ac_objext \
9215 conftest$ac_exeext conftest.$ac_ext
9216fi
9217rm -f core conftest.err conftest.$ac_objext \
9218 conftest$ac_exeext conftest.$ac_ext
9219fi
9220rm -f core conftest.err conftest.$ac_objext \
9221 conftest$ac_exeext conftest.$ac_ext
9222 done
9223
9224 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009225 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227/* end confdefs.h. */
9228
9229 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9230 # include <windows.h>
9231 # endif
9232 # ifdef HAVE_CL_CL_H
9233 # include <CL/cl.h>
9234 # elif defined(HAVE_OPENCL_CL_H)
9235 # include <OpenCL/cl.h>
9236 # else
9237 # error no CL.h
9238 # endif
9239int
9240main ()
9241{
9242clCreateContextFromType(0,0,0,0,0)
9243 ;
9244 return 0;
9245}
9246_ACEOF
9247if ac_fn_c_try_link "$LINENO"; then :
9248 ax_cv_check_cl_libcl=$LIBS
9249fi
9250rm -f core conftest.err conftest.$ac_objext \
9251 conftest$ac_exeext conftest.$ac_ext
9252fi
9253
9254 LIBS=$ax_save_LIBS
9255 CPPFLAGS=$ax_save_CPPFLAGS
9256fi
9257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9258$as_echo "$ax_cv_check_cl_libcl" >&6; }
9259
9260 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9261 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9262else
9263 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9264$as_echo "#define _OPENCL 1" >>confdefs.h
9265
9266fi
9267 ac_ext=c
9268ac_cpp='$CPP $CPPFLAGS'
9269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9271ac_compiler_gnu=$ac_cv_c_compiler_gnu
9272
9273fi
9274
9275
9276
9277
cristyc7083c12009-10-14 03:16:55 +00009278CFLAGS="$CL_CFLAGS $CFLAGS"
9279LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009280
cristy391f1ce2010-09-09 17:23:28 +00009281if test "$enable_opencl" != no; then
9282 if test "_OPENCL" = '1'; then
9283 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9284 fi
cristyfd9dcd42010-08-08 18:07:02 +00009285fi
cristy2e8b51d2009-10-17 18:26:15 +00009286
cristy3ed852e2009-09-05 21:47:34 +00009287########
9288#
9289# Check for large file support
9290#
9291########
9292# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009293if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009294 enableval=$enable_largefile;
9295fi
9296
9297if test "$enable_largefile" != no; then
9298
cristy8b350f62009-11-15 23:12:43 +00009299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009300$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009301if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009302 $as_echo_n "(cached) " >&6
9303else
9304 ac_cv_sys_largefile_CC=no
9305 if test "$GCC" != yes; then
9306 ac_save_CC=$CC
9307 while :; do
9308 # IRIX 6.2 and later do not support large files by default,
9309 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009311/* end confdefs.h. */
9312#include <sys/types.h>
9313 /* Check that off_t can represent 2**63 - 1 correctly.
9314 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9315 since some C++ compilers masquerading as C compilers
9316 incorrectly reject 9223372036854775807. */
9317#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9318 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9319 && LARGE_OFF_T % 2147483647 == 1)
9320 ? 1 : -1];
9321int
9322main ()
9323{
9324
9325 ;
9326 return 0;
9327}
9328_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009329 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009330 break
cristy3ed852e2009-09-05 21:47:34 +00009331fi
cristy3ed852e2009-09-05 21:47:34 +00009332rm -f core conftest.err conftest.$ac_objext
9333 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009334 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009335 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009336fi
cristy3ed852e2009-09-05 21:47:34 +00009337rm -f core conftest.err conftest.$ac_objext
9338 break
9339 done
9340 CC=$ac_save_CC
9341 rm -f conftest.$ac_ext
9342 fi
9343fi
cristy8b350f62009-11-15 23:12:43 +00009344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009345$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9346 if test "$ac_cv_sys_largefile_CC" != no; then
9347 CC=$CC$ac_cv_sys_largefile_CC
9348 fi
9349
cristy8b350f62009-11-15 23:12:43 +00009350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009351$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009352if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009353 $as_echo_n "(cached) " >&6
9354else
9355 while :; do
cristy8b350f62009-11-15 23:12:43 +00009356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009357/* end confdefs.h. */
9358#include <sys/types.h>
9359 /* Check that off_t can represent 2**63 - 1 correctly.
9360 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9361 since some C++ compilers masquerading as C compilers
9362 incorrectly reject 9223372036854775807. */
9363#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9364 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9365 && LARGE_OFF_T % 2147483647 == 1)
9366 ? 1 : -1];
9367int
9368main ()
9369{
9370
9371 ;
9372 return 0;
9373}
9374_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009375if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009376 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009377fi
cristy3ed852e2009-09-05 21:47:34 +00009378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009380/* end confdefs.h. */
9381#define _FILE_OFFSET_BITS 64
9382#include <sys/types.h>
9383 /* Check that off_t can represent 2**63 - 1 correctly.
9384 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9385 since some C++ compilers masquerading as C compilers
9386 incorrectly reject 9223372036854775807. */
9387#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9388 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9389 && LARGE_OFF_T % 2147483647 == 1)
9390 ? 1 : -1];
9391int
9392main ()
9393{
9394
9395 ;
9396 return 0;
9397}
9398_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009399if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009400 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009401fi
cristy3ed852e2009-09-05 21:47:34 +00009402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403 ac_cv_sys_file_offset_bits=unknown
9404 break
9405done
9406fi
cristy8b350f62009-11-15 23:12:43 +00009407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009408$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9409case $ac_cv_sys_file_offset_bits in #(
9410 no | unknown) ;;
9411 *)
9412cat >>confdefs.h <<_ACEOF
9413#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9414_ACEOF
9415;;
9416esac
9417rm -rf conftest*
9418 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009420$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009421if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009422 $as_echo_n "(cached) " >&6
9423else
9424 while :; do
cristy8b350f62009-11-15 23:12:43 +00009425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009426/* end confdefs.h. */
9427#include <sys/types.h>
9428 /* Check that off_t can represent 2**63 - 1 correctly.
9429 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9430 since some C++ compilers masquerading as C compilers
9431 incorrectly reject 9223372036854775807. */
9432#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9433 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9434 && LARGE_OFF_T % 2147483647 == 1)
9435 ? 1 : -1];
9436int
9437main ()
9438{
9439
9440 ;
9441 return 0;
9442}
9443_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009444if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009445 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009446fi
cristy3ed852e2009-09-05 21:47:34 +00009447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009449/* end confdefs.h. */
9450#define _LARGE_FILES 1
9451#include <sys/types.h>
9452 /* Check that off_t can represent 2**63 - 1 correctly.
9453 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9454 since some C++ compilers masquerading as C compilers
9455 incorrectly reject 9223372036854775807. */
9456#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9457 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9458 && LARGE_OFF_T % 2147483647 == 1)
9459 ? 1 : -1];
9460int
9461main ()
9462{
9463
9464 ;
9465 return 0;
9466}
9467_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009468if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009469 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009470fi
cristy3ed852e2009-09-05 21:47:34 +00009471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472 ac_cv_sys_large_files=unknown
9473 break
9474done
9475fi
cristy8b350f62009-11-15 23:12:43 +00009476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009477$as_echo "$ac_cv_sys_large_files" >&6; }
9478case $ac_cv_sys_large_files in #(
9479 no | unknown) ;;
9480 *)
9481cat >>confdefs.h <<_ACEOF
9482#define _LARGE_FILES $ac_cv_sys_large_files
9483_ACEOF
9484;;
9485esac
9486rm -rf conftest*
9487 fi
9488fi
9489
cristy8b350f62009-11-15 23:12:43 +00009490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009491$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009492if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009493 $as_echo_n "(cached) " >&6
9494else
9495 while :; do
cristy8b350f62009-11-15 23:12:43 +00009496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009497/* end confdefs.h. */
9498#include <sys/types.h> /* for off_t */
9499 #include <stdio.h>
9500int
9501main ()
9502{
9503int (*fp) (FILE *, off_t, int) = fseeko;
9504 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9505 ;
9506 return 0;
9507}
9508_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009509if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009510 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009511fi
cristy8b350f62009-11-15 23:12:43 +00009512rm -f core conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
9514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009515/* end confdefs.h. */
9516#define _LARGEFILE_SOURCE 1
9517#include <sys/types.h> /* for off_t */
9518 #include <stdio.h>
9519int
9520main ()
9521{
9522int (*fp) (FILE *, off_t, int) = fseeko;
9523 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9524 ;
9525 return 0;
9526}
9527_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009528if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009529 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009530fi
cristy8b350f62009-11-15 23:12:43 +00009531rm -f core conftest.err conftest.$ac_objext \
9532 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009533 ac_cv_sys_largefile_source=unknown
9534 break
9535done
9536fi
cristy8b350f62009-11-15 23:12:43 +00009537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009538$as_echo "$ac_cv_sys_largefile_source" >&6; }
9539case $ac_cv_sys_largefile_source in #(
9540 no | unknown) ;;
9541 *)
9542cat >>confdefs.h <<_ACEOF
9543#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9544_ACEOF
9545;;
9546esac
9547rm -rf conftest*
9548
9549# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9550# in glibc 2.1.3, but that breaks too many other things.
9551# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9552if test $ac_cv_sys_largefile_source != unknown; then
9553
cristy8b350f62009-11-15 23:12:43 +00009554$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009555
9556fi
9557
9558LFS_CPPFLAGS=''
9559if test "$enable_largefile" != no; then
9560 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9561 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9562 else
cristy8b350f62009-11-15 23:12:43 +00009563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009564$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009565 if test "$cross_compiling" = yes; then :
9566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009568as_fn_error $? "cannot run test program while cross compiling
9569See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009570else
cristy8b350f62009-11-15 23:12:43 +00009571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9572/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009573#include <unistd.h>
9574 main () {
9575 exit(!(sizeof(off_t) == 8));
9576 }
cristyda16f162011-02-19 23:52:17 +00009577int
9578main ()
9579{
9580
9581 ;
9582 return 0;
9583}
cristy3ed852e2009-09-05 21:47:34 +00009584_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009585if ac_fn_c_try_run "$LINENO"; then :
9586 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009587
cristy8b350f62009-11-15 23:12:43 +00009588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009589$as_echo "yes" >&6; }
9590else
cristy8b350f62009-11-15 23:12:43 +00009591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009592$as_echo "no" >&6; }
9593fi
cristy8b350f62009-11-15 23:12:43 +00009594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9595 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009596fi
9597
cristy3ed852e2009-09-05 21:47:34 +00009598 fi
9599 if test "$ac_cv_sys_large_files" != 'no'; then
9600 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9601 fi
9602 if test "$ac_cv_sys_largefile_source" != 'no'; then
9603 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9604 fi
9605fi
9606
9607
9608#
9609# Configure libtool & libltdl
9610#
9611# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009612enable_dlopen=yes
9613
9614
9615
9616case `pwd` in
9617 *\ * | *\ *)
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9619$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9620esac
9621
9622
9623
cristyda16f162011-02-19 23:52:17 +00009624macro_version='2.4'
9625macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639ltmain="$ac_aux_dir/ltmain.sh"
9640
cristy0c60a692010-11-04 01:09:47 +00009641# Backslashify metacharacters that are still active within
9642# double-quoted strings.
9643sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9644
9645# Same as above, but do not quote variable references.
9646double_quote_subst='s/\(["`\\]\)/\\\1/g'
9647
9648# Sed substitution to delay expansion of an escaped shell variable in a
9649# double_quote_subst'ed string.
9650delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9651
9652# Sed substitution to delay expansion of an escaped single quote.
9653delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9654
9655# Sed substitution to avoid accidental globbing in evaled expressions
9656no_glob_subst='s/\*/\\\*/g'
9657
cristy73bd4a52010-10-05 11:24:23 +00009658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9659$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009660if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009661 $as_echo_n "(cached) " >&6
9662else
9663 if test -n "$NM"; then
9664 # Let the user override the test.
9665 lt_cv_path_NM="$NM"
9666else
9667 lt_nm_to_check="${ac_tool_prefix}nm"
9668 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9669 lt_nm_to_check="$lt_nm_to_check nm"
9670 fi
9671 for lt_tmp_nm in $lt_nm_to_check; do
9672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9673 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9674 IFS="$lt_save_ifs"
9675 test -z "$ac_dir" && ac_dir=.
9676 tmp_nm="$ac_dir/$lt_tmp_nm"
9677 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9678 # Check to see if the nm accepts a BSD-compat flag.
9679 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9680 # nm: unknown option "B" ignored
9681 # Tru64's nm complains that /dev/null is an invalid object file
9682 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9683 */dev/null* | *'Invalid file or object type'*)
9684 lt_cv_path_NM="$tmp_nm -B"
9685 break
9686 ;;
9687 *)
9688 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9689 */dev/null*)
9690 lt_cv_path_NM="$tmp_nm -p"
9691 break
9692 ;;
9693 *)
9694 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9695 continue # so that we can try to find one that supports BSD flags
9696 ;;
9697 esac
9698 ;;
9699 esac
9700 fi
9701 done
9702 IFS="$lt_save_ifs"
9703 done
9704 : ${lt_cv_path_NM=no}
9705fi
9706fi
9707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9708$as_echo "$lt_cv_path_NM" >&6; }
9709if test "$lt_cv_path_NM" != "no"; then
9710 NM="$lt_cv_path_NM"
9711else
9712 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009713 if test -n "$DUMPBIN"; then :
9714 # Let the user override the test.
9715 else
9716 if test -n "$ac_tool_prefix"; then
9717 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009718 do
9719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9720set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009723if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009724 $as_echo_n "(cached) " >&6
9725else
9726 if test -n "$DUMPBIN"; then
9727 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9728else
9729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730for as_dir in $PATH
9731do
9732 IFS=$as_save_IFS
9733 test -z "$as_dir" && as_dir=.
9734 for ac_exec_ext in '' $ac_executable_extensions; do
9735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9736 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 break 2
9739 fi
9740done
9741 done
9742IFS=$as_save_IFS
9743
9744fi
9745fi
9746DUMPBIN=$ac_cv_prog_DUMPBIN
9747if test -n "$DUMPBIN"; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9749$as_echo "$DUMPBIN" >&6; }
9750else
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752$as_echo "no" >&6; }
9753fi
9754
9755
9756 test -n "$DUMPBIN" && break
9757 done
9758fi
9759if test -z "$DUMPBIN"; then
9760 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009761 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009762do
9763 # Extract the first word of "$ac_prog", so it can be a program name with args.
9764set dummy $ac_prog; ac_word=$2
9765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9766$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009767if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009768 $as_echo_n "(cached) " >&6
9769else
9770 if test -n "$ac_ct_DUMPBIN"; then
9771 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9772else
9773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774for as_dir in $PATH
9775do
9776 IFS=$as_save_IFS
9777 test -z "$as_dir" && as_dir=.
9778 for ac_exec_ext in '' $ac_executable_extensions; do
9779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9780 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9782 break 2
9783 fi
9784done
9785 done
9786IFS=$as_save_IFS
9787
9788fi
9789fi
9790ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9791if test -n "$ac_ct_DUMPBIN"; then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9793$as_echo "$ac_ct_DUMPBIN" >&6; }
9794else
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796$as_echo "no" >&6; }
9797fi
9798
9799
9800 test -n "$ac_ct_DUMPBIN" && break
9801done
9802
9803 if test "x$ac_ct_DUMPBIN" = x; then
9804 DUMPBIN=":"
9805 else
9806 case $cross_compiling:$ac_tool_warned in
9807yes:)
9808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9810ac_tool_warned=yes ;;
9811esac
9812 DUMPBIN=$ac_ct_DUMPBIN
9813 fi
9814fi
9815
cristy0c60a692010-11-04 01:09:47 +00009816 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9817 *COFF*)
9818 DUMPBIN="$DUMPBIN -symbols"
9819 ;;
9820 *)
9821 DUMPBIN=:
9822 ;;
9823 esac
9824 fi
cristy73bd4a52010-10-05 11:24:23 +00009825
9826 if test "$DUMPBIN" != ":"; then
9827 NM="$DUMPBIN"
9828 fi
9829fi
9830test -z "$NM" && NM=nm
9831
9832
9833
9834
9835
9836
9837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9838$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009839if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009840 $as_echo_n "(cached) " >&6
9841else
9842 lt_cv_nm_interface="BSD nm"
9843 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009844 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009845 (eval "$ac_compile" 2>conftest.err)
9846 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009847 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009848 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9849 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009850 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009851 cat conftest.out >&5
9852 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9853 lt_cv_nm_interface="MS dumpbin"
9854 fi
9855 rm -f conftest*
9856fi
9857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9858$as_echo "$lt_cv_nm_interface" >&6; }
9859
9860# find the maximum length of command line arguments
9861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9862$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009863if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009864 $as_echo_n "(cached) " >&6
9865else
9866 i=0
9867 teststring="ABCD"
9868
9869 case $build_os in
9870 msdosdjgpp*)
9871 # On DJGPP, this test can blow up pretty badly due to problems in libc
9872 # (any single argument exceeding 2000 bytes causes a buffer overrun
9873 # during glob expansion). Even if it were fixed, the result of this
9874 # check would be larger than it should be.
9875 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9876 ;;
9877
9878 gnu*)
9879 # Under GNU Hurd, this test is not required because there is
9880 # no limit to the length of command line arguments.
9881 # Libtool will interpret -1 as no limit whatsoever
9882 lt_cv_sys_max_cmd_len=-1;
9883 ;;
9884
9885 cygwin* | mingw* | cegcc*)
9886 # On Win9x/ME, this test blows up -- it succeeds, but takes
9887 # about 5 minutes as the teststring grows exponentially.
9888 # Worse, since 9x/ME are not pre-emptively multitasking,
9889 # you end up with a "frozen" computer, even though with patience
9890 # the test eventually succeeds (with a max line length of 256k).
9891 # Instead, let's just punt: use the minimum linelength reported by
9892 # all of the supported platforms: 8192 (on NT/2K/XP).
9893 lt_cv_sys_max_cmd_len=8192;
9894 ;;
9895
cristy0c60a692010-11-04 01:09:47 +00009896 mint*)
9897 # On MiNT this can take a long time and run out of memory.
9898 lt_cv_sys_max_cmd_len=8192;
9899 ;;
9900
cristy73bd4a52010-10-05 11:24:23 +00009901 amigaos*)
9902 # On AmigaOS with pdksh, this test takes hours, literally.
9903 # So we just punt and use a minimum line length of 8192.
9904 lt_cv_sys_max_cmd_len=8192;
9905 ;;
9906
9907 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9908 # This has been around since 386BSD, at least. Likely further.
9909 if test -x /sbin/sysctl; then
9910 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9911 elif test -x /usr/sbin/sysctl; then
9912 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9913 else
9914 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9915 fi
9916 # And add a safety zone
9917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9919 ;;
9920
9921 interix*)
9922 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9923 lt_cv_sys_max_cmd_len=196608
9924 ;;
9925
9926 osf*)
9927 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9928 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9929 # nice to cause kernel panics so lets avoid the loop below.
9930 # First set a reasonable default.
9931 lt_cv_sys_max_cmd_len=16384
9932 #
9933 if test -x /sbin/sysconfig; then
9934 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9935 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9936 esac
9937 fi
9938 ;;
9939 sco3.2v5*)
9940 lt_cv_sys_max_cmd_len=102400
9941 ;;
9942 sysv5* | sco5v6* | sysv4.2uw2*)
9943 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9944 if test -n "$kargmax"; then
9945 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9946 else
9947 lt_cv_sys_max_cmd_len=32768
9948 fi
9949 ;;
9950 *)
9951 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9952 if test -n "$lt_cv_sys_max_cmd_len"; then
9953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9955 else
9956 # Make teststring a little bigger before we do anything with it.
9957 # a 1K string should be a reasonable start.
9958 for i in 1 2 3 4 5 6 7 8 ; do
9959 teststring=$teststring$teststring
9960 done
9961 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9962 # If test is not a shell built-in, we'll probably end up computing a
9963 # maximum length that is only half of the actual maximum length, but
9964 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +00009965 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9966 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +00009967 test $i != 17 # 1/2 MB should be enough
9968 do
9969 i=`expr $i + 1`
9970 teststring=$teststring$teststring
9971 done
9972 # Only check the string length outside the loop.
9973 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9974 teststring=
9975 # Add a significant safety factor because C++ compilers can tack on
9976 # massive amounts of additional arguments before passing them to the
9977 # linker. It appears as though 1/2 is a usable value.
9978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9979 fi
9980 ;;
9981 esac
9982
9983fi
9984
9985if test -n $lt_cv_sys_max_cmd_len ; then
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9987$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9988else
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9990$as_echo "none" >&6; }
9991fi
9992max_cmd_len=$lt_cv_sys_max_cmd_len
9993
9994
9995
9996
9997
9998
9999: ${CP="cp -f"}
10000: ${MV="mv -f"}
10001: ${RM="rm -f"}
10002
10003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10004$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10005# Try some XSI features
10006xsi_shell=no
10007( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010008 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10009 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010010 && eval 'test $(( 1 + 1 )) -eq 2 \
10011 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10012 && xsi_shell=yes
10013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10014$as_echo "$xsi_shell" >&6; }
10015
10016
10017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10018$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10019lt_shell_append=no
10020( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10021 >/dev/null 2>&1 \
10022 && lt_shell_append=yes
10023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10024$as_echo "$lt_shell_append" >&6; }
10025
10026
10027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10028 lt_unset=unset
10029else
10030 lt_unset=false
10031fi
10032
10033
10034
10035
10036
10037# test EBCDIC or ASCII
10038case `echo X|tr X '\101'` in
10039 A) # ASCII based system
10040 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10041 lt_SP2NL='tr \040 \012'
10042 lt_NL2SP='tr \015\012 \040\040'
10043 ;;
10044 *) # EBCDIC based system
10045 lt_SP2NL='tr \100 \n'
10046 lt_NL2SP='tr \r\n \100\100'
10047 ;;
10048esac
10049
10050
10051
10052
10053
10054
10055
10056
10057
cristyda16f162011-02-19 23:52:17 +000010058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10059$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10060if ${lt_cv_to_host_file_cmd+:} false; then :
10061 $as_echo_n "(cached) " >&6
10062else
10063 case $host in
10064 *-*-mingw* )
10065 case $build in
10066 *-*-mingw* ) # actually msys
10067 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10068 ;;
10069 *-*-cygwin* )
10070 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10071 ;;
10072 * ) # otherwise, assume *nix
10073 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10074 ;;
10075 esac
10076 ;;
10077 *-*-cygwin* )
10078 case $build in
10079 *-*-mingw* ) # actually msys
10080 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10081 ;;
10082 *-*-cygwin* )
10083 lt_cv_to_host_file_cmd=func_convert_file_noop
10084 ;;
10085 * ) # otherwise, assume *nix
10086 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10087 ;;
10088 esac
10089 ;;
10090 * ) # unhandled hosts (and "normal" native builds)
10091 lt_cv_to_host_file_cmd=func_convert_file_noop
10092 ;;
10093esac
10094
10095fi
10096
10097to_host_file_cmd=$lt_cv_to_host_file_cmd
10098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10099$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10100
10101
10102
10103
10104
10105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10106$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10107if ${lt_cv_to_tool_file_cmd+:} false; then :
10108 $as_echo_n "(cached) " >&6
10109else
10110 #assume ordinary cross tools, or native build.
10111lt_cv_to_tool_file_cmd=func_convert_file_noop
10112case $host in
10113 *-*-mingw* )
10114 case $build in
10115 *-*-mingw* ) # actually msys
10116 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10117 ;;
10118 esac
10119 ;;
10120esac
10121
10122fi
10123
10124to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10126$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10127
10128
10129
10130
10131
cristy73bd4a52010-10-05 11:24:23 +000010132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10133$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010134if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010135 $as_echo_n "(cached) " >&6
10136else
10137 lt_cv_ld_reload_flag='-r'
10138fi
10139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10140$as_echo "$lt_cv_ld_reload_flag" >&6; }
10141reload_flag=$lt_cv_ld_reload_flag
10142case $reload_flag in
10143"" | " "*) ;;
10144*) reload_flag=" $reload_flag" ;;
10145esac
10146reload_cmds='$LD$reload_flag -o $output$reload_objs'
10147case $host_os in
cristyda16f162011-02-19 23:52:17 +000010148 cygwin* | mingw* | pw32* | cegcc*)
10149 if test "$GCC" != yes; then
10150 reload_cmds=false
10151 fi
10152 ;;
cristy73bd4a52010-10-05 11:24:23 +000010153 darwin*)
10154 if test "$GCC" = yes; then
10155 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10156 else
10157 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10158 fi
10159 ;;
10160esac
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170if test -n "$ac_tool_prefix"; then
10171 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10172set dummy ${ac_tool_prefix}objdump; ac_word=$2
10173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010175if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010176 $as_echo_n "(cached) " >&6
10177else
10178 if test -n "$OBJDUMP"; then
10179 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10180else
10181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182for as_dir in $PATH
10183do
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10188 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 break 2
10191 fi
10192done
10193 done
10194IFS=$as_save_IFS
10195
10196fi
10197fi
10198OBJDUMP=$ac_cv_prog_OBJDUMP
10199if test -n "$OBJDUMP"; then
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10201$as_echo "$OBJDUMP" >&6; }
10202else
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204$as_echo "no" >&6; }
10205fi
10206
10207
10208fi
10209if test -z "$ac_cv_prog_OBJDUMP"; then
10210 ac_ct_OBJDUMP=$OBJDUMP
10211 # Extract the first word of "objdump", so it can be a program name with args.
10212set dummy objdump; ac_word=$2
10213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10214$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010215if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010216 $as_echo_n "(cached) " >&6
10217else
10218 if test -n "$ac_ct_OBJDUMP"; then
10219 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10220else
10221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10222for as_dir in $PATH
10223do
10224 IFS=$as_save_IFS
10225 test -z "$as_dir" && as_dir=.
10226 for ac_exec_ext in '' $ac_executable_extensions; do
10227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10228 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10230 break 2
10231 fi
10232done
10233 done
10234IFS=$as_save_IFS
10235
10236fi
10237fi
10238ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10239if test -n "$ac_ct_OBJDUMP"; then
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10241$as_echo "$ac_ct_OBJDUMP" >&6; }
10242else
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10244$as_echo "no" >&6; }
10245fi
10246
10247 if test "x$ac_ct_OBJDUMP" = x; then
10248 OBJDUMP="false"
10249 else
10250 case $cross_compiling:$ac_tool_warned in
10251yes:)
10252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10254ac_tool_warned=yes ;;
10255esac
10256 OBJDUMP=$ac_ct_OBJDUMP
10257 fi
10258else
10259 OBJDUMP="$ac_cv_prog_OBJDUMP"
10260fi
10261
10262test -z "$OBJDUMP" && OBJDUMP=objdump
10263
10264
10265
10266
10267
10268
10269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10270$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010271if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010272 $as_echo_n "(cached) " >&6
10273else
10274 lt_cv_file_magic_cmd='$MAGIC_CMD'
10275lt_cv_file_magic_test_file=
10276lt_cv_deplibs_check_method='unknown'
10277# Need to set the preceding variable on all platforms that support
10278# interlibrary dependencies.
10279# 'none' -- dependencies not supported.
10280# `unknown' -- same as none, but documents that we really don't know.
10281# 'pass_all' -- all dependencies passed with no checks.
10282# 'test_compile' -- check by making test program.
10283# 'file_magic [[regex]]' -- check by looking for files in library path
10284# which responds to the $file_magic_cmd with a given extended regex.
10285# If you have `file' or equivalent on your system and you're not sure
10286# whether `pass_all' will *always* work, you probably want this one.
10287
10288case $host_os in
10289aix[4-9]*)
10290 lt_cv_deplibs_check_method=pass_all
10291 ;;
10292
10293beos*)
10294 lt_cv_deplibs_check_method=pass_all
10295 ;;
10296
10297bsdi[45]*)
10298 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10299 lt_cv_file_magic_cmd='/usr/bin/file -L'
10300 lt_cv_file_magic_test_file=/shlib/libc.so
10301 ;;
10302
10303cygwin*)
10304 # func_win32_libid is a shell function defined in ltmain.sh
10305 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10306 lt_cv_file_magic_cmd='func_win32_libid'
10307 ;;
10308
10309mingw* | pw32*)
10310 # Base MSYS/MinGW do not provide the 'file' command needed by
10311 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10312 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010313 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10314 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010315 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10316 lt_cv_file_magic_cmd='func_win32_libid'
10317 else
cristy0c60a692010-11-04 01:09:47 +000010318 # Keep this pattern in sync with the one in func_win32_libid.
10319 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 +000010320 lt_cv_file_magic_cmd='$OBJDUMP -f'
10321 fi
10322 ;;
10323
cristy0c60a692010-11-04 01:09:47 +000010324cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010325 # use the weaker test based on 'objdump'. See mingw*.
10326 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10327 lt_cv_file_magic_cmd='$OBJDUMP -f'
10328 ;;
10329
10330darwin* | rhapsody*)
10331 lt_cv_deplibs_check_method=pass_all
10332 ;;
10333
10334freebsd* | dragonfly*)
10335 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10336 case $host_cpu in
10337 i*86 )
10338 # Not sure whether the presence of OpenBSD here was a mistake.
10339 # Let's accept both of them until this is cleared up.
10340 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10341 lt_cv_file_magic_cmd=/usr/bin/file
10342 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10343 ;;
10344 esac
10345 else
10346 lt_cv_deplibs_check_method=pass_all
10347 fi
10348 ;;
10349
10350gnu*)
10351 lt_cv_deplibs_check_method=pass_all
10352 ;;
10353
cristy0c60a692010-11-04 01:09:47 +000010354haiku*)
10355 lt_cv_deplibs_check_method=pass_all
10356 ;;
10357
cristy73bd4a52010-10-05 11:24:23 +000010358hpux10.20* | hpux11*)
10359 lt_cv_file_magic_cmd=/usr/bin/file
10360 case $host_cpu in
10361 ia64*)
10362 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10363 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10364 ;;
10365 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010366 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 +000010367 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10368 ;;
10369 *)
cristy0c60a692010-11-04 01:09:47 +000010370 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 +000010371 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10372 ;;
10373 esac
10374 ;;
10375
10376interix[3-9]*)
10377 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10379 ;;
10380
10381irix5* | irix6* | nonstopux*)
10382 case $LD in
10383 *-32|*"-32 ") libmagic=32-bit;;
10384 *-n32|*"-n32 ") libmagic=N32;;
10385 *-64|*"-64 ") libmagic=64-bit;;
10386 *) libmagic=never-match;;
10387 esac
10388 lt_cv_deplibs_check_method=pass_all
10389 ;;
10390
10391# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010392linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010393 lt_cv_deplibs_check_method=pass_all
10394 ;;
10395
10396netbsd*)
10397 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10399 else
10400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10401 fi
10402 ;;
10403
10404newos6*)
10405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10406 lt_cv_file_magic_cmd=/usr/bin/file
10407 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10408 ;;
10409
10410*nto* | *qnx*)
10411 lt_cv_deplibs_check_method=pass_all
10412 ;;
10413
10414openbsd*)
10415 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10417 else
10418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10419 fi
10420 ;;
10421
10422osf3* | osf4* | osf5*)
10423 lt_cv_deplibs_check_method=pass_all
10424 ;;
10425
10426rdos*)
10427 lt_cv_deplibs_check_method=pass_all
10428 ;;
10429
10430solaris*)
10431 lt_cv_deplibs_check_method=pass_all
10432 ;;
10433
10434sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10435 lt_cv_deplibs_check_method=pass_all
10436 ;;
10437
10438sysv4 | sysv4.3*)
10439 case $host_vendor in
10440 motorola)
10441 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]'
10442 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10443 ;;
10444 ncr)
10445 lt_cv_deplibs_check_method=pass_all
10446 ;;
10447 sequent)
10448 lt_cv_file_magic_cmd='/bin/file'
10449 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10450 ;;
10451 sni)
10452 lt_cv_file_magic_cmd='/bin/file'
10453 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10454 lt_cv_file_magic_test_file=/lib/libc.so
10455 ;;
10456 siemens)
10457 lt_cv_deplibs_check_method=pass_all
10458 ;;
10459 pc)
10460 lt_cv_deplibs_check_method=pass_all
10461 ;;
10462 esac
10463 ;;
10464
10465tpf*)
10466 lt_cv_deplibs_check_method=pass_all
10467 ;;
10468esac
10469
10470fi
10471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10472$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010473
10474file_magic_glob=
10475want_nocaseglob=no
10476if test "$build" = "$host"; then
10477 case $host_os in
10478 mingw* | pw32*)
10479 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10480 want_nocaseglob=yes
10481 else
10482 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10483 fi
10484 ;;
10485 esac
10486fi
10487
cristy73bd4a52010-10-05 11:24:23 +000010488file_magic_cmd=$lt_cv_file_magic_cmd
10489deplibs_check_method=$lt_cv_deplibs_check_method
10490test -z "$deplibs_check_method" && deplibs_check_method=unknown
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
cristyda16f162011-02-19 23:52:17 +000010503
10504
10505
10506
10507
10508
10509
10510
10511
10512
cristy73bd4a52010-10-05 11:24:23 +000010513if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010514 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10515set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10517$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010518if ${ac_cv_prog_DLLTOOL+:} false; then :
10519 $as_echo_n "(cached) " >&6
10520else
10521 if test -n "$DLLTOOL"; then
10522 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10523else
10524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525for as_dir in $PATH
10526do
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10531 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 break 2
10534 fi
10535done
10536 done
10537IFS=$as_save_IFS
10538
10539fi
10540fi
10541DLLTOOL=$ac_cv_prog_DLLTOOL
10542if test -n "$DLLTOOL"; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10544$as_echo "$DLLTOOL" >&6; }
10545else
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547$as_echo "no" >&6; }
10548fi
10549
10550
10551fi
10552if test -z "$ac_cv_prog_DLLTOOL"; then
10553 ac_ct_DLLTOOL=$DLLTOOL
10554 # Extract the first word of "dlltool", so it can be a program name with args.
10555set dummy dlltool; ac_word=$2
10556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10557$as_echo_n "checking for $ac_word... " >&6; }
10558if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560else
10561 if test -n "$ac_ct_DLLTOOL"; then
10562 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10563else
10564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10565for as_dir in $PATH
10566do
10567 IFS=$as_save_IFS
10568 test -z "$as_dir" && as_dir=.
10569 for ac_exec_ext in '' $ac_executable_extensions; do
10570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10571 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10573 break 2
10574 fi
10575done
10576 done
10577IFS=$as_save_IFS
10578
10579fi
10580fi
10581ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10582if test -n "$ac_ct_DLLTOOL"; then
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10584$as_echo "$ac_ct_DLLTOOL" >&6; }
10585else
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10587$as_echo "no" >&6; }
10588fi
10589
10590 if test "x$ac_ct_DLLTOOL" = x; then
10591 DLLTOOL="false"
10592 else
10593 case $cross_compiling:$ac_tool_warned in
10594yes:)
10595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10597ac_tool_warned=yes ;;
10598esac
10599 DLLTOOL=$ac_ct_DLLTOOL
10600 fi
10601else
10602 DLLTOOL="$ac_cv_prog_DLLTOOL"
10603fi
10604
10605test -z "$DLLTOOL" && DLLTOOL=dlltool
10606
10607
10608
10609
10610
10611
10612
10613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10614$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10615if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10616 $as_echo_n "(cached) " >&6
10617else
10618 lt_cv_sharedlib_from_linklib_cmd='unknown'
10619
10620case $host_os in
10621cygwin* | mingw* | pw32* | cegcc*)
10622 # two different shell functions defined in ltmain.sh
10623 # decide which to use based on capabilities of $DLLTOOL
10624 case `$DLLTOOL --help 2>&1` in
10625 *--identify-strict*)
10626 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10627 ;;
10628 *)
10629 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10630 ;;
10631 esac
10632 ;;
10633*)
10634 # fallback: assume linklib IS sharedlib
10635 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10636 ;;
10637esac
10638
10639fi
10640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10641$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10642sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10643test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10644
10645
10646
10647
10648
10649
10650
10651if test -n "$ac_tool_prefix"; then
10652 for ac_prog in ar
10653 do
10654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10655set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10657$as_echo_n "checking for $ac_word... " >&6; }
10658if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010659 $as_echo_n "(cached) " >&6
10660else
10661 if test -n "$AR"; then
10662 ac_cv_prog_AR="$AR" # Let the user override the test.
10663else
10664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10665for as_dir in $PATH
10666do
10667 IFS=$as_save_IFS
10668 test -z "$as_dir" && as_dir=.
10669 for ac_exec_ext in '' $ac_executable_extensions; do
10670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristyda16f162011-02-19 23:52:17 +000010671 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10673 break 2
10674 fi
10675done
10676 done
10677IFS=$as_save_IFS
10678
10679fi
10680fi
10681AR=$ac_cv_prog_AR
10682if test -n "$AR"; then
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10684$as_echo "$AR" >&6; }
10685else
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687$as_echo "no" >&6; }
10688fi
10689
10690
cristyda16f162011-02-19 23:52:17 +000010691 test -n "$AR" && break
10692 done
cristy73bd4a52010-10-05 11:24:23 +000010693fi
cristyda16f162011-02-19 23:52:17 +000010694if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010695 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010696 for ac_prog in ar
10697do
10698 # Extract the first word of "$ac_prog", so it can be a program name with args.
10699set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10701$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010702if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010703 $as_echo_n "(cached) " >&6
10704else
10705 if test -n "$ac_ct_AR"; then
10706 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10707else
10708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10709for as_dir in $PATH
10710do
10711 IFS=$as_save_IFS
10712 test -z "$as_dir" && as_dir=.
10713 for ac_exec_ext in '' $ac_executable_extensions; do
10714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristyda16f162011-02-19 23:52:17 +000010715 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10717 break 2
10718 fi
10719done
10720 done
10721IFS=$as_save_IFS
10722
10723fi
10724fi
10725ac_ct_AR=$ac_cv_prog_ac_ct_AR
10726if test -n "$ac_ct_AR"; then
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10728$as_echo "$ac_ct_AR" >&6; }
10729else
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10731$as_echo "no" >&6; }
10732fi
10733
cristyda16f162011-02-19 23:52:17 +000010734
10735 test -n "$ac_ct_AR" && break
10736done
10737
cristy73bd4a52010-10-05 11:24:23 +000010738 if test "x$ac_ct_AR" = x; then
10739 AR="false"
10740 else
10741 case $cross_compiling:$ac_tool_warned in
10742yes:)
10743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10745ac_tool_warned=yes ;;
10746esac
10747 AR=$ac_ct_AR
10748 fi
cristy73bd4a52010-10-05 11:24:23 +000010749fi
10750
cristyda16f162011-02-19 23:52:17 +000010751: ${AR=ar}
10752: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
cristyda16f162011-02-19 23:52:17 +000010764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10765$as_echo_n "checking for archiver @FILE support... " >&6; }
10766if ${lt_cv_ar_at_file+:} false; then :
10767 $as_echo_n "(cached) " >&6
10768else
10769 lt_cv_ar_at_file=no
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771/* end confdefs.h. */
10772
10773int
10774main ()
10775{
10776
10777 ;
10778 return 0;
10779}
10780_ACEOF
10781if ac_fn_c_try_compile "$LINENO"; then :
10782 echo conftest.$ac_objext > conftest.lst
10783 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10785 (eval $lt_ar_try) 2>&5
10786 ac_status=$?
10787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10788 test $ac_status = 0; }
10789 if test "$ac_status" -eq 0; then
10790 # Ensure the archiver fails upon bogus file names.
10791 rm -f conftest.$ac_objext libconftest.a
10792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10793 (eval $lt_ar_try) 2>&5
10794 ac_status=$?
10795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10796 test $ac_status = 0; }
10797 if test "$ac_status" -ne 0; then
10798 lt_cv_ar_at_file=@
10799 fi
10800 fi
10801 rm -f conftest.* libconftest.a
10802
10803fi
10804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10805
10806fi
10807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10808$as_echo "$lt_cv_ar_at_file" >&6; }
10809
10810if test "x$lt_cv_ar_at_file" = xno; then
10811 archiver_list_spec=
10812else
10813 archiver_list_spec=$lt_cv_ar_at_file
10814fi
10815
10816
10817
10818
10819
10820
10821
cristy73bd4a52010-10-05 11:24:23 +000010822if test -n "$ac_tool_prefix"; then
10823 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10824set dummy ${ac_tool_prefix}strip; ac_word=$2
10825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010827if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010828 $as_echo_n "(cached) " >&6
10829else
10830 if test -n "$STRIP"; then
10831 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10832else
10833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834for as_dir in $PATH
10835do
10836 IFS=$as_save_IFS
10837 test -z "$as_dir" && as_dir=.
10838 for ac_exec_ext in '' $ac_executable_extensions; do
10839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10840 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10842 break 2
10843 fi
10844done
10845 done
10846IFS=$as_save_IFS
10847
10848fi
10849fi
10850STRIP=$ac_cv_prog_STRIP
10851if test -n "$STRIP"; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10853$as_echo "$STRIP" >&6; }
10854else
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856$as_echo "no" >&6; }
10857fi
10858
10859
10860fi
10861if test -z "$ac_cv_prog_STRIP"; then
10862 ac_ct_STRIP=$STRIP
10863 # Extract the first word of "strip", so it can be a program name with args.
10864set dummy strip; ac_word=$2
10865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10866$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010867if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010868 $as_echo_n "(cached) " >&6
10869else
10870 if test -n "$ac_ct_STRIP"; then
10871 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10872else
10873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10874for as_dir in $PATH
10875do
10876 IFS=$as_save_IFS
10877 test -z "$as_dir" && as_dir=.
10878 for ac_exec_ext in '' $ac_executable_extensions; do
10879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10880 ac_cv_prog_ac_ct_STRIP="strip"
10881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10882 break 2
10883 fi
10884done
10885 done
10886IFS=$as_save_IFS
10887
10888fi
10889fi
10890ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10891if test -n "$ac_ct_STRIP"; then
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10893$as_echo "$ac_ct_STRIP" >&6; }
10894else
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10896$as_echo "no" >&6; }
10897fi
10898
10899 if test "x$ac_ct_STRIP" = x; then
10900 STRIP=":"
10901 else
10902 case $cross_compiling:$ac_tool_warned in
10903yes:)
10904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10906ac_tool_warned=yes ;;
10907esac
10908 STRIP=$ac_ct_STRIP
10909 fi
10910else
10911 STRIP="$ac_cv_prog_STRIP"
10912fi
10913
10914test -z "$STRIP" && STRIP=:
10915
10916
10917
10918
10919
10920
10921if test -n "$ac_tool_prefix"; then
10922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10923set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010926if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010927 $as_echo_n "(cached) " >&6
10928else
10929 if test -n "$RANLIB"; then
10930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10931else
10932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933for as_dir in $PATH
10934do
10935 IFS=$as_save_IFS
10936 test -z "$as_dir" && as_dir=.
10937 for ac_exec_ext in '' $ac_executable_extensions; do
10938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10939 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10941 break 2
10942 fi
10943done
10944 done
10945IFS=$as_save_IFS
10946
10947fi
10948fi
10949RANLIB=$ac_cv_prog_RANLIB
10950if test -n "$RANLIB"; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10952$as_echo "$RANLIB" >&6; }
10953else
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955$as_echo "no" >&6; }
10956fi
10957
10958
10959fi
10960if test -z "$ac_cv_prog_RANLIB"; then
10961 ac_ct_RANLIB=$RANLIB
10962 # Extract the first word of "ranlib", so it can be a program name with args.
10963set dummy ranlib; ac_word=$2
10964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010966if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010967 $as_echo_n "(cached) " >&6
10968else
10969 if test -n "$ac_ct_RANLIB"; then
10970 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10971else
10972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973for as_dir in $PATH
10974do
10975 IFS=$as_save_IFS
10976 test -z "$as_dir" && as_dir=.
10977 for ac_exec_ext in '' $ac_executable_extensions; do
10978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10979 ac_cv_prog_ac_ct_RANLIB="ranlib"
10980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10981 break 2
10982 fi
10983done
10984 done
10985IFS=$as_save_IFS
10986
10987fi
10988fi
10989ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10990if test -n "$ac_ct_RANLIB"; then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10992$as_echo "$ac_ct_RANLIB" >&6; }
10993else
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995$as_echo "no" >&6; }
10996fi
10997
10998 if test "x$ac_ct_RANLIB" = x; then
10999 RANLIB=":"
11000 else
11001 case $cross_compiling:$ac_tool_warned in
11002yes:)
11003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11005ac_tool_warned=yes ;;
11006esac
11007 RANLIB=$ac_ct_RANLIB
11008 fi
11009else
11010 RANLIB="$ac_cv_prog_RANLIB"
11011fi
11012
11013test -z "$RANLIB" && RANLIB=:
11014
11015
11016
11017
11018
11019
11020# Determine commands to create old-style static archives.
11021old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11022old_postinstall_cmds='chmod 644 $oldlib'
11023old_postuninstall_cmds=
11024
11025if test -n "$RANLIB"; then
11026 case $host_os in
11027 openbsd*)
11028 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11029 ;;
11030 *)
11031 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11032 ;;
11033 esac
11034 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11035fi
11036
cristy0c60a692010-11-04 01:09:47 +000011037case $host_os in
11038 darwin*)
11039 lock_old_archive_extraction=yes ;;
11040 *)
11041 lock_old_archive_extraction=no ;;
11042esac
11043
11044
11045
11046
11047
11048
cristy73bd4a52010-10-05 11:24:23 +000011049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082# If no C compiler was specified, use CC.
11083LTCC=${LTCC-"$CC"}
11084
11085# If no C compiler flags were specified, use CFLAGS.
11086LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11087
11088# Allow CC to be a program name with arguments.
11089compiler=$CC
11090
11091
11092# Check for command to grab the raw symbol name followed by C symbol from nm.
11093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11094$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011095if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011096 $as_echo_n "(cached) " >&6
11097else
11098
11099# These are sane defaults that work on at least a few old systems.
11100# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11101
11102# Character class describing NM global symbol codes.
11103symcode='[BCDEGRST]'
11104
11105# Regexp to match symbols that can be accessed directly from C.
11106sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11107
11108# Define system-specific variables.
11109case $host_os in
11110aix*)
11111 symcode='[BCDT]'
11112 ;;
11113cygwin* | mingw* | pw32* | cegcc*)
11114 symcode='[ABCDGISTW]'
11115 ;;
11116hpux*)
11117 if test "$host_cpu" = ia64; then
11118 symcode='[ABCDEGRST]'
11119 fi
11120 ;;
11121irix* | nonstopux*)
11122 symcode='[BCDEGRST]'
11123 ;;
11124osf*)
11125 symcode='[BCDEGQRST]'
11126 ;;
11127solaris*)
11128 symcode='[BDRT]'
11129 ;;
11130sco3.2v5*)
11131 symcode='[DT]'
11132 ;;
11133sysv4.2uw2*)
11134 symcode='[DT]'
11135 ;;
11136sysv5* | sco5v6* | unixware* | OpenUNIX*)
11137 symcode='[ABDT]'
11138 ;;
11139sysv4)
11140 symcode='[DFNSTU]'
11141 ;;
11142esac
11143
11144# If we're using GNU nm, then use its standard symbol codes.
11145case `$NM -V 2>&1` in
11146*GNU* | *'with BFD'*)
11147 symcode='[ABCDGIRSTW]' ;;
11148esac
11149
11150# Transform an extracted symbol line into a proper C declaration.
11151# Some systems (esp. on ia64) link data and code symbols differently,
11152# so use this general approach.
11153lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11154
11155# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011156lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11157lt_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 +000011158
11159# Handle CRLF in mingw tool chain
11160opt_cr=
11161case $build_os in
11162mingw*)
11163 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11164 ;;
11165esac
11166
11167# Try without a prefix underscore, then with it.
11168for ac_symprfx in "" "_"; do
11169
11170 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11171 symxfrm="\\1 $ac_symprfx\\2 \\2"
11172
11173 # Write the raw and C identifiers.
11174 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11175 # Fake it for dumpbin and say T for any non-static function
11176 # and D for any global variable.
11177 # Also find C++ and __fastcall symbols from MSVC++,
11178 # which start with @ or ?.
11179 lt_cv_sys_global_symbol_pipe="$AWK '"\
11180" {last_section=section; section=\$ 3};"\
11181" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11182" \$ 0!~/External *\|/{next};"\
11183" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11184" {if(hide[section]) next};"\
11185" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11186" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11187" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11188" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11189" ' prfx=^$ac_symprfx"
11190 else
11191 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11192 fi
cristyda16f162011-02-19 23:52:17 +000011193 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011194
11195 # Check to see that the pipe works correctly.
11196 pipe_works=no
11197
11198 rm -f conftest*
11199 cat > conftest.$ac_ext <<_LT_EOF
11200#ifdef __cplusplus
11201extern "C" {
11202#endif
11203char nm_test_var;
11204void nm_test_func(void);
11205void nm_test_func(void){}
11206#ifdef __cplusplus
11207}
11208#endif
11209int main(){nm_test_var='a';nm_test_func();return(0);}
11210_LT_EOF
11211
11212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11213 (eval $ac_compile) 2>&5
11214 ac_status=$?
11215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11216 test $ac_status = 0; }; then
11217 # Now try to grab the symbols.
11218 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11220 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011221 ac_status=$?
11222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11223 test $ac_status = 0; } && test -s "$nlist"; then
11224 # Try sorting and uniquifying the output.
11225 if sort "$nlist" | uniq > "$nlist"T; then
11226 mv -f "$nlist"T "$nlist"
11227 else
11228 rm -f "$nlist"T
11229 fi
11230
11231 # Make sure that we snagged all the symbols we need.
11232 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11233 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11234 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011235/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11236#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11237/* DATA imports from DLLs on WIN32 con't be const, because runtime
11238 relocations are performed -- see ld's documentation on pseudo-relocs. */
11239# define LT_DLSYM_CONST
11240#elif defined(__osf__)
11241/* This system does not cope well with relocations in const data. */
11242# define LT_DLSYM_CONST
11243#else
11244# define LT_DLSYM_CONST const
11245#endif
11246
cristy73bd4a52010-10-05 11:24:23 +000011247#ifdef __cplusplus
11248extern "C" {
11249#endif
11250
11251_LT_EOF
11252 # Now generate the symbol file.
11253 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11254
11255 cat <<_LT_EOF >> conftest.$ac_ext
11256
11257/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011258LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011259 const char *name;
11260 void *address;
11261}
11262lt__PROGRAM__LTX_preloaded_symbols[] =
11263{
11264 { "@PROGRAM@", (void *) 0 },
11265_LT_EOF
11266 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11267 cat <<\_LT_EOF >> conftest.$ac_ext
11268 {0, (void *) 0}
11269};
11270
11271/* This works around a problem in FreeBSD linker */
11272#ifdef FREEBSD_WORKAROUND
11273static const void *lt_preloaded_setup() {
11274 return lt__PROGRAM__LTX_preloaded_symbols;
11275}
11276#endif
11277
11278#ifdef __cplusplus
11279}
11280#endif
11281_LT_EOF
11282 # Now try linking the two files.
11283 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011284 lt_globsym_save_LIBS=$LIBS
11285 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011286 LIBS="conftstm.$ac_objext"
11287 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11289 (eval $ac_link) 2>&5
11290 ac_status=$?
11291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11292 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11293 pipe_works=yes
11294 fi
cristyda16f162011-02-19 23:52:17 +000011295 LIBS=$lt_globsym_save_LIBS
11296 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011297 else
11298 echo "cannot find nm_test_func in $nlist" >&5
11299 fi
11300 else
11301 echo "cannot find nm_test_var in $nlist" >&5
11302 fi
11303 else
11304 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11305 fi
11306 else
11307 echo "$progname: failed program was:" >&5
11308 cat conftest.$ac_ext >&5
11309 fi
11310 rm -rf conftest* conftst*
11311
11312 # Do not use the global_symbol_pipe unless it works.
11313 if test "$pipe_works" = yes; then
11314 break
11315 else
11316 lt_cv_sys_global_symbol_pipe=
11317 fi
11318done
11319
11320fi
11321
11322if test -z "$lt_cv_sys_global_symbol_pipe"; then
11323 lt_cv_sys_global_symbol_to_cdecl=
11324fi
11325if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11327$as_echo "failed" >&6; }
11328else
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11330$as_echo "ok" >&6; }
11331fi
11332
cristyda16f162011-02-19 23:52:17 +000011333# Response file support.
11334if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11335 nm_file_list_spec='@'
11336elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11337 nm_file_list_spec='@'
11338fi
cristy73bd4a52010-10-05 11:24:23 +000011339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
cristyda16f162011-02-19 23:52:17 +000011360
11361
11362
11363
11364
11365
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11367$as_echo_n "checking for sysroot... " >&6; }
11368
11369# Check whether --with-sysroot was given.
11370if test "${with_sysroot+set}" = set; then :
11371 withval=$with_sysroot;
11372else
11373 with_sysroot=no
11374fi
11375
11376
11377lt_sysroot=
11378case ${with_sysroot} in #(
11379 yes)
11380 if test "$GCC" = yes; then
11381 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11382 fi
11383 ;; #(
11384 /*)
11385 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11386 ;; #(
11387 no|'')
11388 ;; #(
11389 *)
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11391$as_echo "${with_sysroot}" >&6; }
11392 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11393 ;;
11394esac
11395
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11397$as_echo "${lt_sysroot:-no}" >&6; }
11398
11399
11400
11401
11402
cristy73bd4a52010-10-05 11:24:23 +000011403# Check whether --enable-libtool-lock was given.
11404if test "${enable_libtool_lock+set}" = set; then :
11405 enableval=$enable_libtool_lock;
11406fi
11407
11408test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11409
11410# Some flags need to be propagated to the compiler or linker for good
11411# libtool support.
11412case $host in
11413ia64-*-hpux*)
11414 # Find out which ABI we are using.
11415 echo 'int i;' > conftest.$ac_ext
11416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11417 (eval $ac_compile) 2>&5
11418 ac_status=$?
11419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11420 test $ac_status = 0; }; then
11421 case `/usr/bin/file conftest.$ac_objext` in
11422 *ELF-32*)
11423 HPUX_IA64_MODE="32"
11424 ;;
11425 *ELF-64*)
11426 HPUX_IA64_MODE="64"
11427 ;;
11428 esac
11429 fi
11430 rm -rf conftest*
11431 ;;
11432*-*-irix6*)
11433 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011434 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11436 (eval $ac_compile) 2>&5
11437 ac_status=$?
11438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11439 test $ac_status = 0; }; then
11440 if test "$lt_cv_prog_gnu_ld" = yes; then
11441 case `/usr/bin/file conftest.$ac_objext` in
11442 *32-bit*)
11443 LD="${LD-ld} -melf32bsmip"
11444 ;;
11445 *N32*)
11446 LD="${LD-ld} -melf32bmipn32"
11447 ;;
11448 *64-bit*)
11449 LD="${LD-ld} -melf64bmip"
11450 ;;
11451 esac
11452 else
11453 case `/usr/bin/file conftest.$ac_objext` in
11454 *32-bit*)
11455 LD="${LD-ld} -32"
11456 ;;
11457 *N32*)
11458 LD="${LD-ld} -n32"
11459 ;;
11460 *64-bit*)
11461 LD="${LD-ld} -64"
11462 ;;
11463 esac
11464 fi
11465 fi
11466 rm -rf conftest*
11467 ;;
11468
11469x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11470s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11471 # Find out which ABI we are using.
11472 echo 'int i;' > conftest.$ac_ext
11473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11474 (eval $ac_compile) 2>&5
11475 ac_status=$?
11476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11477 test $ac_status = 0; }; then
11478 case `/usr/bin/file conftest.o` in
11479 *32-bit*)
11480 case $host in
11481 x86_64-*kfreebsd*-gnu)
11482 LD="${LD-ld} -m elf_i386_fbsd"
11483 ;;
11484 x86_64-*linux*)
11485 LD="${LD-ld} -m elf_i386"
11486 ;;
11487 ppc64-*linux*|powerpc64-*linux*)
11488 LD="${LD-ld} -m elf32ppclinux"
11489 ;;
11490 s390x-*linux*)
11491 LD="${LD-ld} -m elf_s390"
11492 ;;
11493 sparc64-*linux*)
11494 LD="${LD-ld} -m elf32_sparc"
11495 ;;
11496 esac
11497 ;;
11498 *64-bit*)
11499 case $host in
11500 x86_64-*kfreebsd*-gnu)
11501 LD="${LD-ld} -m elf_x86_64_fbsd"
11502 ;;
11503 x86_64-*linux*)
11504 LD="${LD-ld} -m elf_x86_64"
11505 ;;
11506 ppc*-*linux*|powerpc*-*linux*)
11507 LD="${LD-ld} -m elf64ppc"
11508 ;;
11509 s390*-*linux*|s390*-*tpf*)
11510 LD="${LD-ld} -m elf64_s390"
11511 ;;
11512 sparc*-*linux*)
11513 LD="${LD-ld} -m elf64_sparc"
11514 ;;
11515 esac
11516 ;;
11517 esac
11518 fi
11519 rm -rf conftest*
11520 ;;
11521
11522*-*-sco3.2v5*)
11523 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11524 SAVE_CFLAGS="$CFLAGS"
11525 CFLAGS="$CFLAGS -belf"
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11527$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011528if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011529 $as_echo_n "(cached) " >&6
11530else
11531 ac_ext=c
11532ac_cpp='$CPP $CPPFLAGS'
11533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11535ac_compiler_gnu=$ac_cv_c_compiler_gnu
11536
11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538/* end confdefs.h. */
11539
11540int
11541main ()
11542{
11543
11544 ;
11545 return 0;
11546}
11547_ACEOF
11548if ac_fn_c_try_link "$LINENO"; then :
11549 lt_cv_cc_needs_belf=yes
11550else
11551 lt_cv_cc_needs_belf=no
11552fi
11553rm -f core conftest.err conftest.$ac_objext \
11554 conftest$ac_exeext conftest.$ac_ext
11555 ac_ext=c
11556ac_cpp='$CPP $CPPFLAGS'
11557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11559ac_compiler_gnu=$ac_cv_c_compiler_gnu
11560
11561fi
11562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11563$as_echo "$lt_cv_cc_needs_belf" >&6; }
11564 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11565 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11566 CFLAGS="$SAVE_CFLAGS"
11567 fi
11568 ;;
11569sparc*-*solaris*)
11570 # Find out which ABI we are using.
11571 echo 'int i;' > conftest.$ac_ext
11572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11573 (eval $ac_compile) 2>&5
11574 ac_status=$?
11575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11576 test $ac_status = 0; }; then
11577 case `/usr/bin/file conftest.o` in
11578 *64-bit*)
11579 case $lt_cv_prog_gnu_ld in
11580 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11581 *)
11582 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11583 LD="${LD-ld} -64"
11584 fi
11585 ;;
11586 esac
11587 ;;
11588 esac
11589 fi
11590 rm -rf conftest*
11591 ;;
11592esac
11593
11594need_locks="$enable_libtool_lock"
11595
cristyda16f162011-02-19 23:52:17 +000011596if test -n "$ac_tool_prefix"; then
11597 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11598set dummy ${ac_tool_prefix}mt; ac_word=$2
11599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11600$as_echo_n "checking for $ac_word... " >&6; }
11601if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11602 $as_echo_n "(cached) " >&6
11603else
11604 if test -n "$MANIFEST_TOOL"; then
11605 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11606else
11607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608for as_dir in $PATH
11609do
11610 IFS=$as_save_IFS
11611 test -z "$as_dir" && as_dir=.
11612 for ac_exec_ext in '' $ac_executable_extensions; do
11613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11614 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11616 break 2
11617 fi
11618done
11619 done
11620IFS=$as_save_IFS
11621
11622fi
11623fi
11624MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11625if test -n "$MANIFEST_TOOL"; then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11627$as_echo "$MANIFEST_TOOL" >&6; }
11628else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630$as_echo "no" >&6; }
11631fi
11632
11633
11634fi
11635if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11636 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11637 # Extract the first word of "mt", so it can be a program name with args.
11638set dummy mt; ac_word=$2
11639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11640$as_echo_n "checking for $ac_word... " >&6; }
11641if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643else
11644 if test -n "$ac_ct_MANIFEST_TOOL"; then
11645 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11646else
11647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648for as_dir in $PATH
11649do
11650 IFS=$as_save_IFS
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
11653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11654 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11656 break 2
11657 fi
11658done
11659 done
11660IFS=$as_save_IFS
11661
11662fi
11663fi
11664ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11665if test -n "$ac_ct_MANIFEST_TOOL"; then
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11667$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11668else
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670$as_echo "no" >&6; }
11671fi
11672
11673 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11674 MANIFEST_TOOL=":"
11675 else
11676 case $cross_compiling:$ac_tool_warned in
11677yes:)
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11680ac_tool_warned=yes ;;
11681esac
11682 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11683 fi
11684else
11685 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11686fi
11687
11688test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11690$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11691if ${lt_cv_path_mainfest_tool+:} false; then :
11692 $as_echo_n "(cached) " >&6
11693else
11694 lt_cv_path_mainfest_tool=no
11695 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11696 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11697 cat conftest.err >&5
11698 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11699 lt_cv_path_mainfest_tool=yes
11700 fi
11701 rm -f conftest*
11702fi
11703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11704$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11705if test "x$lt_cv_path_mainfest_tool" != xyes; then
11706 MANIFEST_TOOL=:
11707fi
11708
11709
11710
11711
11712
cristy73bd4a52010-10-05 11:24:23 +000011713
11714 case $host_os in
11715 rhapsody* | darwin*)
11716 if test -n "$ac_tool_prefix"; then
11717 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11718set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11720$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011721if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011722 $as_echo_n "(cached) " >&6
11723else
11724 if test -n "$DSYMUTIL"; then
11725 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11726else
11727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11728for as_dir in $PATH
11729do
11730 IFS=$as_save_IFS
11731 test -z "$as_dir" && as_dir=.
11732 for ac_exec_ext in '' $ac_executable_extensions; do
11733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11734 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11736 break 2
11737 fi
11738done
11739 done
11740IFS=$as_save_IFS
11741
11742fi
11743fi
11744DSYMUTIL=$ac_cv_prog_DSYMUTIL
11745if test -n "$DSYMUTIL"; then
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11747$as_echo "$DSYMUTIL" >&6; }
11748else
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750$as_echo "no" >&6; }
11751fi
11752
11753
11754fi
11755if test -z "$ac_cv_prog_DSYMUTIL"; then
11756 ac_ct_DSYMUTIL=$DSYMUTIL
11757 # Extract the first word of "dsymutil", so it can be a program name with args.
11758set dummy dsymutil; ac_word=$2
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11760$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011761if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011762 $as_echo_n "(cached) " >&6
11763else
11764 if test -n "$ac_ct_DSYMUTIL"; then
11765 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11766else
11767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11768for as_dir in $PATH
11769do
11770 IFS=$as_save_IFS
11771 test -z "$as_dir" && as_dir=.
11772 for ac_exec_ext in '' $ac_executable_extensions; do
11773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11774 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11776 break 2
11777 fi
11778done
11779 done
11780IFS=$as_save_IFS
11781
11782fi
11783fi
11784ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11785if test -n "$ac_ct_DSYMUTIL"; then
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11787$as_echo "$ac_ct_DSYMUTIL" >&6; }
11788else
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790$as_echo "no" >&6; }
11791fi
11792
11793 if test "x$ac_ct_DSYMUTIL" = x; then
11794 DSYMUTIL=":"
11795 else
11796 case $cross_compiling:$ac_tool_warned in
11797yes:)
11798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11800ac_tool_warned=yes ;;
11801esac
11802 DSYMUTIL=$ac_ct_DSYMUTIL
11803 fi
11804else
11805 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11806fi
11807
11808 if test -n "$ac_tool_prefix"; then
11809 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11810set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011813if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011814 $as_echo_n "(cached) " >&6
11815else
11816 if test -n "$NMEDIT"; then
11817 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11818else
11819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820for as_dir in $PATH
11821do
11822 IFS=$as_save_IFS
11823 test -z "$as_dir" && as_dir=.
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11826 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11828 break 2
11829 fi
11830done
11831 done
11832IFS=$as_save_IFS
11833
11834fi
11835fi
11836NMEDIT=$ac_cv_prog_NMEDIT
11837if test -n "$NMEDIT"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11839$as_echo "$NMEDIT" >&6; }
11840else
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842$as_echo "no" >&6; }
11843fi
11844
11845
11846fi
11847if test -z "$ac_cv_prog_NMEDIT"; then
11848 ac_ct_NMEDIT=$NMEDIT
11849 # Extract the first word of "nmedit", so it can be a program name with args.
11850set dummy nmedit; ac_word=$2
11851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11852$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011853if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011854 $as_echo_n "(cached) " >&6
11855else
11856 if test -n "$ac_ct_NMEDIT"; then
11857 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11858else
11859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11860for as_dir in $PATH
11861do
11862 IFS=$as_save_IFS
11863 test -z "$as_dir" && as_dir=.
11864 for ac_exec_ext in '' $ac_executable_extensions; do
11865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11866 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11868 break 2
11869 fi
11870done
11871 done
11872IFS=$as_save_IFS
11873
11874fi
11875fi
11876ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11877if test -n "$ac_ct_NMEDIT"; then
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11879$as_echo "$ac_ct_NMEDIT" >&6; }
11880else
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882$as_echo "no" >&6; }
11883fi
11884
11885 if test "x$ac_ct_NMEDIT" = x; then
11886 NMEDIT=":"
11887 else
11888 case $cross_compiling:$ac_tool_warned in
11889yes:)
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11892ac_tool_warned=yes ;;
11893esac
11894 NMEDIT=$ac_ct_NMEDIT
11895 fi
11896else
11897 NMEDIT="$ac_cv_prog_NMEDIT"
11898fi
11899
11900 if test -n "$ac_tool_prefix"; then
11901 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11902set dummy ${ac_tool_prefix}lipo; ac_word=$2
11903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11904$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011905if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011906 $as_echo_n "(cached) " >&6
11907else
11908 if test -n "$LIPO"; then
11909 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11910else
11911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912for as_dir in $PATH
11913do
11914 IFS=$as_save_IFS
11915 test -z "$as_dir" && as_dir=.
11916 for ac_exec_ext in '' $ac_executable_extensions; do
11917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11918 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11920 break 2
11921 fi
11922done
11923 done
11924IFS=$as_save_IFS
11925
11926fi
11927fi
11928LIPO=$ac_cv_prog_LIPO
11929if test -n "$LIPO"; then
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11931$as_echo "$LIPO" >&6; }
11932else
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934$as_echo "no" >&6; }
11935fi
11936
11937
11938fi
11939if test -z "$ac_cv_prog_LIPO"; then
11940 ac_ct_LIPO=$LIPO
11941 # Extract the first word of "lipo", so it can be a program name with args.
11942set dummy lipo; ac_word=$2
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011945if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011946 $as_echo_n "(cached) " >&6
11947else
11948 if test -n "$ac_ct_LIPO"; then
11949 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11950else
11951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952for as_dir in $PATH
11953do
11954 IFS=$as_save_IFS
11955 test -z "$as_dir" && as_dir=.
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11958 ac_cv_prog_ac_ct_LIPO="lipo"
11959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960 break 2
11961 fi
11962done
11963 done
11964IFS=$as_save_IFS
11965
11966fi
11967fi
11968ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11969if test -n "$ac_ct_LIPO"; then
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11971$as_echo "$ac_ct_LIPO" >&6; }
11972else
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974$as_echo "no" >&6; }
11975fi
11976
11977 if test "x$ac_ct_LIPO" = x; then
11978 LIPO=":"
11979 else
11980 case $cross_compiling:$ac_tool_warned in
11981yes:)
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11984ac_tool_warned=yes ;;
11985esac
11986 LIPO=$ac_ct_LIPO
11987 fi
11988else
11989 LIPO="$ac_cv_prog_LIPO"
11990fi
11991
11992 if test -n "$ac_tool_prefix"; then
11993 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11994set dummy ${ac_tool_prefix}otool; ac_word=$2
11995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11996$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011997if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011998 $as_echo_n "(cached) " >&6
11999else
12000 if test -n "$OTOOL"; then
12001 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12002else
12003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004for as_dir in $PATH
12005do
12006 IFS=$as_save_IFS
12007 test -z "$as_dir" && as_dir=.
12008 for ac_exec_ext in '' $ac_executable_extensions; do
12009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12010 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12012 break 2
12013 fi
12014done
12015 done
12016IFS=$as_save_IFS
12017
12018fi
12019fi
12020OTOOL=$ac_cv_prog_OTOOL
12021if test -n "$OTOOL"; then
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12023$as_echo "$OTOOL" >&6; }
12024else
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026$as_echo "no" >&6; }
12027fi
12028
12029
12030fi
12031if test -z "$ac_cv_prog_OTOOL"; then
12032 ac_ct_OTOOL=$OTOOL
12033 # Extract the first word of "otool", so it can be a program name with args.
12034set dummy otool; ac_word=$2
12035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12036$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012037if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012038 $as_echo_n "(cached) " >&6
12039else
12040 if test -n "$ac_ct_OTOOL"; then
12041 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12042else
12043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044for as_dir in $PATH
12045do
12046 IFS=$as_save_IFS
12047 test -z "$as_dir" && as_dir=.
12048 for ac_exec_ext in '' $ac_executable_extensions; do
12049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12050 ac_cv_prog_ac_ct_OTOOL="otool"
12051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12052 break 2
12053 fi
12054done
12055 done
12056IFS=$as_save_IFS
12057
12058fi
12059fi
12060ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12061if test -n "$ac_ct_OTOOL"; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12063$as_echo "$ac_ct_OTOOL" >&6; }
12064else
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066$as_echo "no" >&6; }
12067fi
12068
12069 if test "x$ac_ct_OTOOL" = x; then
12070 OTOOL=":"
12071 else
12072 case $cross_compiling:$ac_tool_warned in
12073yes:)
12074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12076ac_tool_warned=yes ;;
12077esac
12078 OTOOL=$ac_ct_OTOOL
12079 fi
12080else
12081 OTOOL="$ac_cv_prog_OTOOL"
12082fi
12083
12084 if test -n "$ac_tool_prefix"; then
12085 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12086set dummy ${ac_tool_prefix}otool64; ac_word=$2
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012089if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012090 $as_echo_n "(cached) " >&6
12091else
12092 if test -n "$OTOOL64"; then
12093 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12094else
12095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096for as_dir in $PATH
12097do
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12102 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104 break 2
12105 fi
12106done
12107 done
12108IFS=$as_save_IFS
12109
12110fi
12111fi
12112OTOOL64=$ac_cv_prog_OTOOL64
12113if test -n "$OTOOL64"; then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12115$as_echo "$OTOOL64" >&6; }
12116else
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118$as_echo "no" >&6; }
12119fi
12120
12121
12122fi
12123if test -z "$ac_cv_prog_OTOOL64"; then
12124 ac_ct_OTOOL64=$OTOOL64
12125 # Extract the first word of "otool64", so it can be a program name with args.
12126set dummy otool64; ac_word=$2
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12128$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012129if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012130 $as_echo_n "(cached) " >&6
12131else
12132 if test -n "$ac_ct_OTOOL64"; then
12133 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12134else
12135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136for as_dir in $PATH
12137do
12138 IFS=$as_save_IFS
12139 test -z "$as_dir" && as_dir=.
12140 for ac_exec_ext in '' $ac_executable_extensions; do
12141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12142 ac_cv_prog_ac_ct_OTOOL64="otool64"
12143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12144 break 2
12145 fi
12146done
12147 done
12148IFS=$as_save_IFS
12149
12150fi
12151fi
12152ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12153if test -n "$ac_ct_OTOOL64"; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12155$as_echo "$ac_ct_OTOOL64" >&6; }
12156else
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158$as_echo "no" >&6; }
12159fi
12160
12161 if test "x$ac_ct_OTOOL64" = x; then
12162 OTOOL64=":"
12163 else
12164 case $cross_compiling:$ac_tool_warned in
12165yes:)
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12168ac_tool_warned=yes ;;
12169esac
12170 OTOOL64=$ac_ct_OTOOL64
12171 fi
12172else
12173 OTOOL64="$ac_cv_prog_OTOOL64"
12174fi
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12203$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012204if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012205 $as_echo_n "(cached) " >&6
12206else
12207 lt_cv_apple_cc_single_mod=no
12208 if test -z "${LT_MULTI_MODULE}"; then
12209 # By default we will add the -single_module flag. You can override
12210 # by either setting the environment variable LT_MULTI_MODULE
12211 # non-empty at configure time, or by adding -multi_module to the
12212 # link flags.
12213 rm -rf libconftest.dylib*
12214 echo "int foo(void){return 1;}" > conftest.c
12215 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12216-dynamiclib -Wl,-single_module conftest.c" >&5
12217 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12218 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12219 _lt_result=$?
12220 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12221 lt_cv_apple_cc_single_mod=yes
12222 else
12223 cat conftest.err >&5
12224 fi
12225 rm -rf libconftest.dylib*
12226 rm -f conftest.*
12227 fi
12228fi
12229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12230$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12232$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012233if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012234 $as_echo_n "(cached) " >&6
12235else
12236 lt_cv_ld_exported_symbols_list=no
12237 save_LDFLAGS=$LDFLAGS
12238 echo "_main" > conftest.sym
12239 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241/* end confdefs.h. */
12242
12243int
12244main ()
12245{
12246
12247 ;
12248 return 0;
12249}
12250_ACEOF
12251if ac_fn_c_try_link "$LINENO"; then :
12252 lt_cv_ld_exported_symbols_list=yes
12253else
12254 lt_cv_ld_exported_symbols_list=no
12255fi
12256rm -f core conftest.err conftest.$ac_objext \
12257 conftest$ac_exeext conftest.$ac_ext
12258 LDFLAGS="$save_LDFLAGS"
12259
12260fi
12261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12262$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12264$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012265if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012266 $as_echo_n "(cached) " >&6
12267else
12268 lt_cv_ld_force_load=no
12269 cat > conftest.c << _LT_EOF
12270int forced_loaded() { return 2;}
12271_LT_EOF
12272 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12273 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12274 echo "$AR cru libconftest.a conftest.o" >&5
12275 $AR cru libconftest.a conftest.o 2>&5
12276 echo "$RANLIB libconftest.a" >&5
12277 $RANLIB libconftest.a 2>&5
12278 cat > conftest.c << _LT_EOF
12279int main() { return 0;}
12280_LT_EOF
12281 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12282 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12283 _lt_result=$?
12284 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12285 lt_cv_ld_force_load=yes
12286 else
12287 cat conftest.err >&5
12288 fi
12289 rm -f conftest.err libconftest.a conftest conftest.c
12290 rm -rf conftest.dSYM
12291
12292fi
12293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12294$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012295 case $host_os in
12296 rhapsody* | darwin1.[012])
12297 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12298 darwin1.*)
12299 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12300 darwin*) # darwin 5.x on
12301 # if running on 10.5 or later, the deployment target defaults
12302 # to the OS version, if on x86, and 10.4, the deployment
12303 # target defaults to 10.4. Don't you love it?
12304 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12305 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12306 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12307 10.[012]*)
12308 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12309 10.*)
12310 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12311 esac
12312 ;;
12313 esac
12314 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12315 _lt_dar_single_mod='$single_module'
12316 fi
12317 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12318 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12319 else
12320 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12321 fi
cristy0c60a692010-11-04 01:09:47 +000012322 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012323 _lt_dsymutil='~$DSYMUTIL $lib || :'
12324 else
12325 _lt_dsymutil=
12326 fi
12327 ;;
12328 esac
12329
12330for ac_header in dlfcn.h
12331do :
12332 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12333"
cristyda16f162011-02-19 23:52:17 +000012334if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012335 cat >>confdefs.h <<_ACEOF
12336#define HAVE_DLFCN_H 1
12337_ACEOF
12338
12339fi
12340
12341done
12342
12343
12344
cristy73bd4a52010-10-05 11:24:23 +000012345
cristyda16f162011-02-19 23:52:17 +000012346func_stripname_cnf ()
12347{
12348 case ${2} in
12349 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12350 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12351 esac
12352} # func_stripname_cnf
12353
12354
12355
cristy73bd4a52010-10-05 11:24:23 +000012356
12357
12358# Set options
12359enable_win32_dll=yes
12360
12361case $host in
cristy0c60a692010-11-04 01:09:47 +000012362*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012363 if test -n "$ac_tool_prefix"; then
12364 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12365set dummy ${ac_tool_prefix}as; ac_word=$2
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012368if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012369 $as_echo_n "(cached) " >&6
12370else
12371 if test -n "$AS"; then
12372 ac_cv_prog_AS="$AS" # Let the user override the test.
12373else
12374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375for as_dir in $PATH
12376do
12377 IFS=$as_save_IFS
12378 test -z "$as_dir" && as_dir=.
12379 for ac_exec_ext in '' $ac_executable_extensions; do
12380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12381 ac_cv_prog_AS="${ac_tool_prefix}as"
12382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12383 break 2
12384 fi
12385done
12386 done
12387IFS=$as_save_IFS
12388
12389fi
12390fi
12391AS=$ac_cv_prog_AS
12392if test -n "$AS"; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12394$as_echo "$AS" >&6; }
12395else
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397$as_echo "no" >&6; }
12398fi
12399
12400
12401fi
12402if test -z "$ac_cv_prog_AS"; then
12403 ac_ct_AS=$AS
12404 # Extract the first word of "as", so it can be a program name with args.
12405set dummy as; ac_word=$2
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12407$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012408if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012409 $as_echo_n "(cached) " >&6
12410else
12411 if test -n "$ac_ct_AS"; then
12412 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12413else
12414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12415for as_dir in $PATH
12416do
12417 IFS=$as_save_IFS
12418 test -z "$as_dir" && as_dir=.
12419 for ac_exec_ext in '' $ac_executable_extensions; do
12420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12421 ac_cv_prog_ac_ct_AS="as"
12422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12423 break 2
12424 fi
12425done
12426 done
12427IFS=$as_save_IFS
12428
12429fi
12430fi
12431ac_ct_AS=$ac_cv_prog_ac_ct_AS
12432if test -n "$ac_ct_AS"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12434$as_echo "$ac_ct_AS" >&6; }
12435else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437$as_echo "no" >&6; }
12438fi
12439
12440 if test "x$ac_ct_AS" = x; then
12441 AS="false"
12442 else
12443 case $cross_compiling:$ac_tool_warned in
12444yes:)
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12447ac_tool_warned=yes ;;
12448esac
12449 AS=$ac_ct_AS
12450 fi
12451else
12452 AS="$ac_cv_prog_AS"
12453fi
12454
12455 if test -n "$ac_tool_prefix"; then
12456 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12457set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12459$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012460if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012461 $as_echo_n "(cached) " >&6
12462else
12463 if test -n "$DLLTOOL"; then
12464 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12465else
12466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467for as_dir in $PATH
12468do
12469 IFS=$as_save_IFS
12470 test -z "$as_dir" && as_dir=.
12471 for ac_exec_ext in '' $ac_executable_extensions; do
12472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12473 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12475 break 2
12476 fi
12477done
12478 done
12479IFS=$as_save_IFS
12480
12481fi
12482fi
12483DLLTOOL=$ac_cv_prog_DLLTOOL
12484if test -n "$DLLTOOL"; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12486$as_echo "$DLLTOOL" >&6; }
12487else
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489$as_echo "no" >&6; }
12490fi
12491
12492
12493fi
12494if test -z "$ac_cv_prog_DLLTOOL"; then
12495 ac_ct_DLLTOOL=$DLLTOOL
12496 # Extract the first word of "dlltool", so it can be a program name with args.
12497set dummy dlltool; ac_word=$2
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12499$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012500if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012501 $as_echo_n "(cached) " >&6
12502else
12503 if test -n "$ac_ct_DLLTOOL"; then
12504 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12505else
12506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12507for as_dir in $PATH
12508do
12509 IFS=$as_save_IFS
12510 test -z "$as_dir" && as_dir=.
12511 for ac_exec_ext in '' $ac_executable_extensions; do
12512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12513 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12515 break 2
12516 fi
12517done
12518 done
12519IFS=$as_save_IFS
12520
12521fi
12522fi
12523ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12524if test -n "$ac_ct_DLLTOOL"; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12526$as_echo "$ac_ct_DLLTOOL" >&6; }
12527else
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529$as_echo "no" >&6; }
12530fi
12531
12532 if test "x$ac_ct_DLLTOOL" = x; then
12533 DLLTOOL="false"
12534 else
12535 case $cross_compiling:$ac_tool_warned in
12536yes:)
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12539ac_tool_warned=yes ;;
12540esac
12541 DLLTOOL=$ac_ct_DLLTOOL
12542 fi
12543else
12544 DLLTOOL="$ac_cv_prog_DLLTOOL"
12545fi
12546
12547 if test -n "$ac_tool_prefix"; then
12548 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12549set dummy ${ac_tool_prefix}objdump; ac_word=$2
12550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12551$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012552if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012553 $as_echo_n "(cached) " >&6
12554else
12555 if test -n "$OBJDUMP"; then
12556 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12557else
12558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559for as_dir in $PATH
12560do
12561 IFS=$as_save_IFS
12562 test -z "$as_dir" && as_dir=.
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12565 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 break 2
12568 fi
12569done
12570 done
12571IFS=$as_save_IFS
12572
12573fi
12574fi
12575OBJDUMP=$ac_cv_prog_OBJDUMP
12576if test -n "$OBJDUMP"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12578$as_echo "$OBJDUMP" >&6; }
12579else
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581$as_echo "no" >&6; }
12582fi
12583
12584
12585fi
12586if test -z "$ac_cv_prog_OBJDUMP"; then
12587 ac_ct_OBJDUMP=$OBJDUMP
12588 # Extract the first word of "objdump", so it can be a program name with args.
12589set dummy objdump; ac_word=$2
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12591$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012592if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012593 $as_echo_n "(cached) " >&6
12594else
12595 if test -n "$ac_ct_OBJDUMP"; then
12596 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12597else
12598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599for as_dir in $PATH
12600do
12601 IFS=$as_save_IFS
12602 test -z "$as_dir" && as_dir=.
12603 for ac_exec_ext in '' $ac_executable_extensions; do
12604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12605 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12607 break 2
12608 fi
12609done
12610 done
12611IFS=$as_save_IFS
12612
12613fi
12614fi
12615ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12616if test -n "$ac_ct_OBJDUMP"; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12618$as_echo "$ac_ct_OBJDUMP" >&6; }
12619else
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621$as_echo "no" >&6; }
12622fi
12623
12624 if test "x$ac_ct_OBJDUMP" = x; then
12625 OBJDUMP="false"
12626 else
12627 case $cross_compiling:$ac_tool_warned in
12628yes:)
12629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12631ac_tool_warned=yes ;;
12632esac
12633 OBJDUMP=$ac_ct_OBJDUMP
12634 fi
12635else
12636 OBJDUMP="$ac_cv_prog_OBJDUMP"
12637fi
12638
12639 ;;
12640esac
12641
12642test -z "$AS" && AS=as
12643
12644
12645
12646
12647
12648test -z "$DLLTOOL" && DLLTOOL=dlltool
12649
12650
12651
12652
12653
12654test -z "$OBJDUMP" && OBJDUMP=objdump
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664 # Check whether --enable-shared was given.
12665if test "${enable_shared+set}" = set; then :
12666 enableval=$enable_shared; p=${PACKAGE-default}
12667 case $enableval in
12668 yes) enable_shared=yes ;;
12669 no) enable_shared=no ;;
12670 *)
12671 enable_shared=no
12672 # Look at the argument we got. We use all the common list separators.
12673 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12674 for pkg in $enableval; do
12675 IFS="$lt_save_ifs"
12676 if test "X$pkg" = "X$p"; then
12677 enable_shared=yes
12678 fi
12679 done
12680 IFS="$lt_save_ifs"
12681 ;;
12682 esac
12683else
12684 enable_shared=yes
12685fi
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695 # Check whether --enable-static was given.
12696if test "${enable_static+set}" = set; then :
12697 enableval=$enable_static; p=${PACKAGE-default}
12698 case $enableval in
12699 yes) enable_static=yes ;;
12700 no) enable_static=no ;;
12701 *)
12702 enable_static=no
12703 # Look at the argument we got. We use all the common list separators.
12704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12705 for pkg in $enableval; do
12706 IFS="$lt_save_ifs"
12707 if test "X$pkg" = "X$p"; then
12708 enable_static=yes
12709 fi
12710 done
12711 IFS="$lt_save_ifs"
12712 ;;
12713 esac
12714else
12715 enable_static=yes
12716fi
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727# Check whether --with-pic was given.
12728if test "${with_pic+set}" = set; then :
12729 withval=$with_pic; pic_mode="$withval"
12730else
12731 pic_mode=default
12732fi
12733
12734
12735test -z "$pic_mode" && pic_mode=default
12736
12737
12738
12739
12740
12741
12742
12743 # Check whether --enable-fast-install was given.
12744if test "${enable_fast_install+set}" = set; then :
12745 enableval=$enable_fast_install; p=${PACKAGE-default}
12746 case $enableval in
12747 yes) enable_fast_install=yes ;;
12748 no) enable_fast_install=no ;;
12749 *)
12750 enable_fast_install=no
12751 # Look at the argument we got. We use all the common list separators.
12752 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12753 for pkg in $enableval; do
12754 IFS="$lt_save_ifs"
12755 if test "X$pkg" = "X$p"; then
12756 enable_fast_install=yes
12757 fi
12758 done
12759 IFS="$lt_save_ifs"
12760 ;;
12761 esac
12762else
12763 enable_fast_install=yes
12764fi
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776# This can be used to rebuild libtool when needed
12777LIBTOOL_DEPS="$ltmain"
12778
12779# Always use our own libtool.
12780LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
cristy0c60a692010-11-04 01:09:47 +000012806
cristy73bd4a52010-10-05 11:24:23 +000012807test -z "$LN_S" && LN_S="ln -s"
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822if test -n "${ZSH_VERSION+set}" ; then
12823 setopt NO_GLOB_SUBST
12824fi
12825
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12827$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012828if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012829 $as_echo_n "(cached) " >&6
12830else
12831 rm -f .libs 2>/dev/null
12832mkdir .libs 2>/dev/null
12833if test -d .libs; then
12834 lt_cv_objdir=.libs
12835else
12836 # MS-DOS does not allow filenames that begin with a dot.
12837 lt_cv_objdir=_libs
12838fi
12839rmdir .libs 2>/dev/null
12840fi
12841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12842$as_echo "$lt_cv_objdir" >&6; }
12843objdir=$lt_cv_objdir
12844
12845
12846
12847
12848
12849cat >>confdefs.h <<_ACEOF
12850#define LT_OBJDIR "$lt_cv_objdir/"
12851_ACEOF
12852
12853
12854
12855
cristy73bd4a52010-10-05 11:24:23 +000012856case $host_os in
12857aix3*)
12858 # AIX sometimes has problems with the GCC collect2 program. For some
12859 # reason, if we set the COLLECT_NAMES environment variable, the problems
12860 # vanish in a puff of smoke.
12861 if test "X${COLLECT_NAMES+set}" != Xset; then
12862 COLLECT_NAMES=
12863 export COLLECT_NAMES
12864 fi
12865 ;;
12866esac
12867
cristy73bd4a52010-10-05 11:24:23 +000012868# Global variables:
12869ofile=libtool
12870can_build_shared=yes
12871
12872# All known linkers require a `.a' archive for static linking (except MSVC,
12873# which needs '.lib').
12874libext=a
12875
12876with_gnu_ld="$lt_cv_prog_gnu_ld"
12877
12878old_CC="$CC"
12879old_CFLAGS="$CFLAGS"
12880
12881# Set sane defaults for various variables
12882test -z "$CC" && CC=cc
12883test -z "$LTCC" && LTCC=$CC
12884test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12885test -z "$LD" && LD=ld
12886test -z "$ac_objext" && ac_objext=o
12887
12888for cc_temp in $compiler""; do
12889 case $cc_temp in
12890 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12891 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12892 \-*) ;;
12893 *) break;;
12894 esac
12895done
cristy0c60a692010-11-04 01:09:47 +000012896cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012897
12898
12899# Only perform the check for file, if the check method requires it
12900test -z "$MAGIC_CMD" && MAGIC_CMD=file
12901case $deplibs_check_method in
12902file_magic*)
12903 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12905$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012906if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012907 $as_echo_n "(cached) " >&6
12908else
12909 case $MAGIC_CMD in
12910[\\/*] | ?:[\\/]*)
12911 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12912 ;;
12913*)
12914 lt_save_MAGIC_CMD="$MAGIC_CMD"
12915 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12916 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12917 for ac_dir in $ac_dummy; do
12918 IFS="$lt_save_ifs"
12919 test -z "$ac_dir" && ac_dir=.
12920 if test -f $ac_dir/${ac_tool_prefix}file; then
12921 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12922 if test -n "$file_magic_test_file"; then
12923 case $deplibs_check_method in
12924 "file_magic "*)
12925 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12927 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12928 $EGREP "$file_magic_regex" > /dev/null; then
12929 :
12930 else
12931 cat <<_LT_EOF 1>&2
12932
12933*** Warning: the command libtool uses to detect shared libraries,
12934*** $file_magic_cmd, produces output that libtool cannot recognize.
12935*** The result is that libtool may fail to recognize shared libraries
12936*** as such. This will affect the creation of libtool libraries that
12937*** depend on shared libraries, but programs linked with such libtool
12938*** libraries will work regardless of this problem. Nevertheless, you
12939*** may want to report the problem to your system manager and/or to
12940*** bug-libtool@gnu.org
12941
12942_LT_EOF
12943 fi ;;
12944 esac
12945 fi
12946 break
12947 fi
12948 done
12949 IFS="$lt_save_ifs"
12950 MAGIC_CMD="$lt_save_MAGIC_CMD"
12951 ;;
12952esac
12953fi
12954
12955MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12956if test -n "$MAGIC_CMD"; then
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12958$as_echo "$MAGIC_CMD" >&6; }
12959else
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12961$as_echo "no" >&6; }
12962fi
12963
12964
12965
12966
12967
12968if test -z "$lt_cv_path_MAGIC_CMD"; then
12969 if test -n "$ac_tool_prefix"; then
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12971$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012972if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012973 $as_echo_n "(cached) " >&6
12974else
12975 case $MAGIC_CMD in
12976[\\/*] | ?:[\\/]*)
12977 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12978 ;;
12979*)
12980 lt_save_MAGIC_CMD="$MAGIC_CMD"
12981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12982 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12983 for ac_dir in $ac_dummy; do
12984 IFS="$lt_save_ifs"
12985 test -z "$ac_dir" && ac_dir=.
12986 if test -f $ac_dir/file; then
12987 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12988 if test -n "$file_magic_test_file"; then
12989 case $deplibs_check_method in
12990 "file_magic "*)
12991 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12993 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12994 $EGREP "$file_magic_regex" > /dev/null; then
12995 :
12996 else
12997 cat <<_LT_EOF 1>&2
12998
12999*** Warning: the command libtool uses to detect shared libraries,
13000*** $file_magic_cmd, produces output that libtool cannot recognize.
13001*** The result is that libtool may fail to recognize shared libraries
13002*** as such. This will affect the creation of libtool libraries that
13003*** depend on shared libraries, but programs linked with such libtool
13004*** libraries will work regardless of this problem. Nevertheless, you
13005*** may want to report the problem to your system manager and/or to
13006*** bug-libtool@gnu.org
13007
13008_LT_EOF
13009 fi ;;
13010 esac
13011 fi
13012 break
13013 fi
13014 done
13015 IFS="$lt_save_ifs"
13016 MAGIC_CMD="$lt_save_MAGIC_CMD"
13017 ;;
13018esac
13019fi
13020
13021MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13022if test -n "$MAGIC_CMD"; then
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13024$as_echo "$MAGIC_CMD" >&6; }
13025else
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027$as_echo "no" >&6; }
13028fi
13029
13030
13031 else
13032 MAGIC_CMD=:
13033 fi
13034fi
13035
13036 fi
13037 ;;
13038esac
13039
13040# Use C for the default configuration in the libtool script
13041
13042lt_save_CC="$CC"
13043ac_ext=c
13044ac_cpp='$CPP $CPPFLAGS'
13045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13047ac_compiler_gnu=$ac_cv_c_compiler_gnu
13048
13049
13050# Source file extension for C test sources.
13051ac_ext=c
13052
13053# Object file extension for compiled C test sources.
13054objext=o
13055objext=$objext
13056
13057# Code to be used in simple compile tests
13058lt_simple_compile_test_code="int some_variable = 0;"
13059
13060# Code to be used in simple link tests
13061lt_simple_link_test_code='int main(){return(0);}'
13062
13063
13064
13065
13066
13067
13068
13069# If no C compiler was specified, use CC.
13070LTCC=${LTCC-"$CC"}
13071
13072# If no C compiler flags were specified, use CFLAGS.
13073LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13074
13075# Allow CC to be a program name with arguments.
13076compiler=$CC
13077
13078# Save the default compiler, since it gets overwritten when the other
13079# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13080compiler_DEFAULT=$CC
13081
13082# save warnings/boilerplate of simple test code
13083ac_outfile=conftest.$ac_objext
13084echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13085eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13086_lt_compiler_boilerplate=`cat conftest.err`
13087$RM conftest*
13088
13089ac_outfile=conftest.$ac_objext
13090echo "$lt_simple_link_test_code" >conftest.$ac_ext
13091eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13092_lt_linker_boilerplate=`cat conftest.err`
13093$RM -r conftest*
13094
13095
13096## CAVEAT EMPTOR:
13097## There is no encapsulation within the following macros, do not change
13098## the running order or otherwise move them around unless you know exactly
13099## what you are doing...
13100if test -n "$compiler"; then
13101
13102lt_prog_compiler_no_builtin_flag=
13103
13104if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013105 case $cc_basename in
13106 nvcc*)
13107 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13108 *)
13109 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13110 esac
cristy73bd4a52010-10-05 11:24:23 +000013111
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13113$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013114if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013115 $as_echo_n "(cached) " >&6
13116else
13117 lt_cv_prog_compiler_rtti_exceptions=no
13118 ac_outfile=conftest.$ac_objext
13119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13120 lt_compiler_flag="-fno-rtti -fno-exceptions"
13121 # Insert the option either (1) after the last *FLAGS variable, or
13122 # (2) before a word containing "conftest.", or (3) at the end.
13123 # Note that $ac_compile itself does not contain backslashes and begins
13124 # with a dollar sign (not a hyphen), so the echo should work correctly.
13125 # The option is referenced via a variable to avoid confusing sed.
13126 lt_compile=`echo "$ac_compile" | $SED \
13127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13129 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013130 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013131 (eval "$lt_compile" 2>conftest.err)
13132 ac_status=$?
13133 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013135 if (exit $ac_status) && test -s "$ac_outfile"; then
13136 # The compiler can only warn and ignore the option if not recognized
13137 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013138 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13140 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13141 lt_cv_prog_compiler_rtti_exceptions=yes
13142 fi
13143 fi
13144 $RM conftest*
13145
13146fi
13147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13148$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13149
13150if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13151 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13152else
13153 :
13154fi
13155
13156fi
13157
13158
13159
13160
13161
13162
13163 lt_prog_compiler_wl=
13164lt_prog_compiler_pic=
13165lt_prog_compiler_static=
13166
cristy73bd4a52010-10-05 11:24:23 +000013167
13168 if test "$GCC" = yes; then
13169 lt_prog_compiler_wl='-Wl,'
13170 lt_prog_compiler_static='-static'
13171
13172 case $host_os in
13173 aix*)
13174 # All AIX code is PIC.
13175 if test "$host_cpu" = ia64; then
13176 # AIX 5 now supports IA64 processor
13177 lt_prog_compiler_static='-Bstatic'
13178 fi
13179 ;;
13180
13181 amigaos*)
13182 case $host_cpu in
13183 powerpc)
13184 # see comment about AmigaOS4 .so support
13185 lt_prog_compiler_pic='-fPIC'
13186 ;;
13187 m68k)
13188 # FIXME: we need at least 68020 code to build shared libraries, but
13189 # adding the `-m68020' flag to GCC prevents building anything better,
13190 # like `-m68040'.
13191 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13192 ;;
13193 esac
13194 ;;
13195
13196 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13197 # PIC is the default for these OSes.
13198 ;;
13199
13200 mingw* | cygwin* | pw32* | os2* | cegcc*)
13201 # This hack is so that the source file can tell whether it is being
13202 # built for inclusion in a dll (and should export symbols for example).
13203 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13204 # (--disable-auto-import) libraries
13205 lt_prog_compiler_pic='-DDLL_EXPORT'
13206 ;;
13207
13208 darwin* | rhapsody*)
13209 # PIC is the default on this platform
13210 # Common symbols not allowed in MH_DYLIB files
13211 lt_prog_compiler_pic='-fno-common'
13212 ;;
13213
cristy0c60a692010-11-04 01:09:47 +000013214 haiku*)
13215 # PIC is the default for Haiku.
13216 # The "-static" flag exists, but is broken.
13217 lt_prog_compiler_static=
13218 ;;
13219
cristy73bd4a52010-10-05 11:24:23 +000013220 hpux*)
13221 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13222 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13223 # sets the default TLS model and affects inlining.
13224 case $host_cpu in
13225 hppa*64*)
13226 # +Z the default
13227 ;;
13228 *)
13229 lt_prog_compiler_pic='-fPIC'
13230 ;;
13231 esac
13232 ;;
13233
13234 interix[3-9]*)
13235 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13236 # Instead, we relocate shared libraries at runtime.
13237 ;;
13238
13239 msdosdjgpp*)
13240 # Just because we use GCC doesn't mean we suddenly get shared libraries
13241 # on systems that don't support them.
13242 lt_prog_compiler_can_build_shared=no
13243 enable_shared=no
13244 ;;
13245
13246 *nto* | *qnx*)
13247 # QNX uses GNU C++, but need to define -shared option too, otherwise
13248 # it will coredump.
13249 lt_prog_compiler_pic='-fPIC -shared'
13250 ;;
13251
13252 sysv4*MP*)
13253 if test -d /usr/nec; then
13254 lt_prog_compiler_pic=-Kconform_pic
13255 fi
13256 ;;
13257
13258 *)
13259 lt_prog_compiler_pic='-fPIC'
13260 ;;
13261 esac
cristy0c60a692010-11-04 01:09:47 +000013262
13263 case $cc_basename in
13264 nvcc*) # Cuda Compiler Driver 2.2
13265 lt_prog_compiler_wl='-Xlinker '
13266 lt_prog_compiler_pic='-Xcompiler -fPIC'
13267 ;;
13268 esac
cristy73bd4a52010-10-05 11:24:23 +000013269 else
13270 # PORTME Check for flag to pass linker flags through the system compiler.
13271 case $host_os in
13272 aix*)
13273 lt_prog_compiler_wl='-Wl,'
13274 if test "$host_cpu" = ia64; then
13275 # AIX 5 now supports IA64 processor
13276 lt_prog_compiler_static='-Bstatic'
13277 else
13278 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13279 fi
13280 ;;
13281
13282 mingw* | cygwin* | pw32* | os2* | cegcc*)
13283 # This hack is so that the source file can tell whether it is being
13284 # built for inclusion in a dll (and should export symbols for example).
13285 lt_prog_compiler_pic='-DDLL_EXPORT'
13286 ;;
13287
13288 hpux9* | hpux10* | hpux11*)
13289 lt_prog_compiler_wl='-Wl,'
13290 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13291 # not for PA HP-UX.
13292 case $host_cpu in
13293 hppa*64*|ia64*)
13294 # +Z the default
13295 ;;
13296 *)
13297 lt_prog_compiler_pic='+Z'
13298 ;;
13299 esac
13300 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13301 lt_prog_compiler_static='${wl}-a ${wl}archive'
13302 ;;
13303
13304 irix5* | irix6* | nonstopux*)
13305 lt_prog_compiler_wl='-Wl,'
13306 # PIC (with -KPIC) is the default.
13307 lt_prog_compiler_static='-non_shared'
13308 ;;
13309
cristy0c60a692010-11-04 01:09:47 +000013310 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013311 case $cc_basename in
13312 # old Intel for x86_64 which still supported -KPIC.
13313 ecc*)
13314 lt_prog_compiler_wl='-Wl,'
13315 lt_prog_compiler_pic='-KPIC'
13316 lt_prog_compiler_static='-static'
13317 ;;
13318 # icc used to be incompatible with GCC.
13319 # ICC 10 doesn't accept -KPIC any more.
13320 icc* | ifort*)
13321 lt_prog_compiler_wl='-Wl,'
13322 lt_prog_compiler_pic='-fPIC'
13323 lt_prog_compiler_static='-static'
13324 ;;
13325 # Lahey Fortran 8.1.
13326 lf95*)
13327 lt_prog_compiler_wl='-Wl,'
13328 lt_prog_compiler_pic='--shared'
13329 lt_prog_compiler_static='--static'
13330 ;;
cristyda16f162011-02-19 23:52:17 +000013331 nagfor*)
13332 # NAG Fortran compiler
13333 lt_prog_compiler_wl='-Wl,-Wl,,'
13334 lt_prog_compiler_pic='-PIC'
13335 lt_prog_compiler_static='-Bstatic'
13336 ;;
cristy0c60a692010-11-04 01:09:47 +000013337 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013338 # Portland Group compilers (*not* the Pentium gcc compiler,
13339 # which looks to be a dead project)
13340 lt_prog_compiler_wl='-Wl,'
13341 lt_prog_compiler_pic='-fpic'
13342 lt_prog_compiler_static='-Bstatic'
13343 ;;
13344 ccc*)
13345 lt_prog_compiler_wl='-Wl,'
13346 # All Alpha code is PIC.
13347 lt_prog_compiler_static='-non_shared'
13348 ;;
cristy0c60a692010-11-04 01:09:47 +000013349 xl* | bgxl* | bgf* | mpixl*)
13350 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013351 lt_prog_compiler_wl='-Wl,'
13352 lt_prog_compiler_pic='-qpic'
13353 lt_prog_compiler_static='-qstaticlink'
13354 ;;
13355 *)
13356 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013357 *Sun\ F* | *Sun*Fortran*)
13358 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13359 lt_prog_compiler_pic='-KPIC'
13360 lt_prog_compiler_static='-Bstatic'
13361 lt_prog_compiler_wl=''
13362 ;;
cristy73bd4a52010-10-05 11:24:23 +000013363 *Sun\ C*)
13364 # Sun C 5.9
13365 lt_prog_compiler_pic='-KPIC'
13366 lt_prog_compiler_static='-Bstatic'
13367 lt_prog_compiler_wl='-Wl,'
13368 ;;
cristy73bd4a52010-10-05 11:24:23 +000013369 esac
13370 ;;
13371 esac
13372 ;;
13373
13374 newsos6)
13375 lt_prog_compiler_pic='-KPIC'
13376 lt_prog_compiler_static='-Bstatic'
13377 ;;
13378
13379 *nto* | *qnx*)
13380 # QNX uses GNU C++, but need to define -shared option too, otherwise
13381 # it will coredump.
13382 lt_prog_compiler_pic='-fPIC -shared'
13383 ;;
13384
13385 osf3* | osf4* | osf5*)
13386 lt_prog_compiler_wl='-Wl,'
13387 # All OSF/1 code is PIC.
13388 lt_prog_compiler_static='-non_shared'
13389 ;;
13390
13391 rdos*)
13392 lt_prog_compiler_static='-non_shared'
13393 ;;
13394
13395 solaris*)
13396 lt_prog_compiler_pic='-KPIC'
13397 lt_prog_compiler_static='-Bstatic'
13398 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013399 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013400 lt_prog_compiler_wl='-Qoption ld ';;
13401 *)
13402 lt_prog_compiler_wl='-Wl,';;
13403 esac
13404 ;;
13405
13406 sunos4*)
13407 lt_prog_compiler_wl='-Qoption ld '
13408 lt_prog_compiler_pic='-PIC'
13409 lt_prog_compiler_static='-Bstatic'
13410 ;;
13411
13412 sysv4 | sysv4.2uw2* | sysv4.3*)
13413 lt_prog_compiler_wl='-Wl,'
13414 lt_prog_compiler_pic='-KPIC'
13415 lt_prog_compiler_static='-Bstatic'
13416 ;;
13417
13418 sysv4*MP*)
13419 if test -d /usr/nec ;then
13420 lt_prog_compiler_pic='-Kconform_pic'
13421 lt_prog_compiler_static='-Bstatic'
13422 fi
13423 ;;
13424
13425 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13426 lt_prog_compiler_wl='-Wl,'
13427 lt_prog_compiler_pic='-KPIC'
13428 lt_prog_compiler_static='-Bstatic'
13429 ;;
13430
13431 unicos*)
13432 lt_prog_compiler_wl='-Wl,'
13433 lt_prog_compiler_can_build_shared=no
13434 ;;
13435
13436 uts4*)
13437 lt_prog_compiler_pic='-pic'
13438 lt_prog_compiler_static='-Bstatic'
13439 ;;
13440
13441 *)
13442 lt_prog_compiler_can_build_shared=no
13443 ;;
13444 esac
13445 fi
13446
13447case $host_os in
13448 # For platforms which do not support PIC, -DPIC is meaningless:
13449 *djgpp*)
13450 lt_prog_compiler_pic=
13451 ;;
13452 *)
13453 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13454 ;;
13455esac
cristy73bd4a52010-10-05 11:24:23 +000013456
cristyda16f162011-02-19 23:52:17 +000013457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13458$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13459if ${lt_cv_prog_compiler_pic+:} false; then :
13460 $as_echo_n "(cached) " >&6
13461else
13462 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13463fi
13464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13465$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13466lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013467
13468#
13469# Check to make sure the PIC flag actually works.
13470#
13471if test -n "$lt_prog_compiler_pic"; then
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13473$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013474if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013475 $as_echo_n "(cached) " >&6
13476else
13477 lt_cv_prog_compiler_pic_works=no
13478 ac_outfile=conftest.$ac_objext
13479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13480 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13481 # Insert the option either (1) after the last *FLAGS variable, or
13482 # (2) before a word containing "conftest.", or (3) at the end.
13483 # Note that $ac_compile itself does not contain backslashes and begins
13484 # with a dollar sign (not a hyphen), so the echo should work correctly.
13485 # The option is referenced via a variable to avoid confusing sed.
13486 lt_compile=`echo "$ac_compile" | $SED \
13487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13489 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013491 (eval "$lt_compile" 2>conftest.err)
13492 ac_status=$?
13493 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013495 if (exit $ac_status) && test -s "$ac_outfile"; then
13496 # The compiler can only warn and ignore the option if not recognized
13497 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13501 lt_cv_prog_compiler_pic_works=yes
13502 fi
13503 fi
13504 $RM conftest*
13505
13506fi
13507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13508$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13509
13510if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13511 case $lt_prog_compiler_pic in
13512 "" | " "*) ;;
13513 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13514 esac
13515else
13516 lt_prog_compiler_pic=
13517 lt_prog_compiler_can_build_shared=no
13518fi
13519
13520fi
13521
13522
13523
13524
13525
13526
cristyda16f162011-02-19 23:52:17 +000013527
13528
13529
13530
13531
cristy73bd4a52010-10-05 11:24:23 +000013532#
13533# Check to make sure the static flag actually works.
13534#
13535wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13537$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013538if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013539 $as_echo_n "(cached) " >&6
13540else
13541 lt_cv_prog_compiler_static_works=no
13542 save_LDFLAGS="$LDFLAGS"
13543 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13544 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13545 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13546 # The linker can only warn and ignore the option if not recognized
13547 # So say no if there are warnings
13548 if test -s conftest.err; then
13549 # Append any errors to the config.log.
13550 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013551 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13553 if diff conftest.exp conftest.er2 >/dev/null; then
13554 lt_cv_prog_compiler_static_works=yes
13555 fi
13556 else
13557 lt_cv_prog_compiler_static_works=yes
13558 fi
13559 fi
13560 $RM -r conftest*
13561 LDFLAGS="$save_LDFLAGS"
13562
13563fi
13564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13565$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13566
13567if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13568 :
13569else
13570 lt_prog_compiler_static=
13571fi
13572
13573
13574
13575
13576
13577
13578
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13580$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013581if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013582 $as_echo_n "(cached) " >&6
13583else
13584 lt_cv_prog_compiler_c_o=no
13585 $RM -r conftest 2>/dev/null
13586 mkdir conftest
13587 cd conftest
13588 mkdir out
13589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13590
13591 lt_compiler_flag="-o out/conftest2.$ac_objext"
13592 # Insert the option either (1) after the last *FLAGS variable, or
13593 # (2) before a word containing "conftest.", or (3) at the end.
13594 # Note that $ac_compile itself does not contain backslashes and begins
13595 # with a dollar sign (not a hyphen), so the echo should work correctly.
13596 lt_compile=`echo "$ac_compile" | $SED \
13597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13599 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013600 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013601 (eval "$lt_compile" 2>out/conftest.err)
13602 ac_status=$?
13603 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013605 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13606 then
13607 # The compiler can only warn and ignore the option if not recognized
13608 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013609 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013610 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13611 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13612 lt_cv_prog_compiler_c_o=yes
13613 fi
13614 fi
13615 chmod u+w . 2>&5
13616 $RM conftest*
13617 # SGI C++ compiler will create directory out/ii_files/ for
13618 # template instantiation
13619 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13620 $RM out/* && rmdir out
13621 cd ..
13622 $RM -r conftest
13623 $RM conftest*
13624
13625fi
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13627$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13628
13629
13630
13631
13632
13633
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13635$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013636if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013637 $as_echo_n "(cached) " >&6
13638else
13639 lt_cv_prog_compiler_c_o=no
13640 $RM -r conftest 2>/dev/null
13641 mkdir conftest
13642 cd conftest
13643 mkdir out
13644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13645
13646 lt_compiler_flag="-o out/conftest2.$ac_objext"
13647 # Insert the option either (1) after the last *FLAGS variable, or
13648 # (2) before a word containing "conftest.", or (3) at the end.
13649 # Note that $ac_compile itself does not contain backslashes and begins
13650 # with a dollar sign (not a hyphen), so the echo should work correctly.
13651 lt_compile=`echo "$ac_compile" | $SED \
13652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13654 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013656 (eval "$lt_compile" 2>out/conftest.err)
13657 ac_status=$?
13658 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013660 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13661 then
13662 # The compiler can only warn and ignore the option if not recognized
13663 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013665 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13666 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13667 lt_cv_prog_compiler_c_o=yes
13668 fi
13669 fi
13670 chmod u+w . 2>&5
13671 $RM conftest*
13672 # SGI C++ compiler will create directory out/ii_files/ for
13673 # template instantiation
13674 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13675 $RM out/* && rmdir out
13676 cd ..
13677 $RM -r conftest
13678 $RM conftest*
13679
13680fi
13681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13682$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13683
13684
13685
13686
13687hard_links="nottested"
13688if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13689 # do not overwrite the value of need_locks provided by the user
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13691$as_echo_n "checking if we can lock with hard links... " >&6; }
13692 hard_links=yes
13693 $RM conftest*
13694 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13695 touch conftest.a
13696 ln conftest.a conftest.b 2>&5 || hard_links=no
13697 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13699$as_echo "$hard_links" >&6; }
13700 if test "$hard_links" = no; then
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13702$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13703 need_locks=warn
13704 fi
13705else
13706 need_locks=no
13707fi
13708
13709
13710
13711
13712
13713
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13715$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13716
13717 runpath_var=
13718 allow_undefined_flag=
13719 always_export_symbols=no
13720 archive_cmds=
13721 archive_expsym_cmds=
13722 compiler_needs_object=no
13723 enable_shared_with_static_runtimes=no
13724 export_dynamic_flag_spec=
13725 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13726 hardcode_automatic=no
13727 hardcode_direct=no
13728 hardcode_direct_absolute=no
13729 hardcode_libdir_flag_spec=
13730 hardcode_libdir_flag_spec_ld=
13731 hardcode_libdir_separator=
13732 hardcode_minus_L=no
13733 hardcode_shlibpath_var=unsupported
13734 inherit_rpath=no
13735 link_all_deplibs=unknown
13736 module_cmds=
13737 module_expsym_cmds=
13738 old_archive_from_new_cmds=
13739 old_archive_from_expsyms_cmds=
13740 thread_safe_flag_spec=
13741 whole_archive_flag_spec=
13742 # include_expsyms should be a list of space-separated symbols to be *always*
13743 # included in the symbol list
13744 include_expsyms=
13745 # exclude_expsyms can be an extended regexp of symbols to exclude
13746 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13747 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13748 # as well as any symbol that contains `d'.
13749 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13750 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13751 # platforms (ab)use it in PIC code, but their linkers get confused if
13752 # the symbol is explicitly referenced. Since portable code cannot
13753 # rely on this symbol name, it's probably fine to never include it in
13754 # preloaded symbol tables.
13755 # Exclude shared library initialization/finalization symbols.
13756 extract_expsyms_cmds=
13757
13758 case $host_os in
13759 cygwin* | mingw* | pw32* | cegcc*)
13760 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13761 # When not using gcc, we currently assume that we are using
13762 # Microsoft Visual C++.
13763 if test "$GCC" != yes; then
13764 with_gnu_ld=no
13765 fi
13766 ;;
13767 interix*)
13768 # we just hope/assume this is gcc and not c89 (= MSVC++)
13769 with_gnu_ld=yes
13770 ;;
13771 openbsd*)
13772 with_gnu_ld=no
13773 ;;
13774 esac
13775
13776 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013777
13778 # On some targets, GNU ld is compatible enough with the native linker
13779 # that we're better off using the native interface for both.
13780 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013781 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013782 case $host_os in
13783 aix*)
13784 # The AIX port of GNU ld has always aspired to compatibility
13785 # with the native linker. However, as the warning in the GNU ld
13786 # block says, versions before 2.19.5* couldn't really create working
13787 # shared libraries, regardless of the interface used.
13788 case `$LD -v 2>&1` in
13789 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13790 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13791 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13792 *)
13793 lt_use_gnu_ld_interface=yes
13794 ;;
13795 esac
13796 ;;
13797 *)
13798 lt_use_gnu_ld_interface=yes
13799 ;;
13800 esac
13801 fi
13802
13803 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013804 # If archive_cmds runs LD, not CC, wlarc should be empty
13805 wlarc='${wl}'
13806
13807 # Set some defaults for GNU ld with shared library support. These
13808 # are reset later if shared libraries are not supported. Putting them
13809 # here allows them to be overridden if necessary.
13810 runpath_var=LD_RUN_PATH
13811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13812 export_dynamic_flag_spec='${wl}--export-dynamic'
13813 # ancient GNU ld didn't support --whole-archive et. al.
13814 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13815 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13816 else
13817 whole_archive_flag_spec=
13818 fi
13819 supports_anon_versioning=no
13820 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013821 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013822 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13823 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13824 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13825 *\ 2.11.*) ;; # other 2.11 versions
13826 *) supports_anon_versioning=yes ;;
13827 esac
13828
13829 # See if GNU ld supports shared libraries.
13830 case $host_os in
13831 aix[3-9]*)
13832 # On AIX/PPC, the GNU linker is very broken
13833 if test "$host_cpu" != ia64; then
13834 ld_shlibs=no
13835 cat <<_LT_EOF 1>&2
13836
cristy0c60a692010-11-04 01:09:47 +000013837*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013838*** to be unable to reliably create shared libraries on AIX.
13839*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013840*** really care for shared libraries, you may want to install binutils
13841*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13842*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013843
13844_LT_EOF
13845 fi
13846 ;;
13847
13848 amigaos*)
13849 case $host_cpu in
13850 powerpc)
13851 # see comment about AmigaOS4 .so support
13852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13853 archive_expsym_cmds=''
13854 ;;
13855 m68k)
13856 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)'
13857 hardcode_libdir_flag_spec='-L$libdir'
13858 hardcode_minus_L=yes
13859 ;;
13860 esac
13861 ;;
13862
13863 beos*)
13864 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13865 allow_undefined_flag=unsupported
13866 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13867 # support --undefined. This deserves some investigation. FIXME
13868 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13869 else
13870 ld_shlibs=no
13871 fi
13872 ;;
13873
13874 cygwin* | mingw* | pw32* | cegcc*)
13875 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13876 # as there is no search path for DLLs.
13877 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013878 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013879 allow_undefined_flag=unsupported
13880 always_export_symbols=no
13881 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013882 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'
13883 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 +000013884
13885 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13887 # If the export-symbols file already is a .def file (1st line
13888 # is EXPORTS), use it as is; otherwise, prepend...
13889 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13890 cp $export_symbols $output_objdir/$soname.def;
13891 else
13892 echo EXPORTS > $output_objdir/$soname.def;
13893 cat $export_symbols >> $output_objdir/$soname.def;
13894 fi~
13895 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13896 else
13897 ld_shlibs=no
13898 fi
13899 ;;
13900
cristy0c60a692010-11-04 01:09:47 +000013901 haiku*)
13902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13903 link_all_deplibs=yes
13904 ;;
13905
cristy73bd4a52010-10-05 11:24:23 +000013906 interix[3-9]*)
13907 hardcode_direct=no
13908 hardcode_shlibpath_var=no
13909 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13910 export_dynamic_flag_spec='${wl}-E'
13911 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13912 # Instead, shared libraries are loaded at an image base (0x10000000 by
13913 # default) and relocated if they conflict, which is a slow very memory
13914 # consuming and fragmenting process. To avoid this, we pick a random,
13915 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13916 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13917 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13918 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'
13919 ;;
13920
cristy0c60a692010-11-04 01:09:47 +000013921 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013922 tmp_diet=no
13923 if test "$host_os" = linux-dietlibc; then
13924 case $cc_basename in
13925 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13926 esac
13927 fi
13928 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13929 && test "$tmp_diet" = no
13930 then
cristyda16f162011-02-19 23:52:17 +000013931 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000013932 tmp_sharedflag='-shared'
13933 case $cc_basename,$host_cpu in
13934 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013935 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 +000013936 tmp_addflag=' $pic_flag'
13937 ;;
cristy0c60a692010-11-04 01:09:47 +000013938 pgf77* | pgf90* | pgf95* | pgfortran*)
13939 # Portland Group f77 and f90 compilers
13940 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 +000013941 tmp_addflag=' $pic_flag -Mnomain' ;;
13942 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13943 tmp_addflag=' -i_dynamic' ;;
13944 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13945 tmp_addflag=' -i_dynamic -nofor_main' ;;
13946 ifc* | ifort*) # Intel Fortran compiler
13947 tmp_addflag=' -nofor_main' ;;
13948 lf95*) # Lahey Fortran 8.1
13949 whole_archive_flag_spec=
13950 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013951 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013952 tmp_sharedflag='-qmkshrobj'
13953 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013954 nvcc*) # Cuda Compiler Driver 2.2
13955 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'
13956 compiler_needs_object=yes
13957 ;;
cristy73bd4a52010-10-05 11:24:23 +000013958 esac
13959 case `$CC -V 2>&1 | sed 5q` in
13960 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013961 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 +000013962 compiler_needs_object=yes
13963 tmp_sharedflag='-G' ;;
13964 *Sun\ F*) # Sun Fortran 8.3
13965 tmp_sharedflag='-G' ;;
13966 esac
13967 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13968
13969 if test "x$supports_anon_versioning" = xyes; then
13970 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13971 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13972 echo "local: *; };" >> $output_objdir/$libname.ver~
13973 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13974 fi
13975
13976 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013977 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000013978 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13979 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13980 hardcode_libdir_flag_spec=
13981 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000013982 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013983 if test "x$supports_anon_versioning" = xyes; then
13984 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13985 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13986 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000013987 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013988 fi
13989 ;;
13990 esac
13991 else
13992 ld_shlibs=no
13993 fi
13994 ;;
13995
13996 netbsd*)
13997 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13998 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13999 wlarc=
14000 else
cristyda16f162011-02-19 23:52:17 +000014001 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14002 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 +000014003 fi
14004 ;;
14005
14006 solaris*)
14007 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14008 ld_shlibs=no
14009 cat <<_LT_EOF 1>&2
14010
14011*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14012*** create shared libraries on Solaris systems. Therefore, libtool
14013*** is disabling shared libraries support. We urge you to upgrade GNU
14014*** binutils to release 2.9.1 or newer. Another option is to modify
14015*** your PATH or compiler configuration so that the native linker is
14016*** used, and then restart.
14017
14018_LT_EOF
14019 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014020 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14021 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 +000014022 else
14023 ld_shlibs=no
14024 fi
14025 ;;
14026
14027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14028 case `$LD -v 2>&1` in
14029 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14030 ld_shlibs=no
14031 cat <<_LT_EOF 1>&2
14032
14033*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14034*** reliably create shared libraries on SCO systems. Therefore, libtool
14035*** is disabling shared libraries support. We urge you to upgrade GNU
14036*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14037*** your PATH or compiler configuration so that the native linker is
14038*** used, and then restart.
14039
14040_LT_EOF
14041 ;;
14042 *)
14043 # For security reasons, it is highly recommended that you always
14044 # use absolute paths for naming shared libraries, and exclude the
14045 # DT_RUNPATH tag from executables and libraries. But doing so
14046 # requires that you compile everything twice, which is a pain.
14047 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14048 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14050 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14051 else
14052 ld_shlibs=no
14053 fi
14054 ;;
14055 esac
14056 ;;
14057
14058 sunos4*)
14059 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14060 wlarc=
14061 hardcode_direct=yes
14062 hardcode_shlibpath_var=no
14063 ;;
14064
14065 *)
14066 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014067 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14068 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 +000014069 else
14070 ld_shlibs=no
14071 fi
14072 ;;
14073 esac
14074
14075 if test "$ld_shlibs" = no; then
14076 runpath_var=
14077 hardcode_libdir_flag_spec=
14078 export_dynamic_flag_spec=
14079 whole_archive_flag_spec=
14080 fi
14081 else
14082 # PORTME fill in a description of your system's linker (not GNU ld)
14083 case $host_os in
14084 aix3*)
14085 allow_undefined_flag=unsupported
14086 always_export_symbols=yes
14087 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'
14088 # Note: this linker hardcodes the directories in LIBPATH if there
14089 # are no directories specified by -L.
14090 hardcode_minus_L=yes
14091 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14092 # Neither direct hardcoding nor static linking is supported with a
14093 # broken collect2.
14094 hardcode_direct=unsupported
14095 fi
14096 ;;
14097
14098 aix[4-9]*)
14099 if test "$host_cpu" = ia64; then
14100 # On IA64, the linker does run time linking by default, so we don't
14101 # have to do anything special.
14102 aix_use_runtimelinking=no
14103 exp_sym_flag='-Bexport'
14104 no_entry_flag=""
14105 else
14106 # If we're using GNU nm, then we don't want the "-C" option.
14107 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014108 # Also, AIX nm treats weak defined symbols like other global
14109 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014110 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014111 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 +000014112 else
14113 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'
14114 fi
14115 aix_use_runtimelinking=no
14116
14117 # Test if we are trying to use run time linking or normal
14118 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14119 # need to do runtime linking.
14120 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14121 for ld_flag in $LDFLAGS; do
14122 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14123 aix_use_runtimelinking=yes
14124 break
14125 fi
14126 done
14127 ;;
14128 esac
14129
14130 exp_sym_flag='-bexport'
14131 no_entry_flag='-bnoentry'
14132 fi
14133
14134 # When large executables or shared objects are built, AIX ld can
14135 # have problems creating the table of contents. If linking a library
14136 # or program results in "error TOC overflow" add -mminimal-toc to
14137 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14138 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14139
14140 archive_cmds=''
14141 hardcode_direct=yes
14142 hardcode_direct_absolute=yes
14143 hardcode_libdir_separator=':'
14144 link_all_deplibs=yes
14145 file_list_spec='${wl}-f,'
14146
14147 if test "$GCC" = yes; then
14148 case $host_os in aix4.[012]|aix4.[012].*)
14149 # We only want to do this on AIX 4.2 and lower, the check
14150 # below for broken collect2 doesn't work under 4.3+
14151 collect2name=`${CC} -print-prog-name=collect2`
14152 if test -f "$collect2name" &&
14153 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14154 then
14155 # We have reworked collect2
14156 :
14157 else
14158 # We have old collect2
14159 hardcode_direct=unsupported
14160 # It fails to find uninstalled libraries when the uninstalled
14161 # path is not listed in the libpath. Setting hardcode_minus_L
14162 # to unsupported forces relinking
14163 hardcode_minus_L=yes
14164 hardcode_libdir_flag_spec='-L$libdir'
14165 hardcode_libdir_separator=
14166 fi
14167 ;;
14168 esac
14169 shared_flag='-shared'
14170 if test "$aix_use_runtimelinking" = yes; then
14171 shared_flag="$shared_flag "'${wl}-G'
14172 fi
14173 else
14174 # not using gcc
14175 if test "$host_cpu" = ia64; then
14176 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14177 # chokes on -Wl,-G. The following line is correct:
14178 shared_flag='-G'
14179 else
14180 if test "$aix_use_runtimelinking" = yes; then
14181 shared_flag='${wl}-G'
14182 else
14183 shared_flag='${wl}-bM:SRE'
14184 fi
14185 fi
14186 fi
14187
14188 export_dynamic_flag_spec='${wl}-bexpall'
14189 # It seems that -bexpall does not export symbols beginning with
14190 # underscore (_), so it is better to generate a list of symbols to export.
14191 always_export_symbols=yes
14192 if test "$aix_use_runtimelinking" = yes; then
14193 # Warning - without using the other runtime loading flags (-brtl),
14194 # -berok will link without error, but may produce a broken library.
14195 allow_undefined_flag='-berok'
14196 # Determine the default libpath from the value encoded in an
14197 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014198 if test "${lt_cv_aix_libpath+set}" = set; then
14199 aix_libpath=$lt_cv_aix_libpath
14200else
14201 if ${lt_cv_aix_libpath_+:} false; then :
14202 $as_echo_n "(cached) " >&6
14203else
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014205/* end confdefs.h. */
14206
14207int
14208main ()
14209{
14210
14211 ;
14212 return 0;
14213}
14214_ACEOF
14215if ac_fn_c_try_link "$LINENO"; then :
14216
cristyda16f162011-02-19 23:52:17 +000014217 lt_aix_libpath_sed='
14218 /Import File Strings/,/^$/ {
14219 /^0/ {
14220 s/^0 *\([^ ]*\) *$/\1/
14221 p
14222 }
14223 }'
14224 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14225 # Check for a 64-bit object if we didn't find anything.
14226 if test -z "$lt_cv_aix_libpath_"; then
14227 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14228 fi
cristy73bd4a52010-10-05 11:24:23 +000014229fi
14230rm -f core conftest.err conftest.$ac_objext \
14231 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014232 if test -z "$lt_cv_aix_libpath_"; then
14233 lt_cv_aix_libpath_="/usr/lib:/lib"
14234 fi
14235
14236fi
14237
14238 aix_libpath=$lt_cv_aix_libpath_
14239fi
cristy73bd4a52010-10-05 11:24:23 +000014240
14241 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014242 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 +000014243 else
14244 if test "$host_cpu" = ia64; then
14245 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14246 allow_undefined_flag="-z nodefs"
14247 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"
14248 else
14249 # Determine the default libpath from the value encoded in an
14250 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014251 if test "${lt_cv_aix_libpath+set}" = set; then
14252 aix_libpath=$lt_cv_aix_libpath
14253else
14254 if ${lt_cv_aix_libpath_+:} false; then :
14255 $as_echo_n "(cached) " >&6
14256else
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014258/* end confdefs.h. */
14259
14260int
14261main ()
14262{
14263
14264 ;
14265 return 0;
14266}
14267_ACEOF
14268if ac_fn_c_try_link "$LINENO"; then :
14269
cristyda16f162011-02-19 23:52:17 +000014270 lt_aix_libpath_sed='
14271 /Import File Strings/,/^$/ {
14272 /^0/ {
14273 s/^0 *\([^ ]*\) *$/\1/
14274 p
14275 }
14276 }'
14277 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14278 # Check for a 64-bit object if we didn't find anything.
14279 if test -z "$lt_cv_aix_libpath_"; then
14280 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14281 fi
cristy73bd4a52010-10-05 11:24:23 +000014282fi
14283rm -f core conftest.err conftest.$ac_objext \
14284 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014285 if test -z "$lt_cv_aix_libpath_"; then
14286 lt_cv_aix_libpath_="/usr/lib:/lib"
14287 fi
14288
14289fi
14290
14291 aix_libpath=$lt_cv_aix_libpath_
14292fi
cristy73bd4a52010-10-05 11:24:23 +000014293
14294 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14295 # Warning - without using the other run time loading flags,
14296 # -berok will link without error, but may produce a broken library.
14297 no_undefined_flag=' ${wl}-bernotok'
14298 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014299 if test "$with_gnu_ld" = yes; then
14300 # We only use this code for GNU lds that support --whole-archive.
14301 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14302 else
14303 # Exported symbols can be pulled into shared objects from archives
14304 whole_archive_flag_spec='$convenience'
14305 fi
cristy73bd4a52010-10-05 11:24:23 +000014306 archive_cmds_need_lc=yes
14307 # This is similar to how AIX traditionally builds its shared libraries.
14308 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'
14309 fi
14310 fi
14311 ;;
14312
14313 amigaos*)
14314 case $host_cpu in
14315 powerpc)
14316 # see comment about AmigaOS4 .so support
14317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14318 archive_expsym_cmds=''
14319 ;;
14320 m68k)
14321 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)'
14322 hardcode_libdir_flag_spec='-L$libdir'
14323 hardcode_minus_L=yes
14324 ;;
14325 esac
14326 ;;
14327
14328 bsdi[45]*)
14329 export_dynamic_flag_spec=-rdynamic
14330 ;;
14331
14332 cygwin* | mingw* | pw32* | cegcc*)
14333 # When not using gcc, we currently assume that we are using
14334 # Microsoft Visual C++.
14335 # hardcode_libdir_flag_spec is actually meaningless, as there is
14336 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014337 case $cc_basename in
14338 cl*)
14339 # Native MSVC
14340 hardcode_libdir_flag_spec=' '
14341 allow_undefined_flag=unsupported
14342 always_export_symbols=yes
14343 file_list_spec='@'
14344 # Tell ltmain to make .lib files, not .a files.
14345 libext=lib
14346 # Tell ltmain to make .dll files, not .so files.
14347 shrext_cmds=".dll"
14348 # FIXME: Setting linknames here is a bad hack.
14349 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14350 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14351 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14352 else
14353 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14354 fi~
14355 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14356 linknames='
14357 # The linker will not automatically build a static lib if we build a DLL.
14358 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14359 enable_shared_with_static_runtimes=yes
14360 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14361 # Don't use ranlib
14362 old_postinstall_cmds='chmod 644 $oldlib'
14363 postlink_cmds='lt_outputfile="@OUTPUT@"~
14364 lt_tool_outputfile="@TOOL_OUTPUT@"~
14365 case $lt_outputfile in
14366 *.exe|*.EXE) ;;
14367 *)
14368 lt_outputfile="$lt_outputfile.exe"
14369 lt_tool_outputfile="$lt_tool_outputfile.exe"
14370 ;;
14371 esac~
14372 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14373 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14374 $RM "$lt_outputfile.manifest";
14375 fi'
14376 ;;
14377 *)
14378 # Assume MSVC wrapper
14379 hardcode_libdir_flag_spec=' '
14380 allow_undefined_flag=unsupported
14381 # Tell ltmain to make .lib files, not .a files.
14382 libext=lib
14383 # Tell ltmain to make .dll files, not .so files.
14384 shrext_cmds=".dll"
14385 # FIXME: Setting linknames here is a bad hack.
14386 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14387 # The linker will automatically build a .lib file if we build a DLL.
14388 old_archive_from_new_cmds='true'
14389 # FIXME: Should let the user specify the lib program.
14390 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14391 enable_shared_with_static_runtimes=yes
14392 ;;
14393 esac
cristy73bd4a52010-10-05 11:24:23 +000014394 ;;
14395
14396 darwin* | rhapsody*)
14397
14398
14399 archive_cmds_need_lc=no
14400 hardcode_direct=no
14401 hardcode_automatic=yes
14402 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014403 if test "$lt_cv_ld_force_load" = "yes"; then
14404 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\"`'
14405 else
14406 whole_archive_flag_spec=''
14407 fi
cristy73bd4a52010-10-05 11:24:23 +000014408 link_all_deplibs=yes
14409 allow_undefined_flag="$_lt_dar_allow_undefined"
14410 case $cc_basename in
14411 ifort*) _lt_dar_can_shared=yes ;;
14412 *) _lt_dar_can_shared=$GCC ;;
14413 esac
14414 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014415 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014416 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14417 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14418 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}"
14419 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}"
14420
14421 else
14422 ld_shlibs=no
14423 fi
14424
14425 ;;
14426
14427 dgux*)
14428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14429 hardcode_libdir_flag_spec='-L$libdir'
14430 hardcode_shlibpath_var=no
14431 ;;
14432
14433 freebsd1*)
14434 ld_shlibs=no
14435 ;;
14436
14437 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14438 # support. Future versions do this automatically, but an explicit c++rt0.o
14439 # does not break anything, and helps significantly (at the cost of a little
14440 # extra space).
14441 freebsd2.2*)
14442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14443 hardcode_libdir_flag_spec='-R$libdir'
14444 hardcode_direct=yes
14445 hardcode_shlibpath_var=no
14446 ;;
14447
14448 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14449 freebsd2*)
14450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14451 hardcode_direct=yes
14452 hardcode_minus_L=yes
14453 hardcode_shlibpath_var=no
14454 ;;
14455
14456 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14457 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014458 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014459 hardcode_libdir_flag_spec='-R$libdir'
14460 hardcode_direct=yes
14461 hardcode_shlibpath_var=no
14462 ;;
14463
14464 hpux9*)
14465 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014466 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 +000014467 else
14468 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'
14469 fi
14470 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14471 hardcode_libdir_separator=:
14472 hardcode_direct=yes
14473
14474 # hardcode_minus_L: Not really in the search PATH,
14475 # but as the default location of the library.
14476 hardcode_minus_L=yes
14477 export_dynamic_flag_spec='${wl}-E'
14478 ;;
14479
14480 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014481 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014482 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 +000014483 else
14484 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14485 fi
14486 if test "$with_gnu_ld" = no; then
14487 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14488 hardcode_libdir_flag_spec_ld='+b $libdir'
14489 hardcode_libdir_separator=:
14490 hardcode_direct=yes
14491 hardcode_direct_absolute=yes
14492 export_dynamic_flag_spec='${wl}-E'
14493 # hardcode_minus_L: Not really in the search PATH,
14494 # but as the default location of the library.
14495 hardcode_minus_L=yes
14496 fi
14497 ;;
14498
14499 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014500 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014501 case $host_cpu in
14502 hppa*64*)
14503 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14504 ;;
14505 ia64*)
cristyda16f162011-02-19 23:52:17 +000014506 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014507 ;;
14508 *)
cristyda16f162011-02-19 23:52:17 +000014509 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 +000014510 ;;
14511 esac
14512 else
14513 case $host_cpu in
14514 hppa*64*)
14515 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14516 ;;
14517 ia64*)
14518 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14519 ;;
14520 *)
cristy0c60a692010-11-04 01:09:47 +000014521
14522 # Older versions of the 11.00 compiler do not understand -b yet
14523 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14525$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014526if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014527 $as_echo_n "(cached) " >&6
14528else
14529 lt_cv_prog_compiler__b=no
14530 save_LDFLAGS="$LDFLAGS"
14531 LDFLAGS="$LDFLAGS -b"
14532 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14533 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14534 # The linker can only warn and ignore the option if not recognized
14535 # So say no if there are warnings
14536 if test -s conftest.err; then
14537 # Append any errors to the config.log.
14538 cat conftest.err 1>&5
14539 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14540 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14541 if diff conftest.exp conftest.er2 >/dev/null; then
14542 lt_cv_prog_compiler__b=yes
14543 fi
14544 else
14545 lt_cv_prog_compiler__b=yes
14546 fi
14547 fi
14548 $RM -r conftest*
14549 LDFLAGS="$save_LDFLAGS"
14550
14551fi
14552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14553$as_echo "$lt_cv_prog_compiler__b" >&6; }
14554
14555if test x"$lt_cv_prog_compiler__b" = xyes; then
14556 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14557else
14558 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14559fi
14560
cristy73bd4a52010-10-05 11:24:23 +000014561 ;;
14562 esac
14563 fi
14564 if test "$with_gnu_ld" = no; then
14565 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14566 hardcode_libdir_separator=:
14567
14568 case $host_cpu in
14569 hppa*64*|ia64*)
14570 hardcode_direct=no
14571 hardcode_shlibpath_var=no
14572 ;;
14573 *)
14574 hardcode_direct=yes
14575 hardcode_direct_absolute=yes
14576 export_dynamic_flag_spec='${wl}-E'
14577
14578 # hardcode_minus_L: Not really in the search PATH,
14579 # but as the default location of the library.
14580 hardcode_minus_L=yes
14581 ;;
14582 esac
14583 fi
14584 ;;
14585
14586 irix5* | irix6* | nonstopux*)
14587 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014588 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 +000014589 # Try to use the -exported_symbol ld option, if it does not
14590 # work, assume that -exports_file does not work either and
14591 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014592 # This should be the same for all languages, so no per-tag cache variable.
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14594$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14595if ${lt_cv_irix_exported_symbol+:} false; then :
14596 $as_echo_n "(cached) " >&6
14597else
14598 save_LDFLAGS="$LDFLAGS"
14599 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014601/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014602int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014603_ACEOF
14604if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014605 lt_cv_irix_exported_symbol=yes
14606else
14607 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014608fi
14609rm -f core conftest.err conftest.$ac_objext \
14610 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014611 LDFLAGS="$save_LDFLAGS"
14612fi
14613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14614$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14615 if test "$lt_cv_irix_exported_symbol" = yes; then
14616 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'
14617 fi
cristy73bd4a52010-10-05 11:24:23 +000014618 else
cristy0c60a692010-11-04 01:09:47 +000014619 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'
14620 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 +000014621 fi
14622 archive_cmds_need_lc='no'
14623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14624 hardcode_libdir_separator=:
14625 inherit_rpath=yes
14626 link_all_deplibs=yes
14627 ;;
14628
14629 netbsd*)
14630 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14632 else
14633 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14634 fi
14635 hardcode_libdir_flag_spec='-R$libdir'
14636 hardcode_direct=yes
14637 hardcode_shlibpath_var=no
14638 ;;
14639
14640 newsos6)
14641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14642 hardcode_direct=yes
14643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14644 hardcode_libdir_separator=:
14645 hardcode_shlibpath_var=no
14646 ;;
14647
14648 *nto* | *qnx*)
14649 ;;
14650
14651 openbsd*)
14652 if test -f /usr/libexec/ld.so; then
14653 hardcode_direct=yes
14654 hardcode_shlibpath_var=no
14655 hardcode_direct_absolute=yes
14656 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14657 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14658 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14659 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14660 export_dynamic_flag_spec='${wl}-E'
14661 else
14662 case $host_os in
14663 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14665 hardcode_libdir_flag_spec='-R$libdir'
14666 ;;
14667 *)
14668 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14669 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14670 ;;
14671 esac
14672 fi
14673 else
14674 ld_shlibs=no
14675 fi
14676 ;;
14677
14678 os2*)
14679 hardcode_libdir_flag_spec='-L$libdir'
14680 hardcode_minus_L=yes
14681 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014682 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 +000014683 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14684 ;;
14685
14686 osf3*)
14687 if test "$GCC" = yes; then
14688 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014689 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 +000014690 else
14691 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014692 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 +000014693 fi
14694 archive_cmds_need_lc='no'
14695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14696 hardcode_libdir_separator=:
14697 ;;
14698
14699 osf4* | osf5*) # as osf3* with the addition of -msym flag
14700 if test "$GCC" = yes; then
14701 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014702 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 +000014703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14704 else
14705 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014706 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 +000014707 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 +000014708 $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 +000014709
14710 # Both c and cxx compiler support -rpath directly
14711 hardcode_libdir_flag_spec='-rpath $libdir'
14712 fi
14713 archive_cmds_need_lc='no'
14714 hardcode_libdir_separator=:
14715 ;;
14716
14717 solaris*)
14718 no_undefined_flag=' -z defs'
14719 if test "$GCC" = yes; then
14720 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014721 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 +000014722 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 +000014723 $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 +000014724 else
14725 case `$CC -V 2>&1` in
14726 *"Compilers 5.0"*)
14727 wlarc=''
14728 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14729 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14730 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14731 ;;
14732 *)
14733 wlarc='${wl}'
14734 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14735 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14736 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14737 ;;
14738 esac
14739 fi
14740 hardcode_libdir_flag_spec='-R$libdir'
14741 hardcode_shlibpath_var=no
14742 case $host_os in
14743 solaris2.[0-5] | solaris2.[0-5].*) ;;
14744 *)
14745 # The compiler driver will combine and reorder linker options,
14746 # but understands `-z linker_flag'. GCC discards it without `$wl',
14747 # but is careful enough not to reorder.
14748 # Supported since Solaris 2.6 (maybe 2.5.1?)
14749 if test "$GCC" = yes; then
14750 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14751 else
14752 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14753 fi
14754 ;;
14755 esac
14756 link_all_deplibs=yes
14757 ;;
14758
14759 sunos4*)
14760 if test "x$host_vendor" = xsequent; then
14761 # Use $CC to link under sequent, because it throws in some extra .o
14762 # files that make .init and .fini sections work.
14763 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14764 else
14765 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14766 fi
14767 hardcode_libdir_flag_spec='-L$libdir'
14768 hardcode_direct=yes
14769 hardcode_minus_L=yes
14770 hardcode_shlibpath_var=no
14771 ;;
14772
14773 sysv4)
14774 case $host_vendor in
14775 sni)
14776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14777 hardcode_direct=yes # is this really true???
14778 ;;
14779 siemens)
14780 ## LD is ld it makes a PLAMLIB
14781 ## CC just makes a GrossModule.
14782 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14783 reload_cmds='$CC -r -o $output$reload_objs'
14784 hardcode_direct=no
14785 ;;
14786 motorola)
14787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14788 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14789 ;;
14790 esac
14791 runpath_var='LD_RUN_PATH'
14792 hardcode_shlibpath_var=no
14793 ;;
14794
14795 sysv4.3*)
14796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14797 hardcode_shlibpath_var=no
14798 export_dynamic_flag_spec='-Bexport'
14799 ;;
14800
14801 sysv4*MP*)
14802 if test -d /usr/nec; then
14803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14804 hardcode_shlibpath_var=no
14805 runpath_var=LD_RUN_PATH
14806 hardcode_runpath_var=yes
14807 ld_shlibs=yes
14808 fi
14809 ;;
14810
14811 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14812 no_undefined_flag='${wl}-z,text'
14813 archive_cmds_need_lc=no
14814 hardcode_shlibpath_var=no
14815 runpath_var='LD_RUN_PATH'
14816
14817 if test "$GCC" = yes; then
14818 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14819 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14820 else
14821 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14822 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14823 fi
14824 ;;
14825
14826 sysv5* | sco3.2v5* | sco5v6*)
14827 # Note: We can NOT use -z defs as we might desire, because we do not
14828 # link with -lc, and that would cause any symbols used from libc to
14829 # always be unresolved, which means just about no library would
14830 # ever link correctly. If we're not using GNU ld we use -z text
14831 # though, which does catch some bad symbols but isn't as heavy-handed
14832 # as -z defs.
14833 no_undefined_flag='${wl}-z,text'
14834 allow_undefined_flag='${wl}-z,nodefs'
14835 archive_cmds_need_lc=no
14836 hardcode_shlibpath_var=no
14837 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14838 hardcode_libdir_separator=':'
14839 link_all_deplibs=yes
14840 export_dynamic_flag_spec='${wl}-Bexport'
14841 runpath_var='LD_RUN_PATH'
14842
14843 if test "$GCC" = yes; then
14844 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14845 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14846 else
14847 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14848 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14849 fi
14850 ;;
14851
14852 uts4*)
14853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14854 hardcode_libdir_flag_spec='-L$libdir'
14855 hardcode_shlibpath_var=no
14856 ;;
14857
14858 *)
14859 ld_shlibs=no
14860 ;;
14861 esac
14862
14863 if test x$host_vendor = xsni; then
14864 case $host in
14865 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14866 export_dynamic_flag_spec='${wl}-Blargedynsym'
14867 ;;
14868 esac
14869 fi
14870 fi
14871
14872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14873$as_echo "$ld_shlibs" >&6; }
14874test "$ld_shlibs" = no && can_build_shared=no
14875
14876with_gnu_ld=$with_gnu_ld
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892#
14893# Do we need to explicitly link libc?
14894#
14895case "x$archive_cmds_need_lc" in
14896x|xyes)
14897 # Assume -lc should be added
14898 archive_cmds_need_lc=yes
14899
14900 if test "$enable_shared" = yes && test "$GCC" = yes; then
14901 case $archive_cmds in
14902 *'~'*)
14903 # FIXME: we may have to deal with multi-command sequences.
14904 ;;
14905 '$CC '*)
14906 # Test whether the compiler implicitly links with -lc since on some
14907 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14908 # to ld, don't add -lc before -lgcc.
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14910$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014911if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014912 $as_echo_n "(cached) " >&6
14913else
14914 $RM conftest*
14915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014916
cristy0c60a692010-11-04 01:09:47 +000014917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014918 (eval $ac_compile) 2>&5
14919 ac_status=$?
14920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14921 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014922 soname=conftest
14923 lib=conftest
14924 libobjs=conftest.$ac_objext
14925 deplibs=
14926 wl=$lt_prog_compiler_wl
14927 pic_flag=$lt_prog_compiler_pic
14928 compiler_flags=-v
14929 linker_flags=-v
14930 verstring=
14931 output_objdir=.
14932 libname=conftest
14933 lt_save_allow_undefined_flag=$allow_undefined_flag
14934 allow_undefined_flag=
14935 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 +000014936 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14937 ac_status=$?
14938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14939 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014940 then
14941 lt_cv_archive_cmds_need_lc=no
14942 else
14943 lt_cv_archive_cmds_need_lc=yes
14944 fi
14945 allow_undefined_flag=$lt_save_allow_undefined_flag
14946 else
14947 cat conftest.err 1>&5
14948 fi
14949 $RM conftest*
14950
14951fi
14952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14953$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14954 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014955 ;;
14956 esac
14957 fi
14958 ;;
14959esac
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15118$as_echo_n "checking dynamic linker characteristics... " >&6; }
15119
15120if test "$GCC" = yes; then
15121 case $host_os in
15122 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15123 *) lt_awk_arg="/^libraries:/" ;;
15124 esac
cristy0c60a692010-11-04 01:09:47 +000015125 case $host_os in
15126 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15127 *) lt_sed_strip_eq="s,=/,/,g" ;;
15128 esac
15129 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15130 case $lt_search_path_spec in
15131 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015132 # if the path contains ";" then we assume it to be the separator
15133 # otherwise default to the standard path separator (i.e. ":") - it is
15134 # assumed that no part of a normal pathname contains ";" but that should
15135 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015136 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15137 ;;
15138 *)
15139 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15140 ;;
15141 esac
cristy73bd4a52010-10-05 11:24:23 +000015142 # Ok, now we have the path, separated by spaces, we can step through it
15143 # and add multilib dir if necessary.
15144 lt_tmp_lt_search_path_spec=
15145 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15146 for lt_sys_path in $lt_search_path_spec; do
15147 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15148 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15149 else
15150 test -d "$lt_sys_path" && \
15151 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15152 fi
15153 done
cristy0c60a692010-11-04 01:09:47 +000015154 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015155BEGIN {RS=" "; FS="/|\n";} {
15156 lt_foo="";
15157 lt_count=0;
15158 for (lt_i = NF; lt_i > 0; lt_i--) {
15159 if ($lt_i != "" && $lt_i != ".") {
15160 if ($lt_i == "..") {
15161 lt_count++;
15162 } else {
15163 if (lt_count == 0) {
15164 lt_foo="/" $lt_i lt_foo;
15165 } else {
15166 lt_count--;
15167 }
15168 }
15169 }
15170 }
15171 if (lt_foo != "") { lt_freq[lt_foo]++; }
15172 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15173}'`
cristy0c60a692010-11-04 01:09:47 +000015174 # AWK program above erroneously prepends '/' to C:/dos/paths
15175 # for these hosts.
15176 case $host_os in
15177 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15178 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15179 esac
15180 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015181else
15182 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15183fi
15184library_names_spec=
15185libname_spec='lib$name'
15186soname_spec=
15187shrext_cmds=".so"
15188postinstall_cmds=
15189postuninstall_cmds=
15190finish_cmds=
15191finish_eval=
15192shlibpath_var=
15193shlibpath_overrides_runpath=unknown
15194version_type=none
15195dynamic_linker="$host_os ld.so"
15196sys_lib_dlsearch_path_spec="/lib /usr/lib"
15197need_lib_prefix=unknown
15198hardcode_into_libs=no
15199
15200# when you set need_version to no, make sure it does not cause -set_version
15201# flags to be left without arguments
15202need_version=unknown
15203
15204case $host_os in
15205aix3*)
15206 version_type=linux
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15208 shlibpath_var=LIBPATH
15209
15210 # AIX 3 has no versioning support, so we append a major version to the name.
15211 soname_spec='${libname}${release}${shared_ext}$major'
15212 ;;
15213
15214aix[4-9]*)
15215 version_type=linux
15216 need_lib_prefix=no
15217 need_version=no
15218 hardcode_into_libs=yes
15219 if test "$host_cpu" = ia64; then
15220 # AIX 5 supports IA64
15221 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15222 shlibpath_var=LD_LIBRARY_PATH
15223 else
15224 # With GCC up to 2.95.x, collect2 would create an import file
15225 # for dependence libraries. The import file would start with
15226 # the line `#! .'. This would cause the generated library to
15227 # depend on `.', always an invalid library. This was fixed in
15228 # development snapshots of GCC prior to 3.0.
15229 case $host_os in
15230 aix4 | aix4.[01] | aix4.[01].*)
15231 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15232 echo ' yes '
15233 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15234 :
15235 else
15236 can_build_shared=no
15237 fi
15238 ;;
15239 esac
15240 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15241 # soname into executable. Probably we can add versioning support to
15242 # collect2, so additional links can be useful in future.
15243 if test "$aix_use_runtimelinking" = yes; then
15244 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15245 # instead of lib<name>.a to let people know that these are not
15246 # typical AIX shared libraries.
15247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15248 else
15249 # We preserve .a as extension for shared libraries through AIX4.2
15250 # and later when we are not doing run time linking.
15251 library_names_spec='${libname}${release}.a $libname.a'
15252 soname_spec='${libname}${release}${shared_ext}$major'
15253 fi
15254 shlibpath_var=LIBPATH
15255 fi
15256 ;;
15257
15258amigaos*)
15259 case $host_cpu in
15260 powerpc)
15261 # Since July 2007 AmigaOS4 officially supports .so libraries.
15262 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264 ;;
15265 m68k)
15266 library_names_spec='$libname.ixlibrary $libname.a'
15267 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015268 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 +000015269 ;;
15270 esac
15271 ;;
15272
15273beos*)
15274 library_names_spec='${libname}${shared_ext}'
15275 dynamic_linker="$host_os ld.so"
15276 shlibpath_var=LIBRARY_PATH
15277 ;;
15278
15279bsdi[45]*)
15280 version_type=linux
15281 need_version=no
15282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15283 soname_spec='${libname}${release}${shared_ext}$major'
15284 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15285 shlibpath_var=LD_LIBRARY_PATH
15286 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15287 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15288 # the default ld.so.conf also contains /usr/contrib/lib and
15289 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15290 # libtool to hard-code these into programs
15291 ;;
15292
15293cygwin* | mingw* | pw32* | cegcc*)
15294 version_type=windows
15295 shrext_cmds=".dll"
15296 need_version=no
15297 need_lib_prefix=no
15298
cristyda16f162011-02-19 23:52:17 +000015299 case $GCC,$cc_basename in
15300 yes,*)
15301 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015302 library_names_spec='$libname.dll.a'
15303 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15304 postinstall_cmds='base_file=`basename \${file}`~
15305 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15306 dldir=$destdir/`dirname \$dlpath`~
15307 test -d \$dldir || mkdir -p \$dldir~
15308 $install_prog $dir/$dlname \$dldir/$dlname~
15309 chmod a+x \$dldir/$dlname~
15310 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15311 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15312 fi'
15313 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15314 dlpath=$dir/\$dldll~
15315 $RM \$dlpath'
15316 shlibpath_overrides_runpath=yes
15317
15318 case $host_os in
15319 cygwin*)
15320 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15321 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015322
15323 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015324 ;;
15325 mingw* | cegcc*)
15326 # MinGW DLLs use traditional 'lib' prefix
15327 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015328 ;;
15329 pw32*)
15330 # pw32 DLLs use 'pw' prefix rather than 'lib'
15331 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15332 ;;
15333 esac
cristyda16f162011-02-19 23:52:17 +000015334 dynamic_linker='Win32 ld.exe'
15335 ;;
15336
15337 *,cl*)
15338 # Native MSVC
15339 libname_spec='$name'
15340 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15341 library_names_spec='${libname}.dll.lib'
15342
15343 case $build_os in
15344 mingw*)
15345 sys_lib_search_path_spec=
15346 lt_save_ifs=$IFS
15347 IFS=';'
15348 for lt_path in $LIB
15349 do
15350 IFS=$lt_save_ifs
15351 # Let DOS variable expansion print the short 8.3 style file name.
15352 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15353 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15354 done
15355 IFS=$lt_save_ifs
15356 # Convert to MSYS style.
15357 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15358 ;;
15359 cygwin*)
15360 # Convert to unix form, then to dos form, then back to unix form
15361 # but this time dos style (no spaces!) so that the unix form looks
15362 # like /cygdrive/c/PROGRA~1:/cygdr...
15363 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15364 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15365 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15366 ;;
15367 *)
15368 sys_lib_search_path_spec="$LIB"
15369 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15370 # It is most probably a Windows format PATH.
15371 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15372 else
15373 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15374 fi
15375 # FIXME: find the short name or the path components, as spaces are
15376 # common. (e.g. "Program Files" -> "PROGRA~1")
15377 ;;
15378 esac
15379
15380 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15381 postinstall_cmds='base_file=`basename \${file}`~
15382 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15383 dldir=$destdir/`dirname \$dlpath`~
15384 test -d \$dldir || mkdir -p \$dldir~
15385 $install_prog $dir/$dlname \$dldir/$dlname'
15386 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15387 dlpath=$dir/\$dldll~
15388 $RM \$dlpath'
15389 shlibpath_overrides_runpath=yes
15390 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015391 ;;
15392
15393 *)
cristyda16f162011-02-19 23:52:17 +000015394 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015395 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015396 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015397 ;;
15398 esac
cristy73bd4a52010-10-05 11:24:23 +000015399 # FIXME: first we should search . and the directory the executable is in
15400 shlibpath_var=PATH
15401 ;;
15402
15403darwin* | rhapsody*)
15404 dynamic_linker="$host_os dyld"
15405 version_type=darwin
15406 need_lib_prefix=no
15407 need_version=no
15408 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15409 soname_spec='${libname}${release}${major}$shared_ext'
15410 shlibpath_overrides_runpath=yes
15411 shlibpath_var=DYLD_LIBRARY_PATH
15412 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15413
15414 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15415 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15416 ;;
15417
15418dgux*)
15419 version_type=linux
15420 need_lib_prefix=no
15421 need_version=no
15422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15423 soname_spec='${libname}${release}${shared_ext}$major'
15424 shlibpath_var=LD_LIBRARY_PATH
15425 ;;
15426
15427freebsd1*)
15428 dynamic_linker=no
15429 ;;
15430
15431freebsd* | dragonfly*)
15432 # DragonFly does not have aout. When/if they implement a new
15433 # versioning mechanism, adjust this.
15434 if test -x /usr/bin/objformat; then
15435 objformat=`/usr/bin/objformat`
15436 else
15437 case $host_os in
15438 freebsd[123]*) objformat=aout ;;
15439 *) objformat=elf ;;
15440 esac
15441 fi
15442 version_type=freebsd-$objformat
15443 case $version_type in
15444 freebsd-elf*)
15445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15446 need_version=no
15447 need_lib_prefix=no
15448 ;;
15449 freebsd-*)
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15451 need_version=yes
15452 ;;
15453 esac
15454 shlibpath_var=LD_LIBRARY_PATH
15455 case $host_os in
15456 freebsd2*)
15457 shlibpath_overrides_runpath=yes
15458 ;;
15459 freebsd3.[01]* | freebsdelf3.[01]*)
15460 shlibpath_overrides_runpath=yes
15461 hardcode_into_libs=yes
15462 ;;
15463 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15464 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15465 shlibpath_overrides_runpath=no
15466 hardcode_into_libs=yes
15467 ;;
15468 *) # from 4.6 on, and DragonFly
15469 shlibpath_overrides_runpath=yes
15470 hardcode_into_libs=yes
15471 ;;
15472 esac
15473 ;;
15474
15475gnu*)
15476 version_type=linux
15477 need_lib_prefix=no
15478 need_version=no
15479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15480 soname_spec='${libname}${release}${shared_ext}$major'
15481 shlibpath_var=LD_LIBRARY_PATH
15482 hardcode_into_libs=yes
15483 ;;
15484
cristy0c60a692010-11-04 01:09:47 +000015485haiku*)
15486 version_type=linux
15487 need_lib_prefix=no
15488 need_version=no
15489 dynamic_linker="$host_os runtime_loader"
15490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15491 soname_spec='${libname}${release}${shared_ext}$major'
15492 shlibpath_var=LIBRARY_PATH
15493 shlibpath_overrides_runpath=yes
15494 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15495 hardcode_into_libs=yes
15496 ;;
15497
cristy73bd4a52010-10-05 11:24:23 +000015498hpux9* | hpux10* | hpux11*)
15499 # Give a soname corresponding to the major version so that dld.sl refuses to
15500 # link against other versions.
15501 version_type=sunos
15502 need_lib_prefix=no
15503 need_version=no
15504 case $host_cpu in
15505 ia64*)
15506 shrext_cmds='.so'
15507 hardcode_into_libs=yes
15508 dynamic_linker="$host_os dld.so"
15509 shlibpath_var=LD_LIBRARY_PATH
15510 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15512 soname_spec='${libname}${release}${shared_ext}$major'
15513 if test "X$HPUX_IA64_MODE" = X32; then
15514 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15515 else
15516 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15517 fi
15518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15519 ;;
15520 hppa*64*)
15521 shrext_cmds='.sl'
15522 hardcode_into_libs=yes
15523 dynamic_linker="$host_os dld.sl"
15524 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527 soname_spec='${libname}${release}${shared_ext}$major'
15528 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15530 ;;
15531 *)
15532 shrext_cmds='.sl'
15533 dynamic_linker="$host_os dld.sl"
15534 shlibpath_var=SHLIB_PATH
15535 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537 soname_spec='${libname}${release}${shared_ext}$major'
15538 ;;
15539 esac
cristy0c60a692010-11-04 01:09:47 +000015540 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015541 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015542 # or fails outright, so override atomically:
15543 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015544 ;;
15545
15546interix[3-9]*)
15547 version_type=linux
15548 need_lib_prefix=no
15549 need_version=no
15550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15551 soname_spec='${libname}${release}${shared_ext}$major'
15552 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15553 shlibpath_var=LD_LIBRARY_PATH
15554 shlibpath_overrides_runpath=no
15555 hardcode_into_libs=yes
15556 ;;
15557
15558irix5* | irix6* | nonstopux*)
15559 case $host_os in
15560 nonstopux*) version_type=nonstopux ;;
15561 *)
15562 if test "$lt_cv_prog_gnu_ld" = yes; then
15563 version_type=linux
15564 else
15565 version_type=irix
15566 fi ;;
15567 esac
15568 need_lib_prefix=no
15569 need_version=no
15570 soname_spec='${libname}${release}${shared_ext}$major'
15571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15572 case $host_os in
15573 irix5* | nonstopux*)
15574 libsuff= shlibsuff=
15575 ;;
15576 *)
15577 case $LD in # libtool.m4 will add one of these switches to LD
15578 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15579 libsuff= shlibsuff= libmagic=32-bit;;
15580 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15581 libsuff=32 shlibsuff=N32 libmagic=N32;;
15582 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15583 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15584 *) libsuff= shlibsuff= libmagic=never-match;;
15585 esac
15586 ;;
15587 esac
15588 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15589 shlibpath_overrides_runpath=no
15590 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15591 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15592 hardcode_into_libs=yes
15593 ;;
15594
15595# No shared lib support for Linux oldld, aout, or coff.
15596linux*oldld* | linux*aout* | linux*coff*)
15597 dynamic_linker=no
15598 ;;
15599
15600# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015601linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015602 version_type=linux
15603 need_lib_prefix=no
15604 need_version=no
15605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15606 soname_spec='${libname}${release}${shared_ext}$major'
15607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15608 shlibpath_var=LD_LIBRARY_PATH
15609 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015610
cristy73bd4a52010-10-05 11:24:23 +000015611 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015612 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015613 $as_echo_n "(cached) " >&6
15614else
15615 lt_cv_shlibpath_overrides_runpath=no
15616 save_LDFLAGS=$LDFLAGS
15617 save_libdir=$libdir
15618 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15619 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015621/* end confdefs.h. */
15622
15623int
15624main ()
15625{
15626
15627 ;
15628 return 0;
15629}
15630_ACEOF
15631if ac_fn_c_try_link "$LINENO"; then :
15632 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015633 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015634fi
15635fi
15636rm -f core conftest.err conftest.$ac_objext \
15637 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015638 LDFLAGS=$save_LDFLAGS
15639 libdir=$save_libdir
15640
15641fi
15642
15643 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015644
15645 # This implies no fast_install, which is unacceptable.
15646 # Some rework will be needed to allow for fast_install
15647 # before this can be enabled.
15648 hardcode_into_libs=yes
15649
15650 # Add ABI-specific directories to the system library path.
15651 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15652
15653 # Append ld.so.conf contents to the search path
15654 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015655 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 +000015656 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015657
cristy73bd4a52010-10-05 11:24:23 +000015658 fi
15659
15660 # We used to test for /lib/ld.so.1 and disable shared libraries on
15661 # powerpc, because MkLinux only supported shared libraries with the
15662 # GNU dynamic linker. Since this was broken with cross compilers,
15663 # most powerpc-linux boxes support dynamic linking these days and
15664 # people can always --disable-shared, the test was removed, and we
15665 # assume the GNU/Linux dynamic linker is in use.
15666 dynamic_linker='GNU/Linux ld.so'
15667 ;;
15668
15669netbsd*)
15670 version_type=sunos
15671 need_lib_prefix=no
15672 need_version=no
15673 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15676 dynamic_linker='NetBSD (a.out) ld.so'
15677 else
15678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15679 soname_spec='${libname}${release}${shared_ext}$major'
15680 dynamic_linker='NetBSD ld.elf_so'
15681 fi
15682 shlibpath_var=LD_LIBRARY_PATH
15683 shlibpath_overrides_runpath=yes
15684 hardcode_into_libs=yes
15685 ;;
15686
15687newsos6)
15688 version_type=linux
15689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15690 shlibpath_var=LD_LIBRARY_PATH
15691 shlibpath_overrides_runpath=yes
15692 ;;
15693
15694*nto* | *qnx*)
15695 version_type=qnx
15696 need_lib_prefix=no
15697 need_version=no
15698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15699 soname_spec='${libname}${release}${shared_ext}$major'
15700 shlibpath_var=LD_LIBRARY_PATH
15701 shlibpath_overrides_runpath=no
15702 hardcode_into_libs=yes
15703 dynamic_linker='ldqnx.so'
15704 ;;
15705
15706openbsd*)
15707 version_type=sunos
15708 sys_lib_dlsearch_path_spec="/usr/lib"
15709 need_lib_prefix=no
15710 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15711 case $host_os in
15712 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15713 *) need_version=no ;;
15714 esac
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15717 shlibpath_var=LD_LIBRARY_PATH
15718 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15719 case $host_os in
15720 openbsd2.[89] | openbsd2.[89].*)
15721 shlibpath_overrides_runpath=no
15722 ;;
15723 *)
15724 shlibpath_overrides_runpath=yes
15725 ;;
15726 esac
15727 else
15728 shlibpath_overrides_runpath=yes
15729 fi
15730 ;;
15731
15732os2*)
15733 libname_spec='$name'
15734 shrext_cmds=".dll"
15735 need_lib_prefix=no
15736 library_names_spec='$libname${shared_ext} $libname.a'
15737 dynamic_linker='OS/2 ld.exe'
15738 shlibpath_var=LIBPATH
15739 ;;
15740
15741osf3* | osf4* | osf5*)
15742 version_type=osf
15743 need_lib_prefix=no
15744 need_version=no
15745 soname_spec='${libname}${release}${shared_ext}$major'
15746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15747 shlibpath_var=LD_LIBRARY_PATH
15748 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15749 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15750 ;;
15751
15752rdos*)
15753 dynamic_linker=no
15754 ;;
15755
15756solaris*)
15757 version_type=linux
15758 need_lib_prefix=no
15759 need_version=no
15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15761 soname_spec='${libname}${release}${shared_ext}$major'
15762 shlibpath_var=LD_LIBRARY_PATH
15763 shlibpath_overrides_runpath=yes
15764 hardcode_into_libs=yes
15765 # ldd complains unless libraries are executable
15766 postinstall_cmds='chmod +x $lib'
15767 ;;
15768
15769sunos4*)
15770 version_type=sunos
15771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15772 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15773 shlibpath_var=LD_LIBRARY_PATH
15774 shlibpath_overrides_runpath=yes
15775 if test "$with_gnu_ld" = yes; then
15776 need_lib_prefix=no
15777 fi
15778 need_version=yes
15779 ;;
15780
15781sysv4 | sysv4.3*)
15782 version_type=linux
15783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15784 soname_spec='${libname}${release}${shared_ext}$major'
15785 shlibpath_var=LD_LIBRARY_PATH
15786 case $host_vendor in
15787 sni)
15788 shlibpath_overrides_runpath=no
15789 need_lib_prefix=no
15790 runpath_var=LD_RUN_PATH
15791 ;;
15792 siemens)
15793 need_lib_prefix=no
15794 ;;
15795 motorola)
15796 need_lib_prefix=no
15797 need_version=no
15798 shlibpath_overrides_runpath=no
15799 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15800 ;;
15801 esac
15802 ;;
15803
15804sysv4*MP*)
15805 if test -d /usr/nec ;then
15806 version_type=linux
15807 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15808 soname_spec='$libname${shared_ext}.$major'
15809 shlibpath_var=LD_LIBRARY_PATH
15810 fi
15811 ;;
15812
15813sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15814 version_type=freebsd-elf
15815 need_lib_prefix=no
15816 need_version=no
15817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15818 soname_spec='${libname}${release}${shared_ext}$major'
15819 shlibpath_var=LD_LIBRARY_PATH
15820 shlibpath_overrides_runpath=yes
15821 hardcode_into_libs=yes
15822 if test "$with_gnu_ld" = yes; then
15823 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15824 else
15825 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15826 case $host_os in
15827 sco3.2v5*)
15828 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15829 ;;
15830 esac
15831 fi
15832 sys_lib_dlsearch_path_spec='/usr/lib'
15833 ;;
15834
15835tpf*)
15836 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15837 version_type=linux
15838 need_lib_prefix=no
15839 need_version=no
15840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15841 shlibpath_var=LD_LIBRARY_PATH
15842 shlibpath_overrides_runpath=no
15843 hardcode_into_libs=yes
15844 ;;
15845
15846uts4*)
15847 version_type=linux
15848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15849 soname_spec='${libname}${release}${shared_ext}$major'
15850 shlibpath_var=LD_LIBRARY_PATH
15851 ;;
15852
15853*)
15854 dynamic_linker=no
15855 ;;
15856esac
15857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15858$as_echo "$dynamic_linker" >&6; }
15859test "$dynamic_linker" = no && can_build_shared=no
15860
15861variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15862if test "$GCC" = yes; then
15863 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15864fi
15865
15866if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15867 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15868fi
15869if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15870 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15871fi
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
cristy0c60a692010-11-04 01:09:47 +000015959
15960
15961
15962
15963
cristy73bd4a52010-10-05 11:24:23 +000015964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15965$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15966hardcode_action=
15967if test -n "$hardcode_libdir_flag_spec" ||
15968 test -n "$runpath_var" ||
15969 test "X$hardcode_automatic" = "Xyes" ; then
15970
15971 # We can hardcode non-existent directories.
15972 if test "$hardcode_direct" != no &&
15973 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15974 # have to relink, otherwise we might link with an installed library
15975 # when we should be linking with a yet-to-be-installed one
15976 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15977 test "$hardcode_minus_L" != no; then
15978 # Linking always hardcodes the temporary library directory.
15979 hardcode_action=relink
15980 else
15981 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15982 hardcode_action=immediate
15983 fi
15984else
15985 # We cannot hardcode anything, or else we can only hardcode existing
15986 # directories.
15987 hardcode_action=unsupported
15988fi
15989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15990$as_echo "$hardcode_action" >&6; }
15991
15992if test "$hardcode_action" = relink ||
15993 test "$inherit_rpath" = yes; then
15994 # Fast installation is not supported
15995 enable_fast_install=no
15996elif test "$shlibpath_overrides_runpath" = yes ||
15997 test "$enable_shared" = no; then
15998 # Fast installation is not necessary
15999 enable_fast_install=needless
16000fi
16001
16002
16003
16004
16005
16006
16007 if test "x$enable_dlopen" != xyes; then
16008 enable_dlopen=unknown
16009 enable_dlopen_self=unknown
16010 enable_dlopen_self_static=unknown
16011else
16012 lt_cv_dlopen=no
16013 lt_cv_dlopen_libs=
16014
16015 case $host_os in
16016 beos*)
16017 lt_cv_dlopen="load_add_on"
16018 lt_cv_dlopen_libs=
16019 lt_cv_dlopen_self=yes
16020 ;;
16021
16022 mingw* | pw32* | cegcc*)
16023 lt_cv_dlopen="LoadLibrary"
16024 lt_cv_dlopen_libs=
16025 ;;
16026
16027 cygwin*)
16028 lt_cv_dlopen="dlopen"
16029 lt_cv_dlopen_libs=
16030 ;;
16031
16032 darwin*)
16033 # if libdl is installed we need to link against it
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16035$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016036if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016037 $as_echo_n "(cached) " >&6
16038else
16039 ac_check_lib_save_LIBS=$LIBS
16040LIBS="-ldl $LIBS"
16041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042/* end confdefs.h. */
16043
16044/* Override any GCC internal prototype to avoid an error.
16045 Use char because int might match the return type of a GCC
16046 builtin and then its argument prototype would still apply. */
16047#ifdef __cplusplus
16048extern "C"
16049#endif
16050char dlopen ();
16051int
16052main ()
16053{
16054return dlopen ();
16055 ;
16056 return 0;
16057}
16058_ACEOF
16059if ac_fn_c_try_link "$LINENO"; then :
16060 ac_cv_lib_dl_dlopen=yes
16061else
16062 ac_cv_lib_dl_dlopen=no
16063fi
16064rm -f core conftest.err conftest.$ac_objext \
16065 conftest$ac_exeext conftest.$ac_ext
16066LIBS=$ac_check_lib_save_LIBS
16067fi
16068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16069$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016070if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016071 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16072else
16073
16074 lt_cv_dlopen="dyld"
16075 lt_cv_dlopen_libs=
16076 lt_cv_dlopen_self=yes
16077
16078fi
16079
16080 ;;
16081
16082 *)
16083 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016084if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016085 lt_cv_dlopen="shl_load"
16086else
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16088$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016089if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016090 $as_echo_n "(cached) " >&6
16091else
16092 ac_check_lib_save_LIBS=$LIBS
16093LIBS="-ldld $LIBS"
16094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16095/* end confdefs.h. */
16096
16097/* Override any GCC internal prototype to avoid an error.
16098 Use char because int might match the return type of a GCC
16099 builtin and then its argument prototype would still apply. */
16100#ifdef __cplusplus
16101extern "C"
16102#endif
16103char shl_load ();
16104int
16105main ()
16106{
16107return shl_load ();
16108 ;
16109 return 0;
16110}
16111_ACEOF
16112if ac_fn_c_try_link "$LINENO"; then :
16113 ac_cv_lib_dld_shl_load=yes
16114else
16115 ac_cv_lib_dld_shl_load=no
16116fi
16117rm -f core conftest.err conftest.$ac_objext \
16118 conftest$ac_exeext conftest.$ac_ext
16119LIBS=$ac_check_lib_save_LIBS
16120fi
16121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16122$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016123if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016124 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16125else
16126 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016127if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016128 lt_cv_dlopen="dlopen"
16129else
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16131$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016132if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016133 $as_echo_n "(cached) " >&6
16134else
16135 ac_check_lib_save_LIBS=$LIBS
16136LIBS="-ldl $LIBS"
16137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16138/* end confdefs.h. */
16139
16140/* Override any GCC internal prototype to avoid an error.
16141 Use char because int might match the return type of a GCC
16142 builtin and then its argument prototype would still apply. */
16143#ifdef __cplusplus
16144extern "C"
16145#endif
16146char dlopen ();
16147int
16148main ()
16149{
16150return dlopen ();
16151 ;
16152 return 0;
16153}
16154_ACEOF
16155if ac_fn_c_try_link "$LINENO"; then :
16156 ac_cv_lib_dl_dlopen=yes
16157else
16158 ac_cv_lib_dl_dlopen=no
16159fi
16160rm -f core conftest.err conftest.$ac_objext \
16161 conftest$ac_exeext conftest.$ac_ext
16162LIBS=$ac_check_lib_save_LIBS
16163fi
16164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16165$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016166if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016167 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16168else
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16170$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016171if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016172 $as_echo_n "(cached) " >&6
16173else
16174 ac_check_lib_save_LIBS=$LIBS
16175LIBS="-lsvld $LIBS"
16176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16177/* end confdefs.h. */
16178
16179/* Override any GCC internal prototype to avoid an error.
16180 Use char because int might match the return type of a GCC
16181 builtin and then its argument prototype would still apply. */
16182#ifdef __cplusplus
16183extern "C"
16184#endif
16185char dlopen ();
16186int
16187main ()
16188{
16189return dlopen ();
16190 ;
16191 return 0;
16192}
16193_ACEOF
16194if ac_fn_c_try_link "$LINENO"; then :
16195 ac_cv_lib_svld_dlopen=yes
16196else
16197 ac_cv_lib_svld_dlopen=no
16198fi
16199rm -f core conftest.err conftest.$ac_objext \
16200 conftest$ac_exeext conftest.$ac_ext
16201LIBS=$ac_check_lib_save_LIBS
16202fi
16203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16204$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016205if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016206 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16207else
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16209$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016210if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016211 $as_echo_n "(cached) " >&6
16212else
16213 ac_check_lib_save_LIBS=$LIBS
16214LIBS="-ldld $LIBS"
16215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16216/* end confdefs.h. */
16217
16218/* Override any GCC internal prototype to avoid an error.
16219 Use char because int might match the return type of a GCC
16220 builtin and then its argument prototype would still apply. */
16221#ifdef __cplusplus
16222extern "C"
16223#endif
16224char dld_link ();
16225int
16226main ()
16227{
16228return dld_link ();
16229 ;
16230 return 0;
16231}
16232_ACEOF
16233if ac_fn_c_try_link "$LINENO"; then :
16234 ac_cv_lib_dld_dld_link=yes
16235else
16236 ac_cv_lib_dld_dld_link=no
16237fi
16238rm -f core conftest.err conftest.$ac_objext \
16239 conftest$ac_exeext conftest.$ac_ext
16240LIBS=$ac_check_lib_save_LIBS
16241fi
16242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16243$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016244if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016245 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16246fi
16247
16248
16249fi
16250
16251
16252fi
16253
16254
16255fi
16256
16257
16258fi
16259
16260
16261fi
16262
16263 ;;
16264 esac
16265
16266 if test "x$lt_cv_dlopen" != xno; then
16267 enable_dlopen=yes
16268 else
16269 enable_dlopen=no
16270 fi
16271
16272 case $lt_cv_dlopen in
16273 dlopen)
16274 save_CPPFLAGS="$CPPFLAGS"
16275 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16276
16277 save_LDFLAGS="$LDFLAGS"
16278 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16279
16280 save_LIBS="$LIBS"
16281 LIBS="$lt_cv_dlopen_libs $LIBS"
16282
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16284$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016285if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016286 $as_echo_n "(cached) " >&6
16287else
16288 if test "$cross_compiling" = yes; then :
16289 lt_cv_dlopen_self=cross
16290else
16291 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16292 lt_status=$lt_dlunknown
16293 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016294#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016295#include "confdefs.h"
16296
16297#if HAVE_DLFCN_H
16298#include <dlfcn.h>
16299#endif
16300
16301#include <stdio.h>
16302
16303#ifdef RTLD_GLOBAL
16304# define LT_DLGLOBAL RTLD_GLOBAL
16305#else
16306# ifdef DL_GLOBAL
16307# define LT_DLGLOBAL DL_GLOBAL
16308# else
16309# define LT_DLGLOBAL 0
16310# endif
16311#endif
16312
16313/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16314 find out it does not work in some platform. */
16315#ifndef LT_DLLAZY_OR_NOW
16316# ifdef RTLD_LAZY
16317# define LT_DLLAZY_OR_NOW RTLD_LAZY
16318# else
16319# ifdef DL_LAZY
16320# define LT_DLLAZY_OR_NOW DL_LAZY
16321# else
16322# ifdef RTLD_NOW
16323# define LT_DLLAZY_OR_NOW RTLD_NOW
16324# else
16325# ifdef DL_NOW
16326# define LT_DLLAZY_OR_NOW DL_NOW
16327# else
16328# define LT_DLLAZY_OR_NOW 0
16329# endif
16330# endif
16331# endif
16332# endif
16333#endif
16334
cristy0c60a692010-11-04 01:09:47 +000016335/* When -fvisbility=hidden is used, assume the code has been annotated
16336 correspondingly for the symbols needed. */
16337#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016338int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016339#endif
16340
cristyda16f162011-02-19 23:52:17 +000016341int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016342int main ()
16343{
16344 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16345 int status = $lt_dlunknown;
16346
16347 if (self)
16348 {
16349 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016350 else
16351 {
16352 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16353 else puts (dlerror ());
16354 }
cristy73bd4a52010-10-05 11:24:23 +000016355 /* dlclose (self); */
16356 }
16357 else
16358 puts (dlerror ());
16359
16360 return status;
16361}
16362_LT_EOF
16363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16364 (eval $ac_link) 2>&5
16365 ac_status=$?
16366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16367 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16368 (./conftest; exit; ) >&5 2>/dev/null
16369 lt_status=$?
16370 case x$lt_status in
16371 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16372 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16373 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16374 esac
16375 else :
16376 # compilation failed
16377 lt_cv_dlopen_self=no
16378 fi
16379fi
16380rm -fr conftest*
16381
16382
16383fi
16384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16385$as_echo "$lt_cv_dlopen_self" >&6; }
16386
16387 if test "x$lt_cv_dlopen_self" = xyes; then
16388 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16390$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016391if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016392 $as_echo_n "(cached) " >&6
16393else
16394 if test "$cross_compiling" = yes; then :
16395 lt_cv_dlopen_self_static=cross
16396else
16397 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16398 lt_status=$lt_dlunknown
16399 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016400#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016401#include "confdefs.h"
16402
16403#if HAVE_DLFCN_H
16404#include <dlfcn.h>
16405#endif
16406
16407#include <stdio.h>
16408
16409#ifdef RTLD_GLOBAL
16410# define LT_DLGLOBAL RTLD_GLOBAL
16411#else
16412# ifdef DL_GLOBAL
16413# define LT_DLGLOBAL DL_GLOBAL
16414# else
16415# define LT_DLGLOBAL 0
16416# endif
16417#endif
16418
16419/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16420 find out it does not work in some platform. */
16421#ifndef LT_DLLAZY_OR_NOW
16422# ifdef RTLD_LAZY
16423# define LT_DLLAZY_OR_NOW RTLD_LAZY
16424# else
16425# ifdef DL_LAZY
16426# define LT_DLLAZY_OR_NOW DL_LAZY
16427# else
16428# ifdef RTLD_NOW
16429# define LT_DLLAZY_OR_NOW RTLD_NOW
16430# else
16431# ifdef DL_NOW
16432# define LT_DLLAZY_OR_NOW DL_NOW
16433# else
16434# define LT_DLLAZY_OR_NOW 0
16435# endif
16436# endif
16437# endif
16438# endif
16439#endif
16440
cristy0c60a692010-11-04 01:09:47 +000016441/* When -fvisbility=hidden is used, assume the code has been annotated
16442 correspondingly for the symbols needed. */
16443#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016444int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016445#endif
16446
cristyda16f162011-02-19 23:52:17 +000016447int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016448int main ()
16449{
16450 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16451 int status = $lt_dlunknown;
16452
16453 if (self)
16454 {
16455 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016456 else
16457 {
16458 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16459 else puts (dlerror ());
16460 }
cristy73bd4a52010-10-05 11:24:23 +000016461 /* dlclose (self); */
16462 }
16463 else
16464 puts (dlerror ());
16465
16466 return status;
16467}
16468_LT_EOF
16469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16470 (eval $ac_link) 2>&5
16471 ac_status=$?
16472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16473 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16474 (./conftest; exit; ) >&5 2>/dev/null
16475 lt_status=$?
16476 case x$lt_status in
16477 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16478 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16479 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16480 esac
16481 else :
16482 # compilation failed
16483 lt_cv_dlopen_self_static=no
16484 fi
16485fi
16486rm -fr conftest*
16487
16488
16489fi
16490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16491$as_echo "$lt_cv_dlopen_self_static" >&6; }
16492 fi
16493
16494 CPPFLAGS="$save_CPPFLAGS"
16495 LDFLAGS="$save_LDFLAGS"
16496 LIBS="$save_LIBS"
16497 ;;
16498 esac
16499
16500 case $lt_cv_dlopen_self in
16501 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16502 *) enable_dlopen_self=unknown ;;
16503 esac
16504
16505 case $lt_cv_dlopen_self_static in
16506 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16507 *) enable_dlopen_self_static=unknown ;;
16508 esac
16509fi
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527striplib=
16528old_striplib=
16529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16530$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16531if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16532 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16533 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16535$as_echo "yes" >&6; }
16536else
16537# FIXME - insert some real tests, host_os isn't really good enough
16538 case $host_os in
16539 darwin*)
16540 if test -n "$STRIP" ; then
16541 striplib="$STRIP -x"
16542 old_striplib="$STRIP -S"
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16544$as_echo "yes" >&6; }
16545 else
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16547$as_echo "no" >&6; }
16548 fi
16549 ;;
16550 *)
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16552$as_echo "no" >&6; }
16553 ;;
16554 esac
16555fi
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568 # Report which library types will actually be built
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16570$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16572$as_echo "$can_build_shared" >&6; }
16573
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16575$as_echo_n "checking whether to build shared libraries... " >&6; }
16576 test "$can_build_shared" = "no" && enable_shared=no
16577
16578 # On AIX, shared libraries and static libraries use the same namespace, and
16579 # are all built from PIC.
16580 case $host_os in
16581 aix3*)
16582 test "$enable_shared" = yes && enable_static=no
16583 if test -n "$RANLIB"; then
16584 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16585 postinstall_cmds='$RANLIB $lib'
16586 fi
16587 ;;
16588
16589 aix[4-9]*)
16590 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16591 test "$enable_shared" = yes && enable_static=no
16592 fi
16593 ;;
16594 esac
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16596$as_echo "$enable_shared" >&6; }
16597
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16599$as_echo_n "checking whether to build static libraries... " >&6; }
16600 # Make sure either enable_shared or enable_static is yes.
16601 test "$enable_shared" = yes || enable_static=yes
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16603$as_echo "$enable_static" >&6; }
16604
16605
16606
16607
16608fi
16609ac_ext=c
16610ac_cpp='$CPP $CPPFLAGS'
16611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16613ac_compiler_gnu=$ac_cv_c_compiler_gnu
16614
16615CC="$lt_save_CC"
16616
cristy0c60a692010-11-04 01:09:47 +000016617 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16618 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16619 (test "X$CXX" != "Xg++"))) ; then
16620 ac_ext=cpp
16621ac_cpp='$CXXCPP $CPPFLAGS'
16622ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16623ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16624ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16626$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16627if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016628 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016629 $as_echo_n "(cached) " >&6
16630else
16631 # Double quotes because CXXCPP needs to be expanded
16632 for CXXCPP in "$CXX -E" "/lib/cpp"
16633 do
16634 ac_preproc_ok=false
16635for ac_cxx_preproc_warn_flag in '' yes
16636do
16637 # Use a header file that comes with gcc, so configuring glibc
16638 # with a fresh cross-compiler works.
16639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16640 # <limits.h> exists even on freestanding compilers.
16641 # On the NeXT, cc -E runs the code through the compiler's parser,
16642 # not just through cpp. "Syntax error" is here to catch this case.
16643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16644/* end confdefs.h. */
16645#ifdef __STDC__
16646# include <limits.h>
16647#else
16648# include <assert.h>
16649#endif
16650 Syntax error
16651_ACEOF
16652if ac_fn_cxx_try_cpp "$LINENO"; then :
16653
16654else
16655 # Broken: fails on valid input.
16656continue
16657fi
cristyda16f162011-02-19 23:52:17 +000016658rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016659
16660 # OK, works on sane cases. Now check whether nonexistent headers
16661 # can be detected and how.
16662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663/* end confdefs.h. */
16664#include <ac_nonexistent.h>
16665_ACEOF
16666if ac_fn_cxx_try_cpp "$LINENO"; then :
16667 # Broken: success on invalid input.
16668continue
16669else
16670 # Passes both tests.
16671ac_preproc_ok=:
16672break
16673fi
cristyda16f162011-02-19 23:52:17 +000016674rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016675
16676done
16677# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016678rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016679if $ac_preproc_ok; then :
16680 break
16681fi
16682
16683 done
16684 ac_cv_prog_CXXCPP=$CXXCPP
16685
16686fi
16687 CXXCPP=$ac_cv_prog_CXXCPP
16688else
16689 ac_cv_prog_CXXCPP=$CXXCPP
16690fi
16691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16692$as_echo "$CXXCPP" >&6; }
16693ac_preproc_ok=false
16694for ac_cxx_preproc_warn_flag in '' yes
16695do
16696 # Use a header file that comes with gcc, so configuring glibc
16697 # with a fresh cross-compiler works.
16698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16699 # <limits.h> exists even on freestanding compilers.
16700 # On the NeXT, cc -E runs the code through the compiler's parser,
16701 # not just through cpp. "Syntax error" is here to catch this case.
16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16703/* end confdefs.h. */
16704#ifdef __STDC__
16705# include <limits.h>
16706#else
16707# include <assert.h>
16708#endif
16709 Syntax error
16710_ACEOF
16711if ac_fn_cxx_try_cpp "$LINENO"; then :
16712
16713else
16714 # Broken: fails on valid input.
16715continue
16716fi
cristyda16f162011-02-19 23:52:17 +000016717rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016718
16719 # OK, works on sane cases. Now check whether nonexistent headers
16720 # can be detected and how.
16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722/* end confdefs.h. */
16723#include <ac_nonexistent.h>
16724_ACEOF
16725if ac_fn_cxx_try_cpp "$LINENO"; then :
16726 # Broken: success on invalid input.
16727continue
16728else
16729 # Passes both tests.
16730ac_preproc_ok=:
16731break
16732fi
cristyda16f162011-02-19 23:52:17 +000016733rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016734
16735done
16736# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016737rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016738if $ac_preproc_ok; then :
16739
16740else
16741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16743as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16744See \`config.log' for more details" "$LINENO" 5; }
16745fi
16746
16747ac_ext=c
16748ac_cpp='$CPP $CPPFLAGS'
16749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16751ac_compiler_gnu=$ac_cv_c_compiler_gnu
16752
16753else
16754 _lt_caught_CXX_error=yes
16755fi
cristy73bd4a52010-10-05 11:24:23 +000016756
16757ac_ext=cpp
16758ac_cpp='$CXXCPP $CPPFLAGS'
16759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16762
16763archive_cmds_need_lc_CXX=no
16764allow_undefined_flag_CXX=
16765always_export_symbols_CXX=no
16766archive_expsym_cmds_CXX=
16767compiler_needs_object_CXX=no
16768export_dynamic_flag_spec_CXX=
16769hardcode_direct_CXX=no
16770hardcode_direct_absolute_CXX=no
16771hardcode_libdir_flag_spec_CXX=
16772hardcode_libdir_flag_spec_ld_CXX=
16773hardcode_libdir_separator_CXX=
16774hardcode_minus_L_CXX=no
16775hardcode_shlibpath_var_CXX=unsupported
16776hardcode_automatic_CXX=no
16777inherit_rpath_CXX=no
16778module_cmds_CXX=
16779module_expsym_cmds_CXX=
16780link_all_deplibs_CXX=unknown
16781old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016782reload_flag_CXX=$reload_flag
16783reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016784no_undefined_flag_CXX=
16785whole_archive_flag_spec_CXX=
16786enable_shared_with_static_runtimes_CXX=no
16787
16788# Source file extension for C++ test sources.
16789ac_ext=cpp
16790
16791# Object file extension for compiled C++ test sources.
16792objext=o
16793objext_CXX=$objext
16794
16795# No sense in running all these tests if we already determined that
16796# the CXX compiler isn't working. Some variables (like enable_shared)
16797# are currently assumed to apply to all compilers on this platform,
16798# and will be corrupted by setting them based on a non-working compiler.
16799if test "$_lt_caught_CXX_error" != yes; then
16800 # Code to be used in simple compile tests
16801 lt_simple_compile_test_code="int some_variable = 0;"
16802
16803 # Code to be used in simple link tests
16804 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16805
16806 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16807
16808
16809
16810
16811
16812
16813# If no C compiler was specified, use CC.
16814LTCC=${LTCC-"$CC"}
16815
16816# If no C compiler flags were specified, use CFLAGS.
16817LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16818
16819# Allow CC to be a program name with arguments.
16820compiler=$CC
16821
16822
16823 # save warnings/boilerplate of simple test code
16824 ac_outfile=conftest.$ac_objext
16825echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16826eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16827_lt_compiler_boilerplate=`cat conftest.err`
16828$RM conftest*
16829
16830 ac_outfile=conftest.$ac_objext
16831echo "$lt_simple_link_test_code" >conftest.$ac_ext
16832eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16833_lt_linker_boilerplate=`cat conftest.err`
16834$RM -r conftest*
16835
16836
16837 # Allow CC to be a program name with arguments.
16838 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016839 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016840 lt_save_LD=$LD
16841 lt_save_GCC=$GCC
16842 GCC=$GXX
16843 lt_save_with_gnu_ld=$with_gnu_ld
16844 lt_save_path_LD=$lt_cv_path_LD
16845 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16846 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16847 else
16848 $as_unset lt_cv_prog_gnu_ld
16849 fi
16850 if test -n "${lt_cv_path_LDCXX+set}"; then
16851 lt_cv_path_LD=$lt_cv_path_LDCXX
16852 else
16853 $as_unset lt_cv_path_LD
16854 fi
16855 test -z "${LDCXX+set}" || LD=$LDCXX
16856 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016857 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016858 compiler=$CC
16859 compiler_CXX=$CC
16860 for cc_temp in $compiler""; do
16861 case $cc_temp in
16862 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16863 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16864 \-*) ;;
16865 *) break;;
16866 esac
16867done
cristy0c60a692010-11-04 01:09:47 +000016868cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016869
16870
16871 if test -n "$compiler"; then
16872 # We don't want -fno-exception when compiling C++ code, so set the
16873 # no_builtin_flag separately
16874 if test "$GXX" = yes; then
16875 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16876 else
16877 lt_prog_compiler_no_builtin_flag_CXX=
16878 fi
16879
16880 if test "$GXX" = yes; then
16881 # Set up default GNU C++ configuration
16882
16883
16884
16885# Check whether --with-gnu-ld was given.
16886if test "${with_gnu_ld+set}" = set; then :
16887 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16888else
16889 with_gnu_ld=no
16890fi
16891
16892ac_prog=ld
16893if test "$GCC" = yes; then
16894 # Check if gcc -print-prog-name=ld gives a path.
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16896$as_echo_n "checking for ld used by $CC... " >&6; }
16897 case $host in
16898 *-*-mingw*)
16899 # gcc leaves a trailing carriage return which upsets mingw
16900 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16901 *)
16902 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16903 esac
16904 case $ac_prog in
16905 # Accept absolute paths.
16906 [\\/]* | ?:[\\/]*)
16907 re_direlt='/[^/][^/]*/\.\./'
16908 # Canonicalize the pathname of ld
16909 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16910 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16911 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16912 done
16913 test -z "$LD" && LD="$ac_prog"
16914 ;;
16915 "")
16916 # If it fails, then pretend we aren't using GCC.
16917 ac_prog=ld
16918 ;;
16919 *)
16920 # If it is relative, then search for the first ld in PATH.
16921 with_gnu_ld=unknown
16922 ;;
16923 esac
16924elif test "$with_gnu_ld" = yes; then
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16926$as_echo_n "checking for GNU ld... " >&6; }
16927else
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16929$as_echo_n "checking for non-GNU ld... " >&6; }
16930fi
cristyda16f162011-02-19 23:52:17 +000016931if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016932 $as_echo_n "(cached) " >&6
16933else
16934 if test -z "$LD"; then
16935 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16936 for ac_dir in $PATH; do
16937 IFS="$lt_save_ifs"
16938 test -z "$ac_dir" && ac_dir=.
16939 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16940 lt_cv_path_LD="$ac_dir/$ac_prog"
16941 # Check to see if the program is GNU ld. I'd rather use --version,
16942 # but apparently some variants of GNU ld only accept -v.
16943 # Break only if it was the GNU/non-GNU ld that we prefer.
16944 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16945 *GNU* | *'with BFD'*)
16946 test "$with_gnu_ld" != no && break
16947 ;;
16948 *)
16949 test "$with_gnu_ld" != yes && break
16950 ;;
16951 esac
16952 fi
16953 done
16954 IFS="$lt_save_ifs"
16955else
16956 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16957fi
16958fi
16959
16960LD="$lt_cv_path_LD"
16961if test -n "$LD"; then
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16963$as_echo "$LD" >&6; }
16964else
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16966$as_echo "no" >&6; }
16967fi
cristy98dddb52010-11-04 00:30:15 +000016968test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16970$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016971if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016972 $as_echo_n "(cached) " >&6
16973else
16974 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16975case `$LD -v 2>&1 </dev/null` in
16976*GNU* | *'with BFD'*)
16977 lt_cv_prog_gnu_ld=yes
16978 ;;
16979*)
16980 lt_cv_prog_gnu_ld=no
16981 ;;
16982esac
16983fi
16984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16985$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16986with_gnu_ld=$lt_cv_prog_gnu_ld
16987
16988
16989
16990
16991
16992
16993
16994 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16995 # archiving commands below assume that GNU ld is being used.
16996 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000016997 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16998 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 +000016999
17000 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17001 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17002
17003 # If archive_cmds runs LD, not CC, wlarc should be empty
17004 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17005 # investigate it a little bit more. (MM)
17006 wlarc='${wl}'
17007
17008 # ancient GNU ld didn't support --whole-archive et. al.
17009 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17010 $GREP 'no-whole-archive' > /dev/null; then
17011 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17012 else
17013 whole_archive_flag_spec_CXX=
17014 fi
17015 else
17016 with_gnu_ld=no
17017 wlarc=
17018
17019 # A generic and very simple default shared library creation
17020 # command for GNU C++ for the case where it uses the native
17021 # linker, instead of GNU ld. If possible, this setting should
17022 # overridden to take advantage of the native linker features on
17023 # the platform it is being used on.
17024 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17025 fi
17026
17027 # Commands to make compiler produce verbose output that lists
17028 # what "hidden" libraries, object files and flags are used when
17029 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017030 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017031
17032 else
17033 GXX=no
17034 with_gnu_ld=no
17035 wlarc=
17036 fi
17037
17038 # PORTME: fill in a description of your system's C++ link characteristics
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17040$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17041 ld_shlibs_CXX=yes
17042 case $host_os in
17043 aix3*)
17044 # FIXME: insert proper C++ library support
17045 ld_shlibs_CXX=no
17046 ;;
17047 aix[4-9]*)
17048 if test "$host_cpu" = ia64; then
17049 # On IA64, the linker does run time linking by default, so we don't
17050 # have to do anything special.
17051 aix_use_runtimelinking=no
17052 exp_sym_flag='-Bexport'
17053 no_entry_flag=""
17054 else
17055 aix_use_runtimelinking=no
17056
17057 # Test if we are trying to use run time linking or normal
17058 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17059 # need to do runtime linking.
17060 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17061 for ld_flag in $LDFLAGS; do
17062 case $ld_flag in
17063 *-brtl*)
17064 aix_use_runtimelinking=yes
17065 break
17066 ;;
17067 esac
17068 done
17069 ;;
17070 esac
17071
17072 exp_sym_flag='-bexport'
17073 no_entry_flag='-bnoentry'
17074 fi
17075
17076 # When large executables or shared objects are built, AIX ld can
17077 # have problems creating the table of contents. If linking a library
17078 # or program results in "error TOC overflow" add -mminimal-toc to
17079 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17080 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17081
17082 archive_cmds_CXX=''
17083 hardcode_direct_CXX=yes
17084 hardcode_direct_absolute_CXX=yes
17085 hardcode_libdir_separator_CXX=':'
17086 link_all_deplibs_CXX=yes
17087 file_list_spec_CXX='${wl}-f,'
17088
17089 if test "$GXX" = yes; then
17090 case $host_os in aix4.[012]|aix4.[012].*)
17091 # We only want to do this on AIX 4.2 and lower, the check
17092 # below for broken collect2 doesn't work under 4.3+
17093 collect2name=`${CC} -print-prog-name=collect2`
17094 if test -f "$collect2name" &&
17095 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17096 then
17097 # We have reworked collect2
17098 :
17099 else
17100 # We have old collect2
17101 hardcode_direct_CXX=unsupported
17102 # It fails to find uninstalled libraries when the uninstalled
17103 # path is not listed in the libpath. Setting hardcode_minus_L
17104 # to unsupported forces relinking
17105 hardcode_minus_L_CXX=yes
17106 hardcode_libdir_flag_spec_CXX='-L$libdir'
17107 hardcode_libdir_separator_CXX=
17108 fi
17109 esac
17110 shared_flag='-shared'
17111 if test "$aix_use_runtimelinking" = yes; then
17112 shared_flag="$shared_flag "'${wl}-G'
17113 fi
17114 else
17115 # not using gcc
17116 if test "$host_cpu" = ia64; then
17117 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17118 # chokes on -Wl,-G. The following line is correct:
17119 shared_flag='-G'
17120 else
17121 if test "$aix_use_runtimelinking" = yes; then
17122 shared_flag='${wl}-G'
17123 else
17124 shared_flag='${wl}-bM:SRE'
17125 fi
17126 fi
17127 fi
17128
17129 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17130 # It seems that -bexpall does not export symbols beginning with
17131 # underscore (_), so it is better to generate a list of symbols to
17132 # export.
17133 always_export_symbols_CXX=yes
17134 if test "$aix_use_runtimelinking" = yes; then
17135 # Warning - without using the other runtime loading flags (-brtl),
17136 # -berok will link without error, but may produce a broken library.
17137 allow_undefined_flag_CXX='-berok'
17138 # Determine the default libpath from the value encoded in an empty
17139 # executable.
cristyda16f162011-02-19 23:52:17 +000017140 if test "${lt_cv_aix_libpath+set}" = set; then
17141 aix_libpath=$lt_cv_aix_libpath
17142else
17143 if ${lt_cv_aix_libpath__CXX+:} false; then :
17144 $as_echo_n "(cached) " >&6
17145else
17146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017147/* end confdefs.h. */
17148
17149int
17150main ()
17151{
17152
17153 ;
17154 return 0;
17155}
17156_ACEOF
17157if ac_fn_cxx_try_link "$LINENO"; then :
17158
cristyda16f162011-02-19 23:52:17 +000017159 lt_aix_libpath_sed='
17160 /Import File Strings/,/^$/ {
17161 /^0/ {
17162 s/^0 *\([^ ]*\) *$/\1/
17163 p
17164 }
17165 }'
17166 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17167 # Check for a 64-bit object if we didn't find anything.
17168 if test -z "$lt_cv_aix_libpath__CXX"; then
17169 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17170 fi
cristy73bd4a52010-10-05 11:24:23 +000017171fi
17172rm -f core conftest.err conftest.$ac_objext \
17173 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017174 if test -z "$lt_cv_aix_libpath__CXX"; then
17175 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17176 fi
17177
17178fi
17179
17180 aix_libpath=$lt_cv_aix_libpath__CXX
17181fi
cristy73bd4a52010-10-05 11:24:23 +000017182
17183 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17184
cristy0c60a692010-11-04 01:09:47 +000017185 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 +000017186 else
17187 if test "$host_cpu" = ia64; then
17188 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17189 allow_undefined_flag_CXX="-z nodefs"
17190 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"
17191 else
17192 # Determine the default libpath from the value encoded in an
17193 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017194 if test "${lt_cv_aix_libpath+set}" = set; then
17195 aix_libpath=$lt_cv_aix_libpath
17196else
17197 if ${lt_cv_aix_libpath__CXX+:} false; then :
17198 $as_echo_n "(cached) " >&6
17199else
17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017201/* end confdefs.h. */
17202
17203int
17204main ()
17205{
17206
17207 ;
17208 return 0;
17209}
17210_ACEOF
17211if ac_fn_cxx_try_link "$LINENO"; then :
17212
cristyda16f162011-02-19 23:52:17 +000017213 lt_aix_libpath_sed='
17214 /Import File Strings/,/^$/ {
17215 /^0/ {
17216 s/^0 *\([^ ]*\) *$/\1/
17217 p
17218 }
17219 }'
17220 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17221 # Check for a 64-bit object if we didn't find anything.
17222 if test -z "$lt_cv_aix_libpath__CXX"; then
17223 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17224 fi
cristy73bd4a52010-10-05 11:24:23 +000017225fi
17226rm -f core conftest.err conftest.$ac_objext \
17227 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017228 if test -z "$lt_cv_aix_libpath__CXX"; then
17229 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17230 fi
17231
17232fi
17233
17234 aix_libpath=$lt_cv_aix_libpath__CXX
17235fi
cristy73bd4a52010-10-05 11:24:23 +000017236
17237 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17238 # Warning - without using the other run time loading flags,
17239 # -berok will link without error, but may produce a broken library.
17240 no_undefined_flag_CXX=' ${wl}-bernotok'
17241 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017242 if test "$with_gnu_ld" = yes; then
17243 # We only use this code for GNU lds that support --whole-archive.
17244 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17245 else
17246 # Exported symbols can be pulled into shared objects from archives
17247 whole_archive_flag_spec_CXX='$convenience'
17248 fi
cristy73bd4a52010-10-05 11:24:23 +000017249 archive_cmds_need_lc_CXX=yes
17250 # This is similar to how AIX traditionally builds its shared
17251 # libraries.
17252 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'
17253 fi
17254 fi
17255 ;;
17256
17257 beos*)
17258 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17259 allow_undefined_flag_CXX=unsupported
17260 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17261 # support --undefined. This deserves some investigation. FIXME
17262 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17263 else
17264 ld_shlibs_CXX=no
17265 fi
17266 ;;
17267
17268 chorus*)
17269 case $cc_basename in
17270 *)
17271 # FIXME: insert proper C++ library support
17272 ld_shlibs_CXX=no
17273 ;;
17274 esac
17275 ;;
17276
17277 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017278 case $GXX,$cc_basename in
17279 ,cl* | no,cl*)
17280 # Native MSVC
17281 # hardcode_libdir_flag_spec is actually meaningless, as there is
17282 # no search path for DLLs.
17283 hardcode_libdir_flag_spec_CXX=' '
17284 allow_undefined_flag_CXX=unsupported
17285 always_export_symbols_CXX=yes
17286 file_list_spec_CXX='@'
17287 # Tell ltmain to make .lib files, not .a files.
17288 libext=lib
17289 # Tell ltmain to make .dll files, not .so files.
17290 shrext_cmds=".dll"
17291 # FIXME: Setting linknames here is a bad hack.
17292 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17293 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17294 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17295 else
17296 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17297 fi~
17298 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17299 linknames='
17300 # The linker will not automatically build a static lib if we build a DLL.
17301 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17302 enable_shared_with_static_runtimes_CXX=yes
17303 # Don't use ranlib
17304 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17305 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17306 lt_tool_outputfile="@TOOL_OUTPUT@"~
17307 case $lt_outputfile in
17308 *.exe|*.EXE) ;;
17309 *)
17310 lt_outputfile="$lt_outputfile.exe"
17311 lt_tool_outputfile="$lt_tool_outputfile.exe"
17312 ;;
17313 esac~
17314 func_to_tool_file "$lt_outputfile"~
17315 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17316 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17317 $RM "$lt_outputfile.manifest";
17318 fi'
17319 ;;
17320 *)
17321 # g++
17322 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17323 # as there is no search path for DLLs.
17324 hardcode_libdir_flag_spec_CXX='-L$libdir'
17325 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17326 allow_undefined_flag_CXX=unsupported
17327 always_export_symbols_CXX=no
17328 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017329
cristyda16f162011-02-19 23:52:17 +000017330 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17331 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'
17332 # If the export-symbols file already is a .def file (1st line
17333 # is EXPORTS), use it as is; otherwise, prepend...
17334 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17335 cp $export_symbols $output_objdir/$soname.def;
17336 else
17337 echo EXPORTS > $output_objdir/$soname.def;
17338 cat $export_symbols >> $output_objdir/$soname.def;
17339 fi~
17340 $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'
17341 else
17342 ld_shlibs_CXX=no
17343 fi
17344 ;;
17345 esac
17346 ;;
cristy73bd4a52010-10-05 11:24:23 +000017347 darwin* | rhapsody*)
17348
17349
17350 archive_cmds_need_lc_CXX=no
17351 hardcode_direct_CXX=no
17352 hardcode_automatic_CXX=yes
17353 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017354 if test "$lt_cv_ld_force_load" = "yes"; then
17355 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\"`'
17356 else
17357 whole_archive_flag_spec_CXX=''
17358 fi
cristy73bd4a52010-10-05 11:24:23 +000017359 link_all_deplibs_CXX=yes
17360 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17361 case $cc_basename in
17362 ifort*) _lt_dar_can_shared=yes ;;
17363 *) _lt_dar_can_shared=$GCC ;;
17364 esac
17365 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017366 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017367 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}"
17368 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17369 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}"
17370 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}"
17371 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17372 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}"
17373 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}"
17374 fi
17375
17376 else
17377 ld_shlibs_CXX=no
17378 fi
17379
17380 ;;
17381
17382 dgux*)
17383 case $cc_basename in
17384 ec++*)
17385 # FIXME: insert proper C++ library support
17386 ld_shlibs_CXX=no
17387 ;;
17388 ghcx*)
17389 # Green Hills C++ Compiler
17390 # FIXME: insert proper C++ library support
17391 ld_shlibs_CXX=no
17392 ;;
17393 *)
17394 # FIXME: insert proper C++ library support
17395 ld_shlibs_CXX=no
17396 ;;
17397 esac
17398 ;;
17399
17400 freebsd[12]*)
17401 # C++ shared libraries reported to be fairly broken before
17402 # switch to ELF
17403 ld_shlibs_CXX=no
17404 ;;
17405
17406 freebsd-elf*)
17407 archive_cmds_need_lc_CXX=no
17408 ;;
17409
17410 freebsd* | dragonfly*)
17411 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17412 # conventions
17413 ld_shlibs_CXX=yes
17414 ;;
17415
17416 gnu*)
17417 ;;
17418
cristy0c60a692010-11-04 01:09:47 +000017419 haiku*)
17420 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17421 link_all_deplibs_CXX=yes
17422 ;;
17423
cristy73bd4a52010-10-05 11:24:23 +000017424 hpux9*)
17425 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17426 hardcode_libdir_separator_CXX=:
17427 export_dynamic_flag_spec_CXX='${wl}-E'
17428 hardcode_direct_CXX=yes
17429 hardcode_minus_L_CXX=yes # Not in the search PATH,
17430 # but as the default
17431 # location of the library.
17432
17433 case $cc_basename in
17434 CC*)
17435 # FIXME: insert proper C++ library support
17436 ld_shlibs_CXX=no
17437 ;;
17438 aCC*)
17439 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'
17440 # Commands to make compiler produce verbose output that lists
17441 # what "hidden" libraries, object files and flags are used when
17442 # linking a shared library.
17443 #
17444 # There doesn't appear to be a way to prevent this compiler from
17445 # explicitly linking system object files so we need to strip them
17446 # from the output so that they don't get included in the library
17447 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017448 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 +000017449 ;;
17450 *)
17451 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017452 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 +000017453 else
17454 # FIXME: insert proper C++ library support
17455 ld_shlibs_CXX=no
17456 fi
17457 ;;
17458 esac
17459 ;;
17460
17461 hpux10*|hpux11*)
17462 if test $with_gnu_ld = no; then
17463 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17464 hardcode_libdir_separator_CXX=:
17465
17466 case $host_cpu in
17467 hppa*64*|ia64*)
17468 ;;
17469 *)
17470 export_dynamic_flag_spec_CXX='${wl}-E'
17471 ;;
17472 esac
17473 fi
17474 case $host_cpu in
17475 hppa*64*|ia64*)
17476 hardcode_direct_CXX=no
17477 hardcode_shlibpath_var_CXX=no
17478 ;;
17479 *)
17480 hardcode_direct_CXX=yes
17481 hardcode_direct_absolute_CXX=yes
17482 hardcode_minus_L_CXX=yes # Not in the search PATH,
17483 # but as the default
17484 # location of the library.
17485 ;;
17486 esac
17487
17488 case $cc_basename in
17489 CC*)
17490 # FIXME: insert proper C++ library support
17491 ld_shlibs_CXX=no
17492 ;;
17493 aCC*)
17494 case $host_cpu in
17495 hppa*64*)
17496 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17497 ;;
17498 ia64*)
17499 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17500 ;;
17501 *)
17502 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17503 ;;
17504 esac
17505 # Commands to make compiler produce verbose output that lists
17506 # what "hidden" libraries, object files and flags are used when
17507 # linking a shared library.
17508 #
17509 # There doesn't appear to be a way to prevent this compiler from
17510 # explicitly linking system object files so we need to strip them
17511 # from the output so that they don't get included in the library
17512 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017513 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 +000017514 ;;
17515 *)
17516 if test "$GXX" = yes; then
17517 if test $with_gnu_ld = no; then
17518 case $host_cpu in
17519 hppa*64*)
17520 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17521 ;;
17522 ia64*)
cristyda16f162011-02-19 23:52:17 +000017523 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 +000017524 ;;
17525 *)
cristyda16f162011-02-19 23:52:17 +000017526 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 +000017527 ;;
17528 esac
17529 fi
17530 else
17531 # FIXME: insert proper C++ library support
17532 ld_shlibs_CXX=no
17533 fi
17534 ;;
17535 esac
17536 ;;
17537
17538 interix[3-9]*)
17539 hardcode_direct_CXX=no
17540 hardcode_shlibpath_var_CXX=no
17541 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17542 export_dynamic_flag_spec_CXX='${wl}-E'
17543 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17544 # Instead, shared libraries are loaded at an image base (0x10000000 by
17545 # default) and relocated if they conflict, which is a slow very memory
17546 # consuming and fragmenting process. To avoid this, we pick a random,
17547 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17548 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17549 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'
17550 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'
17551 ;;
17552 irix5* | irix6*)
17553 case $cc_basename in
17554 CC*)
17555 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017556 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 +000017557
17558 # Archives containing C++ object files must be created using
17559 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17560 # necessary to make sure instantiated templates are included
17561 # in the archive.
17562 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17563 ;;
17564 *)
17565 if test "$GXX" = yes; then
17566 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017567 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 +000017568 else
cristyda16f162011-02-19 23:52:17 +000017569 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 +000017570 fi
17571 fi
17572 link_all_deplibs_CXX=yes
17573 ;;
17574 esac
17575 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17576 hardcode_libdir_separator_CXX=:
17577 inherit_rpath_CXX=yes
17578 ;;
17579
cristy0c60a692010-11-04 01:09:47 +000017580 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017581 case $cc_basename in
17582 KCC*)
17583 # Kuck and Associates, Inc. (KAI) C++ Compiler
17584
17585 # KCC will only create a shared library if the output file
17586 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17587 # to its proper name (with version) after linking.
17588 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'
17589 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'
17590 # Commands to make compiler produce verbose output that lists
17591 # what "hidden" libraries, object files and flags are used when
17592 # linking a shared library.
17593 #
17594 # There doesn't appear to be a way to prevent this compiler from
17595 # explicitly linking system object files so we need to strip them
17596 # from the output so that they don't get included in the library
17597 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017598 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 +000017599
17600 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17601 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17602
17603 # Archives containing C++ object files must be created using
17604 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17605 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17606 ;;
17607 icpc* | ecpc* )
17608 # Intel C++
17609 with_gnu_ld=yes
17610 # version 8.0 and above of icpc choke on multiply defined symbols
17611 # if we add $predep_objects and $postdep_objects, however 7.1 and
17612 # earlier do not add the objects themselves.
17613 case `$CC -V 2>&1` in
17614 *"Version 7."*)
17615 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17616 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'
17617 ;;
17618 *) # Version 8.0 or newer
17619 tmp_idyn=
17620 case $host_cpu in
17621 ia64*) tmp_idyn=' -i_dynamic';;
17622 esac
17623 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17624 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'
17625 ;;
17626 esac
17627 archive_cmds_need_lc_CXX=no
17628 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17629 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17630 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17631 ;;
17632 pgCC* | pgcpp*)
17633 # Portland Group C++ compiler
17634 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017635 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017636 prelink_cmds_CXX='tpldir=Template.dir~
17637 rm -rf $tpldir~
17638 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017639 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017640 old_archive_cmds_CXX='tpldir=Template.dir~
17641 rm -rf $tpldir~
17642 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017643 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017644 $RANLIB $oldlib'
17645 archive_cmds_CXX='tpldir=Template.dir~
17646 rm -rf $tpldir~
17647 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017648 $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 +000017649 archive_expsym_cmds_CXX='tpldir=Template.dir~
17650 rm -rf $tpldir~
17651 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017652 $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 +000017653 ;;
cristy0c60a692010-11-04 01:09:47 +000017654 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017655 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17656 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'
17657 ;;
17658 esac
17659
17660 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17661 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017662 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 +000017663 ;;
17664 cxx*)
17665 # Compaq C++
17666 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17667 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'
17668
17669 runpath_var=LD_RUN_PATH
17670 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17671 hardcode_libdir_separator_CXX=:
17672
17673 # Commands to make compiler produce verbose output that lists
17674 # what "hidden" libraries, object files and flags are used when
17675 # linking a shared library.
17676 #
17677 # There doesn't appear to be a way to prevent this compiler from
17678 # explicitly linking system object files so we need to strip them
17679 # from the output so that they don't get included in the library
17680 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017681 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 +000017682 ;;
cristy0c60a692010-11-04 01:09:47 +000017683 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017684 # IBM XL 8.0 on PPC, with GNU ld
17685 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17686 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17687 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17688 if test "x$supports_anon_versioning" = xyes; then
17689 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17690 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17691 echo "local: *; };" >> $output_objdir/$libname.ver~
17692 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17693 fi
17694 ;;
17695 *)
17696 case `$CC -V 2>&1 | sed 5q` in
17697 *Sun\ C*)
17698 # Sun C++ 5.9
17699 no_undefined_flag_CXX=' -zdefs'
17700 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17701 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'
17702 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017703 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 +000017704 compiler_needs_object_CXX=yes
17705
17706 # Not sure whether something based on
17707 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17708 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017709 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017710
17711 # Archives containing C++ object files must be created using
17712 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17713 # necessary to make sure instantiated templates are included
17714 # in the archive.
17715 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17716 ;;
17717 esac
17718 ;;
17719 esac
17720 ;;
17721
17722 lynxos*)
17723 # FIXME: insert proper C++ library support
17724 ld_shlibs_CXX=no
17725 ;;
17726
17727 m88k*)
17728 # FIXME: insert proper C++ library support
17729 ld_shlibs_CXX=no
17730 ;;
17731
17732 mvs*)
17733 case $cc_basename in
17734 cxx*)
17735 # FIXME: insert proper C++ library support
17736 ld_shlibs_CXX=no
17737 ;;
17738 *)
17739 # FIXME: insert proper C++ library support
17740 ld_shlibs_CXX=no
17741 ;;
17742 esac
17743 ;;
17744
17745 netbsd*)
17746 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17747 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17748 wlarc=
17749 hardcode_libdir_flag_spec_CXX='-R$libdir'
17750 hardcode_direct_CXX=yes
17751 hardcode_shlibpath_var_CXX=no
17752 fi
17753 # Workaround some broken pre-1.5 toolchains
17754 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17755 ;;
17756
17757 *nto* | *qnx*)
17758 ld_shlibs_CXX=yes
17759 ;;
17760
17761 openbsd2*)
17762 # C++ shared libraries are fairly broken
17763 ld_shlibs_CXX=no
17764 ;;
17765
17766 openbsd*)
17767 if test -f /usr/libexec/ld.so; then
17768 hardcode_direct_CXX=yes
17769 hardcode_shlibpath_var_CXX=no
17770 hardcode_direct_absolute_CXX=yes
17771 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17772 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17773 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17774 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17775 export_dynamic_flag_spec_CXX='${wl}-E'
17776 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17777 fi
cristy0c60a692010-11-04 01:09:47 +000017778 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017779 else
17780 ld_shlibs_CXX=no
17781 fi
17782 ;;
17783
17784 osf3* | osf4* | osf5*)
17785 case $cc_basename in
17786 KCC*)
17787 # Kuck and Associates, Inc. (KAI) C++ Compiler
17788
17789 # KCC will only create a shared library if the output file
17790 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17791 # to its proper name (with version) after linking.
17792 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'
17793
17794 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17795 hardcode_libdir_separator_CXX=:
17796
17797 # Archives containing C++ object files must be created using
17798 # the KAI C++ compiler.
17799 case $host in
17800 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17801 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17802 esac
17803 ;;
17804 RCC*)
17805 # Rational C++ 2.4.1
17806 # FIXME: insert proper C++ library support
17807 ld_shlibs_CXX=no
17808 ;;
17809 cxx*)
17810 case $host in
17811 osf3*)
17812 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017813 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 +000017814 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17815 ;;
17816 *)
17817 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017818 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 +000017819 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17820 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017821 $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 +000017822 $RM $lib.exp'
17823 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17824 ;;
17825 esac
17826
17827 hardcode_libdir_separator_CXX=:
17828
17829 # Commands to make compiler produce verbose output that lists
17830 # what "hidden" libraries, object files and flags are used when
17831 # linking a shared library.
17832 #
17833 # There doesn't appear to be a way to prevent this compiler from
17834 # explicitly linking system object files so we need to strip them
17835 # from the output so that they don't get included in the library
17836 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017837 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 +000017838 ;;
17839 *)
17840 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17841 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17842 case $host in
17843 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017844 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 +000017845 ;;
17846 *)
cristyda16f162011-02-19 23:52:17 +000017847 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 +000017848 ;;
17849 esac
17850
17851 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17852 hardcode_libdir_separator_CXX=:
17853
17854 # Commands to make compiler produce verbose output that lists
17855 # what "hidden" libraries, object files and flags are used when
17856 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017857 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017858
17859 else
17860 # FIXME: insert proper C++ library support
17861 ld_shlibs_CXX=no
17862 fi
17863 ;;
17864 esac
17865 ;;
17866
17867 psos*)
17868 # FIXME: insert proper C++ library support
17869 ld_shlibs_CXX=no
17870 ;;
17871
17872 sunos4*)
17873 case $cc_basename in
17874 CC*)
17875 # Sun C++ 4.x
17876 # FIXME: insert proper C++ library support
17877 ld_shlibs_CXX=no
17878 ;;
17879 lcc*)
17880 # Lucid
17881 # FIXME: insert proper C++ library support
17882 ld_shlibs_CXX=no
17883 ;;
17884 *)
17885 # FIXME: insert proper C++ library support
17886 ld_shlibs_CXX=no
17887 ;;
17888 esac
17889 ;;
17890
17891 solaris*)
17892 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017893 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017894 # Sun C++ 4.2, 5.x and Centerline C++
17895 archive_cmds_need_lc_CXX=yes
17896 no_undefined_flag_CXX=' -zdefs'
17897 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17898 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17899 $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'
17900
17901 hardcode_libdir_flag_spec_CXX='-R$libdir'
17902 hardcode_shlibpath_var_CXX=no
17903 case $host_os in
17904 solaris2.[0-5] | solaris2.[0-5].*) ;;
17905 *)
17906 # The compiler driver will combine and reorder linker options,
17907 # but understands `-z linker_flag'.
17908 # Supported since Solaris 2.6 (maybe 2.5.1?)
17909 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17910 ;;
17911 esac
17912 link_all_deplibs_CXX=yes
17913
cristy0c60a692010-11-04 01:09:47 +000017914 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017915
17916 # Archives containing C++ object files must be created using
17917 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17918 # necessary to make sure instantiated templates are included
17919 # in the archive.
17920 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17921 ;;
17922 gcx*)
17923 # Green Hills C++ Compiler
17924 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17925
17926 # The C++ compiler must be used to create the archive.
17927 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17928 ;;
17929 *)
17930 # GNU C++ compiler with Solaris linker
17931 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17932 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17933 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000017934 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 +000017935 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 +000017936 $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 +000017937
17938 # Commands to make compiler produce verbose output that lists
17939 # what "hidden" libraries, object files and flags are used when
17940 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017941 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017942 else
17943 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17944 # platform.
17945 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17946 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17947 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17948
17949 # Commands to make compiler produce verbose output that lists
17950 # what "hidden" libraries, object files and flags are used when
17951 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017952 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017953 fi
17954
17955 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17956 case $host_os in
17957 solaris2.[0-5] | solaris2.[0-5].*) ;;
17958 *)
17959 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17960 ;;
17961 esac
17962 fi
17963 ;;
17964 esac
17965 ;;
17966
17967 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17968 no_undefined_flag_CXX='${wl}-z,text'
17969 archive_cmds_need_lc_CXX=no
17970 hardcode_shlibpath_var_CXX=no
17971 runpath_var='LD_RUN_PATH'
17972
17973 case $cc_basename in
17974 CC*)
17975 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17976 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17977 ;;
17978 *)
17979 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17980 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17981 ;;
17982 esac
17983 ;;
17984
17985 sysv5* | sco3.2v5* | sco5v6*)
17986 # Note: We can NOT use -z defs as we might desire, because we do not
17987 # link with -lc, and that would cause any symbols used from libc to
17988 # always be unresolved, which means just about no library would
17989 # ever link correctly. If we're not using GNU ld we use -z text
17990 # though, which does catch some bad symbols but isn't as heavy-handed
17991 # as -z defs.
17992 no_undefined_flag_CXX='${wl}-z,text'
17993 allow_undefined_flag_CXX='${wl}-z,nodefs'
17994 archive_cmds_need_lc_CXX=no
17995 hardcode_shlibpath_var_CXX=no
17996 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17997 hardcode_libdir_separator_CXX=':'
17998 link_all_deplibs_CXX=yes
17999 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18000 runpath_var='LD_RUN_PATH'
18001
18002 case $cc_basename in
18003 CC*)
18004 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18005 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 +000018006 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18007 '"$old_archive_cmds_CXX"
18008 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18009 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018010 ;;
18011 *)
18012 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18013 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18014 ;;
18015 esac
18016 ;;
18017
18018 tandem*)
18019 case $cc_basename in
18020 NCC*)
18021 # NonStop-UX NCC 3.20
18022 # FIXME: insert proper C++ library support
18023 ld_shlibs_CXX=no
18024 ;;
18025 *)
18026 # FIXME: insert proper C++ library support
18027 ld_shlibs_CXX=no
18028 ;;
18029 esac
18030 ;;
18031
18032 vxworks*)
18033 # FIXME: insert proper C++ library support
18034 ld_shlibs_CXX=no
18035 ;;
18036
18037 *)
18038 # FIXME: insert proper C++ library support
18039 ld_shlibs_CXX=no
18040 ;;
18041 esac
18042
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18044$as_echo "$ld_shlibs_CXX" >&6; }
18045 test "$ld_shlibs_CXX" = no && can_build_shared=no
18046
18047 GCC_CXX="$GXX"
18048 LD_CXX="$LD"
18049
18050 ## CAVEAT EMPTOR:
18051 ## There is no encapsulation within the following macros, do not change
18052 ## the running order or otherwise move them around unless you know exactly
18053 ## what you are doing...
18054 # Dependencies to place before and after the object being linked:
18055predep_objects_CXX=
18056postdep_objects_CXX=
18057predeps_CXX=
18058postdeps_CXX=
18059compiler_lib_search_path_CXX=
18060
18061cat > conftest.$ac_ext <<_LT_EOF
18062class Foo
18063{
18064public:
18065 Foo (void) { a = 0; }
18066private:
18067 int a;
18068};
18069_LT_EOF
18070
cristyda16f162011-02-19 23:52:17 +000018071
18072_lt_libdeps_save_CFLAGS=$CFLAGS
18073case "$CC $CFLAGS " in #(
18074*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18075*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18076esac
18077
cristy73bd4a52010-10-05 11:24:23 +000018078if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18079 (eval $ac_compile) 2>&5
18080 ac_status=$?
18081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18082 test $ac_status = 0; }; then
18083 # Parse the compiler output and extract the necessary
18084 # objects, libraries and library flags.
18085
18086 # Sentinel used to keep track of whether or not we are before
18087 # the conftest object file.
18088 pre_test_object_deps_done=no
18089
18090 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018091 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018092
18093 -L* | -R* | -l*)
18094 # Some compilers place space between "-{L,R}" and the path.
18095 # Remove the space.
18096 if test $p = "-L" ||
18097 test $p = "-R"; then
18098 prev=$p
18099 continue
cristy73bd4a52010-10-05 11:24:23 +000018100 fi
18101
cristyda16f162011-02-19 23:52:17 +000018102 # Expand the sysroot to ease extracting the directories later.
18103 if test -z "$prev"; then
18104 case $p in
18105 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18106 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18107 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18108 esac
18109 fi
18110 case $p in
18111 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18112 esac
cristy73bd4a52010-10-05 11:24:23 +000018113 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018114 case ${prev} in
18115 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018116 # Internal compiler library paths should come after those
18117 # provided the user. The postdeps already come after the
18118 # user supplied libs so there is no need to process them.
18119 if test -z "$compiler_lib_search_path_CXX"; then
18120 compiler_lib_search_path_CXX="${prev}${p}"
18121 else
18122 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18123 fi
18124 ;;
18125 # The "-l" case would never come before the object being
18126 # linked, so don't bother handling this case.
18127 esac
18128 else
18129 if test -z "$postdeps_CXX"; then
18130 postdeps_CXX="${prev}${p}"
18131 else
18132 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18133 fi
18134 fi
cristyda16f162011-02-19 23:52:17 +000018135 prev=
cristy73bd4a52010-10-05 11:24:23 +000018136 ;;
18137
cristyda16f162011-02-19 23:52:17 +000018138 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018139 *.$objext)
18140 # This assumes that the test object file only shows up
18141 # once in the compiler output.
18142 if test "$p" = "conftest.$objext"; then
18143 pre_test_object_deps_done=yes
18144 continue
18145 fi
18146
18147 if test "$pre_test_object_deps_done" = no; then
18148 if test -z "$predep_objects_CXX"; then
18149 predep_objects_CXX="$p"
18150 else
18151 predep_objects_CXX="$predep_objects_CXX $p"
18152 fi
18153 else
18154 if test -z "$postdep_objects_CXX"; then
18155 postdep_objects_CXX="$p"
18156 else
18157 postdep_objects_CXX="$postdep_objects_CXX $p"
18158 fi
18159 fi
18160 ;;
18161
18162 *) ;; # Ignore the rest.
18163
18164 esac
18165 done
18166
18167 # Clean up.
18168 rm -f a.out a.exe
18169else
18170 echo "libtool.m4: error: problem compiling CXX test program"
18171fi
18172
18173$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018174CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018175
18176# PORTME: override above test on systems where it is broken
18177case $host_os in
18178interix[3-9]*)
18179 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18180 # hack all around it, let's just trust "g++" to DTRT.
18181 predep_objects_CXX=
18182 postdep_objects_CXX=
18183 postdeps_CXX=
18184 ;;
18185
18186linux*)
18187 case `$CC -V 2>&1 | sed 5q` in
18188 *Sun\ C*)
18189 # Sun C++ 5.9
18190
18191 # The more standards-conforming stlport4 library is
18192 # incompatible with the Cstd library. Avoid specifying
18193 # it if it's in CXXFLAGS. Ignore libCrun as
18194 # -library=stlport4 depends on it.
18195 case " $CXX $CXXFLAGS " in
18196 *" -library=stlport4 "*)
18197 solaris_use_stlport4=yes
18198 ;;
18199 esac
18200
18201 if test "$solaris_use_stlport4" != yes; then
18202 postdeps_CXX='-library=Cstd -library=Crun'
18203 fi
18204 ;;
18205 esac
18206 ;;
18207
18208solaris*)
18209 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018210 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018211 # The more standards-conforming stlport4 library is
18212 # incompatible with the Cstd library. Avoid specifying
18213 # it if it's in CXXFLAGS. Ignore libCrun as
18214 # -library=stlport4 depends on it.
18215 case " $CXX $CXXFLAGS " in
18216 *" -library=stlport4 "*)
18217 solaris_use_stlport4=yes
18218 ;;
18219 esac
18220
18221 # Adding this requires a known-good setup of shared libraries for
18222 # Sun compiler versions before 5.6, else PIC objects from an old
18223 # archive will be linked into the output, leading to subtle bugs.
18224 if test "$solaris_use_stlport4" != yes; then
18225 postdeps_CXX='-library=Cstd -library=Crun'
18226 fi
18227 ;;
18228 esac
18229 ;;
18230esac
18231
18232
18233case " $postdeps_CXX " in
18234*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18235esac
18236 compiler_lib_search_dirs_CXX=
18237if test -n "${compiler_lib_search_path_CXX}"; then
18238 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18239fi
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271 lt_prog_compiler_wl_CXX=
18272lt_prog_compiler_pic_CXX=
18273lt_prog_compiler_static_CXX=
18274
cristy73bd4a52010-10-05 11:24:23 +000018275
18276 # C++ specific cases for pic, static, wl, etc.
18277 if test "$GXX" = yes; then
18278 lt_prog_compiler_wl_CXX='-Wl,'
18279 lt_prog_compiler_static_CXX='-static'
18280
18281 case $host_os in
18282 aix*)
18283 # All AIX code is PIC.
18284 if test "$host_cpu" = ia64; then
18285 # AIX 5 now supports IA64 processor
18286 lt_prog_compiler_static_CXX='-Bstatic'
18287 fi
18288 ;;
18289
18290 amigaos*)
18291 case $host_cpu in
18292 powerpc)
18293 # see comment about AmigaOS4 .so support
18294 lt_prog_compiler_pic_CXX='-fPIC'
18295 ;;
18296 m68k)
18297 # FIXME: we need at least 68020 code to build shared libraries, but
18298 # adding the `-m68020' flag to GCC prevents building anything better,
18299 # like `-m68040'.
18300 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18301 ;;
18302 esac
18303 ;;
18304
18305 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18306 # PIC is the default for these OSes.
18307 ;;
18308 mingw* | cygwin* | os2* | pw32* | cegcc*)
18309 # This hack is so that the source file can tell whether it is being
18310 # built for inclusion in a dll (and should export symbols for example).
18311 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18312 # (--disable-auto-import) libraries
18313 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18314 ;;
18315 darwin* | rhapsody*)
18316 # PIC is the default on this platform
18317 # Common symbols not allowed in MH_DYLIB files
18318 lt_prog_compiler_pic_CXX='-fno-common'
18319 ;;
18320 *djgpp*)
18321 # DJGPP does not support shared libraries at all
18322 lt_prog_compiler_pic_CXX=
18323 ;;
cristy0c60a692010-11-04 01:09:47 +000018324 haiku*)
18325 # PIC is the default for Haiku.
18326 # The "-static" flag exists, but is broken.
18327 lt_prog_compiler_static_CXX=
18328 ;;
cristy73bd4a52010-10-05 11:24:23 +000018329 interix[3-9]*)
18330 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18331 # Instead, we relocate shared libraries at runtime.
18332 ;;
18333 sysv4*MP*)
18334 if test -d /usr/nec; then
18335 lt_prog_compiler_pic_CXX=-Kconform_pic
18336 fi
18337 ;;
18338 hpux*)
18339 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18340 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18341 # sets the default TLS model and affects inlining.
18342 case $host_cpu in
18343 hppa*64*)
18344 ;;
18345 *)
18346 lt_prog_compiler_pic_CXX='-fPIC'
18347 ;;
18348 esac
18349 ;;
18350 *qnx* | *nto*)
18351 # QNX uses GNU C++, but need to define -shared option too, otherwise
18352 # it will coredump.
18353 lt_prog_compiler_pic_CXX='-fPIC -shared'
18354 ;;
18355 *)
18356 lt_prog_compiler_pic_CXX='-fPIC'
18357 ;;
18358 esac
18359 else
18360 case $host_os in
18361 aix[4-9]*)
18362 # All AIX code is PIC.
18363 if test "$host_cpu" = ia64; then
18364 # AIX 5 now supports IA64 processor
18365 lt_prog_compiler_static_CXX='-Bstatic'
18366 else
18367 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18368 fi
18369 ;;
18370 chorus*)
18371 case $cc_basename in
18372 cxch68*)
18373 # Green Hills C++ Compiler
18374 # _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"
18375 ;;
18376 esac
18377 ;;
cristyda16f162011-02-19 23:52:17 +000018378 mingw* | cygwin* | os2* | pw32* | cegcc*)
18379 # This hack is so that the source file can tell whether it is being
18380 # built for inclusion in a dll (and should export symbols for example).
18381 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18382 ;;
cristy73bd4a52010-10-05 11:24:23 +000018383 dgux*)
18384 case $cc_basename in
18385 ec++*)
18386 lt_prog_compiler_pic_CXX='-KPIC'
18387 ;;
18388 ghcx*)
18389 # Green Hills C++ Compiler
18390 lt_prog_compiler_pic_CXX='-pic'
18391 ;;
18392 *)
18393 ;;
18394 esac
18395 ;;
18396 freebsd* | dragonfly*)
18397 # FreeBSD uses GNU C++
18398 ;;
18399 hpux9* | hpux10* | hpux11*)
18400 case $cc_basename in
18401 CC*)
18402 lt_prog_compiler_wl_CXX='-Wl,'
18403 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18404 if test "$host_cpu" != ia64; then
18405 lt_prog_compiler_pic_CXX='+Z'
18406 fi
18407 ;;
18408 aCC*)
18409 lt_prog_compiler_wl_CXX='-Wl,'
18410 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18411 case $host_cpu in
18412 hppa*64*|ia64*)
18413 # +Z the default
18414 ;;
18415 *)
18416 lt_prog_compiler_pic_CXX='+Z'
18417 ;;
18418 esac
18419 ;;
18420 *)
18421 ;;
18422 esac
18423 ;;
18424 interix*)
18425 # This is c89, which is MS Visual C++ (no shared libs)
18426 # Anyone wants to do a port?
18427 ;;
18428 irix5* | irix6* | nonstopux*)
18429 case $cc_basename in
18430 CC*)
18431 lt_prog_compiler_wl_CXX='-Wl,'
18432 lt_prog_compiler_static_CXX='-non_shared'
18433 # CC pic flag -KPIC is the default.
18434 ;;
18435 *)
18436 ;;
18437 esac
18438 ;;
cristy0c60a692010-11-04 01:09:47 +000018439 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018440 case $cc_basename in
18441 KCC*)
18442 # KAI C++ Compiler
18443 lt_prog_compiler_wl_CXX='--backend -Wl,'
18444 lt_prog_compiler_pic_CXX='-fPIC'
18445 ;;
18446 ecpc* )
18447 # old Intel C++ for x86_64 which still supported -KPIC.
18448 lt_prog_compiler_wl_CXX='-Wl,'
18449 lt_prog_compiler_pic_CXX='-KPIC'
18450 lt_prog_compiler_static_CXX='-static'
18451 ;;
18452 icpc* )
18453 # Intel C++, used to be incompatible with GCC.
18454 # ICC 10 doesn't accept -KPIC any more.
18455 lt_prog_compiler_wl_CXX='-Wl,'
18456 lt_prog_compiler_pic_CXX='-fPIC'
18457 lt_prog_compiler_static_CXX='-static'
18458 ;;
18459 pgCC* | pgcpp*)
18460 # Portland Group C++ compiler
18461 lt_prog_compiler_wl_CXX='-Wl,'
18462 lt_prog_compiler_pic_CXX='-fpic'
18463 lt_prog_compiler_static_CXX='-Bstatic'
18464 ;;
18465 cxx*)
18466 # Compaq C++
18467 # Make sure the PIC flag is empty. It appears that all Alpha
18468 # Linux and Compaq Tru64 Unix objects are PIC.
18469 lt_prog_compiler_pic_CXX=
18470 lt_prog_compiler_static_CXX='-non_shared'
18471 ;;
cristy0c60a692010-11-04 01:09:47 +000018472 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18473 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018474 lt_prog_compiler_wl_CXX='-Wl,'
18475 lt_prog_compiler_pic_CXX='-qpic'
18476 lt_prog_compiler_static_CXX='-qstaticlink'
18477 ;;
18478 *)
18479 case `$CC -V 2>&1 | sed 5q` in
18480 *Sun\ C*)
18481 # Sun C++ 5.9
18482 lt_prog_compiler_pic_CXX='-KPIC'
18483 lt_prog_compiler_static_CXX='-Bstatic'
18484 lt_prog_compiler_wl_CXX='-Qoption ld '
18485 ;;
18486 esac
18487 ;;
18488 esac
18489 ;;
18490 lynxos*)
18491 ;;
18492 m88k*)
18493 ;;
18494 mvs*)
18495 case $cc_basename in
18496 cxx*)
18497 lt_prog_compiler_pic_CXX='-W c,exportall'
18498 ;;
18499 *)
18500 ;;
18501 esac
18502 ;;
18503 netbsd*)
18504 ;;
18505 *qnx* | *nto*)
18506 # QNX uses GNU C++, but need to define -shared option too, otherwise
18507 # it will coredump.
18508 lt_prog_compiler_pic_CXX='-fPIC -shared'
18509 ;;
18510 osf3* | osf4* | osf5*)
18511 case $cc_basename in
18512 KCC*)
18513 lt_prog_compiler_wl_CXX='--backend -Wl,'
18514 ;;
18515 RCC*)
18516 # Rational C++ 2.4.1
18517 lt_prog_compiler_pic_CXX='-pic'
18518 ;;
18519 cxx*)
18520 # Digital/Compaq C++
18521 lt_prog_compiler_wl_CXX='-Wl,'
18522 # Make sure the PIC flag is empty. It appears that all Alpha
18523 # Linux and Compaq Tru64 Unix objects are PIC.
18524 lt_prog_compiler_pic_CXX=
18525 lt_prog_compiler_static_CXX='-non_shared'
18526 ;;
18527 *)
18528 ;;
18529 esac
18530 ;;
18531 psos*)
18532 ;;
18533 solaris*)
18534 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018535 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018536 # Sun C++ 4.2, 5.x and Centerline C++
18537 lt_prog_compiler_pic_CXX='-KPIC'
18538 lt_prog_compiler_static_CXX='-Bstatic'
18539 lt_prog_compiler_wl_CXX='-Qoption ld '
18540 ;;
18541 gcx*)
18542 # Green Hills C++ Compiler
18543 lt_prog_compiler_pic_CXX='-PIC'
18544 ;;
18545 *)
18546 ;;
18547 esac
18548 ;;
18549 sunos4*)
18550 case $cc_basename in
18551 CC*)
18552 # Sun C++ 4.x
18553 lt_prog_compiler_pic_CXX='-pic'
18554 lt_prog_compiler_static_CXX='-Bstatic'
18555 ;;
18556 lcc*)
18557 # Lucid
18558 lt_prog_compiler_pic_CXX='-pic'
18559 ;;
18560 *)
18561 ;;
18562 esac
18563 ;;
18564 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18565 case $cc_basename in
18566 CC*)
18567 lt_prog_compiler_wl_CXX='-Wl,'
18568 lt_prog_compiler_pic_CXX='-KPIC'
18569 lt_prog_compiler_static_CXX='-Bstatic'
18570 ;;
18571 esac
18572 ;;
18573 tandem*)
18574 case $cc_basename in
18575 NCC*)
18576 # NonStop-UX NCC 3.20
18577 lt_prog_compiler_pic_CXX='-KPIC'
18578 ;;
18579 *)
18580 ;;
18581 esac
18582 ;;
18583 vxworks*)
18584 ;;
18585 *)
18586 lt_prog_compiler_can_build_shared_CXX=no
18587 ;;
18588 esac
18589 fi
18590
18591case $host_os in
18592 # For platforms which do not support PIC, -DPIC is meaningless:
18593 *djgpp*)
18594 lt_prog_compiler_pic_CXX=
18595 ;;
18596 *)
18597 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18598 ;;
18599esac
cristy73bd4a52010-10-05 11:24:23 +000018600
cristyda16f162011-02-19 23:52:17 +000018601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18602$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18603if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18604 $as_echo_n "(cached) " >&6
18605else
18606 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18607fi
18608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18609$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18610lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018611
18612#
18613# Check to make sure the PIC flag actually works.
18614#
18615if test -n "$lt_prog_compiler_pic_CXX"; then
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18617$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018618if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018619 $as_echo_n "(cached) " >&6
18620else
18621 lt_cv_prog_compiler_pic_works_CXX=no
18622 ac_outfile=conftest.$ac_objext
18623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18624 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18625 # Insert the option either (1) after the last *FLAGS variable, or
18626 # (2) before a word containing "conftest.", or (3) at the end.
18627 # Note that $ac_compile itself does not contain backslashes and begins
18628 # with a dollar sign (not a hyphen), so the echo should work correctly.
18629 # The option is referenced via a variable to avoid confusing sed.
18630 lt_compile=`echo "$ac_compile" | $SED \
18631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18633 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018634 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018635 (eval "$lt_compile" 2>conftest.err)
18636 ac_status=$?
18637 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018639 if (exit $ac_status) && test -s "$ac_outfile"; then
18640 # The compiler can only warn and ignore the option if not recognized
18641 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018642 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18644 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18645 lt_cv_prog_compiler_pic_works_CXX=yes
18646 fi
18647 fi
18648 $RM conftest*
18649
18650fi
18651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18652$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18653
18654if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18655 case $lt_prog_compiler_pic_CXX in
18656 "" | " "*) ;;
18657 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18658 esac
18659else
18660 lt_prog_compiler_pic_CXX=
18661 lt_prog_compiler_can_build_shared_CXX=no
18662fi
18663
18664fi
18665
18666
18667
cristyda16f162011-02-19 23:52:17 +000018668
18669
cristy73bd4a52010-10-05 11:24:23 +000018670#
18671# Check to make sure the static flag actually works.
18672#
18673wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18675$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018676if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018677 $as_echo_n "(cached) " >&6
18678else
18679 lt_cv_prog_compiler_static_works_CXX=no
18680 save_LDFLAGS="$LDFLAGS"
18681 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18682 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18683 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18684 # The linker can only warn and ignore the option if not recognized
18685 # So say no if there are warnings
18686 if test -s conftest.err; then
18687 # Append any errors to the config.log.
18688 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018689 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18691 if diff conftest.exp conftest.er2 >/dev/null; then
18692 lt_cv_prog_compiler_static_works_CXX=yes
18693 fi
18694 else
18695 lt_cv_prog_compiler_static_works_CXX=yes
18696 fi
18697 fi
18698 $RM -r conftest*
18699 LDFLAGS="$save_LDFLAGS"
18700
18701fi
18702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18703$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18704
18705if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18706 :
18707else
18708 lt_prog_compiler_static_CXX=
18709fi
18710
18711
18712
18713
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18715$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018716if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018717 $as_echo_n "(cached) " >&6
18718else
18719 lt_cv_prog_compiler_c_o_CXX=no
18720 $RM -r conftest 2>/dev/null
18721 mkdir conftest
18722 cd conftest
18723 mkdir out
18724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18725
18726 lt_compiler_flag="-o out/conftest2.$ac_objext"
18727 # Insert the option either (1) after the last *FLAGS variable, or
18728 # (2) before a word containing "conftest.", or (3) at the end.
18729 # Note that $ac_compile itself does not contain backslashes and begins
18730 # with a dollar sign (not a hyphen), so the echo should work correctly.
18731 lt_compile=`echo "$ac_compile" | $SED \
18732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18734 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018736 (eval "$lt_compile" 2>out/conftest.err)
18737 ac_status=$?
18738 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018740 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18741 then
18742 # The compiler can only warn and ignore the option if not recognized
18743 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18747 lt_cv_prog_compiler_c_o_CXX=yes
18748 fi
18749 fi
18750 chmod u+w . 2>&5
18751 $RM conftest*
18752 # SGI C++ compiler will create directory out/ii_files/ for
18753 # template instantiation
18754 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18755 $RM out/* && rmdir out
18756 cd ..
18757 $RM -r conftest
18758 $RM conftest*
18759
18760fi
18761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18762$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18763
18764
18765
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18767$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018768if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018769 $as_echo_n "(cached) " >&6
18770else
18771 lt_cv_prog_compiler_c_o_CXX=no
18772 $RM -r conftest 2>/dev/null
18773 mkdir conftest
18774 cd conftest
18775 mkdir out
18776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18777
18778 lt_compiler_flag="-o out/conftest2.$ac_objext"
18779 # Insert the option either (1) after the last *FLAGS variable, or
18780 # (2) before a word containing "conftest.", or (3) at the end.
18781 # Note that $ac_compile itself does not contain backslashes and begins
18782 # with a dollar sign (not a hyphen), so the echo should work correctly.
18783 lt_compile=`echo "$ac_compile" | $SED \
18784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18786 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018788 (eval "$lt_compile" 2>out/conftest.err)
18789 ac_status=$?
18790 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018792 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18793 then
18794 # The compiler can only warn and ignore the option if not recognized
18795 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018796 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018797 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18798 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18799 lt_cv_prog_compiler_c_o_CXX=yes
18800 fi
18801 fi
18802 chmod u+w . 2>&5
18803 $RM conftest*
18804 # SGI C++ compiler will create directory out/ii_files/ for
18805 # template instantiation
18806 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18807 $RM out/* && rmdir out
18808 cd ..
18809 $RM -r conftest
18810 $RM conftest*
18811
18812fi
18813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18814$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18815
18816
18817
18818
18819hard_links="nottested"
18820if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18821 # do not overwrite the value of need_locks provided by the user
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18823$as_echo_n "checking if we can lock with hard links... " >&6; }
18824 hard_links=yes
18825 $RM conftest*
18826 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18827 touch conftest.a
18828 ln conftest.a conftest.b 2>&5 || hard_links=no
18829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18831$as_echo "$hard_links" >&6; }
18832 if test "$hard_links" = no; then
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18834$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18835 need_locks=warn
18836 fi
18837else
18838 need_locks=no
18839fi
18840
18841
18842
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18844$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18845
18846 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018847 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018848 case $host_os in
18849 aix[4-9]*)
18850 # If we're using GNU nm, then we don't want the "-C" option.
18851 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018852 # Also, AIX nm treats weak defined symbols like other global defined
18853 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018854 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018855 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 +000018856 else
18857 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'
18858 fi
18859 ;;
18860 pw32*)
18861 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018862 ;;
cristy73bd4a52010-10-05 11:24:23 +000018863 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018864 case $cc_basename in
18865 cl*) ;;
18866 *)
18867 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'
18868 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18869 ;;
18870 esac
18871 ;;
cristy73bd4a52010-10-05 11:24:23 +000018872 *)
18873 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018874 ;;
cristy73bd4a52010-10-05 11:24:23 +000018875 esac
cristy73bd4a52010-10-05 11:24:23 +000018876
18877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18878$as_echo "$ld_shlibs_CXX" >&6; }
18879test "$ld_shlibs_CXX" = no && can_build_shared=no
18880
18881with_gnu_ld_CXX=$with_gnu_ld
18882
18883
18884
18885
18886
18887
18888#
18889# Do we need to explicitly link libc?
18890#
18891case "x$archive_cmds_need_lc_CXX" in
18892x|xyes)
18893 # Assume -lc should be added
18894 archive_cmds_need_lc_CXX=yes
18895
18896 if test "$enable_shared" = yes && test "$GCC" = yes; then
18897 case $archive_cmds_CXX in
18898 *'~'*)
18899 # FIXME: we may have to deal with multi-command sequences.
18900 ;;
18901 '$CC '*)
18902 # Test whether the compiler implicitly links with -lc since on some
18903 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18904 # to ld, don't add -lc before -lgcc.
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18906$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018907if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018908 $as_echo_n "(cached) " >&6
18909else
18910 $RM conftest*
18911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018912
cristy0c60a692010-11-04 01:09:47 +000018913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018914 (eval $ac_compile) 2>&5
18915 ac_status=$?
18916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18917 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000018918 soname=conftest
18919 lib=conftest
18920 libobjs=conftest.$ac_objext
18921 deplibs=
18922 wl=$lt_prog_compiler_wl_CXX
18923 pic_flag=$lt_prog_compiler_pic_CXX
18924 compiler_flags=-v
18925 linker_flags=-v
18926 verstring=
18927 output_objdir=.
18928 libname=conftest
18929 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18930 allow_undefined_flag_CXX=
18931 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 +000018932 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18933 ac_status=$?
18934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18935 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018936 then
18937 lt_cv_archive_cmds_need_lc_CXX=no
18938 else
18939 lt_cv_archive_cmds_need_lc_CXX=yes
18940 fi
18941 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18942 else
18943 cat conftest.err 1>&5
18944 fi
18945 $RM conftest*
18946
18947fi
18948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18949$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18950 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018951 ;;
18952 esac
18953 fi
18954 ;;
18955esac
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19021$as_echo_n "checking dynamic linker characteristics... " >&6; }
19022
19023library_names_spec=
19024libname_spec='lib$name'
19025soname_spec=
19026shrext_cmds=".so"
19027postinstall_cmds=
19028postuninstall_cmds=
19029finish_cmds=
19030finish_eval=
19031shlibpath_var=
19032shlibpath_overrides_runpath=unknown
19033version_type=none
19034dynamic_linker="$host_os ld.so"
19035sys_lib_dlsearch_path_spec="/lib /usr/lib"
19036need_lib_prefix=unknown
19037hardcode_into_libs=no
19038
19039# when you set need_version to no, make sure it does not cause -set_version
19040# flags to be left without arguments
19041need_version=unknown
19042
19043case $host_os in
19044aix3*)
19045 version_type=linux
19046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19047 shlibpath_var=LIBPATH
19048
19049 # AIX 3 has no versioning support, so we append a major version to the name.
19050 soname_spec='${libname}${release}${shared_ext}$major'
19051 ;;
19052
19053aix[4-9]*)
19054 version_type=linux
19055 need_lib_prefix=no
19056 need_version=no
19057 hardcode_into_libs=yes
19058 if test "$host_cpu" = ia64; then
19059 # AIX 5 supports IA64
19060 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19061 shlibpath_var=LD_LIBRARY_PATH
19062 else
19063 # With GCC up to 2.95.x, collect2 would create an import file
19064 # for dependence libraries. The import file would start with
19065 # the line `#! .'. This would cause the generated library to
19066 # depend on `.', always an invalid library. This was fixed in
19067 # development snapshots of GCC prior to 3.0.
19068 case $host_os in
19069 aix4 | aix4.[01] | aix4.[01].*)
19070 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19071 echo ' yes '
19072 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19073 :
19074 else
19075 can_build_shared=no
19076 fi
19077 ;;
19078 esac
19079 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19080 # soname into executable. Probably we can add versioning support to
19081 # collect2, so additional links can be useful in future.
19082 if test "$aix_use_runtimelinking" = yes; then
19083 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19084 # instead of lib<name>.a to let people know that these are not
19085 # typical AIX shared libraries.
19086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19087 else
19088 # We preserve .a as extension for shared libraries through AIX4.2
19089 # and later when we are not doing run time linking.
19090 library_names_spec='${libname}${release}.a $libname.a'
19091 soname_spec='${libname}${release}${shared_ext}$major'
19092 fi
19093 shlibpath_var=LIBPATH
19094 fi
19095 ;;
19096
19097amigaos*)
19098 case $host_cpu in
19099 powerpc)
19100 # Since July 2007 AmigaOS4 officially supports .so libraries.
19101 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19103 ;;
19104 m68k)
19105 library_names_spec='$libname.ixlibrary $libname.a'
19106 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019107 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 +000019108 ;;
19109 esac
19110 ;;
19111
19112beos*)
19113 library_names_spec='${libname}${shared_ext}'
19114 dynamic_linker="$host_os ld.so"
19115 shlibpath_var=LIBRARY_PATH
19116 ;;
19117
19118bsdi[45]*)
19119 version_type=linux
19120 need_version=no
19121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19122 soname_spec='${libname}${release}${shared_ext}$major'
19123 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19124 shlibpath_var=LD_LIBRARY_PATH
19125 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19126 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19127 # the default ld.so.conf also contains /usr/contrib/lib and
19128 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19129 # libtool to hard-code these into programs
19130 ;;
19131
19132cygwin* | mingw* | pw32* | cegcc*)
19133 version_type=windows
19134 shrext_cmds=".dll"
19135 need_version=no
19136 need_lib_prefix=no
19137
cristyda16f162011-02-19 23:52:17 +000019138 case $GCC,$cc_basename in
19139 yes,*)
19140 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019141 library_names_spec='$libname.dll.a'
19142 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19143 postinstall_cmds='base_file=`basename \${file}`~
19144 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19145 dldir=$destdir/`dirname \$dlpath`~
19146 test -d \$dldir || mkdir -p \$dldir~
19147 $install_prog $dir/$dlname \$dldir/$dlname~
19148 chmod a+x \$dldir/$dlname~
19149 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19150 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19151 fi'
19152 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19153 dlpath=$dir/\$dldll~
19154 $RM \$dlpath'
19155 shlibpath_overrides_runpath=yes
19156
19157 case $host_os in
19158 cygwin*)
19159 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19160 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019161
cristy73bd4a52010-10-05 11:24:23 +000019162 ;;
19163 mingw* | cegcc*)
19164 # MinGW DLLs use traditional 'lib' prefix
19165 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019166 ;;
19167 pw32*)
19168 # pw32 DLLs use 'pw' prefix rather than 'lib'
19169 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19170 ;;
19171 esac
cristyda16f162011-02-19 23:52:17 +000019172 dynamic_linker='Win32 ld.exe'
19173 ;;
19174
19175 *,cl*)
19176 # Native MSVC
19177 libname_spec='$name'
19178 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19179 library_names_spec='${libname}.dll.lib'
19180
19181 case $build_os in
19182 mingw*)
19183 sys_lib_search_path_spec=
19184 lt_save_ifs=$IFS
19185 IFS=';'
19186 for lt_path in $LIB
19187 do
19188 IFS=$lt_save_ifs
19189 # Let DOS variable expansion print the short 8.3 style file name.
19190 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19191 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19192 done
19193 IFS=$lt_save_ifs
19194 # Convert to MSYS style.
19195 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19196 ;;
19197 cygwin*)
19198 # Convert to unix form, then to dos form, then back to unix form
19199 # but this time dos style (no spaces!) so that the unix form looks
19200 # like /cygdrive/c/PROGRA~1:/cygdr...
19201 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19202 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19203 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19204 ;;
19205 *)
19206 sys_lib_search_path_spec="$LIB"
19207 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19208 # It is most probably a Windows format PATH.
19209 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19210 else
19211 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19212 fi
19213 # FIXME: find the short name or the path components, as spaces are
19214 # common. (e.g. "Program Files" -> "PROGRA~1")
19215 ;;
19216 esac
19217
19218 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19219 postinstall_cmds='base_file=`basename \${file}`~
19220 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19221 dldir=$destdir/`dirname \$dlpath`~
19222 test -d \$dldir || mkdir -p \$dldir~
19223 $install_prog $dir/$dlname \$dldir/$dlname'
19224 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19225 dlpath=$dir/\$dldll~
19226 $RM \$dlpath'
19227 shlibpath_overrides_runpath=yes
19228 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019229 ;;
19230
19231 *)
cristyda16f162011-02-19 23:52:17 +000019232 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019233 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019234 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019235 ;;
19236 esac
cristy73bd4a52010-10-05 11:24:23 +000019237 # FIXME: first we should search . and the directory the executable is in
19238 shlibpath_var=PATH
19239 ;;
19240
19241darwin* | rhapsody*)
19242 dynamic_linker="$host_os dyld"
19243 version_type=darwin
19244 need_lib_prefix=no
19245 need_version=no
19246 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19247 soname_spec='${libname}${release}${major}$shared_ext'
19248 shlibpath_overrides_runpath=yes
19249 shlibpath_var=DYLD_LIBRARY_PATH
19250 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19251
19252 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19253 ;;
19254
19255dgux*)
19256 version_type=linux
19257 need_lib_prefix=no
19258 need_version=no
19259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19260 soname_spec='${libname}${release}${shared_ext}$major'
19261 shlibpath_var=LD_LIBRARY_PATH
19262 ;;
19263
19264freebsd1*)
19265 dynamic_linker=no
19266 ;;
19267
19268freebsd* | dragonfly*)
19269 # DragonFly does not have aout. When/if they implement a new
19270 # versioning mechanism, adjust this.
19271 if test -x /usr/bin/objformat; then
19272 objformat=`/usr/bin/objformat`
19273 else
19274 case $host_os in
19275 freebsd[123]*) objformat=aout ;;
19276 *) objformat=elf ;;
19277 esac
19278 fi
19279 version_type=freebsd-$objformat
19280 case $version_type in
19281 freebsd-elf*)
19282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19283 need_version=no
19284 need_lib_prefix=no
19285 ;;
19286 freebsd-*)
19287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19288 need_version=yes
19289 ;;
19290 esac
19291 shlibpath_var=LD_LIBRARY_PATH
19292 case $host_os in
19293 freebsd2*)
19294 shlibpath_overrides_runpath=yes
19295 ;;
19296 freebsd3.[01]* | freebsdelf3.[01]*)
19297 shlibpath_overrides_runpath=yes
19298 hardcode_into_libs=yes
19299 ;;
19300 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19301 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19302 shlibpath_overrides_runpath=no
19303 hardcode_into_libs=yes
19304 ;;
19305 *) # from 4.6 on, and DragonFly
19306 shlibpath_overrides_runpath=yes
19307 hardcode_into_libs=yes
19308 ;;
19309 esac
19310 ;;
19311
19312gnu*)
19313 version_type=linux
19314 need_lib_prefix=no
19315 need_version=no
19316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19317 soname_spec='${libname}${release}${shared_ext}$major'
19318 shlibpath_var=LD_LIBRARY_PATH
19319 hardcode_into_libs=yes
19320 ;;
19321
cristy0c60a692010-11-04 01:09:47 +000019322haiku*)
19323 version_type=linux
19324 need_lib_prefix=no
19325 need_version=no
19326 dynamic_linker="$host_os runtime_loader"
19327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19328 soname_spec='${libname}${release}${shared_ext}$major'
19329 shlibpath_var=LIBRARY_PATH
19330 shlibpath_overrides_runpath=yes
19331 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19332 hardcode_into_libs=yes
19333 ;;
19334
cristy73bd4a52010-10-05 11:24:23 +000019335hpux9* | hpux10* | hpux11*)
19336 # Give a soname corresponding to the major version so that dld.sl refuses to
19337 # link against other versions.
19338 version_type=sunos
19339 need_lib_prefix=no
19340 need_version=no
19341 case $host_cpu in
19342 ia64*)
19343 shrext_cmds='.so'
19344 hardcode_into_libs=yes
19345 dynamic_linker="$host_os dld.so"
19346 shlibpath_var=LD_LIBRARY_PATH
19347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19349 soname_spec='${libname}${release}${shared_ext}$major'
19350 if test "X$HPUX_IA64_MODE" = X32; then
19351 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19352 else
19353 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19354 fi
19355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19356 ;;
19357 hppa*64*)
19358 shrext_cmds='.sl'
19359 hardcode_into_libs=yes
19360 dynamic_linker="$host_os dld.sl"
19361 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19364 soname_spec='${libname}${release}${shared_ext}$major'
19365 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19367 ;;
19368 *)
19369 shrext_cmds='.sl'
19370 dynamic_linker="$host_os dld.sl"
19371 shlibpath_var=SHLIB_PATH
19372 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19374 soname_spec='${libname}${release}${shared_ext}$major'
19375 ;;
19376 esac
cristy0c60a692010-11-04 01:09:47 +000019377 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019378 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019379 # or fails outright, so override atomically:
19380 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019381 ;;
19382
19383interix[3-9]*)
19384 version_type=linux
19385 need_lib_prefix=no
19386 need_version=no
19387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19388 soname_spec='${libname}${release}${shared_ext}$major'
19389 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19390 shlibpath_var=LD_LIBRARY_PATH
19391 shlibpath_overrides_runpath=no
19392 hardcode_into_libs=yes
19393 ;;
19394
19395irix5* | irix6* | nonstopux*)
19396 case $host_os in
19397 nonstopux*) version_type=nonstopux ;;
19398 *)
19399 if test "$lt_cv_prog_gnu_ld" = yes; then
19400 version_type=linux
19401 else
19402 version_type=irix
19403 fi ;;
19404 esac
19405 need_lib_prefix=no
19406 need_version=no
19407 soname_spec='${libname}${release}${shared_ext}$major'
19408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19409 case $host_os in
19410 irix5* | nonstopux*)
19411 libsuff= shlibsuff=
19412 ;;
19413 *)
19414 case $LD in # libtool.m4 will add one of these switches to LD
19415 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19416 libsuff= shlibsuff= libmagic=32-bit;;
19417 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19418 libsuff=32 shlibsuff=N32 libmagic=N32;;
19419 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19420 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19421 *) libsuff= shlibsuff= libmagic=never-match;;
19422 esac
19423 ;;
19424 esac
19425 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19426 shlibpath_overrides_runpath=no
19427 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19428 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19429 hardcode_into_libs=yes
19430 ;;
19431
19432# No shared lib support for Linux oldld, aout, or coff.
19433linux*oldld* | linux*aout* | linux*coff*)
19434 dynamic_linker=no
19435 ;;
19436
19437# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019438linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019439 version_type=linux
19440 need_lib_prefix=no
19441 need_version=no
19442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19443 soname_spec='${libname}${release}${shared_ext}$major'
19444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19445 shlibpath_var=LD_LIBRARY_PATH
19446 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019447
cristy73bd4a52010-10-05 11:24:23 +000019448 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019449 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019450 $as_echo_n "(cached) " >&6
19451else
19452 lt_cv_shlibpath_overrides_runpath=no
19453 save_LDFLAGS=$LDFLAGS
19454 save_libdir=$libdir
19455 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19456 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019458/* end confdefs.h. */
19459
19460int
19461main ()
19462{
19463
19464 ;
19465 return 0;
19466}
19467_ACEOF
19468if ac_fn_cxx_try_link "$LINENO"; then :
19469 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019470 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019471fi
19472fi
19473rm -f core conftest.err conftest.$ac_objext \
19474 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019475 LDFLAGS=$save_LDFLAGS
19476 libdir=$save_libdir
19477
19478fi
19479
19480 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019481
19482 # This implies no fast_install, which is unacceptable.
19483 # Some rework will be needed to allow for fast_install
19484 # before this can be enabled.
19485 hardcode_into_libs=yes
19486
19487 # Add ABI-specific directories to the system library path.
19488 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19489
19490 # Append ld.so.conf contents to the search path
19491 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019492 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 +000019493 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019494
cristy73bd4a52010-10-05 11:24:23 +000019495 fi
19496
19497 # We used to test for /lib/ld.so.1 and disable shared libraries on
19498 # powerpc, because MkLinux only supported shared libraries with the
19499 # GNU dynamic linker. Since this was broken with cross compilers,
19500 # most powerpc-linux boxes support dynamic linking these days and
19501 # people can always --disable-shared, the test was removed, and we
19502 # assume the GNU/Linux dynamic linker is in use.
19503 dynamic_linker='GNU/Linux ld.so'
19504 ;;
19505
19506netbsd*)
19507 version_type=sunos
19508 need_lib_prefix=no
19509 need_version=no
19510 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19513 dynamic_linker='NetBSD (a.out) ld.so'
19514 else
19515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19516 soname_spec='${libname}${release}${shared_ext}$major'
19517 dynamic_linker='NetBSD ld.elf_so'
19518 fi
19519 shlibpath_var=LD_LIBRARY_PATH
19520 shlibpath_overrides_runpath=yes
19521 hardcode_into_libs=yes
19522 ;;
19523
19524newsos6)
19525 version_type=linux
19526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19527 shlibpath_var=LD_LIBRARY_PATH
19528 shlibpath_overrides_runpath=yes
19529 ;;
19530
19531*nto* | *qnx*)
19532 version_type=qnx
19533 need_lib_prefix=no
19534 need_version=no
19535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19536 soname_spec='${libname}${release}${shared_ext}$major'
19537 shlibpath_var=LD_LIBRARY_PATH
19538 shlibpath_overrides_runpath=no
19539 hardcode_into_libs=yes
19540 dynamic_linker='ldqnx.so'
19541 ;;
19542
19543openbsd*)
19544 version_type=sunos
19545 sys_lib_dlsearch_path_spec="/usr/lib"
19546 need_lib_prefix=no
19547 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19548 case $host_os in
19549 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19550 *) need_version=no ;;
19551 esac
19552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19554 shlibpath_var=LD_LIBRARY_PATH
19555 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19556 case $host_os in
19557 openbsd2.[89] | openbsd2.[89].*)
19558 shlibpath_overrides_runpath=no
19559 ;;
19560 *)
19561 shlibpath_overrides_runpath=yes
19562 ;;
19563 esac
19564 else
19565 shlibpath_overrides_runpath=yes
19566 fi
19567 ;;
19568
19569os2*)
19570 libname_spec='$name'
19571 shrext_cmds=".dll"
19572 need_lib_prefix=no
19573 library_names_spec='$libname${shared_ext} $libname.a'
19574 dynamic_linker='OS/2 ld.exe'
19575 shlibpath_var=LIBPATH
19576 ;;
19577
19578osf3* | osf4* | osf5*)
19579 version_type=osf
19580 need_lib_prefix=no
19581 need_version=no
19582 soname_spec='${libname}${release}${shared_ext}$major'
19583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19584 shlibpath_var=LD_LIBRARY_PATH
19585 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19586 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19587 ;;
19588
19589rdos*)
19590 dynamic_linker=no
19591 ;;
19592
19593solaris*)
19594 version_type=linux
19595 need_lib_prefix=no
19596 need_version=no
19597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19598 soname_spec='${libname}${release}${shared_ext}$major'
19599 shlibpath_var=LD_LIBRARY_PATH
19600 shlibpath_overrides_runpath=yes
19601 hardcode_into_libs=yes
19602 # ldd complains unless libraries are executable
19603 postinstall_cmds='chmod +x $lib'
19604 ;;
19605
19606sunos4*)
19607 version_type=sunos
19608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19609 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19610 shlibpath_var=LD_LIBRARY_PATH
19611 shlibpath_overrides_runpath=yes
19612 if test "$with_gnu_ld" = yes; then
19613 need_lib_prefix=no
19614 fi
19615 need_version=yes
19616 ;;
19617
19618sysv4 | sysv4.3*)
19619 version_type=linux
19620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19621 soname_spec='${libname}${release}${shared_ext}$major'
19622 shlibpath_var=LD_LIBRARY_PATH
19623 case $host_vendor in
19624 sni)
19625 shlibpath_overrides_runpath=no
19626 need_lib_prefix=no
19627 runpath_var=LD_RUN_PATH
19628 ;;
19629 siemens)
19630 need_lib_prefix=no
19631 ;;
19632 motorola)
19633 need_lib_prefix=no
19634 need_version=no
19635 shlibpath_overrides_runpath=no
19636 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19637 ;;
19638 esac
19639 ;;
19640
19641sysv4*MP*)
19642 if test -d /usr/nec ;then
19643 version_type=linux
19644 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19645 soname_spec='$libname${shared_ext}.$major'
19646 shlibpath_var=LD_LIBRARY_PATH
19647 fi
19648 ;;
19649
19650sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19651 version_type=freebsd-elf
19652 need_lib_prefix=no
19653 need_version=no
19654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19655 soname_spec='${libname}${release}${shared_ext}$major'
19656 shlibpath_var=LD_LIBRARY_PATH
19657 shlibpath_overrides_runpath=yes
19658 hardcode_into_libs=yes
19659 if test "$with_gnu_ld" = yes; then
19660 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19661 else
19662 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19663 case $host_os in
19664 sco3.2v5*)
19665 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19666 ;;
19667 esac
19668 fi
19669 sys_lib_dlsearch_path_spec='/usr/lib'
19670 ;;
19671
19672tpf*)
19673 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19674 version_type=linux
19675 need_lib_prefix=no
19676 need_version=no
19677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19678 shlibpath_var=LD_LIBRARY_PATH
19679 shlibpath_overrides_runpath=no
19680 hardcode_into_libs=yes
19681 ;;
19682
19683uts4*)
19684 version_type=linux
19685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19686 soname_spec='${libname}${release}${shared_ext}$major'
19687 shlibpath_var=LD_LIBRARY_PATH
19688 ;;
19689
19690*)
19691 dynamic_linker=no
19692 ;;
19693esac
19694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19695$as_echo "$dynamic_linker" >&6; }
19696test "$dynamic_linker" = no && can_build_shared=no
19697
19698variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19699if test "$GCC" = yes; then
19700 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19701fi
19702
19703if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19704 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19705fi
19706if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19707 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19708fi
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
cristy0c60a692010-11-04 01:09:47 +000019745
19746
cristy73bd4a52010-10-05 11:24:23 +000019747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19748$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19749hardcode_action_CXX=
19750if test -n "$hardcode_libdir_flag_spec_CXX" ||
19751 test -n "$runpath_var_CXX" ||
19752 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19753
19754 # We can hardcode non-existent directories.
19755 if test "$hardcode_direct_CXX" != no &&
19756 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19757 # have to relink, otherwise we might link with an installed library
19758 # when we should be linking with a yet-to-be-installed one
19759 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19760 test "$hardcode_minus_L_CXX" != no; then
19761 # Linking always hardcodes the temporary library directory.
19762 hardcode_action_CXX=relink
19763 else
19764 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19765 hardcode_action_CXX=immediate
19766 fi
19767else
19768 # We cannot hardcode anything, or else we can only hardcode existing
19769 # directories.
19770 hardcode_action_CXX=unsupported
19771fi
19772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19773$as_echo "$hardcode_action_CXX" >&6; }
19774
19775if test "$hardcode_action_CXX" = relink ||
19776 test "$inherit_rpath_CXX" = yes; then
19777 # Fast installation is not supported
19778 enable_fast_install=no
19779elif test "$shlibpath_overrides_runpath" = yes ||
19780 test "$enable_shared" = no; then
19781 # Fast installation is not necessary
19782 enable_fast_install=needless
19783fi
19784
19785
19786
19787
19788
19789
19790
19791 fi # test -n "$compiler"
19792
19793 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019794 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019795 LDCXX=$LD
19796 LD=$lt_save_LD
19797 GCC=$lt_save_GCC
19798 with_gnu_ld=$lt_save_with_gnu_ld
19799 lt_cv_path_LDCXX=$lt_cv_path_LD
19800 lt_cv_path_LD=$lt_save_path_LD
19801 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19802 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19803fi # test "$_lt_caught_CXX_error" != yes
19804
19805ac_ext=c
19806ac_cpp='$CPP $CPPFLAGS'
19807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19809ac_compiler_gnu=$ac_cv_c_compiler_gnu
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823 ac_config_commands="$ac_config_commands libtool"
19824
19825
19826
19827
19828# Only expand once:
19829
19830
19831
cristy3ed852e2009-09-05 21:47:34 +000019832
19833
19834# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019835
19836
19837
19838
19839
19840
19841
cristy73bd4a52010-10-05 11:24:23 +000019842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19843$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019844if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019845 $as_echo_n "(cached) " >&6
19846else
19847
19848module=yes
19849eval libltdl_cv_shlibext=$shrext_cmds
19850
19851fi
19852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19853$as_echo "$libltdl_cv_shlibext" >&6; }
19854if test -n "$libltdl_cv_shlibext"; then
19855
19856cat >>confdefs.h <<_ACEOF
19857#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19858_ACEOF
19859
19860fi
19861
19862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19863$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019864if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019865 $as_echo_n "(cached) " >&6
19866else
19867 lt_cv_module_path_var="$shlibpath_var"
19868fi
19869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19870$as_echo "$lt_cv_module_path_var" >&6; }
19871if test -n "$lt_cv_module_path_var"; then
19872
19873cat >>confdefs.h <<_ACEOF
19874#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19875_ACEOF
19876
19877fi
19878
19879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19880$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019881if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019882 $as_echo_n "(cached) " >&6
19883else
19884 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19885fi
19886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19887$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19888if test -n "$lt_cv_sys_dlsearch_path"; then
19889 sys_dlsearch_path=
19890 for dir in $lt_cv_sys_dlsearch_path; do
19891 if test -z "$sys_dlsearch_path"; then
19892 sys_dlsearch_path="$dir"
19893 else
19894 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19895 fi
19896 done
19897
19898cat >>confdefs.h <<_ACEOF
19899#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19900_ACEOF
19901
19902fi
19903
19904
19905LT_DLLOADERS=
19906
19907
19908ac_ext=c
19909ac_cpp='$CPP $CPPFLAGS'
19910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19912ac_compiler_gnu=$ac_cv_c_compiler_gnu
19913
19914
19915LIBADD_DLOPEN=
19916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19917$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019918if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019919 $as_echo_n "(cached) " >&6
19920else
19921 ac_func_search_save_LIBS=$LIBS
19922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19923/* end confdefs.h. */
19924
19925/* Override any GCC internal prototype to avoid an error.
19926 Use char because int might match the return type of a GCC
19927 builtin and then its argument prototype would still apply. */
19928#ifdef __cplusplus
19929extern "C"
19930#endif
19931char dlopen ();
19932int
19933main ()
19934{
19935return dlopen ();
19936 ;
19937 return 0;
19938}
19939_ACEOF
19940for ac_lib in '' dl; do
19941 if test -z "$ac_lib"; then
19942 ac_res="none required"
19943 else
19944 ac_res=-l$ac_lib
19945 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19946 fi
19947 if ac_fn_c_try_link "$LINENO"; then :
19948 ac_cv_search_dlopen=$ac_res
19949fi
19950rm -f core conftest.err conftest.$ac_objext \
19951 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000019952 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019953 break
19954fi
19955done
cristyda16f162011-02-19 23:52:17 +000019956if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019957
19958else
19959 ac_cv_search_dlopen=no
19960fi
19961rm conftest.$ac_ext
19962LIBS=$ac_func_search_save_LIBS
19963fi
19964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19965$as_echo "$ac_cv_search_dlopen" >&6; }
19966ac_res=$ac_cv_search_dlopen
19967if test "$ac_res" != no; then :
19968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19969
19970$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19971
19972 if test "$ac_cv_search_dlopen" != "none required" ; then
19973 LIBADD_DLOPEN="-ldl"
19974 fi
19975 libltdl_cv_lib_dl_dlopen="yes"
19976 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19977else
19978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19979/* end confdefs.h. */
19980#if HAVE_DLFCN_H
19981# include <dlfcn.h>
19982#endif
19983
19984int
19985main ()
19986{
19987dlopen(0, 0);
19988 ;
19989 return 0;
19990}
19991_ACEOF
19992if ac_fn_c_try_link "$LINENO"; then :
19993
19994$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19995
19996 libltdl_cv_func_dlopen="yes"
19997 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19998else
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20000$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020001if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020002 $as_echo_n "(cached) " >&6
20003else
20004 ac_check_lib_save_LIBS=$LIBS
20005LIBS="-lsvld $LIBS"
20006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20007/* end confdefs.h. */
20008
20009/* Override any GCC internal prototype to avoid an error.
20010 Use char because int might match the return type of a GCC
20011 builtin and then its argument prototype would still apply. */
20012#ifdef __cplusplus
20013extern "C"
20014#endif
20015char dlopen ();
20016int
20017main ()
20018{
20019return dlopen ();
20020 ;
20021 return 0;
20022}
20023_ACEOF
20024if ac_fn_c_try_link "$LINENO"; then :
20025 ac_cv_lib_svld_dlopen=yes
20026else
20027 ac_cv_lib_svld_dlopen=no
20028fi
20029rm -f core conftest.err conftest.$ac_objext \
20030 conftest$ac_exeext conftest.$ac_ext
20031LIBS=$ac_check_lib_save_LIBS
20032fi
20033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20034$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020035if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020036
20037$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20038
20039 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20040 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20041fi
20042
20043fi
20044rm -f core conftest.err conftest.$ac_objext \
20045 conftest$ac_exeext conftest.$ac_ext
20046fi
20047
20048if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20049then
20050 lt_save_LIBS="$LIBS"
20051 LIBS="$LIBS $LIBADD_DLOPEN"
20052 for ac_func in dlerror
20053do :
20054 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020055if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020056 cat >>confdefs.h <<_ACEOF
20057#define HAVE_DLERROR 1
20058_ACEOF
20059
20060fi
20061done
20062
20063 LIBS="$lt_save_LIBS"
20064fi
20065
20066
20067LIBADD_SHL_LOAD=
20068ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020069if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020070
20071$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20072
20073 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20074else
20075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20076$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020077if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020078 $as_echo_n "(cached) " >&6
20079else
20080 ac_check_lib_save_LIBS=$LIBS
20081LIBS="-ldld $LIBS"
20082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20083/* end confdefs.h. */
20084
20085/* Override any GCC internal prototype to avoid an error.
20086 Use char because int might match the return type of a GCC
20087 builtin and then its argument prototype would still apply. */
20088#ifdef __cplusplus
20089extern "C"
20090#endif
20091char shl_load ();
20092int
20093main ()
20094{
20095return shl_load ();
20096 ;
20097 return 0;
20098}
20099_ACEOF
20100if ac_fn_c_try_link "$LINENO"; then :
20101 ac_cv_lib_dld_shl_load=yes
20102else
20103 ac_cv_lib_dld_shl_load=no
20104fi
20105rm -f core conftest.err conftest.$ac_objext \
20106 conftest$ac_exeext conftest.$ac_ext
20107LIBS=$ac_check_lib_save_LIBS
20108fi
20109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20110$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020111if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020112
20113$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20114
20115 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20116 LIBADD_SHL_LOAD="-ldld"
20117fi
20118
20119fi
20120
20121
20122
20123case $host_os in
20124darwin[1567].*)
20125# We only want this for pre-Mac OS X 10.4.
20126 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020127if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020128
20129$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20130
20131 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20132fi
20133
20134 ;;
20135beos*)
20136 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20137 ;;
20138cygwin* | mingw* | os2* | pw32*)
20139 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20140"
cristyda16f162011-02-19 23:52:17 +000020141if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020142 ac_have_decl=1
20143else
20144 ac_have_decl=0
20145fi
20146
20147cat >>confdefs.h <<_ACEOF
20148#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20149_ACEOF
20150
20151 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20152 ;;
20153esac
20154
20155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20156$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020157if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020158 $as_echo_n "(cached) " >&6
20159else
20160 ac_check_lib_save_LIBS=$LIBS
20161LIBS="-ldld $LIBS"
20162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20163/* end confdefs.h. */
20164
20165/* Override any GCC internal prototype to avoid an error.
20166 Use char because int might match the return type of a GCC
20167 builtin and then its argument prototype would still apply. */
20168#ifdef __cplusplus
20169extern "C"
20170#endif
20171char dld_link ();
20172int
20173main ()
20174{
20175return dld_link ();
20176 ;
20177 return 0;
20178}
20179_ACEOF
20180if ac_fn_c_try_link "$LINENO"; then :
20181 ac_cv_lib_dld_dld_link=yes
20182else
20183 ac_cv_lib_dld_dld_link=no
20184fi
20185rm -f core conftest.err conftest.$ac_objext \
20186 conftest$ac_exeext conftest.$ac_ext
20187LIBS=$ac_check_lib_save_LIBS
20188fi
20189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20190$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020191if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020192
20193$as_echo "#define HAVE_DLD 1" >>confdefs.h
20194
20195 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20196fi
20197
20198
20199
20200
20201LT_DLPREOPEN=
20202if test -n "$LT_DLLOADERS"
20203then
20204 for lt_loader in $LT_DLLOADERS; do
20205 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20206 done
20207
20208$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20209
20210fi
20211
20212
20213LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20214
20215
20216ac_ext=c
20217ac_cpp='$CPP $CPPFLAGS'
20218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20220ac_compiler_gnu=$ac_cv_c_compiler_gnu
20221
20222
20223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20224$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020225if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020226 $as_echo_n "(cached) " >&6
20227else
20228 lt_cv_sys_symbol_underscore=no
20229 cat > conftest.$ac_ext <<_LT_EOF
20230void nm_test_func(){}
20231int main(){nm_test_func;return 0;}
20232_LT_EOF
20233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20234 (eval $ac_compile) 2>&5
20235 ac_status=$?
20236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20237 test $ac_status = 0; }; then
20238 # Now try to grab the symbols.
20239 ac_nlist=conftest.nm
20240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20241 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20242 ac_status=$?
20243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20244 test $ac_status = 0; } && test -s "$ac_nlist"; then
20245 # See whether the symbols have a leading underscore.
20246 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20247 lt_cv_sys_symbol_underscore=yes
20248 else
20249 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20250 :
20251 else
20252 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20253 fi
20254 fi
20255 else
20256 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20257 fi
20258 else
20259 echo "configure: failed program was:" >&5
20260 cat conftest.c >&5
20261 fi
20262 rm -rf conftest*
20263
20264fi
20265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20266$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20267 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20268
20269
20270if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20271 if test x"$libltdl_cv_func_dlopen" = xyes ||
20272 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20274$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020275if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020276 $as_echo_n "(cached) " >&6
20277else
20278 libltdl_cv_need_uscore=unknown
20279 save_LIBS="$LIBS"
20280 LIBS="$LIBS $LIBADD_DLOPEN"
20281 if test "$cross_compiling" = yes; then :
20282 libltdl_cv_need_uscore=cross
20283else
20284 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20285 lt_status=$lt_dlunknown
20286 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020287#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020288#include "confdefs.h"
20289
20290#if HAVE_DLFCN_H
20291#include <dlfcn.h>
20292#endif
20293
20294#include <stdio.h>
20295
20296#ifdef RTLD_GLOBAL
20297# define LT_DLGLOBAL RTLD_GLOBAL
20298#else
20299# ifdef DL_GLOBAL
20300# define LT_DLGLOBAL DL_GLOBAL
20301# else
20302# define LT_DLGLOBAL 0
20303# endif
20304#endif
20305
20306/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20307 find out it does not work in some platform. */
20308#ifndef LT_DLLAZY_OR_NOW
20309# ifdef RTLD_LAZY
20310# define LT_DLLAZY_OR_NOW RTLD_LAZY
20311# else
20312# ifdef DL_LAZY
20313# define LT_DLLAZY_OR_NOW DL_LAZY
20314# else
20315# ifdef RTLD_NOW
20316# define LT_DLLAZY_OR_NOW RTLD_NOW
20317# else
20318# ifdef DL_NOW
20319# define LT_DLLAZY_OR_NOW DL_NOW
20320# else
20321# define LT_DLLAZY_OR_NOW 0
20322# endif
20323# endif
20324# endif
20325# endif
20326#endif
20327
cristy0c60a692010-11-04 01:09:47 +000020328/* When -fvisbility=hidden is used, assume the code has been annotated
20329 correspondingly for the symbols needed. */
20330#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020331int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020332#endif
20333
cristyda16f162011-02-19 23:52:17 +000020334int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020335int main ()
20336{
20337 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20338 int status = $lt_dlunknown;
20339
20340 if (self)
20341 {
20342 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020343 else
20344 {
20345 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20346 else puts (dlerror ());
20347 }
cristy73bd4a52010-10-05 11:24:23 +000020348 /* dlclose (self); */
20349 }
20350 else
20351 puts (dlerror ());
20352
20353 return status;
20354}
20355_LT_EOF
20356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20357 (eval $ac_link) 2>&5
20358 ac_status=$?
20359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20360 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20361 (./conftest; exit; ) >&5 2>/dev/null
20362 lt_status=$?
20363 case x$lt_status in
20364 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20365 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20366 x$lt_dlunknown|x*) ;;
20367 esac
20368 else :
20369 # compilation failed
20370
20371 fi
20372fi
20373rm -fr conftest*
20374
20375 LIBS="$save_LIBS"
20376
20377fi
20378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20379$as_echo "$libltdl_cv_need_uscore" >&6; }
20380 fi
20381fi
20382
20383if test x"$libltdl_cv_need_uscore" = xyes; then
20384
20385$as_echo "#define NEED_USCORE 1" >>confdefs.h
20386
20387fi
20388
20389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20390$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020391if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020392 $as_echo_n "(cached) " >&6
20393else
20394 # PORTME does your system automatically load deplibs for dlopen?
20395 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20396 # For now, we just catch OSes we know something about -- in the
20397 # future, we'll try test this programmatically.
20398 lt_cv_sys_dlopen_deplibs=unknown
20399 case $host_os in
20400 aix3*|aix4.1.*|aix4.2.*)
20401 # Unknown whether this is true for these versions of AIX, but
20402 # we want this `case' here to explicitly catch those versions.
20403 lt_cv_sys_dlopen_deplibs=unknown
20404 ;;
20405 aix[4-9]*)
20406 lt_cv_sys_dlopen_deplibs=yes
20407 ;;
20408 amigaos*)
20409 case $host_cpu in
20410 powerpc)
20411 lt_cv_sys_dlopen_deplibs=no
20412 ;;
20413 esac
20414 ;;
20415 darwin*)
20416 # Assuming the user has installed a libdl from somewhere, this is true
20417 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20418 lt_cv_sys_dlopen_deplibs=yes
20419 ;;
20420 freebsd* | dragonfly*)
20421 lt_cv_sys_dlopen_deplibs=yes
20422 ;;
cristy0c60a692010-11-04 01:09:47 +000020423 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020424 # GNU and its variants, using gnu ld.so (Glibc)
20425 lt_cv_sys_dlopen_deplibs=yes
20426 ;;
20427 hpux10*|hpux11*)
20428 lt_cv_sys_dlopen_deplibs=yes
20429 ;;
20430 interix*)
20431 lt_cv_sys_dlopen_deplibs=yes
20432 ;;
20433 irix[12345]*|irix6.[01]*)
20434 # Catch all versions of IRIX before 6.2, and indicate that we don't
20435 # know how it worked for any of those versions.
20436 lt_cv_sys_dlopen_deplibs=unknown
20437 ;;
20438 irix*)
20439 # The case above catches anything before 6.2, and it's known that
20440 # at 6.2 and later dlopen does load deplibs.
20441 lt_cv_sys_dlopen_deplibs=yes
20442 ;;
20443 netbsd*)
20444 lt_cv_sys_dlopen_deplibs=yes
20445 ;;
20446 openbsd*)
20447 lt_cv_sys_dlopen_deplibs=yes
20448 ;;
20449 osf[1234]*)
20450 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20451 # it did *not* use an RPATH in a shared library to find objects the
20452 # library depends on, so we explicitly say `no'.
20453 lt_cv_sys_dlopen_deplibs=no
20454 ;;
20455 osf5.0|osf5.0a|osf5.1)
20456 # dlopen *does* load deplibs and with the right loader patch applied
20457 # it even uses RPATH in a shared library to search for shared objects
20458 # that the library depends on, but there's no easy way to know if that
20459 # patch is installed. Since this is the case, all we can really
20460 # say is unknown -- it depends on the patch being installed. If
20461 # it is, this changes to `yes'. Without it, it would be `no'.
20462 lt_cv_sys_dlopen_deplibs=unknown
20463 ;;
20464 osf*)
20465 # the two cases above should catch all versions of osf <= 5.1. Read
20466 # the comments above for what we know about them.
20467 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20468 # is used to find them so we can finally say `yes'.
20469 lt_cv_sys_dlopen_deplibs=yes
20470 ;;
20471 qnx*)
20472 lt_cv_sys_dlopen_deplibs=yes
20473 ;;
20474 solaris*)
20475 lt_cv_sys_dlopen_deplibs=yes
20476 ;;
20477 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20478 libltdl_cv_sys_dlopen_deplibs=yes
20479 ;;
20480 esac
20481
20482fi
20483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20484$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20485if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20486
20487$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20488
20489fi
20490
20491:
20492
20493for ac_header in argz.h
20494do :
20495 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20496"
cristyda16f162011-02-19 23:52:17 +000020497if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020498 cat >>confdefs.h <<_ACEOF
20499#define HAVE_ARGZ_H 1
20500_ACEOF
20501
20502fi
20503
20504done
20505
20506
20507ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20508# include <argz.h>
20509#endif
20510"
cristyda16f162011-02-19 23:52:17 +000020511if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020512
20513cat >>confdefs.h <<_ACEOF
20514#define HAVE_ERROR_T 1
20515_ACEOF
20516
20517
20518else
20519
20520$as_echo "#define error_t int" >>confdefs.h
20521
20522
20523$as_echo "#define __error_t_defined 1" >>confdefs.h
20524
20525fi
20526
20527
20528ARGZ_H=
20529for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20530 argz_next argz_stringify
20531do :
20532 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20533ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020534if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020535 cat >>confdefs.h <<_ACEOF
20536#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20537_ACEOF
20538
20539else
20540 ARGZ_H=argz.h;
20541
20542 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20543
20544fi
20545done
20546
20547
20548if test -z "$ARGZ_H"; then :
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20550$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020551if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020552 $as_echo_n "(cached) " >&6
20553else
20554 case $host_os in #(
20555 *cygwin*)
20556 lt_cv_sys_argz_works=no
20557 if test "$cross_compiling" != no; then
20558 lt_cv_sys_argz_works="guessing no"
20559 else
20560 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20561 save_IFS=$IFS
20562 IFS=-.
20563 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20564 IFS=$save_IFS
20565 lt_os_major=${2-0}
20566 lt_os_minor=${3-0}
20567 lt_os_micro=${4-0}
20568 if test "$lt_os_major" -gt 1 \
20569 || { test "$lt_os_major" -eq 1 \
20570 && { test "$lt_os_minor" -gt 5 \
20571 || { test "$lt_os_minor" -eq 5 \
20572 && test "$lt_os_micro" -gt 24; }; }; }; then
20573 lt_cv_sys_argz_works=yes
20574 fi
20575 fi
20576 ;; #(
20577 *) lt_cv_sys_argz_works=yes ;;
20578 esac
20579fi
20580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20581$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020582 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020583
20584$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20585
20586else
20587 ARGZ_H=argz.h
20588
20589
20590 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20591
20592fi
20593fi
20594
20595
20596
20597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20598$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020599if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020600 $as_echo_n "(cached) " >&6
20601else
20602 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20603 libltdl_cv_preloaded_symbols=yes
20604 else
20605 libltdl_cv_preloaded_symbols=no
20606 fi
20607
20608fi
20609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20610$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20611if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20612
20613$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20614
20615fi
20616
20617# Set options
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629# Check whether --with-included_ltdl was given.
20630if test "${with_included_ltdl+set}" = set; then :
20631 withval=$with_included_ltdl;
20632fi
20633
20634
20635if test "x$with_included_ltdl" != xyes; then
20636 # We are not being forced to use the included libltdl sources, so
20637 # decide whether there is a useful installed version we can use.
20638 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20639
20640"
cristyda16f162011-02-19 23:52:17 +000020641if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020642 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20643 #include <ltdl.h>
20644"
cristyda16f162011-02-19 23:52:17 +000020645if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20647$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020648if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020649 $as_echo_n "(cached) " >&6
20650else
20651 ac_check_lib_save_LIBS=$LIBS
20652LIBS="-lltdl $LIBS"
20653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20654/* end confdefs.h. */
20655
20656/* Override any GCC internal prototype to avoid an error.
20657 Use char because int might match the return type of a GCC
20658 builtin and then its argument prototype would still apply. */
20659#ifdef __cplusplus
20660extern "C"
20661#endif
20662char lt_dladvise_preload ();
20663int
20664main ()
20665{
20666return lt_dladvise_preload ();
20667 ;
20668 return 0;
20669}
20670_ACEOF
20671if ac_fn_c_try_link "$LINENO"; then :
20672 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20673else
20674 ac_cv_lib_ltdl_lt_dladvise_preload=no
20675fi
20676rm -f core conftest.err conftest.$ac_objext \
20677 conftest$ac_exeext conftest.$ac_ext
20678LIBS=$ac_check_lib_save_LIBS
20679fi
20680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20681$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020682if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020683 with_included_ltdl=no
20684else
20685 with_included_ltdl=yes
20686fi
20687
20688else
20689 with_included_ltdl=yes
20690fi
20691
20692else
20693 with_included_ltdl=yes
20694fi
20695
20696
20697fi
20698
20699
20700
20701
20702# Check whether --with-ltdl_include was given.
20703if test "${with_ltdl_include+set}" = set; then :
20704 withval=$with_ltdl_include;
20705fi
20706
20707
20708if test -n "$with_ltdl_include"; then
20709 if test -f "$with_ltdl_include/ltdl.h"; then :
20710 else
cristy98dddb52010-11-04 00:30:15 +000020711 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020712 fi
20713else
20714 with_ltdl_include=no
20715fi
20716
20717
20718# Check whether --with-ltdl_lib was given.
20719if test "${with_ltdl_lib+set}" = set; then :
20720 withval=$with_ltdl_lib;
20721fi
20722
20723
20724if test -n "$with_ltdl_lib"; then
20725 if test -f "$with_ltdl_lib/libltdl.la"; then :
20726 else
cristy98dddb52010-11-04 00:30:15 +000020727 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020728 fi
20729else
20730 with_ltdl_lib=no
20731fi
20732
20733case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20734 ,yes,no,no,)
20735 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020736 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020737 "") enable_ltdl_convenience=yes
20738 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20739esac
20740LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20741LTDLDEPS=$LIBLTDL
20742LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20743
20744
20745
20746
20747
20748# For backwards non-gettext consistent compatibility...
20749INCLTDL="$LTDLINCL"
20750
20751
20752 ;;
20753 ,no,no,no,)
20754 # If the included ltdl is not to be used, then use the
20755 # preinstalled libltdl we found.
20756
20757$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20758
20759 LIBLTDL=-lltdl
20760 LTDLDEPS=
20761 LTDLINCL=
20762 ;;
20763 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020764 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020765 ;;
20766 *) with_included_ltdl=no
20767 LIBLTDL="-L$with_ltdl_lib -lltdl"
20768 LTDLDEPS=
20769 LTDLINCL="-I$with_ltdl_include"
20770 ;;
20771esac
20772INCLTDL="$LTDLINCL"
20773
20774# Report our decision...
20775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20776$as_echo_n "checking where to find libltdl headers... " >&6; }
20777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20778$as_echo "$LTDLINCL" >&6; }
20779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20780$as_echo_n "checking where to find libltdl library... " >&6; }
20781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20782$as_echo "$LIBLTDL" >&6; }
20783
20784
20785
20786# Check whether --enable-ltdl-install was given.
20787if test "${enable_ltdl_install+set}" = set; then :
20788 enableval=$enable_ltdl_install;
20789fi
20790
20791
20792case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20793 *yes*) ;;
20794 *) enable_ltdl_convenience=yes ;;
20795esac
20796
20797 if test x"${enable_ltdl_install-no}" != xno; then
20798 INSTALL_LTDL_TRUE=
20799 INSTALL_LTDL_FALSE='#'
20800else
20801 INSTALL_LTDL_TRUE='#'
20802 INSTALL_LTDL_FALSE=
20803fi
20804
20805 if test x"${enable_ltdl_convenience-no}" != xno; then
20806 CONVENIENCE_LTDL_TRUE=
20807 CONVENIENCE_LTDL_FALSE='#'
20808else
20809 CONVENIENCE_LTDL_TRUE='#'
20810 CONVENIENCE_LTDL_FALSE=
20811fi
20812
20813
20814
20815
20816
20817
cristy73bd4a52010-10-05 11:24:23 +000020818# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20819# the user used. This is so that ltdl.h can pick up the parent projects
20820# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20821# definitions required by ltdl.c.
20822# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20823
20824
20825
20826for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20827do :
20828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20829ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20830"
cristy98dddb52010-11-04 00:30:15 +000020831if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020832 cat >>confdefs.h <<_ACEOF
20833#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20834_ACEOF
20835
20836fi
20837
20838done
20839
20840
20841for ac_func in closedir opendir readdir
20842do :
20843 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20844ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020845if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020846 cat >>confdefs.h <<_ACEOF
20847#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20848_ACEOF
20849
20850else
20851
20852
20853 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20854
20855fi
20856done
20857
20858for ac_func in strlcat strlcpy
20859do :
20860 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20861ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020862if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020863 cat >>confdefs.h <<_ACEOF
20864#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20865_ACEOF
20866
20867else
20868
20869
20870 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20871
20872fi
20873done
20874
20875
20876
20877cat >>confdefs.h <<_ACEOF
20878#define LT_LIBEXT "$libext"
20879_ACEOF
20880
20881
cristyda16f162011-02-19 23:52:17 +000020882name=
20883eval "lt_libprefix=\"$libname_spec\""
20884
20885cat >>confdefs.h <<_ACEOF
20886#define LT_LIBPREFIX "$lt_libprefix"
20887_ACEOF
20888
20889
cristy73bd4a52010-10-05 11:24:23 +000020890name=ltdl
cristyda16f162011-02-19 23:52:17 +000020891eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020892
20893
20894
20895
20896
20897
20898
20899
20900# Only expand once:
20901
20902
cristy3ed852e2009-09-05 21:47:34 +000020903
20904# Check to see if building shared libraries
20905libtool_build_shared_libs='no'
20906if test "$enable_shared" = 'yes'; then
20907 libtool_build_shared_libs='yes'
20908fi
20909
20910# Check to see if building static libraries
20911libtool_build_static_libs='no'
20912if test "$enable_static" = 'yes'; then
20913 libtool_build_static_libs='yes'
20914fi
20915
cristy73bd4a52010-10-05 11:24:23 +000020916 if test "${libtool_build_shared_libs}" = 'yes'; then
20917 WITH_SHARED_LIBS_TRUE=
20918 WITH_SHARED_LIBS_FALSE='#'
20919else
20920 WITH_SHARED_LIBS_TRUE='#'
20921 WITH_SHARED_LIBS_FALSE=
20922fi
20923
cristy3ed852e2009-09-05 21:47:34 +000020924#
20925# Enable support for building loadable modules
20926#
20927
20928# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020929if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020930 withval=$with_modules; with_modules=$withval
20931else
cristy5a1cefd2010-01-06 20:42:35 +000020932 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020933fi
20934
20935
20936# Only allow building loadable modules if we are building shared libraries
20937if test "$with_modules" != 'no' ; then
20938 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020939 { $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 +000020940$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20941 with_modules='no'
20942 fi
20943fi
20944if test "$with_modules" != 'no'; then
20945
cristy8b350f62009-11-15 23:12:43 +000020946$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020947
20948fi
cristy73bd4a52010-10-05 11:24:23 +000020949 if test "$with_modules" != 'no'; then
20950 WITH_MODULES_TRUE=
20951 WITH_MODULES_FALSE='#'
20952else
20953 WITH_MODULES_TRUE='#'
20954 WITH_MODULES_FALSE=
20955fi
20956
cristy3ed852e2009-09-05 21:47:34 +000020957
20958# Enable building/use of libltdl if we are building shared libraries regardless
20959# of whether modules are built or not.
20960with_ltdl='no'
20961if test "$libtool_build_shared_libs" != 'no'; then
20962 with_ltdl='yes'
20963fi
20964
cristy73bd4a52010-10-05 11:24:23 +000020965 if test "$with_ltdl" != 'no'; then
20966 WITH_LTDL_TRUE=
20967 WITH_LTDL_FALSE='#'
20968else
20969 WITH_LTDL_TRUE='#'
20970 WITH_LTDL_FALSE=
20971fi
20972
cristy3ed852e2009-09-05 21:47:34 +000020973if test "$with_ltdl" != 'no'; then
20974
cristy8b350f62009-11-15 23:12:43 +000020975$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020976
20977
20978 # Set DLLDFLAGS
20979 if test X"$enable_shared" = Xyes; then
20980 DLLDFLAGS=-export-dynamic
20981
20982 fi
20983fi
20984
20985# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020986# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020987# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020988if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020989 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20990else
20991 enable_delegate_build='no'
20992fi
20993
20994
20995# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020996if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020997 enableval=$enable_deprecated; enable_deprecated=$enableval
20998else
20999 enable_deprecated='no'
21000fi
21001
21002
21003if test "$enable_deprecated" = 'yes'; then
21004
cristy8b350f62009-11-15 23:12:43 +000021005$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021006
21007else
21008 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21009fi
21010
21011# Build a version of ImageMagick which operates uninstalled.
21012# Used to build distributions located via MAGICK_HOME / executable path
21013# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021014if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021015 enableval=$enable_installed; enable_installed=$enableval
21016else
21017 enable_installed='yes'
21018fi
21019
21020
21021if test "$enable_installed" = 'yes'; then
21022
cristy8b350f62009-11-15 23:12:43 +000021023$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021024
21025else
21026 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21027fi
21028
21029# Permit enciphering and deciphering image pixels.
21030# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021031if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021032 enableval=$enable_cipher; enable_cipher=$enableval
21033else
21034 enable_cipher='yes'
21035fi
21036
21037
21038if test "$enable_cipher" = 'yes'; then
21039
cristy8b350f62009-11-15 23:12:43 +000021040$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021041
21042fi
21043
21044# Build an embeddable version of ImageMagick.
21045# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000021046if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021047 enableval=$enable_embeddable; enable_embeddable=$enableval
21048else
21049 enable_embeddable='no'
21050fi
21051
21052
21053if test "$enable_embeddable" = 'yes'; then
21054
cristy8b350f62009-11-15 23:12:43 +000021055$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021056
21057fi
21058
21059# Build a high dynamic range version of ImageMagick.
21060# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021061if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021062 enableval=$enable_hdri; enable_hdri=$enableval
21063else
21064 enable_hdri='no'
21065fi
21066
21067
21068MAGICK_HDRI=""
21069if test "$enable_hdri" = 'yes'; then
21070 MAGICK_HDRI="HDRI"
21071
cristy8b350f62009-11-15 23:12:43 +000021072$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021073
cristyfd9dcd42010-08-08 18:07:02 +000021074 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021075fi
21076
cristy3ed852e2009-09-05 21:47:34 +000021077# Build a version of ImageMagick with assert statements.
21078# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021079if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021080 enableval=$enable_assert; enable_assert=$enableval
21081else
21082 enable_assert='yes'
21083fi
21084
21085
21086if test "$enable_assert" = 'no'; then
21087
cristy8b350f62009-11-15 23:12:43 +000021088$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021089
21090fi
21091
21092# Add configure option --enable-maintainer-mode which enables dependency
21093# checking and generation useful to package maintainers. This is made an
21094# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000021095
21096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21097$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21098 # Check whether --enable-maintainer-mode was given.
21099if test "${enable_maintainer_mode+set}" = set; then :
21100 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21101else
21102 USE_MAINTAINER_MODE=no
21103fi
21104
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21106$as_echo "$USE_MAINTAINER_MODE" >&6; }
21107 if test $USE_MAINTAINER_MODE = yes; then
21108 MAINTAINER_MODE_TRUE=
21109 MAINTAINER_MODE_FALSE='#'
21110else
21111 MAINTAINER_MODE_TRUE='#'
21112 MAINTAINER_MODE_FALSE=
21113fi
21114
21115 MAINT=$MAINTAINER_MODE_TRUE
21116
21117
cristy3ed852e2009-09-05 21:47:34 +000021118
21119
21120# Enable ccmalloc memory debugging support
21121# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021122if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021123 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21124else
21125 enable_ccmalloc='no'
21126fi
21127
21128
21129# Enable Electric Fence memory debugging support
21130# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021131if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021132 enableval=$enable_efence; enable_efence=$enableval
21133else
21134 enable_efence='no'
21135fi
21136
21137
21138# Enable prof-based profiling support
21139# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021140if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021141 enableval=$enable_prof; enable_prof=$enableval
21142else
21143 enable_prof='no'
21144fi
21145
21146
21147# Enable gprof-based profiling support
21148# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021149if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021150 enableval=$enable_gprof; enable_gprof=$enableval
21151else
21152 enable_gprof='no'
21153fi
21154
21155
21156# Enable gcov-based profiling support
21157# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021158if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021159 enableval=$enable_gcov; enable_gcov=$enableval
21160else
21161 enable_gcov='no'
21162fi
21163
21164
21165enable_profiling='no'
21166if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21167 enable_profiling='yes'
21168 if test "$libtool_build_shared_libs" = 'yes'; then
21169 echo "Warning: Can not profile code using shared libraries"
21170 fi
21171fi
21172
21173# Magick API method prefix
21174
21175# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021176if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021177 withval=$with_method_prefix; with_method_prefix=$enableval
21178else
21179 with_method_prefix=''
21180fi
21181
21182
21183if test "$with_method_prefix" != ''; then
21184
21185cat >>confdefs.h <<_ACEOF
21186#define NAMESPACE_PREFIX $with_method_prefix
21187_ACEOF
21188
21189fi
21190
21191# Number of bits in a Quantum
21192
21193# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021194if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021195 withval=$with_quantum_depth; with_quantum_depth=$withval
21196else
21197 with_quantum_depth=16
21198fi
21199
21200
21201if test "$with_quantum_depth" != '8'; then
21202 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21203fi
21204
21205case "${with_quantum_depth}" in
21206 8 ) ;;
21207 16 ) ;;
21208 32 ) ;;
21209 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021210 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021211esac
21212QUANTUM_DEPTH="$with_quantum_depth"
21213
21214cat >>confdefs.h <<_ACEOF
21215#define QUANTUM_DEPTH $QUANTUM_DEPTH
21216_ACEOF
21217
21218
21219# Set pixel cache threshold
21220
21221# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021222if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021223 withval=$with_cache; with_cache=$withval
21224else
21225 with_cache=''
21226fi
21227
21228
21229if test "$with_cache" != ''; then
21230
21231cat >>confdefs.h <<_ACEOF
21232#define PixelCacheThreshold $with_cache
21233_ACEOF
21234
21235 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21236fi
21237
21238# Disable/Enable support for full delegate paths
21239
21240# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021241if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021242 withval=$with_frozenpaths; with_frozenpaths=$withval
21243else
21244 with_frozenpaths='no'
21245fi
21246
21247
21248# Enable build/install of Magick++
21249
21250# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021251if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021252 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21253else
21254 with_magick_plus_plus='yes'
21255fi
21256
21257
21258# Disable build/install of PerlMagick.
21259
21260# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021261if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021262 withval=$with_perl; with_perl=$withval
21263else
cristyb5f4e2f2010-04-25 00:49:11 +000021264 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021265fi
21266
21267
21268# Options to pass when configuring PerlMagick
21269
21270# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021271if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021272 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021273fi
21274
21275
cristy3ed852e2009-09-05 21:47:34 +000021276
21277# Enable umem, object-caching memory allocation library.
21278
21279# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021280if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021281 withval=$with_umem; with_umem=$withval
21282else
21283 with_umem='no'
21284fi
21285
21286if test "$with_umem" != 'yes' ; then
21287 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21288fi
21289
21290#
21291# Specify path to shared libstdc++ if not in normal location
21292#
21293
21294# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021295if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021296 withval=$with_libstdc; with_libstdc=$withval
21297else
21298 with_libstdc=''
21299fi
21300
21301
21302if test "$with_libstdc" != ''; then
21303 if test -d "$with_libstdc"; then
21304 LIBSTDCLDFLAGS="-L$with_libstdc"
21305 fi
21306fi
21307
21308
21309# Does gcc required -traditional?
21310if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021312$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021313if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021314 $as_echo_n "(cached) " >&6
21315else
21316 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021318/* end confdefs.h. */
21319#include <sgtty.h>
21320Autoconf TIOCGETP
21321_ACEOF
21322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021323 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021324 ac_cv_prog_gcc_traditional=yes
21325else
21326 ac_cv_prog_gcc_traditional=no
21327fi
21328rm -f conftest*
21329
21330
21331 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021333/* end confdefs.h. */
21334#include <termio.h>
21335Autoconf TCGETA
21336_ACEOF
21337if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021338 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021339 ac_cv_prog_gcc_traditional=yes
21340fi
21341rm -f conftest*
21342
21343 fi
21344fi
cristy8b350f62009-11-15 23:12:43 +000021345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021346$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21347 if test $ac_cv_prog_gcc_traditional = yes; then
21348 CC="$CC -traditional"
21349 fi
21350fi
21351
21352
21353########
21354#
21355# Set defines required to build DLLs and modules using MinGW
21356#
21357########
21358# These options are set for multi-thread DLL module build
21359# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21360# module: _DLL
21361# executable/Magick++: _DLL _MAGICKMOD_
21362MODULE_EXTRA_CPPFLAGS=''
21363LIBRARY_EXTRA_CPPFLAGS=''
21364if test "${native_win32_build}" = 'yes'; then
21365 if test "${libtool_build_shared_libs}" = 'yes'; then
21366 CPPFLAGS="$CPPFLAGS -D_DLL"
21367 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21368 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21369 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21370 if test "$with_modules" = 'yes'; then
21371 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21372 else
21373 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21374 fi
21375 else
21376 CPPFLAGS="$CPPFLAGS -D_LIB"
21377 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21378 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21379 fi
21380 if test "$with_threads" = 'yes'; then
21381 CPPFLAGS="$CPPFLAGS -D_MT"
21382 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21383 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21384 fi
21385fi
21386
21387
21388
21389# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021391$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021392if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021393 $as_echo_n "(cached) " >&6
21394else
cristy8b350f62009-11-15 23:12:43 +000021395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021396/* end confdefs.h. */
21397#include <stdlib.h>
21398#include <stdarg.h>
21399#include <string.h>
21400#include <float.h>
21401
21402int
21403main ()
21404{
21405
21406 ;
21407 return 0;
21408}
21409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021410if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021411 ac_cv_header_stdc=yes
21412else
cristy8b350f62009-11-15 23:12:43 +000021413 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021414fi
cristy3ed852e2009-09-05 21:47:34 +000021415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21416
21417if test $ac_cv_header_stdc = yes; then
21418 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021420/* end confdefs.h. */
21421#include <string.h>
21422
21423_ACEOF
21424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021425 $EGREP "memchr" >/dev/null 2>&1; then :
21426
cristy3ed852e2009-09-05 21:47:34 +000021427else
21428 ac_cv_header_stdc=no
21429fi
21430rm -f conftest*
21431
21432fi
21433
21434if test $ac_cv_header_stdc = yes; then
21435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021437/* end confdefs.h. */
21438#include <stdlib.h>
21439
21440_ACEOF
21441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021442 $EGREP "free" >/dev/null 2>&1; then :
21443
cristy3ed852e2009-09-05 21:47:34 +000021444else
21445 ac_cv_header_stdc=no
21446fi
21447rm -f conftest*
21448
21449fi
21450
21451if test $ac_cv_header_stdc = yes; then
21452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021453 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021454 :
21455else
cristy8b350f62009-11-15 23:12:43 +000021456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021457/* end confdefs.h. */
21458#include <ctype.h>
21459#include <stdlib.h>
21460#if ((' ' & 0x0FF) == 0x020)
21461# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21462# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21463#else
21464# define ISLOWER(c) \
21465 (('a' <= (c) && (c) <= 'i') \
21466 || ('j' <= (c) && (c) <= 'r') \
21467 || ('s' <= (c) && (c) <= 'z'))
21468# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21469#endif
21470
21471#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21472int
21473main ()
21474{
21475 int i;
21476 for (i = 0; i < 256; i++)
21477 if (XOR (islower (i), ISLOWER (i))
21478 || toupper (i) != TOUPPER (i))
21479 return 2;
21480 return 0;
21481}
21482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021483if ac_fn_c_try_run "$LINENO"; then :
21484
cristy3ed852e2009-09-05 21:47:34 +000021485else
cristy8b350f62009-11-15 23:12:43 +000021486 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021487fi
cristy8b350f62009-11-15 23:12:43 +000021488rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21489 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021490fi
21491
cristy3ed852e2009-09-05 21:47:34 +000021492fi
21493fi
cristy8b350f62009-11-15 23:12:43 +000021494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021495$as_echo "$ac_cv_header_stdc" >&6; }
21496if test $ac_cv_header_stdc = yes; then
21497
cristy8b350f62009-11-15 23:12:43 +000021498$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021499
21500fi
21501
21502if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021503 { $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 +000021504 header files. Compilation cannot proceed. Please install the ANSI C
21505 headers and rerun this script." >&5
21506$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21507 header files. Compilation cannot proceed. Please install the ANSI C
21508 headers and rerun this script." >&2;};
21509fi
cristya0b81c32010-01-22 02:54:33 +000021510
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21512$as_echo_n "checking whether to enable assertions... " >&6; }
21513 # Check whether --enable-assert was given.
21514if test "${enable_assert+set}" = set; then :
21515 enableval=$enable_assert; ac_enable_assert=$enableval
21516 if test "x$enableval" = xno; then :
21517
21518$as_echo "#define NDEBUG 1" >>confdefs.h
21519
21520elif test "x$enableval" != xyes; then :
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21522$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21523 ac_enable_assert=yes
21524fi
21525else
21526 ac_enable_assert=yes
21527fi
21528
21529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21530$as_echo "$ac_enable_assert" >&6; }
21531
cristy3ed852e2009-09-05 21:47:34 +000021532ac_header_dirent=no
21533for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21534 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021536$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021537if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021538 $as_echo_n "(cached) " >&6
21539else
cristy8b350f62009-11-15 23:12:43 +000021540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021541/* end confdefs.h. */
21542#include <sys/types.h>
21543#include <$ac_hdr>
21544
21545int
21546main ()
21547{
21548if ((DIR *) 0)
21549return 0;
21550 ;
21551 return 0;
21552}
21553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021554if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021555 eval "$as_ac_Header=yes"
21556else
cristy8b350f62009-11-15 23:12:43 +000021557 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021558fi
cristy3ed852e2009-09-05 21:47:34 +000021559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21560fi
cristy8b350f62009-11-15 23:12:43 +000021561eval ac_res=\$$as_ac_Header
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021563$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021564if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021565 cat >>confdefs.h <<_ACEOF
21566#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21567_ACEOF
21568
21569ac_header_dirent=$ac_hdr; break
21570fi
21571
21572done
21573# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21574if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021576$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021577if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021578 $as_echo_n "(cached) " >&6
21579else
21580 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021582/* end confdefs.h. */
21583
21584/* Override any GCC internal prototype to avoid an error.
21585 Use char because int might match the return type of a GCC
21586 builtin and then its argument prototype would still apply. */
21587#ifdef __cplusplus
21588extern "C"
21589#endif
21590char opendir ();
21591int
21592main ()
21593{
21594return opendir ();
21595 ;
21596 return 0;
21597}
21598_ACEOF
21599for ac_lib in '' dir; do
21600 if test -z "$ac_lib"; then
21601 ac_res="none required"
21602 else
21603 ac_res=-l$ac_lib
21604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21605 fi
cristy8b350f62009-11-15 23:12:43 +000021606 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021607 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021608fi
cristy8b350f62009-11-15 23:12:43 +000021609rm -f core conftest.err conftest.$ac_objext \
21610 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021611 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021612 break
21613fi
21614done
cristyda16f162011-02-19 23:52:17 +000021615if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021616
cristy3ed852e2009-09-05 21:47:34 +000021617else
21618 ac_cv_search_opendir=no
21619fi
21620rm conftest.$ac_ext
21621LIBS=$ac_func_search_save_LIBS
21622fi
cristy8b350f62009-11-15 23:12:43 +000021623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021624$as_echo "$ac_cv_search_opendir" >&6; }
21625ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021626if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21628
21629fi
21630
21631else
cristy8b350f62009-11-15 23:12:43 +000021632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021633$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021634if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021635 $as_echo_n "(cached) " >&6
21636else
21637 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021639/* end confdefs.h. */
21640
21641/* Override any GCC internal prototype to avoid an error.
21642 Use char because int might match the return type of a GCC
21643 builtin and then its argument prototype would still apply. */
21644#ifdef __cplusplus
21645extern "C"
21646#endif
21647char opendir ();
21648int
21649main ()
21650{
21651return opendir ();
21652 ;
21653 return 0;
21654}
21655_ACEOF
21656for ac_lib in '' x; do
21657 if test -z "$ac_lib"; then
21658 ac_res="none required"
21659 else
21660 ac_res=-l$ac_lib
21661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21662 fi
cristy8b350f62009-11-15 23:12:43 +000021663 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021664 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021665fi
cristy8b350f62009-11-15 23:12:43 +000021666rm -f core conftest.err conftest.$ac_objext \
21667 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021668 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021669 break
21670fi
21671done
cristyda16f162011-02-19 23:52:17 +000021672if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021673
cristy3ed852e2009-09-05 21:47:34 +000021674else
21675 ac_cv_search_opendir=no
21676fi
21677rm conftest.$ac_ext
21678LIBS=$ac_func_search_save_LIBS
21679fi
cristy8b350f62009-11-15 23:12:43 +000021680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021681$as_echo "$ac_cv_search_opendir" >&6; }
21682ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021683if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21685
21686fi
21687
21688fi
21689
21690
21691# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021692for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.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 +000021693do :
21694 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21695ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021696if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021697 cat >>confdefs.h <<_ACEOF
21698#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21699_ACEOF
21700
21701fi
21702
21703done
21704
21705
21706########
21707#
21708# Checks for typedefs, structures, and compiler characteristics.
21709#
21710########
21711
cristy8b350f62009-11-15 23:12:43 +000021712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021713$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021714if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021715 $as_echo_n "(cached) " >&6
21716else
cristy8b350f62009-11-15 23:12:43 +000021717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021718/* end confdefs.h. */
21719
21720#include <stdbool.h>
21721#ifndef bool
21722 "error: bool is not defined"
21723#endif
21724#ifndef false
21725 "error: false is not defined"
21726#endif
21727#if false
21728 "error: false is not 0"
21729#endif
21730#ifndef true
21731 "error: true is not defined"
21732#endif
21733#if true != 1
21734 "error: true is not 1"
21735#endif
21736#ifndef __bool_true_false_are_defined
21737 "error: __bool_true_false_are_defined is not defined"
21738#endif
21739
21740 struct s { _Bool s: 1; _Bool t; } s;
21741
21742 char a[true == 1 ? 1 : -1];
21743 char b[false == 0 ? 1 : -1];
21744 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21745 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021746 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021747 char f[(_Bool) 0.0 == false ? 1 : -1];
21748 char g[true];
21749 char h[sizeof (_Bool)];
21750 char i[sizeof s.t];
21751 enum { j = false, k = true, l = false * true, m = true * 256 };
21752 /* The following fails for
21753 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21754 _Bool n[m];
21755 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21756 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021757 /* Catch a bug in an HP-UX C compiler. See
21758 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21759 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21760 */
21761 _Bool q = true;
21762 _Bool *pq = &q;
21763
21764int
21765main ()
21766{
21767
cristyda16f162011-02-19 23:52:17 +000021768 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021769 *pq |= q;
21770 *pq |= ! q;
21771 /* Refer to every declared value, to avoid compiler optimizations. */
21772 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21773 + !m + !n + !o + !p + !q + !pq);
21774
21775 ;
21776 return 0;
21777}
21778_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021779if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021780 ac_cv_header_stdbool_h=yes
21781else
cristy8b350f62009-11-15 23:12:43 +000021782 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021783fi
cristy3ed852e2009-09-05 21:47:34 +000021784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21785fi
cristy8b350f62009-11-15 23:12:43 +000021786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021787$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021788ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021789if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021790
21791cat >>confdefs.h <<_ACEOF
21792#define HAVE__BOOL 1
21793_ACEOF
21794
21795
21796fi
21797
21798if test $ac_cv_header_stdbool_h = yes; then
21799
cristy8b350f62009-11-15 23:12:43 +000021800$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021801
21802fi
21803
cristy8b350f62009-11-15 23:12:43 +000021804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021805$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021806if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021807 $as_echo_n "(cached) " >&6
21808else
cristy8b350f62009-11-15 23:12:43 +000021809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021810/* end confdefs.h. */
21811
21812int
21813main ()
21814{
21815
21816volatile int x;
21817int * volatile y = (int *) 0;
21818return !x && !y;
21819 ;
21820 return 0;
21821}
21822_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021823if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021824 ac_cv_c_volatile=yes
21825else
cristy8b350f62009-11-15 23:12:43 +000021826 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021827fi
cristy3ed852e2009-09-05 21:47:34 +000021828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21829fi
cristy8b350f62009-11-15 23:12:43 +000021830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021831$as_echo "$ac_cv_c_volatile" >&6; }
21832if test $ac_cv_c_volatile = no; then
21833
cristy8b350f62009-11-15 23:12:43 +000021834$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021835
21836fi
21837
cristy8b350f62009-11-15 23:12:43 +000021838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021839$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021840if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021841 $as_echo_n "(cached) " >&6
21842else
cristy8b350f62009-11-15 23:12:43 +000021843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021844/* end confdefs.h. */
21845#define x(y) #y
21846
21847char *s = x(teststring);
21848_ACEOF
21849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021850 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021851 ac_cv_c_stringize=no
21852else
21853 ac_cv_c_stringize=yes
21854fi
21855rm -f conftest*
21856
21857fi
cristy8b350f62009-11-15 23:12:43 +000021858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021859$as_echo "$ac_cv_c_stringize" >&6; }
21860if test $ac_cv_c_stringize = yes; then
21861
cristy8b350f62009-11-15 23:12:43 +000021862$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021863
21864fi
21865
cristy8b350f62009-11-15 23:12:43 +000021866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021867$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021868if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021869 $as_echo_n "(cached) " >&6
21870else
cristy8b350f62009-11-15 23:12:43 +000021871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021872/* end confdefs.h. */
21873#include <sys/types.h>
21874#include <sys/stat.h>
21875
21876#if defined S_ISBLK && defined S_IFDIR
21877extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21878#endif
21879
21880#if defined S_ISBLK && defined S_IFCHR
21881extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21882#endif
21883
21884#if defined S_ISLNK && defined S_IFREG
21885extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21886#endif
21887
21888#if defined S_ISSOCK && defined S_IFREG
21889extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21890#endif
21891
21892_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021893if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021894 ac_cv_header_stat_broken=no
21895else
cristy8b350f62009-11-15 23:12:43 +000021896 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021897fi
cristy3ed852e2009-09-05 21:47:34 +000021898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21899fi
cristy8b350f62009-11-15 23:12:43 +000021900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021901$as_echo "$ac_cv_header_stat_broken" >&6; }
21902if test $ac_cv_header_stat_broken = yes; then
21903
cristy8b350f62009-11-15 23:12:43 +000021904$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021905
21906fi
21907
cristy8b350f62009-11-15 23:12:43 +000021908{ $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 +000021909$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021910if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021911 $as_echo_n "(cached) " >&6
21912else
cristy8b350f62009-11-15 23:12:43 +000021913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021914/* end confdefs.h. */
21915#include <sys/types.h>
21916#include <sys/time.h>
21917#include <time.h>
21918
21919int
21920main ()
21921{
21922if ((struct tm *) 0)
21923return 0;
21924 ;
21925 return 0;
21926}
21927_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021928if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021929 ac_cv_header_time=yes
21930else
cristy8b350f62009-11-15 23:12:43 +000021931 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021932fi
cristy3ed852e2009-09-05 21:47:34 +000021933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21934fi
cristy8b350f62009-11-15 23:12:43 +000021935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021936$as_echo "$ac_cv_header_time" >&6; }
21937if test $ac_cv_header_time = yes; then
21938
cristy8b350f62009-11-15 23:12:43 +000021939$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021940
21941fi
21942
cristy8b350f62009-11-15 23:12:43 +000021943{ $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 +000021944$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021945if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021946 $as_echo_n "(cached) " >&6
21947else
cristy8b350f62009-11-15 23:12:43 +000021948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021949/* end confdefs.h. */
21950#include <sys/types.h>
21951#include <time.h>
21952
21953int
21954main ()
21955{
21956struct tm tm;
21957 int *p = &tm.tm_sec;
21958 return !p;
21959 ;
21960 return 0;
21961}
21962_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021963if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021964 ac_cv_struct_tm=time.h
21965else
cristy8b350f62009-11-15 23:12:43 +000021966 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021967fi
cristy3ed852e2009-09-05 21:47:34 +000021968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21969fi
cristy8b350f62009-11-15 23:12:43 +000021970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021971$as_echo "$ac_cv_struct_tm" >&6; }
21972if test $ac_cv_struct_tm = sys/time.h; then
21973
cristy8b350f62009-11-15 23:12:43 +000021974$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021975
21976fi
21977
cristy92703d82010-04-26 00:18:18 +000021978ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21979#include <$ac_cv_struct_tm>
21980
21981"
cristyda16f162011-02-19 23:52:17 +000021982if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021983
21984cat >>confdefs.h <<_ACEOF
21985#define HAVE_STRUCT_TM_TM_ZONE 1
21986_ACEOF
21987
21988
21989fi
21990
21991if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21992
21993$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21994
21995else
21996 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21997"
cristyda16f162011-02-19 23:52:17 +000021998if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021999 ac_have_decl=1
22000else
22001 ac_have_decl=0
22002fi
22003
22004cat >>confdefs.h <<_ACEOF
22005#define HAVE_DECL_TZNAME $ac_have_decl
22006_ACEOF
22007
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22009$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022010if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022011 $as_echo_n "(cached) " >&6
22012else
22013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22014/* end confdefs.h. */
22015#include <time.h>
22016#if !HAVE_DECL_TZNAME
22017extern char *tzname[];
22018#endif
22019
22020int
22021main ()
22022{
22023return tzname[0][0];
22024 ;
22025 return 0;
22026}
22027_ACEOF
22028if ac_fn_c_try_link "$LINENO"; then :
22029 ac_cv_var_tzname=yes
22030else
22031 ac_cv_var_tzname=no
22032fi
22033rm -f core conftest.err conftest.$ac_objext \
22034 conftest$ac_exeext conftest.$ac_ext
22035fi
22036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22037$as_echo "$ac_cv_var_tzname" >&6; }
22038 if test $ac_cv_var_tzname = yes; then
22039
22040$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22041
22042 fi
22043fi
22044
cristy8b350f62009-11-15 23:12:43 +000022045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022046$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022047if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022048 $as_echo_n "(cached) " >&6
22049else
22050 echo '#! /bin/cat
22051exit 69
22052' >conftest
22053chmod u+x conftest
22054(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22055if test $? -ne 69; then
22056 ac_cv_sys_interpreter=yes
22057else
22058 ac_cv_sys_interpreter=no
22059fi
22060rm -f conftest
22061fi
cristy8b350f62009-11-15 23:12:43 +000022062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022063$as_echo "$ac_cv_sys_interpreter" >&6; }
22064interpval=$ac_cv_sys_interpreter
22065
22066
cristy3ed852e2009-09-05 21:47:34 +000022067# If the C compiler supports the keyword inline, do nothing. Otherwise
22068# define inline to __inline__ or __inline if it accepts one of those,
22069# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022071$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022072if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022073 $as_echo_n "(cached) " >&6
22074else
22075 ac_cv_c_inline=no
22076for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022078/* end confdefs.h. */
22079#ifndef __cplusplus
22080typedef int foo_t;
22081static $ac_kw foo_t static_foo () {return 0; }
22082$ac_kw foo_t foo () {return 0; }
22083#endif
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_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022088fi
cristy3ed852e2009-09-05 21:47:34 +000022089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22090 test "$ac_cv_c_inline" != no && break
22091done
22092
22093fi
cristy8b350f62009-11-15 23:12:43 +000022094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022095$as_echo "$ac_cv_c_inline" >&6; }
22096
cristy3ed852e2009-09-05 21:47:34 +000022097case $ac_cv_c_inline in
22098 inline | yes) ;;
22099 *)
22100 case $ac_cv_c_inline in
22101 no) ac_val=;;
22102 *) ac_val=$ac_cv_c_inline;;
22103 esac
22104 cat >>confdefs.h <<_ACEOF
22105#ifndef __cplusplus
22106#define inline $ac_val
22107#endif
22108_ACEOF
22109 ;;
22110esac
22111
22112
22113# If the C compiler supports the keyword restrict, do nothing. Otherwise
22114# define restrict to __restrict__ or __restrict if it accepts one of those,
22115# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022117$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022118if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022119 $as_echo_n "(cached) " >&6
22120else
22121 ac_cv_c_restrict=no
22122 # The order here caters to the fact that C++ does not require restrict.
22123 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022125/* end confdefs.h. */
22126typedef int * int_ptr;
22127 int foo (int_ptr $ac_kw ip) {
22128 return ip[0];
22129 }
22130int
22131main ()
22132{
22133int s[1];
22134 int * $ac_kw t = s;
22135 t[0] = 0;
22136 return foo(t)
22137 ;
22138 return 0;
22139}
22140_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022141if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022142 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022143fi
cristy3ed852e2009-09-05 21:47:34 +000022144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22145 test "$ac_cv_c_restrict" != no && break
22146 done
22147
22148fi
cristy8b350f62009-11-15 23:12:43 +000022149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022150$as_echo "$ac_cv_c_restrict" >&6; }
22151
cristy3ed852e2009-09-05 21:47:34 +000022152 case $ac_cv_c_restrict in
22153 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022154 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022155 ;;
22156 *) cat >>confdefs.h <<_ACEOF
22157#define restrict $ac_cv_c_restrict
22158_ACEOF
22159 ;;
22160 esac
22161
22162
22163# If words are stored with the most significant byte first (like
22164# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022166$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022167if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022168 $as_echo_n "(cached) " >&6
22169else
22170 ac_cv_c_bigendian=unknown
22171 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022173/* end confdefs.h. */
22174#ifndef __APPLE_CC__
22175 not a universal capable compiler
22176 #endif
22177 typedef int dummy;
22178
22179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022180if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022181
22182 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022183 # there are at least two -arch flags with different values.
22184 ac_arch=
22185 ac_prev=
22186 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22187 if test -n "$ac_prev"; then
22188 case $ac_word in
22189 i?86 | x86_64 | ppc | ppc64)
22190 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22191 ac_arch=$ac_word
22192 else
22193 ac_cv_c_bigendian=universal
22194 break
22195 fi
22196 ;;
22197 esac
22198 ac_prev=
22199 elif test "x$ac_word" = "x-arch"; then
22200 ac_prev=arch
22201 fi
22202 done
cristy3ed852e2009-09-05 21:47:34 +000022203fi
cristy3ed852e2009-09-05 21:47:34 +000022204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22205 if test $ac_cv_c_bigendian = unknown; then
22206 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022208/* end confdefs.h. */
22209#include <sys/types.h>
22210 #include <sys/param.h>
22211
22212int
22213main ()
22214{
22215#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22216 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22217 && LITTLE_ENDIAN)
22218 bogus endian macros
22219 #endif
22220
22221 ;
22222 return 0;
22223}
22224_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022225if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022226 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022228/* end confdefs.h. */
22229#include <sys/types.h>
22230 #include <sys/param.h>
22231
22232int
22233main ()
22234{
22235#if BYTE_ORDER != BIG_ENDIAN
22236 not big endian
22237 #endif
22238
22239 ;
22240 return 0;
22241}
22242_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022243if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022244 ac_cv_c_bigendian=yes
22245else
cristy8b350f62009-11-15 23:12:43 +000022246 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022247fi
cristy3ed852e2009-09-05 21:47:34 +000022248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022249fi
cristy3ed852e2009-09-05 21:47:34 +000022250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22251 fi
22252 if test $ac_cv_c_bigendian = unknown; then
22253 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022255/* end confdefs.h. */
22256#include <limits.h>
22257
22258int
22259main ()
22260{
22261#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22262 bogus endian macros
22263 #endif
22264
22265 ;
22266 return 0;
22267}
22268_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022269if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022270 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022272/* end confdefs.h. */
22273#include <limits.h>
22274
22275int
22276main ()
22277{
22278#ifndef _BIG_ENDIAN
22279 not big endian
22280 #endif
22281
22282 ;
22283 return 0;
22284}
22285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022286if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022287 ac_cv_c_bigendian=yes
22288else
cristy8b350f62009-11-15 23:12:43 +000022289 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022290fi
cristy3ed852e2009-09-05 21:47:34 +000022291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022292fi
cristy3ed852e2009-09-05 21:47:34 +000022293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22294 fi
22295 if test $ac_cv_c_bigendian = unknown; then
22296 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022297 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022298 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022300/* end confdefs.h. */
22301short int ascii_mm[] =
22302 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22303 short int ascii_ii[] =
22304 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22305 int use_ascii (int i) {
22306 return ascii_mm[i] + ascii_ii[i];
22307 }
22308 short int ebcdic_ii[] =
22309 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22310 short int ebcdic_mm[] =
22311 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22312 int use_ebcdic (int i) {
22313 return ebcdic_mm[i] + ebcdic_ii[i];
22314 }
22315 extern int foo;
22316
22317int
22318main ()
22319{
22320return use_ascii (foo) == use_ebcdic (foo);
22321 ;
22322 return 0;
22323}
22324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022325if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022326 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22327 ac_cv_c_bigendian=yes
22328 fi
22329 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22330 if test "$ac_cv_c_bigendian" = unknown; then
22331 ac_cv_c_bigendian=no
22332 else
22333 # finding both strings is unlikely to happen, but who knows?
22334 ac_cv_c_bigendian=unknown
22335 fi
22336 fi
cristy3ed852e2009-09-05 21:47:34 +000022337fi
cristy3ed852e2009-09-05 21:47:34 +000022338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22339else
cristy8b350f62009-11-15 23:12:43 +000022340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022341/* end confdefs.h. */
22342$ac_includes_default
22343int
22344main ()
22345{
22346
22347 /* Are we little or big endian? From Harbison&Steele. */
22348 union
22349 {
22350 long int l;
22351 char c[sizeof (long int)];
22352 } u;
22353 u.l = 1;
22354 return u.c[sizeof (long int) - 1] == 1;
22355
22356 ;
22357 return 0;
22358}
22359_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022360if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022361 ac_cv_c_bigendian=no
22362else
cristy8b350f62009-11-15 23:12:43 +000022363 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022364fi
cristy8b350f62009-11-15 23:12:43 +000022365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22366 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022367fi
22368
cristy3ed852e2009-09-05 21:47:34 +000022369 fi
22370fi
cristy8b350f62009-11-15 23:12:43 +000022371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022372$as_echo "$ac_cv_c_bigendian" >&6; }
22373 case $ac_cv_c_bigendian in #(
22374 yes)
cristy8b350f62009-11-15 23:12:43 +000022375 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022376;; #(
22377 no)
22378 ;; #(
22379 universal)
22380
cristy8b350f62009-11-15 23:12:43 +000022381$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022382
22383 ;; #(
22384 *)
cristy98dddb52010-11-04 00:30:15 +000022385 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022386 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022387 esac
22388
22389
cristy501c8042011-05-26 17:46:28 +000022390# Define to a suitable type, if standard headers do not define it.
22391ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22392case $ac_cv_c_int8_t in #(
22393 no|yes) ;; #(
22394 *)
cristy3ed852e2009-09-05 21:47:34 +000022395
22396cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022397#define int8_t $ac_cv_c_int8_t
22398_ACEOF
22399;;
22400esac
22401
22402ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22403case $ac_cv_c_int16_t in #(
22404 no|yes) ;; #(
22405 *)
22406
22407cat >>confdefs.h <<_ACEOF
22408#define int16_t $ac_cv_c_int16_t
22409_ACEOF
22410;;
22411esac
22412
22413ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22414case $ac_cv_c_int32_t in #(
22415 no|yes) ;; #(
22416 *)
22417
22418cat >>confdefs.h <<_ACEOF
22419#define int32_t $ac_cv_c_int32_t
22420_ACEOF
22421;;
22422esac
22423
22424ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22425case $ac_cv_c_int64_t in #(
22426 no|yes) ;; #(
22427 *)
22428
22429cat >>confdefs.h <<_ACEOF
22430#define int64_t $ac_cv_c_int64_t
22431_ACEOF
22432;;
22433esac
22434
22435
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22437$as_echo_n "checking for long long int... " >&6; }
22438if ${ac_cv_type_long_long_int+:} false; then :
22439 $as_echo_n "(cached) " >&6
22440else
22441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22442/* end confdefs.h. */
22443
22444 /* For now, do not test the preprocessor; as of 2007 there are too many
22445 implementations with broken preprocessors. Perhaps this can
22446 be revisited in 2012. In the meantime, code should not expect
22447 #if to work with literals wider than 32 bits. */
22448 /* Test literals. */
22449 long long int ll = 9223372036854775807ll;
22450 long long int nll = -9223372036854775807LL;
22451 unsigned long long int ull = 18446744073709551615ULL;
22452 /* Test constant expressions. */
22453 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22454 ? 1 : -1)];
22455 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22456 ? 1 : -1)];
22457 int i = 63;
22458int
22459main ()
22460{
22461/* Test availability of runtime routines for shift and division. */
22462 long long int llmax = 9223372036854775807ll;
22463 unsigned long long int ullmax = 18446744073709551615ull;
22464 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22465 | (llmax / ll) | (llmax % ll)
22466 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22467 | (ullmax / ull) | (ullmax % ull));
22468 ;
22469 return 0;
22470}
22471
22472_ACEOF
22473if ac_fn_c_try_link "$LINENO"; then :
22474 if test "$cross_compiling" = yes; then :
22475 ac_cv_type_long_long_int=yes
22476else
22477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22478/* end confdefs.h. */
22479#include <limits.h>
22480 #ifndef LLONG_MAX
22481 # define HALF \
22482 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22483 # define LLONG_MAX (HALF - 1 + HALF)
22484 #endif
22485int
22486main ()
22487{
22488long long int n = 1;
22489 int i;
22490 for (i = 0; ; i++)
22491 {
22492 long long int m = n << i;
22493 if (m >> i != n)
22494 return 1;
22495 if (LLONG_MAX / 2 < m)
22496 break;
22497 }
22498 return 0;
22499 ;
22500 return 0;
22501}
22502_ACEOF
22503if ac_fn_c_try_run "$LINENO"; then :
22504 ac_cv_type_long_long_int=yes
22505else
22506 ac_cv_type_long_long_int=no
22507fi
22508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22509 conftest.$ac_objext conftest.beam conftest.$ac_ext
22510fi
22511
22512else
22513 ac_cv_type_long_long_int=no
22514fi
22515rm -f core conftest.err conftest.$ac_objext \
22516 conftest$ac_exeext conftest.$ac_ext
22517fi
22518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22519$as_echo "$ac_cv_type_long_long_int" >&6; }
22520 if test $ac_cv_type_long_long_int = yes; then
22521
22522$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22523
22524 fi
22525
22526
22527
22528 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22529if test "x$ac_cv_type_intmax_t" = xyes; then :
22530
22531$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22532
22533else
22534 test $ac_cv_type_long_long_int = yes \
22535 && ac_type='long long int' \
22536 || ac_type='long int'
22537
22538cat >>confdefs.h <<_ACEOF
22539#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022540_ACEOF
22541
22542fi
22543
22544
cristy501c8042011-05-26 17:46:28 +000022545
22546 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22547if test "x$ac_cv_type_intptr_t" = xyes; then :
22548
22549$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022550
cristy3ed852e2009-09-05 21:47:34 +000022551else
cristy501c8042011-05-26 17:46:28 +000022552 for ac_type in 'int' 'long int' 'long long int'; do
22553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22554/* end confdefs.h. */
22555$ac_includes_default
22556int
22557main ()
22558{
22559static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22560test_array [0] = 0
22561
22562 ;
22563 return 0;
22564}
22565_ACEOF
22566if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022567
22568cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022569#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022570_ACEOF
22571
cristy501c8042011-05-26 17:46:28 +000022572 ac_type=
22573fi
22574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22575 test -z "$ac_type" && break
22576 done
cristy3ed852e2009-09-05 21:47:34 +000022577fi
22578
22579
cristy3ed852e2009-09-05 21:47:34 +000022580
cristy501c8042011-05-26 17:46:28 +000022581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22582$as_echo_n "checking for long double... " >&6; }
22583if ${ac_cv_type_long_double+:} false; then :
22584 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022585else
cristy501c8042011-05-26 17:46:28 +000022586 if test "$GCC" = yes; then
22587 ac_cv_type_long_double=yes
22588 else
22589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22590/* end confdefs.h. */
22591/* The Stardent Vistra knows sizeof (long double), but does
22592 not support it. */
22593 long double foo = 0.0L;
22594int
22595main ()
22596{
22597static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22598 sizeof (double) <= sizeof (long double))];
22599test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022600
cristy501c8042011-05-26 17:46:28 +000022601 ;
22602 return 0;
22603}
cristy3ed852e2009-09-05 21:47:34 +000022604_ACEOF
cristy501c8042011-05-26 17:46:28 +000022605if ac_fn_c_try_compile "$LINENO"; then :
22606 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022607else
cristy501c8042011-05-26 17:46:28 +000022608 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022609fi
cristy501c8042011-05-26 17:46:28 +000022610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22611 fi
cristy3ed852e2009-09-05 21:47:34 +000022612fi
cristy501c8042011-05-26 17:46:28 +000022613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22614$as_echo "$ac_cv_type_long_double" >&6; }
22615 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022616
cristy501c8042011-05-26 17:46:28 +000022617$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022618
cristy501c8042011-05-26 17:46:28 +000022619 fi
22620
cristy3ed852e2009-09-05 21:47:34 +000022621
cristy8b350f62009-11-15 23:12:43 +000022622 { $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 +000022623$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022624if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022625 $as_echo_n "(cached) " >&6
22626else
cristy8b350f62009-11-15 23:12:43 +000022627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022628/* end confdefs.h. */
22629#include <float.h>
22630 long double const a[] =
22631 {
22632 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22633 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22634 };
22635 long double
22636 f (long double x)
22637 {
22638 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22639 + (x ? f (x) : 'c'));
22640 }
22641
22642int
22643main ()
22644{
22645static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22646 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22647 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22648 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22649 && (int) LDBL_EPSILON == 0
22650 )];
22651test_array [0] = 0
22652
22653 ;
22654 return 0;
22655}
22656_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022657if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022658 ac_cv_type_long_double_wider=yes
22659else
cristy8b350f62009-11-15 23:12:43 +000022660 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022661fi
cristy3ed852e2009-09-05 21:47:34 +000022662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22663fi
cristy8b350f62009-11-15 23:12:43 +000022664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022665$as_echo "$ac_cv_type_long_double_wider" >&6; }
22666 if test $ac_cv_type_long_double_wider = yes; then
22667
cristy8b350f62009-11-15 23:12:43 +000022668$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022669
22670 fi
22671
22672
cristy501c8042011-05-26 17:46:28 +000022673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22674$as_echo_n "checking for long long int... " >&6; }
22675if ${ac_cv_type_long_long_int+:} false; then :
22676 $as_echo_n "(cached) " >&6
22677else
22678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22679/* end confdefs.h. */
22680
22681 /* For now, do not test the preprocessor; as of 2007 there are too many
22682 implementations with broken preprocessors. Perhaps this can
22683 be revisited in 2012. In the meantime, code should not expect
22684 #if to work with literals wider than 32 bits. */
22685 /* Test literals. */
22686 long long int ll = 9223372036854775807ll;
22687 long long int nll = -9223372036854775807LL;
22688 unsigned long long int ull = 18446744073709551615ULL;
22689 /* Test constant expressions. */
22690 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22691 ? 1 : -1)];
22692 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22693 ? 1 : -1)];
22694 int i = 63;
22695int
22696main ()
22697{
22698/* Test availability of runtime routines for shift and division. */
22699 long long int llmax = 9223372036854775807ll;
22700 unsigned long long int ullmax = 18446744073709551615ull;
22701 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22702 | (llmax / ll) | (llmax % ll)
22703 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22704 | (ullmax / ull) | (ullmax % ull));
22705 ;
22706 return 0;
22707}
22708
22709_ACEOF
22710if ac_fn_c_try_link "$LINENO"; then :
22711 if test "$cross_compiling" = yes; then :
22712 ac_cv_type_long_long_int=yes
22713else
22714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22715/* end confdefs.h. */
22716#include <limits.h>
22717 #ifndef LLONG_MAX
22718 # define HALF \
22719 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22720 # define LLONG_MAX (HALF - 1 + HALF)
22721 #endif
22722int
22723main ()
22724{
22725long long int n = 1;
22726 int i;
22727 for (i = 0; ; i++)
22728 {
22729 long long int m = n << i;
22730 if (m >> i != n)
22731 return 1;
22732 if (LLONG_MAX / 2 < m)
22733 break;
22734 }
22735 return 0;
22736 ;
22737 return 0;
22738}
22739_ACEOF
22740if ac_fn_c_try_run "$LINENO"; then :
22741 ac_cv_type_long_long_int=yes
22742else
22743 ac_cv_type_long_long_int=no
22744fi
22745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22746 conftest.$ac_objext conftest.beam conftest.$ac_ext
22747fi
22748
22749else
22750 ac_cv_type_long_long_int=no
22751fi
22752rm -f core conftest.err conftest.$ac_objext \
22753 conftest$ac_exeext conftest.$ac_ext
22754fi
22755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22756$as_echo "$ac_cv_type_long_long_int" >&6; }
22757 if test $ac_cv_type_long_long_int = yes; then
22758
22759$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22760
22761 fi
22762
22763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22764$as_echo_n "checking for mbstate_t... " >&6; }
22765if ${ac_cv_type_mbstate_t+:} false; then :
22766 $as_echo_n "(cached) " >&6
22767else
22768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22769/* end confdefs.h. */
22770$ac_includes_default
22771# include <wchar.h>
22772int
22773main ()
22774{
22775mbstate_t x; return sizeof x;
22776 ;
22777 return 0;
22778}
22779_ACEOF
22780if ac_fn_c_try_compile "$LINENO"; then :
22781 ac_cv_type_mbstate_t=yes
22782else
22783 ac_cv_type_mbstate_t=no
22784fi
22785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22786fi
22787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22788$as_echo "$ac_cv_type_mbstate_t" >&6; }
22789 if test $ac_cv_type_mbstate_t = yes; then
22790
22791$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22792
22793 else
22794
22795$as_echo "#define mbstate_t int" >>confdefs.h
22796
22797 fi
22798ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22799if test "x$ac_cv_type_mode_t" = xyes; then :
22800
22801else
22802
22803cat >>confdefs.h <<_ACEOF
22804#define mode_t int
22805_ACEOF
22806
22807fi
22808
22809ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22810if test "x$ac_cv_type_off_t" = xyes; then :
22811
22812else
22813
22814cat >>confdefs.h <<_ACEOF
22815#define off_t long int
22816_ACEOF
22817
22818fi
22819
22820ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22821if test "x$ac_cv_type_pid_t" = xyes; then :
22822
22823else
22824
22825cat >>confdefs.h <<_ACEOF
22826#define pid_t int
22827_ACEOF
22828
22829fi
22830
22831ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22832if test "x$ac_cv_type_size_t" = xyes; then :
22833
22834else
22835
22836cat >>confdefs.h <<_ACEOF
22837#define size_t unsigned int
22838_ACEOF
22839
22840fi
22841
22842ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22843if test "x$ac_cv_type_ssize_t" = xyes; then :
22844
22845else
22846
22847cat >>confdefs.h <<_ACEOF
22848#define ssize_t int
22849_ACEOF
22850
22851fi
22852
22853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22854$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22855if ${ac_cv_type_uid_t+:} false; then :
22856 $as_echo_n "(cached) " >&6
22857else
22858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22859/* end confdefs.h. */
22860#include <sys/types.h>
22861
22862_ACEOF
22863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22864 $EGREP "uid_t" >/dev/null 2>&1; then :
22865 ac_cv_type_uid_t=yes
22866else
22867 ac_cv_type_uid_t=no
22868fi
22869rm -f conftest*
22870
22871fi
22872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22873$as_echo "$ac_cv_type_uid_t" >&6; }
22874if test $ac_cv_type_uid_t = no; then
22875
22876$as_echo "#define uid_t int" >>confdefs.h
22877
22878
22879$as_echo "#define gid_t int" >>confdefs.h
22880
22881fi
22882
22883ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22884case $ac_cv_c_uint8_t in #(
22885 no|yes) ;; #(
22886 *)
22887
22888$as_echo "#define _UINT8_T 1" >>confdefs.h
22889
22890
22891cat >>confdefs.h <<_ACEOF
22892#define uint8_t $ac_cv_c_uint8_t
22893_ACEOF
22894;;
22895 esac
22896
22897ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22898case $ac_cv_c_uint16_t in #(
22899 no|yes) ;; #(
22900 *)
22901
22902
22903cat >>confdefs.h <<_ACEOF
22904#define uint16_t $ac_cv_c_uint16_t
22905_ACEOF
22906;;
22907 esac
22908
22909ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22910case $ac_cv_c_uint32_t in #(
22911 no|yes) ;; #(
22912 *)
22913
22914$as_echo "#define _UINT32_T 1" >>confdefs.h
22915
22916
22917cat >>confdefs.h <<_ACEOF
22918#define uint32_t $ac_cv_c_uint32_t
22919_ACEOF
22920;;
22921 esac
22922
22923ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22924case $ac_cv_c_uint64_t in #(
22925 no|yes) ;; #(
22926 *)
22927
22928$as_echo "#define _UINT64_T 1" >>confdefs.h
22929
22930
22931cat >>confdefs.h <<_ACEOF
22932#define uint64_t $ac_cv_c_uint64_t
22933_ACEOF
22934;;
22935 esac
22936
22937
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22939$as_echo_n "checking for unsigned long long int... " >&6; }
22940if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22941 $as_echo_n "(cached) " >&6
22942else
22943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22944/* end confdefs.h. */
22945
22946 /* For now, do not test the preprocessor; as of 2007 there are too many
22947 implementations with broken preprocessors. Perhaps this can
22948 be revisited in 2012. In the meantime, code should not expect
22949 #if to work with literals wider than 32 bits. */
22950 /* Test literals. */
22951 long long int ll = 9223372036854775807ll;
22952 long long int nll = -9223372036854775807LL;
22953 unsigned long long int ull = 18446744073709551615ULL;
22954 /* Test constant expressions. */
22955 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22956 ? 1 : -1)];
22957 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22958 ? 1 : -1)];
22959 int i = 63;
22960int
22961main ()
22962{
22963/* Test availability of runtime routines for shift and division. */
22964 long long int llmax = 9223372036854775807ll;
22965 unsigned long long int ullmax = 18446744073709551615ull;
22966 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22967 | (llmax / ll) | (llmax % ll)
22968 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22969 | (ullmax / ull) | (ullmax % ull));
22970 ;
22971 return 0;
22972}
22973
22974_ACEOF
22975if ac_fn_c_try_link "$LINENO"; then :
22976 ac_cv_type_unsigned_long_long_int=yes
22977else
22978 ac_cv_type_unsigned_long_long_int=no
22979fi
22980rm -f core conftest.err conftest.$ac_objext \
22981 conftest$ac_exeext conftest.$ac_ext
22982fi
22983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22984$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22985 if test $ac_cv_type_unsigned_long_long_int = yes; then
22986
22987$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22988
22989 fi
22990
22991
22992
22993 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22994if test "x$ac_cv_type_uintmax_t" = xyes; then :
22995
22996$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22997
22998else
22999 test $ac_cv_type_unsigned_long_long_int = yes \
23000 && ac_type='unsigned long long int' \
23001 || ac_type='unsigned long int'
23002
23003cat >>confdefs.h <<_ACEOF
23004#define uintmax_t $ac_type
23005_ACEOF
23006
23007fi
23008
23009
23010
23011 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23012if test "x$ac_cv_type_uintptr_t" = xyes; then :
23013
23014$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23015
23016else
23017 for ac_type in 'unsigned int' 'unsigned long int' \
23018 'unsigned long long int'; do
23019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23020/* end confdefs.h. */
23021$ac_includes_default
23022int
23023main ()
23024{
23025static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23026test_array [0] = 0
23027
23028 ;
23029 return 0;
23030}
23031_ACEOF
23032if ac_fn_c_try_compile "$LINENO"; then :
23033
23034cat >>confdefs.h <<_ACEOF
23035#define uintptr_t $ac_type
23036_ACEOF
23037
23038 ac_type=
23039fi
23040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23041 test -z "$ac_type" && break
23042 done
23043fi
23044
23045
23046
23047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23048$as_echo_n "checking for unsigned long long int... " >&6; }
23049if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23050 $as_echo_n "(cached) " >&6
23051else
23052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23053/* end confdefs.h. */
23054
23055 /* For now, do not test the preprocessor; as of 2007 there are too many
23056 implementations with broken preprocessors. Perhaps this can
23057 be revisited in 2012. In the meantime, code should not expect
23058 #if to work with literals wider than 32 bits. */
23059 /* Test literals. */
23060 long long int ll = 9223372036854775807ll;
23061 long long int nll = -9223372036854775807LL;
23062 unsigned long long int ull = 18446744073709551615ULL;
23063 /* Test constant expressions. */
23064 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23065 ? 1 : -1)];
23066 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23067 ? 1 : -1)];
23068 int i = 63;
23069int
23070main ()
23071{
23072/* Test availability of runtime routines for shift and division. */
23073 long long int llmax = 9223372036854775807ll;
23074 unsigned long long int ullmax = 18446744073709551615ull;
23075 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23076 | (llmax / ll) | (llmax % ll)
23077 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23078 | (ullmax / ull) | (ullmax % ull));
23079 ;
23080 return 0;
23081}
23082
23083_ACEOF
23084if ac_fn_c_try_link "$LINENO"; then :
23085 ac_cv_type_unsigned_long_long_int=yes
23086else
23087 ac_cv_type_unsigned_long_long_int=no
23088fi
23089rm -f core conftest.err conftest.$ac_objext \
23090 conftest$ac_exeext conftest.$ac_ext
23091fi
23092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23093$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23094 if test $ac_cv_type_unsigned_long_long_int = yes; then
23095
23096$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23097
23098 fi
23099
23100
cristy3ed852e2009-09-05 21:47:34 +000023101# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23102# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023104$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023105if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023106 $as_echo_n "(cached) " >&6
23107else
cristy8b350f62009-11-15 23:12:43 +000023108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023109/* end confdefs.h. */
23110$ac_includes_default
23111int
23112main ()
23113{
23114static int test_array [1 - 2 * !(((char) -1) < 0)];
23115test_array [0] = 0
23116
23117 ;
23118 return 0;
23119}
23120_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023121if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023122 ac_cv_c_char_unsigned=no
23123else
cristy8b350f62009-11-15 23:12:43 +000023124 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023125fi
cristy3ed852e2009-09-05 21:47:34 +000023126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23127fi
cristy8b350f62009-11-15 23:12:43 +000023128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023129$as_echo "$ac_cv_c_char_unsigned" >&6; }
23130if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023131 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023132
23133fi
23134
23135
23136# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23137# The cast to long int works around a bug in the HP C Compiler
23138# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23139# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23140# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023142$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023143if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023144 $as_echo_n "(cached) " >&6
23145else
cristy8b350f62009-11-15 23:12:43 +000023146 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 +000023147
cristy3ed852e2009-09-05 21:47:34 +000023148else
cristy8b350f62009-11-15 23:12:43 +000023149 if test "$ac_cv_type_signed_short" = yes; then
23150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023152as_fn_error 77 "cannot compute sizeof (signed short)
23153See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023154 else
23155 ac_cv_sizeof_signed_short=0
23156 fi
23157fi
cristy8b350f62009-11-15 23:12:43 +000023158
cristy3ed852e2009-09-05 21:47:34 +000023159fi
cristy8b350f62009-11-15 23:12:43 +000023160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023161$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23162
23163
23164
23165cat >>confdefs.h <<_ACEOF
23166#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23167_ACEOF
23168
23169
23170
23171# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23172# The cast to long int works around a bug in the HP C Compiler
23173# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23174# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23175# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023177$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023178if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023179 $as_echo_n "(cached) " >&6
23180else
cristy8b350f62009-11-15 23:12:43 +000023181 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 +000023182
cristy3ed852e2009-09-05 21:47:34 +000023183else
cristy8b350f62009-11-15 23:12:43 +000023184 if test "$ac_cv_type_unsigned_short" = yes; then
23185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023187as_fn_error 77 "cannot compute sizeof (unsigned short)
23188See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023189 else
23190 ac_cv_sizeof_unsigned_short=0
23191 fi
23192fi
cristy8b350f62009-11-15 23:12:43 +000023193
cristy3ed852e2009-09-05 21:47:34 +000023194fi
cristy8b350f62009-11-15 23:12:43 +000023195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023196$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23197
23198
23199
23200cat >>confdefs.h <<_ACEOF
23201#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23202_ACEOF
23203
23204
23205
23206# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23207# The cast to long int works around a bug in the HP C Compiler
23208# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23209# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23210# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023212$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023213if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023214 $as_echo_n "(cached) " >&6
23215else
cristy8b350f62009-11-15 23:12:43 +000023216 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 +000023217
cristy3ed852e2009-09-05 21:47:34 +000023218else
cristy8b350f62009-11-15 23:12:43 +000023219 if test "$ac_cv_type_signed_int" = yes; then
23220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023222as_fn_error 77 "cannot compute sizeof (signed int)
23223See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023224 else
23225 ac_cv_sizeof_signed_int=0
23226 fi
23227fi
cristy8b350f62009-11-15 23:12:43 +000023228
cristy3ed852e2009-09-05 21:47:34 +000023229fi
cristy8b350f62009-11-15 23:12:43 +000023230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023231$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23232
23233
23234
23235cat >>confdefs.h <<_ACEOF
23236#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23237_ACEOF
23238
23239
23240
23241# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23242# The cast to long int works around a bug in the HP C Compiler
23243# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23244# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23245# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023247$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023248if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023249 $as_echo_n "(cached) " >&6
23250else
cristy8b350f62009-11-15 23:12:43 +000023251 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 +000023252
cristy3ed852e2009-09-05 21:47:34 +000023253else
cristy8b350f62009-11-15 23:12:43 +000023254 if test "$ac_cv_type_unsigned_int" = yes; then
23255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023257as_fn_error 77 "cannot compute sizeof (unsigned int)
23258See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023259 else
23260 ac_cv_sizeof_unsigned_int=0
23261 fi
23262fi
cristy8b350f62009-11-15 23:12:43 +000023263
cristy3ed852e2009-09-05 21:47:34 +000023264fi
cristy8b350f62009-11-15 23:12:43 +000023265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023266$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23267
23268
23269
23270cat >>confdefs.h <<_ACEOF
23271#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23272_ACEOF
23273
23274
23275
23276# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23277# The cast to long int works around a bug in the HP C Compiler
23278# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23279# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23280# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023282$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023283if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023284 $as_echo_n "(cached) " >&6
23285else
cristy8b350f62009-11-15 23:12:43 +000023286 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 +000023287
cristy3ed852e2009-09-05 21:47:34 +000023288else
cristy8b350f62009-11-15 23:12:43 +000023289 if test "$ac_cv_type_signed_long" = yes; then
23290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023292as_fn_error 77 "cannot compute sizeof (signed long)
23293See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023294 else
23295 ac_cv_sizeof_signed_long=0
23296 fi
23297fi
cristy8b350f62009-11-15 23:12:43 +000023298
cristy3ed852e2009-09-05 21:47:34 +000023299fi
cristy8b350f62009-11-15 23:12:43 +000023300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023301$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23302
23303
23304
23305cat >>confdefs.h <<_ACEOF
23306#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23307_ACEOF
23308
23309
23310
23311# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23312# The cast to long int works around a bug in the HP C Compiler
23313# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23314# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23315# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023317$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023318if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023319 $as_echo_n "(cached) " >&6
23320else
cristy8b350f62009-11-15 23:12:43 +000023321 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 +000023322
cristy3ed852e2009-09-05 21:47:34 +000023323else
cristy8b350f62009-11-15 23:12:43 +000023324 if test "$ac_cv_type_unsigned_long" = yes; then
23325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023327as_fn_error 77 "cannot compute sizeof (unsigned long)
23328See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023329 else
23330 ac_cv_sizeof_unsigned_long=0
23331 fi
23332fi
cristy8b350f62009-11-15 23:12:43 +000023333
cristy3ed852e2009-09-05 21:47:34 +000023334fi
cristy8b350f62009-11-15 23:12:43 +000023335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023336$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23337
23338
23339
23340cat >>confdefs.h <<_ACEOF
23341#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23342_ACEOF
23343
23344
23345
23346# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23347# 'signed long long' is not supported then the value defined is zero.
23348# The cast to long int works around a bug in the HP C Compiler
23349# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23350# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23351# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023353$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023354if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023355 $as_echo_n "(cached) " >&6
23356else
cristy8b350f62009-11-15 23:12:43 +000023357 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 +000023358
cristy3ed852e2009-09-05 21:47:34 +000023359else
cristy8b350f62009-11-15 23:12:43 +000023360 if test "$ac_cv_type_signed_long_long" = yes; then
23361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023363as_fn_error 77 "cannot compute sizeof (signed long long)
23364See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023365 else
23366 ac_cv_sizeof_signed_long_long=0
23367 fi
23368fi
cristy8b350f62009-11-15 23:12:43 +000023369
cristy3ed852e2009-09-05 21:47:34 +000023370fi
cristy8b350f62009-11-15 23:12:43 +000023371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023372$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23373
23374
23375
23376cat >>confdefs.h <<_ACEOF
23377#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23378_ACEOF
23379
23380
23381
23382# Obtain size of a 'unsigned long long' and define as
23383# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23384# supported then the value defined is zero.
23385# The cast to long int works around a bug in the HP C Compiler
23386# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23387# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23388# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023390$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023391if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023392 $as_echo_n "(cached) " >&6
23393else
cristy8b350f62009-11-15 23:12:43 +000023394 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 +000023395
cristy3ed852e2009-09-05 21:47:34 +000023396else
cristy8b350f62009-11-15 23:12:43 +000023397 if test "$ac_cv_type_unsigned_long_long" = yes; then
23398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023400as_fn_error 77 "cannot compute sizeof (unsigned long long)
23401See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023402 else
23403 ac_cv_sizeof_unsigned_long_long=0
23404 fi
23405fi
cristy8b350f62009-11-15 23:12:43 +000023406
cristy3ed852e2009-09-05 21:47:34 +000023407fi
cristy8b350f62009-11-15 23:12:43 +000023408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023409$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23410
23411
23412
23413cat >>confdefs.h <<_ACEOF
23414#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23415_ACEOF
23416
23417
23418
23419# Obtain size of off_t and define as SIZEOF_OFF_T
23420# The cast to long int works around a bug in the HP C Compiler
23421# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23422# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23423# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023425$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023426if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023427 $as_echo_n "(cached) " >&6
23428else
cristy8b350f62009-11-15 23:12:43 +000023429 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023430
cristy3ed852e2009-09-05 21:47:34 +000023431else
cristy8b350f62009-11-15 23:12:43 +000023432 if test "$ac_cv_type_off_t" = yes; then
23433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023435as_fn_error 77 "cannot compute sizeof (off_t)
23436See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023437 else
23438 ac_cv_sizeof_off_t=0
23439 fi
23440fi
cristy8b350f62009-11-15 23:12:43 +000023441
cristy3ed852e2009-09-05 21:47:34 +000023442fi
cristy8b350f62009-11-15 23:12:43 +000023443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023444$as_echo "$ac_cv_sizeof_off_t" >&6; }
23445
23446
23447
23448cat >>confdefs.h <<_ACEOF
23449#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23450_ACEOF
23451
23452
23453
23454# Obtain size of size_t and define as SIZEOF_SIZE_T
23455# The cast to long int works around a bug in the HP C Compiler
23456# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23457# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23458# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023460$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023461if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023462 $as_echo_n "(cached) " >&6
23463else
cristy8b350f62009-11-15 23:12:43 +000023464 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023465
cristy3ed852e2009-09-05 21:47:34 +000023466else
cristy8b350f62009-11-15 23:12:43 +000023467 if test "$ac_cv_type_size_t" = yes; then
23468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023470as_fn_error 77 "cannot compute sizeof (size_t)
23471See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023472 else
23473 ac_cv_sizeof_size_t=0
23474 fi
23475fi
cristy8b350f62009-11-15 23:12:43 +000023476
cristy3ed852e2009-09-05 21:47:34 +000023477fi
cristy8b350f62009-11-15 23:12:43 +000023478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023479$as_echo "$ac_cv_sizeof_size_t" >&6; }
23480
23481
23482
23483cat >>confdefs.h <<_ACEOF
23484#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23485_ACEOF
23486
23487
23488
cristy330e9352010-06-01 18:42:49 +000023489# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23490# The cast to long int works around a bug in the HP C Compiler
23491# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23492# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23493# This bug is HP SR number 8606223364.
23494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23495$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023496if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023497 $as_echo_n "(cached) " >&6
23498else
23499 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23500
23501else
23502 if test "$ac_cv_type_ssize_t" = yes; then
23503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023505as_fn_error 77 "cannot compute sizeof (ssize_t)
23506See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023507 else
23508 ac_cv_sizeof_ssize_t=0
23509 fi
23510fi
23511
23512fi
23513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23514$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23515
23516
23517
23518cat >>confdefs.h <<_ACEOF
23519#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23520_ACEOF
23521
23522
23523
cristy3ed852e2009-09-05 21:47:34 +000023524# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23525# The cast to long int works around a bug in the HP C Compiler
23526# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23527# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23528# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023530$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023531if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023532 $as_echo_n "(cached) " >&6
23533else
cristy8b350f62009-11-15 23:12:43 +000023534 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 +000023535
cristy3ed852e2009-09-05 21:47:34 +000023536else
cristy8b350f62009-11-15 23:12:43 +000023537 if test "$ac_cv_type_unsigned_intp" = yes; then
23538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023540as_fn_error 77 "cannot compute sizeof (unsigned int*)
23541See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023542 else
23543 ac_cv_sizeof_unsigned_intp=0
23544 fi
23545fi
cristy8b350f62009-11-15 23:12:43 +000023546
cristy3ed852e2009-09-05 21:47:34 +000023547fi
cristy8b350f62009-11-15 23:12:43 +000023548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023549$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23550
23551
23552
23553cat >>confdefs.h <<_ACEOF
23554#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23555_ACEOF
23556
23557
23558
23559#
23560# Compute sized types for current CPU and compiler options.
23561#
23562
cristy8b350f62009-11-15 23:12:43 +000023563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023564$as_echo_n "checking for signed 8-bit type... " >&6; }
23565INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000023566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023567$as_echo "$INT8_T" >&6; }
23568
23569
cristy8b350f62009-11-15 23:12:43 +000023570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023571$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23572UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000023573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023574$as_echo "$UINT8_T" >&6; }
23575
23576
cristy8b350f62009-11-15 23:12:43 +000023577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023578$as_echo_n "checking for signed 16-bit type... " >&6; }
23579INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000023580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023581$as_echo "$INT16_T" >&6; }
23582
23583
cristy8b350f62009-11-15 23:12:43 +000023584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023585$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23586UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000023587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023588$as_echo "$UINT16_T" >&6; }
23589
23590
cristy8b350f62009-11-15 23:12:43 +000023591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023592$as_echo_n "checking for signed 32-bit type... " >&6; }
23593INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023594INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023595if test $ac_cv_sizeof_signed_int -eq 4; then
23596 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023597 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023598elif test $ac_cv_sizeof_signed_long -eq 4; then
23599 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023600 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023601fi
cristy8b350f62009-11-15 23:12:43 +000023602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023603$as_echo "$INT32_T" >&6; }
23604
23605
cristy6d5e20f2011-04-25 13:48:54 +000023606
cristy8b350f62009-11-15 23:12:43 +000023607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023608$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23609UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023610UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023611if test $ac_cv_sizeof_unsigned_int -eq 4; then
23612 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023613 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023614elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23615 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023616 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023617fi
cristy8b350f62009-11-15 23:12:43 +000023618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023619$as_echo "$UINT32_T" >&6; }
23620
23621
cristy6d5e20f2011-04-25 13:48:54 +000023622
cristy8b350f62009-11-15 23:12:43 +000023623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023624$as_echo_n "checking for signed 64-bit type... " >&6; }
23625INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023626INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023627if test $ac_cv_sizeof_signed_long -eq 8; then
23628 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023629 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023630elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23631 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023632 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023633fi
cristy6d5e20f2011-04-25 13:48:54 +000023634case "${build_os}" in
23635 mingw* )
23636 INT64_F='"I64"'
23637 ;;
23638esac
cristy8b350f62009-11-15 23:12:43 +000023639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023640$as_echo "$INT64_T" >&6; }
23641
23642
cristy6d5e20f2011-04-25 13:48:54 +000023643
cristy8b350f62009-11-15 23:12:43 +000023644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023645$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23646UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023647UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023648if test $ac_cv_sizeof_unsigned_long -eq 8; then
23649 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023650 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023651elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23652 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023653 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023654fi
cristy6d5e20f2011-04-25 13:48:54 +000023655case "${build_os}" in
23656 mingw* )
23657 UINT64_F='"I64"'
23658 ;;
23659esac
cristy8b350f62009-11-15 23:12:43 +000023660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023661$as_echo "$UINT64_T" >&6; }
23662
23663
cristy6d5e20f2011-04-25 13:48:54 +000023664
cristy8b350f62009-11-15 23:12:43 +000023665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023666$as_echo_n "checking for unsigned maximum type... " >&6; }
23667UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023668UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023669if test "$UINT64_T" != 'none'; then
23670 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023671 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023672elif test "$UINT32_T" != 'none'; then
23673 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023674 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023675fi
cristy8b350f62009-11-15 23:12:43 +000023676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023677$as_echo "$UINTMAX_T" >&6; }
23678
23679
cristy6d5e20f2011-04-25 13:48:54 +000023680
cristy8b350f62009-11-15 23:12:43 +000023681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023682$as_echo_n "checking for pointer difference type... " >&6; }
23683UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023684UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023685if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23686 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023687 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023688elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23689 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023690 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023691fi
cristy8b350f62009-11-15 23:12:43 +000023692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023693$as_echo "$UINTPTR_T" >&6; }
23694
23695
cristy6d5e20f2011-04-25 13:48:54 +000023696
cristy8b350f62009-11-15 23:12:43 +000023697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023698$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023700/* end confdefs.h. */
23701
23702int
23703main ()
23704{
23705{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23706 ;
23707 return 0;
23708}
23709_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023710if ac_fn_c_try_compile "$LINENO"; then :
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023712$as_echo "yes" >&6; }
23713else
cristy8b350f62009-11-15 23:12:43 +000023714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023715$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023717$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023719/* end confdefs.h. */
23720
23721int
23722main ()
23723{
23724{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23725 ;
23726 return 0;
23727}
23728_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023729if ac_fn_c_try_compile "$LINENO"; then :
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023731$as_echo "yes" >&6; }
23732
cristy8b350f62009-11-15 23:12:43 +000023733$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023734
23735else
cristy8b350f62009-11-15 23:12:43 +000023736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023737$as_echo "no" >&6; }
23738
cristy8b350f62009-11-15 23:12:43 +000023739$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023740
23741fi
cristy3ed852e2009-09-05 21:47:34 +000023742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23743fi
cristy3ed852e2009-09-05 21:47:34 +000023744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23745
23746########
23747#
23748# Check for functions
23749#
23750########
cristy73bd4a52010-10-05 11:24:23 +000023751for ac_header in stdlib.h unistd.h
23752do :
23753 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23754ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023755if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023756 cat >>confdefs.h <<_ACEOF
23757#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23758_ACEOF
23759
23760fi
23761
23762done
23763
23764for ac_func in getpagesize
23765do :
23766 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023767if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023768 cat >>confdefs.h <<_ACEOF
23769#define HAVE_GETPAGESIZE 1
23770_ACEOF
23771
23772fi
23773done
23774
23775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23776$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023777if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023778 $as_echo_n "(cached) " >&6
23779else
23780 if test "$cross_compiling" = yes; then :
23781 magick_cv_func_mmap_fileio=no
23782else
23783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23784/* end confdefs.h. */
23785$ac_includes_default
23786/* malloc might have been renamed as rpl_malloc. */
23787#undef malloc
23788
23789/*
23790 This test is derived from GNU Autoconf's similar macro.
23791 The purpose of this test is to verify that files may be memory
23792 mapped, and that memory mapping and file I/O are coherent.
23793
23794 The test creates a test file, memory maps the file, updates
23795 the file using the memory map, and then reads the file using
23796 file I/O to verify that the file contains the updates.
23797*/
23798
23799#include <fcntl.h>
23800#include <sys/mman.h>
23801
23802#if !STDC_HEADERS && !HAVE_STDLIB_H
23803char *malloc ();
23804#endif
23805
23806/* This mess was copied from the GNU getpagesize.h. */
23807#if !HAVE_GETPAGESIZE
23808/* Assume that all systems that can run configure have sys/param.h. */
23809# if !HAVE_SYS_PARAM_H
23810# define HAVE_SYS_PARAM_H 1
23811# endif
23812
23813# ifdef _SC_PAGESIZE
23814# define getpagesize() sysconf(_SC_PAGESIZE)
23815# else /* no _SC_PAGESIZE */
23816# if HAVE_SYS_PARAM_H
23817# include <sys/param.h>
23818# ifdef EXEC_PAGESIZE
23819# define getpagesize() EXEC_PAGESIZE
23820# else /* no EXEC_PAGESIZE */
23821# ifdef NBPG
23822# define getpagesize() NBPG * CLSIZE
23823# ifndef CLSIZE
23824# define CLSIZE 1
23825# endif /* no CLSIZE */
23826# else /* no NBPG */
23827# ifdef NBPC
23828# define getpagesize() NBPC
23829# else /* no NBPC */
23830# ifdef PAGESIZE
23831# define getpagesize() PAGESIZE
23832# endif /* PAGESIZE */
23833# endif /* no NBPC */
23834# endif /* no NBPG */
23835# endif /* no EXEC_PAGESIZE */
23836# else /* no HAVE_SYS_PARAM_H */
23837# define getpagesize() 8192 /* punt totally */
23838# endif /* no HAVE_SYS_PARAM_H */
23839# endif /* no _SC_PAGESIZE */
23840
23841#endif /* no HAVE_GETPAGESIZE */
23842
23843int
23844main ()
23845{
23846 char *data, *data2, *data3;
23847 int i, pagesize;
23848 int fd;
23849
23850 pagesize = getpagesize ();
23851
23852 /* First, make a file with some known garbage in it. */
23853 data = (char *) malloc (pagesize);
23854 if (!data)
23855 exit (1);
23856 for (i = 0; i < pagesize; ++i)
23857 *(data + i) = rand ();
23858 umask (0);
23859 fd = creat ("conftest.mmap", 0600);
23860 if (fd < 0)
23861 exit (1);
23862 if (write (fd, data, pagesize) != pagesize)
23863 exit (1);
23864 close (fd);
23865
23866 /* Mmap the file as read/write/shared and verify that we see the
23867 same garbage. */
23868 fd = open ("conftest.mmap", O_RDWR);
23869 if (fd < 0)
23870 exit (1);
23871 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23872 if (data2 == 0)
23873 exit (1);
23874 for (i = 0; i < pagesize; ++i)
23875 if (*(data + i) != *(data2 + i))
23876 exit (1);
23877
23878 /* Finally, make sure that changes to the mapped area
23879 percolate back to the file as seen by read(). */
23880 for (i = 0; i < pagesize; ++i)
23881 *(data2 + i) = *(data2 + i) + 1;
23882 data3 = (char *) malloc (pagesize);
23883 if (!data3)
23884 exit (1);
23885 if (read (fd, data3, pagesize) != pagesize)
23886 exit (1);
23887 for (i = 0; i < pagesize; ++i)
23888 if (*(data2 + i) != *(data3 + i))
23889 exit (1);
23890 close (fd);
23891 exit (0);
23892}
23893_ACEOF
23894if ac_fn_c_try_run "$LINENO"; then :
23895 magick_cv_func_mmap_fileio=yes
23896else
23897 magick_cv_func_mmap_fileio=no
23898fi
23899rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23900 conftest.$ac_objext conftest.beam conftest.$ac_ext
23901fi
23902
23903fi
23904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23905$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23906if test $magick_cv_func_mmap_fileio = yes; then
23907
23908$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23909
23910fi
23911rm -f conftest.mmap
23912
cristy8b350f62009-11-15 23:12:43 +000023913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023914$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023915if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023916 $as_echo_n "(cached) " >&6
23917else
cristy8b350f62009-11-15 23:12:43 +000023918 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023919 ac_cv_func_closedir_void=yes
23920else
cristy8b350f62009-11-15 23:12:43 +000023921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023922/* end confdefs.h. */
23923$ac_includes_default
23924#include <$ac_header_dirent>
23925#ifndef __cplusplus
23926int closedir ();
23927#endif
23928
23929int
23930main ()
23931{
23932return closedir (opendir (".")) != 0;
23933 ;
23934 return 0;
23935}
23936_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023937if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023938 ac_cv_func_closedir_void=no
23939else
cristy8b350f62009-11-15 23:12:43 +000023940 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023941fi
cristy8b350f62009-11-15 23:12:43 +000023942rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23943 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023944fi
23945
cristy3ed852e2009-09-05 21:47:34 +000023946fi
cristy8b350f62009-11-15 23:12:43 +000023947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023948$as_echo "$ac_cv_func_closedir_void" >&6; }
23949if test $ac_cv_func_closedir_void = yes; then
23950
cristy8b350f62009-11-15 23:12:43 +000023951$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023952
23953fi
23954
cristycd4c5312009-11-22 01:19:08 +000023955
23956
23957
23958 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023959do :
23960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023961ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23962"
cristy98dddb52010-11-04 00:30:15 +000023963if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023964 cat >>confdefs.h <<_ACEOF
23965#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23966_ACEOF
23967
23968fi
23969
23970done
23971
cristycd4c5312009-11-22 01:19:08 +000023972
23973
23974
23975
23976
23977
23978
cristy3ed852e2009-09-05 21:47:34 +000023979for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023980do :
23981 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023982if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023983 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023984#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023985_ACEOF
23986
23987fi
23988done
23989
cristy8b350f62009-11-15 23:12:43 +000023990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023991$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023992if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023993 $as_echo_n "(cached) " >&6
23994else
cristy8b350f62009-11-15 23:12:43 +000023995 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023996 ac_cv_func_mmap_fixed_mapped=no
23997else
cristy8b350f62009-11-15 23:12:43 +000023998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023999/* end confdefs.h. */
24000$ac_includes_default
24001/* malloc might have been renamed as rpl_malloc. */
24002#undef malloc
24003
24004/* Thanks to Mike Haertel and Jim Avera for this test.
24005 Here is a matrix of mmap possibilities:
24006 mmap private not fixed
24007 mmap private fixed at somewhere currently unmapped
24008 mmap private fixed at somewhere already mapped
24009 mmap shared not fixed
24010 mmap shared fixed at somewhere currently unmapped
24011 mmap shared fixed at somewhere already mapped
24012 For private mappings, we should verify that changes cannot be read()
24013 back from the file, nor mmap's back from the file at a different
24014 address. (There have been systems where private was not correctly
24015 implemented like the infamous i386 svr4.0, and systems where the
24016 VM page cache was not coherent with the file system buffer cache
24017 like early versions of FreeBSD and possibly contemporary NetBSD.)
24018 For shared mappings, we should conversely verify that changes get
24019 propagated back to all the places they're supposed to be.
24020
24021 Grep wants private fixed already mapped.
24022 The main things grep needs to know about mmap are:
24023 * does it exist and is it safe to write into the mmap'd area
24024 * how to use it (BSD variants) */
24025
24026#include <fcntl.h>
24027#include <sys/mman.h>
24028
24029#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24030char *malloc ();
24031#endif
24032
24033/* This mess was copied from the GNU getpagesize.h. */
24034#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024035# ifdef _SC_PAGESIZE
24036# define getpagesize() sysconf(_SC_PAGESIZE)
24037# else /* no _SC_PAGESIZE */
24038# ifdef HAVE_SYS_PARAM_H
24039# include <sys/param.h>
24040# ifdef EXEC_PAGESIZE
24041# define getpagesize() EXEC_PAGESIZE
24042# else /* no EXEC_PAGESIZE */
24043# ifdef NBPG
24044# define getpagesize() NBPG * CLSIZE
24045# ifndef CLSIZE
24046# define CLSIZE 1
24047# endif /* no CLSIZE */
24048# else /* no NBPG */
24049# ifdef NBPC
24050# define getpagesize() NBPC
24051# else /* no NBPC */
24052# ifdef PAGESIZE
24053# define getpagesize() PAGESIZE
24054# endif /* PAGESIZE */
24055# endif /* no NBPC */
24056# endif /* no NBPG */
24057# endif /* no EXEC_PAGESIZE */
24058# else /* no HAVE_SYS_PARAM_H */
24059# define getpagesize() 8192 /* punt totally */
24060# endif /* no HAVE_SYS_PARAM_H */
24061# endif /* no _SC_PAGESIZE */
24062
24063#endif /* no HAVE_GETPAGESIZE */
24064
24065int
24066main ()
24067{
24068 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024069 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024070 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024071 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024072
24073 pagesize = getpagesize ();
24074
24075 /* First, make a file with some known garbage in it. */
24076 data = (char *) malloc (pagesize);
24077 if (!data)
24078 return 1;
24079 for (i = 0; i < pagesize; ++i)
24080 *(data + i) = rand ();
24081 umask (0);
24082 fd = creat ("conftest.mmap", 0600);
24083 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024084 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024085 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024086 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024087 close (fd);
24088
cristycd4c5312009-11-22 01:19:08 +000024089 /* Next, check that the tail of a page is zero-filled. File must have
24090 non-zero length, otherwise we risk SIGBUS for entire page. */
24091 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24092 if (fd2 < 0)
24093 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024094 cdata2 = "";
24095 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024096 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024097 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024098 if (data2 == MAP_FAILED)
24099 return 6;
24100 for (i = 0; i < pagesize; ++i)
24101 if (*(data2 + i))
24102 return 7;
24103 close (fd2);
24104 if (munmap (data2, pagesize))
24105 return 8;
24106
cristy3ed852e2009-09-05 21:47:34 +000024107 /* Next, try to mmap the file at a fixed address which already has
24108 something else allocated at it. If we can, also make sure that
24109 we see the same garbage. */
24110 fd = open ("conftest.mmap", O_RDWR);
24111 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024112 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024113 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24114 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024115 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024116 for (i = 0; i < pagesize; ++i)
24117 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024118 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024119
24120 /* Finally, make sure that changes to the mapped area do not
24121 percolate back to the file as seen by read(). (This is a bug on
24122 some variants of i386 svr4.0.) */
24123 for (i = 0; i < pagesize; ++i)
24124 *(data2 + i) = *(data2 + i) + 1;
24125 data3 = (char *) malloc (pagesize);
24126 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024127 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024128 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024129 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024130 for (i = 0; i < pagesize; ++i)
24131 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024132 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024133 close (fd);
24134 return 0;
24135}
24136_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024137if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024138 ac_cv_func_mmap_fixed_mapped=yes
24139else
cristy8b350f62009-11-15 23:12:43 +000024140 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024141fi
cristy8b350f62009-11-15 23:12:43 +000024142rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24143 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024144fi
24145
cristy3ed852e2009-09-05 21:47:34 +000024146fi
cristy8b350f62009-11-15 23:12:43 +000024147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024148$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24149if test $ac_cv_func_mmap_fixed_mapped = yes; then
24150
cristy8b350f62009-11-15 23:12:43 +000024151$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024152
24153fi
cristycd4c5312009-11-22 01:19:08 +000024154rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024155
cristy3ed852e2009-09-05 21:47:34 +000024156for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024157do :
24158 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024159if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024160 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024161#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024162_ACEOF
24163
24164fi
24165
24166done
24167
cristy3ed852e2009-09-05 21:47:34 +000024168for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024169do :
24170 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24171ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024172if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024173 cat >>confdefs.h <<_ACEOF
24174#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24175_ACEOF
24176
24177fi
24178done
24179
24180if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024182$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024183if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024184 $as_echo_n "(cached) " >&6
24185else
cristy8b350f62009-11-15 23:12:43 +000024186 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024187 ac_cv_func_fork_works=cross
24188else
cristy8b350f62009-11-15 23:12:43 +000024189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024190/* end confdefs.h. */
24191$ac_includes_default
24192int
24193main ()
24194{
24195
24196 /* By Ruediger Kuhlmann. */
24197 return fork () < 0;
24198
24199 ;
24200 return 0;
24201}
24202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024203if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024204 ac_cv_func_fork_works=yes
24205else
cristy8b350f62009-11-15 23:12:43 +000024206 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024207fi
cristy8b350f62009-11-15 23:12:43 +000024208rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24209 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024210fi
24211
cristy3ed852e2009-09-05 21:47:34 +000024212fi
cristy8b350f62009-11-15 23:12:43 +000024213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024214$as_echo "$ac_cv_func_fork_works" >&6; }
24215
24216else
24217 ac_cv_func_fork_works=$ac_cv_func_fork
24218fi
24219if test "x$ac_cv_func_fork_works" = xcross; then
24220 case $host in
24221 *-*-amigaos* | *-*-msdosdjgpp*)
24222 # Override, as these systems have only a dummy fork() stub
24223 ac_cv_func_fork_works=no
24224 ;;
24225 *)
24226 ac_cv_func_fork_works=yes
24227 ;;
24228 esac
cristy8b350f62009-11-15 23:12:43 +000024229 { $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 +000024230$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24231fi
24232ac_cv_func_vfork_works=$ac_cv_func_vfork
24233if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024235$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024236if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024237 $as_echo_n "(cached) " >&6
24238else
cristy8b350f62009-11-15 23:12:43 +000024239 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024240 ac_cv_func_vfork_works=cross
24241else
cristy8b350f62009-11-15 23:12:43 +000024242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024243/* end confdefs.h. */
24244/* Thanks to Paul Eggert for this test. */
24245$ac_includes_default
24246#include <sys/wait.h>
24247#ifdef HAVE_VFORK_H
24248# include <vfork.h>
24249#endif
24250/* On some sparc systems, changes by the child to local and incoming
24251 argument registers are propagated back to the parent. The compiler
24252 is told about this with #include <vfork.h>, but some compilers
24253 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24254 static variable whose address is put into a register that is
24255 clobbered by the vfork. */
24256static void
24257#ifdef __cplusplus
24258sparc_address_test (int arg)
24259# else
24260sparc_address_test (arg) int arg;
24261#endif
24262{
24263 static pid_t child;
24264 if (!child) {
24265 child = vfork ();
24266 if (child < 0) {
24267 perror ("vfork");
24268 _exit(2);
24269 }
24270 if (!child) {
24271 arg = getpid();
24272 write(-1, "", 0);
24273 _exit (arg);
24274 }
24275 }
24276}
24277
24278int
24279main ()
24280{
24281 pid_t parent = getpid ();
24282 pid_t child;
24283
24284 sparc_address_test (0);
24285
24286 child = vfork ();
24287
24288 if (child == 0) {
24289 /* Here is another test for sparc vfork register problems. This
24290 test uses lots of local variables, at least as many local
24291 variables as main has allocated so far including compiler
24292 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24293 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24294 reuse the register of parent for one of the local variables,
24295 since it will think that parent can't possibly be used any more
24296 in this routine. Assigning to the local variable will thus
24297 munge parent in the parent process. */
24298 pid_t
24299 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24300 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24301 /* Convince the compiler that p..p7 are live; otherwise, it might
24302 use the same hardware register for all 8 local variables. */
24303 if (p != p1 || p != p2 || p != p3 || p != p4
24304 || p != p5 || p != p6 || p != p7)
24305 _exit(1);
24306
24307 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24308 from child file descriptors. If the child closes a descriptor
24309 before it execs or exits, this munges the parent's descriptor
24310 as well. Test for this by closing stdout in the child. */
24311 _exit(close(fileno(stdout)) != 0);
24312 } else {
24313 int status;
24314 struct stat st;
24315
24316 while (wait(&status) != child)
24317 ;
24318 return (
24319 /* Was there some problem with vforking? */
24320 child < 0
24321
24322 /* Did the child fail? (This shouldn't happen.) */
24323 || status
24324
24325 /* Did the vfork/compiler bug occur? */
24326 || parent != getpid()
24327
24328 /* Did the file descriptor bug occur? */
24329 || fstat(fileno(stdout), &st) != 0
24330 );
24331 }
24332}
24333_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024334if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024335 ac_cv_func_vfork_works=yes
24336else
cristy8b350f62009-11-15 23:12:43 +000024337 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024338fi
cristy8b350f62009-11-15 23:12:43 +000024339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24340 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024341fi
24342
cristy3ed852e2009-09-05 21:47:34 +000024343fi
cristy8b350f62009-11-15 23:12:43 +000024344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024345$as_echo "$ac_cv_func_vfork_works" >&6; }
24346
24347fi;
24348if test "x$ac_cv_func_fork_works" = xcross; then
24349 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024350 { $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 +000024351$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24352fi
24353
24354if test "x$ac_cv_func_vfork_works" = xyes; then
24355
cristy8b350f62009-11-15 23:12:43 +000024356$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024357
24358else
24359
cristy8b350f62009-11-15 23:12:43 +000024360$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024361
24362fi
24363if test "x$ac_cv_func_fork_works" = xyes; then
24364
cristy8b350f62009-11-15 23:12:43 +000024365$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024366
24367fi
24368
cristy8b350f62009-11-15 23:12:43 +000024369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024370$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024371if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024372 $as_echo_n "(cached) " >&6
24373else
cristy8b350f62009-11-15 23:12:43 +000024374 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024375 ac_cv_func_memcmp_working=no
24376else
cristy8b350f62009-11-15 23:12:43 +000024377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024378/* end confdefs.h. */
24379$ac_includes_default
24380int
24381main ()
24382{
24383
24384 /* Some versions of memcmp are not 8-bit clean. */
24385 char c0 = '\100', c1 = '\200', c2 = '\201';
24386 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24387 return 1;
24388
24389 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24390 or more and with at least one buffer not starting on a 4-byte boundary.
24391 William Lewis provided this test program. */
24392 {
24393 char foo[21];
24394 char bar[21];
24395 int i;
24396 for (i = 0; i < 4; i++)
24397 {
24398 char *a = foo + i;
24399 char *b = bar + i;
24400 strcpy (a, "--------01111111");
24401 strcpy (b, "--------10000000");
24402 if (memcmp (a, b, 16) >= 0)
24403 return 1;
24404 }
24405 return 0;
24406 }
24407
24408 ;
24409 return 0;
24410}
24411_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024412if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024413 ac_cv_func_memcmp_working=yes
24414else
cristy8b350f62009-11-15 23:12:43 +000024415 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024416fi
cristy8b350f62009-11-15 23:12:43 +000024417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24418 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024419fi
24420
cristy3ed852e2009-09-05 21:47:34 +000024421fi
cristy8b350f62009-11-15 23:12:43 +000024422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024423$as_echo "$ac_cv_func_memcmp_working" >&6; }
24424test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24425 *" memcmp.$ac_objext "* ) ;;
24426 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24427 ;;
24428esac
24429
24430
cristy3ed852e2009-09-05 21:47:34 +000024431for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024432do :
24433 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24434ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024435if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024436 cat >>confdefs.h <<_ACEOF
24437#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24438_ACEOF
24439
24440fi
24441
24442done
24443
cristy8b350f62009-11-15 23:12:43 +000024444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024445$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024446if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024447 $as_echo_n "(cached) " >&6
24448else
24449 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24450 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24451 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024453/* end confdefs.h. */
24454$ac_includes_default
24455#ifdef HAVE_SYS_SELECT_H
24456# include <sys/select.h>
24457#endif
24458#ifdef HAVE_SYS_SOCKET_H
24459# include <sys/socket.h>
24460#endif
24461
24462int
24463main ()
24464{
24465extern int select ($ac_arg1,
24466 $ac_arg234, $ac_arg234, $ac_arg234,
24467 $ac_arg5);
24468 ;
24469 return 0;
24470}
24471_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024472if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024473 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024474fi
cristy3ed852e2009-09-05 21:47:34 +000024475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24476 done
24477 done
24478done
24479# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024480: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024481
24482fi
cristy8b350f62009-11-15 23:12:43 +000024483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024484$as_echo "$ac_cv_func_select_args" >&6; }
24485ac_save_IFS=$IFS; IFS=','
24486set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24487IFS=$ac_save_IFS
24488shift
24489
24490cat >>confdefs.h <<_ACEOF
24491#define SELECT_TYPE_ARG1 $1
24492_ACEOF
24493
24494
24495cat >>confdefs.h <<_ACEOF
24496#define SELECT_TYPE_ARG234 ($2)
24497_ACEOF
24498
24499
24500cat >>confdefs.h <<_ACEOF
24501#define SELECT_TYPE_ARG5 ($3)
24502_ACEOF
24503
24504rm -f conftest*
24505
cristyda16f162011-02-19 23:52:17 +000024506if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024507 $as_echo_n "(cached) " >&6
24508else
24509 ac_cv_func_setvbuf_reversed=no
24510fi
24511
24512
cristy8b350f62009-11-15 23:12:43 +000024513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024514$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024515if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024516 $as_echo_n "(cached) " >&6
24517else
cristy8b350f62009-11-15 23:12:43 +000024518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024519/* end confdefs.h. */
24520#include <sys/types.h>
24521#include <signal.h>
24522
24523int
24524main ()
24525{
24526return *(signal (0, 0)) (0) == 1;
24527 ;
24528 return 0;
24529}
24530_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024531if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024532 ac_cv_type_signal=int
24533else
cristy8b350f62009-11-15 23:12:43 +000024534 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024535fi
cristy3ed852e2009-09-05 21:47:34 +000024536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24537fi
cristy8b350f62009-11-15 23:12:43 +000024538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024539$as_echo "$ac_cv_type_signal" >&6; }
24540
24541cat >>confdefs.h <<_ACEOF
24542#define RETSIGTYPE $ac_cv_type_signal
24543_ACEOF
24544
24545
cristy8b350f62009-11-15 23:12:43 +000024546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024547$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024548if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024549 $as_echo_n "(cached) " >&6
24550else
cristy8b350f62009-11-15 23:12:43 +000024551 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024552 ac_cv_func_strtod=no
24553else
cristy8b350f62009-11-15 23:12:43 +000024554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024555/* end confdefs.h. */
24556
24557$ac_includes_default
24558#ifndef strtod
24559double strtod ();
24560#endif
24561int
24562main()
24563{
24564 {
24565 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24566 char *string = " +69";
24567 char *term;
24568 double value;
24569 value = strtod (string, &term);
24570 if (value != 69 || term != (string + 4))
24571 return 1;
24572 }
24573
24574 {
24575 /* Under Solaris 2.4, strtod returns the wrong value for the
24576 terminating character under some conditions. */
24577 char *string = "NaN";
24578 char *term;
24579 strtod (string, &term);
24580 if (term != string && *(term - 1) == 0)
24581 return 1;
24582 }
24583 return 0;
24584}
24585
24586_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024587if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024588 ac_cv_func_strtod=yes
24589else
cristy8b350f62009-11-15 23:12:43 +000024590 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024591fi
cristy8b350f62009-11-15 23:12:43 +000024592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24593 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024594fi
24595
cristy3ed852e2009-09-05 21:47:34 +000024596fi
cristy8b350f62009-11-15 23:12:43 +000024597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024598$as_echo "$ac_cv_func_strtod" >&6; }
24599if test $ac_cv_func_strtod = no; then
24600 case " $LIBOBJS " in
24601 *" strtod.$ac_objext "* ) ;;
24602 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24603 ;;
24604esac
24605
cristy8b350f62009-11-15 23:12:43 +000024606ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024607if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024608
cristy3ed852e2009-09-05 21:47:34 +000024609fi
24610
cristy3ed852e2009-09-05 21:47:34 +000024611if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024613$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024614if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024615 $as_echo_n "(cached) " >&6
24616else
24617 ac_check_lib_save_LIBS=$LIBS
24618LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024620/* end confdefs.h. */
24621
24622/* Override any GCC internal prototype to avoid an error.
24623 Use char because int might match the return type of a GCC
24624 builtin and then its argument prototype would still apply. */
24625#ifdef __cplusplus
24626extern "C"
24627#endif
24628char pow ();
24629int
24630main ()
24631{
24632return pow ();
24633 ;
24634 return 0;
24635}
24636_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024637if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024638 ac_cv_lib_m_pow=yes
24639else
cristy8b350f62009-11-15 23:12:43 +000024640 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024641fi
cristy8b350f62009-11-15 23:12:43 +000024642rm -f core conftest.err conftest.$ac_objext \
24643 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024644LIBS=$ac_check_lib_save_LIBS
24645fi
cristy8b350f62009-11-15 23:12:43 +000024646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024647$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024648if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024649 POW_LIB=-lm
24650else
cristy8b350f62009-11-15 23:12:43 +000024651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024652$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24653fi
24654
24655fi
24656
24657fi
24658
cristy3ed852e2009-09-05 21:47:34 +000024659for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024660do :
24661 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024662if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024663 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024664#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024665_ACEOF
24666
cristy8b350f62009-11-15 23:12:43 +000024667ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024668if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024669
cristy8b350f62009-11-15 23:12:43 +000024670$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024671
24672fi
24673
24674fi
24675done
24676
24677
24678
cristy161b9262010-03-20 19:34:32 +000024679#
24680# Find math library
24681#
24682MATH_LIBS=''
24683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24684$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024685if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024686 $as_echo_n "(cached) " >&6
24687else
24688 ac_check_lib_save_LIBS=$LIBS
24689LIBS="-lm $LIBS"
24690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24691/* end confdefs.h. */
24692
24693/* Override any GCC internal prototype to avoid an error.
24694 Use char because int might match the return type of a GCC
24695 builtin and then its argument prototype would still apply. */
24696#ifdef __cplusplus
24697extern "C"
24698#endif
24699char sqrt ();
24700int
24701main ()
24702{
24703return sqrt ();
24704 ;
24705 return 0;
24706}
24707_ACEOF
24708if ac_fn_c_try_link "$LINENO"; then :
24709 ac_cv_lib_m_sqrt=yes
24710else
24711 ac_cv_lib_m_sqrt=no
24712fi
24713rm -f core conftest.err conftest.$ac_objext \
24714 conftest$ac_exeext conftest.$ac_ext
24715LIBS=$ac_check_lib_save_LIBS
24716fi
24717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24718$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024719if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024720 MATH_LIBS="-lm"
24721fi
24722
24723LIBS="$MATH_LIBS $LIBS"
24724
24725
cristyb33454f2011-08-03 02:10:45 +000024726for ac_func in acosh 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 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 sqrt setvbuf stat strchr strerror_r 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 +000024727do :
24728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24729ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024730if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024731 cat >>confdefs.h <<_ACEOF
24732#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24733_ACEOF
24734
24735fi
24736done
24737
24738
cristye43a45e2009-09-28 14:49:00 +000024739#
24740# Check for clock_gettime().
24741#
cristy8b350f62009-11-15 23:12:43 +000024742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024743$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024744if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024745 $as_echo_n "(cached) " >&6
24746else
24747 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024749/* end confdefs.h. */
24750
24751/* Override any GCC internal prototype to avoid an error.
24752 Use char because int might match the return type of a GCC
24753 builtin and then its argument prototype would still apply. */
24754#ifdef __cplusplus
24755extern "C"
24756#endif
24757char clock_gettime ();
24758int
24759main ()
24760{
24761return clock_gettime ();
24762 ;
24763 return 0;
24764}
24765_ACEOF
24766for ac_lib in '' rt; do
24767 if test -z "$ac_lib"; then
24768 ac_res="none required"
24769 else
24770 ac_res=-l$ac_lib
24771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24772 fi
cristy8b350f62009-11-15 23:12:43 +000024773 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024774 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024775fi
cristy8b350f62009-11-15 23:12:43 +000024776rm -f core conftest.err conftest.$ac_objext \
24777 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024778 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024779 break
24780fi
24781done
cristyda16f162011-02-19 23:52:17 +000024782if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024783
cristye43a45e2009-09-28 14:49:00 +000024784else
24785 ac_cv_search_clock_gettime=no
24786fi
24787rm conftest.$ac_ext
24788LIBS=$ac_func_search_save_LIBS
24789fi
cristy8b350f62009-11-15 23:12:43 +000024790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024791$as_echo "$ac_cv_search_clock_gettime" >&6; }
24792ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024793if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24795
24796
cristy8b350f62009-11-15 23:12:43 +000024797$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024798
cristy8b350f62009-11-15 23:12:43 +000024799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024800$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024802/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024803
24804 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024805int
24806main ()
24807{
24808clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024809 ;
24810 return 0;
24811}
24812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024813if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024814
cristy8b350f62009-11-15 23:12:43 +000024815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000024816$as_echo "yes" >&6; }
24817
cristy8b350f62009-11-15 23:12:43 +000024818$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024819
24820
24821else
cristy8b350f62009-11-15 23:12:43 +000024822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000024823$as_echo "no" >&6; }
24824
24825fi
cristye43a45e2009-09-28 14:49:00 +000024826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24827
24828else
24829
cristy8b350f62009-11-15 23:12:43 +000024830 for ac_func in gettimeofday ftime
24831do :
24832 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24833ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024834if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024835 cat >>confdefs.h <<_ACEOF
24836#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24837_ACEOF
24838 break
24839fi
24840done
24841
24842
24843
24844fi
24845
24846
cristy3ed852e2009-09-05 21:47:34 +000024847########
24848#
24849# Check for function prototypes
24850#
24851########
24852
cristy8b350f62009-11-15 23:12:43 +000024853ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024854#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024855"
cristyda16f162011-02-19 23:52:17 +000024856if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024857 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024858else
cristy8b350f62009-11-15 23:12:43 +000024859 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024860fi
24861
cristy3ed852e2009-09-05 21:47:34 +000024862cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024863#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024865ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024866#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024867"
cristyda16f162011-02-19 23:52:17 +000024868if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024869 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024870else
cristy8b350f62009-11-15 23:12:43 +000024871 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024872fi
24873
cristy3ed852e2009-09-05 21:47:34 +000024874cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024875#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024876_ACEOF
24877
24878
cristy8b350f62009-11-15 23:12:43 +000024879ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024880#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024881"
cristyda16f162011-02-19 23:52:17 +000024882if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024883 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024884else
cristy8b350f62009-11-15 23:12:43 +000024885 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024886fi
24887
cristy3ed852e2009-09-05 21:47:34 +000024888cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024889#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024890_ACEOF
24891
24892
cristy8b350f62009-11-15 23:12:43 +000024893ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024894#include <stdio.h>
24895#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024896"
cristyda16f162011-02-19 23:52:17 +000024897if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024898 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024899else
cristy8b350f62009-11-15 23:12:43 +000024900 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024901fi
24902
cristy3ed852e2009-09-05 21:47:34 +000024903cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024904#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024905_ACEOF
24906
24907
cristy3ed852e2009-09-05 21:47:34 +000024908########
24909#
24910# C++ Support Tests (For Magick++)
24911#
24912########
24913have_magick_plus_plus='no'
24914if test "$with_magick_plus_plus" = 'yes'; then
24915 OLIBS="$LIBS"
24916 LIBS=''
24917 ac_ext=cpp
24918ac_cpp='$CXXCPP $CPPFLAGS'
24919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24922
24923
24924 # Full set of headers used...
24925 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24926 # functional iomanip iosfwd iostream iterator list string strstream utility
24927 ac_ext=cpp
24928ac_cpp='$CXXCPP $CPPFLAGS'
24929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24932
24933 ac_ext=cpp
24934ac_cpp='$CXXCPP $CPPFLAGS'
24935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24938if test -z "$CXX"; then
24939 if test -n "$CCC"; then
24940 CXX=$CCC
24941 else
24942 if test -n "$ac_tool_prefix"; then
24943 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24944 do
24945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24946set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024948$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024949if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024950 $as_echo_n "(cached) " >&6
24951else
24952 if test -n "$CXX"; then
24953 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24954else
24955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24956for as_dir in $PATH
24957do
24958 IFS=$as_save_IFS
24959 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024960 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24962 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024964 break 2
24965 fi
24966done
cristy8b350f62009-11-15 23:12:43 +000024967 done
cristy3ed852e2009-09-05 21:47:34 +000024968IFS=$as_save_IFS
24969
24970fi
24971fi
24972CXX=$ac_cv_prog_CXX
24973if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024975$as_echo "$CXX" >&6; }
24976else
cristy8b350f62009-11-15 23:12:43 +000024977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024978$as_echo "no" >&6; }
24979fi
24980
24981
24982 test -n "$CXX" && break
24983 done
24984fi
24985if test -z "$CXX"; then
24986 ac_ct_CXX=$CXX
24987 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24988do
24989 # Extract the first word of "$ac_prog", so it can be a program name with args.
24990set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024992$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024993if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024994 $as_echo_n "(cached) " >&6
24995else
24996 if test -n "$ac_ct_CXX"; then
24997 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24998else
24999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25000for as_dir in $PATH
25001do
25002 IFS=$as_save_IFS
25003 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025004 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25006 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025008 break 2
25009 fi
25010done
cristy8b350f62009-11-15 23:12:43 +000025011 done
cristy3ed852e2009-09-05 21:47:34 +000025012IFS=$as_save_IFS
25013
25014fi
25015fi
25016ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25017if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025019$as_echo "$ac_ct_CXX" >&6; }
25020else
cristy8b350f62009-11-15 23:12:43 +000025021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025022$as_echo "no" >&6; }
25023fi
25024
25025
25026 test -n "$ac_ct_CXX" && break
25027done
25028
25029 if test "x$ac_ct_CXX" = x; then
25030 CXX="g++"
25031 else
25032 case $cross_compiling:$ac_tool_warned in
25033yes:)
cristy8b350f62009-11-15 23:12:43 +000025034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25036ac_tool_warned=yes ;;
25037esac
25038 CXX=$ac_ct_CXX
25039 fi
25040fi
25041
25042 fi
25043fi
25044# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025045$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025046set X $ac_compile
25047ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025048for ac_option in --version -v -V -qversion; do
25049 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025050case "(($ac_try" in
25051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25052 *) ac_try_echo=$ac_try;;
25053esac
cristy8b350f62009-11-15 23:12:43 +000025054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25055$as_echo "$ac_try_echo"; } >&5
25056 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025057 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025058 if test -s conftest.err; then
25059 sed '10a\
25060... rest of stderr output deleted ...
25061 10q' conftest.err >conftest.er1
25062 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025063 fi
cristycd4c5312009-11-22 01:19:08 +000025064 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25066 test $ac_status = 0; }
25067done
cristy3ed852e2009-09-05 21:47:34 +000025068
cristy8b350f62009-11-15 23:12:43 +000025069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025070$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025071if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025072 $as_echo_n "(cached) " >&6
25073else
cristy8b350f62009-11-15 23:12:43 +000025074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025075/* end confdefs.h. */
25076
25077int
25078main ()
25079{
25080#ifndef __GNUC__
25081 choke me
25082#endif
25083
25084 ;
25085 return 0;
25086}
25087_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025088if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025089 ac_compiler_gnu=yes
25090else
cristy8b350f62009-11-15 23:12:43 +000025091 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025092fi
cristy3ed852e2009-09-05 21:47:34 +000025093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25094ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25095
25096fi
cristy8b350f62009-11-15 23:12:43 +000025097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025098$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25099if test $ac_compiler_gnu = yes; then
25100 GXX=yes
25101else
25102 GXX=
25103fi
25104ac_test_CXXFLAGS=${CXXFLAGS+set}
25105ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025107$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025108if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025109 $as_echo_n "(cached) " >&6
25110else
25111 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25112 ac_cxx_werror_flag=yes
25113 ac_cv_prog_cxx_g=no
25114 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025116/* end confdefs.h. */
25117
25118int
25119main ()
25120{
25121
25122 ;
25123 return 0;
25124}
25125_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025126if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025127 ac_cv_prog_cxx_g=yes
25128else
cristy8b350f62009-11-15 23:12:43 +000025129 CXXFLAGS=""
25130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025131/* end confdefs.h. */
25132
25133int
25134main ()
25135{
25136
25137 ;
25138 return 0;
25139}
25140_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025141if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025142
cristy8b350f62009-11-15 23:12:43 +000025143else
25144 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025145 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025147/* end confdefs.h. */
25148
25149int
25150main ()
25151{
25152
25153 ;
25154 return 0;
25155}
25156_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025157if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025158 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025159fi
cristy3ed852e2009-09-05 21:47:34 +000025160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25161fi
cristy3ed852e2009-09-05 21:47:34 +000025162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25163fi
cristy3ed852e2009-09-05 21:47:34 +000025164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25165 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25166fi
cristy8b350f62009-11-15 23:12:43 +000025167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025168$as_echo "$ac_cv_prog_cxx_g" >&6; }
25169if test "$ac_test_CXXFLAGS" = set; then
25170 CXXFLAGS=$ac_save_CXXFLAGS
25171elif test $ac_cv_prog_cxx_g = yes; then
25172 if test "$GXX" = yes; then
25173 CXXFLAGS="-g -O2"
25174 else
25175 CXXFLAGS="-g"
25176 fi
25177else
25178 if test "$GXX" = yes; then
25179 CXXFLAGS="-O2"
25180 else
25181 CXXFLAGS=
25182 fi
25183fi
25184ac_ext=cpp
25185ac_cpp='$CXXCPP $CPPFLAGS'
25186ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25187ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25188ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25189
cristy73bd4a52010-10-05 11:24:23 +000025190depcc="$CXX" am_compiler_list=
25191
25192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25193$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025194if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025195 $as_echo_n "(cached) " >&6
25196else
25197 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25198 # We make a subdir and do the tests there. Otherwise we can end up
25199 # making bogus files that we don't know about and never remove. For
25200 # instance it was reported that on HP-UX the gcc test will end up
25201 # making a dummy file named `D' -- because `-MD' means `put the output
25202 # in D'.
25203 mkdir conftest.dir
25204 # Copy depcomp to subdir because otherwise we won't find it if we're
25205 # using a relative directory.
25206 cp "$am_depcomp" conftest.dir
25207 cd conftest.dir
25208 # We will build objects and dependencies in a subdirectory because
25209 # it helps to detect inapplicable dependency modes. For instance
25210 # both Tru64's cc and ICC support -MD to output dependencies as a
25211 # side effect of compilation, but ICC will put the dependencies in
25212 # the current directory while Tru64 will put them in the object
25213 # directory.
25214 mkdir sub
25215
25216 am_cv_CXX_dependencies_compiler_type=none
25217 if test "$am_compiler_list" = ""; then
25218 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25219 fi
25220 am__universal=false
25221 case " $depcc " in #(
25222 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25223 esac
25224
25225 for depmode in $am_compiler_list; do
25226 # Setup a source with many dependencies, because some compilers
25227 # like to wrap large dependency lists on column 80 (with \), and
25228 # we should not choose a depcomp mode which is confused by this.
25229 #
25230 # We need to recreate these files for each test, as the compiler may
25231 # overwrite some of them when testing with obscure command lines.
25232 # This happens at least with the AIX C compiler.
25233 : > sub/conftest.c
25234 for i in 1 2 3 4 5 6; do
25235 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25236 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25237 # Solaris 8's {/usr,}/bin/sh.
25238 touch sub/conftst$i.h
25239 done
25240 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25241
25242 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25243 # mode. It turns out that the SunPro C++ compiler does not properly
25244 # handle `-M -o', and we need to detect this. Also, some Intel
25245 # versions had trouble with output in subdirs
25246 am__obj=sub/conftest.${OBJEXT-o}
25247 am__minus_obj="-o $am__obj"
25248 case $depmode in
25249 gcc)
25250 # This depmode causes a compiler race in universal mode.
25251 test "$am__universal" = false || continue
25252 ;;
25253 nosideeffect)
25254 # after this tag, mechanisms are not by side-effect, so they'll
25255 # only be used when explicitly requested
25256 if test "x$enable_dependency_tracking" = xyes; then
25257 continue
25258 else
25259 break
25260 fi
25261 ;;
25262 msvisualcpp | msvcmsys)
25263 # This compiler won't grok `-c -o', but also, the minuso test has
25264 # not run yet. These depmodes are late enough in the game, and
25265 # so weak that their functioning should not be impacted.
25266 am__obj=conftest.${OBJEXT-o}
25267 am__minus_obj=
25268 ;;
25269 none) break ;;
25270 esac
25271 if depmode=$depmode \
25272 source=sub/conftest.c object=$am__obj \
25273 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25274 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25275 >/dev/null 2>conftest.err &&
25276 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25277 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25278 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25279 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25280 # icc doesn't choke on unknown options, it will just issue warnings
25281 # or remarks (even with -Werror). So we grep stderr for any message
25282 # that says an option was ignored or not supported.
25283 # When given -MP, icc 7.0 and 7.1 complain thusly:
25284 # icc: Command line warning: ignoring option '-M'; no argument required
25285 # The diagnosis changed in icc 8.0:
25286 # icc: Command line remark: option '-MP' not supported
25287 if (grep 'ignoring option' conftest.err ||
25288 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25289 am_cv_CXX_dependencies_compiler_type=$depmode
25290 break
25291 fi
25292 fi
25293 done
25294
25295 cd ..
25296 rm -rf conftest.dir
25297else
25298 am_cv_CXX_dependencies_compiler_type=none
25299fi
25300
25301fi
25302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25303$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25304CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25305
25306 if
25307 test "x$enable_dependency_tracking" != xno \
25308 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25309 am__fastdepCXX_TRUE=
25310 am__fastdepCXX_FALSE='#'
25311else
25312 am__fastdepCXX_TRUE='#'
25313 am__fastdepCXX_FALSE=
25314fi
25315
25316
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25318$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025319if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025320 $as_echo_n "(cached) " >&6
25321else
25322
25323 ac_ext=cpp
25324ac_cpp='$CXXCPP $CPPFLAGS'
25325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25328
25329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25330/* end confdefs.h. */
25331
25332int f(int x){return 1;}
25333int f(char x){return 1;}
25334int f(bool x){return 1;}
25335
25336int
25337main ()
25338{
25339bool b = true; return f(b);
25340 ;
25341 return 0;
25342}
25343_ACEOF
25344if ac_fn_cxx_try_compile "$LINENO"; then :
25345 ax_cv_cxx_bool=yes
25346else
25347 ax_cv_cxx_bool=no
25348fi
25349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25350 ac_ext=cpp
25351ac_cpp='$CXXCPP $CPPFLAGS'
25352ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25353ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25354ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25355
25356
25357fi
25358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25359$as_echo "$ax_cv_cxx_bool" >&6; }
25360if test "$ax_cv_cxx_bool" = yes; then
25361
25362$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25363
25364fi
25365
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25367$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025368if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025369 $as_echo_n "(cached) " >&6
25370else
25371
25372 ac_ext=cpp
25373ac_cpp='$CXXCPP $CPPFLAGS'
25374ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25375ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25376ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25377
25378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25379/* end confdefs.h. */
25380namespace Outer { namespace Inner { int i = 0; }}
25381int
25382main ()
25383{
25384using namespace Outer::Inner; return i;
25385 ;
25386 return 0;
25387}
25388_ACEOF
25389if ac_fn_cxx_try_compile "$LINENO"; then :
25390 ax_cv_cxx_namespaces=yes
25391else
25392 ax_cv_cxx_namespaces=no
25393fi
25394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25395 ac_ext=cpp
25396ac_cpp='$CXXCPP $CPPFLAGS'
25397ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25398ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25399ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25400
25401
25402fi
25403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25404$as_echo "$ax_cv_cxx_namespaces" >&6; }
25405if test "$ax_cv_cxx_namespaces" = yes; then
25406
25407$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25408
25409fi
25410
25411
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25413$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025414if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025415 $as_echo_n "(cached) " >&6
25416else
25417
25418 ac_ext=cpp
25419ac_cpp='$CXXCPP $CPPFLAGS'
25420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25423
25424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25425/* end confdefs.h. */
25426#include <iostream>
25427 std::istream& is = std::cin;
25428int
25429main ()
25430{
25431
25432 ;
25433 return 0;
25434}
25435_ACEOF
25436if ac_fn_cxx_try_compile "$LINENO"; then :
25437 ax_cv_cxx_have_std_namespace=yes
25438else
25439 ax_cv_cxx_have_std_namespace=no
25440fi
25441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25442 ac_ext=cpp
25443ac_cpp='$CXXCPP $CPPFLAGS'
25444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25447
25448
25449fi
25450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25451$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25452 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25453
25454$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25455
25456 fi
25457
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25459$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025460if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025461 $as_echo_n "(cached) " >&6
25462else
25463
25464
25465 ac_ext=cpp
25466ac_cpp='$CXXCPP $CPPFLAGS'
25467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25470
25471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25472/* end confdefs.h. */
25473#include <iostream>
25474#include <map>
25475#include <iomanip>
25476#include <cmath>
25477#ifdef HAVE_NAMESPACES
25478using namespace std;
25479#endif
25480int
25481main ()
25482{
25483return 0;
25484 ;
25485 return 0;
25486}
25487_ACEOF
25488if ac_fn_cxx_try_compile "$LINENO"; then :
25489 ac_cv_cxx_have_std_libs=yes
25490else
25491 ac_cv_cxx_have_std_libs=no
25492fi
25493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25494 ac_ext=cpp
25495ac_cpp='$CXXCPP $CPPFLAGS'
25496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25499
25500
25501fi
25502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25503$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25504if test "$ac_cv_cxx_have_std_libs" = yes; then
25505
25506$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25507
25508fi
25509
cristy3ed852e2009-09-05 21:47:34 +000025510
25511 OPENMP_CXXFLAGS=
25512 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025513if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025514 enableval=$enable_openmp;
25515fi
25516
25517 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25519$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025520if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025521 $as_echo_n "(cached) " >&6
25522else
cristy8b350f62009-11-15 23:12:43 +000025523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25524/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025525
25526#ifndef _OPENMP
25527 choke me
25528#endif
25529#include <omp.h>
25530int main () { return omp_get_num_threads (); }
25531
25532_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025533if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025534 ac_cv_prog_cxx_openmp='none needed'
25535else
cristy8b350f62009-11-15 23:12:43 +000025536 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025537 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25538 ac_save_CXXFLAGS=$CXXFLAGS
25539 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25541/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025542
25543#ifndef _OPENMP
25544 choke me
25545#endif
25546#include <omp.h>
25547int main () { return omp_get_num_threads (); }
25548
25549_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025550if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025551 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025552fi
cristy8b350f62009-11-15 23:12:43 +000025553rm -f core conftest.err conftest.$ac_objext \
25554 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025555 CXXFLAGS=$ac_save_CXXFLAGS
25556 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25557 break
25558 fi
25559 done
25560fi
cristy8b350f62009-11-15 23:12:43 +000025561rm -f core conftest.err conftest.$ac_objext \
25562 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025563fi
cristy8b350f62009-11-15 23:12:43 +000025564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025565$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25566 case $ac_cv_prog_cxx_openmp in #(
25567 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025568 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025569 *)
cristy8b350f62009-11-15 23:12:43 +000025570 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025571 esac
25572 fi
25573
25574
25575 ac_ext=c
25576ac_cpp='$CPP $CPPFLAGS'
25577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25579ac_compiler_gnu=$ac_cv_c_compiler_gnu
25580
25581
cristy8b350f62009-11-15 23:12:43 +000025582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025583$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25584 if \
cristy964cb7f2010-04-25 23:18:00 +000025585 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025586 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025587 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025588 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025589 have_magick_plus_plus='yes'
25590 else
25591 have_magick_plus_plus='no (failed tests)'
25592 fi
cristy8b350f62009-11-15 23:12:43 +000025593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000025594$as_echo "$have_magick_plus_plus" >&6; }
25595 LIBS="$OLIBS"
25596fi
cristy73bd4a52010-10-05 11:24:23 +000025597 if test "$have_magick_plus_plus" = 'yes'; then
25598 WITH_MAGICK_PLUS_PLUS_TRUE=
25599 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25600else
25601 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25602 WITH_MAGICK_PLUS_PLUS_FALSE=
25603fi
25604
cristy3ed852e2009-09-05 21:47:34 +000025605
25606# Only check for delegate libraries in subdirectories if requested.
25607if test "$enable_delegate_build" != 'no'; then
25608 # Check for delegate sub-directories and add -I & -L options as required.
25609 # This presumes that delegates are installed as detailed in the ImageMagick
25610 # README. If delegates are installed in a standard location where the
25611 # compiler will automatically find them then these options should not be
25612 # required.
25613
25614 #
25615 # Most delegates have includes in the same directory as the library, but not all...
25616 #
25617 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000025618 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025619 if test -d "$builddir/$dir"; then
25620 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25621 else
25622 if test -d "$srcdirfull/$dir"; then
25623 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25624 fi
25625 fi
25626 done
25627
25628 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000025629 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025630 if test -d "$builddir/$dir/.libs"; then
25631 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25632 else
25633 if test -d "$srcdirfull/$dir/.libs"; then
25634 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25635 fi
25636 fi
25637 if test -d "$builddir/$dir"; then
25638 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25639 else
25640 if test -d "$srcdirfull/$dir"; then
25641 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25642 fi
25643 fi
25644 done
25645fi
25646
25647# Assume that delegate headers reside under same directory as ImageMagick
25648# installation prefix.
25649MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25650
25651#
25652# Find the X11 RGB database
25653#
cristy8b350f62009-11-15 23:12:43 +000025654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025655$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025656if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025657 $as_echo_n "(cached) " >&6
25658else
25659 # Look for the header file in a standard set of common directories.
25660# Check X11 before X11Rn because it is often a symlink to the current release.
25661 for ac_dir in \
25662 /lib/usr/lib/X11 \
25663 /usr/X11/lib \
25664 /usr/X11R4/lib \
25665 /usr/X11R5/lib \
25666 /usr/X11R6/lib \
25667 /usr/X11R7/lib \
25668 /usr/X386/lib \
25669 /usr/XFree86/lib/X11 \
25670 /usr/athena/lib \
25671 /usr/lib \
25672 /usr/lib/X11 \
25673 /usr/lib/X11R4 \
25674 /usr/lib/X11R5 \
25675 /usr/lib/X11R6 \
25676 /usr/lib/X11R7 \
25677 /usr/local/X11/lib \
25678 /usr/local/X11R4/lib \
25679 /usr/local/X11R5/lib \
25680 /usr/local/X11R6/lib \
25681 /usr/local/lib \
25682 /usr/local/lib/X11 \
25683 /usr/local/lib/X11R4 \
25684 /usr/local/lib/X11R5 \
25685 /usr/local/lib/X11R6 \
25686 /usr/local/lib/X11R7 \
25687 /usr/local/x11r5/lib \
25688 /usr/lpp/Xamples/lib \
25689 /usr/openwin/lib \
25690 /usr/openwin/share/lib \
25691 /usr/unsupported/lib \
25692 /usr/x386/lib \
25693 ; do
25694 if test -f "$ac_dir/X11/rgb.txt"; then
25695 im_cv_x_configure="$ac_dir/X11/"
25696 break
25697 elif test -f "$ac_dir/rgb.txt"; then
25698 im_cv_x_configure="$ac_dir/"
25699 break
25700 fi
25701
25702 done
25703fi
cristy8b350f62009-11-15 23:12:43 +000025704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025705$as_echo "$im_cv_x_configure" >&6; }
25706X11_CONFIGURE_PATH="$im_cv_x_configure"
25707case "${build_os}" in
25708 mingw* )
25709 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25710 ;;
25711esac
25712
25713cat >>confdefs.h <<_ACEOF
25714#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25715_ACEOF
25716
25717
25718#
25719# Find OpenMP library
25720#
25721GOMP_LIBS=''
25722if test "$enable_openmp" != 'no'; then
25723 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000025724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025725$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025726if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025727 $as_echo_n "(cached) " >&6
25728else
25729 ac_check_lib_save_LIBS=$LIBS
25730LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025732/* end confdefs.h. */
25733
25734/* Override any GCC internal prototype to avoid an error.
25735 Use char because int might match the return type of a GCC
25736 builtin and then its argument prototype would still apply. */
25737#ifdef __cplusplus
25738extern "C"
25739#endif
25740char GOMP_parallel_start ();
25741int
25742main ()
25743{
25744return GOMP_parallel_start ();
25745 ;
25746 return 0;
25747}
25748_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025749if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025750 ac_cv_lib_gomp_GOMP_parallel_start=yes
25751else
cristy8b350f62009-11-15 23:12:43 +000025752 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025753fi
cristy8b350f62009-11-15 23:12:43 +000025754rm -f core conftest.err conftest.$ac_objext \
25755 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025756LIBS=$ac_check_lib_save_LIBS
25757fi
cristy8b350f62009-11-15 23:12:43 +000025758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025759$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025760if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025761 GOMP_LIBS="-lgomp"
25762fi
25763 # gcc
25764 else
cristy8b350f62009-11-15 23:12:43 +000025765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025766$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025767if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025768 $as_echo_n "(cached) " >&6
25769else
25770 ac_check_lib_save_LIBS=$LIBS
25771LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025773/* end confdefs.h. */
25774
25775/* Override any GCC internal prototype to avoid an error.
25776 Use char because int might match the return type of a GCC
25777 builtin and then its argument prototype would still apply. */
25778#ifdef __cplusplus
25779extern "C"
25780#endif
25781char sunw_mp_register_warn ();
25782int
25783main ()
25784{
25785return sunw_mp_register_warn ();
25786 ;
25787 return 0;
25788}
25789_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025790if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025791 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25792else
cristy8b350f62009-11-15 23:12:43 +000025793 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025794fi
cristy8b350f62009-11-15 23:12:43 +000025795rm -f core conftest.err conftest.$ac_objext \
25796 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025797LIBS=$ac_check_lib_save_LIBS
25798fi
cristy8b350f62009-11-15 23:12:43 +000025799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025800$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025801if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025802 GOMP_LIBS="-lmtsk"
25803fi
25804 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000025805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025806$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025807if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025808 $as_echo_n "(cached) " >&6
25809else
25810 ac_check_lib_save_LIBS=$LIBS
25811LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025813/* end confdefs.h. */
25814
25815/* Override any GCC internal prototype to avoid an error.
25816 Use char because int might match the return type of a GCC
25817 builtin and then its argument prototype would still apply. */
25818#ifdef __cplusplus
25819extern "C"
25820#endif
25821char _xlsmpFlush ();
25822int
25823main ()
25824{
25825return _xlsmpFlush ();
25826 ;
25827 return 0;
25828}
25829_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025830if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025831 ac_cv_lib_xlsmp__xlsmpFlush=yes
25832else
cristy8b350f62009-11-15 23:12:43 +000025833 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025834fi
cristy8b350f62009-11-15 23:12:43 +000025835rm -f core conftest.err conftest.$ac_objext \
25836 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025837LIBS=$ac_check_lib_save_LIBS
25838fi
cristy8b350f62009-11-15 23:12:43 +000025839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025840$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025841if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025842 GOMP_LIBS="-lxlsmp"
25843fi
25844 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000025845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025846$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025847if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025848 $as_echo_n "(cached) " >&6
25849else
25850 ac_check_lib_save_LIBS=$LIBS
25851LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025853/* end confdefs.h. */
25854
25855/* Override any GCC internal prototype to avoid an error.
25856 Use char because int might match the return type of a GCC
25857 builtin and then its argument prototype would still apply. */
25858#ifdef __cplusplus
25859extern "C"
25860#endif
25861char mp_destroy ();
25862int
25863main ()
25864{
25865return mp_destroy ();
25866 ;
25867 return 0;
25868}
25869_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025870if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025871 ac_cv_lib_mp_mp_destroy=yes
25872else
cristy8b350f62009-11-15 23:12:43 +000025873 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025874fi
cristy8b350f62009-11-15 23:12:43 +000025875rm -f core conftest.err conftest.$ac_objext \
25876 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025877LIBS=$ac_check_lib_save_LIBS
25878fi
cristy8b350f62009-11-15 23:12:43 +000025879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025880$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025881if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025882 GOMP_LIBS="-lmp"
25883fi
25884 # SGI IRIX 6.5 MIPSpro C/C++
25885 fi
25886 LIBS="$GOMP_LIBS $LIBS"
25887fi
25888
25889
25890#
25891# Find Posix threads library
25892#
25893THREAD_LIBS=''
25894if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25895
25896 if test "x$PTHREAD_LIBS" = "x"; then
25897 case "${host_cpu}-${host_os}" in
25898 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000025899
25900
25901
25902ac_ext=c
25903ac_cpp='$CPP $CPPFLAGS'
25904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25906ac_compiler_gnu=$ac_cv_c_compiler_gnu
25907
25908magick_pthread_lib_ok=no
25909
25910LIB=-lc_r
25911save_LIBS="$LIBS"
25912LIBS="$LIBS $LIB"
25913
25914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25915$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25917/* end confdefs.h. */
25918#include <pthread.h>
25919int
25920main ()
25921{
25922 pthread_t th;
25923 pthread_join(th, 0);
25924 pthread_attr_init(0);
25925 pthread_cleanup_push(0, 0);
25926 pthread_create(0,0,0,0);
25927 pthread_cleanup_pop(0);
25928 ;
25929 return 0;
25930}
25931_ACEOF
25932if ac_fn_c_try_link "$LINENO"; then :
25933 magick_pthread_lib_ok=yes
25934fi
25935rm -f core conftest.err conftest.$ac_objext \
25936 conftest$ac_exeext conftest.$ac_ext
25937
25938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25939$as_echo "${magick_pthread_lib_ok}" >&6; }
25940if test "$magick_pthread_lib_ok" = yes
25941then
25942 PTHREAD_LIBS=-lc_r
25943 :
25944else
25945
25946 :
25947fi
25948
25949LIBS="$save_LIBS"
25950
25951ac_ext=c
25952ac_cpp='$CPP $CPPFLAGS'
25953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25955ac_compiler_gnu=$ac_cv_c_compiler_gnu
25956
25957 ;;
cristy3ed852e2009-09-05 21:47:34 +000025958 esac
25959 fi
25960
25961 for lib in pthread pthreads; do
25962 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000025963
25964
25965
25966ac_ext=c
25967ac_cpp='$CPP $CPPFLAGS'
25968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25970ac_compiler_gnu=$ac_cv_c_compiler_gnu
25971
25972magick_pthread_lib_ok=no
25973
25974LIB=-l$lib
25975save_LIBS="$LIBS"
25976LIBS="$LIBS $LIB"
25977
25978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25979$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25981/* end confdefs.h. */
25982#include <pthread.h>
25983int
25984main ()
25985{
25986 pthread_t th;
25987 pthread_join(th, 0);
25988 pthread_attr_init(0);
25989 pthread_cleanup_push(0, 0);
25990 pthread_create(0,0,0,0);
25991 pthread_cleanup_pop(0);
25992 ;
25993 return 0;
25994}
25995_ACEOF
25996if ac_fn_c_try_link "$LINENO"; then :
25997 magick_pthread_lib_ok=yes
25998fi
25999rm -f core conftest.err conftest.$ac_objext \
26000 conftest$ac_exeext conftest.$ac_ext
26001
26002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26003$as_echo "${magick_pthread_lib_ok}" >&6; }
26004if test "$magick_pthread_lib_ok" = yes
26005then
26006 PTHREAD_LIBS=-l$lib
26007 :
26008else
26009
26010 :
26011fi
26012
26013LIBS="$save_LIBS"
26014
26015ac_ext=c
26016ac_cpp='$CPP $CPPFLAGS'
26017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26019ac_compiler_gnu=$ac_cv_c_compiler_gnu
26020
26021
cristy3ed852e2009-09-05 21:47:34 +000026022 fi
26023 done
26024
26025 THREAD_LIBS="$PTHREAD_LIBS"
26026 LIBS="$LIBS $THREAD_LIBS"
26027fi
26028
26029
26030#
26031# Check for umem.
26032#
26033have_umem='no'
26034UMEM_LIBS=''
26035if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026037$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026039$as_echo "" >&6; }
26040 failed=0
26041 passed=0
cristy8b350f62009-11-15 23:12:43 +000026042 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026043if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026044 passed=`expr $passed + 1`
26045else
26046 failed=`expr $failed + 1`
26047fi
26048
26049
cristy8b350f62009-11-15 23:12:43 +000026050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026051$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026052if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026053 $as_echo_n "(cached) " >&6
26054else
26055 ac_check_lib_save_LIBS=$LIBS
26056LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026058/* end confdefs.h. */
26059
26060/* Override any GCC internal prototype to avoid an error.
26061 Use char because int might match the return type of a GCC
26062 builtin and then its argument prototype would still apply. */
26063#ifdef __cplusplus
26064extern "C"
26065#endif
26066char umem_alloc ();
26067int
26068main ()
26069{
26070return umem_alloc ();
26071 ;
26072 return 0;
26073}
26074_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026075if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026076 ac_cv_lib_umem_umem_alloc=yes
26077else
cristy8b350f62009-11-15 23:12:43 +000026078 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026079fi
cristy8b350f62009-11-15 23:12:43 +000026080rm -f core conftest.err conftest.$ac_objext \
26081 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026082LIBS=$ac_check_lib_save_LIBS
26083fi
cristy8b350f62009-11-15 23:12:43 +000026084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026085$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026086if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026087 passed=`expr $passed + 1`
26088else
26089 failed=`expr $failed + 1`
26090fi
26091
cristy8b350f62009-11-15 23:12:43 +000026092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026093$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026094if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026095 $as_echo_n "(cached) " >&6
26096else
26097 ac_check_lib_save_LIBS=$LIBS
26098LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026100/* end confdefs.h. */
26101
26102/* Override any GCC internal prototype to avoid an error.
26103 Use char because int might match the return type of a GCC
26104 builtin and then its argument prototype would still apply. */
26105#ifdef __cplusplus
26106extern "C"
26107#endif
26108char umem_free ();
26109int
26110main ()
26111{
26112return umem_free ();
26113 ;
26114 return 0;
26115}
26116_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026117if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026118 ac_cv_lib_umem_umem_free=yes
26119else
cristy8b350f62009-11-15 23:12:43 +000026120 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026121fi
cristy8b350f62009-11-15 23:12:43 +000026122rm -f core conftest.err conftest.$ac_objext \
26123 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026124LIBS=$ac_check_lib_save_LIBS
26125fi
cristy8b350f62009-11-15 23:12:43 +000026126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026127$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026128if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026129 passed=`expr $passed + 1`
26130else
26131 failed=`expr $failed + 1`
26132fi
26133
cristy8b350f62009-11-15 23:12:43 +000026134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026135$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26136 if test $passed -gt 0; then
26137 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026139$as_echo "no -- some components failed test" >&6; }
26140 have_umem='no (failed tests)'
26141 else
26142 UMEM_LIBS='-lumem'
26143 LIBS="$UMEM_LIBS $LIBS"
26144
cristy8b350f62009-11-15 23:12:43 +000026145$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026146
cristy8b350f62009-11-15 23:12:43 +000026147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026148$as_echo "yes" >&6; }
26149 have_umem='yes'
26150 fi
26151 else
cristy8b350f62009-11-15 23:12:43 +000026152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026153$as_echo "no" >&6; }
26154 fi
26155fi
cristy73bd4a52010-10-05 11:24:23 +000026156 if test "$have_umem" = 'yes'; then
26157 HasUMEM_TRUE=
26158 HasUMEM_FALSE='#'
26159else
26160 HasUMEM_TRUE='#'
26161 HasUMEM_FALSE=
26162fi
26163
cristy3ed852e2009-09-05 21:47:34 +000026164
26165
26166#
26167# Add support for ccmalloc memory debugging library if requested
26168#
26169have_ccmalloc='no'
26170CCMALLOC_LIBS=''
26171if test "$enable_ccmalloc" = 'yes'; then
26172 # Extract the first word of "ccmalloc", so it can be a program name with args.
26173set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026175$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026176if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026177 $as_echo_n "(cached) " >&6
26178else
26179 case $CCMALLOCDelegate in
26180 [\\/]* | ?:[\\/]*)
26181 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26182 ;;
26183 *)
26184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26185for as_dir in $PATH
26186do
26187 IFS=$as_save_IFS
26188 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026189 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26191 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026193 break 2
26194 fi
26195done
cristy8b350f62009-11-15 23:12:43 +000026196 done
cristy3ed852e2009-09-05 21:47:34 +000026197IFS=$as_save_IFS
26198
26199 ;;
26200esac
26201fi
26202CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26203if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026205$as_echo "$CCMALLOCDelegate" >&6; }
26206else
cristy8b350f62009-11-15 23:12:43 +000026207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026208$as_echo "no" >&6; }
26209fi
26210
26211
26212 if test -n "$CCMALLOCDelegate"; then
26213 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26214 OLIBS="$LIBS"
26215 # Assume that gcc is used with ccmalloc.
26216 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026218$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026219if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026220 $as_echo_n "(cached) " >&6
26221else
26222 ac_check_lib_save_LIBS=$LIBS
26223LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026225/* end confdefs.h. */
26226
26227/* Override any GCC internal prototype to avoid an error.
26228 Use char because int might match the return type of a GCC
26229 builtin and then its argument prototype would still apply. */
26230#ifdef __cplusplus
26231extern "C"
26232#endif
26233char ccmalloc_malloc ();
26234int
26235main ()
26236{
26237return ccmalloc_malloc ();
26238 ;
26239 return 0;
26240}
26241_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026242if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026243 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26244else
cristy8b350f62009-11-15 23:12:43 +000026245 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026246fi
cristy8b350f62009-11-15 23:12:43 +000026247rm -f core conftest.err conftest.$ac_objext \
26248 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026249LIBS=$ac_check_lib_save_LIBS
26250fi
cristy8b350f62009-11-15 23:12:43 +000026251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026252$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026253if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026254 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26255fi
26256
26257 if test -n "$CCMALLOC_LIBS"; then
26258 LIBS="$OLIBS"
26259 LIBS="$LIBS $CCMALLOC_LIBS"
26260 have_ccmalloc='yes'
26261 else
26262 LIBS="$OLIBS"
26263 fi
26264 fi
26265fi
26266
26267#
26268# Add support for efence memory debugging library if requested
26269#
26270if test "$enable_efence" = 'yes'; then
26271 EFENCE_LIBS='-lefence'
26272 LIBS="$EFENCE_LIBS $LIBS"
26273fi
26274
cristy3ed852e2009-09-05 21:47:34 +000026275
26276#
26277# Check for BZLIB
26278#
26279
26280
26281# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026282if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026283 withval=$with_bzlib; with_bzlib=$withval
26284else
26285 with_bzlib='yes'
26286fi
26287
26288
26289if test "$with_bzlib" != 'yes'; then
26290 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26291fi
26292
26293have_bzlib='no'
26294if test "$with_bzlib" != 'no'; then
26295 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026297$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026299$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026301$as_echo "" >&6; }
26302 failed=0
26303 passed=0
26304 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026305 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026306if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026307 passed=`expr $passed + 1`
26308else
26309 failed=`expr $failed + 1`
26310fi
26311
26312
cristy8b350f62009-11-15 23:12:43 +000026313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026314$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026315if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026316 $as_echo_n "(cached) " >&6
26317else
26318 ac_check_lib_save_LIBS=$LIBS
26319LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026321/* end confdefs.h. */
26322
26323/* Override any GCC internal prototype to avoid an error.
26324 Use char because int might match the return type of a GCC
26325 builtin and then its argument prototype would still apply. */
26326#ifdef __cplusplus
26327extern "C"
26328#endif
26329char BZ2_bzDecompress ();
26330int
26331main ()
26332{
26333return BZ2_bzDecompress ();
26334 ;
26335 return 0;
26336}
26337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026338if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026339 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26340else
cristy8b350f62009-11-15 23:12:43 +000026341 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026342fi
cristy8b350f62009-11-15 23:12:43 +000026343rm -f core conftest.err conftest.$ac_objext \
26344 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026345LIBS=$ac_check_lib_save_LIBS
26346fi
cristy8b350f62009-11-15 23:12:43 +000026347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026348$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026349if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026350 found_libbz=`expr $found_libbz + 1`
26351fi
26352
26353 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026355$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026356if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026357 $as_echo_n "(cached) " >&6
26358else
26359 ac_check_lib_save_LIBS=$LIBS
26360LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026362/* end confdefs.h. */
26363
26364/* Override any GCC internal prototype to avoid an error.
26365 Use char because int might match the return type of a GCC
26366 builtin and then its argument prototype would still apply. */
26367#ifdef __cplusplus
26368extern "C"
26369#endif
26370char _imp__BZ2_decompress ();
26371int
26372main ()
26373{
26374return _imp__BZ2_decompress ();
26375 ;
26376 return 0;
26377}
26378_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026379if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026380 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26381else
cristy8b350f62009-11-15 23:12:43 +000026382 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026383fi
cristy8b350f62009-11-15 23:12:43 +000026384rm -f core conftest.err conftest.$ac_objext \
26385 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026386LIBS=$ac_check_lib_save_LIBS
26387fi
cristy8b350f62009-11-15 23:12:43 +000026388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026389$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026390if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026391 found_libbz=`expr $found_libbz + 1`
26392fi
26393
26394 fi
26395 if test $found_libbz -gt 0; then
26396 passed=`expr $passed + 1`
26397 else
26398 failed=`expr $failed + 1`
26399 fi
cristy8b350f62009-11-15 23:12:43 +000026400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026401$as_echo_n "checking if BZLIB package is complete... " >&6; }
26402 if test $passed -gt 0; then
26403 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026405$as_echo "no -- some components failed test" >&6; }
26406 have_bzlib='no (failed tests)'
26407 else
26408 BZLIB_LIBS='-lbz2'
26409 LIBS="$BZLIB_LIBS $LIBS"
26410
cristy8b350f62009-11-15 23:12:43 +000026411$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026412
cristy8b350f62009-11-15 23:12:43 +000026413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026414$as_echo "yes" >&6; }
26415 have_bzlib='yes'
26416 fi
26417 else
cristy8b350f62009-11-15 23:12:43 +000026418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026419$as_echo "no" >&6; }
26420 fi
26421fi
cristy73bd4a52010-10-05 11:24:23 +000026422 if test "$have_bzlib" = 'yes'; then
26423 BZLIB_DELEGATE_TRUE=
26424 BZLIB_DELEGATE_FALSE='#'
26425else
26426 BZLIB_DELEGATE_TRUE='#'
26427 BZLIB_DELEGATE_FALSE=
26428fi
26429
cristy3ed852e2009-09-05 21:47:34 +000026430
26431
26432#
26433# Find the X11 include and library directories.
26434#
26435IPC_LIBS=''
26436X11_LIBS=''
26437XEXT_LIBS=''
26438XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026440$as_echo_n "checking for X... " >&6; }
26441
26442
26443# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026444if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026445 withval=$with_x;
26446fi
26447
26448# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26449if test "x$with_x" = xno; then
26450 # The user explicitly disabled X.
26451 have_x=disabled
26452else
26453 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026454 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026455 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026456 $as_echo_n "(cached) " >&6
26457else
26458 # One or both of the vars are not set, and there is no cached value.
26459ac_x_includes=no ac_x_libraries=no
26460rm -f -r conftest.dir
26461if mkdir conftest.dir; then
26462 cd conftest.dir
26463 cat >Imakefile <<'_ACEOF'
26464incroot:
26465 @echo incroot='${INCROOT}'
26466usrlibdir:
26467 @echo usrlibdir='${USRLIBDIR}'
26468libdir:
26469 @echo libdir='${LIBDIR}'
26470_ACEOF
26471 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026472 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026473 for ac_var in incroot usrlibdir libdir; do
26474 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26475 done
26476 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26477 for ac_extension in a so sl dylib la dll; do
26478 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26479 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26480 ac_im_usrlibdir=$ac_im_libdir; break
26481 fi
26482 done
26483 # Screen out bogus values from the imake configuration. They are
26484 # bogus both because they are the default anyway, and because
26485 # using them would break gcc on systems where it needs fixed includes.
26486 case $ac_im_incroot in
26487 /usr/include) ac_x_includes= ;;
26488 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26489 esac
26490 case $ac_im_usrlibdir in
26491 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26492 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26493 esac
26494 fi
26495 cd ..
26496 rm -f -r conftest.dir
26497fi
26498
26499# Standard set of common directories for X headers.
26500# Check X11 before X11Rn because it is often a symlink to the current release.
26501ac_x_header_dirs='
26502/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026503/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026504/usr/X11R6/include
26505/usr/X11R5/include
26506/usr/X11R4/include
26507
26508/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026509/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026510/usr/include/X11R6
26511/usr/include/X11R5
26512/usr/include/X11R4
26513
26514/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026515/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026516/usr/local/X11R6/include
26517/usr/local/X11R5/include
26518/usr/local/X11R4/include
26519
26520/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026521/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026522/usr/local/include/X11R6
26523/usr/local/include/X11R5
26524/usr/local/include/X11R4
26525
26526/usr/X386/include
26527/usr/x386/include
26528/usr/XFree86/include/X11
26529
26530/usr/include
26531/usr/local/include
26532/usr/unsupported/include
26533/usr/athena/include
26534/usr/local/x11r5/include
26535/usr/lpp/Xamples/include
26536
26537/usr/openwin/include
26538/usr/openwin/share/include'
26539
26540if test "$ac_x_includes" = no; then
26541 # Guess where to find include files, by looking for Xlib.h.
26542 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026544/* end confdefs.h. */
26545#include <X11/Xlib.h>
26546_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026547if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026548 # We can compile using X headers with no special include directory.
26549ac_x_includes=
26550else
cristyc7083c12009-10-14 03:16:55 +000026551 for ac_dir in $ac_x_header_dirs; do
26552 if test -r "$ac_dir/X11/Xlib.h"; then
26553 ac_x_includes=$ac_dir
26554 break
26555 fi
26556done
26557fi
cristyda16f162011-02-19 23:52:17 +000026558rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026559fi # $ac_x_includes = no
26560
26561if test "$ac_x_libraries" = no; then
26562 # Check for the libraries.
26563 # See if we find them without any special options.
26564 # Don't add to $LIBS permanently.
26565 ac_save_LIBS=$LIBS
26566 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026568/* end confdefs.h. */
26569#include <X11/Xlib.h>
26570int
26571main ()
26572{
26573XrmInitialize ()
26574 ;
26575 return 0;
26576}
26577_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026578if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026579 LIBS=$ac_save_LIBS
26580# We can link X programs with no special library path.
26581ac_x_libraries=
26582else
cristy8b350f62009-11-15 23:12:43 +000026583 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026584for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26585do
26586 # Don't even attempt the hair of trying to link an X program!
26587 for ac_extension in a so sl dylib la dll; do
26588 if test -r "$ac_dir/libX11.$ac_extension"; then
26589 ac_x_libraries=$ac_dir
26590 break 2
26591 fi
26592 done
26593done
26594fi
cristy8b350f62009-11-15 23:12:43 +000026595rm -f core conftest.err conftest.$ac_objext \
26596 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026597fi # $ac_x_libraries = no
26598
26599case $ac_x_includes,$ac_x_libraries in #(
26600 no,* | *,no | *\'*)
26601 # Didn't find X, or a directory has "'" in its name.
26602 ac_cv_have_x="have_x=no";; #(
26603 *)
26604 # Record where we found X for the cache.
26605 ac_cv_have_x="have_x=yes\
26606 ac_x_includes='$ac_x_includes'\
26607 ac_x_libraries='$ac_x_libraries'"
26608esac
26609fi
26610;; #(
26611 *) have_x=yes;;
26612 esac
26613 eval "$ac_cv_have_x"
26614fi # $with_x != no
26615
26616if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026618$as_echo "$have_x" >&6; }
26619 no_x=yes
26620else
26621 # If each of the values was on the command line, it overrides each guess.
26622 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26623 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26624 # Update the cache value to reflect the command line values.
26625 ac_cv_have_x="have_x=yes\
26626 ac_x_includes='$x_includes'\
26627 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026629$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26630fi
26631
cristy3ed852e2009-09-05 21:47:34 +000026632if test "$no_x" = yes; then
26633 # Not all programs may use this symbol, but it does not hurt to define it.
26634
cristy8b350f62009-11-15 23:12:43 +000026635$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026636
26637 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26638else
26639 if test -n "$x_includes"; then
26640 X_CFLAGS="$X_CFLAGS -I$x_includes"
26641 fi
26642
26643 # It would also be nice to do this for all -L options, not just this one.
26644 if test -n "$x_libraries"; then
26645 X_LIBS="$X_LIBS -L$x_libraries"
26646 # For Solaris; some versions of Sun CC require a space after -R and
26647 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026649$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26650 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26651 ac_xsave_c_werror_flag=$ac_c_werror_flag
26652 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026654/* end confdefs.h. */
26655
26656int
26657main ()
26658{
26659
26660 ;
26661 return 0;
26662}
26663_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026664if ac_fn_c_try_link "$LINENO"; then :
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026666$as_echo "no" >&6; }
26667 X_LIBS="$X_LIBS -R$x_libraries"
26668else
cristy8b350f62009-11-15 23:12:43 +000026669 LIBS="$ac_xsave_LIBS -R $x_libraries"
26670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026671/* end confdefs.h. */
26672
26673int
26674main ()
26675{
26676
26677 ;
26678 return 0;
26679}
26680_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026681if ac_fn_c_try_link "$LINENO"; then :
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026683$as_echo "yes" >&6; }
26684 X_LIBS="$X_LIBS -R $x_libraries"
26685else
cristy8b350f62009-11-15 23:12:43 +000026686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026687$as_echo "neither works" >&6; }
26688fi
cristy8b350f62009-11-15 23:12:43 +000026689rm -f core conftest.err conftest.$ac_objext \
26690 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026691fi
cristy8b350f62009-11-15 23:12:43 +000026692rm -f core conftest.err conftest.$ac_objext \
26693 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026694 ac_c_werror_flag=$ac_xsave_c_werror_flag
26695 LIBS=$ac_xsave_LIBS
26696 fi
26697
26698 # Check for system-dependent libraries X programs must link with.
26699 # Do this before checking for the system-independent R6 libraries
26700 # (-lICE), since we may need -lsocket or whatever for X linking.
26701
26702 if test "$ISC" = yes; then
26703 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26704 else
26705 # Martyn Johnson says this is needed for Ultrix, if the X
26706 # libraries were built with DECnet support. And Karl Berry says
26707 # the Alpha needs dnet_stub (dnet does not exist).
26708 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026709 cat 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 XOpenDisplay ();
26719int
26720main ()
26721{
26722return XOpenDisplay ();
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
cristy8b350f62009-11-15 23:12:43 +000026729else
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026731$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026732if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026733 $as_echo_n "(cached) " >&6
26734else
26735 ac_check_lib_save_LIBS=$LIBS
26736LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026738/* end confdefs.h. */
26739
26740/* Override any GCC internal prototype to avoid an error.
26741 Use char because int might match the return type of a GCC
26742 builtin and then its argument prototype would still apply. */
26743#ifdef __cplusplus
26744extern "C"
26745#endif
26746char dnet_ntoa ();
26747int
26748main ()
26749{
26750return dnet_ntoa ();
26751 ;
26752 return 0;
26753}
26754_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026755if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026756 ac_cv_lib_dnet_dnet_ntoa=yes
26757else
cristy8b350f62009-11-15 23:12:43 +000026758 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026759fi
cristy8b350f62009-11-15 23:12:43 +000026760rm -f core conftest.err conftest.$ac_objext \
26761 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026762LIBS=$ac_check_lib_save_LIBS
26763fi
cristy8b350f62009-11-15 23:12:43 +000026764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026765$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026766if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026767 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26768fi
26769
26770 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026772$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026773if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026774 $as_echo_n "(cached) " >&6
26775else
26776 ac_check_lib_save_LIBS=$LIBS
26777LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026779/* end confdefs.h. */
26780
26781/* Override any GCC internal prototype to avoid an error.
26782 Use char because int might match the return type of a GCC
26783 builtin and then its argument prototype would still apply. */
26784#ifdef __cplusplus
26785extern "C"
26786#endif
26787char dnet_ntoa ();
26788int
26789main ()
26790{
26791return dnet_ntoa ();
26792 ;
26793 return 0;
26794}
26795_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026796if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026797 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26798else
cristy8b350f62009-11-15 23:12:43 +000026799 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026800fi
cristy8b350f62009-11-15 23:12:43 +000026801rm -f core conftest.err conftest.$ac_objext \
26802 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026803LIBS=$ac_check_lib_save_LIBS
26804fi
cristy8b350f62009-11-15 23:12:43 +000026805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026806$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026807if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026808 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26809fi
26810
26811 fi
26812fi
cristy8b350f62009-11-15 23:12:43 +000026813rm -f core conftest.err conftest.$ac_objext \
26814 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026815 LIBS="$ac_xsave_LIBS"
26816
26817 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26818 # to get the SysV transport functions.
26819 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26820 # needs -lnsl.
26821 # The nsl library prevents programs from opening the X display
26822 # on Irix 5.2, according to T.E. Dickey.
26823 # The functions gethostbyname, getservbyname, and inet_addr are
26824 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026825 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026826if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026827
cristy3ed852e2009-09-05 21:47:34 +000026828fi
26829
cristy3ed852e2009-09-05 21:47:34 +000026830 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026832$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026833if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026834 $as_echo_n "(cached) " >&6
26835else
26836 ac_check_lib_save_LIBS=$LIBS
26837LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026839/* end confdefs.h. */
26840
26841/* Override any GCC internal prototype to avoid an error.
26842 Use char because int might match the return type of a GCC
26843 builtin and then its argument prototype would still apply. */
26844#ifdef __cplusplus
26845extern "C"
26846#endif
26847char gethostbyname ();
26848int
26849main ()
26850{
26851return gethostbyname ();
26852 ;
26853 return 0;
26854}
26855_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026856if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026857 ac_cv_lib_nsl_gethostbyname=yes
26858else
cristy8b350f62009-11-15 23:12:43 +000026859 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026860fi
cristy8b350f62009-11-15 23:12:43 +000026861rm -f core conftest.err conftest.$ac_objext \
26862 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026863LIBS=$ac_check_lib_save_LIBS
26864fi
cristy8b350f62009-11-15 23:12:43 +000026865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026866$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026867if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026868 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26869fi
26870
26871 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026873$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026874if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026875 $as_echo_n "(cached) " >&6
26876else
26877 ac_check_lib_save_LIBS=$LIBS
26878LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026880/* end confdefs.h. */
26881
26882/* Override any GCC internal prototype to avoid an error.
26883 Use char because int might match the return type of a GCC
26884 builtin and then its argument prototype would still apply. */
26885#ifdef __cplusplus
26886extern "C"
26887#endif
26888char gethostbyname ();
26889int
26890main ()
26891{
26892return gethostbyname ();
26893 ;
26894 return 0;
26895}
26896_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026897if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026898 ac_cv_lib_bsd_gethostbyname=yes
26899else
cristy8b350f62009-11-15 23:12:43 +000026900 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026901fi
cristy8b350f62009-11-15 23:12:43 +000026902rm -f core conftest.err conftest.$ac_objext \
26903 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026904LIBS=$ac_check_lib_save_LIBS
26905fi
cristy8b350f62009-11-15 23:12:43 +000026906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026907$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026908if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026909 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26910fi
26911
26912 fi
26913 fi
26914
26915 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26916 # socket/setsockopt and other routines are undefined under SCO ODT
26917 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26918 # on later versions), says Simon Leinen: it contains gethostby*
26919 # variants that don't use the name server (or something). -lsocket
26920 # must be given before -lnsl if both are needed. We assume that
26921 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026922 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026923if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026924
cristy3ed852e2009-09-05 21:47:34 +000026925fi
26926
cristy3ed852e2009-09-05 21:47:34 +000026927 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026929$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026930if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026931 $as_echo_n "(cached) " >&6
26932else
26933 ac_check_lib_save_LIBS=$LIBS
26934LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026936/* end confdefs.h. */
26937
26938/* Override any GCC internal prototype to avoid an error.
26939 Use char because int might match the return type of a GCC
26940 builtin and then its argument prototype would still apply. */
26941#ifdef __cplusplus
26942extern "C"
26943#endif
26944char connect ();
26945int
26946main ()
26947{
26948return connect ();
26949 ;
26950 return 0;
26951}
26952_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026953if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026954 ac_cv_lib_socket_connect=yes
26955else
cristy8b350f62009-11-15 23:12:43 +000026956 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000026957fi
cristy8b350f62009-11-15 23:12:43 +000026958rm -f core conftest.err conftest.$ac_objext \
26959 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026960LIBS=$ac_check_lib_save_LIBS
26961fi
cristy8b350f62009-11-15 23:12:43 +000026962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000026963$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000026964if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026965 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26966fi
26967
26968 fi
26969
26970 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000026971 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000026972if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026973
cristy3ed852e2009-09-05 21:47:34 +000026974fi
26975
cristy3ed852e2009-09-05 21:47:34 +000026976 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000026977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000026978$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026979if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026980 $as_echo_n "(cached) " >&6
26981else
26982 ac_check_lib_save_LIBS=$LIBS
26983LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026985/* end confdefs.h. */
26986
26987/* Override any GCC internal prototype to avoid an error.
26988 Use char because int might match the return type of a GCC
26989 builtin and then its argument prototype would still apply. */
26990#ifdef __cplusplus
26991extern "C"
26992#endif
26993char remove ();
26994int
26995main ()
26996{
26997return remove ();
26998 ;
26999 return 0;
27000}
27001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027002if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027003 ac_cv_lib_posix_remove=yes
27004else
cristy8b350f62009-11-15 23:12:43 +000027005 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027006fi
cristy8b350f62009-11-15 23:12:43 +000027007rm -f core conftest.err conftest.$ac_objext \
27008 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027009LIBS=$ac_check_lib_save_LIBS
27010fi
cristy8b350f62009-11-15 23:12:43 +000027011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027012$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027013if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027014 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27015fi
27016
27017 fi
27018
27019 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027020 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027021if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027022
cristy3ed852e2009-09-05 21:47:34 +000027023fi
27024
cristy3ed852e2009-09-05 21:47:34 +000027025 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027027$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027028if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027029 $as_echo_n "(cached) " >&6
27030else
27031 ac_check_lib_save_LIBS=$LIBS
27032LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027034/* end confdefs.h. */
27035
27036/* Override any GCC internal prototype to avoid an error.
27037 Use char because int might match the return type of a GCC
27038 builtin and then its argument prototype would still apply. */
27039#ifdef __cplusplus
27040extern "C"
27041#endif
27042char shmat ();
27043int
27044main ()
27045{
27046return shmat ();
27047 ;
27048 return 0;
27049}
27050_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027051if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027052 ac_cv_lib_ipc_shmat=yes
27053else
cristy8b350f62009-11-15 23:12:43 +000027054 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027055fi
cristy8b350f62009-11-15 23:12:43 +000027056rm -f core conftest.err conftest.$ac_objext \
27057 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027058LIBS=$ac_check_lib_save_LIBS
27059fi
cristy8b350f62009-11-15 23:12:43 +000027060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027061$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027062if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027063 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27064fi
27065
27066 fi
27067 fi
27068
27069 # Check for libraries that X11R6 Xt/Xaw programs need.
27070 ac_save_LDFLAGS=$LDFLAGS
27071 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27072 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27073 # check for ICE first), but we must link in the order -lSM -lICE or
27074 # we get undefined symbols. So assume we have SM if we have ICE.
27075 # These have to be linked with before -lX11, unlike the other
27076 # libraries we check for below, so use a different variable.
27077 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027079$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027080if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027081 $as_echo_n "(cached) " >&6
27082else
27083 ac_check_lib_save_LIBS=$LIBS
27084LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027086/* end confdefs.h. */
27087
27088/* Override any GCC internal prototype to avoid an error.
27089 Use char because int might match the return type of a GCC
27090 builtin and then its argument prototype would still apply. */
27091#ifdef __cplusplus
27092extern "C"
27093#endif
27094char IceConnectionNumber ();
27095int
27096main ()
27097{
27098return IceConnectionNumber ();
27099 ;
27100 return 0;
27101}
27102_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027103if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027104 ac_cv_lib_ICE_IceConnectionNumber=yes
27105else
cristy8b350f62009-11-15 23:12:43 +000027106 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027107fi
cristy8b350f62009-11-15 23:12:43 +000027108rm -f core conftest.err conftest.$ac_objext \
27109 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027110LIBS=$ac_check_lib_save_LIBS
27111fi
cristy8b350f62009-11-15 23:12:43 +000027112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027113$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027114if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027115 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27116fi
27117
27118 LDFLAGS=$ac_save_LDFLAGS
27119
27120fi
27121
27122if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027124$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027126$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027128$as_echo "" >&6; }
27129 LDFLAGS="$LDFLAGS $X_LIBS"
27130 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27131 LIBS="$X11_LIBS $LIBS"
27132 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27133
27134
cristy8b350f62009-11-15 23:12:43 +000027135$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027136
27137 #
27138 # Check for X11 shared memory extension
27139 #
27140 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027141 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027142if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027143 have_shmctl='yes'
27144fi
27145
27146 if test "$have_shmctl" != 'yes'; then
27147 PERSIST_LIBS=$LIBS
27148 LIBS="$LIBS -lcygipc"
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
27152/* Override any GCC internal prototype to avoid an error.
27153 Use char because int might match the return type of a GCC
27154 builtin and then its argument prototype would still apply. */
27155#ifdef __cplusplus
27156extern "C"
27157#endif
27158char shmctl ();
27159int
27160main ()
27161{
27162return shmctl ();
27163 ;
27164 return 0;
27165}
27166_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027167if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027168 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027169fi
cristy8b350f62009-11-15 23:12:43 +000027170rm -f core conftest.err conftest.$ac_objext \
27171 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027172 LIBS=$PERSIST_LIBS
27173 fi
27174
27175 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027177$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027178if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027179 $as_echo_n "(cached) " >&6
27180else
27181 ac_check_lib_save_LIBS=$LIBS
27182LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027184/* end confdefs.h. */
27185
27186/* Override any GCC internal prototype to avoid an error.
27187 Use char because int might match the return type of a GCC
27188 builtin and then its argument prototype would still apply. */
27189#ifdef __cplusplus
27190extern "C"
27191#endif
27192char XShmAttach ();
27193int
27194main ()
27195{
27196return XShmAttach ();
27197 ;
27198 return 0;
27199}
27200_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027201if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027202 ac_cv_lib_Xext_XShmAttach=yes
27203else
cristy8b350f62009-11-15 23:12:43 +000027204 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027205fi
cristy8b350f62009-11-15 23:12:43 +000027206rm -f core conftest.err conftest.$ac_objext \
27207 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027208LIBS=$ac_check_lib_save_LIBS
27209fi
cristy8b350f62009-11-15 23:12:43 +000027210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027211$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027212if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027213 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027214$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027215
27216fi
27217
27218 fi
27219
27220 #
27221 # Check for X11 shape extension
27222 #
cristy8b350f62009-11-15 23:12:43 +000027223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027224$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027225if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027226 $as_echo_n "(cached) " >&6
27227else
27228 ac_check_lib_save_LIBS=$LIBS
27229LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027231/* end confdefs.h. */
27232
27233/* Override any GCC internal prototype to avoid an error.
27234 Use char because int might match the return type of a GCC
27235 builtin and then its argument prototype would still apply. */
27236#ifdef __cplusplus
27237extern "C"
27238#endif
27239char XShapeCombineMask ();
27240int
27241main ()
27242{
27243return XShapeCombineMask ();
27244 ;
27245 return 0;
27246}
27247_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027248if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027249 ac_cv_lib_Xext_XShapeCombineMask=yes
27250else
cristy8b350f62009-11-15 23:12:43 +000027251 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027252fi
cristy8b350f62009-11-15 23:12:43 +000027253rm -f core conftest.err conftest.$ac_objext \
27254 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027255LIBS=$ac_check_lib_save_LIBS
27256fi
cristy8b350f62009-11-15 23:12:43 +000027257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027258$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027259if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027260 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027261$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027262
27263fi
27264
cristy8b350f62009-11-15 23:12:43 +000027265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027266$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027267if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027268 $as_echo_n "(cached) " >&6
27269else
27270 ac_check_lib_save_LIBS=$LIBS
27271LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027273/* end confdefs.h. */
27274
27275/* Override any GCC internal prototype to avoid an error.
27276 Use char because int might match the return type of a GCC
27277 builtin and then its argument prototype would still apply. */
27278#ifdef __cplusplus
27279extern "C"
27280#endif
27281char XtSetEventDispatcher ();
27282int
27283main ()
27284{
27285return XtSetEventDispatcher ();
27286 ;
27287 return 0;
27288}
27289_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027290if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027291 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27292else
cristy8b350f62009-11-15 23:12:43 +000027293 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027294fi
cristy8b350f62009-11-15 23:12:43 +000027295rm -f core conftest.err conftest.$ac_objext \
27296 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027297LIBS=$ac_check_lib_save_LIBS
27298fi
cristy8b350f62009-11-15 23:12:43 +000027299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027300$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027301if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027302 XT_LIBS='-lXt'
27303fi
27304
27305 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27306fi
27307if test "$no_x" != 'yes'; then
27308 have_x='yes'
27309else
27310 have_x='no'
27311fi
cristy73bd4a52010-10-05 11:24:23 +000027312 if test "$have_x" = 'yes'; then
27313 X11_DELEGATE_TRUE=
27314 X11_DELEGATE_FALSE='#'
27315else
27316 X11_DELEGATE_TRUE='#'
27317 X11_DELEGATE_FALSE=
27318fi
27319
cristy3ed852e2009-09-05 21:47:34 +000027320
27321
27322
27323
27324#
27325# Check for ZLIB
27326#
27327
27328# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027329if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027330 withval=$with_zlib; with_zlib=$withval
27331else
27332 with_zlib='yes'
27333fi
27334
27335
27336if test "$with_zlib" != 'yes'; then
27337 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27338fi
27339
27340have_zlib='no'
27341ZLIB_LIBS=''
27342if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027344$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027346$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027348$as_echo "" >&6; }
27349 ZLIB_LIBS=''
27350 failed=0
27351 passed=0
cristy8b350f62009-11-15 23:12:43 +000027352 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027353if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027354 passed=`expr $passed + 1`
27355else
27356 failed=`expr $failed + 1`
27357fi
27358
27359
cristy8b350f62009-11-15 23:12:43 +000027360 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027361if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027362 passed=`expr $passed + 1`
27363else
27364 failed=`expr $failed + 1`
27365fi
27366
27367
cristy8b350f62009-11-15 23:12:43 +000027368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027369$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027370if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027371 $as_echo_n "(cached) " >&6
27372else
27373 ac_check_lib_save_LIBS=$LIBS
27374LIBS="-lz $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 compress ();
27385int
27386main ()
27387{
27388return compress ();
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_z_compress=yes
27395else
cristy8b350f62009-11-15 23:12:43 +000027396 ac_cv_lib_z_compress=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_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027403$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027404if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027405 passed=`expr $passed + 1`
27406else
27407 failed=`expr $failed + 1`
27408fi
27409
cristy8b350f62009-11-15 23:12:43 +000027410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027411$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027412if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027413 $as_echo_n "(cached) " >&6
27414else
27415 ac_check_lib_save_LIBS=$LIBS
27416LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027418/* end confdefs.h. */
27419
27420/* Override any GCC internal prototype to avoid an error.
27421 Use char because int might match the return type of a GCC
27422 builtin and then its argument prototype would still apply. */
27423#ifdef __cplusplus
27424extern "C"
27425#endif
27426char uncompress ();
27427int
27428main ()
27429{
27430return uncompress ();
27431 ;
27432 return 0;
27433}
27434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027435if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027436 ac_cv_lib_z_uncompress=yes
27437else
cristy8b350f62009-11-15 23:12:43 +000027438 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027439fi
cristy8b350f62009-11-15 23:12:43 +000027440rm -f core conftest.err conftest.$ac_objext \
27441 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027442LIBS=$ac_check_lib_save_LIBS
27443fi
cristy8b350f62009-11-15 23:12:43 +000027444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027445$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027446if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027447 passed=`expr $passed + 1`
27448else
27449 failed=`expr $failed + 1`
27450fi
27451
cristy8b350f62009-11-15 23:12:43 +000027452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027453$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027454if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027455 $as_echo_n "(cached) " >&6
27456else
27457 ac_check_lib_save_LIBS=$LIBS
27458LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027460/* end confdefs.h. */
27461
27462/* Override any GCC internal prototype to avoid an error.
27463 Use char because int might match the return type of a GCC
27464 builtin and then its argument prototype would still apply. */
27465#ifdef __cplusplus
27466extern "C"
27467#endif
27468char deflate ();
27469int
27470main ()
27471{
27472return deflate ();
27473 ;
27474 return 0;
27475}
27476_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027477if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027478 ac_cv_lib_z_deflate=yes
27479else
cristy8b350f62009-11-15 23:12:43 +000027480 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027481fi
cristy8b350f62009-11-15 23:12:43 +000027482rm -f core conftest.err conftest.$ac_objext \
27483 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027484LIBS=$ac_check_lib_save_LIBS
27485fi
cristy8b350f62009-11-15 23:12:43 +000027486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027487$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027488if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027489 passed=`expr $passed + 1`
27490else
27491 failed=`expr $failed + 1`
27492fi
27493
cristy8b350f62009-11-15 23:12:43 +000027494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027495$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027496if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027497 $as_echo_n "(cached) " >&6
27498else
27499 ac_check_lib_save_LIBS=$LIBS
27500LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027502/* end confdefs.h. */
27503
27504/* Override any GCC internal prototype to avoid an error.
27505 Use char because int might match the return type of a GCC
27506 builtin and then its argument prototype would still apply. */
27507#ifdef __cplusplus
27508extern "C"
27509#endif
27510char inflate ();
27511int
27512main ()
27513{
27514return inflate ();
27515 ;
27516 return 0;
27517}
27518_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027519if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027520 ac_cv_lib_z_inflate=yes
27521else
cristy8b350f62009-11-15 23:12:43 +000027522 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027523fi
cristy8b350f62009-11-15 23:12:43 +000027524rm -f core conftest.err conftest.$ac_objext \
27525 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027526LIBS=$ac_check_lib_save_LIBS
27527fi
cristy8b350f62009-11-15 23:12:43 +000027528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027529$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027530if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027531 passed=`expr $passed + 1`
27532else
27533 failed=`expr $failed + 1`
27534fi
27535
cristy8b350f62009-11-15 23:12:43 +000027536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027537$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027538if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027539 $as_echo_n "(cached) " >&6
27540else
27541 ac_check_lib_save_LIBS=$LIBS
27542LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027544/* end confdefs.h. */
27545
27546/* Override any GCC internal prototype to avoid an error.
27547 Use char because int might match the return type of a GCC
27548 builtin and then its argument prototype would still apply. */
27549#ifdef __cplusplus
27550extern "C"
27551#endif
27552char gzseek ();
27553int
27554main ()
27555{
27556return gzseek ();
27557 ;
27558 return 0;
27559}
27560_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027561if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027562 ac_cv_lib_z_gzseek=yes
27563else
cristy8b350f62009-11-15 23:12:43 +000027564 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027565fi
cristy8b350f62009-11-15 23:12:43 +000027566rm -f core conftest.err conftest.$ac_objext \
27567 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027568LIBS=$ac_check_lib_save_LIBS
27569fi
cristy8b350f62009-11-15 23:12:43 +000027570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027571$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027572if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027573 passed=`expr $passed + 1`
27574else
27575 failed=`expr $failed + 1`
27576fi
27577
cristy8b350f62009-11-15 23:12:43 +000027578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027579$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027580if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027581 $as_echo_n "(cached) " >&6
27582else
27583 ac_check_lib_save_LIBS=$LIBS
27584LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027586/* end confdefs.h. */
27587
27588/* Override any GCC internal prototype to avoid an error.
27589 Use char because int might match the return type of a GCC
27590 builtin and then its argument prototype would still apply. */
27591#ifdef __cplusplus
27592extern "C"
27593#endif
27594char gztell ();
27595int
27596main ()
27597{
27598return gztell ();
27599 ;
27600 return 0;
27601}
27602_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027603if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027604 ac_cv_lib_z_gztell=yes
27605else
cristy8b350f62009-11-15 23:12:43 +000027606 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027607fi
cristy8b350f62009-11-15 23:12:43 +000027608rm -f core conftest.err conftest.$ac_objext \
27609 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027610LIBS=$ac_check_lib_save_LIBS
27611fi
cristy8b350f62009-11-15 23:12:43 +000027612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027613$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027614if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027615 passed=`expr $passed + 1`
27616else
27617 failed=`expr $failed + 1`
27618fi
27619
cristy8b350f62009-11-15 23:12:43 +000027620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027621$as_echo_n "checking if ZLIB package is complete... " >&6; }
27622 if test $passed -gt 0; then
27623 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027625$as_echo "no -- some components failed test" >&6; }
27626 have_zlib='no (failed tests)'
27627 else
27628 ZLIB_LIBS='-lz'
27629 LIBS="$ZLIB_LIBS $LIBS"
27630
cristy8b350f62009-11-15 23:12:43 +000027631$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027632
cristy8b350f62009-11-15 23:12:43 +000027633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027634$as_echo "yes" >&6; }
27635 have_zlib='yes'
27636 fi
27637 else
cristy8b350f62009-11-15 23:12:43 +000027638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027639$as_echo "no" >&6; }
27640 fi
27641fi
cristy73bd4a52010-10-05 11:24:23 +000027642 if test "$have_zlib" = 'yes'; then
27643 ZLIB_DELEGATE_TRUE=
27644 ZLIB_DELEGATE_FALSE='#'
27645else
27646 ZLIB_DELEGATE_TRUE='#'
27647 ZLIB_DELEGATE_FALSE=
27648fi
27649
cristy3ed852e2009-09-05 21:47:34 +000027650
27651
27652#
27653# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27654#
27655LIB_DL=''
27656if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027658$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027659if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027660 $as_echo_n "(cached) " >&6
27661else
27662 ac_check_lib_save_LIBS=$LIBS
27663LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027665/* end confdefs.h. */
27666
27667/* Override any GCC internal prototype to avoid an error.
27668 Use char because int might match the return type of a GCC
27669 builtin and then its argument prototype would still apply. */
27670#ifdef __cplusplus
27671extern "C"
27672#endif
27673char dlopen ();
27674int
27675main ()
27676{
27677return dlopen ();
27678 ;
27679 return 0;
27680}
27681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027682if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027683 ac_cv_lib_dl_dlopen=yes
27684else
cristy8b350f62009-11-15 23:12:43 +000027685 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027686fi
cristy8b350f62009-11-15 23:12:43 +000027687rm -f core conftest.err conftest.$ac_objext \
27688 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027689LIBS=$ac_check_lib_save_LIBS
27690fi
cristy8b350f62009-11-15 23:12:43 +000027691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027692$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027693if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027694 LIB_DL='-ldl'
27695fi
27696
27697 LIBS="$LIB_DL $LIBS"
27698fi
27699
27700
27701
27702#
27703# Check for Autotrace delegate library.
27704#
27705
27706# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027707if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027708 withval=$with_autotrace; with_autotrace=$withval
27709else
27710 with_autotrace='no'
27711fi
27712
27713
27714if test "$with_autotrace" != 'yes'; then
27715 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27716fi
27717
27718have_autotrace='no'
27719AUTOTRACE_CFLAGS=""
27720AUTOTRACE_LIBS=""
27721AUTOTRACE_PKG=""
27722if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027724$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027725
27726pkg_failed=no
27727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27728$as_echo_n "checking for AUTOTRACE... " >&6; }
27729
27730if test -n "$AUTOTRACE_CFLAGS"; then
27731 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27732 elif test -n "$PKG_CONFIG"; then
27733 if test -n "$PKG_CONFIG" && \
27734 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27735 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27736 ac_status=$?
27737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27738 test $ac_status = 0; }; then
27739 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27740else
27741 pkg_failed=yes
27742fi
27743 else
27744 pkg_failed=untried
27745fi
27746if test -n "$AUTOTRACE_LIBS"; then
27747 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27748 elif test -n "$PKG_CONFIG"; then
27749 if test -n "$PKG_CONFIG" && \
27750 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27751 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27752 ac_status=$?
27753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27754 test $ac_status = 0; }; then
27755 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27756else
27757 pkg_failed=yes
27758fi
27759 else
27760 pkg_failed=untried
27761fi
27762
27763
27764
27765if test $pkg_failed = yes; then
27766
27767if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27768 _pkg_short_errors_supported=yes
27769else
27770 _pkg_short_errors_supported=no
27771fi
27772 if test $_pkg_short_errors_supported = yes; then
27773 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27774 else
27775 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27776 fi
27777 # Put the nasty error message in config.log where it belongs
27778 echo "$AUTOTRACE_PKG_ERRORS" >&5
27779
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27781$as_echo "no" >&6; }
27782 have_autotrace=no
27783elif test $pkg_failed = untried; then
27784 have_autotrace=no
27785else
27786 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27787 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27789$as_echo "yes" >&6; }
27790 have_autotrace=yes
27791fi
cristy8b350f62009-11-15 23:12:43 +000027792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027793$as_echo "" >&6; }
27794fi
27795
27796if test "$have_autotrace" = 'yes'; then
27797 failed=0
27798
cristy8b350f62009-11-15 23:12:43 +000027799$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027800
27801 if test "$with_modules" = 'no'; then
27802 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27803 fi
27804fi
27805
cristy73bd4a52010-10-05 11:24:23 +000027806 if test "$have_autotrace" = 'yes'; then
27807 AUTOTRACE_DELEGATE_TRUE=
27808 AUTOTRACE_DELEGATE_FALSE='#'
27809else
27810 AUTOTRACE_DELEGATE_TRUE='#'
27811 AUTOTRACE_DELEGATE_FALSE=
27812fi
27813
cristy3ed852e2009-09-05 21:47:34 +000027814
27815
27816
27817
27818#
27819# Check for Display Postscript delegate library.
27820#
27821
27822# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027823if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027824 withval=$with_dps; with_dps=$withval
27825else
27826 with_dps='yes'
27827fi
27828
27829
27830if test "$with_dps" != 'yes'; then
27831 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27832fi
27833
27834have_dps='no'
27835DPS_LIBS=''
27836if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027838$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027840$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027842$as_echo "" >&6; }
27843 failed=0
27844 passed=0
27845 PERSIST_CPPFLAGS="$CPPFLAGS"
27846 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027847 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 +000027848if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027849 passed=`expr $passed + 1`
27850else
27851 failed=`expr $failed + 1`
27852fi
27853
27854
27855 # DPS issues:
27856 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27857 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27858 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27859 # ImageMagick itself doesn't use -lXt.
27860 have_libdps='no'
27861 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027863$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027864if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027865 $as_echo_n "(cached) " >&6
27866else
27867 ac_check_lib_save_LIBS=$LIBS
27868LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027870/* end confdefs.h. */
27871
27872/* Override any GCC internal prototype to avoid an error.
27873 Use char because int might match the return type of a GCC
27874 builtin and then its argument prototype would still apply. */
27875#ifdef __cplusplus
27876extern "C"
27877#endif
27878char DPSInitialize ();
27879int
27880main ()
27881{
27882return DPSInitialize ();
27883 ;
27884 return 0;
27885}
27886_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027887if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027888 ac_cv_lib_dps_DPSInitialize=yes
27889else
cristy8b350f62009-11-15 23:12:43 +000027890 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027891fi
cristy8b350f62009-11-15 23:12:43 +000027892rm -f core conftest.err conftest.$ac_objext \
27893 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027894LIBS=$ac_check_lib_save_LIBS
27895fi
cristy8b350f62009-11-15 23:12:43 +000027896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027897$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027898if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027899 have_libdps='yes'
27900else
27901 have_libdps='no'
27902fi
27903
27904 if test "$have_libdps" != 'yes'; then
27905 # Unset cache variable so we can try again.
27906 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000027907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027908$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027909if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027910 $as_echo_n "(cached) " >&6
27911else
27912 ac_check_lib_save_LIBS=$LIBS
27913LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027915/* end confdefs.h. */
27916
27917/* Override any GCC internal prototype to avoid an error.
27918 Use char because int might match the return type of a GCC
27919 builtin and then its argument prototype would still apply. */
27920#ifdef __cplusplus
27921extern "C"
27922#endif
27923char DPSInitialize ();
27924int
27925main ()
27926{
27927return DPSInitialize ();
27928 ;
27929 return 0;
27930}
27931_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027932if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027933 ac_cv_lib_dps_DPSInitialize=yes
27934else
cristy8b350f62009-11-15 23:12:43 +000027935 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027936fi
cristy8b350f62009-11-15 23:12:43 +000027937rm -f core conftest.err conftest.$ac_objext \
27938 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027939LIBS=$ac_check_lib_save_LIBS
27940fi
cristy8b350f62009-11-15 23:12:43 +000027941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027942$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027943if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027944 have_libdps='yes'
27945else
27946 have_libdps='no'
27947fi
27948
27949 if test "$have_libdps" = 'yes'; then
27950 LIBDPS_XT='-lXt'
27951 fi
27952 fi
27953 if test "$have_libdps" = 'yes'; then
27954 passed=`expr $passed + 1`
27955 else
27956 failed=`expr $failed + 1`
27957 fi
cristy8b350f62009-11-15 23:12:43 +000027958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027959$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027960if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027961 $as_echo_n "(cached) " >&6
27962else
27963 ac_check_lib_save_LIBS=$LIBS
27964LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027966/* end confdefs.h. */
27967
27968/* Override any GCC internal prototype to avoid an error.
27969 Use char because int might match the return type of a GCC
27970 builtin and then its argument prototype would still apply. */
27971#ifdef __cplusplus
27972extern "C"
27973#endif
27974char XDPSPixelsPerPoint ();
27975int
27976main ()
27977{
27978return XDPSPixelsPerPoint ();
27979 ;
27980 return 0;
27981}
27982_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027983if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027984 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27985else
cristy8b350f62009-11-15 23:12:43 +000027986 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000027987fi
cristy8b350f62009-11-15 23:12:43 +000027988rm -f core conftest.err conftest.$ac_objext \
27989 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027990LIBS=$ac_check_lib_save_LIBS
27991fi
cristy8b350f62009-11-15 23:12:43 +000027992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000027993$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000027994if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027995 passed=`expr $passed + 1`
27996else
27997 failed=`expr $failed + 1`
27998fi
27999
cristy8b350f62009-11-15 23:12:43 +000028000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028001$as_echo_n "checking if DPS package is complete... " >&6; }
28002 if test $passed -gt 0; then
28003 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028005$as_echo "no -- some components failed test" >&6; }
28006 have_dps='no (failed tests)'
28007 CPPFLAGS="$PERSIST_CPPFLAGS"
28008 else
28009 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28010 LIBS="$DPS_LIBS $LIBS"
28011
cristy8b350f62009-11-15 23:12:43 +000028012$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028013
cristy8b350f62009-11-15 23:12:43 +000028014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028015$as_echo "yes" >&6; }
28016 have_dps='yes'
28017 fi
28018 else
cristy8b350f62009-11-15 23:12:43 +000028019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028020$as_echo "no" >&6; }
28021 CPPFLAGS=$PERSIST_CPPFLAGS
28022 fi
28023fi
cristy73bd4a52010-10-05 11:24:23 +000028024 if test "$have_dps" = 'yes'; then
28025 DPS_DELEGATE_TRUE=
28026 DPS_DELEGATE_FALSE='#'
28027else
28028 DPS_DELEGATE_TRUE='#'
28029 DPS_DELEGATE_FALSE=
28030fi
28031
cristy3ed852e2009-09-05 21:47:34 +000028032
28033
28034
28035#
28036# Check for DJVU delegate library.
28037#
28038
28039# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028040if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028041 withval=$with_djvu; with_djvu=$withval
28042else
28043 with_djvu='yes'
28044fi
28045
28046
28047if test "$with_djvu" != 'yes'; then
28048 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28049fi
28050
28051have_djvu='no'
28052DJVU_LIBS=''
28053if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028055$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028057$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028059$as_echo "" >&6; }
28060 failed=0
28061 passed=0
cristy8b350f62009-11-15 23:12:43 +000028062 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 +000028063if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028064 passed=`expr $passed + 1`
28065else
28066 failed=`expr $failed + 1`
28067fi
28068
28069
cristy8b350f62009-11-15 23:12:43 +000028070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028071$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028072if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028073 $as_echo_n "(cached) " >&6
28074else
28075 ac_check_lib_save_LIBS=$LIBS
28076LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028078/* end confdefs.h. */
28079
28080/* Override any GCC internal prototype to avoid an error.
28081 Use char because int might match the return type of a GCC
28082 builtin and then its argument prototype would still apply. */
28083#ifdef __cplusplus
28084extern "C"
28085#endif
28086char ddjvu_context_create ();
28087int
28088main ()
28089{
28090return ddjvu_context_create ();
28091 ;
28092 return 0;
28093}
28094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028095if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028096 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28097else
cristy8b350f62009-11-15 23:12:43 +000028098 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028099fi
cristy8b350f62009-11-15 23:12:43 +000028100rm -f core conftest.err conftest.$ac_objext \
28101 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028102LIBS=$ac_check_lib_save_LIBS
28103fi
cristy8b350f62009-11-15 23:12:43 +000028104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028105$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028106if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028107 passed=`expr $passed + 1`
28108else
28109 failed=`expr $failed + 1`
28110fi
28111
cristy8b350f62009-11-15 23:12:43 +000028112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028113$as_echo_n "checking if DJVU package is complete... " >&6; }
28114 if test $passed -gt 0; then
28115 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028117$as_echo "no -- some components failed test" >&6; }
28118 have_djvu='no (failed tests)'
28119 else
28120 DJVU_LIBS='-ldjvulibre'
28121 LIBS="$DJVU_LIBS $LIBS"
28122
cristy8b350f62009-11-15 23:12:43 +000028123$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028124
cristy8b350f62009-11-15 23:12:43 +000028125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028126$as_echo "yes" >&6; }
28127 have_djvu='yes'
28128 fi
28129 else
cristy8b350f62009-11-15 23:12:43 +000028130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028131$as_echo "no" >&6; }
28132 fi
28133fi
cristy73bd4a52010-10-05 11:24:23 +000028134 if test "$have_djvu" = 'yes'; then
28135 DJVU_DELEGATE_TRUE=
28136 DJVU_DELEGATE_FALSE='#'
28137else
28138 DJVU_DELEGATE_TRUE='#'
28139 DJVU_DELEGATE_FALSE=
28140fi
28141
cristy3ed852e2009-09-05 21:47:34 +000028142
28143
28144
28145#
cristy430a7312010-01-21 20:44:04 +000028146# Set DejaVu font directory.
28147#
28148
28149# Check whether --with-dejavu-font-dir was given.
28150if test "${with_dejavu_font_dir+set}" = set; then :
28151 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28152else
28153 with_dejavu_font_dir='default'
28154fi
28155
28156
28157if test "$with_dejavu_font_dir" != 'default'; then
28158 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28159fi
28160
28161
28162#
cristy3ed852e2009-09-05 21:47:34 +000028163# Check for FFTW delegate library.
28164#
28165
28166# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028167if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028168 withval=$with_fftw; with_fftw=$withval
28169else
28170 with_fftw='yes'
28171fi
28172
28173
28174if test "$with_fftw" != 'yes'; then
28175 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28176fi
28177
28178have_fftw='no'
28179FFTW_LIBS=''
28180if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028182$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000028184$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028186$as_echo "" >&6; }
28187 failed=0
28188 passed=0
cristy8b350f62009-11-15 23:12:43 +000028189 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028190if test "x$ac_cv_header_fftw3_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028191 passed=`expr $passed + 1`
28192else
28193 failed=`expr $failed + 1`
28194fi
28195
28196
cristy8b350f62009-11-15 23:12:43 +000028197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000028198$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028199if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028200 $as_echo_n "(cached) " >&6
28201else
28202 ac_check_lib_save_LIBS=$LIBS
28203LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028205/* end confdefs.h. */
28206
28207/* Override any GCC internal prototype to avoid an error.
28208 Use char because int might match the return type of a GCC
28209 builtin and then its argument prototype would still apply. */
28210#ifdef __cplusplus
28211extern "C"
28212#endif
28213char fftw_execute ();
28214int
28215main ()
28216{
28217return fftw_execute ();
28218 ;
28219 return 0;
28220}
28221_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028222if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028223 ac_cv_lib_fftw3_fftw_execute=yes
28224else
cristy8b350f62009-11-15 23:12:43 +000028225 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000028226fi
cristy8b350f62009-11-15 23:12:43 +000028227rm -f core conftest.err conftest.$ac_objext \
28228 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028229LIBS=$ac_check_lib_save_LIBS
28230fi
cristy8b350f62009-11-15 23:12:43 +000028231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000028232$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristyda16f162011-02-19 23:52:17 +000028233if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028234 passed=`expr $passed + 1`
28235else
28236 failed=`expr $failed + 1`
28237fi
28238
cristy8b350f62009-11-15 23:12:43 +000028239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028240$as_echo_n "checking if FFTW package is complete... " >&6; }
28241 if test $passed -gt 0; then
28242 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028244$as_echo "no -- some components failed test" >&6; }
28245 have_fftw='no (failed tests)'
28246 else
28247 FFTW_LIBS='-lfftw3'
28248 LIBS="$FFTW_LIBS $LIBS"
28249
cristy8b350f62009-11-15 23:12:43 +000028250$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028251
cristy8b350f62009-11-15 23:12:43 +000028252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028253$as_echo "yes" >&6; }
28254 have_fftw='yes'
28255 fi
28256 else
cristy8b350f62009-11-15 23:12:43 +000028257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028258$as_echo "no" >&6; }
28259 fi
28260fi
cristy73bd4a52010-10-05 11:24:23 +000028261 if test "$have_fftw" = 'yes'; then
28262 FFTW_DELEGATE_TRUE=
28263 FFTW_DELEGATE_FALSE='#'
28264else
28265 FFTW_DELEGATE_TRUE='#'
28266 FFTW_DELEGATE_FALSE=
28267fi
28268
cristy3ed852e2009-09-05 21:47:34 +000028269
28270
28271
28272#
28273# Check for FlashPIX delegate library.
28274#
28275
28276# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028277if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028278 withval=$with_fpx; with_fpx=$withval
28279else
28280 with_fpx='yes'
28281fi
28282
28283
28284if test "$with_fpx" != 'yes'; then
28285 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28286fi
28287
28288have_fpx='no'
28289FPX_LIBS=''
28290if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028292$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028294$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028296$as_echo "" >&6; }
28297 failed=0
28298 passed=0
28299 ac_ext=cpp
28300ac_cpp='$CXXCPP $CPPFLAGS'
28301ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28302ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28303ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28304
28305
cristy8b350f62009-11-15 23:12:43 +000028306ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028307if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028308 passed=`expr $passed + 1`
28309else
28310 failed=`expr $failed + 1`
28311fi
28312
28313
cristy8b350f62009-11-15 23:12:43 +000028314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028315$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028316if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028317 $as_echo_n "(cached) " >&6
28318else
28319 ac_check_lib_save_LIBS=$LIBS
28320LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028322/* end confdefs.h. */
28323
28324/* Override any GCC internal prototype to avoid an error.
28325 Use char because int might match the return type of a GCC
28326 builtin and then its argument prototype would still apply. */
28327#ifdef __cplusplus
28328extern "C"
28329#endif
28330char FPX_OpenImageByFilename ();
28331int
28332main ()
28333{
28334return FPX_OpenImageByFilename ();
28335 ;
28336 return 0;
28337}
28338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028339if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028340 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28341else
cristy8b350f62009-11-15 23:12:43 +000028342 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028343fi
cristy8b350f62009-11-15 23:12:43 +000028344rm -f core conftest.err conftest.$ac_objext \
28345 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028346LIBS=$ac_check_lib_save_LIBS
28347fi
cristy8b350f62009-11-15 23:12:43 +000028348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028349$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028350if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028351 passed=`expr $passed + 1`
28352else
28353 failed=`expr $failed + 1`
28354fi
28355
28356 ac_ext=c
28357ac_cpp='$CPP $CPPFLAGS'
28358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28360ac_compiler_gnu=$ac_cv_c_compiler_gnu
28361
cristy8b350f62009-11-15 23:12:43 +000028362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028363$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28364 if test $passed -gt 0; then
28365 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028367$as_echo "no -- some components failed test" >&6; }
28368 have_fpx='no (failed tests)'
28369 else
28370 FPX_LIBS='-lfpx'
28371
cristy8b350f62009-11-15 23:12:43 +000028372$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028373
cristy8b350f62009-11-15 23:12:43 +000028374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028375$as_echo "yes" >&6; }
28376 have_fpx='yes'
28377 PERLMAINCC="$CXX"
28378 fi
28379 else
cristy8b350f62009-11-15 23:12:43 +000028380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028381$as_echo "no" >&6; }
28382 fi
28383fi
cristy73bd4a52010-10-05 11:24:23 +000028384 if test "$have_fpx" = 'yes'; then
28385 FPX_DELEGATE_TRUE=
28386 FPX_DELEGATE_FALSE='#'
28387else
28388 FPX_DELEGATE_TRUE='#'
28389 FPX_DELEGATE_FALSE=
28390fi
28391
cristy3ed852e2009-09-05 21:47:34 +000028392
28393
28394
28395#
28396# Check for fontconfig delegate library.
28397#
28398
28399# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028400if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028401 withval=$with_fontconfig; with_fontconfig=$withval
28402else
28403 with_fontconfig=$have_x
28404fi
28405
28406
28407if test "$with_fontconfig" != 'yes'; then
28408 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28409fi
28410
28411have_fontconfig='no'
28412FONTCONFIG_CFLAGS=""
28413FONTCONFIG_LIBS=""
28414FONTCONFIG_PKG=""
28415if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028417$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028418
28419pkg_failed=no
28420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28421$as_echo_n "checking for FONTCONFIG... " >&6; }
28422
28423if test -n "$FONTCONFIG_CFLAGS"; then
28424 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28425 elif test -n "$PKG_CONFIG"; then
28426 if test -n "$PKG_CONFIG" && \
28427 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28428 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28429 ac_status=$?
28430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28431 test $ac_status = 0; }; then
28432 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28433else
28434 pkg_failed=yes
28435fi
28436 else
28437 pkg_failed=untried
28438fi
28439if test -n "$FONTCONFIG_LIBS"; then
28440 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28441 elif test -n "$PKG_CONFIG"; then
28442 if test -n "$PKG_CONFIG" && \
28443 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28444 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28445 ac_status=$?
28446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28447 test $ac_status = 0; }; then
28448 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28449else
28450 pkg_failed=yes
28451fi
28452 else
28453 pkg_failed=untried
28454fi
28455
28456
28457
28458if test $pkg_failed = yes; then
28459
28460if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28461 _pkg_short_errors_supported=yes
28462else
28463 _pkg_short_errors_supported=no
28464fi
28465 if test $_pkg_short_errors_supported = yes; then
28466 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28467 else
28468 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28469 fi
28470 # Put the nasty error message in config.log where it belongs
28471 echo "$FONTCONFIG_PKG_ERRORS" >&5
28472
28473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28474$as_echo "no" >&6; }
28475 have_fontconfig=no
28476elif test $pkg_failed = untried; then
28477 have_fontconfig=no
28478else
28479 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28480 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28482$as_echo "yes" >&6; }
28483 have_fontconfig=yes
28484fi
cristy8b350f62009-11-15 23:12:43 +000028485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028486$as_echo "" >&6; }
28487fi
28488
28489if test "$have_fontconfig" = 'yes'; then
28490
cristy8b350f62009-11-15 23:12:43 +000028491$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028492
cristyd09bcf92010-03-25 03:04:45 +000028493 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028494 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028495 fi
cristy3ed852e2009-09-05 21:47:34 +000028496fi
28497
cristy73bd4a52010-10-05 11:24:23 +000028498 if test "$have_fontconfig" = 'yes'; then
28499 FONTCONFIG_DELEGATE_TRUE=
28500 FONTCONFIG_DELEGATE_FALSE='#'
28501else
28502 FONTCONFIG_DELEGATE_TRUE='#'
28503 FONTCONFIG_DELEGATE_FALSE=
28504fi
28505
cristy3ed852e2009-09-05 21:47:34 +000028506
28507
28508
28509
28510#
28511# Check for freetype delegate library.
28512#
28513
28514# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028515if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028516 withval=$with_freetype; with_freetype=$withval
28517else
28518 with_freetype='yes'
28519fi
28520
28521
28522
28523if test "$with_freetype" != 'yes'; then
28524 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28525fi
28526
28527have_freetype='no'
28528FREETYPE_LIBS=''
28529if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028531$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000028533$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028535$as_echo "" >&6; }
28536 failed=0
28537 passed=0
cristy66291112009-10-03 22:44:36 +000028538 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028539 PERSIST_CPPFLAGS="$CPPFLAGS"
28540 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
28541 :
28542 else
28543 freetype_config=''
28544 for ac_prog in freetype-config
28545do
28546 # Extract the first word of "$ac_prog", so it can be a program name with args.
28547set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028549$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028550if ${ac_cv_prog_freetype_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028551 $as_echo_n "(cached) " >&6
28552else
28553 if test -n "$freetype_config"; then
28554 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
28555else
28556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28557for as_dir in $PATH
28558do
28559 IFS=$as_save_IFS
28560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28563 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000028564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028565 break 2
28566 fi
28567done
cristy8b350f62009-11-15 23:12:43 +000028568 done
cristy3ed852e2009-09-05 21:47:34 +000028569IFS=$as_save_IFS
28570
28571fi
28572fi
28573freetype_config=$ac_cv_prog_freetype_config
28574if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000028575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000028576$as_echo "$freetype_config" >&6; }
28577else
cristy8b350f62009-11-15 23:12:43 +000028578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028579$as_echo "no" >&6; }
28580fi
28581
28582
28583 test -n "$freetype_config" && break
28584done
28585 if test -n "$freetype_config"; then
28586 freetype_cflags=`$freetype_config --cflags`
28587 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000028588 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000028589 CPPFLAGS="$freetype_cflags $CPPFLAGS"
28590 fi
28591 fi
28592
28593 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000028594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000028595$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028596if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028597 $as_echo_n "(cached) " >&6
28598else
28599 ac_check_lib_save_LIBS=$LIBS
28600LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028602/* end confdefs.h. */
28603
28604/* Override any GCC internal prototype to avoid an error.
28605 Use char because int might match the return type of a GCC
28606 builtin and then its argument prototype would still apply. */
28607#ifdef __cplusplus
28608extern "C"
28609#endif
28610char FT_Init_FreeType ();
28611int
28612main ()
28613{
28614return FT_Init_FreeType ();
28615 ;
28616 return 0;
28617}
28618_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028619if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028620 ac_cv_lib_freetype_FT_Init_FreeType=yes
28621else
cristy8b350f62009-11-15 23:12:43 +000028622 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000028623fi
cristy8b350f62009-11-15 23:12:43 +000028624rm -f core conftest.err conftest.$ac_objext \
28625 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028626LIBS=$ac_check_lib_save_LIBS
28627fi
cristy8b350f62009-11-15 23:12:43 +000028628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000028629$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristyda16f162011-02-19 23:52:17 +000028630if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028631 FREETYPE_LIBS='-lfreetype'
28632fi
28633
28634 if test "$FREETYPE_LIBS" != ''; then
28635 passed=`expr $passed + 1`
28636 else
28637 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000028638 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028639 fi
28640 fi
28641
cristy8b350f62009-11-15 23:12:43 +000028642 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028643if test "x$ac_cv_header_ft2build_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028644 FT2BUILD_H='#include <ft2build.h>'
28645else
28646 ft2build=''
28647fi
28648
28649
cristy8b350f62009-11-15 23:12:43 +000028650 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28651"
cristyda16f162011-02-19 23:52:17 +000028652if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028653 have_freetype_h='yes'
28654else
28655 have_freetype_h='no'
28656fi
28657
28658
28659 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
28660 passed=`expr $passed + 1`
28661 else
28662 failed=`expr $failed + 1`
28663 CPPFLAGS="$PERSIST_CPPFLAGS"
28664 fi
28665
cristy8b350f62009-11-15 23:12:43 +000028666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028667$as_echo_n "checking if FreeType package is complete... " >&6; }
28668 if test $passed -gt 0; then
28669 if test $failed -gt 0; then
28670 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000028671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028672$as_echo "no -- some components failed test" >&6; }
28673 have_freetype='no (failed tests)'
28674 else
28675 LIBS="$FREETYPE_LIBS $LIBS"
28676
cristy8b350f62009-11-15 23:12:43 +000028677$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028678
28679 if test "$ac_cv_header_ft2build_h" = 'yes'; then
28680
cristy8b350f62009-11-15 23:12:43 +000028681$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028682
28683 fi
cristy8b350f62009-11-15 23:12:43 +000028684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028685$as_echo "yes" >&6; }
28686 have_freetype='yes'
28687 fi
28688 else
cristy8b350f62009-11-15 23:12:43 +000028689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028690$as_echo "no" >&6; }
28691 fi
28692fi
cristy73bd4a52010-10-05 11:24:23 +000028693 if test "$have_freetype" = 'yes'; then
28694 FREETYPE_DELEGATE_TRUE=
28695 FREETYPE_DELEGATE_FALSE='#'
28696else
28697 FREETYPE_DELEGATE_TRUE='#'
28698 FREETYPE_DELEGATE_FALSE=
28699fi
28700
cristy3ed852e2009-09-05 21:47:34 +000028701
28702
28703
28704
28705#
28706# Check for Ghostscript library or framework.
28707#
28708# Test for iapi.h & test for gsapi_new_instance in -lgs
28709# or -framework Ghostscript
28710
28711
28712# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028713if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028714 withval=$with_gslib; with_gslib=$withval
28715else
28716 with_gslib='no'
28717fi
28718
28719
cristyb7931f12009-09-25 10:22:21 +000028720gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028721if test "$with_gslib" != 'yes'; then
28722 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28723fi
28724
28725have_gslib='no'
28726GS_LIBS=''
28727if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028729$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028731$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028733$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000028734 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028735 failed=0
28736 passed=0
cristy8b350f62009-11-15 23:12:43 +000028737 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 +000028738if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028739 passed=`expr $passed + 1`
28740else
28741 failed=`expr $failed + 1`
28742fi
28743
28744
cristy8b350f62009-11-15 23:12:43 +000028745 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 +000028746if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028747 passed=`expr $passed + 1`
28748else
28749 failed=`expr $failed + 1`
28750fi
28751
28752
cristy73bd4a52010-10-05 11:24:23 +000028753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28754$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028755if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028756 $as_echo_n "(cached) " >&6
28757else
28758 ac_check_framework_save_LIBS=$LIBS
28759LIBS="-framework Ghostscript $LIBS"
28760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28761/* end confdefs.h. */
28762
28763/* Override any GCC internal prototype to avoid an error.
28764 Use char because int might match the return type of a GCC
28765 builtin and then its argument prototype would still apply. */
28766#ifdef __cplusplus
28767extern "C"
28768#endif
28769char gsapi_new_instance ();
28770int
28771main ()
28772{
28773return gsapi_new_instance ();
28774 ;
28775 return 0;
28776}
28777_ACEOF
28778if ac_fn_c_try_link "$LINENO"; then :
28779 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28780else
28781 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28782fi
28783rm -f core conftest.err conftest.$ac_objext \
28784 conftest$ac_exeext conftest.$ac_ext
28785LIBS=$ac_check_framework_save_LIBS
28786fi
28787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28788$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28789if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28790 framework=`expr $framework + 1`
28791else
28792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028793$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028794if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028795 $as_echo_n "(cached) " >&6
28796else
28797 ac_check_lib_save_LIBS=$LIBS
28798LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028800/* end confdefs.h. */
28801
28802/* Override any GCC internal prototype to avoid an error.
28803 Use char because int might match the return type of a GCC
28804 builtin and then its argument prototype would still apply. */
28805#ifdef __cplusplus
28806extern "C"
28807#endif
28808char gsapi_new_instance ();
28809int
28810main ()
28811{
28812return gsapi_new_instance ();
28813 ;
28814 return 0;
28815}
28816_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028817if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028818 ac_cv_lib_gs_gsapi_new_instance=yes
28819else
cristy8b350f62009-11-15 23:12:43 +000028820 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028821fi
cristy8b350f62009-11-15 23:12:43 +000028822rm -f core conftest.err conftest.$ac_objext \
28823 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028824LIBS=$ac_check_lib_save_LIBS
28825fi
cristy8b350f62009-11-15 23:12:43 +000028826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028827$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028828if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028829 passed=`expr $passed + 1`
28830else
28831 failed=`expr $failed + 1`
28832fi
cristy73bd4a52010-10-05 11:24:23 +000028833
28834fi
cristy8b350f62009-11-15 23:12:43 +000028835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028836$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28837 if test $passed -gt 0; then
28838 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028840$as_echo "no -- some components failed test" >&6; }
28841 have_gslib='no (failed tests)'
28842 else
28843 if test $framework -gt 0; then
28844 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028845 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000028846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000028847$as_echo "yes, using framework." >&6; }
28848 else
cristy8b350f62009-11-15 23:12:43 +000028849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000028850$as_echo "yes, using library." >&6; }
28851 GS_LIBS='-lgs'
28852 fi
28853 LIBS="$GS_LIBS $LIBS"
28854
cristy8b350f62009-11-15 23:12:43 +000028855$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028856
28857 have_gslib='yes'
28858 fi
28859 else
cristy8b350f62009-11-15 23:12:43 +000028860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028861$as_echo "no" >&6; }
28862 fi
28863fi
cristy73bd4a52010-10-05 11:24:23 +000028864 if test "$have_gslib" = 'yes'; then
28865 GS_DELEGATE_TRUE=
28866 GS_DELEGATE_FALSE='#'
28867else
28868 GS_DELEGATE_TRUE='#'
28869 GS_DELEGATE_FALSE=
28870fi
28871
cristy3ed852e2009-09-05 21:47:34 +000028872
28873
28874# Set default font search path
28875
28876# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028877if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028878 withval=$with_fontpath; with_fontpath=$withval
28879else
28880 with_fontpath=''
28881fi
28882
28883
28884if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28885 with_fontpath=''
28886else
28887
28888cat >>confdefs.h <<_ACEOF
28889#define MAGICK_FONT_PATH "$with_fontpath"
28890_ACEOF
28891
28892fi
28893if test "$with_fontpath=" != ''; then
28894 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28895fi
28896
28897# Set Ghostscript font directory
28898
28899# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028900if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028901 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28902else
28903 with_gs_font_dir='default'
28904fi
28905
28906
28907if test "$with_gs_font_dir" != 'default'; then
28908 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28909fi
28910
28911
28912#
28913# Check for GVC delegate library.
28914#
28915
28916# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000028917if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028918 withval=$with_gvc; with_gvc=$withval
28919else
28920 with_gvc='yes'
28921fi
28922
28923
28924if test "$with_gvc" != 'yes'; then
28925 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28926fi
28927
28928GVC_PKG=""
28929if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028931$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028932
28933pkg_failed=no
28934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28935$as_echo_n "checking for GVC... " >&6; }
28936
28937if test -n "$GVC_CFLAGS"; then
28938 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28939 elif test -n "$PKG_CONFIG"; then
28940 if test -n "$PKG_CONFIG" && \
28941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28942 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28943 ac_status=$?
28944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28945 test $ac_status = 0; }; then
28946 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28947else
28948 pkg_failed=yes
28949fi
28950 else
28951 pkg_failed=untried
28952fi
28953if test -n "$GVC_LIBS"; then
28954 pkg_cv_GVC_LIBS="$GVC_LIBS"
28955 elif test -n "$PKG_CONFIG"; then
28956 if test -n "$PKG_CONFIG" && \
28957 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28958 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28959 ac_status=$?
28960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28961 test $ac_status = 0; }; then
28962 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28963else
28964 pkg_failed=yes
28965fi
28966 else
28967 pkg_failed=untried
28968fi
28969
28970
28971
28972if test $pkg_failed = yes; then
28973
28974if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28975 _pkg_short_errors_supported=yes
28976else
28977 _pkg_short_errors_supported=no
28978fi
28979 if test $_pkg_short_errors_supported = yes; then
28980 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28981 else
28982 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28983 fi
28984 # Put the nasty error message in config.log where it belongs
28985 echo "$GVC_PKG_ERRORS" >&5
28986
28987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28988$as_echo "no" >&6; }
28989 have_gvc=no
28990elif test $pkg_failed = untried; then
28991 have_gvc=no
28992else
28993 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28994 GVC_LIBS=$pkg_cv_GVC_LIBS
28995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28996$as_echo "yes" >&6; }
28997 have_gvc=yes
28998fi
cristy8b350f62009-11-15 23:12:43 +000028999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029000$as_echo "" >&6; }
29001fi
29002
29003if test "$have_gvc" = 'yes'; then
29004
cristy8b350f62009-11-15 23:12:43 +000029005$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029006
29007 if test "$with_modules" = 'no'; then
29008 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29009 fi
29010fi
29011
cristy73bd4a52010-10-05 11:24:23 +000029012 if test "$have_gvc" = 'yes'; then
29013 GVC_DELEGATE_TRUE=
29014 GVC_DELEGATE_FALSE='#'
29015else
29016 GVC_DELEGATE_TRUE='#'
29017 GVC_DELEGATE_FALSE=
29018fi
29019
cristy3ed852e2009-09-05 21:47:34 +000029020
29021
29022
29023
29024#
29025# Check for JBIG delegate library.
29026#
29027
29028
29029# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029030if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029031 withval=$with_jbig; with_jbig=$withval
29032else
29033 with_jbig='yes'
29034fi
29035
29036
29037have_jbig='no'
29038JBIG_LIBS=''
29039if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029041$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029043$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029045$as_echo "" >&6; }
29046 failed=0
29047 passed=0
cristy8b350f62009-11-15 23:12:43 +000029048 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029049if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029050 passed=`expr $passed + 1`
29051else
29052 failed=`expr $failed + 1`
29053fi
29054
29055
cristy8b350f62009-11-15 23:12:43 +000029056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029057$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029058if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029059 $as_echo_n "(cached) " >&6
29060else
29061 ac_check_lib_save_LIBS=$LIBS
29062LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029064/* end confdefs.h. */
29065
29066/* Override any GCC internal prototype to avoid an error.
29067 Use char because int might match the return type of a GCC
29068 builtin and then its argument prototype would still apply. */
29069#ifdef __cplusplus
29070extern "C"
29071#endif
29072char jbg_dec_init ();
29073int
29074main ()
29075{
29076return jbg_dec_init ();
29077 ;
29078 return 0;
29079}
29080_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029081if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029082 ac_cv_lib_jbig_jbg_dec_init=yes
29083else
cristy8b350f62009-11-15 23:12:43 +000029084 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029085fi
cristy8b350f62009-11-15 23:12:43 +000029086rm -f core conftest.err conftest.$ac_objext \
29087 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029088LIBS=$ac_check_lib_save_LIBS
29089fi
cristy8b350f62009-11-15 23:12:43 +000029090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029091$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029092if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029093 passed=`expr $passed + 1`
29094else
29095 failed=`expr $failed + 1`
29096fi
29097
cristy8b350f62009-11-15 23:12:43 +000029098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029099$as_echo_n "checking if JBIG package is complete... " >&6; }
29100 if test $passed -gt 0; then
29101 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029103$as_echo "no -- some components failed test" >&6; }
29104 have_jbig='no (failed tests)'
29105 else
29106 JBIG_LIBS='-ljbig'
29107 LIBS="$JBIG_LIBS $LIBS"
29108
cristy8b350f62009-11-15 23:12:43 +000029109$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029110
cristy8b350f62009-11-15 23:12:43 +000029111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029112$as_echo "yes" >&6; }
29113 have_jbig='yes'
29114 fi
29115 else
cristy8b350f62009-11-15 23:12:43 +000029116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029117$as_echo "no" >&6; }
29118 fi
29119fi
cristy73bd4a52010-10-05 11:24:23 +000029120 if test "$have_jbig" = 'yes'; then
29121 JBIG_DELEGATE_TRUE=
29122 JBIG_DELEGATE_FALSE='#'
29123else
29124 JBIG_DELEGATE_TRUE='#'
29125 JBIG_DELEGATE_FALSE=
29126fi
29127
cristy3ed852e2009-09-05 21:47:34 +000029128
29129
29130
29131#
29132# Check for JPEG delegate library.
29133#
29134
29135# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029136if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029137 withval=$with_jpeg; with_jpeg=$withval
29138else
29139 with_jpeg='yes'
29140fi
29141
29142
29143if test "$with_jpeg" != 'yes'; then
29144 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29145fi
29146
29147have_jpeg='no'
29148JPEG_LIBS=''
29149if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029151$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029153$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029155$as_echo "" >&6; }
29156 failed=0
29157 passed=0
cristy8b350f62009-11-15 23:12:43 +000029158 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029159if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029160 passed=`expr $passed + 1`
29161else
29162 failed=`expr $failed + 1`
29163fi
29164
29165
cristy8b350f62009-11-15 23:12:43 +000029166 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029167if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029168 passed=`expr $passed + 1`
29169else
29170 failed=`expr $failed + 1`
29171fi
29172
29173
cristy8b350f62009-11-15 23:12:43 +000029174 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029175if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029176 passed=`expr $passed + 1`
29177else
29178 failed=`expr $failed + 1`
29179fi
29180
29181
cristy8b350f62009-11-15 23:12:43 +000029182 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029183if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029184 passed=`expr $passed + 1`
29185else
29186 failed=`expr $failed + 1`
29187fi
29188
29189
cristy8b350f62009-11-15 23:12:43 +000029190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029191$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029192if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029193 $as_echo_n "(cached) " >&6
29194else
29195 ac_check_lib_save_LIBS=$LIBS
29196LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029198/* end confdefs.h. */
29199
29200/* Override any GCC internal prototype to avoid an error.
29201 Use char because int might match the return type of a GCC
29202 builtin and then its argument prototype would still apply. */
29203#ifdef __cplusplus
29204extern "C"
29205#endif
29206char jpeg_read_header ();
29207int
29208main ()
29209{
29210return jpeg_read_header ();
29211 ;
29212 return 0;
29213}
29214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029216 ac_cv_lib_jpeg_jpeg_read_header=yes
29217else
cristy8b350f62009-11-15 23:12:43 +000029218 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029219fi
cristy8b350f62009-11-15 23:12:43 +000029220rm -f core conftest.err conftest.$ac_objext \
29221 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029222LIBS=$ac_check_lib_save_LIBS
29223fi
cristy8b350f62009-11-15 23:12:43 +000029224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029225$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029226if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029227 passed=`expr $passed + 1`
29228else
29229 failed=`expr $failed + 1`
29230fi
29231
29232
29233# Test for compatible JPEG library
29234if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029236$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029237if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029238 $as_echo_n "(cached) " >&6
29239else
cristy8b350f62009-11-15 23:12:43 +000029240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029241/* end confdefs.h. */
29242#include <stdio.h>
29243#include <stdlib.h>
29244#include <jpeglib.h>
29245
29246int
29247main ()
29248{
29249
29250#if JPEG_LIB_VERSION < 62
29251#error IJG JPEG library must be version 6b or newer!
29252#endif
29253return 0;
29254
29255 ;
29256 return 0;
29257}
29258_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029259if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029260 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29261else
cristy8b350f62009-11-15 23:12:43 +000029262 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029263fi
cristy3ed852e2009-09-05 21:47:34 +000029264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29265fi
cristy8b350f62009-11-15 23:12:43 +000029266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029267$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29268fi
cristy8b350f62009-11-15 23:12:43 +000029269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029270$as_echo_n "checking if JPEG package is complete... " >&6; }
29271 if test $passed -gt 0; then
29272 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029274$as_echo "no -- some components failed test" >&6; }
29275 have_jpeg='no (failed tests)'
29276 else
29277 JPEG_LIBS='-ljpeg'
29278 LIBS="$JPEG_LIBS $LIBS"
29279
cristy8b350f62009-11-15 23:12:43 +000029280$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029281
cristy8b350f62009-11-15 23:12:43 +000029282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029283$as_echo "yes" >&6; }
29284 have_jpeg='yes'
29285 fi
29286 else
cristy8b350f62009-11-15 23:12:43 +000029287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029288$as_echo "no" >&6; }
29289 fi
29290fi
cristy73bd4a52010-10-05 11:24:23 +000029291 if test "$have_jpeg" = 'yes'; then
29292 JPEG_DELEGATE_TRUE=
29293 JPEG_DELEGATE_FALSE='#'
29294else
29295 JPEG_DELEGATE_TRUE='#'
29296 JPEG_DELEGATE_FALSE=
29297fi
29298
cristy3ed852e2009-09-05 21:47:34 +000029299
29300
29301
29302#
29303# Check for JPEG Version 2 delegate library.
29304#
29305
29306# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029307if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029308 withval=$with_jp2; with_jp2=$withval
29309else
29310 with_jp2='yes'
29311fi
29312
29313
29314if test "$with_jp2" != 'yes'; then
29315 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29316fi
29317
29318have_jp2='no'
29319JP2_LIBS=''
29320if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029322$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029324$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029326$as_echo "" >&6; }
29327 failed=0
29328 passed=0
cristy8b350f62009-11-15 23:12:43 +000029329 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 +000029330if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029331 passed=`expr $passed + 1`
29332else
29333 failed=`expr $failed + 1`
29334fi
29335
29336
cristy8b350f62009-11-15 23:12:43 +000029337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029338$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029339if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029340 $as_echo_n "(cached) " >&6
29341else
29342 ac_check_lib_save_LIBS=$LIBS
29343LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029345/* end confdefs.h. */
29346
29347/* Override any GCC internal prototype to avoid an error.
29348 Use char because int might match the return type of a GCC
29349 builtin and then its argument prototype would still apply. */
29350#ifdef __cplusplus
29351extern "C"
29352#endif
29353char jas_stream_fopen ();
29354int
29355main ()
29356{
29357return jas_stream_fopen ();
29358 ;
29359 return 0;
29360}
29361_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029362if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029363 ac_cv_lib_jasper_jas_stream_fopen=yes
29364else
cristy8b350f62009-11-15 23:12:43 +000029365 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029366fi
cristy8b350f62009-11-15 23:12:43 +000029367rm -f core conftest.err conftest.$ac_objext \
29368 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029369LIBS=$ac_check_lib_save_LIBS
29370fi
cristy8b350f62009-11-15 23:12:43 +000029371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029372$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029373if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029374 passed=`expr $passed + 1`
29375else
29376 failed=`expr $failed + 1`
29377fi
29378
cristy8b350f62009-11-15 23:12:43 +000029379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029380$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29381 if test $passed -gt 0; then
29382 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029384$as_echo "no -- some components failed test" >&6; }
29385 have_jp2='no (failed tests)'
29386 else
29387 JP2_LIBS='-ljasper'
29388 LIBS="$JP2_LIBS $LIBS"
29389
cristy8b350f62009-11-15 23:12:43 +000029390$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029391
cristy8b350f62009-11-15 23:12:43 +000029392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029393$as_echo "yes" >&6; }
29394 have_jp2='yes'
29395 fi
29396 else
cristy8b350f62009-11-15 23:12:43 +000029397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029398$as_echo "no" >&6; }
29399 fi
29400fi
cristy73bd4a52010-10-05 11:24:23 +000029401 if test "$have_jp2" = 'yes'; then
29402 JP2_DELEGATE_TRUE=
29403 JP2_DELEGATE_FALSE='#'
29404else
29405 JP2_DELEGATE_TRUE='#'
29406 JP2_DELEGATE_FALSE=
29407fi
29408
cristy3ed852e2009-09-05 21:47:34 +000029409
29410
29411
29412#
29413# Check for LCMS delegate library.
29414#
cristy71203402010-06-18 13:12:03 +000029415# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029416
29417# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029418if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029419 withval=$with_lcms; with_lcms=$withval
29420else
29421 with_lcms='yes'
29422fi
29423
cristy71203402010-06-18 13:12:03 +000029424if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029425 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29426fi
29427
cristy71203402010-06-18 13:12:03 +000029428# Disable LCMS2.
29429
29430# Check whether --with-lcms2 was given.
29431if test "${with_lcms2+set}" = set; then :
29432 withval=$with_lcms2; with_lcms2=$withval
29433else
29434 with_lcms2='yes'
29435fi
29436
29437if test "$with_lcms2" != 'yes' ; then
29438 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29439fi
29440
29441have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029442LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029443if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029445$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29447$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029449$as_echo "" >&6; }
29450 failed=0
29451 passed=0
29452 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029453
29454 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029455 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029456if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029457 have_lcms_header='yes'
29458fi
29459
29460
29461 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029462
29463$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29464
cristy71203402010-06-18 13:12:03 +000029465 passed=`expr $passed + 1`
29466 fi
29467
29468 # Check for <lcms2/lcms2.h)
29469 if test "$have_lcms_header" != 'yes'; then
29470 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 +000029471if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029472 have_lcms_header='yes'
29473fi
29474
29475
cristy71203402010-06-18 13:12:03 +000029476 if test "$have_lcms_header" = 'yes'; then
29477 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029478
cristy71203402010-06-18 13:12:03 +000029479$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029480
cristy71203402010-06-18 13:12:03 +000029481 fi
cristyd09bcf92010-03-25 03:04:45 +000029482 fi
cristy71203402010-06-18 13:12:03 +000029483
29484 # Failed to find lcms header?
29485 if test "$have_lcms_header" != 'yes'; then
29486 failed=`expr $failed + 1`
29487 fi
29488
29489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29490$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029491if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029492 $as_echo_n "(cached) " >&6
29493else
29494 ac_check_lib_save_LIBS=$LIBS
29495LIBS="-llcms2 $LIBS"
29496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29497/* end confdefs.h. */
29498
29499/* Override any GCC internal prototype to avoid an error.
29500 Use char because int might match the return type of a GCC
29501 builtin and then its argument prototype would still apply. */
29502#ifdef __cplusplus
29503extern "C"
29504#endif
cristy71203402010-06-18 13:12:03 +000029505char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029506int
29507main ()
29508{
cristy71203402010-06-18 13:12:03 +000029509return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029510 ;
29511 return 0;
29512}
29513_ACEOF
29514if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029515 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029516else
cristy71203402010-06-18 13:12:03 +000029517 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029518fi
29519rm -f core conftest.err conftest.$ac_objext \
29520 conftest$ac_exeext conftest.$ac_ext
29521LIBS=$ac_check_lib_save_LIBS
29522fi
cristy71203402010-06-18 13:12:03 +000029523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29524$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029525if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029526 passed=`expr $passed + 1`
29527else
29528 failed=`expr $failed + 1`
29529fi
29530
cristy71203402010-06-18 13:12:03 +000029531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29532$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029533 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029534 if test $failed -gt 0; then
29535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000029536$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029537 have_lcms2='no (failed tests)'
29538 else
29539 LCMS_LIBS='-llcms2'
29540 LIBS="$LCMS_LIBS $LIBS"
29541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000029542$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029543 have_lcms2='yes'
29544 fi
cristyd09bcf92010-03-25 03:04:45 +000029545 else
cristy71203402010-06-18 13:12:03 +000029546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000029547$as_echo "no" >&6; }
29548 fi
29549fi
29550
cristy71203402010-06-18 13:12:03 +000029551#
29552# Check for LCMS v1 (1.11 or later)
29553#
29554if test $have_lcms2 = 'yes'; then
29555 with_lcms='no'
29556fi
29557
29558have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029559if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000029560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29561$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29563$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29565$as_echo "" >&6; }
29566 failed=0
29567 passed=0
29568 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029569
29570 # Check for <lcms.h>
29571 if test "$have_lcms_header" != 'yes'; then
29572 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029573if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029574 have_lcms_header='yes'
29575fi
29576
29577
cristy71203402010-06-18 13:12:03 +000029578 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029579 passed=`expr $passed + 1`
29580
cristy8b350f62009-11-15 23:12:43 +000029581$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029582
cristy71203402010-06-18 13:12:03 +000029583 fi
29584 fi
29585
29586 # Check for <lcms/lcms.h>
29587 if test "$have_lcms_header" != 'yes'; then
29588 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 +000029589if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029590 have_lcms_header='yes'
29591fi
29592
29593
cristy71203402010-06-18 13:12:03 +000029594 if test "$have_lcms_header" = 'yes'; then
29595 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029596
cristy8b350f62009-11-15 23:12:43 +000029597$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029598
cristy71203402010-06-18 13:12:03 +000029599 fi
cristy3ed852e2009-09-05 21:47:34 +000029600 fi
cristy71203402010-06-18 13:12:03 +000029601
29602 # Failed to find lcms header?
29603 if test "$have_lcms_header" != 'yes'; then
29604 failed=`expr $failed + 1`
29605 fi
29606
29607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29608$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029609if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029610 $as_echo_n "(cached) " >&6
29611else
29612 ac_check_lib_save_LIBS=$LIBS
29613LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029615/* end confdefs.h. */
29616
29617/* Override any GCC internal prototype to avoid an error.
29618 Use char because int might match the return type of a GCC
29619 builtin and then its argument prototype would still apply. */
29620#ifdef __cplusplus
29621extern "C"
29622#endif
cristy71203402010-06-18 13:12:03 +000029623char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029624int
29625main ()
29626{
cristy71203402010-06-18 13:12:03 +000029627return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029628 ;
29629 return 0;
29630}
29631_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029632if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029633 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029634else
cristy71203402010-06-18 13:12:03 +000029635 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029636fi
cristy8b350f62009-11-15 23:12:43 +000029637rm -f core conftest.err conftest.$ac_objext \
29638 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029639LIBS=$ac_check_lib_save_LIBS
29640fi
cristy71203402010-06-18 13:12:03 +000029641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29642$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029643if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029644 passed=`expr $passed + 1`
29645else
29646 failed=`expr $failed + 1`
29647fi
29648
cristy8b350f62009-11-15 23:12:43 +000029649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029650$as_echo_n "checking if LCMS package is complete... " >&6; }
29651 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029652 if test $failed -gt 0; then
29653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029654$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029655 have_lcms='no (failed tests)'
29656 else
29657 LCMS_LIBS='-llcms'
29658 LIBS="$LCMS_LIBS $LIBS"
29659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029660$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029661 have_lcms='yes'
29662 fi
cristy3ed852e2009-09-05 21:47:34 +000029663 else
cristy71203402010-06-18 13:12:03 +000029664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029665$as_echo "no" >&6; }
29666 fi
29667fi
cristy71203402010-06-18 13:12:03 +000029668
cristy73bd4a52010-10-05 11:24:23 +000029669 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29670 LCMS_DELEGATE_TRUE=
29671 LCMS_DELEGATE_FALSE='#'
29672else
29673 LCMS_DELEGATE_TRUE='#'
29674 LCMS_DELEGATE_FALSE=
29675fi
29676
cristy71203402010-06-18 13:12:03 +000029677if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29678
29679$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29680
29681fi
29682
cristy3ed852e2009-09-05 21:47:34 +000029683
29684
29685
29686#
29687# Check for the LQR (Liquid Rescale) delegate library.
29688#
29689
29690# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029691if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029692 withval=$with_lqr; with_lqr=$withval
29693else
29694 with_lqr='yes'
29695fi
29696
29697
29698if test "$with_lqr" != 'yes'; then
29699 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29700fi
29701
29702have_lqr='no'
29703LQR_CFLAGS=""
29704LQR_LIBS=""
29705LQR_PKG=""
29706if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029708$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029709
29710pkg_failed=no
29711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29712$as_echo_n "checking for LQR... " >&6; }
29713
29714if test -n "$LQR_CFLAGS"; then
29715 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29716 elif test -n "$PKG_CONFIG"; then
29717 if test -n "$PKG_CONFIG" && \
29718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29719 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29720 ac_status=$?
29721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29722 test $ac_status = 0; }; then
29723 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29724else
29725 pkg_failed=yes
29726fi
29727 else
29728 pkg_failed=untried
29729fi
29730if test -n "$LQR_LIBS"; then
29731 pkg_cv_LQR_LIBS="$LQR_LIBS"
29732 elif test -n "$PKG_CONFIG"; then
29733 if test -n "$PKG_CONFIG" && \
29734 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29735 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29736 ac_status=$?
29737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29738 test $ac_status = 0; }; then
29739 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29740else
29741 pkg_failed=yes
29742fi
29743 else
29744 pkg_failed=untried
29745fi
29746
29747
29748
29749if test $pkg_failed = yes; then
29750
29751if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29752 _pkg_short_errors_supported=yes
29753else
29754 _pkg_short_errors_supported=no
29755fi
29756 if test $_pkg_short_errors_supported = yes; then
29757 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29758 else
29759 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29760 fi
29761 # Put the nasty error message in config.log where it belongs
29762 echo "$LQR_PKG_ERRORS" >&5
29763
29764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29765$as_echo "no" >&6; }
29766 have_lqr=no
29767elif test $pkg_failed = untried; then
29768 have_lqr=no
29769else
29770 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29771 LQR_LIBS=$pkg_cv_LQR_LIBS
29772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29773$as_echo "yes" >&6; }
29774 have_lqr=yes
29775fi
cristy8b350f62009-11-15 23:12:43 +000029776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029777$as_echo "" >&6; }
29778fi
29779
29780if test "$have_lqr" = 'yes'; then
29781
cristy8b350f62009-11-15 23:12:43 +000029782$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029783
29784 CFLAGS="$LQR_CFLAGS $CFLAGS"
29785fi
29786
cristy73bd4a52010-10-05 11:24:23 +000029787 if test "$have_lqr" = 'yes'; then
29788 LQR_DELEGATE_TRUE=
29789 LQR_DELEGATE_FALSE='#'
29790else
29791 LQR_DELEGATE_TRUE='#'
29792 LQR_DELEGATE_FALSE=
29793fi
29794
cristy3ed852e2009-09-05 21:47:34 +000029795
29796
29797
29798
cristyfbb0ef02010-12-19 02:32:11 +000029799# Disable LZMA (lzma library)
29800
29801# Check whether --with-lzma was given.
29802if test "${with_lzma+set}" = set; then :
29803 withval=$with_lzma; with_lzma=$withval
29804else
29805 with_lzma='yes'
29806fi
29807
29808if test "$with_lzma" != 'yes' ; then
29809 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29810fi
29811
29812#
29813# Check for LZMA
29814#
29815have_lzma='no'
29816LZMA_LIBS=''
29817if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29819$as_echo "-------------------------------------------------------------" >&6; }
29820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29821$as_echo_n "checking for LZMA... " >&6; }
29822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29823$as_echo "" >&6; }
29824 failed=0
29825 passed=0
29826 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029827if test "x$ac_cv_header_lzma_h" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029828 passed=`expr $passed + 1`
29829else
29830 failed=`expr $failed + 1`
29831fi
29832
29833
29834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29835$as_echo_n "checking for lzma_code in -llzma... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029836if ${ac_cv_lib_lzma_lzma_code+:} false; then :
cristyfbb0ef02010-12-19 02:32:11 +000029837 $as_echo_n "(cached) " >&6
29838else
29839 ac_check_lib_save_LIBS=$LIBS
29840LIBS="-llzma $LIBS"
29841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29842/* end confdefs.h. */
29843
29844/* Override any GCC internal prototype to avoid an error.
29845 Use char because int might match the return type of a GCC
29846 builtin and then its argument prototype would still apply. */
29847#ifdef __cplusplus
29848extern "C"
29849#endif
29850char lzma_code ();
29851int
29852main ()
29853{
29854return lzma_code ();
29855 ;
29856 return 0;
29857}
29858_ACEOF
29859if ac_fn_c_try_link "$LINENO"; then :
29860 ac_cv_lib_lzma_lzma_code=yes
29861else
29862 ac_cv_lib_lzma_lzma_code=no
29863fi
29864rm -f core conftest.err conftest.$ac_objext \
29865 conftest$ac_exeext conftest.$ac_ext
29866LIBS=$ac_check_lib_save_LIBS
29867fi
29868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29869$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
cristyda16f162011-02-19 23:52:17 +000029870if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029871 passed=`expr $passed + 1`
29872else
29873 failed=`expr $failed + 1`
29874fi
29875
29876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29877$as_echo_n "checking if LZMA package is complete... " >&6; }
29878 if test $passed -gt 0; then
29879 if test $failed -gt 0; then
29880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29881$as_echo "no -- some components failed test" >&6; }
29882 have_lzma='no (failed tests)'
29883 else
29884 LZMA_LIBS='-llzma'
29885 LIBS="$LZMA_LIBS $LIBS"
29886
29887$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29888
29889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29890$as_echo "yes" >&6; }
29891 have_lzma='yes'
29892 fi
29893 else
29894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29895$as_echo "no" >&6; }
29896 fi
29897fi
29898 if test "$have_lzma" = 'yes'; then
29899 LZMA_DELEGATE_TRUE=
29900 LZMA_DELEGATE_FALSE='#'
29901else
29902 LZMA_DELEGATE_TRUE='#'
29903 LZMA_DELEGATE_FALSE=
29904fi
29905
29906
29907
29908
cristy3ed852e2009-09-05 21:47:34 +000029909#
29910# Check for the OpenEXR delegate library.
29911#
29912
29913# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000029914if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029915 withval=$with_openexr; with_openexr=$withval
29916else
29917 with_openexr='yes'
29918fi
29919
29920
29921if test "$with_openexr" != 'yes'; then
29922 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29923fi
29924
29925have_openexr='no'
29926OPENEXR_CFLAGS=""
29927OPENEXR_LIBS=""
29928OPENEXR_PKG=""
29929if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029931$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029932
29933pkg_failed=no
29934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29935$as_echo_n "checking for OPENEXR... " >&6; }
29936
29937if test -n "$OPENEXR_CFLAGS"; then
29938 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29939 elif test -n "$PKG_CONFIG"; then
29940 if test -n "$PKG_CONFIG" && \
29941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29942 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29943 ac_status=$?
29944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29945 test $ac_status = 0; }; then
29946 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29947else
29948 pkg_failed=yes
29949fi
29950 else
29951 pkg_failed=untried
29952fi
29953if test -n "$OPENEXR_LIBS"; then
29954 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29955 elif test -n "$PKG_CONFIG"; then
29956 if test -n "$PKG_CONFIG" && \
29957 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29958 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29959 ac_status=$?
29960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29961 test $ac_status = 0; }; then
29962 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29963else
29964 pkg_failed=yes
29965fi
29966 else
29967 pkg_failed=untried
29968fi
29969
29970
29971
29972if test $pkg_failed = yes; then
29973
29974if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29975 _pkg_short_errors_supported=yes
29976else
29977 _pkg_short_errors_supported=no
29978fi
29979 if test $_pkg_short_errors_supported = yes; then
29980 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29981 else
29982 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29983 fi
29984 # Put the nasty error message in config.log where it belongs
29985 echo "$OPENEXR_PKG_ERRORS" >&5
29986
29987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29988$as_echo "no" >&6; }
29989 have_openexr=no
29990elif test $pkg_failed = untried; then
29991 have_openexr=no
29992else
29993 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29994 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29996$as_echo "yes" >&6; }
29997 have_openexr=yes
29998fi
cristy8b350f62009-11-15 23:12:43 +000029999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030000$as_echo "" >&6; }
30001fi
30002
30003if test "$have_openexr" = 'yes'; then
30004
cristy8b350f62009-11-15 23:12:43 +000030005$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030006
30007 if test "$with_modules" = 'no'; then
30008 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30009 fi
30010fi
30011
cristy73bd4a52010-10-05 11:24:23 +000030012 if test "$have_openexr" = 'yes'; then
30013 OPENEXR_DELEGATE_TRUE=
30014 OPENEXR_DELEGATE_FALSE='#'
30015else
30016 OPENEXR_DELEGATE_TRUE='#'
30017 OPENEXR_DELEGATE_FALSE=
30018fi
30019
cristy3ed852e2009-09-05 21:47:34 +000030020
30021
30022
30023
30024#
30025# Check for PNG delegate library.
30026#
30027
30028# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030029if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030030 withval=$with_png; with_png=$withval
30031else
30032 with_png='yes'
30033fi
30034
30035
30036if test "$with_png" != 'yes'; then
30037 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30038fi
30039
30040have_png='no'
30041PNG_LIBS=''
cristy64877302011-08-23 19:10:31 +000030042
cristy3ed852e2009-09-05 21:47:34 +000030043if test "$with_png" != 'no'; then
cristy64877302011-08-23 19:10:31 +000030044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030045$as_echo "-------------------------------------------------------------" >&6; }
cristy64877302011-08-23 19:10:31 +000030046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30047$as_echo_n "checking for PNG support ... " >&6; }
30048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030049$as_echo "" >&6; }
cristy64877302011-08-23 19:10:31 +000030050 failed=0
30051 passed=0
30052 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030053if test "x$ac_cv_header_png_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030054 passed=`expr $passed + 1`
30055else
30056 failed=`expr $failed + 1`
30057fi
30058
30059
cristy64877302011-08-23 19:10:31 +000030060
30061 if test $passed -gt 0; then
30062 for var in 5 4 2 '' ; do
30063 if test "x${var}" == 'x' ; then
30064 pnglib='png'
30065 else
30066 pnglib="png1${var}"
30067 fi
30068 if test "$have_png" == 'no' ; then
30069
30070# Test for compatible LIBPNG library
30071 failed=0
30072 passed=0
30073 if test "$with_png" == 'yes' -o "$with_png" == "libpng1${var}" ; then
30074 if test "${pnglib}" != 'png' ; then
30075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30076$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30078/* end confdefs.h. */
30079#include <stdio.h>
30080#include <stdlib.h>
30081#include <png.h>
30082
30083int
30084main ()
30085{
30086
30087#if PNG_LIBPNG_VER_MINOR != ${var}
30088#error LIBPNG library must be version 1${var}!
30089Kaboom, Kaboom
30090#endif
30091return 0;
30092
30093 ;
30094 return 0;
30095}
30096_ACEOF
30097if ac_fn_c_try_compile "$LINENO"; then :
30098 ac_cv_libpng_ok='yes'
30099else
30100 ac_cv_libpng_ok='no'
30101fi
30102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30103 if test "$ac_cv_libpng_ok" = 'yes' ; then
30104 passed=`expr $passed + 1`
30105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30106$as_echo "yes" >&6; }
30107 else
30108 failed=`expr $failed + 1`
30109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30110$as_echo "no" >&6; }
30111 fi
30112 else
30113 passed=`expr $passed + 1`
30114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30115$as_echo "yes" >&6; }
30116 fi
30117 fi
30118
30119 if test $passed -gt 0 -a $failed -le 0; then
30120 if test "1${var}" = '15' ; then
30121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30122$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30123if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30124 $as_echo_n "(cached) " >&6
30125else
30126 ac_check_lib_save_LIBS=$LIBS
30127LIBS="-lpng15 $LIBS"
30128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30129/* 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
30137char png_get_io_ptr ();
30138int
30139main ()
30140{
30141return png_get_io_ptr ();
30142 ;
30143 return 0;
30144}
30145_ACEOF
30146if ac_fn_c_try_link "$LINENO"; then :
30147 ac_cv_lib_png15_png_get_io_ptr=yes
30148else
30149 ac_cv_lib_png15_png_get_io_ptr=no
30150fi
30151rm -f core conftest.err conftest.$ac_objext \
30152 conftest$ac_exeext conftest.$ac_ext
30153LIBS=$ac_check_lib_save_LIBS
30154fi
30155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30156$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30157if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30158 passed=`expr $passed + 1`
30159else
30160 failed=`expr $failed + 1`
30161fi
30162
30163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30164$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30165if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30166 $as_echo_n "(cached) " >&6
30167else
30168 ac_check_lib_save_LIBS=$LIBS
30169LIBS="-lpng15 $LIBS"
30170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30171/* end confdefs.h. */
30172
30173/* Override any GCC internal prototype to avoid an error.
30174 Use char because int might match the return type of a GCC
30175 builtin and then its argument prototype would still apply. */
30176#ifdef __cplusplus
30177extern "C"
30178#endif
30179char png_longjmp ();
30180int
30181main ()
30182{
30183return png_longjmp ();
30184 ;
30185 return 0;
30186}
30187_ACEOF
30188if ac_fn_c_try_link "$LINENO"; then :
30189 ac_cv_lib_png15_png_longjmp=yes
30190else
30191 ac_cv_lib_png15_png_longjmp=no
30192fi
30193rm -f core conftest.err conftest.$ac_objext \
30194 conftest$ac_exeext conftest.$ac_ext
30195LIBS=$ac_check_lib_save_LIBS
30196fi
30197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30198$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30199if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30200 passed=`expr $passed + 1`
30201else
30202 failed=`expr $failed + 1`
30203fi
30204
30205 fi
30206 if test "1${var}" = '14' ; then
30207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30208$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30209if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30210 $as_echo_n "(cached) " >&6
30211else
30212 ac_check_lib_save_LIBS=$LIBS
30213LIBS="-lpng14 $LIBS"
30214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30215/* end confdefs.h. */
30216
30217/* Override any GCC internal prototype to avoid an error.
30218 Use char because int might match the return type of a GCC
30219 builtin and then its argument prototype would still apply. */
30220#ifdef __cplusplus
30221extern "C"
30222#endif
30223char png_get_io_ptr ();
30224int
30225main ()
30226{
30227return png_get_io_ptr ();
30228 ;
30229 return 0;
30230}
30231_ACEOF
30232if ac_fn_c_try_link "$LINENO"; then :
30233 ac_cv_lib_png14_png_get_io_ptr=yes
30234else
30235 ac_cv_lib_png14_png_get_io_ptr=no
30236fi
30237rm -f core conftest.err conftest.$ac_objext \
30238 conftest$ac_exeext conftest.$ac_ext
30239LIBS=$ac_check_lib_save_LIBS
30240fi
30241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30242$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30243if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30244 passed=`expr $passed + 1`
30245else
30246 failed=`expr $failed + 1`
30247fi
30248
30249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30250$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30251if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30252 $as_echo_n "(cached) " >&6
30253else
30254 ac_check_lib_save_LIBS=$LIBS
30255LIBS="-lpng14 $LIBS"
30256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30257/* end confdefs.h. */
30258
30259/* Override any GCC internal prototype to avoid an error.
30260 Use char because int might match the return type of a GCC
30261 builtin and then its argument prototype would still apply. */
30262#ifdef __cplusplus
30263extern "C"
30264#endif
30265char png_get_io_state ();
30266int
30267main ()
30268{
30269return png_get_io_state ();
30270 ;
30271 return 0;
30272}
30273_ACEOF
30274if ac_fn_c_try_link "$LINENO"; then :
30275 ac_cv_lib_png14_png_get_io_state=yes
30276else
30277 ac_cv_lib_png14_png_get_io_state=no
30278fi
30279rm -f core conftest.err conftest.$ac_objext \
30280 conftest$ac_exeext conftest.$ac_ext
30281LIBS=$ac_check_lib_save_LIBS
30282fi
30283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30284$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30285if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30286 passed=`expr $passed + 1`
30287else
30288 failed=`expr $failed + 1`
30289fi
30290
30291 fi
30292 if test "1${var}" = '12' ; then
30293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30294$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30295if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30296 $as_echo_n "(cached) " >&6
30297else
30298 ac_check_lib_save_LIBS=$LIBS
30299LIBS="-lpng12 $LIBS"
30300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30301/* end confdefs.h. */
30302
30303/* Override any GCC internal prototype to avoid an error.
30304 Use char because int might match the return type of a GCC
30305 builtin and then its argument prototype would still apply. */
30306#ifdef __cplusplus
30307extern "C"
30308#endif
30309char png_get_io_ptr ();
30310int
30311main ()
30312{
30313return png_get_io_ptr ();
30314 ;
30315 return 0;
30316}
30317_ACEOF
30318if ac_fn_c_try_link "$LINENO"; then :
30319 ac_cv_lib_png12_png_get_io_ptr=yes
30320else
30321 ac_cv_lib_png12_png_get_io_ptr=no
30322fi
30323rm -f core conftest.err conftest.$ac_objext \
30324 conftest$ac_exeext conftest.$ac_ext
30325LIBS=$ac_check_lib_save_LIBS
30326fi
30327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30328$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30329if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30330 passed=`expr $passed + 1`
30331else
30332 failed=`expr $failed + 1`
30333fi
30334
30335 fi
30336 if test "1${var}" = '1' ; then
30337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000030338$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030339if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030340 $as_echo_n "(cached) " >&6
30341else
30342 ac_check_lib_save_LIBS=$LIBS
30343LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030345/* end confdefs.h. */
30346
30347/* Override any GCC internal prototype to avoid an error.
30348 Use char because int might match the return type of a GCC
30349 builtin and then its argument prototype would still apply. */
30350#ifdef __cplusplus
30351extern "C"
30352#endif
30353char png_get_io_ptr ();
30354int
30355main ()
30356{
30357return png_get_io_ptr ();
30358 ;
30359 return 0;
30360}
30361_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030362if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030363 ac_cv_lib_png_png_get_io_ptr=yes
30364else
cristy8b350f62009-11-15 23:12:43 +000030365 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000030366fi
cristy8b350f62009-11-15 23:12:43 +000030367rm -f core conftest.err conftest.$ac_objext \
30368 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030369LIBS=$ac_check_lib_save_LIBS
30370fi
cristy8b350f62009-11-15 23:12:43 +000030371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000030372$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristyda16f162011-02-19 23:52:17 +000030373if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030374 passed=`expr $passed + 1`
30375else
30376 failed=`expr $failed + 1`
30377fi
30378
cristy64877302011-08-23 19:10:31 +000030379 fi
30380 if test $passed -gt 0 -a $failed -le 0 ; then
30381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30382$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30383 if test $passed -gt 0 ; then
30384 if test $failed -gt 0 ; then
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030386$as_echo "no -- some components failed test" >&6; }
cristy64877302011-08-23 19:10:31 +000030387 have_png='no (failed tests)'
30388 else
30389 PNG_LIBS="-l${pnglib}"
30390 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030391
cristy8b350f62009-11-15 23:12:43 +000030392$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030393
cristy64877302011-08-23 19:10:31 +000030394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030395$as_echo "yes" >&6; }
cristy64877302011-08-23 19:10:31 +000030396 have_png='yes'
30397 fi
30398 fi
30399 fi
cristy3ed852e2009-09-05 21:47:34 +000030400 fi
cristy64877302011-08-23 19:10:31 +000030401 fi
30402 done
30403 fi
cristy3ed852e2009-09-05 21:47:34 +000030404fi
cristy64877302011-08-23 19:10:31 +000030405
cristy73bd4a52010-10-05 11:24:23 +000030406 if test "$have_png" = 'yes'; then
30407 PNG_DELEGATE_TRUE=
30408 PNG_DELEGATE_FALSE='#'
30409else
30410 PNG_DELEGATE_TRUE='#'
30411 PNG_DELEGATE_FALSE=
30412fi
30413
cristy3ed852e2009-09-05 21:47:34 +000030414
30415
30416
30417#
30418# Check for RSVG delegate library.
30419#
30420
30421# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030422if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030423 withval=$with_rsvg; with_rsvg=$withval
30424else
30425 with_rsvg=$have_x
30426fi
30427
30428
30429if test "$with_rsvg" != 'yes'; then
30430 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30431fi
30432
30433have_rsvg='no'
30434have_cairo='no'
30435RSVG_CFLAGS=""
30436RSVG_LIBS=""
30437RSVG_PKG=""
30438if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000030439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030440$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030441
30442pkg_failed=no
30443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30444$as_echo_n "checking for RSVG... " >&6; }
30445
30446if test -n "$RSVG_CFLAGS"; then
30447 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30448 elif test -n "$PKG_CONFIG"; then
30449 if test -n "$PKG_CONFIG" && \
30450 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30451 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30452 ac_status=$?
30453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30454 test $ac_status = 0; }; then
30455 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30456else
30457 pkg_failed=yes
30458fi
30459 else
30460 pkg_failed=untried
30461fi
30462if test -n "$RSVG_LIBS"; then
30463 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30464 elif test -n "$PKG_CONFIG"; then
30465 if test -n "$PKG_CONFIG" && \
30466 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30467 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30468 ac_status=$?
30469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30470 test $ac_status = 0; }; then
30471 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30472else
30473 pkg_failed=yes
30474fi
30475 else
30476 pkg_failed=untried
30477fi
30478
30479
30480
30481if test $pkg_failed = yes; then
30482
30483if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30484 _pkg_short_errors_supported=yes
30485else
30486 _pkg_short_errors_supported=no
30487fi
30488 if test $_pkg_short_errors_supported = yes; then
30489 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30490 else
30491 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30492 fi
30493 # Put the nasty error message in config.log where it belongs
30494 echo "$RSVG_PKG_ERRORS" >&5
30495
30496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30497$as_echo "no" >&6; }
30498 have_rsvg=no
30499elif test $pkg_failed = untried; then
30500 have_rsvg=no
30501else
30502 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30503 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30505$as_echo "yes" >&6; }
30506 have_rsvg=yes
30507fi
cristy8b350f62009-11-15 23:12:43 +000030508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030509$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030510
30511pkg_failed=no
30512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30513$as_echo_n "checking for CAIRO_SVG... " >&6; }
30514
30515if test -n "$CAIRO_SVG_CFLAGS"; then
30516 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30517 elif test -n "$PKG_CONFIG"; then
30518 if test -n "$PKG_CONFIG" && \
30519 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30520 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30521 ac_status=$?
30522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30523 test $ac_status = 0; }; then
30524 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30525else
30526 pkg_failed=yes
30527fi
30528 else
30529 pkg_failed=untried
30530fi
30531if test -n "$CAIRO_SVG_LIBS"; then
30532 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30533 elif test -n "$PKG_CONFIG"; then
30534 if test -n "$PKG_CONFIG" && \
30535 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30536 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30537 ac_status=$?
30538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30539 test $ac_status = 0; }; then
30540 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30541else
30542 pkg_failed=yes
30543fi
30544 else
30545 pkg_failed=untried
30546fi
30547
30548
30549
30550if test $pkg_failed = yes; then
30551
30552if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30553 _pkg_short_errors_supported=yes
30554else
30555 _pkg_short_errors_supported=no
30556fi
30557 if test $_pkg_short_errors_supported = yes; then
30558 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30559 else
30560 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30561 fi
30562 # Put the nasty error message in config.log where it belongs
30563 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30564
30565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30566$as_echo "no" >&6; }
30567 have_cairo=no
30568elif test $pkg_failed = untried; then
30569 have_cairo=no
30570else
30571 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30572 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30574$as_echo "yes" >&6; }
30575 have_cairo=yes
30576fi
cristy8b350f62009-11-15 23:12:43 +000030577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030578$as_echo "" >&6; }
30579fi
30580
30581if test "$have_rsvg" = 'yes'; then
30582
cristy8b350f62009-11-15 23:12:43 +000030583$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030584
30585 if test "$with_modules" = 'no'; then
30586 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30587 fi
30588fi
30589
30590if test "$have_cairo" = 'yes'; then
30591
cristy8b350f62009-11-15 23:12:43 +000030592$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030593
30594 if test "$with_modules" = 'no'; then
30595 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30596 fi
30597fi
30598
cristy73bd4a52010-10-05 11:24:23 +000030599 if test "$have_rsvg" = 'yes'; then
30600 RSVG_DELEGATE_TRUE=
30601 RSVG_DELEGATE_FALSE='#'
30602else
30603 RSVG_DELEGATE_TRUE='#'
30604 RSVG_DELEGATE_FALSE=
30605fi
30606
30607 if test "$have_cairo" = 'yes'; then
30608 CAIRO_DELEGATE_TRUE=
30609 CAIRO_DELEGATE_FALSE='#'
30610else
30611 CAIRO_DELEGATE_TRUE='#'
30612 CAIRO_DELEGATE_FALSE=
30613fi
30614
cristy3ed852e2009-09-05 21:47:34 +000030615
30616
30617
30618
30619#
30620# Check for TIFF delegate library.
30621#
30622
30623# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000030624if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030625 withval=$with_tiff; with_tiff=$withval
30626else
30627 with_tiff='yes'
30628fi
30629
30630
30631if test "$with_tiff" != 'yes'; then
30632 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
30633fi
30634
30635have_tiff='no'
30636TIFF_LIBS=''
30637if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030639$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030641$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030643$as_echo "" >&6; }
30644 failed=0
30645 passed=0
cristy8b350f62009-11-15 23:12:43 +000030646 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030647if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030648 passed=`expr $passed + 1`
30649else
30650 failed=`expr $failed + 1`
30651fi
30652
30653
cristy8b350f62009-11-15 23:12:43 +000030654 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030655if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030656 passed=`expr $passed + 1`
30657else
30658 failed=`expr $failed + 1`
30659fi
30660
30661
cristy8b350f62009-11-15 23:12:43 +000030662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030663$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030664if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030665 $as_echo_n "(cached) " >&6
30666else
30667 ac_check_lib_save_LIBS=$LIBS
30668LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030670/* end confdefs.h. */
30671
30672/* Override any GCC internal prototype to avoid an error.
30673 Use char because int might match the return type of a GCC
30674 builtin and then its argument prototype would still apply. */
30675#ifdef __cplusplus
30676extern "C"
30677#endif
30678char TIFFOpen ();
30679int
30680main ()
30681{
30682return TIFFOpen ();
30683 ;
30684 return 0;
30685}
30686_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030687if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030688 ac_cv_lib_tiff_TIFFOpen=yes
30689else
cristy8b350f62009-11-15 23:12:43 +000030690 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030691fi
cristy8b350f62009-11-15 23:12:43 +000030692rm -f core conftest.err conftest.$ac_objext \
30693 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030694LIBS=$ac_check_lib_save_LIBS
30695fi
cristy8b350f62009-11-15 23:12:43 +000030696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030697$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030698if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030699 passed=`expr $passed + 1`
30700else
30701 failed=`expr $failed + 1`
30702fi
30703
cristy8b350f62009-11-15 23:12:43 +000030704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030705$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030706if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030707 $as_echo_n "(cached) " >&6
30708else
30709 ac_check_lib_save_LIBS=$LIBS
30710LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030712/* end confdefs.h. */
30713
30714/* Override any GCC internal prototype to avoid an error.
30715 Use char because int might match the return type of a GCC
30716 builtin and then its argument prototype would still apply. */
30717#ifdef __cplusplus
30718extern "C"
30719#endif
30720char TIFFClientOpen ();
30721int
30722main ()
30723{
30724return TIFFClientOpen ();
30725 ;
30726 return 0;
30727}
30728_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030729if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030730 ac_cv_lib_tiff_TIFFClientOpen=yes
30731else
cristy8b350f62009-11-15 23:12:43 +000030732 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030733fi
cristy8b350f62009-11-15 23:12:43 +000030734rm -f core conftest.err conftest.$ac_objext \
30735 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030736LIBS=$ac_check_lib_save_LIBS
30737fi
cristy8b350f62009-11-15 23:12:43 +000030738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030739$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030740if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030741 passed=`expr $passed + 1`
30742else
30743 failed=`expr $failed + 1`
30744fi
30745
cristyb97f1002010-07-26 14:02:57 +000030746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
30747$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030748if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000030749 $as_echo_n "(cached) " >&6
30750else
30751 ac_check_lib_save_LIBS=$LIBS
30752LIBS="-ltiff $LIBS"
30753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30754/* end confdefs.h. */
30755
30756/* Override any GCC internal prototype to avoid an error.
30757 Use char because int might match the return type of a GCC
30758 builtin and then its argument prototype would still apply. */
30759#ifdef __cplusplus
30760extern "C"
30761#endif
30762char TIFFIsBigEndian ();
30763int
30764main ()
30765{
30766return TIFFIsBigEndian ();
30767 ;
30768 return 0;
30769}
30770_ACEOF
30771if ac_fn_c_try_link "$LINENO"; then :
30772 ac_cv_lib_tiff_TIFFIsBigEndian=yes
30773else
30774 ac_cv_lib_tiff_TIFFIsBigEndian=no
30775fi
30776rm -f core conftest.err conftest.$ac_objext \
30777 conftest$ac_exeext conftest.$ac_ext
30778LIBS=$ac_check_lib_save_LIBS
30779fi
30780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
30781$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000030782if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000030783 passed=`expr $passed + 1`
30784else
30785 failed=`expr $failed + 1`
30786fi
30787
cristy8b350f62009-11-15 23:12:43 +000030788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030789$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030790if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030791 $as_echo_n "(cached) " >&6
30792else
30793 ac_check_lib_save_LIBS=$LIBS
30794LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030796/* end confdefs.h. */
30797
30798/* Override any GCC internal prototype to avoid an error.
30799 Use char because int might match the return type of a GCC
30800 builtin and then its argument prototype would still apply. */
30801#ifdef __cplusplus
30802extern "C"
30803#endif
30804char TIFFIsByteSwapped ();
30805int
30806main ()
30807{
30808return TIFFIsByteSwapped ();
30809 ;
30810 return 0;
30811}
30812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030813if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030814 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
30815else
cristy8b350f62009-11-15 23:12:43 +000030816 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000030817fi
cristy8b350f62009-11-15 23:12:43 +000030818rm -f core conftest.err conftest.$ac_objext \
30819 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030820LIBS=$ac_check_lib_save_LIBS
30821fi
cristy8b350f62009-11-15 23:12:43 +000030822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000030823$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000030824if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030825 passed=`expr $passed + 1`
30826else
30827 failed=`expr $failed + 1`
30828fi
30829
cristy8b350f62009-11-15 23:12:43 +000030830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030831$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030832if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030833 $as_echo_n "(cached) " >&6
30834else
30835 ac_check_lib_save_LIBS=$LIBS
30836LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030838/* end confdefs.h. */
30839
30840/* Override any GCC internal prototype to avoid an error.
30841 Use char because int might match the return type of a GCC
30842 builtin and then its argument prototype would still apply. */
30843#ifdef __cplusplus
30844extern "C"
30845#endif
30846char TIFFReadRGBATile ();
30847int
30848main ()
30849{
30850return TIFFReadRGBATile ();
30851 ;
30852 return 0;
30853}
30854_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030855if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030856 ac_cv_lib_tiff_TIFFReadRGBATile=yes
30857else
cristy8b350f62009-11-15 23:12:43 +000030858 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000030859fi
cristy8b350f62009-11-15 23:12:43 +000030860rm -f core conftest.err conftest.$ac_objext \
30861 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030862LIBS=$ac_check_lib_save_LIBS
30863fi
cristy8b350f62009-11-15 23:12:43 +000030864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000030865$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000030866if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030867 passed=`expr $passed + 1`
30868else
30869 failed=`expr $failed + 1`
30870fi
30871
cristy8b350f62009-11-15 23:12:43 +000030872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030873$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030874if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030875 $as_echo_n "(cached) " >&6
30876else
30877 ac_check_lib_save_LIBS=$LIBS
30878LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030880/* end confdefs.h. */
30881
30882/* Override any GCC internal prototype to avoid an error.
30883 Use char because int might match the return type of a GCC
30884 builtin and then its argument prototype would still apply. */
30885#ifdef __cplusplus
30886extern "C"
30887#endif
30888char TIFFReadRGBAStrip ();
30889int
30890main ()
30891{
30892return TIFFReadRGBAStrip ();
30893 ;
30894 return 0;
30895}
30896_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030897if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030898 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
30899else
cristy8b350f62009-11-15 23:12:43 +000030900 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000030901fi
cristy8b350f62009-11-15 23:12:43 +000030902rm -f core conftest.err conftest.$ac_objext \
30903 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030904LIBS=$ac_check_lib_save_LIBS
30905fi
cristy8b350f62009-11-15 23:12:43 +000030906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000030907$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000030908if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030909 passed=`expr $passed + 1`
30910else
30911 failed=`expr $failed + 1`
30912fi
30913
cristy8b350f62009-11-15 23:12:43 +000030914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030915$as_echo_n "checking if TIFF package is complete... " >&6; }
30916 if test $passed -gt 0; then
30917 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000030918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030919$as_echo "no -- some components failed test" >&6; }
30920 have_tiff='no (failed tests)'
30921 else
30922 TIFF_LIBS='-ltiff'
30923 LIBS="$TIFF_LIBS $LIBS"
30924
cristy8b350f62009-11-15 23:12:43 +000030925$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030926
cristy8b350f62009-11-15 23:12:43 +000030927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030928$as_echo "yes" >&6; }
30929 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000030930 for ac_header in tiffconf.h
30931do :
30932 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030933if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030934 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030935#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000030936_ACEOF
30937
30938fi
30939
30940done
30941
cristy8b350f62009-11-15 23:12:43 +000030942 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000030943 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
30944 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000030945do :
30946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30947ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000030948if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000030949 cat >>confdefs.h <<_ACEOF
30950#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30951_ACEOF
30952
30953fi
30954done
30955
30956 fi
30957 else
cristy8b350f62009-11-15 23:12:43 +000030958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030959$as_echo "no" >&6; }
30960 fi
30961fi
cristy73bd4a52010-10-05 11:24:23 +000030962 if test "$have_tiff" = 'yes'; then
30963 TIFF_DELEGATE_TRUE=
30964 TIFF_DELEGATE_FALSE='#'
30965else
30966 TIFF_DELEGATE_TRUE='#'
30967 TIFF_DELEGATE_FALSE=
30968fi
30969
cristy3ed852e2009-09-05 21:47:34 +000030970
30971
30972
30973#
cristyb1860752011-03-14 00:27:46 +000030974# Check for WEBP delegate library.
30975#
30976
30977# Check whether --with-webp was given.
30978if test "${with_webp+set}" = set; then :
30979 withval=$with_webp; with_webp=$withval
30980else
30981 with_webp='yes'
30982fi
30983
30984
30985if test "$with_webp" != 'yes'; then
30986 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
30987fi
30988
30989have_webp='no'
30990WEBP_LIBS=''
30991if test "$with_webp" != 'no'; then
30992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30993$as_echo "-------------------------------------------------------------" >&6; }
30994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
30995$as_echo_n "checking for WEBP... " >&6; }
30996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30997$as_echo "" >&6; }
30998 failed=0
30999 passed=0
31000 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31001if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31002 passed=`expr $passed + 1`
31003else
31004 failed=`expr $failed + 1`
31005fi
31006
31007
31008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31009$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31010if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31011 $as_echo_n "(cached) " >&6
31012else
31013 ac_check_lib_save_LIBS=$LIBS
31014LIBS="-lwebp $LIBS"
31015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31016/* end confdefs.h. */
31017
31018/* Override any GCC internal prototype to avoid an error.
31019 Use char because int might match the return type of a GCC
31020 builtin and then its argument prototype would still apply. */
31021#ifdef __cplusplus
31022extern "C"
31023#endif
31024char WebPDecodeRGB ();
31025int
31026main ()
31027{
31028return WebPDecodeRGB ();
31029 ;
31030 return 0;
31031}
31032_ACEOF
31033if ac_fn_c_try_link "$LINENO"; then :
31034 ac_cv_lib_webp_WebPDecodeRGB=yes
31035else
31036 ac_cv_lib_webp_WebPDecodeRGB=no
31037fi
31038rm -f core conftest.err conftest.$ac_objext \
31039 conftest$ac_exeext conftest.$ac_ext
31040LIBS=$ac_check_lib_save_LIBS
31041fi
31042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31043$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31044if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31045 passed=`expr $passed + 1`
31046else
31047 failed=`expr $failed + 1`
31048fi
31049
31050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31051$as_echo_n "checking if WEBP package is complete... " >&6; }
31052 if test $passed -gt 0; then
31053 if test $failed -gt 0; then
31054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31055$as_echo "no -- some components failed test" >&6; }
31056 have_webp='no (failed tests)'
31057 else
31058 WEBP_LIBS='-lwebp'
31059 LIBS="$WEBP_LIBS $LIBS"
31060
31061$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31062
31063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31064$as_echo "yes" >&6; }
31065 have_webp='yes'
31066 fi
31067 else
31068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31069$as_echo "no" >&6; }
31070 fi
31071fi
31072 if test "$have_webp" = 'yes'; then
31073 WEBP_DELEGATE_TRUE=
31074 WEBP_DELEGATE_FALSE='#'
31075else
31076 WEBP_DELEGATE_TRUE='#'
31077 WEBP_DELEGATE_FALSE=
31078fi
31079
31080
31081
31082
31083#
cristy3ed852e2009-09-05 21:47:34 +000031084# Set Windows font directory.
31085#
31086
31087# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031088if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031089 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31090else
31091 with_windows_font_dir=''
31092fi
31093
31094if test "$with_windows_font_dir" != '' ; then
31095 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31096fi
31097
31098
31099#
31100# Check for WMF delegate library.
31101#
31102
31103# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031104if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031105 withval=$with_wmf; with_wmf=$withval
31106else
cristy8d63d1d2010-01-06 20:38:37 +000031107 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031108fi
31109
31110
31111if test "$with_wmf" != 'yes'; then
31112 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31113fi
31114
31115have_wmf='no'
31116WMF_LIBS=''
cristy9243a2d2011-08-22 17:32:32 +000031117WMF_LIBS_DEPS=''
31118OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031119if test "$with_wmf" != 'no'; then
cristy9243a2d2011-08-22 17:32:32 +000031120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031121$as_echo "-------------------------------------------------------------" >&6; }
cristy9243a2d2011-08-22 17:32:32 +000031122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031123$as_echo_n "checking for WMF... " >&6; }
cristy9243a2d2011-08-22 17:32:32 +000031124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031125$as_echo "" >&6; }
cristy9243a2d2011-08-22 17:32:32 +000031126 have_libwmf='no'
31127 have_libwmflite='no'
31128 have_libwmf_ipa_h='no'
31129 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31130"
31131if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31132 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031133fi
31134
31135
cristy9243a2d2011-08-22 17:32:32 +000031136 if test "$have_libwmf_ipa_h" = 'yes'; then
31137
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31139$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31140if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031141 $as_echo_n "(cached) " >&6
31142else
31143 ac_check_lib_save_LIBS=$LIBS
cristy9243a2d2011-08-22 17:32:32 +000031144LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031146/* end confdefs.h. */
31147
31148/* Override any GCC internal prototype to avoid an error.
31149 Use char because int might match the return type of a GCC
31150 builtin and then its argument prototype would still apply. */
31151#ifdef __cplusplus
31152extern "C"
31153#endif
cristy9243a2d2011-08-22 17:32:32 +000031154char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031155int
31156main ()
31157{
cristy9243a2d2011-08-22 17:32:32 +000031158return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031159 ;
31160 return 0;
31161}
31162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031163if ac_fn_c_try_link "$LINENO"; then :
cristy9243a2d2011-08-22 17:32:32 +000031164 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031165else
cristy9243a2d2011-08-22 17:32:32 +000031166 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031167fi
cristy8b350f62009-11-15 23:12:43 +000031168rm -f core conftest.err conftest.$ac_objext \
31169 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031170LIBS=$ac_check_lib_save_LIBS
31171fi
cristy9243a2d2011-08-22 17:32:32 +000031172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31173$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31174if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31175 have_libwmflite='yes'
cristy3ed852e2009-09-05 21:47:34 +000031176fi
31177
cristy9243a2d2011-08-22 17:32:32 +000031178 if test "$have_libwmflite" = 'yes'; then
31179
31180$as_echo "#define HasWMFlite 1" >>confdefs.h
31181
31182 WMF_LIBS='-lwmflite'
31183 LIBS="$WMF_LIBS $LIBS"
31184 have_wmf='yes'
31185 else
31186 WMF_LIBS_DEPS=''
31187 WMF_CONFIG_LIBS=`libwmf-config --libs`
31188 for lib in xml2 expat freetype jpeg png z
31189 do
31190 testlib="-l${lib}"
31191 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31192 done
31193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31194$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31195if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31196 $as_echo_n "(cached) " >&6
31197else
31198 ac_check_lib_save_LIBS=$LIBS
31199LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31201/* end confdefs.h. */
31202
31203/* Override any GCC internal prototype to avoid an error.
31204 Use char because int might match the return type of a GCC
31205 builtin and then its argument prototype would still apply. */
31206#ifdef __cplusplus
31207extern "C"
31208#endif
31209char wmf_api_create ();
31210int
31211main ()
31212{
31213return wmf_api_create ();
31214 ;
31215 return 0;
31216}
31217_ACEOF
31218if ac_fn_c_try_link "$LINENO"; then :
31219 ac_cv_lib_wmf_wmf_api_create=yes
31220else
31221 ac_cv_lib_wmf_wmf_api_create=no
31222fi
31223rm -f core conftest.err conftest.$ac_objext \
31224 conftest$ac_exeext conftest.$ac_ext
31225LIBS=$ac_check_lib_save_LIBS
31226fi
31227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31228$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31229if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31230 have_libwmf='yes'
31231fi
31232
31233 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031234
cristy8b350f62009-11-15 23:12:43 +000031235$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031236
cristy9243a2d2011-08-22 17:32:32 +000031237 WMF_LIBS='-lwmf'
31238 LIBS="$WMF_LIBS $LIBS"
31239 have_wmf='yes'
31240 else
31241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31242$as_echo "no -- some components failed test" >&6; }
31243 have_wmf='no (failed tests)'
31244 have_wmflite='no (failed tests)'
31245 LIBS="$OLIBS"
31246 WMF_LIBS=''
31247 fi
cristy3ed852e2009-09-05 21:47:34 +000031248 fi
cristy9243a2d2011-08-22 17:32:32 +000031249 fi
31250fi
31251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31252$as_echo_n "checking if WMF package is complete... " >&6; }
31253if test "$have_wmf" = 'yes'; then
31254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31255$as_echo "yes" >&6; }
31256else
31257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31258$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031259fi
cristy73bd4a52010-10-05 11:24:23 +000031260 if test "$have_wmf" = 'yes'; then
31261 WMF_DELEGATE_TRUE=
31262 WMF_DELEGATE_FALSE='#'
31263else
31264 WMF_DELEGATE_TRUE='#'
31265 WMF_DELEGATE_FALSE=
31266fi
31267
cristy3ed852e2009-09-05 21:47:34 +000031268
31269
31270
31271
cristy735e8942010-04-02 20:32:57 +000031272
cristy9243a2d2011-08-22 17:32:32 +000031273
cristy3ed852e2009-09-05 21:47:34 +000031274#
31275# Check for XML delegate library.
31276#
31277
31278# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031279if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031280 withval=$with_xml; with_xml=$withval
31281else
31282 with_xml=$have_x
31283fi
31284
31285
31286if test "$with_xml" != 'yes' ; then
31287 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31288fi
31289
31290have_xml='no'
31291XML_LIBS=''
31292if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000031293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031294$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000031296$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031298$as_echo "" >&6; }
31299 PERSIST_LDFLAGS=$LDFLAGS
31300 PERSIST_CPPFLAGS=$CPPFLAGS
31301 xml2_config=''
31302 for ac_prog in xml2-config
31303do
31304 # Extract the first word of "$ac_prog", so it can be a program name with args.
31305set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031307$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031308if ${ac_cv_prog_xml2_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031309 $as_echo_n "(cached) " >&6
31310else
31311 if test -n "$xml2_config"; then
31312 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
31313else
31314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31315for as_dir in $PATH
31316do
31317 IFS=$as_save_IFS
31318 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031319 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31321 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031323 break 2
31324 fi
31325done
cristy8b350f62009-11-15 23:12:43 +000031326 done
cristy3ed852e2009-09-05 21:47:34 +000031327IFS=$as_save_IFS
31328
31329fi
31330fi
31331xml2_config=$ac_cv_prog_xml2_config
31332if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000031333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000031334$as_echo "$xml2_config" >&6; }
31335else
cristy8b350f62009-11-15 23:12:43 +000031336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031337$as_echo "no" >&6; }
31338fi
31339
31340
31341 test -n "$xml2_config" && break
31342done
31343 if test -n "$xml2_config"; then
31344 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31345 # the shared library installed under /usr/lib, whereas the package
31346 # installs itself under $prefix/libxml and $prefix/lib.
31347 xml2_prefix=`xml2-config --prefix`
31348 if test -d "${xml2_prefix}/include/libxml2"; then
31349 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31350 fi
31351 if test "${xml2_prefix}" != '/usr'; then
31352 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31353 fi
31354 fi
31355 failed=0
31356 passed=0
cristy8b350f62009-11-15 23:12:43 +000031357 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031358if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031359 passed=`expr $passed + 1`
31360else
31361 failed=`expr $failed + 1`
31362fi
31363
31364
cristy8b350f62009-11-15 23:12:43 +000031365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000031366$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031367if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031368 $as_echo_n "(cached) " >&6
31369else
31370 ac_check_lib_save_LIBS=$LIBS
31371LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031373/* end confdefs.h. */
31374
31375/* Override any GCC internal prototype to avoid an error.
31376 Use char because int might match the return type of a GCC
31377 builtin and then its argument prototype would still apply. */
31378#ifdef __cplusplus
31379extern "C"
31380#endif
31381char xmlParseExternalEntity ();
31382int
31383main ()
31384{
31385return xmlParseExternalEntity ();
31386 ;
31387 return 0;
31388}
31389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031390if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031391 ac_cv_lib_xml2_xmlParseExternalEntity=yes
31392else
cristy8b350f62009-11-15 23:12:43 +000031393 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000031394fi
cristy8b350f62009-11-15 23:12:43 +000031395rm -f core conftest.err conftest.$ac_objext \
31396 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031397LIBS=$ac_check_lib_save_LIBS
31398fi
cristy8b350f62009-11-15 23:12:43 +000031399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000031400$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristyda16f162011-02-19 23:52:17 +000031401if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031402 passed=`expr $passed + 1`
31403else
31404 failed=`expr $failed + 1`
31405fi
31406
cristy8b350f62009-11-15 23:12:43 +000031407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031408$as_echo_n "checking if XML package is complete... " >&6; }
31409 if test $passed -gt 0; then
31410 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000031411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000031412$as_echo "no -- some components failed test" >&6; }
31413 have_xml='no (failed tests)'
31414 LDFLAGS="$PERSIST_LDFLAGS"
31415 CPPFLAGS="$PERSIST_CPPFLAGS"
31416 else
31417 XML_LIBS='-lxml2'
31418 LIBS="$XML_LIBS $LIBS"
31419
cristy8b350f62009-11-15 23:12:43 +000031420$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031421
cristy8b350f62009-11-15 23:12:43 +000031422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000031423$as_echo "yes" >&6; }
31424 have_xml='yes'
31425 fi
31426 else
cristy8b350f62009-11-15 23:12:43 +000031427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031428$as_echo "no" >&6; }
31429 fi
31430fi
cristy73bd4a52010-10-05 11:24:23 +000031431 if test "$have_xml" = 'yes'; then
31432 XML_DELEGATE_TRUE=
31433 XML_DELEGATE_FALSE='#'
31434else
31435 XML_DELEGATE_TRUE='#'
31436 XML_DELEGATE_FALSE=
31437fi
31438
cristy3ed852e2009-09-05 21:47:34 +000031439
31440
31441
31442# Substitute compiler name to build/link PerlMagick
31443#
31444
31445
31446#
31447# Configure install Paths
31448#
31449
31450# Subdirectory under lib to place ImageMagick lib files
31451LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31452
31453cat >>confdefs.h <<_ACEOF
31454#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31455_ACEOF
31456
31457
31458# Path to ImageMagick bin directory
31459EXECUTABLE_PATH="${BIN_DIR}"
31460DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31461case "${build_os}" in
31462 mingw* )
31463 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31464 ;;
31465esac
31466
31467cat >>confdefs.h <<_ACEOF
31468#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31469_ACEOF
31470
31471
31472
31473# Path to ImageMagick lib
31474LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31475DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31476case "${build_os}" in
31477 mingw* )
31478 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31479 ;;
31480esac
31481
31482cat >>confdefs.h <<_ACEOF
31483#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31484_ACEOF
31485
31486
31487
cristy3ed852e2009-09-05 21:47:34 +000031488#
31489# Subdirectory under lib to place ImageMagick coder module files
31490CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31491
31492cat >>confdefs.h <<_ACEOF
31493#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31494_ACEOF
31495
31496CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31497DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31498case "${build_os}" in
31499 mingw* )
31500 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31501 ;;
31502esac
31503
31504cat >>confdefs.h <<_ACEOF
31505#define CODER_PATH "$DEFINE_CODER_PATH"
31506_ACEOF
31507
31508
31509
31510#
31511# Subdirectory under lib to place ImageMagick filter module files
31512FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31513
31514cat >>confdefs.h <<_ACEOF
31515#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31516_ACEOF
31517
31518FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31519DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31520case "${build_os}" in
31521 mingw* )
31522 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31523 ;;
31524esac
31525
31526cat >>confdefs.h <<_ACEOF
31527#define FILTER_PATH "$DEFINE_FILTER_PATH"
31528_ACEOF
31529
31530
31531
31532#
31533# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000031534DOCUMENTATION_RELATIVE_PATH=""
31535DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31536DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031537case "${build_os}" in
31538 mingw* )
31539 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31540 ;;
31541esac
31542
31543cat >>confdefs.h <<_ACEOF
31544#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31545_ACEOF
31546
31547
31548
cristy3cf8a722011-03-20 23:32:22 +000031549# Subdirectory to place ImageMagick configuration files
cristyba0f1972011-03-28 12:42:52 +000031550CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000031551
31552cat >>confdefs.h <<_ACEOF
31553#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31554_ACEOF
31555
31556CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31557DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31558case "${build_os}" in
31559 mingw* )
31560 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31561 ;;
31562esac
31563
31564cat >>confdefs.h <<_ACEOF
31565#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31566_ACEOF
31567
31568
31569
31570# Subdirectory to place ImageMagick configuration files
cristy4f820712011-04-01 12:35:43 +000031571SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000031572
31573cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031574#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031575_ACEOF
31576
cristy4f820712011-04-01 12:35:43 +000031577SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
31578DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031579case "${build_os}" in
31580 mingw* )
cristy4f820712011-04-01 12:35:43 +000031581 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000031582 ;;
31583esac
31584
31585cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031586#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031587_ACEOF
31588
31589
31590
31591#
31592# program_transform_name is formed for use in a Makefile, so create a
31593# modified version for use in a shell script.
31594configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
31595
31596# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000031597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031598$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000031600$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031602$as_echo "" >&6; }
31603AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000031604BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000031605BZIPDelegateDefault='bzip2'
31606BrowseDelegateDefault='xdg-open'
31607CGMDecodeDelegateDefault='ralcgm'
31608CatDelegateDefault='cat'
31609DNGDecodeDelegateDefault='ufraw-batch'
31610GVCDecodeDelegateDefault='dot'
31611DVIDecodeDelegateDefault='dvips'
31612EchoDelegateDefault='echo'
31613EditorDelegateDefault='xterm'
31614FIGDecodeDelegateDefault='fig2dev'
31615ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
31616DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
31617MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
31618GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000031619HPGLDecodeDelegateDefault='hp2xx'
31620HTMLDecodeDelegateDefault='html2ps'
31621ILBMDecodeDelegateDefault='ilbmtoppm'
31622ILBMEncodeDelegateDefault='ppmtoilbm'
31623LPDelegateDefault='lp'
31624LPRDelegateDefault='lpr'
31625LZWDecodeDelegateDefault='uncompress'
31626LZWEncodeDelegateDefault='compress'
31627LaunchDelegateDefault='gimp'
31628MANDelegateDefault='groff'
31629MPEGDecodeDelegateDefault='ffmpeg'
31630MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000031631MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000031632MVDelegateDefault='mv'
31633PCLDelegateDefault='pcl6'
31634PGPDecodeDelegateDefault='pgpv'
31635POVDelegateDefault='povray'
31636if test "$native_win32_build" = 'yes'; then
31637 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000031638elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031639 PSDelegateDefault='gsc'
31640else
31641 PSDelegateDefault='gs'
31642fi
31643RLEEncodeDelegateDefault='rawtorle'
31644RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000031645RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000031646SCANDecodeDelegateDefault='scanimage'
31647TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000031648UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000031649WMFDecodeDelegateDefault='wmf2eps'
31650WWWDecodeDelegateDefault='curl'
31651XPSDelegateDefault='gxps'
31652ZipDelegateDefault='gzip'
31653
31654# Search for delegates
31655# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
31656set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031658$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031659if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031660 $as_echo_n "(cached) " >&6
31661else
31662 case $AutotraceDecodeDelegate in
31663 [\\/]* | ?:[\\/]*)
31664 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
31665 ;;
31666 *)
31667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31668for as_dir in $PATH
31669do
31670 IFS=$as_save_IFS
31671 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031672 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31674 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031676 break 2
31677 fi
31678done
cristy8b350f62009-11-15 23:12:43 +000031679 done
cristy3ed852e2009-09-05 21:47:34 +000031680IFS=$as_save_IFS
31681
31682 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
31683 ;;
31684esac
31685fi
31686AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
31687if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031689$as_echo "$AutotraceDecodeDelegate" >&6; }
31690else
cristy8b350f62009-11-15 23:12:43 +000031691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031692$as_echo "no" >&6; }
31693fi
31694
31695
cristy3ed852e2009-09-05 21:47:34 +000031696# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
31697set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031699$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031700if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031701 $as_echo_n "(cached) " >&6
31702else
31703 case $BlenderDecodeDelegate in
31704 [\\/]* | ?:[\\/]*)
31705 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
31706 ;;
31707 *)
31708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31709for as_dir in $PATH
31710do
31711 IFS=$as_save_IFS
31712 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031713 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31715 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031717 break 2
31718 fi
31719done
cristy8b350f62009-11-15 23:12:43 +000031720 done
cristy3ed852e2009-09-05 21:47:34 +000031721IFS=$as_save_IFS
31722
31723 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
31724 ;;
31725esac
31726fi
31727BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
31728if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031730$as_echo "$BlenderDecodeDelegate" >&6; }
31731else
cristy8b350f62009-11-15 23:12:43 +000031732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031733$as_echo "no" >&6; }
31734fi
31735
31736
31737# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
31738set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031740$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031741if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031742 $as_echo_n "(cached) " >&6
31743else
31744 case $BZIPDelegate in
31745 [\\/]* | ?:[\\/]*)
31746 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
31747 ;;
31748 *)
31749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31750for as_dir in $PATH
31751do
31752 IFS=$as_save_IFS
31753 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031754 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31756 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031758 break 2
31759 fi
31760done
cristy8b350f62009-11-15 23:12:43 +000031761 done
cristy3ed852e2009-09-05 21:47:34 +000031762IFS=$as_save_IFS
31763
31764 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
31765 ;;
31766esac
31767fi
31768BZIPDelegate=$ac_cv_path_BZIPDelegate
31769if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031771$as_echo "$BZIPDelegate" >&6; }
31772else
cristy8b350f62009-11-15 23:12:43 +000031773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031774$as_echo "no" >&6; }
31775fi
31776
31777
31778# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
31779set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031782if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031783 $as_echo_n "(cached) " >&6
31784else
31785 case $BrowseDelegate in
31786 [\\/]* | ?:[\\/]*)
31787 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
31788 ;;
31789 *)
31790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31791for as_dir in $PATH
31792do
31793 IFS=$as_save_IFS
31794 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031795 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31797 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031799 break 2
31800 fi
31801done
cristy8b350f62009-11-15 23:12:43 +000031802 done
cristy3ed852e2009-09-05 21:47:34 +000031803IFS=$as_save_IFS
31804
31805 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
31806 ;;
31807esac
31808fi
31809BrowseDelegate=$ac_cv_path_BrowseDelegate
31810if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031812$as_echo "$BrowseDelegate" >&6; }
31813else
cristy8b350f62009-11-15 23:12:43 +000031814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031815$as_echo "no" >&6; }
31816fi
31817
31818
31819# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
31820set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031822$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031823if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031824 $as_echo_n "(cached) " >&6
31825else
31826 case $CGMDecodeDelegate in
31827 [\\/]* | ?:[\\/]*)
31828 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
31829 ;;
31830 *)
31831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31832for as_dir in $PATH
31833do
31834 IFS=$as_save_IFS
31835 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031836 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31838 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031840 break 2
31841 fi
31842done
cristy8b350f62009-11-15 23:12:43 +000031843 done
cristy3ed852e2009-09-05 21:47:34 +000031844IFS=$as_save_IFS
31845
31846 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
31847 ;;
31848esac
31849fi
31850CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
31851if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031853$as_echo "$CGMDecodeDelegate" >&6; }
31854else
cristy8b350f62009-11-15 23:12:43 +000031855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031856$as_echo "no" >&6; }
31857fi
31858
31859
31860# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
31861set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031863$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031864if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031865 $as_echo_n "(cached) " >&6
31866else
31867 case $CatDelegate in
31868 [\\/]* | ?:[\\/]*)
31869 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
31870 ;;
31871 *)
31872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31873for as_dir in $PATH
31874do
31875 IFS=$as_save_IFS
31876 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031877 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31879 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031881 break 2
31882 fi
31883done
cristy8b350f62009-11-15 23:12:43 +000031884 done
cristy3ed852e2009-09-05 21:47:34 +000031885IFS=$as_save_IFS
31886
31887 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
31888 ;;
31889esac
31890fi
31891CatDelegate=$ac_cv_path_CatDelegate
31892if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031894$as_echo "$CatDelegate" >&6; }
31895else
cristy8b350f62009-11-15 23:12:43 +000031896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031897$as_echo "no" >&6; }
31898fi
31899
31900
31901# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
31902set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031904$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031905if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031906 $as_echo_n "(cached) " >&6
31907else
31908 case $DNGDecodeDelegate in
31909 [\\/]* | ?:[\\/]*)
31910 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
31911 ;;
31912 *)
31913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31914for as_dir in $PATH
31915do
31916 IFS=$as_save_IFS
31917 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031918 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31920 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031922 break 2
31923 fi
31924done
cristy8b350f62009-11-15 23:12:43 +000031925 done
cristy3ed852e2009-09-05 21:47:34 +000031926IFS=$as_save_IFS
31927
31928 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
31929 ;;
31930esac
31931fi
31932DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
31933if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031935$as_echo "$DNGDecodeDelegate" >&6; }
31936else
cristy8b350f62009-11-15 23:12:43 +000031937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031938$as_echo "no" >&6; }
31939fi
31940
31941
31942# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
31943set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031945$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031946if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031947 $as_echo_n "(cached) " >&6
31948else
31949 case $GVCDecodeDelegate in
31950 [\\/]* | ?:[\\/]*)
31951 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
31952 ;;
31953 *)
31954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31955for as_dir in $PATH
31956do
31957 IFS=$as_save_IFS
31958 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031959 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31961 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031963 break 2
31964 fi
31965done
cristy8b350f62009-11-15 23:12:43 +000031966 done
cristy3ed852e2009-09-05 21:47:34 +000031967IFS=$as_save_IFS
31968
31969 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
31970 ;;
31971esac
31972fi
31973GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
31974if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031976$as_echo "$GVCDecodeDelegate" >&6; }
31977else
cristy8b350f62009-11-15 23:12:43 +000031978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031979$as_echo "no" >&6; }
31980fi
31981
31982
31983# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
31984set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031986$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031987if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031988 $as_echo_n "(cached) " >&6
31989else
31990 case $DVIDecodeDelegate in
31991 [\\/]* | ?:[\\/]*)
31992 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
31993 ;;
31994 *)
31995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31996for as_dir in $PATH
31997do
31998 IFS=$as_save_IFS
31999 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032000 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32002 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032004 break 2
32005 fi
32006done
cristy8b350f62009-11-15 23:12:43 +000032007 done
cristy3ed852e2009-09-05 21:47:34 +000032008IFS=$as_save_IFS
32009
32010 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32011 ;;
32012esac
32013fi
32014DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32015if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032017$as_echo "$DVIDecodeDelegate" >&6; }
32018else
cristy8b350f62009-11-15 23:12:43 +000032019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032020$as_echo "no" >&6; }
32021fi
32022
32023
32024# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32025set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032027$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032028if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032029 $as_echo_n "(cached) " >&6
32030else
32031 case $EchoDelegate in
32032 [\\/]* | ?:[\\/]*)
32033 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32034 ;;
32035 *)
32036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32037for as_dir in $PATH
32038do
32039 IFS=$as_save_IFS
32040 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032041 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32043 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032045 break 2
32046 fi
32047done
cristy8b350f62009-11-15 23:12:43 +000032048 done
cristy3ed852e2009-09-05 21:47:34 +000032049IFS=$as_save_IFS
32050
32051 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32052 ;;
32053esac
32054fi
32055EchoDelegate=$ac_cv_path_EchoDelegate
32056if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032058$as_echo "$EchoDelegate" >&6; }
32059else
cristy8b350f62009-11-15 23:12:43 +000032060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032061$as_echo "no" >&6; }
32062fi
32063
32064
32065# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32066set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032068$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032069if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032070 $as_echo_n "(cached) " >&6
32071else
32072 case $EditorDelegate in
32073 [\\/]* | ?:[\\/]*)
32074 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32075 ;;
32076 *)
32077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32078for as_dir in $PATH
32079do
32080 IFS=$as_save_IFS
32081 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032082 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32084 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032086 break 2
32087 fi
32088done
cristy8b350f62009-11-15 23:12:43 +000032089 done
cristy3ed852e2009-09-05 21:47:34 +000032090IFS=$as_save_IFS
32091
32092 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32093 ;;
32094esac
32095fi
32096EditorDelegate=$ac_cv_path_EditorDelegate
32097if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032099$as_echo "$EditorDelegate" >&6; }
32100else
cristy8b350f62009-11-15 23:12:43 +000032101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032102$as_echo "no" >&6; }
32103fi
32104
32105
32106# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32107set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032109$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032110if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032111 $as_echo_n "(cached) " >&6
32112else
32113 case $FIGDecodeDelegate in
32114 [\\/]* | ?:[\\/]*)
32115 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32116 ;;
32117 *)
32118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32119for as_dir in $PATH
32120do
32121 IFS=$as_save_IFS
32122 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032123 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32125 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032127 break 2
32128 fi
32129done
cristy8b350f62009-11-15 23:12:43 +000032130 done
cristy3ed852e2009-09-05 21:47:34 +000032131IFS=$as_save_IFS
32132
32133 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32134 ;;
32135esac
32136fi
32137FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32138if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032140$as_echo "$FIGDecodeDelegate" >&6; }
32141else
cristy8b350f62009-11-15 23:12:43 +000032142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032143$as_echo "no" >&6; }
32144fi
32145
32146
32147# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32148set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032150$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032151if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032152 $as_echo_n "(cached) " >&6
32153else
32154 case $ConvertDelegate in
32155 [\\/]* | ?:[\\/]*)
32156 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32157 ;;
32158 *)
32159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32160for as_dir in $PATH
32161do
32162 IFS=$as_save_IFS
32163 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032164 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32166 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032168 break 2
32169 fi
32170done
cristy8b350f62009-11-15 23:12:43 +000032171 done
cristy3ed852e2009-09-05 21:47:34 +000032172IFS=$as_save_IFS
32173
32174 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32175 ;;
32176esac
32177fi
32178ConvertDelegate=$ac_cv_path_ConvertDelegate
32179if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032181$as_echo "$ConvertDelegate" >&6; }
32182else
cristy8b350f62009-11-15 23:12:43 +000032183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032184$as_echo "no" >&6; }
32185fi
32186
32187
32188# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32189set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032191$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032192if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032193 $as_echo_n "(cached) " >&6
32194else
32195 case $DisplayDelegate in
32196 [\\/]* | ?:[\\/]*)
32197 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32198 ;;
32199 *)
32200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32201for as_dir in $PATH
32202do
32203 IFS=$as_save_IFS
32204 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032205 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32207 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032209 break 2
32210 fi
32211done
cristy8b350f62009-11-15 23:12:43 +000032212 done
cristy3ed852e2009-09-05 21:47:34 +000032213IFS=$as_save_IFS
32214
32215 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32216 ;;
32217esac
32218fi
32219DisplayDelegate=$ac_cv_path_DisplayDelegate
32220if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032222$as_echo "$DisplayDelegate" >&6; }
32223else
cristy8b350f62009-11-15 23:12:43 +000032224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032225$as_echo "no" >&6; }
32226fi
32227
32228
32229# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32230set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032232$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032233if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032234 $as_echo_n "(cached) " >&6
32235else
32236 case $MogrifyDelegate in
32237 [\\/]* | ?:[\\/]*)
32238 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32239 ;;
32240 *)
32241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32242for as_dir in $PATH
32243do
32244 IFS=$as_save_IFS
32245 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032246 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32248 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032250 break 2
32251 fi
32252done
cristy8b350f62009-11-15 23:12:43 +000032253 done
cristy3ed852e2009-09-05 21:47:34 +000032254IFS=$as_save_IFS
32255
32256 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32257 ;;
32258esac
32259fi
32260MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32261if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032263$as_echo "$MogrifyDelegate" >&6; }
32264else
cristy8b350f62009-11-15 23:12:43 +000032265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032266$as_echo "no" >&6; }
32267fi
32268
32269
32270# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32271set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032273$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032274if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032275 $as_echo_n "(cached) " >&6
32276else
32277 case $GnuplotDecodeDelegate in
32278 [\\/]* | ?:[\\/]*)
32279 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32280 ;;
32281 *)
32282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32283for as_dir in $PATH
32284do
32285 IFS=$as_save_IFS
32286 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032287 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32289 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032291 break 2
32292 fi
32293done
cristy8b350f62009-11-15 23:12:43 +000032294 done
cristy3ed852e2009-09-05 21:47:34 +000032295IFS=$as_save_IFS
32296
32297 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32298 ;;
32299esac
32300fi
32301GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32302if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032304$as_echo "$GnuplotDecodeDelegate" >&6; }
32305else
cristy8b350f62009-11-15 23:12:43 +000032306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032307$as_echo "no" >&6; }
32308fi
32309
32310
cristy3ed852e2009-09-05 21:47:34 +000032311# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32312set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032314$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032315if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032316 $as_echo_n "(cached) " >&6
32317else
32318 case $HPGLDecodeDelegate in
32319 [\\/]* | ?:[\\/]*)
32320 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32321 ;;
32322 *)
32323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32324for as_dir in $PATH
32325do
32326 IFS=$as_save_IFS
32327 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032328 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32330 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032332 break 2
32333 fi
32334done
cristy8b350f62009-11-15 23:12:43 +000032335 done
cristy3ed852e2009-09-05 21:47:34 +000032336IFS=$as_save_IFS
32337
32338 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32339 ;;
32340esac
32341fi
32342HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32343if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032345$as_echo "$HPGLDecodeDelegate" >&6; }
32346else
cristy8b350f62009-11-15 23:12:43 +000032347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032348$as_echo "no" >&6; }
32349fi
32350
32351
32352# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32353set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032355$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032356if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032357 $as_echo_n "(cached) " >&6
32358else
32359 case $HTMLDecodeDelegate in
32360 [\\/]* | ?:[\\/]*)
32361 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32362 ;;
32363 *)
32364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32365for as_dir in $PATH
32366do
32367 IFS=$as_save_IFS
32368 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032369 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32371 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032373 break 2
32374 fi
32375done
cristy8b350f62009-11-15 23:12:43 +000032376 done
cristy3ed852e2009-09-05 21:47:34 +000032377IFS=$as_save_IFS
32378
32379 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32380 ;;
32381esac
32382fi
32383HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32384if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032386$as_echo "$HTMLDecodeDelegate" >&6; }
32387else
cristy8b350f62009-11-15 23:12:43 +000032388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032389$as_echo "no" >&6; }
32390fi
32391
32392
32393# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32394set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032396$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032397if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032398 $as_echo_n "(cached) " >&6
32399else
32400 case $ILBMDecodeDelegate in
32401 [\\/]* | ?:[\\/]*)
32402 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32403 ;;
32404 *)
32405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32406for as_dir in $PATH
32407do
32408 IFS=$as_save_IFS
32409 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032410 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32412 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032414 break 2
32415 fi
32416done
cristy8b350f62009-11-15 23:12:43 +000032417 done
cristy3ed852e2009-09-05 21:47:34 +000032418IFS=$as_save_IFS
32419
32420 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32421 ;;
32422esac
32423fi
32424ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32425if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032427$as_echo "$ILBMDecodeDelegate" >&6; }
32428else
cristy8b350f62009-11-15 23:12:43 +000032429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032430$as_echo "no" >&6; }
32431fi
32432
32433
32434# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32435set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032437$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032438if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032439 $as_echo_n "(cached) " >&6
32440else
32441 case $ILBMEncodeDelegate in
32442 [\\/]* | ?:[\\/]*)
32443 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32444 ;;
32445 *)
32446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32447for as_dir in $PATH
32448do
32449 IFS=$as_save_IFS
32450 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032451 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32453 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032455 break 2
32456 fi
32457done
cristy8b350f62009-11-15 23:12:43 +000032458 done
cristy3ed852e2009-09-05 21:47:34 +000032459IFS=$as_save_IFS
32460
32461 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32462 ;;
32463esac
32464fi
32465ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32466if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032468$as_echo "$ILBMEncodeDelegate" >&6; }
32469else
cristy8b350f62009-11-15 23:12:43 +000032470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032471$as_echo "no" >&6; }
32472fi
32473
32474
32475# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32476set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032478$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032479if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032480 $as_echo_n "(cached) " >&6
32481else
32482 case $LPDelegate in
32483 [\\/]* | ?:[\\/]*)
32484 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32485 ;;
32486 *)
32487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32488for as_dir in $PATH
32489do
32490 IFS=$as_save_IFS
32491 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032492 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32494 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032496 break 2
32497 fi
32498done
cristy8b350f62009-11-15 23:12:43 +000032499 done
cristy3ed852e2009-09-05 21:47:34 +000032500IFS=$as_save_IFS
32501
32502 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32503 ;;
32504esac
32505fi
32506LPDelegate=$ac_cv_path_LPDelegate
32507if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032509$as_echo "$LPDelegate" >&6; }
32510else
cristy8b350f62009-11-15 23:12:43 +000032511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032512$as_echo "no" >&6; }
32513fi
32514
32515
32516# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32517set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032519$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032520if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032521 $as_echo_n "(cached) " >&6
32522else
32523 case $LPRDelegate in
32524 [\\/]* | ?:[\\/]*)
32525 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32526 ;;
32527 *)
32528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32529for as_dir in $PATH
32530do
32531 IFS=$as_save_IFS
32532 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032533 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32535 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032537 break 2
32538 fi
32539done
cristy8b350f62009-11-15 23:12:43 +000032540 done
cristy3ed852e2009-09-05 21:47:34 +000032541IFS=$as_save_IFS
32542
32543 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32544 ;;
32545esac
32546fi
32547LPRDelegate=$ac_cv_path_LPRDelegate
32548if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032550$as_echo "$LPRDelegate" >&6; }
32551else
cristy8b350f62009-11-15 23:12:43 +000032552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032553$as_echo "no" >&6; }
32554fi
32555
32556
32557# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
32558set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032560$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032561if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032562 $as_echo_n "(cached) " >&6
32563else
32564 case $LZWDecodeDelegate in
32565 [\\/]* | ?:[\\/]*)
32566 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
32567 ;;
32568 *)
32569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32570for as_dir in $PATH
32571do
32572 IFS=$as_save_IFS
32573 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032574 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32576 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032578 break 2
32579 fi
32580done
cristy8b350f62009-11-15 23:12:43 +000032581 done
cristy3ed852e2009-09-05 21:47:34 +000032582IFS=$as_save_IFS
32583
32584 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
32585 ;;
32586esac
32587fi
32588LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
32589if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032591$as_echo "$LZWDecodeDelegate" >&6; }
32592else
cristy8b350f62009-11-15 23:12:43 +000032593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032594$as_echo "no" >&6; }
32595fi
32596
32597
32598# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
32599set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032601$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032602if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032603 $as_echo_n "(cached) " >&6
32604else
32605 case $LZWEncodeDelegate in
32606 [\\/]* | ?:[\\/]*)
32607 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
32608 ;;
32609 *)
32610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32611for as_dir in $PATH
32612do
32613 IFS=$as_save_IFS
32614 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032615 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32617 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032619 break 2
32620 fi
32621done
cristy8b350f62009-11-15 23:12:43 +000032622 done
cristy3ed852e2009-09-05 21:47:34 +000032623IFS=$as_save_IFS
32624
32625 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
32626 ;;
32627esac
32628fi
32629LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
32630if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032632$as_echo "$LZWEncodeDelegate" >&6; }
32633else
cristy8b350f62009-11-15 23:12:43 +000032634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032635$as_echo "no" >&6; }
32636fi
32637
32638
32639# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
32640set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032642$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032643if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032644 $as_echo_n "(cached) " >&6
32645else
32646 case $LaunchDelegate in
32647 [\\/]* | ?:[\\/]*)
32648 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
32649 ;;
32650 *)
32651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32652for as_dir in $PATH
32653do
32654 IFS=$as_save_IFS
32655 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032656 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32658 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032660 break 2
32661 fi
32662done
cristy8b350f62009-11-15 23:12:43 +000032663 done
cristy3ed852e2009-09-05 21:47:34 +000032664IFS=$as_save_IFS
32665
32666 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
32667 ;;
32668esac
32669fi
32670LaunchDelegate=$ac_cv_path_LaunchDelegate
32671if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032673$as_echo "$LaunchDelegate" >&6; }
32674else
cristy8b350f62009-11-15 23:12:43 +000032675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032676$as_echo "no" >&6; }
32677fi
32678
32679
32680# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
32681set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032683$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032684if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032685 $as_echo_n "(cached) " >&6
32686else
32687 case $MANDelegate in
32688 [\\/]* | ?:[\\/]*)
32689 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
32690 ;;
32691 *)
32692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32693for as_dir in $PATH
32694do
32695 IFS=$as_save_IFS
32696 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32699 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032701 break 2
32702 fi
32703done
cristy8b350f62009-11-15 23:12:43 +000032704 done
cristy3ed852e2009-09-05 21:47:34 +000032705IFS=$as_save_IFS
32706
32707 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
32708 ;;
32709esac
32710fi
32711MANDelegate=$ac_cv_path_MANDelegate
32712if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032714$as_echo "$MANDelegate" >&6; }
32715else
cristy8b350f62009-11-15 23:12:43 +000032716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032717$as_echo "no" >&6; }
32718fi
32719
32720
32721# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
32722set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032724$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032725if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032726 $as_echo_n "(cached) " >&6
32727else
32728 case $MPEGDecodeDelegate in
32729 [\\/]* | ?:[\\/]*)
32730 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
32731 ;;
32732 *)
32733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32734for as_dir in $PATH
32735do
32736 IFS=$as_save_IFS
32737 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32740 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032742 break 2
32743 fi
32744done
cristy8b350f62009-11-15 23:12:43 +000032745 done
cristy3ed852e2009-09-05 21:47:34 +000032746IFS=$as_save_IFS
32747
32748 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
32749 ;;
32750esac
32751fi
32752MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
32753if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032755$as_echo "$MPEGDecodeDelegate" >&6; }
32756else
cristy8b350f62009-11-15 23:12:43 +000032757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032758$as_echo "no" >&6; }
32759fi
32760
32761
32762# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
32763set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032765$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032766if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032767 $as_echo_n "(cached) " >&6
32768else
32769 case $MPEGEncodeDelegate in
32770 [\\/]* | ?:[\\/]*)
32771 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
32772 ;;
32773 *)
32774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32775for as_dir in $PATH
32776do
32777 IFS=$as_save_IFS
32778 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032779 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32781 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032783 break 2
32784 fi
32785done
cristy8b350f62009-11-15 23:12:43 +000032786 done
cristy3ed852e2009-09-05 21:47:34 +000032787IFS=$as_save_IFS
32788
32789 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
32790 ;;
32791esac
32792fi
32793MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
32794if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032796$as_echo "$MPEGEncodeDelegate" >&6; }
32797else
cristy8b350f62009-11-15 23:12:43 +000032798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032799$as_echo "no" >&6; }
32800fi
32801
32802
cristy935c86e2010-06-05 23:50:07 +000032803# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
32804set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
32805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32806$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032807if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000032808 $as_echo_n "(cached) " >&6
32809else
32810 case $MrSIDDecodeDelegate in
32811 [\\/]* | ?:[\\/]*)
32812 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
32813 ;;
32814 *)
32815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32816for as_dir in $PATH
32817do
32818 IFS=$as_save_IFS
32819 test -z "$as_dir" && as_dir=.
32820 for ac_exec_ext in '' $ac_executable_extensions; do
32821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32822 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32824 break 2
32825 fi
32826done
32827 done
32828IFS=$as_save_IFS
32829
32830 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
32831 ;;
32832esac
32833fi
32834MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
32835if test -n "$MrSIDDecodeDelegate"; then
32836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
32837$as_echo "$MrSIDDecodeDelegate" >&6; }
32838else
32839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32840$as_echo "no" >&6; }
32841fi
32842
32843
cristy3ed852e2009-09-05 21:47:34 +000032844# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
32845set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032847$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032848if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032849 $as_echo_n "(cached) " >&6
32850else
32851 case $MVDelegate in
32852 [\\/]* | ?:[\\/]*)
32853 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
32854 ;;
32855 *)
32856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32857for as_dir in $PATH
32858do
32859 IFS=$as_save_IFS
32860 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032861 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32863 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032865 break 2
32866 fi
32867done
cristy8b350f62009-11-15 23:12:43 +000032868 done
cristy3ed852e2009-09-05 21:47:34 +000032869IFS=$as_save_IFS
32870
32871 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
32872 ;;
32873esac
32874fi
32875MVDelegate=$ac_cv_path_MVDelegate
32876if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032878$as_echo "$MVDelegate" >&6; }
32879else
cristy8b350f62009-11-15 23:12:43 +000032880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032881$as_echo "no" >&6; }
32882fi
32883
32884
32885# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
32886set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032888$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032889if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032890 $as_echo_n "(cached) " >&6
32891else
32892 case $PCLDelegate in
32893 [\\/]* | ?:[\\/]*)
32894 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
32895 ;;
32896 *)
32897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32898for as_dir in $PATH
32899do
32900 IFS=$as_save_IFS
32901 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032902 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32904 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032906 break 2
32907 fi
32908done
cristy8b350f62009-11-15 23:12:43 +000032909 done
cristy3ed852e2009-09-05 21:47:34 +000032910IFS=$as_save_IFS
32911
32912 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
32913 ;;
32914esac
32915fi
32916PCLDelegate=$ac_cv_path_PCLDelegate
32917if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032919$as_echo "$PCLDelegate" >&6; }
32920else
cristy8b350f62009-11-15 23:12:43 +000032921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032922$as_echo "no" >&6; }
32923fi
32924
32925
32926# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
32927set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032929$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032930if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032931 $as_echo_n "(cached) " >&6
32932else
32933 case $PGPDecodeDelegate in
32934 [\\/]* | ?:[\\/]*)
32935 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
32936 ;;
32937 *)
32938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32939for as_dir in $PATH
32940do
32941 IFS=$as_save_IFS
32942 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032943 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32945 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032947 break 2
32948 fi
32949done
cristy8b350f62009-11-15 23:12:43 +000032950 done
cristy3ed852e2009-09-05 21:47:34 +000032951IFS=$as_save_IFS
32952
32953 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
32954 ;;
32955esac
32956fi
32957PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
32958if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032960$as_echo "$PGPDecodeDelegate" >&6; }
32961else
cristy8b350f62009-11-15 23:12:43 +000032962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032963$as_echo "no" >&6; }
32964fi
32965
32966
32967# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
32968set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032970$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032971if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032972 $as_echo_n "(cached) " >&6
32973else
32974 case $POVDelegate in
32975 [\\/]* | ?:[\\/]*)
32976 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
32977 ;;
32978 *)
32979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32980for as_dir in $PATH
32981do
32982 IFS=$as_save_IFS
32983 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032984 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32986 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032988 break 2
32989 fi
32990done
cristy8b350f62009-11-15 23:12:43 +000032991 done
cristy3ed852e2009-09-05 21:47:34 +000032992IFS=$as_save_IFS
32993
32994 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
32995 ;;
32996esac
32997fi
32998POVDelegate=$ac_cv_path_POVDelegate
32999if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033001$as_echo "$POVDelegate" >&6; }
33002else
cristy8b350f62009-11-15 23:12:43 +000033003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033004$as_echo "no" >&6; }
33005fi
33006
33007
33008for ac_prog in gsx gsc "$PSDelegateDefault"
33009do
33010 # Extract the first word of "$ac_prog", so it can be a program name with args.
33011set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033013$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033014if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033015 $as_echo_n "(cached) " >&6
33016else
33017 case $PSDelegate in
33018 [\\/]* | ?:[\\/]*)
33019 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33020 ;;
33021 *)
33022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33023for as_dir in $PATH
33024do
33025 IFS=$as_save_IFS
33026 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033027 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33029 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033031 break 2
33032 fi
33033done
cristy8b350f62009-11-15 23:12:43 +000033034 done
cristy3ed852e2009-09-05 21:47:34 +000033035IFS=$as_save_IFS
33036
33037 ;;
33038esac
33039fi
33040PSDelegate=$ac_cv_path_PSDelegate
33041if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033043$as_echo "$PSDelegate" >&6; }
33044else
cristy8b350f62009-11-15 23:12:43 +000033045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033046$as_echo "no" >&6; }
33047fi
33048
33049
33050 test -n "$PSDelegate" && break
33051done
33052test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33053
33054# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33055set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033057$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033058if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033059 $as_echo_n "(cached) " >&6
33060else
33061 case $RLEEncodeDelegate in
33062 [\\/]* | ?:[\\/]*)
33063 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33064 ;;
33065 *)
33066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33067for as_dir in $PATH
33068do
33069 IFS=$as_save_IFS
33070 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033071 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33073 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033075 break 2
33076 fi
33077done
cristy8b350f62009-11-15 23:12:43 +000033078 done
cristy3ed852e2009-09-05 21:47:34 +000033079IFS=$as_save_IFS
33080
33081 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33082 ;;
33083esac
33084fi
33085RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33086if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033088$as_echo "$RLEEncodeDelegate" >&6; }
33089else
cristy8b350f62009-11-15 23:12:43 +000033090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033091$as_echo "no" >&6; }
33092fi
33093
33094
33095# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33096set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033098$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033099if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033100 $as_echo_n "(cached) " >&6
33101else
33102 case $RMDelegate in
33103 [\\/]* | ?:[\\/]*)
33104 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33105 ;;
33106 *)
33107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33108for as_dir in $PATH
33109do
33110 IFS=$as_save_IFS
33111 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033112 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33114 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033116 break 2
33117 fi
33118done
cristy8b350f62009-11-15 23:12:43 +000033119 done
cristy3ed852e2009-09-05 21:47:34 +000033120IFS=$as_save_IFS
33121
33122 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33123 ;;
33124esac
33125fi
33126RMDelegate=$ac_cv_path_RMDelegate
33127if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033129$as_echo "$RMDelegate" >&6; }
33130else
cristy8b350f62009-11-15 23:12:43 +000033131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033132$as_echo "no" >&6; }
33133fi
33134
33135
cristy4689cf02010-02-17 21:15:45 +000033136# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33137set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33139$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033140if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033141 $as_echo_n "(cached) " >&6
33142else
33143 case $RSVGDecodeDelegate in
33144 [\\/]* | ?:[\\/]*)
33145 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33146 ;;
33147 *)
33148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33149for as_dir in $PATH
33150do
33151 IFS=$as_save_IFS
33152 test -z "$as_dir" && as_dir=.
33153 for ac_exec_ext in '' $ac_executable_extensions; do
33154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33155 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33157 break 2
33158 fi
33159done
33160 done
33161IFS=$as_save_IFS
33162
33163 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33164 ;;
33165esac
33166fi
33167RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33168if test -n "$RSVGDecodeDelegate"; then
33169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33170$as_echo "$RSVGDecodeDelegate" >&6; }
33171else
33172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33173$as_echo "no" >&6; }
33174fi
33175
33176
cristy3ed852e2009-09-05 21:47:34 +000033177# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33178set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033180$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033181if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033182 $as_echo_n "(cached) " >&6
33183else
33184 case $SCANDecodeDelegate in
33185 [\\/]* | ?:[\\/]*)
33186 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33187 ;;
33188 *)
33189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33190for as_dir in $PATH
33191do
33192 IFS=$as_save_IFS
33193 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033194 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33196 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033198 break 2
33199 fi
33200done
cristy8b350f62009-11-15 23:12:43 +000033201 done
cristy3ed852e2009-09-05 21:47:34 +000033202IFS=$as_save_IFS
33203
33204 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33205 ;;
33206esac
33207fi
33208SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33209if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033211$as_echo "$SCANDecodeDelegate" >&6; }
33212else
cristy8b350f62009-11-15 23:12:43 +000033213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033214$as_echo "no" >&6; }
33215fi
33216
33217
33218# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33219set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033221$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033222if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033223 $as_echo_n "(cached) " >&6
33224else
33225 case $TXTDelegate in
33226 [\\/]* | ?:[\\/]*)
33227 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33228 ;;
33229 *)
33230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33231for as_dir in $PATH
33232do
33233 IFS=$as_save_IFS
33234 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033235 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33237 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033239 break 2
33240 fi
33241done
cristy8b350f62009-11-15 23:12:43 +000033242 done
cristy3ed852e2009-09-05 21:47:34 +000033243IFS=$as_save_IFS
33244
33245 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33246 ;;
33247esac
33248fi
33249TXTDelegate=$ac_cv_path_TXTDelegate
33250if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033252$as_echo "$TXTDelegate" >&6; }
33253else
cristy8b350f62009-11-15 23:12:43 +000033254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033255$as_echo "no" >&6; }
33256fi
33257
33258
cristy5ac9ac82010-07-29 13:24:24 +000033259# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33260set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33262$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033263if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033264 $as_echo_n "(cached) " >&6
33265else
33266 case $UniconvertorDelegate in
33267 [\\/]* | ?:[\\/]*)
33268 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33269 ;;
33270 *)
33271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33272for as_dir in $PATH
33273do
33274 IFS=$as_save_IFS
33275 test -z "$as_dir" && as_dir=.
33276 for ac_exec_ext in '' $ac_executable_extensions; do
33277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33278 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33280 break 2
33281 fi
33282done
33283 done
33284IFS=$as_save_IFS
33285
33286 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33287 ;;
33288esac
33289fi
33290UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33291if test -n "$UniconvertorDelegate"; then
33292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33293$as_echo "$UniconvertorDelegate" >&6; }
33294else
33295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33296$as_echo "no" >&6; }
33297fi
33298
33299
cristy3ed852e2009-09-05 21:47:34 +000033300# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33301set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033303$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033304if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033305 $as_echo_n "(cached) " >&6
33306else
33307 case $WMFDecodeDelegate in
33308 [\\/]* | ?:[\\/]*)
33309 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33310 ;;
33311 *)
33312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33313for as_dir in $PATH
33314do
33315 IFS=$as_save_IFS
33316 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033317 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33319 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033321 break 2
33322 fi
33323done
cristy8b350f62009-11-15 23:12:43 +000033324 done
cristy3ed852e2009-09-05 21:47:34 +000033325IFS=$as_save_IFS
33326
33327 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33328 ;;
33329esac
33330fi
33331WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33332if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033334$as_echo "$WMFDecodeDelegate" >&6; }
33335else
cristy8b350f62009-11-15 23:12:43 +000033336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033337$as_echo "no" >&6; }
33338fi
33339
33340
33341# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33342set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033344$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033345if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033346 $as_echo_n "(cached) " >&6
33347else
33348 case $WWWDecodeDelegate in
33349 [\\/]* | ?:[\\/]*)
33350 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33351 ;;
33352 *)
33353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33354for as_dir in $PATH
33355do
33356 IFS=$as_save_IFS
33357 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033358 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33360 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033362 break 2
33363 fi
33364done
cristy8b350f62009-11-15 23:12:43 +000033365 done
cristy3ed852e2009-09-05 21:47:34 +000033366IFS=$as_save_IFS
33367
33368 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33369 ;;
33370esac
33371fi
33372WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33373if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033375$as_echo "$WWWDecodeDelegate" >&6; }
33376else
cristy8b350f62009-11-15 23:12:43 +000033377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033378$as_echo "no" >&6; }
33379fi
33380
33381
33382# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33383set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033385$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033386if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033387 $as_echo_n "(cached) " >&6
33388else
33389 case $XPSDelegate in
33390 [\\/]* | ?:[\\/]*)
33391 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33392 ;;
33393 *)
33394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33395for as_dir in $PATH
33396do
33397 IFS=$as_save_IFS
33398 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033399 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33401 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033403 break 2
33404 fi
33405done
cristy8b350f62009-11-15 23:12:43 +000033406 done
cristy3ed852e2009-09-05 21:47:34 +000033407IFS=$as_save_IFS
33408
33409 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33410 ;;
33411esac
33412fi
33413XPSDelegate=$ac_cv_path_XPSDelegate
33414if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033416$as_echo "$XPSDelegate" >&6; }
33417else
cristy8b350f62009-11-15 23:12:43 +000033418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033419$as_echo "no" >&6; }
33420fi
33421
33422
33423# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33424set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033426$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033427if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033428 $as_echo_n "(cached) " >&6
33429else
33430 case $ZipDelegate in
33431 [\\/]* | ?:[\\/]*)
33432 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33433 ;;
33434 *)
33435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33436for as_dir in $PATH
33437do
33438 IFS=$as_save_IFS
33439 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033440 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33442 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033444 break 2
33445 fi
33446done
cristy8b350f62009-11-15 23:12:43 +000033447 done
cristy3ed852e2009-09-05 21:47:34 +000033448IFS=$as_save_IFS
33449
33450 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33451 ;;
33452esac
33453fi
33454ZipDelegate=$ac_cv_path_ZipDelegate
33455if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033457$as_echo "$ZipDelegate" >&6; }
33458else
cristy8b350f62009-11-15 23:12:43 +000033459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033460$as_echo "no" >&6; }
33461fi
33462
33463
33464
33465# Prefer lpr to lp; lp needs options tacked on.
33466if test "$LPRDelegate" != no; then
33467 PrintDelegate="$LPRDelegate"
33468else
33469 PrintDelegate="$LPDelegate -c -s"
33470fi
33471
33472
33473# Installed ImageMagick utiltity paths
33474ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33475DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33476MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33477
33478# Set delegate booleans
33479have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33480have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33481have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33482have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33483have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033484have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033485have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33486have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033487have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33488have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33489
33490#
33491# Test for font directories
33492#
33493type_include_files=''
33494
cristy430a7312010-01-21 20:44:04 +000033495# Dejavu fonts.
33496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33497$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33498dejavu_font_dir=''
33499if test "${with_dejavu_font_dir}" != 'default'; then
33500 dejavu_font_dir="${with_dejavu_font_dir}/"
33501else
33502 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33503 if test -f "${font_dir}DejaVuSerif.ttf"; then
33504 dejavu_font_dir="${font_dir}"
33505 break 1
33506 fi
33507 done
33508fi
33509if test "${dejavu_font_dir}x" != 'x'; then
33510 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
33511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
33512$as_echo "$dejavu_font_dir" >&6; }
33513else
33514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33515$as_echo "not found!" >&6; };
33516fi
33517
33518
cristy3ed852e2009-09-05 21:47:34 +000033519# Windows
33520windows_font_dir=''
33521if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33522 windows_font_dir="${with_windows_font_dir}/"
33523fi
cristy430a7312010-01-21 20:44:04 +000033524if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033525 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33526 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33527 fi
33528 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33529 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33530 fi
33531 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33532 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33533 fi
33534fi
cristy430a7312010-01-21 20:44:04 +000033535if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033536 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33537fi
33538
33539
33540# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000033541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000033542$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33543ghostscript_font_dir=''
33544if test "${with_gs_font_dir}" != 'default'; then
33545 ghostscript_font_dir="${with_gs_font_dir}/"
33546else
33547 if test "${native_win32_build}" = 'yes'; then
33548 # Native Windows Build
33549 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33550 if test -f "${font_dir}a010013l.pfb"; then
33551 ghostscript_font_dir="$font_dir"
33552 break 1
33553 fi
33554 done
33555 if test "${PSDelegate}" != 'gswin32c'; then
33556 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33557 fi
33558 else
33559 # Linux / Mac OS X / Unix Build
33560 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
33561 if test -f "${font_dir}a010013l.pfb"; then
33562 ghostscript_font_dir="${font_dir}"
33563 break 1
33564 fi
33565 done
33566 if test "${ghostscript_font_dir}x" = 'x'; then
33567 if test "$PSDelegate" != 'gs'; then
33568 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33569 fi
33570 fi
33571 fi
33572fi
33573if test "${ghostscript_font_dir}x" != 'x'; then
33574 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000033575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000033576$as_echo "$ghostscript_font_dir" >&6; }
33577else
cristy8b350f62009-11-15 23:12:43 +000033578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000033579$as_echo "not found!" >&6; };
33580fi
33581
33582case "${build_os}" in
33583 mingw* )
33584 PSDelegate=`$WinPathScript "$PSDelegate" 1`
33585 ;;
33586esac
33587
33588
33589
33590#
33591# Handle case where user doesn't want frozen paths
33592#
33593if test "$with_frozenpaths" != 'yes'; then
33594 # Re-set delegate definitions to default (no paths)
33595 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033596 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
33597 BZIPDelegate="$BZIPDelegateDefault"
33598 BrowseDelegate="$BrowseDelegateDefault"
33599 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
33600 CatDelegate="$CatDelegateDefault"
33601 ConvertDelegate="$ConvertDelegateDefault"
33602 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
33603 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
33604 EchoDelegate="$EchoDelegateDefault"
33605 EditorDelegate="$EditorDelegateDefault"
33606 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
33607 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
33608 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
33609 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
33610 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
33611 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
33612 LPDelegate="$LPDelegateDefault"
33613 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
33614 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
33615 LaunchDelegate="$LaunchDelegateDefault"
33616 MANDelegate="$MANDelegateDefault"
33617 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
33618 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033619 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000033620 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
33621 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033622 PCLDelegate="$PCLDelegateDefault"
33623 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
33624 POVDelegate="$POVDelegateDefault"
33625 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033626 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
33627 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000033628 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033629 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
33630 ShowImageDelegate="$ShowImageDelegateDefault"
33631 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000033632 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033633 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
33634 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
33635 XPSDelegate="$XPSDelegateDefault"
33636 ZipDelegate="$ZipDelegateDefault"
33637fi
33638
33639# Delegate substitutions
33640
33641
33642
33643
33644
33645
33646
33647
33648
33649
33650
33651
33652
33653
33654
33655
33656
33657
33658
33659
33660
33661
33662
33663
33664
33665
33666
33667
33668
33669
33670
33671
33672
33673
33674
33675
33676
33677
33678
33679
33680
33681
33682#
33683# RPM support.
33684#
33685RPM=''
33686for ac_prog in gnutar gtar tar
33687do
33688 # Extract the first word of "$ac_prog", so it can be a program name with args.
33689set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033691$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033692if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033693 $as_echo_n "(cached) " >&6
33694else
33695 if test -n "$TAR"; then
33696 ac_cv_prog_TAR="$TAR" # Let the user override the test.
33697else
33698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33699for as_dir in $PATH
33700do
33701 IFS=$as_save_IFS
33702 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033703 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33705 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033707 break 2
33708 fi
33709done
cristy8b350f62009-11-15 23:12:43 +000033710 done
cristy3ed852e2009-09-05 21:47:34 +000033711IFS=$as_save_IFS
33712
33713fi
33714fi
33715TAR=$ac_cv_prog_TAR
33716if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000033717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000033718$as_echo "$TAR" >&6; }
33719else
cristy8b350f62009-11-15 23:12:43 +000033720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033721$as_echo "no" >&6; }
33722fi
33723
33724
33725 test -n "$TAR" && break
33726done
33727
33728for ac_prog in perl
33729do
33730 # Extract the first word of "$ac_prog", so it can be a program name with args.
33731set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033733$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033734if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033735 $as_echo_n "(cached) " >&6
33736else
33737 if test -n "$PERL"; then
33738 ac_cv_prog_PERL="$PERL" # Let the user override the test.
33739else
33740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33741for as_dir in $PATH
33742do
33743 IFS=$as_save_IFS
33744 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033745 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33747 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033749 break 2
33750 fi
33751done
cristy8b350f62009-11-15 23:12:43 +000033752 done
cristy3ed852e2009-09-05 21:47:34 +000033753IFS=$as_save_IFS
33754
33755fi
33756fi
33757PERL=$ac_cv_prog_PERL
33758if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033760$as_echo "$PERL" >&6; }
33761else
cristy8b350f62009-11-15 23:12:43 +000033762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033763$as_echo "no" >&6; }
33764fi
33765
33766
33767 test -n "$PERL" && break
33768done
33769
33770for ac_prog in rpmbuild rpm
33771do
33772 # Extract the first word of "$ac_prog", so it can be a program name with args.
33773set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033775$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033776if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033777 $as_echo_n "(cached) " >&6
33778else
33779 if test -n "$RPM"; then
33780 ac_cv_prog_RPM="$RPM" # Let the user override the test.
33781else
33782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33783for as_dir in $PATH
33784do
33785 IFS=$as_save_IFS
33786 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033787 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33789 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033791 break 2
33792 fi
33793done
cristy8b350f62009-11-15 23:12:43 +000033794 done
cristy3ed852e2009-09-05 21:47:34 +000033795IFS=$as_save_IFS
33796
33797fi
33798fi
33799RPM=$ac_cv_prog_RPM
33800if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000033801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000033802$as_echo "$RPM" >&6; }
33803else
cristy8b350f62009-11-15 23:12:43 +000033804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033805$as_echo "no" >&6; }
33806fi
33807
33808
33809 test -n "$RPM" && break
33810done
33811
33812
cristy73bd4a52010-10-05 11:24:23 +000033813ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
33814
33815
33816AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
33817
33818
33819AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
33820
33821
33822AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
33823
33824
33825 if test "x$RPM" != "x" ; then
33826 RPM_DELEGATE_TRUE=
33827 RPM_DELEGATE_FALSE='#'
33828else
33829 RPM_DELEGATE_TRUE='#'
33830 RPM_DELEGATE_FALSE=
33831fi
33832
cristy3ed852e2009-09-05 21:47:34 +000033833
33834#
33835# 7ZIP support (http://p7zip.sourceforge.net/)
33836#
33837P7ZIP=''
33838for ac_prog in 7za
33839do
33840 # Extract the first word of "$ac_prog", so it can be a program name with args.
33841set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033843$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033844if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033845 $as_echo_n "(cached) " >&6
33846else
33847 if test -n "$P7ZIP"; then
33848 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
33849else
33850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33851for as_dir in $PATH
33852do
33853 IFS=$as_save_IFS
33854 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033855 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33857 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033859 break 2
33860 fi
33861done
cristy8b350f62009-11-15 23:12:43 +000033862 done
cristy3ed852e2009-09-05 21:47:34 +000033863IFS=$as_save_IFS
33864
33865fi
33866fi
33867P7ZIP=$ac_cv_prog_P7ZIP
33868if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000033869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000033870$as_echo "$P7ZIP" >&6; }
33871else
cristy8b350f62009-11-15 23:12:43 +000033872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033873$as_echo "no" >&6; }
33874fi
33875
33876
33877 test -n "$P7ZIP" && break
33878done
33879
33880
cristy73bd4a52010-10-05 11:24:23 +000033881 if test "x$P7ZIP" != "x" ; then
33882 P7ZIP_DELEGATE_TRUE=
33883 P7ZIP_DELEGATE_FALSE='#'
33884else
33885 P7ZIP_DELEGATE_TRUE='#'
33886 P7ZIP_DELEGATE_FALSE=
33887fi
33888
cristy3ed852e2009-09-05 21:47:34 +000033889
33890#
33891# ZIP support (http://www.info-zip.org/Zip.html)
33892#
33893ZIP=''
33894for ac_prog in zip
33895do
33896 # Extract the first word of "$ac_prog", so it can be a program name with args.
33897set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033899$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033900if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033901 $as_echo_n "(cached) " >&6
33902else
33903 if test -n "$ZIP"; then
33904 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
33905else
33906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33907for as_dir in $PATH
33908do
33909 IFS=$as_save_IFS
33910 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033911 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33913 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033915 break 2
33916 fi
33917done
cristy8b350f62009-11-15 23:12:43 +000033918 done
cristy3ed852e2009-09-05 21:47:34 +000033919IFS=$as_save_IFS
33920
33921fi
33922fi
33923ZIP=$ac_cv_prog_ZIP
33924if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000033925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000033926$as_echo "$ZIP" >&6; }
33927else
cristy8b350f62009-11-15 23:12:43 +000033928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033929$as_echo "no" >&6; }
33930fi
33931
33932
33933 test -n "$ZIP" && break
33934done
33935
33936
cristy73bd4a52010-10-05 11:24:23 +000033937 if test "x$ZIP" != "x" ; then
33938 ZIP_DELEGATE_TRUE=
33939 ZIP_DELEGATE_FALSE='#'
33940else
33941 ZIP_DELEGATE_TRUE='#'
33942 ZIP_DELEGATE_FALSE=
33943fi
33944
cristy3ed852e2009-09-05 21:47:34 +000033945
33946#
33947# GhostPCL related configuration.
33948#
33949PCLColorDevice=ppmraw
33950PCLCMYKDevice=bmpsep8
33951PCLMonoDevice=pbmraw
33952if test -z "$PCLVersion"; then
33953 PCLVersion='unknown'
33954fi
33955if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033957$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033959$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033961$as_echo "" >&6; }
33962 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000033963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033964$as_echo_n "checking for pcl color device... " >&6; }
33965 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33966 :
33967 else
33968 PCLColorDevice=ppmraw
33969 fi
cristy8b350f62009-11-15 23:12:43 +000033970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033971$as_echo "$PCLColorDevice" >&6; }
33972
33973 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033975$as_echo_n "checking for pcl CMYK device... " >&6; }
33976 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33977 :
33978 else
33979 PCLCMYKDevice=$PCLColorDevice
33980 fi
cristy8b350f62009-11-15 23:12:43 +000033981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033982$as_echo "$PCLCMYKDevice" >&6; }
33983
33984 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033986$as_echo_n "checking for pcl mono device... " >&6; }
33987 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33988 :
33989 else
33990 PCLMonoDevice=$PCLColorDevice
33991 fi
cristy8b350f62009-11-15 23:12:43 +000033992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033993$as_echo "$PCLMonoDevice" >&6; }
33994fi
33995
33996
33997
33998
33999
34000
34001#
34002# GhostXPS related configuration.
34003#
34004XPSColorDevice=ppmraw
34005XPSCMYKDevice=bmpsep8
34006XPSMonoDevice=pbmraw
34007if test -z "$XPSVersion"; then
34008 XPSVersion='unknown'
34009fi
34010if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000034012$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034014$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000034015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000034016$as_echo "" >&6; }
34017 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034019$as_echo_n "checking for xps color device... " >&6; }
34020 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34021 :
34022 else
34023 XPSColorDevice=ppmraw
34024 fi
cristy8b350f62009-11-15 23:12:43 +000034025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034026$as_echo "$XPSColorDevice" >&6; }
34027
34028 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034030$as_echo_n "checking for xps CMYK device... " >&6; }
34031 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34032 :
34033 else
34034 XPSCMYKDevice=$XPSColorDevice
34035 fi
cristy8b350f62009-11-15 23:12:43 +000034036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034037$as_echo "$XPSCMYKDevice" >&6; }
34038
34039 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034041$as_echo_n "checking for xps mono device... " >&6; }
34042 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34043 :
34044 else
34045 XPSMonoDevice=$XPSColorDevice
34046 fi
cristy8b350f62009-11-15 23:12:43 +000034047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034048$as_echo "$XPSMonoDevice" >&6; }
34049fi
34050
34051
34052
34053
34054
34055
34056#
34057# Ghostscript related configuration.
34058#
cristya97426c2011-02-04 01:41:27 +000034059GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034060GSColorDevice=pnmraw
34061GSCMYKDevice=pam
34062GSMonoDevice=pbmraw
34063GSPDFDevice=pdfwrite
34064GSPSDevice=pswrite
34065GSEPSDevice=epswrite
34066GSVersion='unknown'
34067if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000034069$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034071$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000034072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000034073$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034075$as_echo_n "checking for Ghostscript version... " >&6; }
34076 if GSVersion=`$PSDelegate --version`; then
34077 :
34078 else
34079 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34080 fi
cristy8b350f62009-11-15 23:12:43 +000034081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000034082$as_echo "$GSVersion" >&6; }
34083
34084 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034086$as_echo_n "checking for gs alpha device... " >&6; }
34087 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34088 :
34089 else
34090 GSAlphaDevice=pnmraw
34091 fi
cristy8b350f62009-11-15 23:12:43 +000034092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034093$as_echo "$GSAlphaDevice" >&6; }
34094
34095 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034097$as_echo_n "checking for gs color device... " >&6; }
34098 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34099 :
34100 else
34101 GSColorDevice=pnmraw
34102 fi
cristy8b350f62009-11-15 23:12:43 +000034103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034104$as_echo "$GSColorDevice" >&6; }
34105
34106 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034108$as_echo_n "checking for gs CMYK device... " >&6; }
34109 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34110 :
34111 else
34112 GSCMYKDevice=bmpsep8
34113 fi
cristy8b350f62009-11-15 23:12:43 +000034114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034115$as_echo "$GSCMYKDevice" >&6; }
34116
34117 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034119$as_echo_n "checking for gs mono device... " >&6; }
34120 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34121 :
34122 else
34123 GSMonoDevice=$GSColorDevice
34124 fi
cristy8b350f62009-11-15 23:12:43 +000034125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034126$as_echo "$GSMonoDevice" >&6; }
34127
34128 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034130$as_echo_n "checking for gs PDF writing device... " >&6; }
34131 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34132 :
34133 else
34134 GSPDFDevice=nodevice
34135 fi
cristy8b350f62009-11-15 23:12:43 +000034136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034137$as_echo "$GSPDFDevice" >&6; }
34138
34139 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034141$as_echo_n "checking for gs PS writing device... " >&6; }
34142 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34143 :
34144 else
34145 GSPSDevice=nodevice
34146 fi
cristy8b350f62009-11-15 23:12:43 +000034147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034148$as_echo "$GSPSDevice" >&6; }
34149
34150 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034152$as_echo_n "checking for gs EPS writing device... " >&6; }
34153 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34154 :
34155 else
34156 GSEPSDevice=nodevice
34157 fi
cristy8b350f62009-11-15 23:12:43 +000034158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000034159$as_echo "$GSEPSDevice" >&6; }
34160fi
34161
34162
34163
34164
34165
34166
34167
34168
34169
34170
34171#
34172# PerlMagick-related configuration
34173#
34174
34175# Look for PERL if PerlMagick requested
34176# If name/path of desired PERL interpreter is specified, look for that one first
34177have_perl='no'
34178if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000034179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000034180$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034182$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000034183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000034184$as_echo "" >&6; }
34185 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034187$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034188if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034189 $as_echo_n "(cached) " >&6
34190else
34191 ac_cv_path_PERL="$with_perl"
34192fi
cristy8b350f62009-11-15 23:12:43 +000034193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034194$as_echo "$ac_cv_path_PERL" >&6; };
34195 PERL=$ac_cv_path_PERL
34196 have_perl="$ac_cv_path_PERL"
34197 else
34198 for ac_prog in perl perl5
34199do
34200 # Extract the first word of "$ac_prog", so it can be a program name with args.
34201set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034203$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034204if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034205 $as_echo_n "(cached) " >&6
34206else
34207 case $PERL in
34208 [\\/]* | ?:[\\/]*)
34209 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34210 ;;
34211 *)
34212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34213for as_dir in $PATH
34214do
34215 IFS=$as_save_IFS
34216 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034217 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34219 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034221 break 2
34222 fi
34223done
cristy8b350f62009-11-15 23:12:43 +000034224 done
cristy3ed852e2009-09-05 21:47:34 +000034225IFS=$as_save_IFS
34226
34227 ;;
34228esac
34229fi
34230PERL=$ac_cv_path_PERL
34231if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034233$as_echo "$PERL" >&6; }
34234else
cristy8b350f62009-11-15 23:12:43 +000034235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034236$as_echo "no" >&6; }
34237fi
34238
34239
34240 test -n "$PERL" && break
34241done
34242 if test "$ac_cv_path_PERL"; then
34243 have_perl="$ac_cv_path_PERL"
34244 fi
34245 fi
34246fi
34247
cristy949301e2010-01-06 01:38:40 +000034248if test "$with_perl" != 'yes' ; then
34249 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34250fi
34251
34252PERL_SUPPORTS_DESTDIR='no'
34253
cristy3ed852e2009-09-05 21:47:34 +000034254with_perl_static='no'
34255with_perl_dynamic='no'
34256if test "$have_perl" != 'no'; then
34257 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34258 with_perl_static='yes'
34259 fi
34260 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34261 with_perl_dynamic='yes'
34262 fi
34263 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034264
34265
34266
34267
34268 if test -n "$PERL"; then :
34269
34270 ax_perl_version="5.8.1"
34271
34272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34273$as_echo_n "checking for perl version... " >&6; }
34274
34275 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34276
34277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34278$as_echo "$perl_version" >&6; }
34279
34280 PERL_VERSION=$perl_version
34281
34282
34283
34284
34285
34286 # Used to indicate true or false condition
34287 ax_compare_version=false
34288
34289 # Convert the two version strings to be compared into a format that
34290 # allows a simple string comparison. The end result is that a version
34291 # string of the form 1.12.5-r617 will be converted to the form
34292 # 0001001200050617. In other words, each number is zero padded to four
34293 # digits, and non digits are removed.
34294
34295 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34296 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34297 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34298 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34299 -e 's/[^0-9]//g'`
34300
34301
34302 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34303 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34304 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34305 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34306 -e 's/[^0-9]//g'`
34307
34308
34309 ax_compare_version=`echo "x$ax_compare_version_A
34310x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34311
34312
34313
34314 if test "$ax_compare_version" = "true" ; then
34315
34316 :
34317 PERL_SUPPORTS_DESTDIR='yes'
34318
34319 else
34320 :
34321 PERL_SUPPORTS_DESTDIR='no'
34322
34323 fi
34324
34325
34326else
34327
34328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34329$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34330 PERL_SUPPORTS_DESTDIR='no'
34331
cristy3ed852e2009-09-05 21:47:34 +000034332fi
cristy73bd4a52010-10-05 11:24:23 +000034333
34334fi
34335 if test "$have_perl" != 'no'; then
34336 WITH_PERL_TRUE=
34337 WITH_PERL_FALSE='#'
34338else
34339 WITH_PERL_TRUE='#'
34340 WITH_PERL_FALSE=
34341fi
34342
34343 if test $with_perl_static = 'yes'; then
34344 WITH_PERL_STATIC_TRUE=
34345 WITH_PERL_STATIC_FALSE='#'
34346else
34347 WITH_PERL_STATIC_TRUE='#'
34348 WITH_PERL_STATIC_FALSE=
34349fi
34350
34351 if test $with_perl_dynamic = 'yes'; then
34352 WITH_PERL_DYNAMIC_TRUE=
34353 WITH_PERL_DYNAMIC_FALSE='#'
34354else
34355 WITH_PERL_DYNAMIC_TRUE='#'
34356 WITH_PERL_DYNAMIC_FALSE=
34357fi
34358
cristy3ed852e2009-09-05 21:47:34 +000034359
34360
34361# Determine path to pick up MagickCore library from for use with building PerlMagick
34362MAGICKCORE_PATH="${LIB_DIR}"
34363if test $with_perl_static = 'yes'; then
34364 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34365 libtool_objdir=$objdir
34366
34367 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034368 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034369fi
34370
34371
34372# Create a simple string containing format names for all delegate libraries
34373DELEGATES=''
34374if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34375if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34376if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34377if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34378if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34379if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34380if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34381if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34382if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34383if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34384if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34385if test "$have_jpeg" = 'yes'; then
34386 DELEGATES="$DELEGATES jpeg";
34387 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34388fi
34389if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034390if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034391if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34392if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034393if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034394if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34395if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34396if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34397if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34398if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34399if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34400if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34401if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34402if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34403
34404
34405
34406#
34407# Handle special compiler flags
34408#
34409
34410# Add '-p' if prof source profiling support enabled
34411if test "$enable_prof" = 'yes'; then
34412 CFLAGS="-p $CFLAGS"
34413 CXXFLAGS="-p $CXXFLAGS"
34414 LDFLAGS="-p $LDFLAGS"
34415fi
34416
34417# Add '-pg' if gprof source profiling support enabled
34418if test "$enable_gprof" = 'yes'; then
34419 CFLAGS="-pg $CFLAGS"
34420 CXXFLAGS="-pg $CXXFLAGS"
34421 LDFLAGS="-pg $LDFLAGS"
34422fi
34423
34424# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34425# This is a gcc-specific feature
34426if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034428$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034429if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034430 $as_echo_n "(cached) " >&6
34431else
34432 ac_check_lib_save_LIBS=$LIBS
34433LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034435/* end confdefs.h. */
34436
34437/* Override any GCC internal prototype to avoid an error.
34438 Use char because int might match the return type of a GCC
34439 builtin and then its argument prototype would still apply. */
34440#ifdef __cplusplus
34441extern "C"
34442#endif
34443char _gcov_init ();
34444int
34445main ()
34446{
34447return _gcov_init ();
34448 ;
34449 return 0;
34450}
34451_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034452if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034453 ac_cv_lib_gcov__gcov_init=yes
34454else
cristy8b350f62009-11-15 23:12:43 +000034455 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034456fi
cristy8b350f62009-11-15 23:12:43 +000034457rm -f core conftest.err conftest.$ac_objext \
34458 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034459LIBS=$ac_check_lib_save_LIBS
34460fi
cristy8b350f62009-11-15 23:12:43 +000034461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034462$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034463if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034464 cat >>confdefs.h <<_ACEOF
34465#define HAVE_LIBGCOV 1
34466_ACEOF
34467
34468 LIBS="-lgcov $LIBS"
34469
34470fi
34471
cristy8b350f62009-11-15 23:12:43 +000034472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034473$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034474if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034475 $as_echo_n "(cached) " >&6
34476else
34477 ac_check_lib_save_LIBS=$LIBS
34478LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034480/* end confdefs.h. */
34481
34482/* Override any GCC internal prototype to avoid an error.
34483 Use char because int might match the return type of a GCC
34484 builtin and then its argument prototype would still apply. */
34485#ifdef __cplusplus
34486extern "C"
34487#endif
34488char __gcov_init ();
34489int
34490main ()
34491{
34492return __gcov_init ();
34493 ;
34494 return 0;
34495}
34496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034497if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034498 ac_cv_lib_gcov___gcov_init=yes
34499else
cristy8b350f62009-11-15 23:12:43 +000034500 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034501fi
cristy8b350f62009-11-15 23:12:43 +000034502rm -f core conftest.err conftest.$ac_objext \
34503 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034504LIBS=$ac_check_lib_save_LIBS
34505fi
cristy8b350f62009-11-15 23:12:43 +000034506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034507$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034508if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034509 cat >>confdefs.h <<_ACEOF
34510#define HAVE_LIBGCOV 1
34511_ACEOF
34512
34513 LIBS="-lgcov $LIBS"
34514
34515fi
34516
34517 case "$target_os" in
34518 darwin*)
34519 OSX_GCOV_LDFLAG="-Wl,-single_module"
34520 ;;
34521 *)
34522 OSX_GCOV_LDFLAG=""
34523 ;;
34524 esac
34525
34526 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34527 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34528 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34529fi
34530
34531#
34532# Build library dependency list for libMagickCore
34533#
34534
34535MAGICK_LIBLTDL='' # Libltdl for build
34536MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
34537MAGICK_LTDLDEPS='' # extra libltdl dependencies
34538if test "$with_ltdl" != 'no'
34539then
34540 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
34541 MAGICK_API_LIBLTDL='-lltdl'
34542 fi
34543 MAGICK_LIBLTDL=${LIBLTDL}
34544 MAGICK_LTDLDEPS=${LTDLDEPS}
34545fi
34546
34547
34548
34549if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000034550 MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000034551else
cristyb1860752011-03-14 00:27:46 +000034552 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 $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000034553fi
34554
34555
34556#
34557# Remove extraneous spaces from output variables (asthetic)
34558#
34559X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
34560X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
34561X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
34562X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
34563
34564CC=`echo $CC | sed -e 's/ */ /g'`
34565CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
34566CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
34567CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
34568DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34569DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
34570LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
34571TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34572MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
34573#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34574
34575# Pass only user-provided LIBS as "global" libraries
34576LIBS=$USER_LIBS
34577
34578#AC_SUBST(CPPFLAGS)
34579
34580#AC_SUBST(LDFLAGS)
34581#AC_SUBST(X_PRE_LIBS)
34582#AC_SUBST(X_LIBS)
34583#AC_SUBST(X_EXTRA_LIBS)
34584
34585MAGICK_CFLAGS=$CFLAGS
34586MAGICK_CXXFLAGS="$CXXFLAGS"
34587MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
34588MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
34589MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
34590MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
34591
34592
34593
34594
34595
34596
34597
34598
cristyfd9dcd42010-08-08 18:07:02 +000034599
cristy3ed852e2009-09-05 21:47:34 +000034600# Set configured scripts to executable.
34601ac_config_commands="$ac_config_commands default"
34602
34603ac_config_commands="$ac_config_commands MagickCore-config.in"
34604
34605ac_config_commands="$ac_config_commands Magick-config.in"
34606
34607ac_config_commands="$ac_config_commands MagickWand-config.in"
34608
34609ac_config_commands="$ac_config_commands Wand-config.in"
34610
34611ac_config_commands="$ac_config_commands Magick++-config.in"
34612
34613ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
34614
34615
cristy8b350f62009-11-15 23:12:43 +000034616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000034617$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000034619$as_echo "Update ImageMagick configuration" >&6; }
34620cat >confcache <<\_ACEOF
34621# This file is a shell script that caches the results of configure
34622# tests run on this system so they can be shared between configure
34623# scripts and configure runs, see configure's option --config-cache.
34624# It is not useful on other systems. If it contains results you don't
34625# want to keep, you may remove or edit it.
34626#
34627# config.status only pays attention to the cache file if you give it
34628# the --recheck option to rerun configure.
34629#
34630# `ac_cv_env_foo' variables (set or unset) will be overridden when
34631# loading this file, other *unset* `ac_cv_foo' will be assigned the
34632# following values.
34633
34634_ACEOF
34635
34636# The following way of writing the cache mishandles newlines in values,
34637# but we know of no workaround that is simple, portable, and efficient.
34638# So, we kill variables containing newlines.
34639# Ultrix sh set writes to stderr and can't be redirected directly,
34640# and sets the high bit in the cache file unless we assign to the vars.
34641(
34642 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34643 eval ac_val=\$$ac_var
34644 case $ac_val in #(
34645 *${as_nl}*)
34646 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000034647 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000034648$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34649 esac
34650 case $ac_var in #(
34651 _ | IFS | as_nl) ;; #(
34652 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000034653 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000034654 esac ;;
34655 esac
34656 done
34657
34658 (set) 2>&1 |
34659 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34660 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000034661 # `set' does not quote correctly, so add quotes: double-quote
34662 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000034663 sed -n \
34664 "s/'/'\\\\''/g;
34665 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34666 ;; #(
34667 *)
34668 # `set' quotes correctly as required by POSIX, so do not add quotes.
34669 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34670 ;;
34671 esac |
34672 sort
34673) |
34674 sed '
34675 /^ac_cv_env_/b end
34676 t clear
34677 :clear
34678 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34679 t end
34680 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34681 :end' >>confcache
34682if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34683 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000034684 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000034685 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034686$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000034687 if test ! -f "$cache_file" || test -h "$cache_file"; then
34688 cat confcache >"$cache_file"
34689 else
34690 case $cache_file in #(
34691 */* | ?:*)
34692 mv -f confcache "$cache_file"$$ &&
34693 mv -f "$cache_file"$$ "$cache_file" ;; #(
34694 *)
34695 mv -f confcache "$cache_file" ;;
34696 esac
34697 fi
34698 fi
cristy3ed852e2009-09-05 21:47:34 +000034699 else
cristy8b350f62009-11-15 23:12:43 +000034700 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034701$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34702 fi
34703fi
34704rm -f confcache
34705
34706test "x$prefix" = xNONE && prefix=$ac_default_prefix
34707# Let make expand exec_prefix.
34708test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34709
34710DEFS=-DHAVE_CONFIG_H
34711
34712ac_libobjs=
34713ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000034714U=
cristy3ed852e2009-09-05 21:47:34 +000034715for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34716 # 1. Remove the extension, and $U if already installed.
34717 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34718 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34719 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34720 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000034721 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34722 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000034723done
34724LIBOBJS=$ac_libobjs
34725
34726LTLIBOBJS=$ac_ltlibobjs
34727
34728
cristy73bd4a52010-10-05 11:24:23 +000034729 if test -n "$EXEEXT"; then
34730 am__EXEEXT_TRUE=
34731 am__EXEEXT_FALSE='#'
34732else
34733 am__EXEEXT_TRUE='#'
34734 am__EXEEXT_FALSE=
34735fi
cristy3ed852e2009-09-05 21:47:34 +000034736
cristy73bd4a52010-10-05 11:24:23 +000034737if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034738 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034739Usually this means the macro was only invoked conditionally." "$LINENO" 5
34740fi
34741if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034742 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034743Usually this means the macro was only invoked conditionally." "$LINENO" 5
34744fi
34745if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034746 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034747Usually this means the macro was only invoked conditionally." "$LINENO" 5
34748fi
34749if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034750 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034751Usually this means the macro was only invoked conditionally." "$LINENO" 5
34752fi
34753if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034754 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034755Usually this means the macro was only invoked conditionally." "$LINENO" 5
34756fi
34757if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034758 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034759Usually this means the macro was only invoked conditionally." "$LINENO" 5
34760fi
34761if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034762 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034763Usually this means the macro was only invoked conditionally." "$LINENO" 5
34764fi
34765if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034766 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034767Usually this means the macro was only invoked conditionally." "$LINENO" 5
34768fi
cristy73bd4a52010-10-05 11:24:23 +000034769if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034770 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034771Usually this means the macro was only invoked conditionally." "$LINENO" 5
34772fi
34773if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034774 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034775Usually this means the macro was only invoked conditionally." "$LINENO" 5
34776fi
34777LT_CONFIG_H=config/config.h
34778
34779 _ltdl_libobjs=
34780 _ltdl_ltlibobjs=
34781 if test -n "$_LT_LIBOBJS"; then
34782 # Remove the extension.
34783 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
34784 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
34785 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
34786 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
34787 done
34788 fi
34789 ltdl_LIBOBJS=$_ltdl_libobjs
34790
34791 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
34792
34793
34794if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034795 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034796Usually this means the macro was only invoked conditionally." "$LINENO" 5
34797fi
34798if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034799 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034800Usually this means the macro was only invoked conditionally." "$LINENO" 5
34801fi
34802if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034803 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034804Usually this means the macro was only invoked conditionally." "$LINENO" 5
34805fi
34806if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034807 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034808Usually this means the macro was only invoked conditionally." "$LINENO" 5
34809fi
34810
34811if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034812 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034813Usually this means the macro was only invoked conditionally." "$LINENO" 5
34814fi
34815if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034816 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034817Usually this means the macro was only invoked conditionally." "$LINENO" 5
34818fi
34819if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034820 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034821Usually this means the macro was only invoked conditionally." "$LINENO" 5
34822fi
34823if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034824 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034825Usually this means the macro was only invoked conditionally." "$LINENO" 5
34826fi
34827if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034828 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034829Usually this means the macro was only invoked conditionally." "$LINENO" 5
34830fi
34831if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034832 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034833Usually this means the macro was only invoked conditionally." "$LINENO" 5
34834fi
34835if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034836 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034837Usually this means the macro was only invoked conditionally." "$LINENO" 5
34838fi
34839if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034840 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034841Usually this means the macro was only invoked conditionally." "$LINENO" 5
34842fi
34843if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034844 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034845Usually this means the macro was only invoked conditionally." "$LINENO" 5
34846fi
34847if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034848 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034849Usually this means the macro was only invoked conditionally." "$LINENO" 5
34850fi
34851if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034852 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034853Usually this means the macro was only invoked conditionally." "$LINENO" 5
34854fi
34855if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034856 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034857Usually this means the macro was only invoked conditionally." "$LINENO" 5
34858fi
34859if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034860 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034861Usually this means the macro was only invoked conditionally." "$LINENO" 5
34862fi
34863if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034864 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034865Usually this means the macro was only invoked conditionally." "$LINENO" 5
34866fi
34867if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034868 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034869Usually this means the macro was only invoked conditionally." "$LINENO" 5
34870fi
34871if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034872 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034873Usually this means the macro was only invoked conditionally." "$LINENO" 5
34874fi
34875if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034876 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034877Usually this means the macro was only invoked conditionally." "$LINENO" 5
34878fi
34879if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034880 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034881Usually this means the macro was only invoked conditionally." "$LINENO" 5
34882fi
34883if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034884 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034885Usually this means the macro was only invoked conditionally." "$LINENO" 5
34886fi
34887if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034888 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034889Usually this means the macro was only invoked conditionally." "$LINENO" 5
34890fi
cristyfbb0ef02010-12-19 02:32:11 +000034891if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
34892 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
34893Usually this means the macro was only invoked conditionally." "$LINENO" 5
34894fi
cristy73bd4a52010-10-05 11:24:23 +000034895if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034896 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034897Usually this means the macro was only invoked conditionally." "$LINENO" 5
34898fi
34899if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034900 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034901Usually this means the macro was only invoked conditionally." "$LINENO" 5
34902fi
34903if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034904 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034905Usually this means the macro was only invoked conditionally." "$LINENO" 5
34906fi
34907if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034908 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034909Usually this means the macro was only invoked conditionally." "$LINENO" 5
34910fi
34911if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034912 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034913Usually this means the macro was only invoked conditionally." "$LINENO" 5
34914fi
cristyb1860752011-03-14 00:27:46 +000034915if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
34916 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
34917Usually this means the macro was only invoked conditionally." "$LINENO" 5
34918fi
cristy73bd4a52010-10-05 11:24:23 +000034919if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034920 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034921Usually this means the macro was only invoked conditionally." "$LINENO" 5
34922fi
34923if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034924 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034925Usually this means the macro was only invoked conditionally." "$LINENO" 5
34926fi
34927if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034928 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034929Usually this means the macro was only invoked conditionally." "$LINENO" 5
34930fi
34931if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034932 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034933Usually this means the macro was only invoked conditionally." "$LINENO" 5
34934fi
34935if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034936 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034937Usually this means the macro was only invoked conditionally." "$LINENO" 5
34938fi
34939if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034940 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034941Usually this means the macro was only invoked conditionally." "$LINENO" 5
34942fi
34943if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034944 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034945Usually this means the macro was only invoked conditionally." "$LINENO" 5
34946fi
34947if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034948 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034949Usually this means the macro was only invoked conditionally." "$LINENO" 5
34950fi
cristy3ed852e2009-09-05 21:47:34 +000034951
cristyda16f162011-02-19 23:52:17 +000034952: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000034953ac_write_fail=0
34954ac_clean_files_save=$ac_clean_files
34955ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000034956{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034957$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034958as_write_fail=0
34959cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000034960#! $SHELL
34961# Generated by $as_me.
34962# Run this file to recreate the current configuration.
34963# Compiler output produced by configure, useful for debugging
34964# configure, is in config.log if it exists.
34965
34966debug=false
34967ac_cs_recheck=false
34968ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000034969
cristy8b350f62009-11-15 23:12:43 +000034970SHELL=\${CONFIG_SHELL-$SHELL}
34971export SHELL
34972_ASEOF
34973cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34974## -------------------- ##
34975## M4sh Initialization. ##
34976## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000034977
34978# Be more Bourne compatible
34979DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000034980if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000034981 emulate sh
34982 NULLCMD=:
34983 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34984 # is contrary to our usage. Disable this feature.
34985 alias -g '${1+"$@"}'='"$@"'
34986 setopt NO_GLOB_SUBST
34987else
cristy8b350f62009-11-15 23:12:43 +000034988 case `(set -o) 2>/dev/null` in #(
34989 *posix*) :
34990 set -o posix ;; #(
34991 *) :
34992 ;;
cristy3ed852e2009-09-05 21:47:34 +000034993esac
cristy3ed852e2009-09-05 21:47:34 +000034994fi
34995
34996
cristy3ed852e2009-09-05 21:47:34 +000034997as_nl='
34998'
34999export as_nl
35000# Printing a long string crashes Solaris 7 /usr/bin/printf.
35001as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35002as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35003as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035004# Prefer a ksh shell builtin over an external printf program on Solaris,
35005# but without wasting forks for bash or zsh.
35006if test -z "$BASH_VERSION$ZSH_VERSION" \
35007 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35008 as_echo='print -r --'
35009 as_echo_n='print -rn --'
35010elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035011 as_echo='printf %s\n'
35012 as_echo_n='printf %s'
35013else
35014 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35015 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35016 as_echo_n='/usr/ucb/echo -n'
35017 else
35018 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35019 as_echo_n_body='eval
35020 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035021 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035022 *"$as_nl"*)
35023 expr "X$arg" : "X\\(.*\\)$as_nl";
35024 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35025 esac;
35026 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35027 '
35028 export as_echo_n_body
35029 as_echo_n='sh -c $as_echo_n_body as_echo'
35030 fi
35031 export as_echo_body
35032 as_echo='sh -c $as_echo_body as_echo'
35033fi
35034
35035# The user is always right.
35036if test "${PATH_SEPARATOR+set}" != set; then
35037 PATH_SEPARATOR=:
35038 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35039 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35040 PATH_SEPARATOR=';'
35041 }
35042fi
35043
cristy3ed852e2009-09-05 21:47:34 +000035044
35045# IFS
35046# We need space, tab and new line, in precisely that order. Quoting is
35047# there to prevent editors from complaining about space-tab.
35048# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35049# splitting by setting IFS to empty value.)
35050IFS=" "" $as_nl"
35051
35052# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035053as_myself=
cristy8b350f62009-11-15 23:12:43 +000035054case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035055 *[\\/]* ) as_myself=$0 ;;
35056 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35057for as_dir in $PATH
35058do
35059 IFS=$as_save_IFS
35060 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035061 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35062 done
cristy3ed852e2009-09-05 21:47:34 +000035063IFS=$as_save_IFS
35064
35065 ;;
35066esac
35067# We did not find ourselves, most probably we were run as `sh COMMAND'
35068# in which case we are not to be found in the path.
35069if test "x$as_myself" = x; then
35070 as_myself=$0
35071fi
35072if test ! -f "$as_myself"; then
35073 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035074 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035075fi
35076
cristy8b350f62009-11-15 23:12:43 +000035077# Unset variables that we do not need and which cause bugs (e.g. in
35078# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35079# suppresses any "Segmentation fault" message there. '((' could
35080# trigger a bug in pdksh 5.2.14.
35081for as_var in BASH_ENV ENV MAIL MAILPATH
35082do eval test x\${$as_var+set} = xset \
35083 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035084done
35085PS1='$ '
35086PS2='> '
35087PS4='+ '
35088
35089# NLS nuisances.
35090LC_ALL=C
35091export LC_ALL
35092LANGUAGE=C
35093export LANGUAGE
35094
cristy8b350f62009-11-15 23:12:43 +000035095# CDPATH.
35096(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35097
35098
cristy98dddb52010-11-04 00:30:15 +000035099# as_fn_error STATUS ERROR [LINENO LOG_FD]
35100# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035101# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35102# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035103# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035104as_fn_error ()
35105{
cristy98dddb52010-11-04 00:30:15 +000035106 as_status=$1; test $as_status -eq 0 && as_status=1
35107 if test "$4"; then
35108 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35109 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035110 fi
cristy98dddb52010-11-04 00:30:15 +000035111 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035112 as_fn_exit $as_status
35113} # as_fn_error
35114
35115
35116# as_fn_set_status STATUS
35117# -----------------------
35118# Set $? to STATUS, without forking.
35119as_fn_set_status ()
35120{
35121 return $1
35122} # as_fn_set_status
35123
35124# as_fn_exit STATUS
35125# -----------------
35126# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35127as_fn_exit ()
35128{
35129 set +e
35130 as_fn_set_status $1
35131 exit $1
35132} # as_fn_exit
35133
35134# as_fn_unset VAR
35135# ---------------
35136# Portably unset VAR.
35137as_fn_unset ()
35138{
35139 { eval $1=; unset $1;}
35140}
35141as_unset=as_fn_unset
35142# as_fn_append VAR VALUE
35143# ----------------------
35144# Append the text in VALUE to the end of the definition contained in VAR. Take
35145# advantage of any shell optimizations that allow amortized linear growth over
35146# repeated appends, instead of the typical quadratic growth present in naive
35147# implementations.
35148if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35149 eval 'as_fn_append ()
35150 {
35151 eval $1+=\$2
35152 }'
35153else
35154 as_fn_append ()
35155 {
35156 eval $1=\$$1\$2
35157 }
35158fi # as_fn_append
35159
35160# as_fn_arith ARG...
35161# ------------------
35162# Perform arithmetic evaluation on the ARGs, and store the result in the
35163# global $as_val. Take advantage of shells that can avoid forks. The arguments
35164# must be portable across $(()) and expr.
35165if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35166 eval 'as_fn_arith ()
35167 {
35168 as_val=$(( $* ))
35169 }'
35170else
35171 as_fn_arith ()
35172 {
35173 as_val=`expr "$@" || test $? -eq 1`
35174 }
35175fi # as_fn_arith
35176
35177
cristy3ed852e2009-09-05 21:47:34 +000035178if expr a : '\(a\)' >/dev/null 2>&1 &&
35179 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35180 as_expr=expr
35181else
35182 as_expr=false
35183fi
35184
35185if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35186 as_basename=basename
35187else
35188 as_basename=false
35189fi
35190
cristy8b350f62009-11-15 23:12:43 +000035191if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35192 as_dirname=dirname
35193else
35194 as_dirname=false
35195fi
cristy3ed852e2009-09-05 21:47:34 +000035196
cristy3ed852e2009-09-05 21:47:34 +000035197as_me=`$as_basename -- "$0" ||
35198$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35199 X"$0" : 'X\(//\)$' \| \
35200 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35201$as_echo X/"$0" |
35202 sed '/^.*\/\([^/][^/]*\)\/*$/{
35203 s//\1/
35204 q
35205 }
35206 /^X\/\(\/\/\)$/{
35207 s//\1/
35208 q
35209 }
35210 /^X\/\(\/\).*/{
35211 s//\1/
35212 q
35213 }
35214 s/.*/./; q'`
35215
cristy8b350f62009-11-15 23:12:43 +000035216# Avoid depending upon Character Ranges.
35217as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35218as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35219as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35220as_cr_digits='0123456789'
35221as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035222
35223ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035224case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035225-n*)
cristy8b350f62009-11-15 23:12:43 +000035226 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035227 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035228 xy) ECHO_C='\c';;
35229 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35230 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035231 esac;;
35232*)
35233 ECHO_N='-n';;
35234esac
cristy3ed852e2009-09-05 21:47:34 +000035235
35236rm -f conf$$ conf$$.exe conf$$.file
35237if test -d conf$$.dir; then
35238 rm -f conf$$.dir/conf$$.file
35239else
35240 rm -f conf$$.dir
35241 mkdir conf$$.dir 2>/dev/null
35242fi
35243if (echo >conf$$.file) 2>/dev/null; then
35244 if ln -s conf$$.file conf$$ 2>/dev/null; then
35245 as_ln_s='ln -s'
35246 # ... but there are two gotchas:
35247 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35248 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35249 # In both cases, we have to default to `cp -p'.
35250 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35251 as_ln_s='cp -p'
35252 elif ln conf$$.file conf$$ 2>/dev/null; then
35253 as_ln_s=ln
35254 else
35255 as_ln_s='cp -p'
35256 fi
35257else
35258 as_ln_s='cp -p'
35259fi
35260rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35261rmdir conf$$.dir 2>/dev/null
35262
cristy8b350f62009-11-15 23:12:43 +000035263
35264# as_fn_mkdir_p
35265# -------------
35266# Create "$as_dir" as a directory, including parents if necessary.
35267as_fn_mkdir_p ()
35268{
35269
35270 case $as_dir in #(
35271 -*) as_dir=./$as_dir;;
35272 esac
35273 test -d "$as_dir" || eval $as_mkdir_p || {
35274 as_dirs=
35275 while :; do
35276 case $as_dir in #(
35277 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35278 *) as_qdir=$as_dir;;
35279 esac
35280 as_dirs="'$as_qdir' $as_dirs"
35281 as_dir=`$as_dirname -- "$as_dir" ||
35282$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35283 X"$as_dir" : 'X\(//\)[^/]' \| \
35284 X"$as_dir" : 'X\(//\)$' \| \
35285 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35286$as_echo X"$as_dir" |
35287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35288 s//\1/
35289 q
35290 }
35291 /^X\(\/\/\)[^/].*/{
35292 s//\1/
35293 q
35294 }
35295 /^X\(\/\/\)$/{
35296 s//\1/
35297 q
35298 }
35299 /^X\(\/\).*/{
35300 s//\1/
35301 q
35302 }
35303 s/.*/./; q'`
35304 test -d "$as_dir" && break
35305 done
35306 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035307 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035308
35309
35310} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035311if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035312 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035313else
35314 test -d ./-p && rmdir ./-p
35315 as_mkdir_p=false
35316fi
35317
35318if test -x / >/dev/null 2>&1; then
35319 as_test_x='test -x'
35320else
35321 if ls -dL / >/dev/null 2>&1; then
35322 as_ls_L_option=L
35323 else
35324 as_ls_L_option=
35325 fi
35326 as_test_x='
35327 eval sh -c '\''
35328 if test -d "$1"; then
35329 test -d "$1/.";
35330 else
cristy8b350f62009-11-15 23:12:43 +000035331 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000035332 -*)set "./$1";;
35333 esac;
cristy8b350f62009-11-15 23:12:43 +000035334 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000035335 ???[sx]*):;;*)false;;esac;fi
35336 '\'' sh
35337 '
35338fi
35339as_executable_p=$as_test_x
35340
35341# Sed expression to map a string onto a valid CPP name.
35342as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35343
35344# Sed expression to map a string onto a valid variable name.
35345as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35346
35347
35348exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035349## ----------------------------------- ##
35350## Main body of $CONFIG_STATUS script. ##
35351## ----------------------------------- ##
35352_ASEOF
35353test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035354
cristy8b350f62009-11-15 23:12:43 +000035355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35356# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035357# report actual input values of CONFIG_FILES etc. instead of their
35358# values after options handling.
35359ac_log="
cristy4c08aed2011-07-01 19:47:50 +000035360This file was extended by ImageMagick $as_me 7.0.0, which was
cristyda16f162011-02-19 23:52:17 +000035361generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035362
35363 CONFIG_FILES = $CONFIG_FILES
35364 CONFIG_HEADERS = $CONFIG_HEADERS
35365 CONFIG_LINKS = $CONFIG_LINKS
35366 CONFIG_COMMANDS = $CONFIG_COMMANDS
35367 $ $0 $@
35368
35369on `(hostname || uname -n) 2>/dev/null | sed 1q`
35370"
35371
35372_ACEOF
35373
35374case $ac_config_files in *"
35375"*) set x $ac_config_files; shift; ac_config_files=$*;;
35376esac
35377
35378case $ac_config_headers in *"
35379"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35380esac
35381
35382
35383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35384# Files that config.status was made for.
35385config_files="$ac_config_files"
35386config_headers="$ac_config_headers"
35387config_commands="$ac_config_commands"
35388
35389_ACEOF
35390
35391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35392ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035393\`$as_me' instantiates files and other configuration actions
35394from templates according to the current configuration. Unless the files
35395and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035396
cristy8b350f62009-11-15 23:12:43 +000035397Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035398
35399 -h, --help print this help, then exit
35400 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035401 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035402 -q, --quiet, --silent
35403 do not print progress messages
35404 -d, --debug don't remove temporary files
35405 --recheck update $as_me by reconfiguring in the same conditions
35406 --file=FILE[:TEMPLATE]
35407 instantiate the configuration file FILE
35408 --header=FILE[:TEMPLATE]
35409 instantiate the configuration header FILE
35410
35411Configuration files:
35412$config_files
35413
35414Configuration headers:
35415$config_headers
35416
35417Configuration commands:
35418$config_commands
35419
cristy8b350f62009-11-15 23:12:43 +000035420Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035421
35422_ACEOF
35423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035424ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035425ac_cs_version="\\
cristy4c08aed2011-07-01 19:47:50 +000035426ImageMagick config.status 7.0.0
cristyda16f162011-02-19 23:52:17 +000035427configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000035428 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035429
cristy98dddb52010-11-04 00:30:15 +000035430Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035431This config.status script is free software; the Free Software Foundation
35432gives unlimited permission to copy, distribute and modify it."
35433
35434ac_pwd='$ac_pwd'
35435srcdir='$srcdir'
35436INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035437MKDIR_P='$MKDIR_P'
35438AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035439test -n "\$AWK" || AWK=awk
35440_ACEOF
35441
35442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35443# The default lists apply if the user does not specify any file.
35444ac_need_defaults=:
35445while test $# != 0
35446do
35447 case $1 in
cristyda16f162011-02-19 23:52:17 +000035448 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035449 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35450 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35451 ac_shift=:
35452 ;;
cristyda16f162011-02-19 23:52:17 +000035453 --*=)
35454 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35455 ac_optarg=
35456 ac_shift=:
35457 ;;
cristy3ed852e2009-09-05 21:47:34 +000035458 *)
35459 ac_option=$1
35460 ac_optarg=$2
35461 ac_shift=shift
35462 ;;
35463 esac
35464
35465 case $ac_option in
35466 # Handling of the options.
35467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35468 ac_cs_recheck=: ;;
35469 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35470 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035471 --config | --confi | --conf | --con | --co | --c )
35472 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035473 --debug | --debu | --deb | --de | --d | -d )
35474 debug=: ;;
35475 --file | --fil | --fi | --f )
35476 $ac_shift
35477 case $ac_optarg in
35478 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035479 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035480 esac
cristy8b350f62009-11-15 23:12:43 +000035481 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035482 ac_need_defaults=false;;
35483 --header | --heade | --head | --hea )
35484 $ac_shift
35485 case $ac_optarg in
35486 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35487 esac
cristy8b350f62009-11-15 23:12:43 +000035488 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035489 ac_need_defaults=false;;
35490 --he | --h)
35491 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035492 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035493Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035494 --help | --hel | -h )
35495 $as_echo "$ac_cs_usage"; exit ;;
35496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35497 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35498 ac_cs_silent=: ;;
35499
35500 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035501 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035502Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035503
cristy8b350f62009-11-15 23:12:43 +000035504 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035505 ac_need_defaults=false ;;
35506
35507 esac
35508 shift
35509done
35510
35511ac_configure_extra_args=
35512
35513if $ac_cs_silent; then
35514 exec 6>/dev/null
35515 ac_configure_extra_args="$ac_configure_extra_args --silent"
35516fi
35517
35518_ACEOF
35519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35520if \$ac_cs_recheck; then
35521 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35522 shift
35523 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35524 CONFIG_SHELL='$SHELL'
35525 export CONFIG_SHELL
35526 exec "\$@"
35527fi
35528
35529_ACEOF
35530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35531exec 5>>config.log
35532{
35533 echo
35534 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35535## Running $as_me. ##
35536_ASBOX
35537 $as_echo "$ac_log"
35538} >&5
35539
35540_ACEOF
35541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000035542#
35543# INIT-COMMANDS
35544#
35545PACKAGE="$PACKAGE"
35546AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35547
35548
35549# The HP-UX ksh and POSIX shell print the target directory to stdout
35550# if CDPATH is set.
35551(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35552
35553sed_quote_subst='$sed_quote_subst'
35554double_quote_subst='$double_quote_subst'
35555delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000035556SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35557Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35558GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35559EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35560FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35561SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35562ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35563LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35564macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35565macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35566AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35567DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35568OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35569enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35570enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35571pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35572enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35573host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35574host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35575host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35576build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35577build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35578build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35579NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35580LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35581max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35582ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35583exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35584lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35585lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35586lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035587lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35588lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035589reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35590reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35591deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35592file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035593file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35594want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35595sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035596AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35597AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035598archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035599STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35600RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35601old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35602old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35603old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35604lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35605CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35606CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35607compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35608GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35609lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35610lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35611lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35612lt_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 +000035613nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35614lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035615objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35616MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35617lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035618lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035619lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035620lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35621lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35622need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035623MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035624DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35625NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35626LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35627OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35628OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35629libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35630shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35631extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35632archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35633enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35634export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35635whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35636compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35637old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35638old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35639archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35640archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35641module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35642module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35643with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35644allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35645no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35646hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
35647hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
35648hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35649hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35650hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35651hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35652hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35653hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35654inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35655link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035656always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35657export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35658exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35659include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35660prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035661postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035662file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35663variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35664need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35665need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35666version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35667runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35668shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35669shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35670libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35671library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35672soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35673install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35674postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35675postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35676finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35677finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35678hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35679sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35680sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
35681hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35682enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35683enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35684enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35685old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35686striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35687compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
35688predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
35689postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
35690predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
35691postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
35692compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
35693LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
35694reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
35695reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35696old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35697compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
35698GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35699lt_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 +000035700lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035701lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035702lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35703lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35704archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35705enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35706export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35707whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35708compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35709old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35710old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35711archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35712archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35713module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35714module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35715with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35716allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35717no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35718hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35719hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
35720hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35721hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35722hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35723hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35724hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35725hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35726inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35727link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035728always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35729export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35730exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35731include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35732prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035733postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035734file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35735hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35736compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35737predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35738postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35739predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35740postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35741compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000035742
35743LTCC='$LTCC'
35744LTCFLAGS='$LTCFLAGS'
35745compiler='$compiler_DEFAULT'
35746
cristy0c60a692010-11-04 01:09:47 +000035747# A function that is used when there is no print builtin or printf.
35748func_fallback_echo ()
35749{
35750 eval 'cat <<_LTECHO_EOF
35751\$1
35752_LTECHO_EOF'
35753}
35754
cristy73bd4a52010-10-05 11:24:23 +000035755# Quote evaled strings.
35756for var in SED \
35757GREP \
35758EGREP \
35759FGREP \
cristy0c60a692010-11-04 01:09:47 +000035760SHELL \
35761ECHO \
cristy73bd4a52010-10-05 11:24:23 +000035762LD \
cristy0c60a692010-11-04 01:09:47 +000035763AS \
35764DLLTOOL \
35765OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000035766NM \
35767LN_S \
35768lt_SP2NL \
35769lt_NL2SP \
35770reload_flag \
35771deplibs_check_method \
35772file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000035773file_magic_glob \
35774want_nocaseglob \
35775sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000035776AR \
35777AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000035778archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035779STRIP \
35780RANLIB \
35781CC \
35782CFLAGS \
35783compiler \
35784lt_cv_sys_global_symbol_pipe \
35785lt_cv_sys_global_symbol_to_cdecl \
35786lt_cv_sys_global_symbol_to_c_name_address \
35787lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000035788nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035789lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000035790lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000035791lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000035792lt_prog_compiler_static \
35793lt_cv_prog_compiler_c_o \
35794need_locks \
cristyda16f162011-02-19 23:52:17 +000035795MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000035796DSYMUTIL \
35797NMEDIT \
35798LIPO \
35799OTOOL \
35800OTOOL64 \
35801shrext_cmds \
35802export_dynamic_flag_spec \
35803whole_archive_flag_spec \
35804compiler_needs_object \
35805with_gnu_ld \
35806allow_undefined_flag \
35807no_undefined_flag \
35808hardcode_libdir_flag_spec \
35809hardcode_libdir_flag_spec_ld \
35810hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000035811exclude_expsyms \
35812include_expsyms \
35813file_list_spec \
35814variables_saved_for_relink \
35815libname_spec \
35816library_names_spec \
35817soname_spec \
cristy0c60a692010-11-04 01:09:47 +000035818install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000035819finish_eval \
35820old_striplib \
35821striplib \
35822compiler_lib_search_dirs \
35823predep_objects \
35824postdep_objects \
35825predeps \
35826postdeps \
35827compiler_lib_search_path \
35828LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000035829reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035830compiler_CXX \
35831lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035832lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000035833lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035834lt_prog_compiler_static_CXX \
35835lt_cv_prog_compiler_c_o_CXX \
35836export_dynamic_flag_spec_CXX \
35837whole_archive_flag_spec_CXX \
35838compiler_needs_object_CXX \
35839with_gnu_ld_CXX \
35840allow_undefined_flag_CXX \
35841no_undefined_flag_CXX \
35842hardcode_libdir_flag_spec_CXX \
35843hardcode_libdir_flag_spec_ld_CXX \
35844hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035845exclude_expsyms_CXX \
35846include_expsyms_CXX \
35847file_list_spec_CXX \
35848compiler_lib_search_dirs_CXX \
35849predep_objects_CXX \
35850postdep_objects_CXX \
35851predeps_CXX \
35852postdeps_CXX \
35853compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000035854 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000035855 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000035856 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000035857 ;;
35858 *)
35859 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35860 ;;
35861 esac
35862done
35863
35864# Double-quote double-evaled strings.
35865for var in reload_cmds \
35866old_postinstall_cmds \
35867old_postuninstall_cmds \
35868old_archive_cmds \
35869extract_expsyms_cmds \
35870old_archive_from_new_cmds \
35871old_archive_from_expsyms_cmds \
35872archive_cmds \
35873archive_expsym_cmds \
35874module_cmds \
35875module_expsym_cmds \
35876export_symbols_cmds \
35877prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000035878postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000035879postinstall_cmds \
35880postuninstall_cmds \
35881finish_cmds \
35882sys_lib_search_path_spec \
35883sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000035884reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035885old_archive_cmds_CXX \
35886old_archive_from_new_cmds_CXX \
35887old_archive_from_expsyms_cmds_CXX \
35888archive_cmds_CXX \
35889archive_expsym_cmds_CXX \
35890module_cmds_CXX \
35891module_expsym_cmds_CXX \
35892export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000035893prelink_cmds_CXX \
35894postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000035895 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000035896 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000035897 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000035898 ;;
35899 *)
35900 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35901 ;;
35902 esac
35903done
35904
cristy73bd4a52010-10-05 11:24:23 +000035905ac_aux_dir='$ac_aux_dir'
35906xsi_shell='$xsi_shell'
35907lt_shell_append='$lt_shell_append'
35908
35909# See if we are running on zsh, and set the options which allow our
35910# commands through without removal of \ escapes INIT.
35911if test -n "\${ZSH_VERSION+set}" ; then
35912 setopt NO_GLOB_SUBST
35913fi
35914
35915
35916 PACKAGE='$PACKAGE'
35917 VERSION='$VERSION'
35918 TIMESTAMP='$TIMESTAMP'
35919 RM='$RM'
35920 ofile='$ofile'
35921
35922
35923
35924
35925
35926
cristy3ed852e2009-09-05 21:47:34 +000035927_ACEOF
35928
35929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35930
35931# Handling of arguments.
35932for ac_config_target in $ac_config_targets
35933do
35934 case $ac_config_target in
35935 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000035936 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000035937 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
35938 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
35939 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
35940 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
35941 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000035942 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000035943 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
35944 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
35945 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
35946 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
35947 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000035948 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000035949 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
35950 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000035951 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
35952 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
35953 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000035954 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35955 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
35956 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
35957 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
35958 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
35959 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
35960 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
35961 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
35962 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
35963 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
35964 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
35965 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
35966 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
35967 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
35968 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
35969 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
35970 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000035971 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
35972 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000035973 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35974 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000035975 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35976 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
35977 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
35978 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
35979 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
35980 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
35981 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
35982
cristy98dddb52010-11-04 00:30:15 +000035983 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035984 esac
35985done
35986
35987
35988# If the user did not use the arguments to specify the items to instantiate,
35989# then the envvar interface is used. Set only those that are not.
35990# We use the long form for the default assignment because of an extremely
35991# bizarre bug on SunOS 4.1.3.
35992if $ac_need_defaults; then
35993 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35994 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35995 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35996fi
35997
35998# Have a temporary directory for convenience. Make it in the build tree
35999# simply because there is no reason against having it here, and in addition,
36000# creating and moving files from /tmp can sometimes cause problems.
36001# Hook for its removal unless debugging.
36002# Note that there is a small window in which the directory will not be cleaned:
36003# after its creation but before its name has been assigned to `$tmp'.
36004$debug ||
36005{
cristyda16f162011-02-19 23:52:17 +000036006 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036007 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036008 : "${ac_tmp:=$tmp}"
36009 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036010' 0
cristy8b350f62009-11-15 23:12:43 +000036011 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036012}
36013# Create a (secure) tmp directory for tmp files.
36014
36015{
36016 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036017 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036018} ||
36019{
36020 tmp=./conf$$-$RANDOM
36021 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036022} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036023ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036024
36025# Set up the scripts for CONFIG_FILES section.
36026# No need to generate them if there are no CONFIG_FILES.
36027# This happens for instance with `./config.status config.h'.
36028if test -n "$CONFIG_FILES"; then
36029
36030
cristy8b350f62009-11-15 23:12:43 +000036031ac_cr=`echo X | tr X '\015'`
36032# On cygwin, bash can eat \r inside `` if the user requested igncr.
36033# But we know of no other shell where ac_cr would be empty at this
36034# point, so we can use a bashism as a fallback.
36035if test "x$ac_cr" = x; then
36036 eval ac_cr=\$\'\\r\'
36037fi
cristy3ed852e2009-09-05 21:47:34 +000036038ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36039if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036040 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036041else
36042 ac_cs_awk_cr=$ac_cr
36043fi
36044
cristyda16f162011-02-19 23:52:17 +000036045echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036046_ACEOF
36047
36048
36049{
36050 echo "cat >conf$$subs.awk <<_ACEOF" &&
36051 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36052 echo "_ACEOF"
36053} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036054 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36055ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036056ac_delim='%!_!# '
36057for ac_last_try in false false false false false :; do
36058 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036059 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036060
36061 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36062 if test $ac_delim_n = $ac_delim_num; then
36063 break
36064 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036065 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036066 else
36067 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36068 fi
36069done
36070rm -f conf$$subs.sh
36071
36072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036073cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036074_ACEOF
36075sed -n '
36076h
36077s/^/S["/; s/!.*/"]=/
36078p
36079g
36080s/^[^!]*!//
36081:repl
36082t repl
36083s/'"$ac_delim"'$//
36084t delim
36085:nl
36086h
cristycd4c5312009-11-22 01:19:08 +000036087s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036088t more1
36089s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36090p
36091n
36092b repl
36093:more1
36094s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36095p
36096g
36097s/.\{148\}//
36098t nl
36099:delim
36100h
cristycd4c5312009-11-22 01:19:08 +000036101s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036102t more2
36103s/["\\]/\\&/g; s/^/"/; s/$/"/
36104p
36105b
36106:more2
36107s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36108p
36109g
36110s/.\{148\}//
36111t delim
36112' <conf$$subs.awk | sed '
36113/^[^""]/{
36114 N
36115 s/\n//
36116}
36117' >>$CONFIG_STATUS || ac_write_fail=1
36118rm -f conf$$subs.awk
36119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36120_ACAWK
cristyda16f162011-02-19 23:52:17 +000036121cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036122 for (key in S) S_is_set[key] = 1
36123 FS = ""
36124
36125}
36126{
36127 line = $ 0
36128 nfields = split(line, field, "@")
36129 substed = 0
36130 len = length(field[1])
36131 for (i = 2; i < nfields; i++) {
36132 key = field[i]
36133 keylen = length(key)
36134 if (S_is_set[key]) {
36135 value = S[key]
36136 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36137 len += length(value) + length(field[++i])
36138 substed = 1
36139 } else
36140 len += 1 + keylen
36141 }
36142
36143 print line
36144}
36145
36146_ACAWK
36147_ACEOF
36148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36149if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36150 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36151else
36152 cat
cristyda16f162011-02-19 23:52:17 +000036153fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036154 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036155_ACEOF
36156
cristy98dddb52010-11-04 00:30:15 +000036157# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36158# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036159# trailing colons and then remove the whole line if VPATH becomes empty
36160# (actually we leave an empty line to preserve line numbers).
36161if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036162 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36163h
36164s///
36165s/^/:/
36166s/[ ]*$/:/
36167s/:\$(srcdir):/:/g
36168s/:\${srcdir}:/:/g
36169s/:@srcdir@:/:/g
36170s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036171s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036172x
36173s/\(=[ ]*\).*/\1/
36174G
36175s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036176s/^[^=]*=[ ]*$//
36177}'
36178fi
36179
36180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36181fi # test -n "$CONFIG_FILES"
36182
36183# Set up the scripts for CONFIG_HEADERS section.
36184# No need to generate them if there are no CONFIG_HEADERS.
36185# This happens for instance with `./config.status Makefile'.
36186if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036187cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036188BEGIN {
36189_ACEOF
36190
36191# Transform confdefs.h into an awk script `defines.awk', embedded as
36192# here-document in config.status, that substitutes the proper values into
36193# config.h.in to produce config.h.
36194
36195# Create a delimiter string that does not exist in confdefs.h, to ease
36196# handling of long lines.
36197ac_delim='%!_!# '
36198for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036199 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36200 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036201 break
36202 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036203 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036204 else
36205 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36206 fi
36207done
36208
36209# For the awk script, D is an array of macro values keyed by name,
36210# likewise P contains macro parameters if any. Preserve backslash
36211# newline sequences.
36212
36213ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36214sed -n '
36215s/.\{148\}/&'"$ac_delim"'/g
36216t rset
36217:rset
36218s/^[ ]*#[ ]*define[ ][ ]*/ /
36219t def
36220d
36221:def
36222s/\\$//
36223t bsnl
36224s/["\\]/\\&/g
36225s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36226D["\1"]=" \3"/p
36227s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36228d
36229:bsnl
36230s/["\\]/\\&/g
36231s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36232D["\1"]=" \3\\\\\\n"\\/p
36233t cont
36234s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36235t cont
36236d
36237:cont
36238n
36239s/.\{148\}/&'"$ac_delim"'/g
36240t clear
36241:clear
36242s/\\$//
36243t bsnlc
36244s/["\\]/\\&/g; s/^/"/; s/$/"/p
36245d
36246:bsnlc
36247s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36248b cont
36249' <confdefs.h | sed '
36250s/'"$ac_delim"'/"\\\
36251"/g' >>$CONFIG_STATUS || ac_write_fail=1
36252
36253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36254 for (key in D) D_is_set[key] = 1
36255 FS = ""
36256}
36257/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36258 line = \$ 0
36259 split(line, arg, " ")
36260 if (arg[1] == "#") {
36261 defundef = arg[2]
36262 mac1 = arg[3]
36263 } else {
36264 defundef = substr(arg[1], 2)
36265 mac1 = arg[2]
36266 }
36267 split(mac1, mac2, "(") #)
36268 macro = mac2[1]
36269 prefix = substr(line, 1, index(line, defundef) - 1)
36270 if (D_is_set[macro]) {
36271 # Preserve the white space surrounding the "#".
36272 print prefix "define", macro P[macro] D[macro]
36273 next
36274 } else {
36275 # Replace #undef with comments. This is necessary, for example,
36276 # in the case of _POSIX_SOURCE, which is predefined and required
36277 # on some systems where configure will not decide to define it.
36278 if (defundef == "undef") {
36279 print "/*", prefix defundef, macro, "*/"
36280 next
36281 }
36282 }
36283}
36284{ print }
36285_ACAWK
36286_ACEOF
36287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036288 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036289fi # test -n "$CONFIG_HEADERS"
36290
36291
36292eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36293shift
36294for ac_tag
36295do
36296 case $ac_tag in
36297 :[FHLC]) ac_mode=$ac_tag; continue;;
36298 esac
36299 case $ac_mode$ac_tag in
36300 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036301 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036302 :[FH]-) ac_tag=-:-;;
36303 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36304 esac
36305 ac_save_IFS=$IFS
36306 IFS=:
36307 set x $ac_tag
36308 IFS=$ac_save_IFS
36309 shift
36310 ac_file=$1
36311 shift
36312
36313 case $ac_mode in
36314 :L) ac_source=$1;;
36315 :[FH])
36316 ac_file_inputs=
36317 for ac_f
36318 do
36319 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036320 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036321 *) # Look for the file first in the build tree, then in the source tree
36322 # (if the path is not absolute). The absolute path cannot be DOS-style,
36323 # because $ac_f cannot contain `:'.
36324 test -f "$ac_f" ||
36325 case $ac_f in
36326 [\\/$]*) false;;
36327 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36328 esac ||
cristy98dddb52010-11-04 00:30:15 +000036329 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036330 esac
36331 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036332 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036333 done
36334
36335 # Let's still pretend it is `configure' which instantiates (i.e., don't
36336 # use $as_me), people would be surprised to read:
36337 # /* config.h. Generated by config.status. */
36338 configure_input='Generated from '`
36339 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36340 `' by configure.'
36341 if test x"$ac_file" != x-; then
36342 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036343 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036344$as_echo "$as_me: creating $ac_file" >&6;}
36345 fi
36346 # Neutralize special characters interpreted by sed in replacement strings.
36347 case $configure_input in #(
36348 *\&* | *\|* | *\\* )
36349 ac_sed_conf_input=`$as_echo "$configure_input" |
36350 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36351 *) ac_sed_conf_input=$configure_input;;
36352 esac
36353
36354 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036355 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036356 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036357 esac
36358 ;;
36359 esac
36360
36361 ac_dir=`$as_dirname -- "$ac_file" ||
36362$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36363 X"$ac_file" : 'X\(//\)[^/]' \| \
36364 X"$ac_file" : 'X\(//\)$' \| \
36365 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36366$as_echo X"$ac_file" |
36367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36368 s//\1/
36369 q
36370 }
36371 /^X\(\/\/\)[^/].*/{
36372 s//\1/
36373 q
36374 }
36375 /^X\(\/\/\)$/{
36376 s//\1/
36377 q
36378 }
36379 /^X\(\/\).*/{
36380 s//\1/
36381 q
36382 }
36383 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036384 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036385 ac_builddir=.
36386
36387case "$ac_dir" in
36388.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36389*)
36390 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36391 # A ".." for each directory in $ac_dir_suffix.
36392 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36393 case $ac_top_builddir_sub in
36394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36396 esac ;;
36397esac
36398ac_abs_top_builddir=$ac_pwd
36399ac_abs_builddir=$ac_pwd$ac_dir_suffix
36400# for backward compatibility:
36401ac_top_builddir=$ac_top_build_prefix
36402
36403case $srcdir in
36404 .) # We are building in place.
36405 ac_srcdir=.
36406 ac_top_srcdir=$ac_top_builddir_sub
36407 ac_abs_top_srcdir=$ac_pwd ;;
36408 [\\/]* | ?:[\\/]* ) # Absolute name.
36409 ac_srcdir=$srcdir$ac_dir_suffix;
36410 ac_top_srcdir=$srcdir
36411 ac_abs_top_srcdir=$srcdir ;;
36412 *) # Relative name.
36413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36414 ac_top_srcdir=$ac_top_build_prefix$srcdir
36415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36416esac
36417ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36418
36419
36420 case $ac_mode in
36421 :F)
36422 #
36423 # CONFIG_FILE
36424 #
36425
36426 case $INSTALL in
36427 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36428 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36429 esac
cristy73bd4a52010-10-05 11:24:23 +000036430 ac_MKDIR_P=$MKDIR_P
36431 case $MKDIR_P in
36432 [\\/$]* | ?:[\\/]* ) ;;
36433 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36434 esac
cristy3ed852e2009-09-05 21:47:34 +000036435_ACEOF
36436
36437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36438# If the template does not know about datarootdir, expand it.
36439# FIXME: This hack should be removed a few years after 2.60.
36440ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036441ac_sed_dataroot='
36442/datarootdir/ {
36443 p
36444 q
36445}
36446/@datadir@/p
36447/@docdir@/p
36448/@infodir@/p
36449/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036450/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036451case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36452*datarootdir*) ac_datarootdir_seen=yes;;
36453*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036455$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36456_ACEOF
36457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36458 ac_datarootdir_hack='
36459 s&@datadir@&$datadir&g
36460 s&@docdir@&$docdir&g
36461 s&@infodir@&$infodir&g
36462 s&@localedir@&$localedir&g
36463 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036464 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036465esac
36466_ACEOF
36467
36468# Neutralize VPATH when `$srcdir' = `.'.
36469# Shell code in configure.ac might set extrasub.
36470# FIXME: do we really want to maintain this feature?
36471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36472ac_sed_extra="$ac_vpsub
36473$extrasub
36474_ACEOF
36475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36476:t
36477/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36478s|@configure_input@|$ac_sed_conf_input|;t t
36479s&@top_builddir@&$ac_top_builddir_sub&;t t
36480s&@top_build_prefix@&$ac_top_build_prefix&;t t
36481s&@srcdir@&$ac_srcdir&;t t
36482s&@abs_srcdir@&$ac_abs_srcdir&;t t
36483s&@top_srcdir@&$ac_top_srcdir&;t t
36484s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36485s&@builddir@&$ac_builddir&;t t
36486s&@abs_builddir@&$ac_abs_builddir&;t t
36487s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36488s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036489s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036490$ac_datarootdir_hack
36491"
cristyda16f162011-02-19 23:52:17 +000036492eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36493 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036494
36495test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036496 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36497 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36498 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036500which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036501$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036502which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036503
cristyda16f162011-02-19 23:52:17 +000036504 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036505 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036506 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36507 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036508 esac \
cristy98dddb52010-11-04 00:30:15 +000036509 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036510 ;;
36511 :H)
36512 #
36513 # CONFIG_HEADER
36514 #
36515 if test x"$ac_file" != x-; then
36516 {
36517 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036518 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36519 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036520 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036521 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036522 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036523$as_echo "$as_me: $ac_file is unchanged" >&6;}
36524 else
36525 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036526 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036527 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036528 fi
36529 else
36530 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036531 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036532 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036533 fi
cristy73bd4a52010-10-05 11:24:23 +000036534# Compute "$ac_file"'s index in $config_headers.
36535_am_arg="$ac_file"
36536_am_stamp_count=1
36537for _am_header in $config_headers :; do
36538 case $_am_header in
36539 $_am_arg | $_am_arg:* )
36540 break ;;
36541 * )
36542 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36543 esac
36544done
36545echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36546$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36547 X"$_am_arg" : 'X\(//\)[^/]' \| \
36548 X"$_am_arg" : 'X\(//\)$' \| \
36549 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36550$as_echo X"$_am_arg" |
36551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36552 s//\1/
36553 q
36554 }
36555 /^X\(\/\/\)[^/].*/{
36556 s//\1/
36557 q
36558 }
36559 /^X\(\/\/\)$/{
36560 s//\1/
36561 q
36562 }
36563 /^X\(\/\).*/{
36564 s//\1/
36565 q
36566 }
36567 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000036568 ;;
36569
cristy8b350f62009-11-15 23:12:43 +000036570 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000036571$as_echo "$as_me: executing $ac_file commands" >&6;}
36572 ;;
36573 esac
36574
36575
36576 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000036577 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000036578ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
36579ac_prefix_conf_PKG=`echo MagickCore`
36580ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
36581ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
36582ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
36583if test ".$ac_prefix_conf_INP" = "."; then
36584 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
36585 case "$ac_file" in
36586 *.h) ac_prefix_conf_INP=$ac_file ;;
36587 *)
36588 esac
36589 test ".$ac_prefix_conf_INP" != "." && break
36590 done
36591fi
36592if test ".$ac_prefix_conf_INP" = "."; then
36593 case "$ac_prefix_conf_OUT" in
36594 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
36595 ;;
36596 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
36597 ;;
36598 *) ac_prefix_conf_INP=config.h
36599 ;;
36600 esac
36601fi
36602if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000036603 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000036604else
36605 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
36606 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
36607 fi fi
36608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
36609$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
36610 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000036611 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
36612 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
36613 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
36614 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
36615 $as_echo "#endif/" >> conftest.prefix
36616 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
36617 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
36618 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000036619 # now executing _script on _DEF input to create _OUT output file
36620 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
36621 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
36622 echo ' ' >>$tmp/pconfig.h
36623 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
36624
36625 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
36626 echo ' ' >>$tmp/pconfig.h
36627 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
36628 echo "#endif" >>$tmp/pconfig.h
36629 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
36630 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
36631$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
36632 else
36633 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
36634$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36635 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
36636 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
36637 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
36638$as_echo X"$ac_prefix_conf_OUT" |
36639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36640 s//\1/
36641 q
36642 }
36643 /^X\(\/\/\)[^/].*/{
36644 s//\1/
36645 q
36646 }
36647 /^X\(\/\/\)$/{
36648 s//\1/
36649 q
36650 }
36651 /^X\(\/\).*/{
36652 s//\1/
36653 q
36654 }
36655 s/.*/./; q'`
36656 as_dir="$ac_dir"; as_fn_mkdir_p
36657 rm -f "$ac_prefix_conf_OUT"
36658 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
36659 fi
36660 cp conftest.prefix _configs.sed
36661 else
cristy98dddb52010-11-04 00:30:15 +000036662 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 +000036663 fi
36664 rm -f conftest.*
36665fi
36666 ;;
36667 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36668 # Autoconf 2.62 quotes --file arguments for eval, but not when files
36669 # are listed without --file. Let's play safe and only enable the eval
36670 # if we detect the quoting.
36671 case $CONFIG_FILES in
36672 *\'*) eval set x "$CONFIG_FILES" ;;
36673 *) set x $CONFIG_FILES ;;
36674 esac
36675 shift
36676 for mf
36677 do
36678 # Strip MF so we end up with the name of the file.
36679 mf=`echo "$mf" | sed -e 's/:.*$//'`
36680 # Check whether this is an Automake generated Makefile or not.
36681 # We used to match only the files named `Makefile.in', but
36682 # some people rename them; so instead we look at the file content.
36683 # Grep'ing the first line is not enough: some people post-process
36684 # each Makefile.in and add a new line on top of each file to say so.
36685 # Grep'ing the whole file is not good either: AIX grep has a line
36686 # limit of 2048, but all sed's we know have understand at least 4000.
36687 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
36688 dirpart=`$as_dirname -- "$mf" ||
36689$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36690 X"$mf" : 'X\(//\)[^/]' \| \
36691 X"$mf" : 'X\(//\)$' \| \
36692 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36693$as_echo X"$mf" |
36694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36695 s//\1/
36696 q
36697 }
36698 /^X\(\/\/\)[^/].*/{
36699 s//\1/
36700 q
36701 }
36702 /^X\(\/\/\)$/{
36703 s//\1/
36704 q
36705 }
36706 /^X\(\/\).*/{
36707 s//\1/
36708 q
36709 }
36710 s/.*/./; q'`
36711 else
36712 continue
36713 fi
36714 # Extract the definition of DEPDIR, am__include, and am__quote
36715 # from the Makefile without running `make'.
36716 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36717 test -z "$DEPDIR" && continue
36718 am__include=`sed -n 's/^am__include = //p' < "$mf"`
36719 test -z "am__include" && continue
36720 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36721 # When using ansi2knr, U may be empty or an underscore; expand it
36722 U=`sed -n 's/^U = //p' < "$mf"`
36723 # Find all dependency output files, they are included files with
36724 # $(DEPDIR) in their names. We invoke sed twice because it is the
36725 # simplest approach to changing $(DEPDIR) to its actual value in the
36726 # expansion.
36727 for file in `sed -n "
36728 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36729 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36730 # Make sure the directory exists.
36731 test -f "$dirpart/$file" && continue
36732 fdir=`$as_dirname -- "$file" ||
36733$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36734 X"$file" : 'X\(//\)[^/]' \| \
36735 X"$file" : 'X\(//\)$' \| \
36736 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36737$as_echo X"$file" |
36738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36739 s//\1/
36740 q
36741 }
36742 /^X\(\/\/\)[^/].*/{
36743 s//\1/
36744 q
36745 }
36746 /^X\(\/\/\)$/{
36747 s//\1/
36748 q
36749 }
36750 /^X\(\/\).*/{
36751 s//\1/
36752 q
36753 }
36754 s/.*/./; q'`
36755 as_dir=$dirpart/$fdir; as_fn_mkdir_p
36756 # echo "creating $dirpart/$file"
36757 echo '# dummy' > "$dirpart/$file"
36758 done
36759 done
36760}
36761 ;;
36762 "libtool":C)
36763
36764 # See if we are running on zsh, and set the options which allow our
36765 # commands through without removal of \ escapes.
36766 if test -n "${ZSH_VERSION+set}" ; then
36767 setopt NO_GLOB_SUBST
36768 fi
36769
36770 cfgfile="${ofile}T"
36771 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36772 $RM "$cfgfile"
36773
36774 cat <<_LT_EOF >> "$cfgfile"
36775#! $SHELL
36776
36777# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36778# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36779# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36780# NOTE: Changes made to this file will be lost: look at ltmain.sh.
36781#
36782# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000036783# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
36784# Inc.
cristy73bd4a52010-10-05 11:24:23 +000036785# Written by Gordon Matzigkeit, 1996
36786#
36787# This file is part of GNU Libtool.
36788#
36789# GNU Libtool is free software; you can redistribute it and/or
36790# modify it under the terms of the GNU General Public License as
36791# published by the Free Software Foundation; either version 2 of
36792# the License, or (at your option) any later version.
36793#
36794# As a special exception to the GNU General Public License,
36795# if you distribute this file as part of a program or library that
36796# is built using GNU Libtool, you may include this file under the
36797# same distribution terms that you use for the rest of that program.
36798#
36799# GNU Libtool is distributed in the hope that it will be useful,
36800# but WITHOUT ANY WARRANTY; without even the implied warranty of
36801# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36802# GNU General Public License for more details.
36803#
36804# You should have received a copy of the GNU General Public License
36805# along with GNU Libtool; see the file COPYING. If not, a copy
36806# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36807# obtained by writing to the Free Software Foundation, Inc.,
36808# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36809
36810
36811# The names of the tagged configurations supported by this script.
36812available_tags="CXX "
36813
36814# ### BEGIN LIBTOOL CONFIG
36815
36816# A sed program that does not truncate output.
36817SED=$lt_SED
36818
36819# Sed that helps us avoid accidentally triggering echo(1) options like -n.
36820Xsed="\$SED -e 1s/^X//"
36821
36822# A grep program that handles long lines.
36823GREP=$lt_GREP
36824
36825# An ERE matcher.
36826EGREP=$lt_EGREP
36827
36828# A literal string matcher.
36829FGREP=$lt_FGREP
36830
cristy0c60a692010-11-04 01:09:47 +000036831# Shell to use when invoking shell scripts.
36832SHELL=$lt_SHELL
36833
36834# An echo program that protects backslashes.
36835ECHO=$lt_ECHO
36836
cristy73bd4a52010-10-05 11:24:23 +000036837# Which release of libtool.m4 was used?
36838macro_version=$macro_version
36839macro_revision=$macro_revision
36840
36841# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000036842AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000036843
36844# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000036845DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000036846
36847# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000036848OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000036849
36850# Whether or not to build shared libraries.
36851build_libtool_libs=$enable_shared
36852
36853# Whether or not to build static libraries.
36854build_old_libs=$enable_static
36855
36856# What type of objects to build.
36857pic_mode=$pic_mode
36858
36859# Whether or not to optimize for fast installation.
36860fast_install=$enable_fast_install
36861
36862# The host system.
36863host_alias=$host_alias
36864host=$host
36865host_os=$host_os
36866
36867# The build system.
36868build_alias=$build_alias
36869build=$build
36870build_os=$build_os
36871
36872# A BSD- or MS-compatible name lister.
36873NM=$lt_NM
36874
36875# Whether we need soft or hard links.
36876LN_S=$lt_LN_S
36877
36878# What is the maximum length of a command?
36879max_cmd_len=$max_cmd_len
36880
36881# Object file suffix (normally "o").
36882objext=$ac_objext
36883
36884# Executable file suffix (normally "").
36885exeext=$exeext
36886
36887# whether the shell understands "unset".
36888lt_unset=$lt_unset
36889
36890# turn spaces into newlines.
36891SP2NL=$lt_lt_SP2NL
36892
36893# turn newlines into spaces.
36894NL2SP=$lt_lt_NL2SP
36895
cristyda16f162011-02-19 23:52:17 +000036896# convert \$build file names to \$host format.
36897to_host_file_cmd=$lt_cv_to_host_file_cmd
36898
36899# convert \$build files to toolchain format.
36900to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36901
cristy73bd4a52010-10-05 11:24:23 +000036902# Method to check whether dependent libraries are shared objects.
36903deplibs_check_method=$lt_deplibs_check_method
36904
cristyda16f162011-02-19 23:52:17 +000036905# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000036906file_magic_cmd=$lt_file_magic_cmd
36907
cristyda16f162011-02-19 23:52:17 +000036908# How to find potential files when deplibs_check_method = "file_magic".
36909file_magic_glob=$lt_file_magic_glob
36910
36911# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
36912want_nocaseglob=$lt_want_nocaseglob
36913
36914# Command to associate shared and link libraries.
36915sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
36916
cristy73bd4a52010-10-05 11:24:23 +000036917# The archiver.
36918AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000036919
36920# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000036921AR_FLAGS=$lt_AR_FLAGS
36922
cristyda16f162011-02-19 23:52:17 +000036923# How to feed a file listing to the archiver.
36924archiver_list_spec=$lt_archiver_list_spec
36925
cristy73bd4a52010-10-05 11:24:23 +000036926# A symbol stripping program.
36927STRIP=$lt_STRIP
36928
36929# Commands used to install an old-style archive.
36930RANLIB=$lt_RANLIB
36931old_postinstall_cmds=$lt_old_postinstall_cmds
36932old_postuninstall_cmds=$lt_old_postuninstall_cmds
36933
cristy0c60a692010-11-04 01:09:47 +000036934# Whether to use a lock for old archive extraction.
36935lock_old_archive_extraction=$lock_old_archive_extraction
36936
cristy73bd4a52010-10-05 11:24:23 +000036937# A C compiler.
36938LTCC=$lt_CC
36939
36940# LTCC compiler flags.
36941LTCFLAGS=$lt_CFLAGS
36942
36943# Take the output of nm and produce a listing of raw symbols and C names.
36944global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36945
36946# Transform the output of nm in a proper C declaration.
36947global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36948
36949# Transform the output of nm in a C name address pair.
36950global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36951
36952# Transform the output of nm in a C name address pair when lib prefix is needed.
36953global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36954
cristyda16f162011-02-19 23:52:17 +000036955# Specify filename containing input files for \$NM.
36956nm_file_list_spec=$lt_nm_file_list_spec
36957
36958# The root where to search for dependent libraries,and in which our libraries should be installed.
36959lt_sysroot=$lt_sysroot
36960
cristy73bd4a52010-10-05 11:24:23 +000036961# The name of the directory that contains temporary libtool files.
36962objdir=$objdir
36963
cristy73bd4a52010-10-05 11:24:23 +000036964# Used to examine libraries when file_magic_cmd begins with "file".
36965MAGIC_CMD=$MAGIC_CMD
36966
36967# Must we lock files when doing compilation?
36968need_locks=$lt_need_locks
36969
cristyda16f162011-02-19 23:52:17 +000036970# Manifest tool.
36971MANIFEST_TOOL=$lt_MANIFEST_TOOL
36972
cristy73bd4a52010-10-05 11:24:23 +000036973# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36974DSYMUTIL=$lt_DSYMUTIL
36975
36976# Tool to change global to local symbols on Mac OS X.
36977NMEDIT=$lt_NMEDIT
36978
36979# Tool to manipulate fat objects and archives on Mac OS X.
36980LIPO=$lt_LIPO
36981
36982# ldd/readelf like tool for Mach-O binaries on Mac OS X.
36983OTOOL=$lt_OTOOL
36984
36985# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36986OTOOL64=$lt_OTOOL64
36987
36988# Old archive suffix (normally "a").
36989libext=$libext
36990
36991# Shared library suffix (normally ".so").
36992shrext_cmds=$lt_shrext_cmds
36993
36994# The commands to extract the exported symbol list from a shared archive.
36995extract_expsyms_cmds=$lt_extract_expsyms_cmds
36996
36997# Variables whose values should be saved in libtool wrapper scripts and
36998# restored at link time.
36999variables_saved_for_relink=$lt_variables_saved_for_relink
37000
37001# Do we need the "lib" prefix for modules?
37002need_lib_prefix=$need_lib_prefix
37003
37004# Do we need a version for libraries?
37005need_version=$need_version
37006
37007# Library versioning type.
37008version_type=$version_type
37009
37010# Shared library runtime path variable.
37011runpath_var=$runpath_var
37012
37013# Shared library path variable.
37014shlibpath_var=$shlibpath_var
37015
37016# Is shlibpath searched before the hard-coded library search path?
37017shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37018
37019# Format of library name prefix.
37020libname_spec=$lt_libname_spec
37021
37022# List of archive names. First name is the real one, the rest are links.
37023# The last name is the one that the linker finds with -lNAME
37024library_names_spec=$lt_library_names_spec
37025
37026# The coded name of the library, if different from the real name.
37027soname_spec=$lt_soname_spec
37028
cristy0c60a692010-11-04 01:09:47 +000037029# Permission mode override for installation of shared libraries.
37030install_override_mode=$lt_install_override_mode
37031
cristy73bd4a52010-10-05 11:24:23 +000037032# Command to use after installation of a shared archive.
37033postinstall_cmds=$lt_postinstall_cmds
37034
37035# Command to use after uninstallation of a shared archive.
37036postuninstall_cmds=$lt_postuninstall_cmds
37037
37038# Commands used to finish a libtool library installation in a directory.
37039finish_cmds=$lt_finish_cmds
37040
37041# As "finish_cmds", except a single script fragment to be evaled but
37042# not shown.
37043finish_eval=$lt_finish_eval
37044
37045# Whether we should hardcode library paths into libraries.
37046hardcode_into_libs=$hardcode_into_libs
37047
37048# Compile-time system search path for libraries.
37049sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37050
37051# Run-time system search path for libraries.
37052sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37053
37054# Whether dlopen is supported.
37055dlopen_support=$enable_dlopen
37056
37057# Whether dlopen of programs is supported.
37058dlopen_self=$enable_dlopen_self
37059
37060# Whether dlopen of statically linked programs is supported.
37061dlopen_self_static=$enable_dlopen_self_static
37062
37063# Commands to strip libraries.
37064old_striplib=$lt_old_striplib
37065striplib=$lt_striplib
37066
37067
37068# The linker used to build libraries.
37069LD=$lt_LD
37070
cristy0c60a692010-11-04 01:09:47 +000037071# How to create reloadable object files.
37072reload_flag=$lt_reload_flag
37073reload_cmds=$lt_reload_cmds
37074
cristy73bd4a52010-10-05 11:24:23 +000037075# Commands used to build an old-style archive.
37076old_archive_cmds=$lt_old_archive_cmds
37077
37078# A language specific compiler.
37079CC=$lt_compiler
37080
37081# Is the compiler the GNU compiler?
37082with_gcc=$GCC
37083
37084# Compiler flag to turn off builtin functions.
37085no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37086
cristy73bd4a52010-10-05 11:24:23 +000037087# Additional compiler flags for building library objects.
37088pic_flag=$lt_lt_prog_compiler_pic
37089
cristyda16f162011-02-19 23:52:17 +000037090# How to pass a linker flag through the compiler.
37091wl=$lt_lt_prog_compiler_wl
37092
cristy73bd4a52010-10-05 11:24:23 +000037093# Compiler flag to prevent dynamic linking.
37094link_static_flag=$lt_lt_prog_compiler_static
37095
37096# Does compiler simultaneously support -c and -o options?
37097compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37098
37099# Whether or not to add -lc for building shared libraries.
37100build_libtool_need_lc=$archive_cmds_need_lc
37101
37102# Whether or not to disallow shared libs when runtime libs are static.
37103allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37104
37105# Compiler flag to allow reflexive dlopens.
37106export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37107
37108# Compiler flag to generate shared objects directly from archives.
37109whole_archive_flag_spec=$lt_whole_archive_flag_spec
37110
37111# Whether the compiler copes with passing no objects directly.
37112compiler_needs_object=$lt_compiler_needs_object
37113
37114# Create an old-style archive from a shared archive.
37115old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37116
37117# Create a temporary old-style archive to link instead of a shared archive.
37118old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37119
37120# Commands used to build a shared archive.
37121archive_cmds=$lt_archive_cmds
37122archive_expsym_cmds=$lt_archive_expsym_cmds
37123
37124# Commands used to build a loadable module if different from building
37125# a shared archive.
37126module_cmds=$lt_module_cmds
37127module_expsym_cmds=$lt_module_expsym_cmds
37128
37129# Whether we are building with GNU ld or not.
37130with_gnu_ld=$lt_with_gnu_ld
37131
37132# Flag that allows shared libraries with undefined symbols to be built.
37133allow_undefined_flag=$lt_allow_undefined_flag
37134
37135# Flag that enforces no undefined symbols.
37136no_undefined_flag=$lt_no_undefined_flag
37137
37138# Flag to hardcode \$libdir into a binary during linking.
37139# This must work even if \$libdir does not exist
37140hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37141
37142# If ld is used when linking, flag to hardcode \$libdir into a binary
37143# during linking. This must work even if \$libdir does not exist.
37144hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37145
37146# Whether we need a single "-rpath" flag with a separated argument.
37147hardcode_libdir_separator=$lt_hardcode_libdir_separator
37148
37149# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37150# DIR into the resulting binary.
37151hardcode_direct=$hardcode_direct
37152
37153# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37154# DIR into the resulting binary and the resulting library dependency is
37155# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37156# library is relocated.
37157hardcode_direct_absolute=$hardcode_direct_absolute
37158
37159# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37160# into the resulting binary.
37161hardcode_minus_L=$hardcode_minus_L
37162
37163# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37164# into the resulting binary.
37165hardcode_shlibpath_var=$hardcode_shlibpath_var
37166
37167# Set to "yes" if building a shared library automatically hardcodes DIR
37168# into the library and all subsequent libraries and executables linked
37169# against it.
37170hardcode_automatic=$hardcode_automatic
37171
37172# Set to yes if linker adds runtime paths of dependent libraries
37173# to runtime path list.
37174inherit_rpath=$inherit_rpath
37175
37176# Whether libtool must link a program against all its dependency libraries.
37177link_all_deplibs=$link_all_deplibs
37178
cristy73bd4a52010-10-05 11:24:23 +000037179# Set to "yes" if exported symbols are required.
37180always_export_symbols=$always_export_symbols
37181
37182# The commands to list exported symbols.
37183export_symbols_cmds=$lt_export_symbols_cmds
37184
37185# Symbols that should not be listed in the preloaded symbols.
37186exclude_expsyms=$lt_exclude_expsyms
37187
37188# Symbols that must always be exported.
37189include_expsyms=$lt_include_expsyms
37190
37191# Commands necessary for linking programs (against libraries) with templates.
37192prelink_cmds=$lt_prelink_cmds
37193
cristyda16f162011-02-19 23:52:17 +000037194# Commands necessary for finishing linking programs.
37195postlink_cmds=$lt_postlink_cmds
37196
cristy73bd4a52010-10-05 11:24:23 +000037197# Specify filename containing input files.
37198file_list_spec=$lt_file_list_spec
37199
37200# How to hardcode a shared library path into an executable.
37201hardcode_action=$hardcode_action
37202
37203# The directories searched by this compiler when creating a shared library.
37204compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37205
37206# Dependencies to place before and after the objects being linked to
37207# create a shared library.
37208predep_objects=$lt_predep_objects
37209postdep_objects=$lt_postdep_objects
37210predeps=$lt_predeps
37211postdeps=$lt_postdeps
37212
37213# The library search path used internally by the compiler when linking
37214# a shared library.
37215compiler_lib_search_path=$lt_compiler_lib_search_path
37216
37217# ### END LIBTOOL CONFIG
37218
37219_LT_EOF
37220
37221 case $host_os in
37222 aix3*)
37223 cat <<\_LT_EOF >> "$cfgfile"
37224# AIX sometimes has problems with the GCC collect2 program. For some
37225# reason, if we set the COLLECT_NAMES environment variable, the problems
37226# vanish in a puff of smoke.
37227if test "X${COLLECT_NAMES+set}" != Xset; then
37228 COLLECT_NAMES=
37229 export COLLECT_NAMES
37230fi
37231_LT_EOF
37232 ;;
37233 esac
37234
37235
37236ltmain="$ac_aux_dir/ltmain.sh"
37237
37238
37239 # We use sed instead of cat because bash on DJGPP gets confused if
37240 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37241 # text mode, it properly converts lines to CR/LF. This bash problem
37242 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037243 sed '$q' "$ltmain" >> "$cfgfile" \
37244 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037245
cristyda16f162011-02-19 23:52:17 +000037246 if test x"$xsi_shell" = xyes; then
37247 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37248func_dirname ()\
37249{\
37250\ case ${1} in\
37251\ */*) func_dirname_result="${1%/*}${2}" ;;\
37252\ * ) func_dirname_result="${3}" ;;\
37253\ esac\
37254} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37255 && mv -f "$cfgfile.tmp" "$cfgfile" \
37256 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37257test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037258
37259
cristyda16f162011-02-19 23:52:17 +000037260 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37261func_basename ()\
37262{\
37263\ func_basename_result="${1##*/}"\
37264} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37265 && mv -f "$cfgfile.tmp" "$cfgfile" \
37266 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37267test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037268
37269
cristyda16f162011-02-19 23:52:17 +000037270 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37271func_dirname_and_basename ()\
37272{\
37273\ case ${1} in\
37274\ */*) func_dirname_result="${1%/*}${2}" ;;\
37275\ * ) func_dirname_result="${3}" ;;\
37276\ esac\
37277\ func_basename_result="${1##*/}"\
37278} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37279 && mv -f "$cfgfile.tmp" "$cfgfile" \
37280 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37281test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037282
cristyda16f162011-02-19 23:52:17 +000037283
37284 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37285func_stripname ()\
37286{\
37287\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37288\ # positional parameters, so assign one to ordinary parameter first.\
37289\ func_stripname_result=${3}\
37290\ func_stripname_result=${func_stripname_result#"${1}"}\
37291\ func_stripname_result=${func_stripname_result%"${2}"}\
37292} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37293 && mv -f "$cfgfile.tmp" "$cfgfile" \
37294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37295test 0 -eq $? || _lt_function_replace_fail=:
37296
37297
37298 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37299func_split_long_opt ()\
37300{\
37301\ func_split_long_opt_name=${1%%=*}\
37302\ func_split_long_opt_arg=${1#*=}\
37303} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37304 && mv -f "$cfgfile.tmp" "$cfgfile" \
37305 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37306test 0 -eq $? || _lt_function_replace_fail=:
37307
37308
37309 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37310func_split_short_opt ()\
37311{\
37312\ func_split_short_opt_arg=${1#??}\
37313\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37314} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37315 && mv -f "$cfgfile.tmp" "$cfgfile" \
37316 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37317test 0 -eq $? || _lt_function_replace_fail=:
37318
37319
37320 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37321func_lo2o ()\
37322{\
37323\ case ${1} in\
37324\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37325\ *) func_lo2o_result=${1} ;;\
37326\ esac\
37327} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37328 && mv -f "$cfgfile.tmp" "$cfgfile" \
37329 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37330test 0 -eq $? || _lt_function_replace_fail=:
37331
37332
37333 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37334func_xform ()\
37335{\
37336 func_xform_result=${1%.*}.lo\
37337} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37338 && mv -f "$cfgfile.tmp" "$cfgfile" \
37339 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37340test 0 -eq $? || _lt_function_replace_fail=:
37341
37342
37343 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37344func_arith ()\
37345{\
37346 func_arith_result=$(( $* ))\
37347} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37348 && mv -f "$cfgfile.tmp" "$cfgfile" \
37349 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37350test 0 -eq $? || _lt_function_replace_fail=:
37351
37352
37353 sed -e '/^func_len ()$/,/^} # func_len /c\
37354func_len ()\
37355{\
37356 func_len_result=${#1}\
37357} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37358 && mv -f "$cfgfile.tmp" "$cfgfile" \
37359 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37360test 0 -eq $? || _lt_function_replace_fail=:
37361
37362fi
37363
37364if test x"$lt_shell_append" = xyes; then
37365 sed -e '/^func_append ()$/,/^} # func_append /c\
37366func_append ()\
37367{\
37368 eval "${1}+=\\${2}"\
37369} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37370 && mv -f "$cfgfile.tmp" "$cfgfile" \
37371 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37372test 0 -eq $? || _lt_function_replace_fail=:
37373
37374
37375 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37376func_append_quoted ()\
37377{\
37378\ func_quote_for_eval "${2}"\
37379\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37380} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37381 && mv -f "$cfgfile.tmp" "$cfgfile" \
37382 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37383test 0 -eq $? || _lt_function_replace_fail=:
37384
37385
37386 # Save a `func_append' function call where possible by direct use of '+='
37387 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37388 && mv -f "$cfgfile.tmp" "$cfgfile" \
37389 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37390 test 0 -eq $? || _lt_function_replace_fail=:
37391else
37392 # Save a `func_append' function call even when '+=' is not available
37393 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37394 && mv -f "$cfgfile.tmp" "$cfgfile" \
37395 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37396 test 0 -eq $? || _lt_function_replace_fail=:
37397fi
37398
37399if test x"$_lt_function_replace_fail" = x":"; then
37400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37401$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37402fi
37403
37404
37405 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037406 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37407 chmod +x "$ofile"
37408
37409
37410 cat <<_LT_EOF >> "$ofile"
37411
37412# ### BEGIN LIBTOOL TAG CONFIG: CXX
37413
37414# The linker used to build libraries.
37415LD=$lt_LD_CXX
37416
cristy0c60a692010-11-04 01:09:47 +000037417# How to create reloadable object files.
37418reload_flag=$lt_reload_flag_CXX
37419reload_cmds=$lt_reload_cmds_CXX
37420
cristy73bd4a52010-10-05 11:24:23 +000037421# Commands used to build an old-style archive.
37422old_archive_cmds=$lt_old_archive_cmds_CXX
37423
37424# A language specific compiler.
37425CC=$lt_compiler_CXX
37426
37427# Is the compiler the GNU compiler?
37428with_gcc=$GCC_CXX
37429
37430# Compiler flag to turn off builtin functions.
37431no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37432
cristy73bd4a52010-10-05 11:24:23 +000037433# Additional compiler flags for building library objects.
37434pic_flag=$lt_lt_prog_compiler_pic_CXX
37435
cristyda16f162011-02-19 23:52:17 +000037436# How to pass a linker flag through the compiler.
37437wl=$lt_lt_prog_compiler_wl_CXX
37438
cristy73bd4a52010-10-05 11:24:23 +000037439# Compiler flag to prevent dynamic linking.
37440link_static_flag=$lt_lt_prog_compiler_static_CXX
37441
37442# Does compiler simultaneously support -c and -o options?
37443compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37444
37445# Whether or not to add -lc for building shared libraries.
37446build_libtool_need_lc=$archive_cmds_need_lc_CXX
37447
37448# Whether or not to disallow shared libs when runtime libs are static.
37449allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37450
37451# Compiler flag to allow reflexive dlopens.
37452export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37453
37454# Compiler flag to generate shared objects directly from archives.
37455whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37456
37457# Whether the compiler copes with passing no objects directly.
37458compiler_needs_object=$lt_compiler_needs_object_CXX
37459
37460# Create an old-style archive from a shared archive.
37461old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37462
37463# Create a temporary old-style archive to link instead of a shared archive.
37464old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37465
37466# Commands used to build a shared archive.
37467archive_cmds=$lt_archive_cmds_CXX
37468archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37469
37470# Commands used to build a loadable module if different from building
37471# a shared archive.
37472module_cmds=$lt_module_cmds_CXX
37473module_expsym_cmds=$lt_module_expsym_cmds_CXX
37474
37475# Whether we are building with GNU ld or not.
37476with_gnu_ld=$lt_with_gnu_ld_CXX
37477
37478# Flag that allows shared libraries with undefined symbols to be built.
37479allow_undefined_flag=$lt_allow_undefined_flag_CXX
37480
37481# Flag that enforces no undefined symbols.
37482no_undefined_flag=$lt_no_undefined_flag_CXX
37483
37484# Flag to hardcode \$libdir into a binary during linking.
37485# This must work even if \$libdir does not exist
37486hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37487
37488# If ld is used when linking, flag to hardcode \$libdir into a binary
37489# during linking. This must work even if \$libdir does not exist.
37490hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37491
37492# Whether we need a single "-rpath" flag with a separated argument.
37493hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37494
37495# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37496# DIR into the resulting binary.
37497hardcode_direct=$hardcode_direct_CXX
37498
37499# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37500# DIR into the resulting binary and the resulting library dependency is
37501# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37502# library is relocated.
37503hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37504
37505# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37506# into the resulting binary.
37507hardcode_minus_L=$hardcode_minus_L_CXX
37508
37509# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37510# into the resulting binary.
37511hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37512
37513# Set to "yes" if building a shared library automatically hardcodes DIR
37514# into the library and all subsequent libraries and executables linked
37515# against it.
37516hardcode_automatic=$hardcode_automatic_CXX
37517
37518# Set to yes if linker adds runtime paths of dependent libraries
37519# to runtime path list.
37520inherit_rpath=$inherit_rpath_CXX
37521
37522# Whether libtool must link a program against all its dependency libraries.
37523link_all_deplibs=$link_all_deplibs_CXX
37524
cristy73bd4a52010-10-05 11:24:23 +000037525# Set to "yes" if exported symbols are required.
37526always_export_symbols=$always_export_symbols_CXX
37527
37528# The commands to list exported symbols.
37529export_symbols_cmds=$lt_export_symbols_cmds_CXX
37530
37531# Symbols that should not be listed in the preloaded symbols.
37532exclude_expsyms=$lt_exclude_expsyms_CXX
37533
37534# Symbols that must always be exported.
37535include_expsyms=$lt_include_expsyms_CXX
37536
37537# Commands necessary for linking programs (against libraries) with templates.
37538prelink_cmds=$lt_prelink_cmds_CXX
37539
cristyda16f162011-02-19 23:52:17 +000037540# Commands necessary for finishing linking programs.
37541postlink_cmds=$lt_postlink_cmds_CXX
37542
cristy73bd4a52010-10-05 11:24:23 +000037543# Specify filename containing input files.
37544file_list_spec=$lt_file_list_spec_CXX
37545
37546# How to hardcode a shared library path into an executable.
37547hardcode_action=$hardcode_action_CXX
37548
37549# The directories searched by this compiler when creating a shared library.
37550compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37551
37552# Dependencies to place before and after the objects being linked to
37553# create a shared library.
37554predep_objects=$lt_predep_objects_CXX
37555postdep_objects=$lt_postdep_objects_CXX
37556predeps=$lt_predeps_CXX
37557postdeps=$lt_postdeps_CXX
37558
37559# The library search path used internally by the compiler when linking
37560# a shared library.
37561compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37562
37563# ### END LIBTOOL TAG CONFIG: CXX
37564_LT_EOF
37565
37566 ;;
cristy4c08aed2011-07-01 19:47:50 +000037567 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
37568 "Magick-config.in":C) chmod +x MagickCore/Magick-config ;;
37569 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
37570 "Wand-config.in":C) chmod +x MagickWand/Wand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000037571 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37572 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37573
37574 esac
37575done # for ac_tag
37576
37577
cristy8b350f62009-11-15 23:12:43 +000037578as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000037579_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000037580ac_clean_files=$ac_clean_files_save
37581
37582test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000037583 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037584
37585
37586# configure is writing to config.log, and then calls config.status.
37587# config.status does its own redirection, appending to config.log.
37588# Unfortunately, on DOS this fails, as config.log is still kept open
37589# by configure, so config.status won't be able to write to it; its
37590# output is simply discarded. So we exec the FD to /dev/null,
37591# effectively closing config.log, so it can be properly (re)opened and
37592# appended to by config.status. When coming back to configure, we
37593# need to make the FD available again.
37594if test "$no_create" != yes; then
37595 ac_cs_success=:
37596 ac_config_status_args=
37597 test "$silent" = yes &&
37598 ac_config_status_args="$ac_config_status_args --quiet"
37599 exec 5>/dev/null
37600 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37601 exec 5>>config.log
37602 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37603 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000037604 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000037605fi
37606if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000037607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000037608$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37609fi
37610
37611
37612rm -f magick-version
37613
cristy430a7312010-01-21 20:44:04 +000037614result_dejavu_font_dir='none'
37615if test "${dejavu_font_dir}x" != 'x'; then
37616 result_dejavu_font_dir=$dejavu_font_dir
37617fi
37618
cristy3ed852e2009-09-05 21:47:34 +000037619result_ghostscript_font_dir='none'
37620if test "${ghostscript_font_dir}x" != 'x'; then
37621 result_ghostscript_font_dir=$ghostscript_font_dir
37622fi
37623
37624result_windows_font_dir='none'
37625if test "${windows_font_dir}x" != 'x'; then
37626 result_windows_font_dir=${windows_font_dir}
37627fi
37628
cristy8b350f62009-11-15 23:12:43 +000037629{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000037630ImageMagick is configured as follows. Please verify that this configuration
37631matches your expectations.
37632
37633Host system type: $host
37634Build system type: $build
37635
37636 Option Value
37637-------------------------------------------------------------------------------
37638Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37639Static libraries --enable-static=$enable_static $libtool_build_static_libs
37640Module support --with-modules=$with_modules $with_modules
37641GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37642Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37643High Dynamic Range Imagery
37644 --enable-hdri=$enable_hdri $enable_hdri
37645
37646Delegate Configuration:
37647BZLIB --with-bzlib=$with_bzlib $have_bzlib
37648Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037649Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037650DJVU --with-djvu=$with_djvu $have_djvu
37651DPS --with-dps=$with_dps $have_dps
37652FFTW --with-fftw=$with_fftw $have_fftw
37653FlashPIX --with-fpx=$with_fpx $have_fpx
37654FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37655FreeType --with-freetype=$with_freetype $have_freetype
37656GhostPCL None $PCLDelegate ($PCLVersion)
37657GhostXPS None $XPSDelegate ($XPSVersion)
37658Ghostscript None $PSDelegate ($GSVersion)
37659Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37660Ghostscript lib --with-gslib=$with_gslib $have_gslib
37661Graphviz --with-gvc=$with_gvc $have_gvc
37662JBIG --with-jbig=$with_jbig $have_jbig
37663JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37664JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037665LCMS v1 --with-lcms=$with_lcms $have_lcms
37666LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037667LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000037668LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037669Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37670OpenEXR --with-openexr=$with_openexr $have_openexr
37671PERL --with-perl=$with_perl $have_perl
37672PNG --with-png=$with_png $have_png
37673RSVG --with-rsvg=$with_rsvg $have_rsvg
37674TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037675WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037676Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37677WMF --with-wmf=$with_wmf $have_wmf
37678X11 --with-x=$with_x $have_x
37679XML --with-xml=$with_xml $have_xml
37680ZLIB --with-zlib=$with_zlib $have_zlib
37681
37682X11 Configuration:
37683 X_CFLAGS = $X_CFLAGS
37684 X_PRE_LIBS = $X_PRE_LIBS
37685 X_LIBS = $X_LIBS
37686 X_EXTRA_LIBS = $X_EXTRA_LIBS
37687
37688Options used to compile and link:
37689 PREFIX = $PREFIX_DIR
37690 EXEC-PREFIX = $EXEC_PREFIX_DIR
37691 VERSION = $PACKAGE_VERSION
37692 CC = $CC
37693 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037694 CPPFLAGS = $MAGICK_CPPFLAGS
37695 PCFLAGS = $MAGICK_PCFLAGS
37696 DEFS = $DEFS
37697 LDFLAGS = $LDFLAGS
37698 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37699 LIBS = $MAGICK_LIBS
37700 CXX = $CXX
37701 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037702 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000037703" >&5
37704$as_echo "
37705ImageMagick is configured as follows. Please verify that this configuration
37706matches your expectations.
37707
37708Host system type: $host
37709Build system type: $build
37710
37711 Option Value
37712-------------------------------------------------------------------------------
37713Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37714Static libraries --enable-static=$enable_static $libtool_build_static_libs
37715Module support --with-modules=$with_modules $with_modules
37716GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37717Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37718High Dynamic Range Imagery
37719 --enable-hdri=$enable_hdri $enable_hdri
37720
37721Delegate Configuration:
37722BZLIB --with-bzlib=$with_bzlib $have_bzlib
37723Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037724Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037725DJVU --with-djvu=$with_djvu $have_djvu
37726DPS --with-dps=$with_dps $have_dps
37727FFTW --with-fftw=$with_fftw $have_fftw
37728FlashPIX --with-fpx=$with_fpx $have_fpx
37729FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37730FreeType --with-freetype=$with_freetype $have_freetype
37731GhostPCL None $PCLDelegate ($PCLVersion)
37732GhostXPS None $XPSDelegate ($XPSVersion)
37733Ghostscript None $PSDelegate ($GSVersion)
37734Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37735Ghostscript lib --with-gslib=$with_gslib $have_gslib
37736Graphviz --with-gvc=$with_gvc $have_gvc
37737JBIG --with-jbig=$with_jbig $have_jbig
37738JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37739JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037740LCMS v1 --with-lcms=$with_lcms $have_lcms
37741LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037742LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000037743LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037744Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37745OpenEXR --with-openexr=$with_openexr $have_openexr
37746PERL --with-perl=$with_perl $have_perl
37747PNG --with-png=$with_png $have_png
37748RSVG --with-rsvg=$with_rsvg $have_rsvg
37749TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037750WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037751Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37752WMF --with-wmf=$with_wmf $have_wmf
37753X11 --with-x=$with_x $have_x
37754XML --with-xml=$with_xml $have_xml
37755ZLIB --with-zlib=$with_zlib $have_zlib
37756
37757X11 Configuration:
37758 X_CFLAGS = $X_CFLAGS
37759 X_PRE_LIBS = $X_PRE_LIBS
37760 X_LIBS = $X_LIBS
37761 X_EXTRA_LIBS = $X_EXTRA_LIBS
37762
37763Options used to compile and link:
37764 PREFIX = $PREFIX_DIR
37765 EXEC-PREFIX = $EXEC_PREFIX_DIR
37766 VERSION = $PACKAGE_VERSION
37767 CC = $CC
37768 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037769 CPPFLAGS = $MAGICK_CPPFLAGS
37770 PCFLAGS = $MAGICK_PCFLAGS
37771 DEFS = $DEFS
37772 LDFLAGS = $LDFLAGS
37773 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37774 LIBS = $MAGICK_LIBS
37775 CXX = $CXX
37776 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037777 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000037778" >&6; }